Class TopologyResource

java.lang.Object
com.azure.resourcemanager.network.models.TopologyResource

public final class TopologyResource extends Object
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.