VirtualHubRouteTableV2Inner Class

public final class VirtualHubRouteTableV2Inner
extends SubResource

VirtualHubRouteTableV2 Resource.

Constructor Summary

Constructor Description
VirtualHubRouteTableV2Inner()

Creates an instance of VirtualHubRouteTableV2Inner class.

Method Summary

Modifier and Type Method and Description
List<String> attachedConnections()

Get the attachedConnections property: List of all connections attached to this route table v2.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static VirtualHubRouteTableV2Inner fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRouteTableV2Inner from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within a resource group.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual hub route table v2 resource.

List<VirtualHubRouteV2> routes()

Get the routes property: List of all routes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualHubRouteTableV2Inner withAttachedConnections(List<String> attachedConnections)

Set the attachedConnections property: List of all connections attached to this route table v2.

VirtualHubRouteTableV2Inner withId(String id)
VirtualHubRouteTableV2Inner withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

VirtualHubRouteTableV2Inner withRoutes(List<VirtualHubRouteV2> routes)

Set the routes property: List of all routes.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VirtualHubRouteTableV2Inner

public VirtualHubRouteTableV2Inner()

Creates an instance of VirtualHubRouteTableV2Inner class.

Method Details

attachedConnections

public List<String> attachedConnections()

Get the attachedConnections property: List of all connections attached to this route table v2.

Returns:

the attachedConnections value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static VirtualHubRouteTableV2Inner fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRouteTableV2Inner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual hub route table v2 resource.

Returns:

the provisioningState value.

routes

public List<VirtualHubRouteV2> routes()

Get the routes property: List of all routes.

Returns:

the routes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualHubRouteTableV2Inner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAttachedConnections

public VirtualHubRouteTableV2Inner withAttachedConnections(List<String> attachedConnections)

Set the attachedConnections property: List of all connections attached to this route table v2.

Parameters:

attachedConnections - the attachedConnections value to set.

Returns:

the VirtualHubRouteTableV2Inner object itself.

withId

public VirtualHubRouteTableV2Inner withId(String id)

Overrides:

VirtualHubRouteTableV2Inner.withId(String id)

Parameters:

id

withName

public VirtualHubRouteTableV2Inner withName(String name)

Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the VirtualHubRouteTableV2Inner object itself.

withRoutes

public VirtualHubRouteTableV2Inner withRoutes(List<VirtualHubRouteV2> routes)

Set the routes property: List of all routes.

Parameters:

routes - the routes value to set.

Returns:

the VirtualHubRouteTableV2Inner object itself.

Applies to