public class TopologyResource extends Object
| Constructor and Description |
|---|
TopologyResource() |
| Modifier and Type | Method and Description |
|---|---|
List<TopologyAssociation> |
associations()
Get holds the associations the resource has with other resources in the resource group.
|
String |
id()
Get iD of the resource.
|
String |
location()
Get resource location.
|
String |
name()
Get name of the resource.
|
TopologyResource |
withAssociations(List<TopologyAssociation> associations)
Set holds the associations the resource has with other resources in the resource group.
|
TopologyResource |
withId(String id)
Set iD of the resource.
|
TopologyResource |
withLocation(String location)
Set resource location.
|
TopologyResource |
withName(String name)
Set name of the resource.
|
public String name()
public TopologyResource withName(String name)
name - the name value to setpublic String id()
public TopologyResource withId(String id)
id - the id value to setpublic String location()
public TopologyResource withLocation(String location)
location - the location value to setpublic List<TopologyAssociation> associations()
public TopologyResource withAssociations(List<TopologyAssociation> associations)
associations - the associations value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/