Class V2HPAScalingPolicy
java.lang.Object
io.kubernetes.client.openapi.models.V2HPAScalingPolicy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V2HPAScalingPolicy
extends Object
HPAScalingPolicy is a single policy which must hold true for a specified past interval.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V2HPAScalingPolicy
Create an instance of V2HPAScalingPolicy given an JSON stringperiodSeconds specifies the window of time for which the policy should hold true.getType()
type is used to specify the scaling policy.getValue()
value contains the amount of change which is permitted by the policy.int
hashCode()
periodSeconds
(Integer periodSeconds) void
setPeriodSeconds
(Integer periodSeconds) void
void
toJson()
Convert an instance of V2HPAScalingPolicy 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_PERIOD_SECONDS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2HPAScalingPolicy
public V2HPAScalingPolicy()
-
-
Method Details
-
periodSeconds
-
getPeriodSeconds
periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).- Returns:
- periodSeconds
-
setPeriodSeconds
-
type
-
getType
type is used to specify the scaling policy.- Returns:
- type
-
setType
-
value
-
getValue
value contains the amount of change which is permitted by the policy. It must be greater than zero- Returns:
- value
-
setValue
-
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 V2HPAScalingPolicy
-
fromJson
Create an instance of V2HPAScalingPolicy given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2HPAScalingPolicy
- Throws:
IOException
- if the JSON string is invalid with respect to V2HPAScalingPolicy
-
toJson
Convert an instance of V2HPAScalingPolicy to an JSON string- Returns:
- JSON string
-