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.

CreateContactInput

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

type CreateContactInput struct { ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` DisplayName *string `min:"1" type:"string"` FirstName *string `min:"1" type:"string" required:"true"` LastName *string `min:"1" type:"string"` PhoneNumber *string `type:"string" sensitive:"true"` }

ClientRequestToken

Type: *string

A unique, user-specified identifier for this request that ensures idempotency.

DisplayName

Type: *string

The name of the contact to display on the console.

FirstName

Type: *string

The first name of the contact that is used to call the contact on the device.

FirstName is a required field

LastName

Type: *string

The last name of the contact that is used to call the contact on the device.

PhoneNumber

Type: *string

The phone number of the contact in E.164 format.

Method

GoString

func (s CreateContactInput) GoString() string

GoString returns the string representation

SetClientRequestToken

func (s *CreateContactInput) SetClientRequestToken(v string) *CreateContactInput

SetClientRequestToken sets the ClientRequestToken field's value.

SetDisplayName

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

SetDisplayName sets the DisplayName field's value.

SetFirstName

func (s *CreateContactInput) SetFirstName(v string) *CreateContactInput

SetFirstName sets the FirstName field's value.

SetLastName

func (s *CreateContactInput) SetLastName(v string) *CreateContactInput

SetLastName sets the LastName field's value.

SetPhoneNumber

func (s *CreateContactInput) SetPhoneNumber(v string) *CreateContactInput

SetPhoneNumber sets the PhoneNumber field's value.

String

func (s CreateContactInput) String() string

String returns the string representation

Validate

func (s *CreateContactInput) Validate() error

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

On this page: