HeaderAction Class

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

public final class HeaderAction

An action that can manipulate an http header.

Constructor Summary

Constructor Description
HeaderAction()

Creates an instance of HeaderAction class.

Method Summary

Modifier and Type Method and Description
HeaderActionType headerActionType()

Get the headerActionType property: Which type of manipulation to apply to the header.

String headerName()

Get the headerName property: The name of the header this action will apply to.

void validate()

Validates the instance.

String value()

Get the value property: The value to update the given header name with.

HeaderAction withHeaderActionType(HeaderActionType headerActionType)

Set the headerActionType property: Which type of manipulation to apply to the header.

HeaderAction withHeaderName(String headerName)

Set the headerName property: The name of the header this action will apply to.

HeaderAction withValue(String value)

Set the value property: The value to update the given header name with.

Methods inherited from java.lang.Object

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.

headerName

public String headerName()

Get the headerName property: The name of the header this action will apply to.

Returns:

the headerName value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

Applies to