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.

DiskInfo

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

type DiskInfo struct { IsSystemDisk *bool `locationName:"isSystemDisk" type:"boolean"` Name *string `locationName:"name" type:"string"` Path *string `locationName:"path" type:"string"` SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` }

Describes a disk.

IsSystemDisk

Type: *bool

A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

Name

Type: *string

The disk name.

Path

Type: *string

The disk path.

SizeInGb

Type: *int64

The size of the disk in GB (e.g., 32).

Method

GoString

func (s DiskInfo) GoString() string

GoString returns the string representation

SetIsSystemDisk

func (s *DiskInfo) SetIsSystemDisk(v bool) *DiskInfo

SetIsSystemDisk sets the IsSystemDisk field's value.

SetName

func (s *DiskInfo) SetName(v string) *DiskInfo

SetName sets the Name field's value.

SetPath

func (s *DiskInfo) SetPath(v string) *DiskInfo

SetPath sets the Path field's value.

SetSizeInGb

func (s *DiskInfo) SetSizeInGb(v int64) *DiskInfo

SetSizeInGb sets the SizeInGb field's value.

String

func (s DiskInfo) String() string

String returns the string representation

On this page: