Partager via


NameValuePair Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.NameValuePair

Implements

public final class NameValuePair
implements JsonSerializable<NameValuePair>

Name value pair.

Constructor Summary

Constructor Description
NameValuePair()

Creates an instance of NameValuePair class.

Method Summary

Modifier and Type Method and Description
static NameValuePair fromJson(JsonReader jsonReader)

Reads an instance of NameValuePair from the JsonReader.

String name()

Get the name property: Pair name.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of NameValuePair if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the NameValuePair.

name

public String name()

Get the name property: Pair name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Pair value.

Returns:

the value 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.

withValue

public NameValuePair withValue(String value)

Set the value property: Pair value.

Parameters:

value - the value value to set.

Returns:

the NameValuePair object itself.

Applies to