VpnGatewayInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. fluent. models. VpnGatewayInner
- com.
- com.
- com.
public final class VpnGatewayInner
extends Resource
VpnGateway Resource.
Constructor Summary
Constructor | Description |
---|---|
VpnGatewayInner() |
Creates an instance of Vpn |
Method Summary
Modifier and Type | Method and Description |
---|---|
Bgp |
bgpSettings()
Get the bgp |
List<Vpn |
connections()
Get the connections property: List of all vpn connections to the gateway. |
Boolean |
enableBgpRouteTranslationForNat()
Get the enable |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Vpn |
fromJson(JsonReader jsonReader)
Reads an instance of Vpn |
String |
id()
Get the id property: Resource ID. |
List<Vpn |
ipConfigurations()
Get the ip |
Boolean |
isRoutingPreferenceInternet()
Get the is |
String |
name()
Get the name property: The name of the resource. |
List<Vpn |
natRules()
Get the nat |
Provisioning |
provisioningState()
Get the provisioning |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Sub |
virtualHub()
Get the virtual |
Integer |
vpnGatewayScaleUnit()
Get the vpn |
Vpn |
withBgpSettings(BgpSettings bgpSettings)
Set the bgp |
Vpn |
withConnections(List<VpnConnectionInner> connections)
Set the connections property: List of all vpn connections to the gateway. |
Vpn |
withEnableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat)
Set the enable |
Vpn |
withId(String id)
Set the id property: Resource ID. |
Vpn |
withIsRoutingPreferenceInternet(Boolean isRoutingPreferenceInternet)
Set the is |
Vpn |
withLocation(String location) |
Vpn |
withNatRules(List<VpnGatewayNatRuleInner> natRules)
Set the nat |
Vpn |
withTags(Map<String,String> tags) |
Vpn |
withVirtualHub(SubResource virtualHub)
Set the virtual |
Vpn |
withVpnGatewayScaleUnit(Integer vpnGatewayScaleUnit)
Set the vpn |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VpnGatewayInner
public VpnGatewayInner()
Creates an instance of VpnGatewayInner class.
Method Details
bgpSettings
public BgpSettings bgpSettings()
Get the bgpSettings property: Local network gateway's BGP speaker settings.
Returns:
connections
public List
Get the connections property: List of all vpn connections to the gateway.
Returns:
enableBgpRouteTranslationForNat
public Boolean enableBgpRouteTranslationForNat()
Get the enableBgpRouteTranslationForNat property: Enable BGP routes translation for NAT on this VpnGateway.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static VpnGatewayInner fromJson(JsonReader jsonReader)
Reads an instance of VpnGatewayInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID.
Overrides:
VpnGatewayInner.id()Returns:
ipConfigurations
public List
Get the ipConfigurations property: List of all IPs configured on the gateway.
Returns:
isRoutingPreferenceInternet
public Boolean isRoutingPreferenceInternet()
Get the isRoutingPreferenceInternet property: Enable Routing Preference property for the Public IP Interface of the VpnGateway.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VpnGatewayInner.name()Returns:
natRules
public List
Get the natRules property: List of all the nat Rules associated with the gateway.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the VPN gateway resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VpnGatewayInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VpnGatewayInner.type()Returns:
validate
public void validate()
Validates the instance.
virtualHub
public SubResource virtualHub()
Get the virtualHub property: The VirtualHub to which the gateway belongs.
Returns:
vpnGatewayScaleUnit
public Integer vpnGatewayScaleUnit()
Get the vpnGatewayScaleUnit property: The scale unit for this vpn gateway.
Returns:
withBgpSettings
public VpnGatewayInner withBgpSettings(BgpSettings bgpSettings)
Set the bgpSettings property: Local network gateway's BGP speaker settings.
Parameters:
Returns:
withConnections
public VpnGatewayInner withConnections(List
Set the connections property: List of all vpn connections to the gateway.
Parameters:
Returns:
withEnableBgpRouteTranslationForNat
public VpnGatewayInner withEnableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat)
Set the enableBgpRouteTranslationForNat property: Enable BGP routes translation for NAT on this VpnGateway.
Parameters:
Returns:
withId
public VpnGatewayInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withIsRoutingPreferenceInternet
public VpnGatewayInner withIsRoutingPreferenceInternet(Boolean isRoutingPreferenceInternet)
Set the isRoutingPreferenceInternet property: Enable Routing Preference property for the Public IP Interface of the VpnGateway.
Parameters:
Returns:
withLocation
public VpnGatewayInner withLocation(String location)
Overrides:
VpnGatewayInner.withLocation(String location)Parameters:
withNatRules
public VpnGatewayInner withNatRules(List
Set the natRules property: List of all the nat Rules associated with the gateway.
Parameters:
Returns:
withTags
public VpnGatewayInner withTags(Map
Overrides:
VpnGatewayInner.withTags(Map<String,String> tags)Parameters:
withVirtualHub
public VpnGatewayInner withVirtualHub(SubResource virtualHub)
Set the virtualHub property: The VirtualHub to which the gateway belongs.
Parameters:
Returns:
withVpnGatewayScaleUnit
public VpnGatewayInner withVpnGatewayScaleUnit(Integer vpnGatewayScaleUnit)
Set the vpnGatewayScaleUnit property: The scale unit for this vpn gateway.
Parameters:
Returns:
Applies to
Azure SDK for Java