VirtualHubId Class

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

Implements

public final class VirtualHubId
implements JsonSerializable<VirtualHubId>

Virtual Hub identifier.

Constructor Summary

Constructor Description
VirtualHubId()

Creates an instance of VirtualHubId class.

Method Summary

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

Reads an instance of VirtualHubId from the JsonReader.

String id()

Get the id property: The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualHubId withId(String id)

Set the id property: The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed.

Methods inherited from java.lang.Object

Constructor Details

VirtualHubId

public VirtualHubId()

Creates an instance of VirtualHubId class.

Method Details

fromJson

public static VirtualHubId fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubId from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub resource and the ExpressRoute gateway resource reside in the same subscription.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public VirtualHubId withId(String id)

Set the id property: The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub resource and the ExpressRoute gateway resource reside in the same subscription.

Parameters:

id - the id value to set.

Returns:

the VirtualHubId object itself.

Applies to