Class HttpHeader
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.HttpHeader
-
public final class HttpHeader extends Object
The HTTP header.
-
-
Constructor Summary
Constructors Constructor Description HttpHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The header name.voidvalidate()Validates the instance.Stringvalue()Get the value property: The header value.HttpHeaderwithName(String name)Set the name property: The header name.HttpHeaderwithValue(String value)Set the value property: The header value.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The header name.- Returns:
- the name value.
-
withName
public HttpHeader withName(String name)
Set the name property: The header name.- Parameters:
name- the name value to set.- Returns:
- the HttpHeader object itself.
-
value
public String value()
Get the value property: The header value.- Returns:
- the value value.
-
withValue
public HttpHeader withValue(String value)
Set the value property: The header value.- Parameters:
value- the value value to set.- Returns:
- the HttpHeader object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-