KeyValuePair Class
- java.
lang. Object - com.
azure. resourcemanager. chaos. models. KeyValuePair
- com.
Implements
public final class KeyValuePair
implements JsonSerializable<KeyValuePair>
A map to describe the settings of an action.
Constructor Summary
| Constructor | Description |
|---|---|
| KeyValuePair() |
Creates an instance of Key |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
| String |
key()
Get the key property: The name of the setting for the action. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: The value of the setting for the action. |
|
Key |
withKey(String key)
Set the key property: The name of the setting for the action. |
|
Key |
withValue(String value)
Set the value property: The value of the setting for the action. |
Methods inherited from java.lang.Object
Constructor Details
KeyValuePair
public KeyValuePair()
Creates an instance of KeyValuePair class.
Method Details
fromJson
public static KeyValuePair fromJson(JsonReader jsonReader)
Reads an instance of KeyValuePair from the JsonReader.
Parameters:
Returns:
Throws:
key
public String key()
Get the key property: The name of the setting for the action.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value of the setting for the action.
Returns:
withKey
public KeyValuePair withKey(String key)
Set the key property: The name of the setting for the action.
Parameters:
Returns:
withValue
public KeyValuePair withValue(String value)
Set the value property: The value of the setting for the action.
Parameters:
Returns: