Class V1RollingUpdateDeployment
java.lang.Object
io.kubernetes.client.openapi.models.V1RollingUpdateDeployment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1RollingUpdateDeployment
extends Object
Spec to control the desired behavior of rolling update.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1RollingUpdateDeployment
Create an instance of V1RollingUpdateDeployment given an JSON stringIntOrString is a type that can hold an int32 or a string.IntOrString is a type that can hold an int32 or a string.int
hashCode()
maxSurge
(IntOrString maxSurge) maxUnavailable
(IntOrString maxUnavailable) void
setMaxSurge
(IntOrString maxSurge) void
setMaxUnavailable
(IntOrString maxUnavailable) toJson()
Convert an instance of V1RollingUpdateDeployment to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MAX_SURGE
- See Also:
-
SERIALIZED_NAME_MAX_UNAVAILABLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1RollingUpdateDeployment
public V1RollingUpdateDeployment()
-
-
Method Details
-
maxSurge
-
getMaxSurge
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.- Returns:
- maxSurge
-
setMaxSurge
-
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 V1RollingUpdateDeployment
-
fromJson
Create an instance of V1RollingUpdateDeployment given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1RollingUpdateDeployment
- Throws:
IOException
- if the JSON string is invalid with respect to V1RollingUpdateDeployment
-
toJson
Convert an instance of V1RollingUpdateDeployment to an JSON string- Returns:
- JSON string
-