Class HeaderAction
java.lang.Object
com.azure.resourcemanager.frontdoor.models.HeaderAction
An action that can manipulate an http header.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the headerActionType property: Which type of manipulation to apply to the header.Get the headerName property: The name of the header this action will apply to.voidvalidate()Validates the instance.value()Get the value property: The value to update the given header name with.withHeaderActionType(HeaderActionType headerActionType) Set the headerActionType property: Which type of manipulation to apply to the header.withHeaderName(String headerName) Set the headerName property: The name of the header this action will apply to.Set the value property: The value to update the given header name with.
-
Constructor Details
-
HeaderAction
public HeaderAction()Creates an instance of HeaderAction class.
-
-
Method Details
-
headerActionType
Get the headerActionType property: Which type of manipulation to apply to the header.- Returns:
- the headerActionType value.
-
withHeaderActionType
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
Get the headerName property: The name of the header this action will apply to.- Returns:
- the headerName value.
-
withHeaderName
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
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
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.
-