StringKeyValuePair Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. StringKeyValuePair
- com.
Implements
public final class StringKeyValuePair
implements JsonSerializable<StringKeyValuePair>
StringKeyValuePair represents a single entry in a mapping of keys to values.
Constructor Summary
| Constructor | Description |
|---|---|
| StringKeyValuePair() |
Creates an instance of String |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
String |
fromJson(JsonReader jsonReader)
Reads an instance of String |
| String |
key()
Get the key property: The key to the mapped value. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: The value of the mapping key. |
|
String |
withKey(String key)
Set the key property: The key to the mapped value. |
|
String |
withValue(String value)
Set the value property: The value of the mapping key. |
Methods inherited from java.lang.Object
Constructor Details
StringKeyValuePair
public StringKeyValuePair()
Creates an instance of StringKeyValuePair class.
Method Details
fromJson
public static StringKeyValuePair fromJson(JsonReader jsonReader)
Reads an instance of StringKeyValuePair from the JsonReader.
Parameters:
Returns:
Throws:
key
public String key()
Get the key property: The key to the mapped value.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value of the mapping key.
Returns:
withKey
public StringKeyValuePair withKey(String key)
Set the key property: The key to the mapped value.
Parameters:
Returns:
withValue
public StringKeyValuePair withValue(String value)
Set the value property: The value of the mapping key.
Parameters:
Returns: