Class V1VolumeResourceRequirements
java.lang.Object
io.kubernetes.client.openapi.models.V1VolumeResourceRequirements
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1VolumeResourceRequirements
extends Object
VolumeResourceRequirements describes the storage resource requirements for a volume.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1VolumeResourceRequirements
Create an instance of V1VolumeResourceRequirements given an JSON stringLimits describes the maximum amount of compute resources allowed.Requests describes the minimum amount of compute resources required.int
hashCode()
putLimitsItem
(String key, Quantity limitsItem) putRequestsItem
(String key, Quantity requestsItem) void
void
setRequests
(Map<String, Quantity> requests) toJson()
Convert an instance of V1VolumeResourceRequirements to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LIMITS
- See Also:
-
SERIALIZED_NAME_REQUESTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1VolumeResourceRequirements
public V1VolumeResourceRequirements()
-
-
Method Details
-
limits
-
putLimitsItem
-
getLimits
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/- Returns:
- limits
-
setLimits
-
requests
-
putRequestsItem
-
getRequests
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/- Returns:
- requests
-
setRequests
-
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 V1VolumeResourceRequirements
-
fromJson
Create an instance of V1VolumeResourceRequirements given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1VolumeResourceRequirements
- Throws:
IOException
- if the JSON string is invalid with respect to V1VolumeResourceRequirements
-
toJson
Convert an instance of V1VolumeResourceRequirements to an JSON string- Returns:
- JSON string
-