Class ApplicationGatewayHeaderConfiguration

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

public final class ApplicationGatewayHeaderConfiguration extends Object
Header configuration of the Actions set in Application Gateway.
  • Constructor Details

    • ApplicationGatewayHeaderConfiguration

      public ApplicationGatewayHeaderConfiguration()
      Creates an instance of ApplicationGatewayHeaderConfiguration class.
  • Method Details

    • headerName

      public String headerName()
      Get the headerName property: Header name of the header configuration.
      Returns:
      the headerName value.
    • 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.
    • 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.
    • 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

      public String headerValue()
      Get the headerValue property: Header value of the header configuration.
      Returns:
      the headerValue value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.