ApplicationGatewayRewriteRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRule

Implements

public final class ApplicationGatewayRewriteRule
implements JsonSerializable<ApplicationGatewayRewriteRule>

Rewrite rule of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayRewriteRule()

Creates an instance of ApplicationGatewayRewriteRule class.

Method Summary

Modifier and Type Method and Description
ApplicationGatewayRewriteRuleActionSet actionSet()

Get the actionSet property: Set of actions to be done as part of the rewrite Rule.

List<ApplicationGatewayRewriteRuleCondition> conditions()

Get the conditions property: Conditions based on which the action set execution will be evaluated.

static ApplicationGatewayRewriteRule fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRewriteRule from the JsonReader.

String name()

Get the name property: Name of the rewrite rule that is unique within an Application Gateway.

Integer ruleSequence()

Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayRewriteRule withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet)

Set the actionSet property: Set of actions to be done as part of the rewrite Rule.

ApplicationGatewayRewriteRule withConditions(List<ApplicationGatewayRewriteRuleCondition> conditions)

Set the conditions property: Conditions based on which the action set execution will be evaluated.

ApplicationGatewayRewriteRule withName(String name)

Set the name property: Name of the rewrite rule that is unique within an Application Gateway.

ApplicationGatewayRewriteRule withRuleSequence(Integer ruleSequence)

Set the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayRewriteRule

public ApplicationGatewayRewriteRule()

Creates an instance of ApplicationGatewayRewriteRule class.

Method Details

actionSet

public ApplicationGatewayRewriteRuleActionSet actionSet()

Get the actionSet property: Set of actions to be done as part of the rewrite Rule.

Returns:

the actionSet value.

conditions

public List conditions()

Get the conditions property: Conditions based on which the action set execution will be evaluated.

Returns:

the conditions value.

fromJson

public static ApplicationGatewayRewriteRule fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRewriteRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayRewriteRule 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 ApplicationGatewayRewriteRule.

name

public String name()

Get the name property: Name of the rewrite rule that is unique within an Application Gateway.

Returns:

the name value.

ruleSequence

public Integer ruleSequence()

Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.

Returns:

the ruleSequence value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionSet

public ApplicationGatewayRewriteRule withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet)

Set the actionSet property: Set of actions to be done as part of the rewrite Rule.

Parameters:

actionSet - the actionSet value to set.

Returns:

the ApplicationGatewayRewriteRule object itself.

withConditions

public ApplicationGatewayRewriteRule withConditions(List conditions)

Set the conditions property: Conditions based on which the action set execution will be evaluated.

Parameters:

conditions - the conditions value to set.

Returns:

the ApplicationGatewayRewriteRule object itself.

withName

public ApplicationGatewayRewriteRule withName(String name)

Set the name property: Name of the rewrite rule that is unique within an Application Gateway.

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewayRewriteRule object itself.

withRuleSequence

public ApplicationGatewayRewriteRule withRuleSequence(Integer ruleSequence)

Set the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.

Parameters:

ruleSequence - the ruleSequence value to set.

Returns:

the ApplicationGatewayRewriteRule object itself.

Applies to