AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

NatGatewayAddress

import "github.com/aws/aws-sdk-go/service/ec2"

type NatGatewayAddress struct { AllocationId *string `locationName:"allocationId" type:"string"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` PrivateIp *string `locationName:"privateIp" type:"string"` PublicIp *string `locationName:"publicIp" type:"string"` }

Describes the IP addresses and network interface associated with a NAT gateway.

AllocationId

Type: *string

The allocation ID of the Elastic IP address that's associated with the NAT gateway.

NetworkInterfaceId

Type: *string

The ID of the network interface associated with the NAT gateway.

PrivateIp

Type: *string

The private IP address associated with the Elastic IP address.

PublicIp

Type: *string

The Elastic IP address associated with the NAT gateway.

Method

GoString

func (s NatGatewayAddress) GoString() string

GoString returns the string representation

SetAllocationId

func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress

SetAllocationId sets the AllocationId field's value.

SetNetworkInterfaceId

func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetPrivateIp

func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress

SetPrivateIp sets the PrivateIp field's value.

SetPublicIp

func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress

SetPublicIp sets the PublicIp field's value.

String

func (s NatGatewayAddress) String() string

String returns the string representation

On this page: