Condividi tramite


NatGatewayInner Class

public final class NatGatewayInner
extends Resource

Nat Gateway resource.

Constructor Summary

Constructor Description
NatGatewayInner()

Creates an instance of NatGatewayInner 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.

static NatGatewayInner fromJson(JsonReader jsonReader)

Reads an instance of NatGatewayInner from the JsonReader.

String id()

Get the id property: Resource ID.

Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The idle timeout of the nat gateway.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

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

List<SubResource> publicIpAddresses()

Get the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.

List<SubResource> publicIpAddressesV6()

Get the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.

List<SubResource> publicIpPrefixes()

Get the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.

List<SubResource> publicIpPrefixesV6()

Get the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the NAT gateway resource.

NatGatewaySku sku()

Get the sku property: The nat gateway SKU.

SubResource sourceVirtualNetwork()

Get the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.

List<SubResource> subnets()

Get the subnets property: An array of references to the subnets using this nat gateway resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

NatGatewayInner withId(String id)

Set the id property: Resource ID.

NatGatewayInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The idle timeout of the nat gateway.

NatGatewayInner withLocation(String location)
NatGatewayInner withPublicIpAddresses(List<SubResource> publicIpAddresses)

Set the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.

NatGatewayInner withPublicIpAddressesV6(List<SubResource> publicIpAddressesV6)

Set the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.

NatGatewayInner withPublicIpPrefixes(List<SubResource> publicIpPrefixes)

Set the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.

NatGatewayInner withPublicIpPrefixesV6(List<SubResource> publicIpPrefixesV6)

Set the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.

NatGatewayInner withSku(NatGatewaySku sku)

Set the sku property: The nat gateway SKU.

NatGatewayInner withSourceVirtualNetwork(SubResource sourceVirtualNetwork)

Set the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.

NatGatewayInner withTags(Map<String,String> tags)
NatGatewayInner withZones(List<String> zones)

Set the zones property: A list of availability zones denoting the zone in which Nat Gateway should be deployed.

List<String> zones()

Get the zones property: A list of availability zones denoting the zone in which Nat Gateway should be deployed.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

NatGatewayInner

public NatGatewayInner()

Creates an instance of NatGatewayInner 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.

fromJson

public static NatGatewayInner fromJson(JsonReader jsonReader)

Reads an instance of NatGatewayInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NatGatewayInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

NatGatewayInner.id()

Returns:

the id value.

idleTimeoutInMinutes

public Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The idle timeout of the nat gateway.

Returns:

the idleTimeoutInMinutes value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

NatGatewayInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

publicIpAddresses

public List<SubResource> publicIpAddresses()

Get the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.

Returns:

the publicIpAddresses value.

publicIpAddressesV6

public List<SubResource> publicIpAddressesV6()

Get the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.

Returns:

the publicIpAddressesV6 value.

publicIpPrefixes

public List<SubResource> publicIpPrefixes()

Get the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.

Returns:

the publicIpPrefixes value.

publicIpPrefixesV6

public List<SubResource> publicIpPrefixesV6()

Get the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.

Returns:

the publicIpPrefixesV6 value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the NAT gateway resource.

Returns:

the resourceGuid value.

sku

public NatGatewaySku sku()

Get the sku property: The nat gateway SKU.

Returns:

the sku value.

sourceVirtualNetwork

public SubResource sourceVirtualNetwork()

Get the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.

Returns:

the sourceVirtualNetwork value.

subnets

public List<SubResource> subnets()

Get the subnets property: An array of references to the subnets using this nat gateway resource.

Returns:

the subnets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NatGatewayInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

NatGatewayInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public NatGatewayInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the NatGatewayInner object itself.

withIdleTimeoutInMinutes

public NatGatewayInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The idle timeout of the nat gateway.

Parameters:

idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.

Returns:

the NatGatewayInner object itself.

withLocation

public NatGatewayInner withLocation(String location)

Overrides:

NatGatewayInner.withLocation(String location)

Parameters:

location

withPublicIpAddresses

public NatGatewayInner withPublicIpAddresses(List<SubResource> publicIpAddresses)

Set the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.

Parameters:

publicIpAddresses - the publicIpAddresses value to set.

Returns:

the NatGatewayInner object itself.

withPublicIpAddressesV6

public NatGatewayInner withPublicIpAddressesV6(List<SubResource> publicIpAddressesV6)

Set the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.

Parameters:

publicIpAddressesV6 - the publicIpAddressesV6 value to set.

Returns:

the NatGatewayInner object itself.

withPublicIpPrefixes

public NatGatewayInner withPublicIpPrefixes(List<SubResource> publicIpPrefixes)

Set the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.

Parameters:

publicIpPrefixes - the publicIpPrefixes value to set.

Returns:

the NatGatewayInner object itself.

withPublicIpPrefixesV6

public NatGatewayInner withPublicIpPrefixesV6(List<SubResource> publicIpPrefixesV6)

Set the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.

Parameters:

publicIpPrefixesV6 - the publicIpPrefixesV6 value to set.

Returns:

the NatGatewayInner object itself.

withSku

public NatGatewayInner withSku(NatGatewaySku sku)

Set the sku property: The nat gateway SKU.

Parameters:

sku - the sku value to set.

Returns:

the NatGatewayInner object itself.

withSourceVirtualNetwork

public NatGatewayInner withSourceVirtualNetwork(SubResource sourceVirtualNetwork)

Set the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.

Parameters:

sourceVirtualNetwork - the sourceVirtualNetwork value to set.

Returns:

the NatGatewayInner object itself.

withTags

public NatGatewayInner withTags(Map<String,String> tags)

Overrides:

NatGatewayInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public NatGatewayInner withZones(List<String> zones)

Set the zones property: A list of availability zones denoting the zone in which Nat Gateway should be deployed.

Parameters:

zones - the zones value to set.

Returns:

the NatGatewayInner object itself.

zones

public List<String> zones()

Get the zones property: A list of availability zones denoting the zone in which Nat Gateway should be deployed.

Returns:

the zones value.

Applies to