ApplicationGatewayHeaderConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayHeaderConfiguration

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 ApplicationGatewayHeaderConfiguration class.

Method Summary

Modifier and Type Method and Description
static ApplicationGatewayHeaderConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayHeaderConfiguration from the JsonReader.

String headerName()

Get the headerName property: Header name of the header configuration.

String headerValue()

Get the headerValue property: Header value of the header configuration.

HeaderValueMatcher headerValueMatcher()

Get the headerValueMatcher property: An optional field under "Rewrite Action".

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayHeaderConfiguration withHeaderName(String headerName)

Set the headerName property: Header name of the header configuration.

ApplicationGatewayHeaderConfiguration withHeaderValue(String headerValue)

Set the headerValue property: Header value of the header configuration.

ApplicationGatewayHeaderConfiguration withHeaderValueMatcher(HeaderValueMatcher headerValueMatcher)

Set the headerValueMatcher property: An optional field under "Rewrite Action".

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:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayHeaderConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ApplicationGatewayHeaderConfiguration.

headerName

public String headerName()

Get the headerName property: Header name of the header configuration.

Returns:

the headerName value.

headerValue

public String headerValue()

Get the headerValue property: Header value of the header configuration.

Returns:

the headerValue value.

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:

the headerValueMatcher value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHeaderName

public ApplicationGatewayHeaderConfiguration withHeaderName(String headerName)

Set the headerName property: Header name of the header configuration.

Parameters:

headerName - the headerName value to set.

Returns:

the ApplicationGatewayHeaderConfiguration object itself.

withHeaderValue

public ApplicationGatewayHeaderConfiguration withHeaderValue(String headerValue)

Set the headerValue property: Header value of the header configuration.

Parameters:

headerValue - the headerValue value to set.

Returns:

the ApplicationGatewayHeaderConfiguration object itself.

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:

headerValueMatcher - the headerValueMatcher value to set.

Returns:

the ApplicationGatewayHeaderConfiguration object itself.

Applies to