HttpHeader Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. 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 header name. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: The header value. |
Http |
withName(String name)
Set the name property: The header name. |
Http |
withValue(String value)
Set the value property: The header value. |
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 header name.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The header value.
Returns:
withName
public HttpHeader withName(String name)
Set the name property: The header name.
Parameters:
Returns:
withValue
public HttpHeader withValue(String value)
Set the value property: The header value.
Parameters:
Returns:
Applies to
Azure SDK for Java