Class TopologyResource

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

public final class TopologyResource extends Object implements com.azure.json.JsonSerializable<TopologyResource>
The network resource topology information for the given resource group.
  • Constructor Details

    • TopologyResource

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

    • name

      public String name()
      Get the name property: Name of the resource.
      Returns:
      the name value.
    • withName

      public TopologyResource withName(String name)
      Set the name property: Name of the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the TopologyResource object itself.
    • id

      public String id()
      Get the id property: ID of the resource.
      Returns:
      the id value.
    • withId

      public TopologyResource withId(String id)
      Set the id property: ID of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the TopologyResource object itself.
    • location

      public String location()
      Get the location property: Resource location.
      Returns:
      the location value.
    • withLocation

      public TopologyResource withLocation(String location)
      Set the location property: Resource location.
      Parameters:
      location - the location value to set.
      Returns:
      the TopologyResource object itself.
    • associations

      public List<TopologyAssociation> associations()
      Get the associations property: Holds the associations the resource has with other resources in the resource group.
      Returns:
      the associations value.
    • withAssociations

      public TopologyResource withAssociations(List<TopologyAssociation> associations)
      Set the associations property: Holds the associations the resource has with other resources in the resource group.
      Parameters:
      associations - the associations value to set.
      Returns:
      the TopologyResource 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<TopologyResource>
      Throws:
      IOException
    • fromJson

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