Class RoutingRuleCollectionPropertiesFormat

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

public final class RoutingRuleCollectionPropertiesFormat extends Object implements com.azure.json.JsonSerializable<RoutingRuleCollectionPropertiesFormat>
Defines the routing rule collection properties.
  • Constructor Details

    • RoutingRuleCollectionPropertiesFormat

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

    • description

      public String description()
      Get the description property: A description of the routing rule collection.
      Returns:
      the description value.
    • withDescription

      public RoutingRuleCollectionPropertiesFormat withDescription(String description)
      Set the description property: A description of the routing rule collection.
      Parameters:
      description - the description value to set.
      Returns:
      the RoutingRuleCollectionPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the resource.
      Returns:
      the provisioningState value.
    • resourceGuid

      public String resourceGuid()
      Get the resourceGuid property: Unique identifier for this resource.
      Returns:
      the resourceGuid value.
    • appliesTo

      public List<NetworkManagerRoutingGroupItem> appliesTo()
      Get the appliesTo property: Groups for configuration.
      Returns:
      the appliesTo value.
    • withAppliesTo

      Set the appliesTo property: Groups for configuration.
      Parameters:
      appliesTo - the appliesTo value to set.
      Returns:
      the RoutingRuleCollectionPropertiesFormat object itself.
    • disableBgpRoutePropagation

      public DisableBgpRoutePropagation disableBgpRoutePropagation()
      Get the disableBgpRoutePropagation property: Determines whether BGP route propagation is enabled. Defaults to true.
      Returns:
      the disableBgpRoutePropagation value.
    • withDisableBgpRoutePropagation

      public RoutingRuleCollectionPropertiesFormat withDisableBgpRoutePropagation(DisableBgpRoutePropagation disableBgpRoutePropagation)
      Set the disableBgpRoutePropagation property: Determines whether BGP route propagation is enabled. Defaults to true.
      Parameters:
      disableBgpRoutePropagation - the disableBgpRoutePropagation value to set.
      Returns:
      the RoutingRuleCollectionPropertiesFormat object itself.
    • 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<RoutingRuleCollectionPropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static RoutingRuleCollectionPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RoutingRuleCollectionPropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RoutingRuleCollectionPropertiesFormat 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 RoutingRuleCollectionPropertiesFormat.