NameValuePair Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. NameValuePair
- com.
Implements
public final class NameValuePair
implements JsonSerializable<NameValuePair>
Name value pair.
Constructor Summary
Constructor | Description |
---|---|
NameValuePair() |
Creates an instance of Name |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Name |
fromJson(JsonReader jsonReader)
Reads an instance of Name |
String |
name()
Get the name property: Pair name. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Pair value. |
Name |
withName(String name)
Set the name property: Pair name. |
Name |
withValue(String value)
Set the value property: Pair value. |
Methods inherited from java.lang.Object
Constructor Details
NameValuePair
public NameValuePair()
Creates an instance of NameValuePair class.
Method Details
fromJson
public static NameValuePair fromJson(JsonReader jsonReader)
Reads an instance of NameValuePair from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Pair name.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Pair value.
Returns:
withName
public NameValuePair withName(String name)
Set the name property: Pair name.
Parameters:
Returns:
withValue
public NameValuePair withValue(String value)
Set the value property: Pair value.
Parameters:
Returns:
Applies to
Azure SDK for Java