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.

User

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

type User struct { DisabledDate *time.Time `type:"timestamp"` DisplayName *string `type:"string"` 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"` UserRole *string `type:"string" enum:"UserRole"` }

The representation of an Amazon WorkMail user.

DisabledDate

Type: *time.Time

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

DisplayName

Type: *string

The display name of the user.

Email

Type: *string

The email of the user.

EnabledDate

Type: *time.Time

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

Id

Type: *string

The identifier of the user.

Name

Type: *string

The name of the user.

State

Type: *string

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

UserRole

Type: *string

The role of the user.

Method

GoString

func (s User) GoString() string

GoString returns the string representation

SetDisabledDate

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

SetDisabledDate sets the DisabledDate field's value.

SetDisplayName

func (s *User) SetDisplayName(v string) *User

SetDisplayName sets the DisplayName field's value.

SetEmail

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

SetEmail sets the Email field's value.

SetEnabledDate

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

SetEnabledDate sets the EnabledDate field's value.

SetId

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

SetId sets the Id field's value.

SetName

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

SetName sets the Name field's value.

SetState

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

SetState sets the State field's value.

SetUserRole

func (s *User) SetUserRole(v string) *User

SetUserRole sets the UserRole field's value.

String

func (s User) String() string

String returns the string representation

On this page: