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.

PortInfo

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

type PortInfo struct { FromPort *int64 `locationName:"fromPort" type:"integer"` Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` ToPort *int64 `locationName:"toPort" type:"integer"` }

Describes information about the ports on your virtual private server (or instance).

FromPort

Type: *int64

The first port in the range.

Protocol

Type: *string

The protocol.

ToPort

Type: *int64

The last port in the range.

Method

GoString

func (s PortInfo) GoString() string

GoString returns the string representation

SetFromPort

func (s *PortInfo) SetFromPort(v int64) *PortInfo

SetFromPort sets the FromPort field's value.

SetProtocol

func (s *PortInfo) SetProtocol(v string) *PortInfo

SetProtocol sets the Protocol field's value.

SetToPort

func (s *PortInfo) SetToPort(v int64) *PortInfo

SetToPort sets the ToPort field's value.

String

func (s PortInfo) String() string

String returns the string representation

On this page: