Class VirtualNetworkBgpCommunities

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

public final class VirtualNetworkBgpCommunities extends Object implements com.azure.json.JsonSerializable<VirtualNetworkBgpCommunities>
Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
  • Constructor Details

    • VirtualNetworkBgpCommunities

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

    • virtualNetworkCommunity

      public String virtualNetworkCommunity()
      Get the virtualNetworkCommunity property: The BGP community associated with the virtual network.
      Returns:
      the virtualNetworkCommunity value.
    • withVirtualNetworkCommunity

      public VirtualNetworkBgpCommunities withVirtualNetworkCommunity(String virtualNetworkCommunity)
      Set the virtualNetworkCommunity property: The BGP community associated with the virtual network.
      Parameters:
      virtualNetworkCommunity - the virtualNetworkCommunity value to set.
      Returns:
      the VirtualNetworkBgpCommunities object itself.
    • regionalCommunity

      public String regionalCommunity()
      Get the regionalCommunity property: The BGP community associated with the region of the virtual network.
      Returns:
      the regionalCommunity 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<VirtualNetworkBgpCommunities>
      Throws:
      IOException
    • fromJson

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