TopologyResource Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.TopologyResource

Implements

public final class TopologyResource
implements JsonSerializable<TopologyResource>

The network resource topology information for the given resource group.

Constructor Summary

Constructor Description
TopologyResource()

Creates an instance of TopologyResource class.

Method Summary

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.

static TopologyResource fromJson(JsonReader jsonReader)

Reads an instance of TopologyResource from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

TopologyResource

public TopologyResource()

Creates an instance of TopologyResource class.

Method Details

associations

public List associations()

Get the associations property: Holds the associations the resource has with other resources in the resource group.

Returns:

the associations value.

fromJson

public static TopologyResource fromJson(JsonReader jsonReader)

Reads an instance of TopologyResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TopologyResource 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 TopologyResource.

id

public String id()

Get the id property: ID of the resource.

Returns:

the id value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: Name of the resource.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAssociations

public TopologyResource withAssociations(List associations)

Set the associations property: Holds the associations the resource has with other resources in the resource group.

Parameters:

associations - the associations value to set.

Returns:

the TopologyResource object itself.

withId

public TopologyResource withId(String id)

Set the id property: ID of the resource.

Parameters:

id - the id value to set.

Returns:

the TopologyResource object itself.

withLocation

public TopologyResource withLocation(String location)

Set the location property: Resource location.

Parameters:

location - the location value to set.

Returns:

the TopologyResource object itself.

withName

public TopologyResource withName(String name)

Set the name property: Name of the resource.

Parameters:

name - the name value to set.

Returns:

the TopologyResource object itself.

Applies to