Class ScaleStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.extensions.v1beta1.ScaleStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ScaleStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
represents the current status of a scale subresource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScaleStatus.Builder
-
Constructor Summary
Constructors Constructor Description ScaleStatus()
ScaleStatus(@NonNull java.lang.Number replicas, java.util.Map<java.lang.String,java.lang.String> selector, java.lang.String targetSelector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScaleStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.Number
getReplicas()
actual number of observed instances of the scaled object.java.util.Map<java.lang.String,java.lang.String>
getSelector()
label query over pods that should match the replicas count.java.lang.String
getTargetSelector()
label selector for pods that should match the replicas count.int
hashCode()
void
setReplicas(@NonNull java.lang.Number replicas)
actual number of observed instances of the scaled object.void
setSelector(java.util.Map<java.lang.String,java.lang.String> selector)
label query over pods that should match the replicas count.void
setTargetSelector(java.lang.String targetSelector)
label selector for pods that should match the replicas count.ScaleStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static ScaleStatus.Builder builder()
-
toBuilder
public ScaleStatus.Builder toBuilder()
-
getReplicas
@NonNull public @NonNull java.lang.Number getReplicas()
actual number of observed instances of the scaled object.
-
getSelector
public java.util.Map<java.lang.String,java.lang.String> getSelector()
label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
-
getTargetSelector
public java.lang.String getTargetSelector()
label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
-
setReplicas
public void setReplicas(@NonNull @NonNull java.lang.Number replicas)
actual number of observed instances of the scaled object.
-
setSelector
public void setSelector(java.util.Map<java.lang.String,java.lang.String> selector)
label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
-
setTargetSelector
public void setTargetSelector(java.lang.String targetSelector)
label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
-
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
-
-