Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.implementation;
import com.microsoft.azure.management.network.ApplicationGatewayRequestRoutingRuleType;
import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.network.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Request routing rule of an application gateway.
/**
* Request routing rule of an application gateway.
*/
@JsonFlatten
public class ApplicationGatewayRequestRoutingRuleInner extends SubResource {
Rule type. Possible values include: 'Basic', 'PathBasedRouting'.
/**
* Rule type. Possible values include: 'Basic', 'PathBasedRouting'.
*/
@JsonProperty(value = "properties.ruleType")
private ApplicationGatewayRequestRoutingRuleType ruleType;
Priority of the request routing rule.
/**
* Priority of the request routing rule.
*/
@JsonProperty(value = "properties.priority")
private Integer priority;
Backend address pool resource of the application gateway.
/**
* Backend address pool resource of the application gateway.
*/
@JsonProperty(value = "properties.backendAddressPool")
private SubResource backendAddressPool;
Backend http settings resource of the application gateway.
/**
* Backend http settings resource of the application gateway.
*/
@JsonProperty(value = "properties.backendHttpSettings")
private SubResource backendHttpSettings;
Http listener resource of the application gateway.
/**
* Http listener resource of the application gateway.
*/
@JsonProperty(value = "properties.httpListener")
private SubResource httpListener;
URL path map resource of the application gateway.
/**
* URL path map resource of the application gateway.
*/
@JsonProperty(value = "properties.urlPathMap")
private SubResource urlPathMap;
Rewrite Rule Set resource in Basic rule of the application gateway.
/**
* Rewrite Rule Set resource in Basic rule of the application gateway.
*/
@JsonProperty(value = "properties.rewriteRuleSet")
private SubResource rewriteRuleSet;
Redirect configuration resource of the application gateway.
/**
* Redirect configuration resource of the application gateway.
*/
@JsonProperty(value = "properties.redirectConfiguration")
private SubResource redirectConfiguration;
The provisioning state of the request routing rule resource. Possible
values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/**
* The provisioning state of the request routing rule resource. Possible
* values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
Name of the request routing rule that is unique within an Application
Gateway.
/**
* Name of the request routing rule that is unique within an Application
* Gateway.
*/
@JsonProperty(value = "name")
private String name;
A unique read-only string that changes whenever the resource is updated.
/**
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
Type of the resource.
/**
* Type of the resource.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
Get rule type. Possible values include: 'Basic', 'PathBasedRouting'.
Returns: the ruleType value
/**
* Get rule type. Possible values include: 'Basic', 'PathBasedRouting'.
*
* @return the ruleType value
*/
public ApplicationGatewayRequestRoutingRuleType ruleType() {
return this.ruleType;
}
Set rule type. Possible values include: 'Basic', 'PathBasedRouting'.
Params: - ruleType – the ruleType value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set rule type. Possible values include: 'Basic', 'PathBasedRouting'.
*
* @param ruleType the ruleType value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType) {
this.ruleType = ruleType;
return this;
}
Get priority of the request routing rule.
Returns: the priority value
/**
* Get priority of the request routing rule.
*
* @return the priority value
*/
public Integer priority() {
return this.priority;
}
Set priority of the request routing rule.
Params: - priority – the priority value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set priority of the request routing rule.
*
* @param priority the priority value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withPriority(Integer priority) {
this.priority = priority;
return this;
}
Get backend address pool resource of the application gateway.
Returns: the backendAddressPool value
/**
* Get backend address pool resource of the application gateway.
*
* @return the backendAddressPool value
*/
public SubResource backendAddressPool() {
return this.backendAddressPool;
}
Set backend address pool resource of the application gateway.
Params: - backendAddressPool – the backendAddressPool value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set backend address pool resource of the application gateway.
*
* @param backendAddressPool the backendAddressPool value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withBackendAddressPool(SubResource backendAddressPool) {
this.backendAddressPool = backendAddressPool;
return this;
}
Get backend http settings resource of the application gateway.
Returns: the backendHttpSettings value
/**
* Get backend http settings resource of the application gateway.
*
* @return the backendHttpSettings value
*/
public SubResource backendHttpSettings() {
return this.backendHttpSettings;
}
Set backend http settings resource of the application gateway.
Params: - backendHttpSettings – the backendHttpSettings value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set backend http settings resource of the application gateway.
*
* @param backendHttpSettings the backendHttpSettings value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withBackendHttpSettings(SubResource backendHttpSettings) {
this.backendHttpSettings = backendHttpSettings;
return this;
}
Get http listener resource of the application gateway.
Returns: the httpListener value
/**
* Get http listener resource of the application gateway.
*
* @return the httpListener value
*/
public SubResource httpListener() {
return this.httpListener;
}
Set http listener resource of the application gateway.
Params: - httpListener – the httpListener value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set http listener resource of the application gateway.
*
* @param httpListener the httpListener value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withHttpListener(SubResource httpListener) {
this.httpListener = httpListener;
return this;
}
Get uRL path map resource of the application gateway.
Returns: the urlPathMap value
/**
* Get uRL path map resource of the application gateway.
*
* @return the urlPathMap value
*/
public SubResource urlPathMap() {
return this.urlPathMap;
}
Set uRL path map resource of the application gateway.
Params: - urlPathMap – the urlPathMap value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set uRL path map resource of the application gateway.
*
* @param urlPathMap the urlPathMap value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withUrlPathMap(SubResource urlPathMap) {
this.urlPathMap = urlPathMap;
return this;
}
Get rewrite Rule Set resource in Basic rule of the application gateway.
Returns: the rewriteRuleSet value
/**
* Get rewrite Rule Set resource in Basic rule of the application gateway.
*
* @return the rewriteRuleSet value
*/
public SubResource rewriteRuleSet() {
return this.rewriteRuleSet;
}
Set rewrite Rule Set resource in Basic rule of the application gateway.
Params: - rewriteRuleSet – the rewriteRuleSet value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set rewrite Rule Set resource in Basic rule of the application gateway.
*
* @param rewriteRuleSet the rewriteRuleSet value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withRewriteRuleSet(SubResource rewriteRuleSet) {
this.rewriteRuleSet = rewriteRuleSet;
return this;
}
Get redirect configuration resource of the application gateway.
Returns: the redirectConfiguration value
/**
* Get redirect configuration resource of the application gateway.
*
* @return the redirectConfiguration value
*/
public SubResource redirectConfiguration() {
return this.redirectConfiguration;
}
Set redirect configuration resource of the application gateway.
Params: - redirectConfiguration – the redirectConfiguration value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set redirect configuration resource of the application gateway.
*
* @param redirectConfiguration the redirectConfiguration value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withRedirectConfiguration(SubResource redirectConfiguration) {
this.redirectConfiguration = redirectConfiguration;
return this;
}
Get the provisioning state of the request routing rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns: the provisioningState value
/**
* Get the provisioning state of the request routing rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
Get name of the request routing rule that is unique within an Application Gateway.
Returns: the name value
/**
* Get name of the request routing rule that is unique within an Application Gateway.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set name of the request routing rule that is unique within an Application Gateway.
Params: - name – the name value to set
Returns: the ApplicationGatewayRequestRoutingRuleInner object itself.
/**
* Set name of the request routing rule that is unique within an Application Gateway.
*
* @param name the name value to set
* @return the ApplicationGatewayRequestRoutingRuleInner object itself.
*/
public ApplicationGatewayRequestRoutingRuleInner withName(String name) {
this.name = name;
return this;
}
Get a unique read-only string that changes whenever the resource is updated.
Returns: the etag value
/**
* Get a unique read-only string that changes whenever the resource is updated.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}
Get type of the resource.
Returns: the type value
/**
* Get type of the resource.
*
* @return the type value
*/
public String type() {
return this.type;
}
}