Class RouteFilterRulePropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.RouteFilterRulePropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteFilterRulePropertiesFormat>

public final class RouteFilterRulePropertiesFormat extends Object implements com.azure.json.JsonSerializable<RouteFilterRulePropertiesFormat>
Route Filter Rule Resource.
  • Constructor Details

    • RouteFilterRulePropertiesFormat

      public RouteFilterRulePropertiesFormat()
      Creates an instance of RouteFilterRulePropertiesFormat class.
  • Method Details

    • access

      public Access access()
      Get the access property: The access type of the rule.
      Returns:
      the access value.
    • withAccess

      public RouteFilterRulePropertiesFormat withAccess(Access access)
      Set the access property: The access type of the rule.
      Parameters:
      access - the access value to set.
      Returns:
      the RouteFilterRulePropertiesFormat object itself.
    • routeFilterRuleType

      public RouteFilterRuleType routeFilterRuleType()
      Get the routeFilterRuleType property: The rule type of the rule.
      Returns:
      the routeFilterRuleType value.
    • withRouteFilterRuleType

      public RouteFilterRulePropertiesFormat withRouteFilterRuleType(RouteFilterRuleType routeFilterRuleType)
      Set the routeFilterRuleType property: The rule type of the rule.
      Parameters:
      routeFilterRuleType - the routeFilterRuleType value to set.
      Returns:
      the RouteFilterRulePropertiesFormat 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 RouteFilterRulePropertiesFormat 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 RouteFilterRulePropertiesFormat 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RouteFilterRulePropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static RouteFilterRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RouteFilterRulePropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RouteFilterRulePropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the RouteFilterRulePropertiesFormat.