Class V2MetricIdentifier
java.lang.Object
io.kubernetes.client.openapi.models.V2MetricIdentifier
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
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 TypeMethodDescriptionbooleanstatic V2MetricIdentifierCreate an instance of V2MetricIdentifier given an JSON stringgetName()name is the name of the given metricGet selectorinthashCode()selector(V1LabelSelector selector) voidvoidsetSelector(V1LabelSelector selector) toJson()Convert an instance of V2MetricIdentifier 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_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
-
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 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
-