MonitorConfigCustomHeadersItem Class
- java.
lang. Object - com.
azure. resourcemanager. trafficmanager. models. MonitorConfigCustomHeadersItem
- com.
Implements
public final class MonitorConfigCustomHeadersItem
implements JsonSerializable<MonitorConfigCustomHeadersItem>
Custom header name and value.
Constructor Summary
Constructor | Description |
---|---|
MonitorConfigCustomHeadersItem() |
Creates an instance of Monitor |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Monitor |
fromJson(JsonReader jsonReader)
Reads an instance of Monitor |
String |
name()
Get the name property: Header name. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Header value. |
Monitor |
withName(String name)
Set the name property: Header name. |
Monitor |
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:
Returns:
Throws:
name
public String name()
Get the name property: Header name.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Header value.
Returns:
withName
public MonitorConfigCustomHeadersItem withName(String name)
Set the name property: Header name.
Parameters:
Returns:
withValue
public MonitorConfigCustomHeadersItem withValue(String value)
Set the value property: Header value.
Parameters:
Returns:
Applies to
Azure SDK for Java