Class V2ObjectMetricSource
java.lang.Object
io.kubernetes.client.openapi.models.V2ObjectMetricSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V2ObjectMetricSource
extends Object
ObjectMetricSource indicates how to scale on 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 TypeMethodDescriptiondescribedObject
(V2CrossVersionObjectReference describedObject) boolean
static V2ObjectMetricSource
Create an instance of V2ObjectMetricSource given an JSON stringGet describedObjectGet metricGet targetint
hashCode()
metric
(V2MetricIdentifier metric) void
setDescribedObject
(V2CrossVersionObjectReference describedObject) void
setMetric
(V2MetricIdentifier metric) void
setTarget
(V2MetricTarget target) target
(V2MetricTarget target) toJson()
Convert an instance of V2ObjectMetricSource 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_DESCRIBED_OBJECT
- See Also:
-
SERIALIZED_NAME_METRIC
- See Also:
-
SERIALIZED_NAME_TARGET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2ObjectMetricSource
public V2ObjectMetricSource()
-
-
Method Details
-
describedObject
-
getDescribedObject
Get describedObject- Returns:
- describedObject
-
setDescribedObject
-
metric
-
getMetric
Get metric- Returns:
- metric
-
setMetric
-
target
-
getTarget
Get target- Returns:
- target
-
setTarget
-
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 V2ObjectMetricSource
-
fromJson
Create an instance of V2ObjectMetricSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2ObjectMetricSource
- Throws:
IOException
- if the JSON string is invalid with respect to V2ObjectMetricSource
-
toJson
Convert an instance of V2ObjectMetricSource to an JSON string- Returns:
- JSON string
-