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.

Resource

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

type Resource struct { DisabledDate *time.Time `type:"timestamp"` Email *string `min:"1" type:"string"` EnabledDate *time.Time `type:"timestamp"` Id *string `min:"12" type:"string"` Name *string `min:"1" type:"string"` State *string `type:"string" enum:"EntityState"` Type *string `type:"string" enum:"ResourceType"` }

The overview for a resource containing relevant data regarding it.

DisabledDate

Type: *time.Time

The date indicating when the resource was disabled from Amazon WorkMail use.

Email

Type: *string

The email of the resource.

EnabledDate

Type: *time.Time

The date indicating when the resource was enabled for Amazon WorkMail use.

Id

Type: *string

The identifier of the resource.

Name

Type: *string

The name of the resource.

State

Type: *string

The state of the resource, which can be ENABLED, DISABLED, or DELETED.

Type

Type: *string

The type of the resource: equipment or room.

Method

GoString

func (s Resource) GoString() string

GoString returns the string representation

SetDisabledDate

func (s *Resource) SetDisabledDate(v time.Time) *Resource

SetDisabledDate sets the DisabledDate field's value.

SetEmail

func (s *Resource) SetEmail(v string) *Resource

SetEmail sets the Email field's value.

SetEnabledDate

func (s *Resource) SetEnabledDate(v time.Time) *Resource

SetEnabledDate sets the EnabledDate field's value.

SetId

func (s *Resource) SetId(v string) *Resource

SetId sets the Id field's value.

SetName

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

SetName sets the Name field's value.

SetState

func (s *Resource) SetState(v string) *Resource

SetState sets the State field's value.

SetType

func (s *Resource) SetType(v string) *Resource

SetType sets the Type field's value.

String

func (s Resource) String() string

String returns the string representation

On this page: