TopologyResource Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. TopologyResource
- com.
Implements
public final class TopologyResource
implements JsonSerializable<TopologyResource>
The network resource topology information for the given resource group.
Constructor Summary
Constructor | Description |
---|---|
TopologyResource() |
Creates an instance of Topology |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Topology |
associations()
Get the associations property: Holds the associations the resource has with other resources in the resource group. |
static
Topology |
fromJson(JsonReader jsonReader)
Reads an instance of Topology |
String |
id()
Get the id property: ID of the resource. |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: Name of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Topology |
withAssociations(List<TopologyAssociation> associations)
Set the associations property: Holds the associations the resource has with other resources in the resource group. |
Topology |
withId(String id)
Set the id property: ID of the resource. |
Topology |
withLocation(String location)
Set the location property: Resource location. |
Topology |
withName(String name)
Set the name property: Name of the resource. |
Methods inherited from java.lang.Object
Constructor Details
TopologyResource
public TopologyResource()
Creates an instance of TopologyResource class.
Method Details
associations
public List
Get the associations property: Holds the associations the resource has with other resources in the resource group.
Returns:
fromJson
public static TopologyResource fromJson(JsonReader jsonReader)
Reads an instance of TopologyResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: ID of the resource.
Returns:
location
public String location()
Get the location property: Resource location.
Returns:
name
public String name()
Get the name property: Name of the resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAssociations
public TopologyResource withAssociations(List
Set the associations property: Holds the associations the resource has with other resources in the resource group.
Parameters:
Returns:
withId
public TopologyResource withId(String id)
Set the id property: ID of the resource.
Parameters:
Returns:
withLocation
public TopologyResource withLocation(String location)
Set the location property: Resource location.
Parameters:
Returns:
withName
public TopologyResource withName(String name)
Set the name property: Name of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java