KubernetesLabel Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. KubernetesLabel
- com.
Implements
public final class KubernetesLabel
implements JsonSerializable<KubernetesLabel>
KubernetesLabel represents a single entry for a Kubernetes label or taint such as those used on a node or pod.
Constructor Summary
| Constructor | Description |
|---|---|
| KubernetesLabel() |
Creates an instance of Kubernetes |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Kubernetes |
fromJson(JsonReader jsonReader)
Reads an instance of Kubernetes |
| String |
key()
Get the key property: The name of the label or taint. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: The value of the label or taint. |
|
Kubernetes |
withKey(String key)
Set the key property: The name of the label or taint. |
|
Kubernetes |
withValue(String value)
Set the value property: The value of the label or taint. |
Methods inherited from java.lang.Object
Constructor Details
KubernetesLabel
public KubernetesLabel()
Creates an instance of KubernetesLabel class.
Method Details
fromJson
public static KubernetesLabel fromJson(JsonReader jsonReader)
Reads an instance of KubernetesLabel from the JsonReader.
Parameters:
Returns:
Throws:
key
public String key()
Get the key property: The name of the label or taint.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value of the label or taint.
Returns:
withKey
public KubernetesLabel withKey(String key)
Set the key property: The name of the label or taint.
Parameters:
Returns:
withValue
public KubernetesLabel withValue(String value)
Set the value property: The value of the label or taint.
Parameters:
Returns: