Class HubVirtualNetworkConnectionInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class HubVirtualNetworkConnectionInner
extends com.azure.core.management.SubResource
HubVirtualNetworkConnection Resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of HubVirtualNetworkConnectionInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.Get the enableInternetSecurity property: Enable internet security.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HubVirtualNetworkConnectionInner from the JsonReader.name()Get the name property: The name of the resource that is unique within a resource group.Get the provisioningState property: The provisioning state of the hub virtual network connection resource.com.azure.core.management.SubResourceGet the remoteVirtualNetwork property: Reference to the remote virtual network.Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit) Set the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.withAllowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways) Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.withEnableInternetSecurity(Boolean enableInternetSecurity) Set the enableInternetSecurity property: Enable internet security.Set the name property: The name of the resource that is unique within a resource group.withRemoteVirtualNetwork(com.azure.core.management.SubResource remoteVirtualNetwork) Set the remoteVirtualNetwork property: Reference to the remote virtual network.withRoutingConfiguration(RoutingConfiguration routingConfiguration) Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HubVirtualNetworkConnectionInner
public HubVirtualNetworkConnectionInner()Creates an instance of HubVirtualNetworkConnectionInner class.
-
-
Method Details
-
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.
-
withName
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.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
remoteVirtualNetwork
public com.azure.core.management.SubResource remoteVirtualNetwork()Get the remoteVirtualNetwork property: Reference to the remote virtual network.- Returns:
- the remoteVirtualNetwork value.
-
withRemoteVirtualNetwork
public HubVirtualNetworkConnectionInner withRemoteVirtualNetwork(com.azure.core.management.SubResource remoteVirtualNetwork) Set the remoteVirtualNetwork property: Reference to the remote virtual network.- Parameters:
remoteVirtualNetwork- the remoteVirtualNetwork value to set.- Returns:
- the HubVirtualNetworkConnectionInner object itself.
-
allowHubToRemoteVnetTransit
Get the allowHubToRemoteVnetTransit property: Deprecated: VirtualHub to RemoteVnet transit to enabled or not.- Returns:
- the allowHubToRemoteVnetTransit value.
-
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.
-
allowRemoteVnetToUseHubVnetGateways
Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.- Returns:
- the allowRemoteVnetToUseHubVnetGateways value.
-
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.
-
enableInternetSecurity
Get the enableInternetSecurity property: Enable internet security.- Returns:
- the enableInternetSecurity value.
-
withEnableInternetSecurity
Set the enableInternetSecurity property: Enable internet security.- Parameters:
enableInternetSecurity- the enableInternetSecurity value to set.- Returns:
- the HubVirtualNetworkConnectionInner object itself.
-
routingConfiguration
Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.- Returns:
- the routingConfiguration value.
-
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.
-
provisioningState
Get the provisioningState property: The provisioning state of the hub virtual network connection resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static HubVirtualNetworkConnectionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-