MonitorConfigCustomHeadersItem Class

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

Implements

public final class MonitorConfigCustomHeadersItem
implements JsonSerializable<MonitorConfigCustomHeadersItem>

Custom header name and value.

Constructor Summary

Constructor Description
MonitorConfigCustomHeadersItem()

Creates an instance of MonitorConfigCustomHeadersItem class.

Method Summary

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

Reads an instance of MonitorConfigCustomHeadersItem 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.

MonitorConfigCustomHeadersItem withName(String name)

Set the name property: Header name.

MonitorConfigCustomHeadersItem withValue(String value)

Set the value property: Header value.

Methods inherited from java.lang.Object

Constructor Details

MonitorConfigCustomHeadersItem

public MonitorConfigCustomHeadersItem()

Creates an instance of MonitorConfigCustomHeadersItem class.

Method Details

fromJson

public static MonitorConfigCustomHeadersItem fromJson(JsonReader jsonReader)

Reads an instance of MonitorConfigCustomHeadersItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 MonitorConfigCustomHeadersItem withName(String name)

Set the name property: Header name.

Parameters:

name - the name value to set.

Returns:

the MonitorConfigCustomHeadersItem object itself.

withValue

public MonitorConfigCustomHeadersItem withValue(String value)

Set the value property: Header value.

Parameters:

value - the value value to set.

Returns:

the MonitorConfigCustomHeadersItem object itself.

Applies to