Class V2PodsMetricStatus
java.lang.Object
io.kubernetes.client.openapi.models.V2PodsMetricStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V2PodsMetricStatus
extends Object
PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent(V2MetricValueStatus current) booleanstatic V2PodsMetricStatusCreate an instance of V2PodsMetricStatus given an JSON stringGet currentGet metricinthashCode()metric(V2MetricIdentifier metric) voidsetCurrent(V2MetricValueStatus current) voidsetMetric(V2MetricIdentifier metric) toJson()Convert an instance of V2PodsMetricStatus to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CURRENT
- See Also:
-
SERIALIZED_NAME_METRIC
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2PodsMetricStatus
public V2PodsMetricStatus()
-
-
Method Details
-
current
-
getCurrent
Get current- Returns:
- current
-
setCurrent
-
metric
-
getMetric
Get metric- Returns:
- metric
-
setMetric
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V2PodsMetricStatus
-
fromJson
Create an instance of V2PodsMetricStatus given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V2PodsMetricStatus
- Throws:
IOException- if the JSON string is invalid with respect to V2PodsMetricStatus
-
toJson
Convert an instance of V2PodsMetricStatus to an JSON string- Returns:
- JSON string
-