Class InspectRestartPolicy
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectRestartPolicy
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class InspectRestartPolicy
extends Object
implements Serializable
InspectRestartPolicy
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic InspectRestartPolicyCreate an instance of InspectRestartPolicy given an JSON stringMaximumRetryCount is the maximum number of retries allowed if the \"on-failure\" restart policy is in use.getName()Name contains the container's restart policy.inthashCode()maximumRetryCount(Integer maximumRetryCount) voidsetMaximumRetryCount(Integer maximumRetryCount) voidtoJson()Convert an instance of InspectRestartPolicy to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MAXIMUM_RETRY_COUNT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectRestartPolicy
public InspectRestartPolicy()
-
-
Method Details
-
maximumRetryCount
-
getMaximumRetryCount
MaximumRetryCount is the maximum number of retries allowed if the \"on-failure\" restart policy is in use. Not used if \"on-failure\" is not set.- Returns:
- maximumRetryCount
-
setMaximumRetryCount
-
name
-
getName
Name contains the container's restart policy. Allowable values are \"no\" or \"\" (take no action), \"on-failure\" (restart on non-zero exit code, with an optional max retry count), and \"always\" (always restart on container stop, unless explicitly requested by API). Note that this is NOT actually a name of any sort - the poor naming is for Docker compatibility.- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to InspectRestartPolicy
-
fromJson
Create an instance of InspectRestartPolicy given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectRestartPolicy
- Throws:
IOException- if the JSON string is invalid with respect to InspectRestartPolicy
-
toJson
Convert an instance of InspectRestartPolicy to an JSON string- Returns:
- JSON string
-