Class V2ObjectMetricStatus
java.lang.Object
io.kubernetes.client.openapi.models.V2ObjectMetricStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V2ObjectMetricStatus
extends Object
ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent(V2MetricValueStatus current) describedObject(V2CrossVersionObjectReference describedObject) booleanstatic V2ObjectMetricStatusCreate an instance of V2ObjectMetricStatus given an JSON stringGet currentGet describedObjectGet metricinthashCode()metric(V2MetricIdentifier metric) voidsetCurrent(V2MetricValueStatus current) voidsetDescribedObject(V2CrossVersionObjectReference describedObject) voidsetMetric(V2MetricIdentifier metric) toJson()Convert an instance of V2ObjectMetricStatus to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CURRENT
- See Also:
-
SERIALIZED_NAME_DESCRIBED_OBJECT
- See Also:
-
SERIALIZED_NAME_METRIC
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2ObjectMetricStatus
public V2ObjectMetricStatus()
-
-
Method Details
-
current
-
getCurrent
Get current- Returns:
- current
-
setCurrent
-
describedObject
-
getDescribedObject
Get describedObject- Returns:
- describedObject
-
setDescribedObject
-
metric
-
getMetric
Get metric- Returns:
- metric
-
setMetric
-
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 V2ObjectMetricStatus
-
fromJson
Create an instance of V2ObjectMetricStatus given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V2ObjectMetricStatus
- Throws:
IOException- if the JSON string is invalid with respect to V2ObjectMetricStatus
-
toJson
Convert an instance of V2ObjectMetricStatus to an JSON string- Returns:
- JSON string
-