Class HeaderAction

java.lang.Object
com.azure.resourcemanager.frontdoor.models.HeaderAction

public final class HeaderAction extends Object
An action that can manipulate an http header.
  • Constructor Details

    • HeaderAction

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

    • headerActionType

      public HeaderActionType headerActionType()
      Get the headerActionType property: Which type of manipulation to apply to the header.
      Returns:
      the headerActionType value.
    • withHeaderActionType

      public HeaderAction withHeaderActionType(HeaderActionType headerActionType)
      Set the headerActionType property: Which type of manipulation to apply to the header.
      Parameters:
      headerActionType - the headerActionType value to set.
      Returns:
      the HeaderAction object itself.
    • headerName

      public String headerName()
      Get the headerName property: The name of the header this action will apply to.
      Returns:
      the headerName value.
    • withHeaderName

      public HeaderAction withHeaderName(String headerName)
      Set the headerName property: The name of the header this action will apply to.
      Parameters:
      headerName - the headerName value to set.
      Returns:
      the HeaderAction object itself.
    • value

      public String value()
      Get the value property: The value to update the given header name with. This value is not used if the actionType is Delete.
      Returns:
      the value value.
    • withValue

      public HeaderAction withValue(String value)
      Set the value property: The value to update the given header name with. This value is not used if the actionType is Delete.
      Parameters:
      value - the value value to set.
      Returns:
      the HeaderAction object itself.
    • validate

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