TopologyAssociation Class

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

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 TopologyAssociation class.

Method Summary

Modifier and Type Method and Description
AssociationType associationType()

Get the associationType property: The association type of the child resource to the parent resource.

static TopologyAssociation fromJson(JsonReader jsonReader)

Reads an instance of TopologyAssociation from the JsonReader.

String name()

Get the name property: The name of the resource that is associated with the parent resource.

String resourceId()

Get the resourceId property: The ID of the resource that is associated with the parent resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TopologyAssociation withAssociationType(AssociationType associationType)

Set the associationType property: The association type of the child resource to the parent resource.

TopologyAssociation withName(String name)

Set the name property: The name of the resource that is associated with the parent resource.

TopologyAssociation withResourceId(String resourceId)

Set the resourceId property: The ID of the resource that is associated with the parent 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:

the associationType value.

fromJson

public static TopologyAssociation fromJson(JsonReader jsonReader)

Reads an instance of TopologyAssociation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource that is associated with the parent resource.

Returns:

the name value.

resourceId

public String resourceId()

Get the resourceId property: The ID of the resource that is associated with the parent resource.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

associationType - the associationType value to set.

Returns:

the TopologyAssociation object itself.

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.

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.

Applies to