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.

Task

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

type Task struct { ProgressPercent *int64 `type:"integer"` Status *string `type:"string" required:"true" enum:"Status"` StatusDetail *string `type:"string"` }

Task object encapsulating task information.

ProgressPercent

Type: *int64

Indication of the percentage completion of the task.

Status

Type: *string

Status of the task - Not Started, In-Progress, Complete.

Status is a required field

StatusDetail

Type: *string

Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state.

Method

GoString

func (s Task) GoString() string

GoString returns the string representation

SetProgressPercent

func (s *Task) SetProgressPercent(v int64) *Task

SetProgressPercent sets the ProgressPercent field's value.

SetStatus

func (s *Task) SetStatus(v string) *Task

SetStatus sets the Status field's value.

SetStatusDetail

func (s *Task) SetStatusDetail(v string) *Task

SetStatusDetail sets the StatusDetail field's value.

String

func (s Task) String() string

String returns the string representation

Validate

func (s *Task) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: