HubVirtualNetworkConnectionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionProperties

Implements

public final class HubVirtualNetworkConnectionProperties
implements JsonSerializable<HubVirtualNetworkConnectionProperties>

Parameters for HubVirtualNetworkConnection.

Constructor Summary

Constructor Description
HubVirtualNetworkConnectionProperties()

Creates an instance of HubVirtualNetworkConnectionProperties 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.

SubResource connectionPolicy()

Get the connectionPolicy property: The resource id of the ConnectionPolicy associated with this HubVirtualNetworkConnection.

Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

static HubVirtualNetworkConnectionProperties fromJson(JsonReader jsonReader)

Reads an instance of HubVirtualNetworkConnectionProperties from the JsonReader.

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.

HubVirtualNetworkConnectionProperties withAllowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit)

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

HubVirtualNetworkConnectionProperties withAllowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways)

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

HubVirtualNetworkConnectionProperties withConnectionPolicy(SubResource connectionPolicy)

Set the connectionPolicy property: The resource id of the ConnectionPolicy associated with this HubVirtualNetworkConnection.

HubVirtualNetworkConnectionProperties withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

HubVirtualNetworkConnectionProperties withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)

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

HubVirtualNetworkConnectionProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)

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

Methods inherited from java.lang.Object

Constructor Details

HubVirtualNetworkConnectionProperties

public HubVirtualNetworkConnectionProperties()

Creates an instance of HubVirtualNetworkConnectionProperties 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.

connectionPolicy

public SubResource connectionPolicy()

Get the connectionPolicy property: The resource id of the ConnectionPolicy associated with this HubVirtualNetworkConnection.

Returns:

the connectionPolicy value.

enableInternetSecurity

public Boolean enableInternetSecurity()

Get the enableInternetSecurity property: Enable internet security.

Returns:

the enableInternetSecurity value.

fromJson

public static HubVirtualNetworkConnectionProperties fromJson(JsonReader jsonReader)

Reads an instance of HubVirtualNetworkConnectionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowHubToRemoteVnetTransit

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

withAllowRemoteVnetToUseHubVnetGateways

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

withConnectionPolicy

public HubVirtualNetworkConnectionProperties withConnectionPolicy(SubResource connectionPolicy)

Set the connectionPolicy property: The resource id of the ConnectionPolicy associated with this HubVirtualNetworkConnection.

Parameters:

connectionPolicy - the connectionPolicy value to set.

Returns:

the HubVirtualNetworkConnectionProperties object itself.

withEnableInternetSecurity

public HubVirtualNetworkConnectionProperties withEnableInternetSecurity(Boolean enableInternetSecurity)

Set the enableInternetSecurity property: Enable internet security.

Parameters:

enableInternetSecurity - the enableInternetSecurity value to set.

Returns:

the HubVirtualNetworkConnectionProperties object itself.

withRemoteVirtualNetwork

public HubVirtualNetworkConnectionProperties withRemoteVirtualNetwork(SubResource remoteVirtualNetwork)

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

Parameters:

remoteVirtualNetwork - the remoteVirtualNetwork value to set.

Returns:

the HubVirtualNetworkConnectionProperties object itself.

withRoutingConfiguration

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

Applies to