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