public final class NameValuePair extends Object
| Constructor and Description |
|---|
NameValuePair() |
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Get the name property: Pair name.
|
void |
validate()
Validates the instance.
|
String |
value()
Get the value property: Pair value.
|
NameValuePair |
withName(String name)
Set the name property: Pair name.
|
NameValuePair |
withValue(String value)
Set the value property: Pair value.
|
public String name()
public NameValuePair withName(String name)
name - the name value to set.public String value()
public NameValuePair withValue(String value)
value - the value value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.