ApplicationGatewayRewriteRuleSet Class

public final class ApplicationGatewayRewriteRuleSet
extends SubResource

Rewrite rule set of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayRewriteRuleSet()

Creates an instance of ApplicationGatewayRewriteRuleSet class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static ApplicationGatewayRewriteRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRewriteRuleSet from the JsonReader.

String name()

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

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the rewrite rule set resource.

List<ApplicationGatewayRewriteRule> rewriteRules()

Get the rewriteRules property: Rewrite rules in the rewrite rule set.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayRewriteRuleSet withId(String id)
ApplicationGatewayRewriteRuleSet withName(String name)

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

ApplicationGatewayRewriteRuleSet withRewriteRules(List<ApplicationGatewayRewriteRule> rewriteRules)

Set the rewriteRules property: Rewrite rules in the rewrite rule set.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayRewriteRuleSet

public ApplicationGatewayRewriteRuleSet()

Creates an instance of ApplicationGatewayRewriteRuleSet class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static ApplicationGatewayRewriteRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRewriteRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

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

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the rewrite rule set resource.

Returns:

the provisioningState value.

rewriteRules

public List rewriteRules()

Get the rewriteRules property: Rewrite rules in the rewrite rule set.

Returns:

the rewriteRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationGatewayRewriteRuleSet.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ApplicationGatewayRewriteRuleSet withId(String id)

Overrides:

ApplicationGatewayRewriteRuleSet.withId(String id)

Parameters:

id

withName

public ApplicationGatewayRewriteRuleSet withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewayRewriteRuleSet object itself.

withRewriteRules

public ApplicationGatewayRewriteRuleSet withRewriteRules(List rewriteRules)

Set the rewriteRules property: Rewrite rules in the rewrite rule set.

Parameters:

rewriteRules - the rewriteRules value to set.

Returns:

the ApplicationGatewayRewriteRuleSet object itself.

Applies to