Class RestartPolicy
java.lang.Object
io.github.alersrt.pod4j.openapi.model.RestartPolicy
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RestartPolicy
extends Object
implements Serializable
RestartPolicy
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RestartPolicyCreate an instance of RestartPolicy given an JSON stringGet maximumRetryCountgetName()Get nameinthashCode()maximumRetryCount(Long maximumRetryCount) voidsetMaximumRetryCount(Long maximumRetryCount) voidtoJson()Convert an instance of RestartPolicy 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
-
RestartPolicy
public RestartPolicy()
-
-
Method Details
-
maximumRetryCount
-
getMaximumRetryCount
Get maximumRetryCount- Returns:
- maximumRetryCount
-
setMaximumRetryCount
-
name
-
getName
Get name- 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 RestartPolicy
-
fromJson
Create an instance of RestartPolicy given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RestartPolicy
- Throws:
IOException- if the JSON string is invalid with respect to RestartPolicy
-
toJson
Convert an instance of RestartPolicy to an JSON string- Returns:
- JSON string
-