Class RouteFilterRuleInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class RouteFilterRuleInner
extends com.azure.core.management.SubResource
Route Filter Rule Resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess()Get the access property: The access type of the rule.Get the communities property: The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static RouteFilterRuleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteFilterRuleInner from the JsonReader.location()Get the location property: Resource location.name()Get the name property: The name of the resource that is unique within a resource group.Get the provisioningState property: The provisioning state of the route filter rule resource.Get the routeFilterRuleType property: The rule type of the rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccess(Access access) Set the access property: The access type of the rule.withCommunities(List<String> communities) Set the communities property: The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].withLocation(String location) Set the location property: Resource location.Set the name property: The name of the resource that is unique within a resource group.withRouteFilterRuleType(RouteFilterRuleType routeFilterRuleType) Set the routeFilterRuleType property: The rule type of the rule.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RouteFilterRuleInner
public RouteFilterRuleInner()Creates an instance of RouteFilterRuleInner class.
-
-
Method Details
-
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
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
Get the location property: Resource location.- Returns:
- the location value.
-
withLocation
Set the location property: Resource location.- Parameters:
location- the location value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
access
Get the access property: The access type of the rule.- Returns:
- the access value.
-
withAccess
Set the access property: The access type of the rule.- Parameters:
access- the access value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
routeFilterRuleType
Get the routeFilterRuleType property: The rule type of the rule.- Returns:
- the routeFilterRuleType value.
-
withRouteFilterRuleType
Set the routeFilterRuleType property: The rule type of the rule.- Parameters:
routeFilterRuleType- the routeFilterRuleType value to set.- Returns:
- the RouteFilterRuleInner object itself.
-
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static RouteFilterRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RouteFilterRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteFilterRuleInner 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 RouteFilterRuleInner.
-