Class HPAScalingPolicy
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2.HPAScalingPolicy
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class HPAScalingPolicy extends java.lang.Object implements com.marcnuri.yakc.model.Model
HPAScalingPolicy is a single policy which must hold true for a specified past interval.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HPAScalingPolicy.Builder
-
Constructor Summary
Constructors Constructor Description HPAScalingPolicy()
HPAScalingPolicy(@NonNull java.lang.Number periodSeconds, @NonNull java.lang.String type, @NonNull java.lang.Number value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HPAScalingPolicy.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.Number
getPeriodSeconds()
periodSeconds specifies the window of time for which the policy should hold true.@NonNull java.lang.String
getType()
type is used to specify the scaling policy.@NonNull java.lang.Number
getValue()
value contains the amount of change which is permitted by the policy.int
hashCode()
void
setPeriodSeconds(@NonNull java.lang.Number periodSeconds)
periodSeconds specifies the window of time for which the policy should hold true.void
setType(@NonNull java.lang.String type)
type is used to specify the scaling policy.void
setValue(@NonNull java.lang.Number value)
value contains the amount of change which is permitted by the policy.HPAScalingPolicy.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static HPAScalingPolicy.Builder builder()
-
toBuilder
public HPAScalingPolicy.Builder toBuilder()
-
getPeriodSeconds
@NonNull public @NonNull java.lang.Number 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).
-
getType
@NonNull public @NonNull java.lang.String getType()
type is used to specify the scaling policy.
-
getValue
@NonNull public @NonNull java.lang.Number getValue()
value contains the amount of change which is permitted by the policy. It must be greater than zero
-
setPeriodSeconds
public void setPeriodSeconds(@NonNull @NonNull java.lang.Number periodSeconds)
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).
-
setType
public void setType(@NonNull @NonNull java.lang.String type)
type is used to specify the scaling policy.
-
setValue
public void setValue(@NonNull @NonNull java.lang.Number value)
value contains the amount of change which is permitted by the policy. It must be greater than zero
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-