Class NameValuePair
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.NameValuePair
-
public final class NameValuePair extends Object
Name value pair.
-
-
Constructor Summary
Constructors Constructor Description NameValuePair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Pair name.voidvalidate()Validates the instance.Stringvalue()Get the value property: Pair value.NameValuePairwithName(String name)Set the name property: Pair name.NameValuePairwithValue(String value)Set the value property: Pair value.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Pair name.- Returns:
- the name value.
-
withName
public NameValuePair withName(String name)
Set the name property: Pair name.- Parameters:
name- the name value to set.- Returns:
- the NameValuePair object itself.
-
value
public String value()
Get the value property: Pair value.- Returns:
- the value value.
-
withValue
public NameValuePair withValue(String value)
Set the value property: Pair value.- Parameters:
value- the value value to set.- Returns:
- the NameValuePair object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-