VirtualNetworkGatewayInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. fluent. models. VirtualNetworkGatewayInner
- com.
- com.
- com.
public final class VirtualNetworkGatewayInner
extends Resource
A common class for general resource information.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkGatewayInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
active()
Get the active property: Active |
Admin |
adminState()
Get the admin |
Boolean |
allowRemoteVnetTraffic()
Get the allow |
Boolean |
allowVirtualWanTraffic()
Get the allow |
Virtual |
autoScaleConfiguration()
Get the auto |
Bgp |
bgpSettings()
Get the bgp |
Address |
customRoutes()
Get the custom |
Boolean |
disableIpSecReplayProtection()
Get the disable |
Boolean |
enableBgp()
Get the enable |
Boolean |
enableBgpRouteTranslationForNat()
Get the enable |
Boolean |
enableDnsForwarding()
Get the enable |
Boolean |
enablePrivateIpAddress()
Get the enable |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
Extended |
extendedLocation()
Get the extended |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Sub |
gatewayDefaultSite()
Get the gateway |
Virtual |
gatewayType()
Get the gateway |
String |
id()
Get the id property: Resource ID. |
Managed |
identity()
Get the identity property: The identity of the virtual network gateway, if configured. |
String |
inboundDnsForwardingEndpoint()
Get the inbound |
List<Virtual |
ipConfigurations()
Get the ip |
String |
name()
Get the name property: The name of the resource. |
List<Virtual |
natRules()
Get the nat |
Provisioning |
provisioningState()
Get the provisioning |
Resiliency |
resiliencyModel()
Get the resiliency |
String |
resourceGuid()
Get the resource |
Virtual |
sku()
Get the sku property: The reference to the Virtual |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
String |
vNetExtendedLocationResourceId()
Get the v |
void |
validate()
Validates the instance. |
List<Virtual |
virtualNetworkGatewayPolicyGroups()
Get the virtual |
Vpn |
vpnClientConfiguration()
Get the vpn |
Vpn |
vpnGatewayGeneration()
Get the vpn |
Vpn |
vpnType()
Get the vpn |
Virtual |
withActive(Boolean active)
Set the active property: Active |
Virtual |
withAdminState(AdminState adminState)
Set the admin |
Virtual |
withAllowRemoteVnetTraffic(Boolean allowRemoteVnetTraffic)
Set the allow |
Virtual |
withAllowVirtualWanTraffic(Boolean allowVirtualWanTraffic)
Set the allow |
Virtual |
withAutoScaleConfiguration(VirtualNetworkGatewayAutoScaleConfiguration autoScaleConfiguration)
Set the auto |
Virtual |
withBgpSettings(BgpSettings bgpSettings)
Set the bgp |
Virtual |
withCustomRoutes(AddressSpace customRoutes)
Set the custom |
Virtual |
withDisableIpSecReplayProtection(Boolean disableIpSecReplayProtection)
Set the disable |
Virtual |
withEnableBgp(Boolean enableBgp)
Set the enable |
Virtual |
withEnableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat)
Set the enable |
Virtual |
withEnableDnsForwarding(Boolean enableDnsForwarding)
Set the enable |
Virtual |
withEnablePrivateIpAddress(Boolean enablePrivateIpAddress)
Set the enable |
Virtual |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
Virtual |
withGatewayDefaultSite(SubResource gatewayDefaultSite)
Set the gateway |
Virtual |
withGatewayType(VirtualNetworkGatewayType gatewayType)
Set the gateway |
Virtual |
withId(String id)
Set the id property: Resource ID. |
Virtual |
withIdentity(ManagedServiceIdentity identity)
Set the identity property: The identity of the virtual network gateway, if configured. |
Virtual |
withIpConfigurations(List<VirtualNetworkGatewayIpConfigurationInner> ipConfigurations)
Set the ip |
Virtual |
withLocation(String location) |
Virtual |
withNatRules(List<VirtualNetworkGatewayNatRuleInner> natRules)
Set the nat |
Virtual |
withResiliencyModel(ResiliencyModel resiliencyModel)
Set the resiliency |
Virtual |
withSku(VirtualNetworkGatewaySku sku)
Set the sku property: The reference to the Virtual |
Virtual |
withTags(Map<String,String> tags) |
Virtual |
withVNetExtendedLocationResourceId(String vNetExtendedLocationResourceId)
Set the v |
Virtual |
withVirtualNetworkGatewayPolicyGroups(List<VirtualNetworkGatewayPolicyGroup> virtualNetworkGatewayPolicyGroups)
Set the virtual |
Virtual |
withVpnClientConfiguration(VpnClientConfiguration vpnClientConfiguration)
Set the vpn |
Virtual |
withVpnGatewayGeneration(VpnGatewayGeneration vpnGatewayGeneration)
Set the vpn |
Virtual |
withVpnType(VpnType vpnType)
Set the vpn |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkGatewayInner
public VirtualNetworkGatewayInner()
Creates an instance of VirtualNetworkGatewayInner class.
Method Details
active
public Boolean active()
Get the active property: ActiveActive flag.
Returns:
adminState
public AdminState 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:
allowRemoteVnetTraffic
public Boolean 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:
allowVirtualWanTraffic
public Boolean allowVirtualWanTraffic()
Get the allowVirtualWanTraffic property: Configures this gateway to accept traffic from remote Virtual WAN networks.
Returns:
autoScaleConfiguration
public VirtualNetworkGatewayAutoScaleConfiguration autoScaleConfiguration()
Get the autoScaleConfiguration property: Autoscale configuration for virutal network gateway.
Returns:
bgpSettings
public BgpSettings bgpSettings()
Get the bgpSettings property: Virtual network gateway's BGP speaker settings.
Returns:
customRoutes
public AddressSpace 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:
disableIpSecReplayProtection
public Boolean disableIpSecReplayProtection()
Get the disableIpSecReplayProtection property: disableIPSecReplayProtection flag.
Returns:
enableBgp
public Boolean enableBgp()
Get the enableBgp property: Whether BGP is enabled for this virtual network gateway or not.
Returns:
enableBgpRouteTranslationForNat
public Boolean enableBgpRouteTranslationForNat()
Get the enableBgpRouteTranslationForNat property: EnableBgpRouteTranslationForNat flag.
Returns:
enableDnsForwarding
public Boolean enableDnsForwarding()
Get the enableDnsForwarding property: Whether dns forwarding is enabled or not.
Returns:
enablePrivateIpAddress
public Boolean enablePrivateIpAddress()
Get the enablePrivateIpAddress property: Whether private IP needs to be enabled on this gateway for connections or not.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of type local virtual network gateway.
Returns:
fromJson
public static VirtualNetworkGatewayInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkGatewayInner from the JsonReader.
Parameters:
Returns:
Throws:
gatewayDefaultSite
public 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:
gatewayType
public VirtualNetworkGatewayType gatewayType()
Get the gatewayType property: The type of this virtual network gateway.
Returns:
id
public String id()
Get the id property: Resource ID.
Overrides:
VirtualNetworkGatewayInner.id()Returns:
identity
public ManagedServiceIdentity identity()
Get the identity property: The identity of the virtual network gateway, if configured.
Returns:
inboundDnsForwardingEndpoint
public String inboundDnsForwardingEndpoint()
Get the inboundDnsForwardingEndpoint property: The IP address allocated by the gateway to which dns requests can be sent.
Returns:
ipConfigurations
public List
Get the ipConfigurations property: IP configurations for virtual network gateway.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VirtualNetworkGatewayInner.name()Returns:
natRules
public List
Get the natRules property: NatRules for virtual network gateway.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the virtual network gateway resource.
Returns:
resiliencyModel
public ResiliencyModel resiliencyModel()
Get the resiliencyModel property: Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resource GUID property of the virtual network gateway resource.
Returns:
sku
public VirtualNetworkGatewaySku sku()
Get the sku property: The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualNetworkGatewayInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VirtualNetworkGatewayInner.type()Returns:
vNetExtendedLocationResourceId
public String vNetExtendedLocationResourceId()
Get the vNetExtendedLocationResourceId property: Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet.
Returns:
validate
public void validate()
Validates the instance.
virtualNetworkGatewayPolicyGroups
public List
Get the virtualNetworkGatewayPolicyGroups property: The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.
Returns:
vpnClientConfiguration
public VpnClientConfiguration vpnClientConfiguration()
Get the vpnClientConfiguration property: The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
Returns:
vpnGatewayGeneration
public VpnGatewayGeneration vpnGatewayGeneration()
Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN.
Returns:
vpnType
public VpnType vpnType()
Get the vpnType property: The type of this virtual network gateway.
Returns:
withActive
public VirtualNetworkGatewayInner withActive(Boolean active)
Set the active property: ActiveActive flag.
Parameters:
Returns:
withAdminState
public VirtualNetworkGatewayInner 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.
Parameters:
Returns:
withAllowRemoteVnetTraffic
public VirtualNetworkGatewayInner withAllowRemoteVnetTraffic(Boolean allowRemoteVnetTraffic)
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:
Returns:
withAllowVirtualWanTraffic
public VirtualNetworkGatewayInner withAllowVirtualWanTraffic(Boolean allowVirtualWanTraffic)
Set the allowVirtualWanTraffic property: Configures this gateway to accept traffic from remote Virtual WAN networks.
Parameters:
Returns:
withAutoScaleConfiguration
public VirtualNetworkGatewayInner withAutoScaleConfiguration(VirtualNetworkGatewayAutoScaleConfiguration autoScaleConfiguration)
Set the autoScaleConfiguration property: Autoscale configuration for virutal network gateway.
Parameters:
Returns:
withBgpSettings
public VirtualNetworkGatewayInner withBgpSettings(BgpSettings bgpSettings)
Set the bgpSettings property: Virtual network gateway's BGP speaker settings.
Parameters:
Returns:
withCustomRoutes
public VirtualNetworkGatewayInner 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.
Parameters:
Returns:
withDisableIpSecReplayProtection
public VirtualNetworkGatewayInner withDisableIpSecReplayProtection(Boolean disableIpSecReplayProtection)
Set the disableIpSecReplayProtection property: disableIPSecReplayProtection flag.
Parameters:
Returns:
withEnableBgp
public VirtualNetworkGatewayInner withEnableBgp(Boolean enableBgp)
Set the enableBgp property: Whether BGP is enabled for this virtual network gateway or not.
Parameters:
Returns:
withEnableBgpRouteTranslationForNat
public VirtualNetworkGatewayInner withEnableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat)
Set the enableBgpRouteTranslationForNat property: EnableBgpRouteTranslationForNat flag.
Parameters:
Returns:
withEnableDnsForwarding
public VirtualNetworkGatewayInner withEnableDnsForwarding(Boolean enableDnsForwarding)
Set the enableDnsForwarding property: Whether dns forwarding is enabled or not.
Parameters:
Returns:
withEnablePrivateIpAddress
public VirtualNetworkGatewayInner withEnablePrivateIpAddress(Boolean enablePrivateIpAddress)
Set the enablePrivateIpAddress property: Whether private IP needs to be enabled on this gateway for connections or not.
Parameters:
Returns:
withExtendedLocation
public VirtualNetworkGatewayInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extended location of type local virtual network gateway.
Parameters:
Returns:
withGatewayDefaultSite
public VirtualNetworkGatewayInner withGatewayDefaultSite(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:
Returns:
withGatewayType
public VirtualNetworkGatewayInner withGatewayType(VirtualNetworkGatewayType gatewayType)
Set the gatewayType property: The type of this virtual network gateway.
Parameters:
Returns:
withId
public VirtualNetworkGatewayInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withIdentity
public VirtualNetworkGatewayInner withIdentity(ManagedServiceIdentity identity)
Set the identity property: The identity of the virtual network gateway, if configured.
Parameters:
Returns:
withIpConfigurations
public VirtualNetworkGatewayInner withIpConfigurations(List
Set the ipConfigurations property: IP configurations for virtual network gateway.
Parameters:
Returns:
withLocation
public VirtualNetworkGatewayInner withLocation(String location)
Overrides:
VirtualNetworkGatewayInner.withLocation(String location)Parameters:
withNatRules
public VirtualNetworkGatewayInner withNatRules(List
Set the natRules property: NatRules for virtual network gateway.
Parameters:
Returns:
withResiliencyModel
public VirtualNetworkGatewayInner withResiliencyModel(ResiliencyModel resiliencyModel)
Set the resiliencyModel property: Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.
Parameters:
Returns:
withSku
public VirtualNetworkGatewayInner withSku(VirtualNetworkGatewaySku sku)
Set the sku property: The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
Parameters:
Returns:
withTags
public VirtualNetworkGatewayInner withTags(Map
Overrides:
VirtualNetworkGatewayInner.withTags(Map<String,String> tags)Parameters:
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:
Returns:
withVirtualNetworkGatewayPolicyGroups
public VirtualNetworkGatewayInner withVirtualNetworkGatewayPolicyGroups(List
Set the virtualNetworkGatewayPolicyGroups property: The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.
Parameters:
Returns:
withVpnClientConfiguration
public VirtualNetworkGatewayInner withVpnClientConfiguration(VpnClientConfiguration vpnClientConfiguration)
Set the vpnClientConfiguration property: The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
Parameters:
Returns:
withVpnGatewayGeneration
public VirtualNetworkGatewayInner withVpnGatewayGeneration(VpnGatewayGeneration vpnGatewayGeneration)
Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN.
Parameters:
Returns:
withVpnType
public VirtualNetworkGatewayInner withVpnType(VpnType vpnType)
Set the vpnType property: The type of this virtual network gateway.
Parameters:
Returns:
Applies to
Azure SDK for Java