HttpHeader Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. HttpHeader
- com.
Implements
public final class HttpHeader
implements JsonSerializable<HttpHeader>
The HTTP header.
Constructor Summary
Constructor | Description |
---|---|
HttpHeader() |
Creates an instance of Http |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Http |
fromJson(JsonReader jsonReader)
Reads an instance of Http |
String |
name()
Get the name property: The name in HTTP header. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: The value in HTTP header. |
Http |
withName(String name)
Set the name property: The name in HTTP header. |
Http |
withValue(String value)
Set the value property: The value in HTTP header. |
Methods inherited from java.lang.Object
Constructor Details
HttpHeader
public HttpHeader()
Creates an instance of HttpHeader class.
Method Details
fromJson
public static HttpHeader fromJson(JsonReader jsonReader)
Reads an instance of HttpHeader from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name in HTTP header.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value in HTTP header.
Returns:
withName
public HttpHeader withName(String name)
Set the name property: The name in HTTP header.
Parameters:
Returns:
withValue
public HttpHeader withValue(String value)
Set the value property: The value in HTTP header.
Parameters:
Returns:
Applies to
Azure SDK for Java