TopologyAssociation Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. TopologyAssociation
- com.
Implements
public final class TopologyAssociation
implements JsonSerializable<TopologyAssociation>
Resources that have an association with the parent resource.
Constructor Summary
Constructor | Description |
---|---|
TopologyAssociation() |
Creates an instance of Topology |
Method Summary
Modifier and Type | Method and Description |
---|---|
Association |
associationType()
Get the association |
static
Topology |
fromJson(JsonReader jsonReader)
Reads an instance of Topology |
String |
name()
Get the name property: The name of the resource that is associated with the parent resource. |
String |
resourceId()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Topology |
withAssociationType(AssociationType associationType)
Set the association |
Topology |
withName(String name)
Set the name property: The name of the resource that is associated with the parent resource. |
Topology |
withResourceId(String resourceId)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
TopologyAssociation
public TopologyAssociation()
Creates an instance of TopologyAssociation class.
Method Details
associationType
public AssociationType associationType()
Get the associationType property: The association type of the child resource to the parent resource.
Returns:
fromJson
public static TopologyAssociation fromJson(JsonReader jsonReader)
Reads an instance of TopologyAssociation from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the resource that is associated with the parent resource.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource that is associated with the parent resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAssociationType
public TopologyAssociation withAssociationType(AssociationType associationType)
Set the associationType property: The association type of the child resource to the parent resource.
Parameters:
Returns:
withName
public TopologyAssociation withName(String name)
Set the name property: The name of the resource that is associated with the parent resource.
Parameters:
Returns:
withResourceId
public TopologyAssociation withResourceId(String resourceId)
Set the resourceId property: The ID of the resource that is associated with the parent resource.
Parameters:
Returns:
Applies to
Azure SDK for Java