Class VirtualNetworkGatewayInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VirtualNetworkGatewayInner
extends com.azure.core.management.Resource
A common class for general resource information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkGatewayInner class. -
Method Summary
Modifier and TypeMethodDescriptionactive()Get the active property: ActiveActive flag.Get the adminState property: Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet.Get the allowRemoteVnetTraffic property: Configure this gateway to accept traffic from other Azure Virtual Networks.Get the allowVirtualWanTraffic property: Configures this gateway to accept traffic from remote Virtual WAN networks.Get the autoScaleConfiguration property: Autoscale configuration for virutal network gateway.Get the bgpSettings property: Virtual network gateway's BGP speaker settings.Get the customRoutes property: The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.Get the disableIpSecReplayProtection property: disableIPSecReplayProtection flag.Get the enableBgp property: Whether BGP is enabled for this virtual network gateway or not.Get the enableBgpRouteTranslationForNat property: EnableBgpRouteTranslationForNat flag.Get the enableDnsForwarding property: Whether dns forwarding is enabled or not.Get the enablePrivateIpAddress property: Whether private IP needs to be enabled on this gateway for connections or not.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the extendedLocation property: The extended location of type local virtual network gateway.static VirtualNetworkGatewayInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkGatewayInner from the JsonReader.com.azure.core.management.SubResourceGet the gatewayDefaultSite property: The reference to the LocalNetworkGateway resource which represents local network site having default routes.Get the gatewayType property: The type of this virtual network gateway.id()Get the id property: Resource ID.identity()Get the identity property: The identity of the virtual network gateway, if configured.Get the inboundDnsForwardingEndpoint property: The IP address allocated by the gateway to which dns requests can be sent.Get the ipConfigurations property: IP configurations for virtual network gateway.name()Get the name property: The name of the resource.natRules()Get the natRules property: NatRules for virtual network gateway.Get the provisioningState property: The provisioning state of the virtual network gateway resource.Get the resiliencyModel property: Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.Get the resourceGuid property: The resource GUID property of the virtual network gateway resource.sku()Get the sku property: The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Get the virtualNetworkGatewayPolicyGroups property: The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.Get the vNetExtendedLocationResourceId property: Customer vnet resource id.Get the vpnClientConfiguration property: The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway.vpnType()Get the vpnType property: The type of this virtual network gateway.withActive(Boolean active) Set the active property: ActiveActive flag.withAdminState(AdminState adminState) Set the adminState property: Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet.withAllowRemoteVnetTraffic(Boolean allowRemoteVnetTraffic) Set the allowRemoteVnetTraffic property: Configure this gateway to accept traffic from other Azure Virtual Networks.withAllowVirtualWanTraffic(Boolean allowVirtualWanTraffic) Set the allowVirtualWanTraffic property: Configures this gateway to accept traffic from remote Virtual WAN networks.withAutoScaleConfiguration(VirtualNetworkGatewayAutoScaleConfiguration autoScaleConfiguration) Set the autoScaleConfiguration property: Autoscale configuration for virutal network gateway.withBgpSettings(BgpSettings bgpSettings) Set the bgpSettings property: Virtual network gateway's BGP speaker settings.withCustomRoutes(AddressSpace customRoutes) Set the customRoutes property: The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.withDisableIpSecReplayProtection(Boolean disableIpSecReplayProtection) Set the disableIpSecReplayProtection property: disableIPSecReplayProtection flag.withEnableBgp(Boolean enableBgp) Set the enableBgp property: Whether BGP is enabled for this virtual network gateway or not.withEnableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat) Set the enableBgpRouteTranslationForNat property: EnableBgpRouteTranslationForNat flag.withEnableDnsForwarding(Boolean enableDnsForwarding) Set the enableDnsForwarding property: Whether dns forwarding is enabled or not.withEnablePrivateIpAddress(Boolean enablePrivateIpAddress) Set the enablePrivateIpAddress property: Whether private IP needs to be enabled on this gateway for connections or not.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of type local virtual network gateway.withGatewayDefaultSite(com.azure.core.management.SubResource gatewayDefaultSite) Set the gatewayDefaultSite property: The reference to the LocalNetworkGateway resource which represents local network site having default routes.withGatewayType(VirtualNetworkGatewayType gatewayType) Set the gatewayType property: The type of this virtual network gateway.Set the id property: Resource ID.withIdentity(ManagedServiceIdentity identity) Set the identity property: The identity of the virtual network gateway, if configured.withIpConfigurations(List<VirtualNetworkGatewayIpConfigurationInner> ipConfigurations) Set the ipConfigurations property: IP configurations for virtual network gateway.withLocation(String location) withNatRules(List<VirtualNetworkGatewayNatRuleInner> natRules) Set the natRules property: NatRules for virtual network gateway.withResiliencyModel(ResiliencyModel resiliencyModel) Set the resiliencyModel property: Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.Set the sku property: The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.withVirtualNetworkGatewayPolicyGroups(List<VirtualNetworkGatewayPolicyGroup> virtualNetworkGatewayPolicyGroups) Set the virtualNetworkGatewayPolicyGroups property: The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.withVNetExtendedLocationResourceId(String vNetExtendedLocationResourceId) Set the vNetExtendedLocationResourceId property: Customer vnet resource id.withVpnClientConfiguration(VpnClientConfiguration vpnClientConfiguration) Set the vpnClientConfiguration property: The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.withVpnGatewayGeneration(VpnGatewayGeneration vpnGatewayGeneration) Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway.withVpnType(VpnType vpnType) Set the vpnType property: The type of this virtual network gateway.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods 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
-
VirtualNetworkGatewayInner
public VirtualNetworkGatewayInner()Creates an instance of VirtualNetworkGatewayInner class.
-
-
Method Details
-
extendedLocation
Get the extendedLocation property: The extended location of type local virtual network gateway.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extended location of type local virtual network gateway.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
identity
Get the identity property: The identity of the virtual network gateway, if configured.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the virtual network gateway, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
autoScaleConfiguration
Get the autoScaleConfiguration property: Autoscale configuration for virutal network gateway.- Returns:
- the autoScaleConfiguration value.
-
withAutoScaleConfiguration
public VirtualNetworkGatewayInner withAutoScaleConfiguration(VirtualNetworkGatewayAutoScaleConfiguration autoScaleConfiguration) Set the autoScaleConfiguration property: Autoscale configuration for virutal network gateway.- Parameters:
autoScaleConfiguration- the autoScaleConfiguration value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
ipConfigurations
Get the ipConfigurations property: IP configurations for virtual network gateway.- Returns:
- the ipConfigurations value.
-
withIpConfigurations
public VirtualNetworkGatewayInner withIpConfigurations(List<VirtualNetworkGatewayIpConfigurationInner> ipConfigurations) Set the ipConfigurations property: IP configurations for virtual network gateway.- Parameters:
ipConfigurations- the ipConfigurations value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
gatewayType
Get the gatewayType property: The type of this virtual network gateway.- Returns:
- the gatewayType value.
-
withGatewayType
Set the gatewayType property: The type of this virtual network gateway.- Parameters:
gatewayType- the gatewayType value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
vpnType
Get the vpnType property: The type of this virtual network gateway.- Returns:
- the vpnType value.
-
withVpnType
Set the vpnType property: The type of this virtual network gateway.- Parameters:
vpnType- the vpnType value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
vpnGatewayGeneration
Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN.- Returns:
- the vpnGatewayGeneration value.
-
withVpnGatewayGeneration
public VirtualNetworkGatewayInner withVpnGatewayGeneration(VpnGatewayGeneration vpnGatewayGeneration) Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN.- Parameters:
vpnGatewayGeneration- the vpnGatewayGeneration value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
enableBgp
Get the enableBgp property: Whether BGP is enabled for this virtual network gateway or not.- Returns:
- the enableBgp value.
-
withEnableBgp
Set the enableBgp property: Whether BGP is enabled for this virtual network gateway or not.- Parameters:
enableBgp- the enableBgp value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
enablePrivateIpAddress
Get the enablePrivateIpAddress property: Whether private IP needs to be enabled on this gateway for connections or not.- Returns:
- the enablePrivateIpAddress value.
-
withEnablePrivateIpAddress
Set the enablePrivateIpAddress property: Whether private IP needs to be enabled on this gateway for connections or not.- Parameters:
enablePrivateIpAddress- the enablePrivateIpAddress value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
active
Get the active property: ActiveActive flag.- Returns:
- the active value.
-
withActive
Set the active property: ActiveActive flag.- Parameters:
active- the active value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
disableIpSecReplayProtection
Get the disableIpSecReplayProtection property: disableIPSecReplayProtection flag.- Returns:
- the disableIpSecReplayProtection value.
-
withDisableIpSecReplayProtection
public VirtualNetworkGatewayInner withDisableIpSecReplayProtection(Boolean disableIpSecReplayProtection) Set the disableIpSecReplayProtection property: disableIPSecReplayProtection flag.- Parameters:
disableIpSecReplayProtection- the disableIpSecReplayProtection value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
gatewayDefaultSite
public com.azure.core.management.SubResource gatewayDefaultSite()Get the gatewayDefaultSite property: The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.- Returns:
- the gatewayDefaultSite value.
-
withGatewayDefaultSite
public VirtualNetworkGatewayInner withGatewayDefaultSite(com.azure.core.management.SubResource gatewayDefaultSite) Set the gatewayDefaultSite property: The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.- Parameters:
gatewayDefaultSite- the gatewayDefaultSite value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
sku
Get the sku property: The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.- Returns:
- the sku value.
-
withSku
Set the sku property: The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.- Parameters:
sku- the sku value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
vpnClientConfiguration
Get the vpnClientConfiguration property: The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.- Returns:
- the vpnClientConfiguration value.
-
withVpnClientConfiguration
public VirtualNetworkGatewayInner withVpnClientConfiguration(VpnClientConfiguration vpnClientConfiguration) Set the vpnClientConfiguration property: The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.- Parameters:
vpnClientConfiguration- the vpnClientConfiguration value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
virtualNetworkGatewayPolicyGroups
Get the virtualNetworkGatewayPolicyGroups property: The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.- Returns:
- the virtualNetworkGatewayPolicyGroups value.
-
withVirtualNetworkGatewayPolicyGroups
public VirtualNetworkGatewayInner withVirtualNetworkGatewayPolicyGroups(List<VirtualNetworkGatewayPolicyGroup> virtualNetworkGatewayPolicyGroups) Set the virtualNetworkGatewayPolicyGroups property: The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.- Parameters:
virtualNetworkGatewayPolicyGroups- the virtualNetworkGatewayPolicyGroups value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
bgpSettings
Get the bgpSettings property: Virtual network gateway's BGP speaker settings.- Returns:
- the bgpSettings value.
-
withBgpSettings
Set the bgpSettings property: Virtual network gateway's BGP speaker settings.- Parameters:
bgpSettings- the bgpSettings value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
customRoutes
Get the customRoutes property: The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.- Returns:
- the customRoutes value.
-
withCustomRoutes
Set the customRoutes property: The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.- Parameters:
customRoutes- the customRoutes value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
resourceGuid
Get the resourceGuid property: The resource GUID property of the virtual network gateway resource.- Returns:
- the resourceGuid value.
-
provisioningState
Get the provisioningState property: The provisioning state of the virtual network gateway resource.- Returns:
- the provisioningState value.
-
enableDnsForwarding
Get the enableDnsForwarding property: Whether dns forwarding is enabled or not.- Returns:
- the enableDnsForwarding value.
-
withEnableDnsForwarding
Set the enableDnsForwarding property: Whether dns forwarding is enabled or not.- Parameters:
enableDnsForwarding- the enableDnsForwarding value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
inboundDnsForwardingEndpoint
Get the inboundDnsForwardingEndpoint property: The IP address allocated by the gateway to which dns requests can be sent.- Returns:
- the inboundDnsForwardingEndpoint value.
-
vNetExtendedLocationResourceId
Get the vNetExtendedLocationResourceId property: Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet.- Returns:
- the vNetExtendedLocationResourceId value.
-
withVNetExtendedLocationResourceId
public VirtualNetworkGatewayInner withVNetExtendedLocationResourceId(String vNetExtendedLocationResourceId) Set the vNetExtendedLocationResourceId property: Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet.- Parameters:
vNetExtendedLocationResourceId- the vNetExtendedLocationResourceId value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
natRules
Get the natRules property: NatRules for virtual network gateway.- Returns:
- the natRules value.
-
withNatRules
Set the natRules property: NatRules for virtual network gateway.- Parameters:
natRules- the natRules value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
enableBgpRouteTranslationForNat
Get the enableBgpRouteTranslationForNat property: EnableBgpRouteTranslationForNat flag.- Returns:
- the enableBgpRouteTranslationForNat value.
-
withEnableBgpRouteTranslationForNat
public VirtualNetworkGatewayInner withEnableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat) Set the enableBgpRouteTranslationForNat property: EnableBgpRouteTranslationForNat flag.- Parameters:
enableBgpRouteTranslationForNat- the enableBgpRouteTranslationForNat value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
allowVirtualWanTraffic
Get the allowVirtualWanTraffic property: Configures this gateway to accept traffic from remote Virtual WAN networks.- Returns:
- the allowVirtualWanTraffic value.
-
withAllowVirtualWanTraffic
Set the allowVirtualWanTraffic property: Configures this gateway to accept traffic from remote Virtual WAN networks.- Parameters:
allowVirtualWanTraffic- the allowVirtualWanTraffic value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
allowRemoteVnetTraffic
Get the allowRemoteVnetTraffic property: Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN.- Returns:
- the allowRemoteVnetTraffic value.
-
withAllowRemoteVnetTraffic
Set the allowRemoteVnetTraffic property: Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN.- Parameters:
allowRemoteVnetTraffic- the allowRemoteVnetTraffic value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
adminState
Get the adminState property: Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet.- Returns:
- the adminState value.
-
withAdminState
Set the adminState property: Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet.- Parameters:
adminState- the adminState value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
resiliencyModel
Get the resiliencyModel property: Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.- Returns:
- the resiliencyModel value.
-
withResiliencyModel
Set the resiliencyModel property: Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.- Parameters:
resiliencyModel- the resiliencyModel value to set.- Returns:
- the VirtualNetworkGatewayInner object itself.
-
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.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static VirtualNetworkGatewayInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualNetworkGatewayInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualNetworkGatewayInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VirtualNetworkGatewayInner.
-