Freigeben über


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 associated with the nat gateway resource.

List<SubResource> publicIpPrefixes()

Get the publicIpPrefixes property: An array of public ip prefixes 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.

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 associated with the nat gateway resource.

NatGatewayInner withPublicIpPrefixes(List<SubResource> publicIpPrefixes)

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

NatGatewayInner withSku(NatGatewaySku sku)

Set the sku property: The nat gateway SKU.

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 publicIpAddresses()

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

Returns:

the publicIpAddresses value.

publicIpPrefixes

public List publicIpPrefixes()

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

Returns:

the publicIpPrefixes 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.

subnets

public List 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 publicIpAddresses)

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

Parameters:

publicIpAddresses - the publicIpAddresses value to set.

Returns:

the NatGatewayInner object itself.

withPublicIpPrefixes

public NatGatewayInner withPublicIpPrefixes(List publicIpPrefixes)

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

Parameters:

publicIpPrefixes - the publicIpPrefixes 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.

withTags

public NatGatewayInner withTags(Map tags)

Overrides:

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

Parameters:

tags

withZones

public NatGatewayInner withZones(List 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 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