Class TopologyAssociation
- java.lang.Object
-
- com.azure.resourcemanager.network.models.TopologyAssociation
-
public final class TopologyAssociation extends Object
Resources that have an association with the parent resource.
-
-
Constructor Summary
Constructors Constructor Description TopologyAssociation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssociationTypeassociationType()Get the associationType property: The association type of the child resource to the parent resource.Stringname()Get the name property: The name of the resource that is associated with the parent resource.StringresourceId()Get the resourceId property: The ID of the resource that is associated with the parent resource.voidvalidate()Validates the instance.TopologyAssociationwithAssociationType(AssociationType associationType)Set the associationType property: The association type of the child resource to the parent resource.TopologyAssociationwithName(String name)Set the name property: The name of the resource that is associated with the parent resource.TopologyAssociationwithResourceId(String resourceId)Set the resourceId property: The ID of the resource that is associated with the parent resource.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the resource that is associated with the parent resource.- Returns:
- the name value.
-
withName
public TopologyAssociation withName(String name)
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
public String resourceId()
Get the resourceId property: The ID of the resource that is associated with the parent resource.- Returns:
- the resourceId value.
-
withResourceId
public TopologyAssociation withResourceId(String resourceId)
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
public AssociationType associationType()
Get the associationType property: The association type of the child resource to the parent resource.- Returns:
- the associationType value.
-
withAssociationType
public TopologyAssociation withAssociationType(AssociationType associationType)
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.
-
-