public final class TopologyResource extends Object
| Constructor and Description |
|---|
TopologyResource() |
| Modifier and Type | Method and Description |
|---|---|
List<TopologyAssociation> |
associations()
Get the associations property: Holds the associations the resource has with other resources in the resource
group.
|
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.
|
void |
validate()
Validates the instance.
|
TopologyResource |
withAssociations(List<TopologyAssociation> associations)
Set the associations property: Holds the associations the resource has with other resources in the resource
group.
|
TopologyResource |
withId(String id)
Set the id property: ID of the resource.
|
TopologyResource |
withLocation(String location)
Set the location property: Resource location.
|
TopologyResource |
withName(String name)
Set the name property: Name of the resource.
|
public String name()
public TopologyResource withName(String name)
name - the name value to set.public String id()
public TopologyResource withId(String id)
id - the id value to set.public String location()
public TopologyResource withLocation(String location)
location - the location value to set.public List<TopologyAssociation> associations()
public TopologyResource withAssociations(List<TopologyAssociation> associations)
associations - the associations value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.