Class ApplicationGatewayHeaderConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayHeaderConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayHeaderConfiguration>
public final class ApplicationGatewayHeaderConfiguration
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayHeaderConfiguration>
Header configuration of the Actions set in Application Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayHeaderConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayHeaderConfiguration from the JsonReader.Get the headerName property: Header name of the header configuration.Get the headerValue property: Header value of the header configuration.Get the headerValueMatcher property: An optional field under "Rewrite Action".com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHeaderName(String headerName) Set the headerName property: Header name of the header configuration.withHeaderValue(String headerValue) Set the headerValue property: Header value of the header configuration.withHeaderValueMatcher(HeaderValueMatcher headerValueMatcher) Set the headerValueMatcher property: An optional field under "Rewrite Action".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayHeaderConfiguration
public ApplicationGatewayHeaderConfiguration()Creates an instance of ApplicationGatewayHeaderConfiguration class.
-
-
Method Details
-
headerName
Get the headerName property: Header name of the header configuration.- Returns:
- the headerName value.
-
withHeaderName
Set the headerName property: Header name of the header configuration.- Parameters:
headerName- the headerName value to set.- Returns:
- the ApplicationGatewayHeaderConfiguration object itself.
-
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.
-
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.
-
headerValue
Get the headerValue property: Header value of the header configuration.- Returns:
- the headerValue value.
-
withHeaderValue
Set the headerValue property: Header value of the header configuration.- Parameters:
headerValue- the headerValue value to set.- Returns:
- the ApplicationGatewayHeaderConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayHeaderConfiguration>- Throws:
IOException
-
fromJson
public static ApplicationGatewayHeaderConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-