EndpointPropertiesCustomHeadersItem Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.EndpointPropertiesCustomHeadersItem

Implements

public final class EndpointPropertiesCustomHeadersItem
implements JsonSerializable<EndpointPropertiesCustomHeadersItem>

Custom header name and value.

Constructor Summary

Constructor Description
EndpointPropertiesCustomHeadersItem()

Creates an instance of EndpointPropertiesCustomHeadersItem class.

Method Summary

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

Reads an instance of EndpointPropertiesCustomHeadersItem from the JsonReader.

String name()

Get the name property: Header name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Header value.

EndpointPropertiesCustomHeadersItem withName(String name)

Set the name property: Header name.

EndpointPropertiesCustomHeadersItem withValue(String value)

Set the value property: Header value.

Methods inherited from java.lang.Object

Constructor Details

EndpointPropertiesCustomHeadersItem

public EndpointPropertiesCustomHeadersItem()

Creates an instance of EndpointPropertiesCustomHeadersItem class.

Method Details

fromJson

public static EndpointPropertiesCustomHeadersItem fromJson(JsonReader jsonReader)

Reads an instance of EndpointPropertiesCustomHeadersItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EndpointPropertiesCustomHeadersItem 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 EndpointPropertiesCustomHeadersItem.

name

public String name()

Get the name property: Header 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: Header value.

Returns:

the value value.

withName

public EndpointPropertiesCustomHeadersItem withName(String name)

Set the name property: Header name.

Parameters:

name - the name value to set.

Returns:

the EndpointPropertiesCustomHeadersItem object itself.

withValue

public EndpointPropertiesCustomHeadersItem withValue(String value)

Set the value property: Header value.

Parameters:

value - the value value to set.

Returns:

the EndpointPropertiesCustomHeadersItem object itself.

Applies to