InterconnectGroupProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.InterconnectGroupProfile

Implements

public final class InterconnectGroupProfile
implements JsonSerializable<InterconnectGroupProfile>

Specifies the interconnect group profile for a virtual machine, used to associate the VM with an interconnect group and subgroups.

Constructor Summary

Constructor Description
InterconnectGroupProfile()

Creates an instance of InterconnectGroupProfile class.

Method Summary

Modifier and Type Method and Description
static InterconnectGroupProfile fromJson(JsonReader jsonReader)

Reads an instance of InterconnectGroupProfile from the JsonReader.

SubResource interconnectGroup()

Get the interconnectGroup property: Reference to the interconnect group resource.

List<SubResource> subgroups()

Get the subgroups property: The list of subgroup references within the interconnect group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InterconnectGroupProfile withInterconnectGroup(SubResource interconnectGroup)

Set the interconnectGroup property: Reference to the interconnect group resource.

InterconnectGroupProfile withSubgroups(List<SubResource> subgroups)

Set the subgroups property: The list of subgroup references within the interconnect group.

Methods inherited from java.lang.Object

Constructor Details

InterconnectGroupProfile

public InterconnectGroupProfile()

Creates an instance of InterconnectGroupProfile class.

Method Details

fromJson

public static InterconnectGroupProfile fromJson(JsonReader jsonReader)

Reads an instance of InterconnectGroupProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

interconnectGroup

public SubResource interconnectGroup()

Get the interconnectGroup property: Reference to the interconnect group resource.

Returns:

the interconnectGroup value.

subgroups

public List<SubResource> subgroups()

Get the subgroups property: The list of subgroup references within the interconnect group.

Returns:

the subgroups value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInterconnectGroup

public InterconnectGroupProfile withInterconnectGroup(SubResource interconnectGroup)

Set the interconnectGroup property: Reference to the interconnect group resource.

Parameters:

interconnectGroup - the interconnectGroup value to set.

Returns:

the InterconnectGroupProfile object itself.

withSubgroups

public InterconnectGroupProfile withSubgroups(List<SubResource> subgroups)

Set the subgroups property: The list of subgroup references within the interconnect group.

Parameters:

subgroups - the subgroups value to set.

Returns:

the InterconnectGroupProfile object itself.

Applies to