Class TopologyAssociation
java.lang.Object
com.azure.resourcemanager.network.models.TopologyAssociation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TopologyAssociation>
public final class TopologyAssociation
extends Object
implements com.azure.json.JsonSerializable<TopologyAssociation>
Resources that have an association with the parent resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the associationType property: The association type of the child resource to the parent resource.static TopologyAssociationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TopologyAssociation from the JsonReader.name()Get the name property: The name of the resource that is associated with the parent resource.Get the resourceId property: The ID of the resource that is associated with the parent resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssociationType(AssociationType associationType) Set the associationType property: The association type of the child resource to the parent resource.Set the name property: The name of the resource that is associated with the parent resource.withResourceId(String resourceId) Set the resourceId property: The ID of the resource that is associated with the parent 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
-
TopologyAssociation
public TopologyAssociation()Creates an instance of TopologyAssociation class.
-
-
Method Details
-
name
Get the name property: The name of the resource that is associated with the parent resource.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource that is associated with the parent resource.- Parameters:
name- the name value to set.- Returns:
- the TopologyAssociation object itself.
-
resourceId
Get the resourceId property: The ID of the resource that is associated with the parent resource.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The ID of the resource that is associated with the parent resource.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the TopologyAssociation object itself.
-
associationType
Get the associationType property: The association type of the child resource to the parent resource.- Returns:
- the associationType value.
-
withAssociationType
Set the associationType property: The association type of the child resource to the parent resource.- Parameters:
associationType- the associationType value to set.- Returns:
- the TopologyAssociation 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<TopologyAssociation>- Throws:
IOException
-
fromJson
Reads an instance of TopologyAssociation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TopologyAssociation 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 TopologyAssociation.
-