Class InspectRestartPolicy
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectRestartPolicy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class InspectRestartPolicy
extends Object
InspectRestartPolicy
-
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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element 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
-