Class RouteFilterRuleInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner
-
public final class RouteFilterRuleInner extends com.azure.core.management.SubResourceRoute Filter Rule Resource.
-
-
Constructor Summary
Constructors Constructor Description RouteFilterRuleInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accessaccess()Get the access property: The access type of the rule.List<String>communities()Get the communities property: The collection for bgp community values to filter on.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Stringlocation()Get the location property: Resource location.Stringname()Get the name property: The name of the resource that is unique within a resource group.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the route filter rule resource.RouteFilterRuleTyperouteFilterRuleType()Get the routeFilterRuleType property: The rule type of the rule.voidvalidate()Validates the instance.RouteFilterRuleInnerwithAccess(Access access)Set the access property: The access type of the rule.RouteFilterRuleInnerwithCommunities(List<String> communities)Set the communities property: The collection for bgp community values to filter on.RouteFilterRuleInnerwithId(String id)RouteFilterRuleInnerwithLocation(String location)Set the location property: Resource location.RouteFilterRuleInnerwithName(String name)Set the name property: The name of the resource that is unique within a resource group.RouteFilterRuleInnerwithRouteFilterRuleType(RouteFilterRuleType routeFilterRuleType)Set the routeFilterRuleType property: The rule type of the rule.
-
-
-
Method Detail
-
name
public String name()
Get the name property: 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.
-
withName
public RouteFilterRuleInner withName(String name)
Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Parameters:
name- the name value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
location
public String location()
Get the location property: Resource location.- Returns:
- the location value.
-
withLocation
public RouteFilterRuleInner withLocation(String location)
Set the location property: Resource location.- Parameters:
location- the location value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
public RouteFilterRuleInner withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
access
public Access access()
Get the access property: The access type of the rule.- Returns:
- the access value.
-
withAccess
public RouteFilterRuleInner withAccess(Access access)
Set the access property: The access type of the rule.- Parameters:
access- the access value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
routeFilterRuleType
public RouteFilterRuleType routeFilterRuleType()
Get the routeFilterRuleType property: The rule type of the rule.- Returns:
- the routeFilterRuleType value.
-
withRouteFilterRuleType
public RouteFilterRuleInner withRouteFilterRuleType(RouteFilterRuleType routeFilterRuleType)
Set the routeFilterRuleType property: The rule type of the rule.- Parameters:
routeFilterRuleType- the routeFilterRuleType value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
communities
public List<String> communities()
Get the communities property: The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].- Returns:
- the communities value.
-
withCommunities
public RouteFilterRuleInner withCommunities(List<String> communities)
Set the communities property: The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].- Parameters:
communities- the communities value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the route filter rule resource.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-