VirtualNetworkGatewayNatRuleInner Class

public final class VirtualNetworkGatewayNatRuleInner
extends SubResource

VirtualNetworkGatewayNatRule Resource.

Constructor Summary

Constructor Description
VirtualNetworkGatewayNatRuleInner()

Creates an instance of VirtualNetworkGatewayNatRuleInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

List<VpnNatRuleMapping> externalMappings()

Get the externalMappings property: The private IP address external mapping for NAT.

List<VpnNatRuleMapping> internalMappings()

Get the internalMappings property: The private IP address internal mapping for NAT.

String ipConfigurationId()

Get the ipConfigurationId property: The IP Configuration ID this NAT rule applies to.

VpnNatRuleMode mode()

Get the mode property: The Source NAT direction of a VPN NAT.

String name()

Get the name property: The name of the resource that is unique within a resource group.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the NAT Rule resource.

String type()

Get the type property: Resource type.

VpnNatRuleType typePropertiesType()

Get the type property: The type of NAT rule for VPN NAT.

void validate()

Validates the instance.

VirtualNetworkGatewayNatRuleInner withExternalMappings(List<VpnNatRuleMapping> externalMappings)

Set the externalMappings property: The private IP address external mapping for NAT.

VirtualNetworkGatewayNatRuleInner withId(String id)
VirtualNetworkGatewayNatRuleInner withInternalMappings(List<VpnNatRuleMapping> internalMappings)

Set the internalMappings property: The private IP address internal mapping for NAT.

VirtualNetworkGatewayNatRuleInner withIpConfigurationId(String ipConfigurationId)

Set the ipConfigurationId property: The IP Configuration ID this NAT rule applies to.

VirtualNetworkGatewayNatRuleInner withMode(VpnNatRuleMode mode)

Set the mode property: The Source NAT direction of a VPN NAT.

VirtualNetworkGatewayNatRuleInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

VirtualNetworkGatewayNatRuleInner withTypePropertiesType(VpnNatRuleType type)

Set the type property: The type of NAT rule for VPN NAT.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkGatewayNatRuleInner

public VirtualNetworkGatewayNatRuleInner()

Creates an instance of VirtualNetworkGatewayNatRuleInner class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

externalMappings

public List externalMappings()

Get the externalMappings property: The private IP address external mapping for NAT.

Returns:

the externalMappings value.

internalMappings

public List internalMappings()

Get the internalMappings property: The private IP address internal mapping for NAT.

Returns:

the internalMappings value.

ipConfigurationId

public String ipConfigurationId()

Get the ipConfigurationId property: The IP Configuration ID this NAT rule applies to.

Returns:

the ipConfigurationId value.

mode

public VpnNatRuleMode mode()

Get the mode property: The Source NAT direction of a VPN NAT.

Returns:

the mode value.

name

public String 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.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the NAT Rule resource.

Returns:

the provisioningState value.

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

typePropertiesType

public VpnNatRuleType typePropertiesType()

Get the type property: The type of NAT rule for VPN NAT.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withExternalMappings

public VirtualNetworkGatewayNatRuleInner withExternalMappings(List externalMappings)

Set the externalMappings property: The private IP address external mapping for NAT.

Parameters:

externalMappings - the externalMappings value to set.

Returns:

the VirtualNetworkGatewayNatRuleInner object itself.

withId

public VirtualNetworkGatewayNatRuleInner withId(String id)

Overrides:

VirtualNetworkGatewayNatRuleInner.withId(String id)

Parameters:

id

withInternalMappings

public VirtualNetworkGatewayNatRuleInner withInternalMappings(List internalMappings)

Set the internalMappings property: The private IP address internal mapping for NAT.

Parameters:

internalMappings - the internalMappings value to set.

Returns:

the VirtualNetworkGatewayNatRuleInner object itself.

withIpConfigurationId

public VirtualNetworkGatewayNatRuleInner withIpConfigurationId(String ipConfigurationId)

Set the ipConfigurationId property: The IP Configuration ID this NAT rule applies to.

Parameters:

ipConfigurationId - the ipConfigurationId value to set.

Returns:

the VirtualNetworkGatewayNatRuleInner object itself.

withMode

public VirtualNetworkGatewayNatRuleInner withMode(VpnNatRuleMode mode)

Set the mode property: The Source NAT direction of a VPN NAT.

Parameters:

mode - the mode value to set.

Returns:

the VirtualNetworkGatewayNatRuleInner object itself.

withName

public VirtualNetworkGatewayNatRuleInner withName(String name)

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 VirtualNetworkGatewayNatRuleInner object itself.

withTypePropertiesType

public VirtualNetworkGatewayNatRuleInner withTypePropertiesType(VpnNatRuleType type)

Set the type property: The type of NAT rule for VPN NAT.

Parameters:

type - the type value to set.

Returns:

the VirtualNetworkGatewayNatRuleInner object itself.

Applies to