ApplicationGatewayHeaderConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ApplicationGatewayHeaderConfiguration
- com.
Implements
public final class ApplicationGatewayHeaderConfiguration
implements JsonSerializable<ApplicationGatewayHeaderConfiguration>
Header configuration of the Actions set in Application Gateway.
Constructor Summary
Constructor | Description |
---|---|
ApplicationGatewayHeaderConfiguration() |
Creates an instance of Application |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
String |
headerName()
Get the header |
String |
headerValue()
Get the header |
Header |
headerValueMatcher()
Get the header |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Application |
withHeaderName(String headerName)
Set the header |
Application |
withHeaderValue(String headerValue)
Set the header |
Application |
withHeaderValueMatcher(HeaderValueMatcher headerValueMatcher)
Set the header |
Methods inherited from java.lang.Object
Constructor Details
ApplicationGatewayHeaderConfiguration
public ApplicationGatewayHeaderConfiguration()
Creates an instance of ApplicationGatewayHeaderConfiguration class.
Method Details
fromJson
public static ApplicationGatewayHeaderConfiguration fromJson(JsonReader jsonReader)
Reads an instance of ApplicationGatewayHeaderConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
headerName
public String headerName()
Get the headerName property: Header name of the header configuration.
Returns:
headerValue
public String headerValue()
Get the headerValue property: Header value of the header configuration.
Returns:
headerValueMatcher
public HeaderValueMatcher headerValueMatcher()
Get the headerValueMatcher property: An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit https://aka.ms/appgwheadercrud.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHeaderName
public ApplicationGatewayHeaderConfiguration withHeaderName(String headerName)
Set the headerName property: Header name of the header configuration.
Parameters:
Returns:
withHeaderValue
public ApplicationGatewayHeaderConfiguration withHeaderValue(String headerValue)
Set the headerValue property: Header value of the header configuration.
Parameters:
Returns:
withHeaderValueMatcher
public ApplicationGatewayHeaderConfiguration withHeaderValueMatcher(HeaderValueMatcher headerValueMatcher)
Set the headerValueMatcher property: An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit https://aka.ms/appgwheadercrud.
Parameters:
Returns:
Applies to
Azure SDK for Java