HubVirtualNetworkConnectionInner Class

public final class HubVirtualNetworkConnectionInner
extends SubResource

HubVirtualNetworkConnection Resource.

Constructor Summary

Constructor Description
HubVirtualNetworkConnectionInner()

Creates an instance of HubVirtualNetworkConnectionInner class.

Method Summary

Modifier and Type Method and Description
Boolean allowHubToRemoteVnetTransit()

Get the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.

Boolean allowRemoteVnetToUseHubVnetGateways()

Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.

Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

String etag()

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

static HubVirtualNetworkConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of HubVirtualNetworkConnectionInner 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 hub virtual network connection resource.

SubResource remoteVirtualNetwork()

Get the remoteVirtualNetwork property: Reference to the remote virtual network.

RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HubVirtualNetworkConnectionInner withAllowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit)

Set the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.

HubVirtualNetworkConnectionInner withAllowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways)

Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.

HubVirtualNetworkConnectionInner withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

HubVirtualNetworkConnectionInner withId(String id)
HubVirtualNetworkConnectionInner withName(String name)

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

HubVirtualNetworkConnectionInner withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)

Set the remoteVirtualNetwork property: Reference to the remote virtual network.

HubVirtualNetworkConnectionInner withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

HubVirtualNetworkConnectionInner

public HubVirtualNetworkConnectionInner()

Creates an instance of HubVirtualNetworkConnectionInner class.

Method Details

allowHubToRemoteVnetTransit

public Boolean allowHubToRemoteVnetTransit()

Get the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.

Returns:

the allowHubToRemoteVnetTransit value.

allowRemoteVnetToUseHubVnetGateways

public Boolean allowRemoteVnetToUseHubVnetGateways()

Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.

Returns:

the allowRemoteVnetToUseHubVnetGateways value.

enableInternetSecurity

public Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

Returns:

the enableInternetSecurity 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 HubVirtualNetworkConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of HubVirtualNetworkConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 hub virtual network connection resource.

Returns:

the provisioningState value.

remoteVirtualNetwork

public SubResource remoteVirtualNetwork()

Get the remoteVirtualNetwork property: Reference to the remote virtual network.

Returns:

the remoteVirtualNetwork value.

routingConfiguration

public RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Returns:

the routingConfiguration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

HubVirtualNetworkConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowHubToRemoteVnetTransit

public HubVirtualNetworkConnectionInner withAllowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit)

Set the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.

Parameters:

allowHubToRemoteVnetTransit - the allowHubToRemoteVnetTransit value to set.

Returns:

the HubVirtualNetworkConnectionInner object itself.

withAllowRemoteVnetToUseHubVnetGateways

public HubVirtualNetworkConnectionInner withAllowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways)

Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.

Parameters:

allowRemoteVnetToUseHubVnetGateways - the allowRemoteVnetToUseHubVnetGateways value to set.

Returns:

the HubVirtualNetworkConnectionInner object itself.

withEnableInternetSecurity

public HubVirtualNetworkConnectionInner withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

Parameters:

enableInternetSecurity - the enableInternetSecurity value to set.

Returns:

the HubVirtualNetworkConnectionInner object itself.

withId

public HubVirtualNetworkConnectionInner withId(String id)

Overrides:

HubVirtualNetworkConnectionInner.withId(String id)

Parameters:

id

withName

public HubVirtualNetworkConnectionInner 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 HubVirtualNetworkConnectionInner object itself.

withRemoteVirtualNetwork

public HubVirtualNetworkConnectionInner withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)

Set the remoteVirtualNetwork property: Reference to the remote virtual network.

Parameters:

remoteVirtualNetwork - the remoteVirtualNetwork value to set.

Returns:

the HubVirtualNetworkConnectionInner object itself.

withRoutingConfiguration

public HubVirtualNetworkConnectionInner withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.

Parameters:

routingConfiguration - the routingConfiguration value to set.

Returns:

the HubVirtualNetworkConnectionInner object itself.

Applies to