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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the associations property: Holds the associations the resource has with other resources in the resource group.static TopologyResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TopologyResource from the JsonReader.id()Get the id property: ID of the resource.location()Get the location property: Resource location.name()Get the name property: Name of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssociations(List<TopologyAssociation> associations) Set the associations property: Holds the associations the resource has with other resources in the resource group.Set the id property: ID of the resource.withLocation(String location) Set the location property: Resource location.Set the name property: Name of the resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TopologyResource
public TopologyResource()Creates an instance of TopologyResource class.
-
-
Method Details
-
name
Get the name property: Name of the resource.- Returns:
- the name value.
-
withName
Set the name property: Name of the resource.- Parameters:
name- the name value to set.- Returns:
- the TopologyResource object itself.
-
id
Get the id property: ID of the resource.- Returns:
- the id value.
-
withId
Set the id property: ID of the resource.- Parameters:
id- the id value to set.- Returns:
- the TopologyResource object itself.
-
location
Get the location property: Resource location.- Returns:
- the location value.
-
withLocation
Set the location property: Resource location.- Parameters:
location- the location value to set.- Returns:
- the TopologyResource object itself.
-
associations
Get the associations property: Holds the associations the resource has with other resources in the resource group.- Returns:
- the associations value.
-
withAssociations
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TopologyResource>- Throws:
IOException
-
fromJson
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.
-