Class V2MetricIdentifier
java.lang.Object
io.kubernetes.client.openapi.models.V2MetricIdentifier
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V2MetricIdentifier
extends Object
MetricIdentifier defines the name and optionally selector for a metric
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V2MetricIdentifier
Create an instance of V2MetricIdentifier given an JSON stringgetName()
name is the name of the given metricGet selectorint
hashCode()
selector
(V1LabelSelector selector) void
void
setSelector
(V1LabelSelector selector) toJson()
Convert an instance of V2MetricIdentifier 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_NAME
- See Also:
-
SERIALIZED_NAME_SELECTOR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2MetricIdentifier
public V2MetricIdentifier()
-
-
Method Details
-
name
-
getName
name is the name of the given metric- Returns:
- name
-
setName
-
selector
-
getSelector
Get selector- Returns:
- selector
-
setSelector
-
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 V2MetricIdentifier
-
fromJson
Create an instance of V2MetricIdentifier given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2MetricIdentifier
- Throws:
IOException
- if the JSON string is invalid with respect to V2MetricIdentifier
-
toJson
Convert an instance of V2MetricIdentifier to an JSON string- Returns:
- JSON string
-