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;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.SubResource;
Route Filter Rule Resource.
/**
* Route Filter Rule Resource.
*/
@JsonFlatten
public class PatchRouteFilterRule extends SubResource {
The access type of the rule. Possible values include: 'Allow', 'Deny'.
/**
* The access type of the rule. Possible values include: 'Allow', 'Deny'.
*/
@JsonProperty(value = "properties.access", required = true)
private Access access;
The rule type of the rule.
/**
* The rule type of the rule.
*/
@JsonProperty(value = "properties.routeFilterRuleType", required = true)
private String routeFilterRuleType;
The collection for bgp community values to filter on. e.g.
['12076:5010','12076:5020'].
/**
* The collection for bgp community values to filter on. e.g.
* ['12076:5010','12076:5020'].
*/
@JsonProperty(value = "properties.communities", required = true)
private List<String> communities;
The provisioning state of the route filter rule resource. Possible
values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/**
* The provisioning state of the route filter rule resource. Possible
* values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
The name of the resource that is unique within a resource group. This
name can be used to access the resource.
/**
* The name of the resource that is unique within a resource group. This
* name can be used to access the resource.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
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;
Creates an instance of PatchRouteFilterRule class.
/**
* Creates an instance of PatchRouteFilterRule class.
*/
public PatchRouteFilterRule() {
routeFilterRuleType = "Community";
}
Get the access type of the rule. Possible values include: 'Allow', 'Deny'.
Returns: the access value
/**
* Get the access type of the rule. Possible values include: 'Allow', 'Deny'.
*
* @return the access value
*/
public Access access() {
return this.access;
}
Set the access type of the rule. Possible values include: 'Allow', 'Deny'.
Params: - access – the access value to set
Returns: the PatchRouteFilterRule object itself.
/**
* Set the access type of the rule. Possible values include: 'Allow', 'Deny'.
*
* @param access the access value to set
* @return the PatchRouteFilterRule object itself.
*/
public PatchRouteFilterRule withAccess(Access access) {
this.access = access;
return this;
}
Get the rule type of the rule.
Returns: the routeFilterRuleType value
/**
* Get the rule type of the rule.
*
* @return the routeFilterRuleType value
*/
public String routeFilterRuleType() {
return this.routeFilterRuleType;
}
Set the rule type of the rule.
Params: - routeFilterRuleType – the routeFilterRuleType value to set
Returns: the PatchRouteFilterRule object itself.
/**
* Set the rule type of the rule.
*
* @param routeFilterRuleType the routeFilterRuleType value to set
* @return the PatchRouteFilterRule object itself.
*/
public PatchRouteFilterRule withRouteFilterRuleType(String routeFilterRuleType) {
this.routeFilterRuleType = routeFilterRuleType;
return this;
}
Get the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
Returns: the communities value
/**
* Get the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
*
* @return the communities value
*/
public List<String> communities() {
return this.communities;
}
Set the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
Params: - communities – the communities value to set
Returns: the PatchRouteFilterRule object itself.
/**
* Set the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
*
* @param communities the communities value to set
* @return the PatchRouteFilterRule object itself.
*/
public PatchRouteFilterRule withCommunities(List<String> communities) {
this.communities = communities;
return this;
}
Get the provisioning state of the route filter rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns: the provisioningState value
/**
* Get the provisioning state of the route filter rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
Get the name of the resource that is unique within a resource group. This name can be used to access the resource.
Returns: the name value
/**
* Get the name of the resource that is unique within a resource group. This name can be used to access the resource.
*
* @return the name value
*/
public String name() {
return this.name;
}
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;
}
}