Class V1LimitRangeItem
java.lang.Object
io.kubernetes.client.openapi.models.V1LimitRangeItem
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1LimitRangeItem
extends Object
LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultRequest
(Map<String, Quantity> defaultRequest) boolean
static V1LimitRangeItem
Create an instance of V1LimitRangeItem given an JSON stringDefault resource requirement limit value by resource name if resource limit is omitted.DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.getMax()
Max usage constraints on this kind by resource name.MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.getMin()
Min usage constraints on this kind by resource name.getType()
Type of resource that this limit applies to.int
hashCode()
maxLimitRequestRatio
(Map<String, Quantity> maxLimitRequestRatio) putDefaultItem
(String key, Quantity _defaultItem) putDefaultRequestItem
(String key, Quantity defaultRequestItem) putMaxItem
(String key, Quantity maxItem) putMaxLimitRequestRatioItem
(String key, Quantity maxLimitRequestRatioItem) putMinItem
(String key, Quantity minItem) void
setDefault
(Map<String, Quantity> _default) void
setDefaultRequest
(Map<String, Quantity> defaultRequest) void
void
setMaxLimitRequestRatio
(Map<String, Quantity> maxLimitRequestRatio) void
void
toJson()
Convert an instance of V1LimitRangeItem 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_DEFAULT
- See Also:
-
SERIALIZED_NAME_DEFAULT_REQUEST
- See Also:
-
SERIALIZED_NAME_MAX
- See Also:
-
SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO
- See Also:
-
SERIALIZED_NAME_MIN
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1LimitRangeItem
public V1LimitRangeItem()
-
-
Method Details
-
_default
-
putDefaultItem
-
getDefault
Default resource requirement limit value by resource name if resource limit is omitted.- Returns:
- _default
-
setDefault
-
defaultRequest
-
putDefaultRequestItem
-
getDefaultRequest
DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.- Returns:
- defaultRequest
-
setDefaultRequest
-
max
-
putMaxItem
-
getMax
Max usage constraints on this kind by resource name.- Returns:
- max
-
setMax
-
maxLimitRequestRatio
-
putMaxLimitRequestRatioItem
-
getMaxLimitRequestRatio
MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.- Returns:
- maxLimitRequestRatio
-
setMaxLimitRequestRatio
-
min
-
putMinItem
-
getMin
Min usage constraints on this kind by resource name.- Returns:
- min
-
setMin
-
type
-
getType
Type of resource that this limit applies to.- Returns:
- type
-
setType
-
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 V1LimitRangeItem
-
fromJson
Create an instance of V1LimitRangeItem given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1LimitRangeItem
- Throws:
IOException
- if the JSON string is invalid with respect to V1LimitRangeItem
-
toJson
Convert an instance of V1LimitRangeItem to an JSON string- Returns:
- JSON string
-