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.

DescribeUserOutput

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

type DescribeUserOutput struct { DisabledDate *time.Time `type:"timestamp"` DisplayName *string `type:"string"` Email *string `min:"1" type:"string"` EnabledDate *time.Time `type:"timestamp"` Name *string `min:"1" type:"string"` State *string `type:"string" enum:"EntityState"` UserId *string `min:"12" type:"string"` UserRole *string `type:"string" enum:"UserRole"` }

DisabledDate

Type: *time.Time

The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.

DisplayName

Type: *string

The display name of the user.

Email

Type: *string

The email of the user.

EnabledDate

Type: *time.Time

The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.

Name

Type: *string

The name for the user.

State

Type: *string

The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to Amazon WorkMail).

UserId

Type: *string

The identifier for the described user.

UserRole

Type: *string

In certain cases other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different Amazon WorkMail organizations rely on different directory types, administrators can distinguish between a user that is not registered to Amazon WorkMail (is disabled and has a user role) and the administrative users of the directory. The values are USER, RESOURCE, and SYSTEM_USER.

Method

GoString

func (s DescribeUserOutput) GoString() string

GoString returns the string representation

SetDisabledDate

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

SetDisabledDate sets the DisabledDate field's value.

SetDisplayName

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

SetDisplayName sets the DisplayName field's value.

SetEmail

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

SetEmail sets the Email field's value.

SetEnabledDate

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

SetEnabledDate sets the EnabledDate field's value.

SetName

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

SetName sets the Name field's value.

SetState

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

SetState sets the State field's value.

SetUserId

func (s *DescribeUserOutput) SetUserId(v string) *DescribeUserOutput

SetUserId sets the UserId field's value.

SetUserRole

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

SetUserRole sets the UserRole field's value.

String

func (s DescribeUserOutput) String() string

String returns the string representation

On this page: