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.

PortRange

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

type PortRange struct { From *int64 `locationName:"from" type:"integer"` To *int64 `locationName:"to" type:"integer"` }

Describes a range of ports.

From

Type: *int64

The first port in the range.

To

Type: *int64

The last port in the range.

Method

GoString

func (s PortRange) GoString() string

GoString returns the string representation

SetFrom

func (s *PortRange) SetFrom(v int64) *PortRange

SetFrom sets the From field's value.

SetTo

func (s *PortRange) SetTo(v int64) *PortRange

SetTo sets the To field's value.

String

func (s PortRange) String() string

String returns the string representation

On this page: