Class V2PodsMetricStatus
java.lang.Object
io.kubernetes.client.openapi.models.V2PodsMetricStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.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) boolean
static V2PodsMetricStatus
Create an instance of V2PodsMetricStatus given an JSON stringGet currentGet metricint
hashCode()
metric
(V2MetricIdentifier metric) void
setCurrent
(V2MetricValueStatus current) void
setMetric
(V2MetricIdentifier metric) toJson()
Convert an instance of V2PodsMetricStatus to an JSON stringtoString()
static void
validateJsonElement
(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
-