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 Summary
Constructors Constructor Description TopologyResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TopologyAssociation>associations()Get the associations property: Holds the associations the resource has with other resources in the resource group.Stringid()Get the id property: ID of the resource.Stringlocation()Get the location property: Resource location.Stringname()Get the name property: Name of the resource.voidvalidate()Validates the instance.TopologyResourcewithAssociations(List<TopologyAssociation> associations)Set the associations property: Holds the associations the resource has with other resources in the resource group.TopologyResourcewithId(String id)Set the id property: ID of the resource.TopologyResourcewithLocation(String location)Set the location property: Resource location.TopologyResourcewithName(String name)Set the name property: Name of the resource.
-
-
-
Method Detail
-
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.
-
-