Class V1ScaleStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1ScaleStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1ScaleStatus
extends Object
ScaleStatus represents the current status of a scale subresource.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1ScaleStatus
Create an instance of V1ScaleStatus given an JSON stringreplicas is the actual number of observed instances of the scaled object.selector is the label query over pods that should match the replicas count.int
hashCode()
void
setReplicas
(Integer replicas) void
setSelector
(String selector) toJson()
Convert an instance of V1ScaleStatus 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_REPLICAS
- See Also:
-
SERIALIZED_NAME_SELECTOR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ScaleStatus
public V1ScaleStatus()
-
-
Method Details
-
replicas
-
getReplicas
replicas is the actual number of observed instances of the scaled object.- Returns:
- replicas
-
setReplicas
-
selector
-
getSelector
selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/- Returns:
- selector
-
setSelector
-
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 V1ScaleStatus
-
fromJson
Create an instance of V1ScaleStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ScaleStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1ScaleStatus
-
toJson
Convert an instance of V1ScaleStatus to an JSON string- Returns:
- JSON string
-