// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package account

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/aws/request"
	"github.com/aws/aws-sdk-go/private/protocol"
	"github.com/aws/aws-sdk-go/private/protocol/restjson"
)

const opAcceptPrimaryEmailUpdate = "AcceptPrimaryEmailUpdate"

// AcceptPrimaryEmailUpdateRequest generates a "aws/request.Request" representing the
// client's request for the AcceptPrimaryEmailUpdate operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AcceptPrimaryEmailUpdate for more information on using the AcceptPrimaryEmailUpdate
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the AcceptPrimaryEmailUpdateRequest method.
//	req, resp := client.AcceptPrimaryEmailUpdateRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AcceptPrimaryEmailUpdate
func (c *Account) AcceptPrimaryEmailUpdateRequest(input *AcceptPrimaryEmailUpdateInput) (req *request.Request, output *AcceptPrimaryEmailUpdateOutput) {
	op := &request.Operation{
		Name:       opAcceptPrimaryEmailUpdate,
		HTTPMethod: "POST",
		HTTPPath:   "/acceptPrimaryEmailUpdate",
	}

	if input == nil {
		input = &AcceptPrimaryEmailUpdateInput{}
	}

	output = &AcceptPrimaryEmailUpdateOutput{}
	req = c.newRequest(op, input, output)
	return
}

// AcceptPrimaryEmailUpdate API operation for AWS Account.
//
// Accepts the request that originated from StartPrimaryEmailUpdate to update
// the primary email address (also known as the root user email address) for
// the specified account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation AcceptPrimaryEmailUpdate for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The operation failed because it specified a resource that can't be found.
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - ConflictException
//     The request could not be processed because of a conflict in the current status
//     of the resource. For example, this happens if you try to enable a Region
//     that is currently being disabled (in a status of DISABLING).
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AcceptPrimaryEmailUpdate
func (c *Account) AcceptPrimaryEmailUpdate(input *AcceptPrimaryEmailUpdateInput) (*AcceptPrimaryEmailUpdateOutput, error) {
	req, out := c.AcceptPrimaryEmailUpdateRequest(input)
	return out, req.Send()
}

// AcceptPrimaryEmailUpdateWithContext is the same as AcceptPrimaryEmailUpdate with the addition of
// the ability to pass a context and additional request options.
//
// See AcceptPrimaryEmailUpdate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) AcceptPrimaryEmailUpdateWithContext(ctx aws.Context, input *AcceptPrimaryEmailUpdateInput, opts ...request.Option) (*AcceptPrimaryEmailUpdateOutput, error) {
	req, out := c.AcceptPrimaryEmailUpdateRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteAlternateContact = "DeleteAlternateContact"

// DeleteAlternateContactRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAlternateContact operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteAlternateContact for more information on using the DeleteAlternateContact
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the DeleteAlternateContactRequest method.
//	req, resp := client.DeleteAlternateContactRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact
func (c *Account) DeleteAlternateContactRequest(input *DeleteAlternateContactInput) (req *request.Request, output *DeleteAlternateContactOutput) {
	op := &request.Operation{
		Name:       opDeleteAlternateContact,
		HTTPMethod: "POST",
		HTTPPath:   "/deleteAlternateContact",
	}

	if input == nil {
		input = &DeleteAlternateContactInput{}
	}

	output = &DeleteAlternateContactOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteAlternateContact API operation for AWS Account.
//
// Deletes the specified alternate contact from an Amazon Web Services account.
//
// For complete details about how to use the alternate contact operations, see
// Access or updating the alternate contacts (https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html).
//
// Before you can update the alternate contact information for an Amazon Web
// Services account that is managed by Organizations, you must first enable
// integration between Amazon Web Services Account Management and Organizations.
// For more information, see Enabling trusted access for Amazon Web Services
// Account Management (https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation DeleteAlternateContact for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The operation failed because it specified a resource that can't be found.
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact
func (c *Account) DeleteAlternateContact(input *DeleteAlternateContactInput) (*DeleteAlternateContactOutput, error) {
	req, out := c.DeleteAlternateContactRequest(input)
	return out, req.Send()
}

// DeleteAlternateContactWithContext is the same as DeleteAlternateContact with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteAlternateContact for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) DeleteAlternateContactWithContext(ctx aws.Context, input *DeleteAlternateContactInput, opts ...request.Option) (*DeleteAlternateContactOutput, error) {
	req, out := c.DeleteAlternateContactRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDisableRegion = "DisableRegion"

// DisableRegionRequest generates a "aws/request.Request" representing the
// client's request for the DisableRegion operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DisableRegion for more information on using the DisableRegion
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the DisableRegionRequest method.
//	req, resp := client.DisableRegionRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion
func (c *Account) DisableRegionRequest(input *DisableRegionInput) (req *request.Request, output *DisableRegionOutput) {
	op := &request.Operation{
		Name:       opDisableRegion,
		HTTPMethod: "POST",
		HTTPPath:   "/disableRegion",
	}

	if input == nil {
		input = &DisableRegionInput{}
	}

	output = &DisableRegionOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DisableRegion API operation for AWS Account.
//
// Disables (opts-out) a particular Region for an account.
//
// The act of disabling a Region will remove all IAM access to any resources
// that reside in that Region.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation DisableRegion for usage and error information.
//
// Returned Error Types:
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - ConflictException
//     The request could not be processed because of a conflict in the current status
//     of the resource. For example, this happens if you try to enable a Region
//     that is currently being disabled (in a status of DISABLING).
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion
func (c *Account) DisableRegion(input *DisableRegionInput) (*DisableRegionOutput, error) {
	req, out := c.DisableRegionRequest(input)
	return out, req.Send()
}

// DisableRegionWithContext is the same as DisableRegion with the addition of
// the ability to pass a context and additional request options.
//
// See DisableRegion for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) DisableRegionWithContext(ctx aws.Context, input *DisableRegionInput, opts ...request.Option) (*DisableRegionOutput, error) {
	req, out := c.DisableRegionRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opEnableRegion = "EnableRegion"

// EnableRegionRequest generates a "aws/request.Request" representing the
// client's request for the EnableRegion operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See EnableRegion for more information on using the EnableRegion
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the EnableRegionRequest method.
//	req, resp := client.EnableRegionRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion
func (c *Account) EnableRegionRequest(input *EnableRegionInput) (req *request.Request, output *EnableRegionOutput) {
	op := &request.Operation{
		Name:       opEnableRegion,
		HTTPMethod: "POST",
		HTTPPath:   "/enableRegion",
	}

	if input == nil {
		input = &EnableRegionInput{}
	}

	output = &EnableRegionOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// EnableRegion API operation for AWS Account.
//
// Enables (opts-in) a particular Region for an account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation EnableRegion for usage and error information.
//
// Returned Error Types:
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - ConflictException
//     The request could not be processed because of a conflict in the current status
//     of the resource. For example, this happens if you try to enable a Region
//     that is currently being disabled (in a status of DISABLING).
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion
func (c *Account) EnableRegion(input *EnableRegionInput) (*EnableRegionOutput, error) {
	req, out := c.EnableRegionRequest(input)
	return out, req.Send()
}

// EnableRegionWithContext is the same as EnableRegion with the addition of
// the ability to pass a context and additional request options.
//
// See EnableRegion for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) EnableRegionWithContext(ctx aws.Context, input *EnableRegionInput, opts ...request.Option) (*EnableRegionOutput, error) {
	req, out := c.EnableRegionRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetAlternateContact = "GetAlternateContact"

// GetAlternateContactRequest generates a "aws/request.Request" representing the
// client's request for the GetAlternateContact operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetAlternateContact for more information on using the GetAlternateContact
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the GetAlternateContactRequest method.
//	req, resp := client.GetAlternateContactRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact
func (c *Account) GetAlternateContactRequest(input *GetAlternateContactInput) (req *request.Request, output *GetAlternateContactOutput) {
	op := &request.Operation{
		Name:       opGetAlternateContact,
		HTTPMethod: "POST",
		HTTPPath:   "/getAlternateContact",
	}

	if input == nil {
		input = &GetAlternateContactInput{}
	}

	output = &GetAlternateContactOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetAlternateContact API operation for AWS Account.
//
// Retrieves the specified alternate contact attached to an Amazon Web Services
// account.
//
// For complete details about how to use the alternate contact operations, see
// Access or updating the alternate contacts (https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html).
//
// Before you can update the alternate contact information for an Amazon Web
// Services account that is managed by Organizations, you must first enable
// integration between Amazon Web Services Account Management and Organizations.
// For more information, see Enabling trusted access for Amazon Web Services
// Account Management (https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation GetAlternateContact for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The operation failed because it specified a resource that can't be found.
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact
func (c *Account) GetAlternateContact(input *GetAlternateContactInput) (*GetAlternateContactOutput, error) {
	req, out := c.GetAlternateContactRequest(input)
	return out, req.Send()
}

// GetAlternateContactWithContext is the same as GetAlternateContact with the addition of
// the ability to pass a context and additional request options.
//
// See GetAlternateContact for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) GetAlternateContactWithContext(ctx aws.Context, input *GetAlternateContactInput, opts ...request.Option) (*GetAlternateContactOutput, error) {
	req, out := c.GetAlternateContactRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetContactInformation = "GetContactInformation"

// GetContactInformationRequest generates a "aws/request.Request" representing the
// client's request for the GetContactInformation operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetContactInformation for more information on using the GetContactInformation
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the GetContactInformationRequest method.
//	req, resp := client.GetContactInformationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation
func (c *Account) GetContactInformationRequest(input *GetContactInformationInput) (req *request.Request, output *GetContactInformationOutput) {
	op := &request.Operation{
		Name:       opGetContactInformation,
		HTTPMethod: "POST",
		HTTPPath:   "/getContactInformation",
	}

	if input == nil {
		input = &GetContactInformationInput{}
	}

	output = &GetContactInformationOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetContactInformation API operation for AWS Account.
//
// Retrieves the primary contact information of an Amazon Web Services account.
//
// For complete details about how to use the primary contact operations, see
// Update the primary and alternate contact information (https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation GetContactInformation for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The operation failed because it specified a resource that can't be found.
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation
func (c *Account) GetContactInformation(input *GetContactInformationInput) (*GetContactInformationOutput, error) {
	req, out := c.GetContactInformationRequest(input)
	return out, req.Send()
}

// GetContactInformationWithContext is the same as GetContactInformation with the addition of
// the ability to pass a context and additional request options.
//
// See GetContactInformation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) GetContactInformationWithContext(ctx aws.Context, input *GetContactInformationInput, opts ...request.Option) (*GetContactInformationOutput, error) {
	req, out := c.GetContactInformationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetPrimaryEmail = "GetPrimaryEmail"

// GetPrimaryEmailRequest generates a "aws/request.Request" representing the
// client's request for the GetPrimaryEmail operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetPrimaryEmail for more information on using the GetPrimaryEmail
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the GetPrimaryEmailRequest method.
//	req, resp := client.GetPrimaryEmailRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmail
func (c *Account) GetPrimaryEmailRequest(input *GetPrimaryEmailInput) (req *request.Request, output *GetPrimaryEmailOutput) {
	op := &request.Operation{
		Name:       opGetPrimaryEmail,
		HTTPMethod: "POST",
		HTTPPath:   "/getPrimaryEmail",
	}

	if input == nil {
		input = &GetPrimaryEmailInput{}
	}

	output = &GetPrimaryEmailOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetPrimaryEmail API operation for AWS Account.
//
// Retrieves the primary email address for the specified account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation GetPrimaryEmail for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The operation failed because it specified a resource that can't be found.
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmail
func (c *Account) GetPrimaryEmail(input *GetPrimaryEmailInput) (*GetPrimaryEmailOutput, error) {
	req, out := c.GetPrimaryEmailRequest(input)
	return out, req.Send()
}

// GetPrimaryEmailWithContext is the same as GetPrimaryEmail with the addition of
// the ability to pass a context and additional request options.
//
// See GetPrimaryEmail for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) GetPrimaryEmailWithContext(ctx aws.Context, input *GetPrimaryEmailInput, opts ...request.Option) (*GetPrimaryEmailOutput, error) {
	req, out := c.GetPrimaryEmailRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetRegionOptStatus = "GetRegionOptStatus"

// GetRegionOptStatusRequest generates a "aws/request.Request" representing the
// client's request for the GetRegionOptStatus operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetRegionOptStatus for more information on using the GetRegionOptStatus
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the GetRegionOptStatusRequest method.
//	req, resp := client.GetRegionOptStatusRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus
func (c *Account) GetRegionOptStatusRequest(input *GetRegionOptStatusInput) (req *request.Request, output *GetRegionOptStatusOutput) {
	op := &request.Operation{
		Name:       opGetRegionOptStatus,
		HTTPMethod: "POST",
		HTTPPath:   "/getRegionOptStatus",
	}

	if input == nil {
		input = &GetRegionOptStatusInput{}
	}

	output = &GetRegionOptStatusOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetRegionOptStatus API operation for AWS Account.
//
// Retrieves the opt-in status of a particular Region.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation GetRegionOptStatus for usage and error information.
//
// Returned Error Types:
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus
func (c *Account) GetRegionOptStatus(input *GetRegionOptStatusInput) (*GetRegionOptStatusOutput, error) {
	req, out := c.GetRegionOptStatusRequest(input)
	return out, req.Send()
}

// GetRegionOptStatusWithContext is the same as GetRegionOptStatus with the addition of
// the ability to pass a context and additional request options.
//
// See GetRegionOptStatus for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) GetRegionOptStatusWithContext(ctx aws.Context, input *GetRegionOptStatusInput, opts ...request.Option) (*GetRegionOptStatusOutput, error) {
	req, out := c.GetRegionOptStatusRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opListRegions = "ListRegions"

// ListRegionsRequest generates a "aws/request.Request" representing the
// client's request for the ListRegions operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListRegions for more information on using the ListRegions
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the ListRegionsRequest method.
//	req, resp := client.ListRegionsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions
func (c *Account) ListRegionsRequest(input *ListRegionsInput) (req *request.Request, output *ListRegionsOutput) {
	op := &request.Operation{
		Name:       opListRegions,
		HTTPMethod: "POST",
		HTTPPath:   "/listRegions",
		Paginator: &request.Paginator{
			InputTokens:     []string{"NextToken"},
			OutputTokens:    []string{"NextToken"},
			LimitToken:      "MaxResults",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &ListRegionsInput{}
	}

	output = &ListRegionsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListRegions API operation for AWS Account.
//
// Lists all the Regions for a given account and their respective opt-in statuses.
// Optionally, this list can be filtered by the region-opt-status-contains parameter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation ListRegions for usage and error information.
//
// Returned Error Types:
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions
func (c *Account) ListRegions(input *ListRegionsInput) (*ListRegionsOutput, error) {
	req, out := c.ListRegionsRequest(input)
	return out, req.Send()
}

// ListRegionsWithContext is the same as ListRegions with the addition of
// the ability to pass a context and additional request options.
//
// See ListRegions for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) ListRegionsWithContext(ctx aws.Context, input *ListRegionsInput, opts ...request.Option) (*ListRegionsOutput, error) {
	req, out := c.ListRegionsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// ListRegionsPages iterates over the pages of a ListRegions operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListRegions method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
//	// Example iterating over at most 3 pages of a ListRegions operation.
//	pageNum := 0
//	err := client.ListRegionsPages(params,
//	    func(page *account.ListRegionsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *Account) ListRegionsPages(input *ListRegionsInput, fn func(*ListRegionsOutput, bool) bool) error {
	return c.ListRegionsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// ListRegionsPagesWithContext same as ListRegionsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) ListRegionsPagesWithContext(ctx aws.Context, input *ListRegionsInput, fn func(*ListRegionsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		NewRequest: func() (*request.Request, error) {
			var inCpy *ListRegionsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.ListRegionsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*ListRegionsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opPutAlternateContact = "PutAlternateContact"

// PutAlternateContactRequest generates a "aws/request.Request" representing the
// client's request for the PutAlternateContact operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See PutAlternateContact for more information on using the PutAlternateContact
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the PutAlternateContactRequest method.
//	req, resp := client.PutAlternateContactRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact
func (c *Account) PutAlternateContactRequest(input *PutAlternateContactInput) (req *request.Request, output *PutAlternateContactOutput) {
	op := &request.Operation{
		Name:       opPutAlternateContact,
		HTTPMethod: "POST",
		HTTPPath:   "/putAlternateContact",
	}

	if input == nil {
		input = &PutAlternateContactInput{}
	}

	output = &PutAlternateContactOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutAlternateContact API operation for AWS Account.
//
// Modifies the specified alternate contact attached to an Amazon Web Services
// account.
//
// For complete details about how to use the alternate contact operations, see
// Access or updating the alternate contacts (https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html).
//
// Before you can update the alternate contact information for an Amazon Web
// Services account that is managed by Organizations, you must first enable
// integration between Amazon Web Services Account Management and Organizations.
// For more information, see Enabling trusted access for Amazon Web Services
// Account Management (https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation PutAlternateContact for usage and error information.
//
// Returned Error Types:
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact
func (c *Account) PutAlternateContact(input *PutAlternateContactInput) (*PutAlternateContactOutput, error) {
	req, out := c.PutAlternateContactRequest(input)
	return out, req.Send()
}

// PutAlternateContactWithContext is the same as PutAlternateContact with the addition of
// the ability to pass a context and additional request options.
//
// See PutAlternateContact for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) PutAlternateContactWithContext(ctx aws.Context, input *PutAlternateContactInput, opts ...request.Option) (*PutAlternateContactOutput, error) {
	req, out := c.PutAlternateContactRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutContactInformation = "PutContactInformation"

// PutContactInformationRequest generates a "aws/request.Request" representing the
// client's request for the PutContactInformation operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See PutContactInformation for more information on using the PutContactInformation
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the PutContactInformationRequest method.
//	req, resp := client.PutContactInformationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation
func (c *Account) PutContactInformationRequest(input *PutContactInformationInput) (req *request.Request, output *PutContactInformationOutput) {
	op := &request.Operation{
		Name:       opPutContactInformation,
		HTTPMethod: "POST",
		HTTPPath:   "/putContactInformation",
	}

	if input == nil {
		input = &PutContactInformationInput{}
	}

	output = &PutContactInformationOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutContactInformation API operation for AWS Account.
//
// Updates the primary contact information of an Amazon Web Services account.
//
// For complete details about how to use the primary contact operations, see
// Update the primary and alternate contact information (https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation PutContactInformation for usage and error information.
//
// Returned Error Types:
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation
func (c *Account) PutContactInformation(input *PutContactInformationInput) (*PutContactInformationOutput, error) {
	req, out := c.PutContactInformationRequest(input)
	return out, req.Send()
}

// PutContactInformationWithContext is the same as PutContactInformation with the addition of
// the ability to pass a context and additional request options.
//
// See PutContactInformation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) PutContactInformationWithContext(ctx aws.Context, input *PutContactInformationInput, opts ...request.Option) (*PutContactInformationOutput, error) {
	req, out := c.PutContactInformationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opStartPrimaryEmailUpdate = "StartPrimaryEmailUpdate"

// StartPrimaryEmailUpdateRequest generates a "aws/request.Request" representing the
// client's request for the StartPrimaryEmailUpdate operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See StartPrimaryEmailUpdate for more information on using the StartPrimaryEmailUpdate
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//	// Example sending a request using the StartPrimaryEmailUpdateRequest method.
//	req, resp := client.StartPrimaryEmailUpdateRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/StartPrimaryEmailUpdate
func (c *Account) StartPrimaryEmailUpdateRequest(input *StartPrimaryEmailUpdateInput) (req *request.Request, output *StartPrimaryEmailUpdateOutput) {
	op := &request.Operation{
		Name:       opStartPrimaryEmailUpdate,
		HTTPMethod: "POST",
		HTTPPath:   "/startPrimaryEmailUpdate",
	}

	if input == nil {
		input = &StartPrimaryEmailUpdateInput{}
	}

	output = &StartPrimaryEmailUpdateOutput{}
	req = c.newRequest(op, input, output)
	return
}

// StartPrimaryEmailUpdate API operation for AWS Account.
//
// Starts the process to update the primary email address for the specified
// account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Account's
// API operation StartPrimaryEmailUpdate for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The operation failed because it specified a resource that can't be found.
//
//   - ValidationException
//     The operation failed because one of the input parameters was invalid.
//
//   - ConflictException
//     The request could not be processed because of a conflict in the current status
//     of the resource. For example, this happens if you try to enable a Region
//     that is currently being disabled (in a status of DISABLING).
//
//   - AccessDeniedException
//     The operation failed because the calling identity doesn't have the minimum
//     required permissions.
//
//   - TooManyRequestsException
//     The operation failed because it was called too frequently and exceeded a
//     throttle limit.
//
//   - InternalServerException
//     The operation failed because of an error internal to Amazon Web Services.
//     Try your operation again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/StartPrimaryEmailUpdate
func (c *Account) StartPrimaryEmailUpdate(input *StartPrimaryEmailUpdateInput) (*StartPrimaryEmailUpdateOutput, error) {
	req, out := c.StartPrimaryEmailUpdateRequest(input)
	return out, req.Send()
}

// StartPrimaryEmailUpdateWithContext is the same as StartPrimaryEmailUpdate with the addition of
// the ability to pass a context and additional request options.
//
// See StartPrimaryEmailUpdate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Account) StartPrimaryEmailUpdateWithContext(ctx aws.Context, input *StartPrimaryEmailUpdateInput, opts ...request.Option) (*StartPrimaryEmailUpdateOutput, error) {
	req, out := c.StartPrimaryEmailUpdateRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

type AcceptPrimaryEmailUpdateInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. To use this parameter,
	// the caller must be an identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// This operation can only be called from the management account or the delegated
	// administrator account of an organization for a member account.
	//
	// The management account can't specify its own AccountId.
	//
	// AccountId is a required field
	AccountId *string `type:"string" required:"true"`

	// The OTP code sent to the PrimaryEmail specified on the StartPrimaryEmailUpdate
	// API call.
	//
	// Otp is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by AcceptPrimaryEmailUpdateInput's
	// String and GoString methods.
	//
	// Otp is a required field
	Otp *string `type:"string" required:"true" sensitive:"true"`

	// The new primary email address for use with the specified account. This must
	// match the PrimaryEmail from the StartPrimaryEmailUpdate API call.
	//
	// PrimaryEmail is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by AcceptPrimaryEmailUpdateInput's
	// String and GoString methods.
	//
	// PrimaryEmail is a required field
	PrimaryEmail *string `min:"5" type:"string" required:"true" sensitive:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AcceptPrimaryEmailUpdateInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AcceptPrimaryEmailUpdateInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *AcceptPrimaryEmailUpdateInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "AcceptPrimaryEmailUpdateInput"}
	if s.AccountId == nil {
		invalidParams.Add(request.NewErrParamRequired("AccountId"))
	}
	if s.Otp == nil {
		invalidParams.Add(request.NewErrParamRequired("Otp"))
	}
	if s.PrimaryEmail == nil {
		invalidParams.Add(request.NewErrParamRequired("PrimaryEmail"))
	}
	if s.PrimaryEmail != nil && len(*s.PrimaryEmail) < 5 {
		invalidParams.Add(request.NewErrParamMinLen("PrimaryEmail", 5))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *AcceptPrimaryEmailUpdateInput) SetAccountId(v string) *AcceptPrimaryEmailUpdateInput {
	s.AccountId = &v
	return s
}

// SetOtp sets the Otp field's value.
func (s *AcceptPrimaryEmailUpdateInput) SetOtp(v string) *AcceptPrimaryEmailUpdateInput {
	s.Otp = &v
	return s
}

// SetPrimaryEmail sets the PrimaryEmail field's value.
func (s *AcceptPrimaryEmailUpdateInput) SetPrimaryEmail(v string) *AcceptPrimaryEmailUpdateInput {
	s.PrimaryEmail = &v
	return s
}

type AcceptPrimaryEmailUpdateOutput struct {
	_ struct{} `type:"structure"`

	// Retrieves the status of the accepted primary email update request.
	Status *string `type:"string" enum:"PrimaryEmailUpdateStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AcceptPrimaryEmailUpdateOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AcceptPrimaryEmailUpdateOutput) GoString() string {
	return s.String()
}

// SetStatus sets the Status field's value.
func (s *AcceptPrimaryEmailUpdateOutput) SetStatus(v string) *AcceptPrimaryEmailUpdateOutput {
	s.Status = &v
	return s
}

// The operation failed because the calling identity doesn't have the minimum
// required permissions.
type AccessDeniedException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) GoString() string {
	return s.String()
}

func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
	return &AccessDeniedException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
	return "AccessDeniedException"
}

// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
	return nil
}

func (s *AccessDeniedException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
	return s.RespMetadata.RequestID
}

// A structure that contains the details of an alternate contact associated
// with an Amazon Web Services account
type AlternateContact struct {
	_ struct{} `type:"structure"`

	// The type of alternate contact.
	AlternateContactType *string `type:"string" enum:"AlternateContactType"`

	// The email address associated with this alternate contact.
	//
	// EmailAddress is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by AlternateContact's
	// String and GoString methods.
	EmailAddress *string `min:"1" type:"string" sensitive:"true"`

	// The name associated with this alternate contact.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by AlternateContact's
	// String and GoString methods.
	Name *string `min:"1" type:"string" sensitive:"true"`

	// The phone number associated with this alternate contact.
	//
	// PhoneNumber is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by AlternateContact's
	// String and GoString methods.
	PhoneNumber *string `min:"1" type:"string" sensitive:"true"`

	// The title associated with this alternate contact.
	//
	// Title is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by AlternateContact's
	// String and GoString methods.
	Title *string `min:"1" type:"string" sensitive:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AlternateContact) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AlternateContact) GoString() string {
	return s.String()
}

// SetAlternateContactType sets the AlternateContactType field's value.
func (s *AlternateContact) SetAlternateContactType(v string) *AlternateContact {
	s.AlternateContactType = &v
	return s
}

// SetEmailAddress sets the EmailAddress field's value.
func (s *AlternateContact) SetEmailAddress(v string) *AlternateContact {
	s.EmailAddress = &v
	return s
}

// SetName sets the Name field's value.
func (s *AlternateContact) SetName(v string) *AlternateContact {
	s.Name = &v
	return s
}

// SetPhoneNumber sets the PhoneNumber field's value.
func (s *AlternateContact) SetPhoneNumber(v string) *AlternateContact {
	s.PhoneNumber = &v
	return s
}

// SetTitle sets the Title field's value.
func (s *AlternateContact) SetTitle(v string) *AlternateContact {
	s.Title = &v
	return s
}

// The request could not be processed because of a conflict in the current status
// of the resource. For example, this happens if you try to enable a Region
// that is currently being disabled (in a status of DISABLING).
type ConflictException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) GoString() string {
	return s.String()
}

func newErrorConflictException(v protocol.ResponseMetadata) error {
	return &ConflictException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ConflictException) Code() string {
	return "ConflictException"
}

// Message returns the exception's message.
func (s *ConflictException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
	return nil
}

func (s *ConflictException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
	return s.RespMetadata.RequestID
}

// Contains the details of the primary contact information associated with an
// Amazon Web Services account.
type ContactInformation struct {
	_ struct{} `type:"structure"`

	// The first line of the primary contact address.
	//
	// AddressLine1 is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	//
	// AddressLine1 is a required field
	AddressLine1 *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// The second line of the primary contact address, if any.
	//
	// AddressLine2 is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	AddressLine2 *string `min:"1" type:"string" sensitive:"true"`

	// The third line of the primary contact address, if any.
	//
	// AddressLine3 is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	AddressLine3 *string `min:"1" type:"string" sensitive:"true"`

	// The city of the primary contact address.
	//
	// City is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	//
	// City is a required field
	City *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// The name of the company associated with the primary contact information,
	// if any.
	//
	// CompanyName is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	CompanyName *string `min:"1" type:"string" sensitive:"true"`

	// The ISO-3166 two-letter country code for the primary contact address.
	//
	// CountryCode is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	//
	// CountryCode is a required field
	CountryCode *string `min:"2" type:"string" required:"true" sensitive:"true"`

	// The district or county of the primary contact address, if any.
	//
	// DistrictOrCounty is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	DistrictOrCounty *string `min:"1" type:"string" sensitive:"true"`

	// The full name of the primary contact address.
	//
	// FullName is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	//
	// FullName is a required field
	FullName *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// The phone number of the primary contact information. The number will be validated
	// and, in some countries, checked for activation.
	//
	// PhoneNumber is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	//
	// PhoneNumber is a required field
	PhoneNumber *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// The postal code of the primary contact address.
	//
	// PostalCode is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	//
	// PostalCode is a required field
	PostalCode *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// The state or region of the primary contact address. If the mailing address
	// is within the United States (US), the value in this field can be either a
	// two character state code (for example, NJ) or the full state name (for example,
	// New Jersey). This field is required in the following countries: US, CA, GB,
	// DE, JP, IN, and BR.
	//
	// StateOrRegion is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	StateOrRegion *string `min:"1" type:"string" sensitive:"true"`

	// The URL of the website associated with the primary contact information, if
	// any.
	//
	// WebsiteUrl is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ContactInformation's
	// String and GoString methods.
	WebsiteUrl *string `min:"1" type:"string" sensitive:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ContactInformation) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ContactInformation) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ContactInformation) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ContactInformation"}
	if s.AddressLine1 == nil {
		invalidParams.Add(request.NewErrParamRequired("AddressLine1"))
	}
	if s.AddressLine1 != nil && len(*s.AddressLine1) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AddressLine1", 1))
	}
	if s.AddressLine2 != nil && len(*s.AddressLine2) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AddressLine2", 1))
	}
	if s.AddressLine3 != nil && len(*s.AddressLine3) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AddressLine3", 1))
	}
	if s.City == nil {
		invalidParams.Add(request.NewErrParamRequired("City"))
	}
	if s.City != nil && len(*s.City) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("City", 1))
	}
	if s.CompanyName != nil && len(*s.CompanyName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("CompanyName", 1))
	}
	if s.CountryCode == nil {
		invalidParams.Add(request.NewErrParamRequired("CountryCode"))
	}
	if s.CountryCode != nil && len(*s.CountryCode) < 2 {
		invalidParams.Add(request.NewErrParamMinLen("CountryCode", 2))
	}
	if s.DistrictOrCounty != nil && len(*s.DistrictOrCounty) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DistrictOrCounty", 1))
	}
	if s.FullName == nil {
		invalidParams.Add(request.NewErrParamRequired("FullName"))
	}
	if s.FullName != nil && len(*s.FullName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FullName", 1))
	}
	if s.PhoneNumber == nil {
		invalidParams.Add(request.NewErrParamRequired("PhoneNumber"))
	}
	if s.PhoneNumber != nil && len(*s.PhoneNumber) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("PhoneNumber", 1))
	}
	if s.PostalCode == nil {
		invalidParams.Add(request.NewErrParamRequired("PostalCode"))
	}
	if s.PostalCode != nil && len(*s.PostalCode) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("PostalCode", 1))
	}
	if s.StateOrRegion != nil && len(*s.StateOrRegion) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("StateOrRegion", 1))
	}
	if s.WebsiteUrl != nil && len(*s.WebsiteUrl) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("WebsiteUrl", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAddressLine1 sets the AddressLine1 field's value.
func (s *ContactInformation) SetAddressLine1(v string) *ContactInformation {
	s.AddressLine1 = &v
	return s
}

// SetAddressLine2 sets the AddressLine2 field's value.
func (s *ContactInformation) SetAddressLine2(v string) *ContactInformation {
	s.AddressLine2 = &v
	return s
}

// SetAddressLine3 sets the AddressLine3 field's value.
func (s *ContactInformation) SetAddressLine3(v string) *ContactInformation {
	s.AddressLine3 = &v
	return s
}

// SetCity sets the City field's value.
func (s *ContactInformation) SetCity(v string) *ContactInformation {
	s.City = &v
	return s
}

// SetCompanyName sets the CompanyName field's value.
func (s *ContactInformation) SetCompanyName(v string) *ContactInformation {
	s.CompanyName = &v
	return s
}

// SetCountryCode sets the CountryCode field's value.
func (s *ContactInformation) SetCountryCode(v string) *ContactInformation {
	s.CountryCode = &v
	return s
}

// SetDistrictOrCounty sets the DistrictOrCounty field's value.
func (s *ContactInformation) SetDistrictOrCounty(v string) *ContactInformation {
	s.DistrictOrCounty = &v
	return s
}

// SetFullName sets the FullName field's value.
func (s *ContactInformation) SetFullName(v string) *ContactInformation {
	s.FullName = &v
	return s
}

// SetPhoneNumber sets the PhoneNumber field's value.
func (s *ContactInformation) SetPhoneNumber(v string) *ContactInformation {
	s.PhoneNumber = &v
	return s
}

// SetPostalCode sets the PostalCode field's value.
func (s *ContactInformation) SetPostalCode(v string) *ContactInformation {
	s.PostalCode = &v
	return s
}

// SetStateOrRegion sets the StateOrRegion field's value.
func (s *ContactInformation) SetStateOrRegion(v string) *ContactInformation {
	s.StateOrRegion = &v
	return s
}

// SetWebsiteUrl sets the WebsiteUrl field's value.
func (s *ContactInformation) SetWebsiteUrl(v string) *ContactInformation {
	s.WebsiteUrl = &v
	return s
}

type DeleteAlternateContactInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12 digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation.
	//
	// If you do not specify this parameter, it defaults to the Amazon Web Services
	// account of the identity used to call the operation.
	//
	// To use this parameter, the caller must be an identity in the organization's
	// management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account, and the specified account ID must be
	// a member account in the same organization. The organization must have all
	// features enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId; it must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// then don't specify this parameter, and call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Specifies which of the alternate contacts to delete.
	//
	// AlternateContactType is a required field
	AlternateContactType *string `type:"string" required:"true" enum:"AlternateContactType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAlternateContactInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAlternateContactInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteAlternateContactInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteAlternateContactInput"}
	if s.AlternateContactType == nil {
		invalidParams.Add(request.NewErrParamRequired("AlternateContactType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *DeleteAlternateContactInput) SetAccountId(v string) *DeleteAlternateContactInput {
	s.AccountId = &v
	return s
}

// SetAlternateContactType sets the AlternateContactType field's value.
func (s *DeleteAlternateContactInput) SetAlternateContactType(v string) *DeleteAlternateContactInput {
	s.AlternateContactType = &v
	return s
}

type DeleteAlternateContactOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAlternateContactOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAlternateContactOutput) GoString() string {
	return s.String()
}

type DisableRegionInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. If you don't specify
	// this parameter, it defaults to the Amazon Web Services account of the identity
	// used to call the operation. To use this parameter, the caller must be an
	// identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId. It must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// don't specify this parameter. Instead, call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Specifies the Region-code for a given Region name (for example, af-south-1).
	// When you disable a Region, Amazon Web Services performs actions to deactivate
	// that Region in your account, such as destroying IAM resources in the Region.
	// This process takes a few minutes for most accounts, but this can take several
	// hours. You cannot enable the Region until the disabling process is fully
	// completed.
	//
	// RegionName is a required field
	RegionName *string `min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableRegionInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableRegionInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DisableRegionInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DisableRegionInput"}
	if s.RegionName == nil {
		invalidParams.Add(request.NewErrParamRequired("RegionName"))
	}
	if s.RegionName != nil && len(*s.RegionName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("RegionName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *DisableRegionInput) SetAccountId(v string) *DisableRegionInput {
	s.AccountId = &v
	return s
}

// SetRegionName sets the RegionName field's value.
func (s *DisableRegionInput) SetRegionName(v string) *DisableRegionInput {
	s.RegionName = &v
	return s
}

type DisableRegionOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableRegionOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableRegionOutput) GoString() string {
	return s.String()
}

type EnableRegionInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. If you don't specify
	// this parameter, it defaults to the Amazon Web Services account of the identity
	// used to call the operation. To use this parameter, the caller must be an
	// identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId. It must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// don't specify this parameter. Instead, call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Specifies the Region-code for a given Region name (for example, af-south-1).
	// When you enable a Region, Amazon Web Services performs actions to prepare
	// your account in that Region, such as distributing your IAM resources to the
	// Region. This process takes a few minutes for most accounts, but it can take
	// several hours. You cannot use the Region until this process is complete.
	// Furthermore, you cannot disable the Region until the enabling process is
	// fully completed.
	//
	// RegionName is a required field
	RegionName *string `min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableRegionInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableRegionInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *EnableRegionInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "EnableRegionInput"}
	if s.RegionName == nil {
		invalidParams.Add(request.NewErrParamRequired("RegionName"))
	}
	if s.RegionName != nil && len(*s.RegionName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("RegionName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *EnableRegionInput) SetAccountId(v string) *EnableRegionInput {
	s.AccountId = &v
	return s
}

// SetRegionName sets the RegionName field's value.
func (s *EnableRegionInput) SetRegionName(v string) *EnableRegionInput {
	s.RegionName = &v
	return s
}

type EnableRegionOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableRegionOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableRegionOutput) GoString() string {
	return s.String()
}

type GetAlternateContactInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12 digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation.
	//
	// If you do not specify this parameter, it defaults to the Amazon Web Services
	// account of the identity used to call the operation.
	//
	// To use this parameter, the caller must be an identity in the organization's
	// management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account, and the specified account ID must be
	// a member account in the same organization. The organization must have all
	// features enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId; it must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// then don't specify this parameter, and call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Specifies which alternate contact you want to retrieve.
	//
	// AlternateContactType is a required field
	AlternateContactType *string `type:"string" required:"true" enum:"AlternateContactType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetAlternateContactInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetAlternateContactInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetAlternateContactInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetAlternateContactInput"}
	if s.AlternateContactType == nil {
		invalidParams.Add(request.NewErrParamRequired("AlternateContactType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *GetAlternateContactInput) SetAccountId(v string) *GetAlternateContactInput {
	s.AccountId = &v
	return s
}

// SetAlternateContactType sets the AlternateContactType field's value.
func (s *GetAlternateContactInput) SetAlternateContactType(v string) *GetAlternateContactInput {
	s.AlternateContactType = &v
	return s
}

type GetAlternateContactOutput struct {
	_ struct{} `type:"structure"`

	// A structure that contains the details for the specified alternate contact.
	AlternateContact *AlternateContact `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetAlternateContactOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetAlternateContactOutput) GoString() string {
	return s.String()
}

// SetAlternateContact sets the AlternateContact field's value.
func (s *GetAlternateContactOutput) SetAlternateContact(v *AlternateContact) *GetAlternateContactOutput {
	s.AlternateContact = v
	return s
}

type GetContactInformationInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. If you don't specify
	// this parameter, it defaults to the Amazon Web Services account of the identity
	// used to call the operation. To use this parameter, the caller must be an
	// identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId. It must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// don't specify this parameter. Instead, call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetContactInformationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetContactInformationInput) GoString() string {
	return s.String()
}

// SetAccountId sets the AccountId field's value.
func (s *GetContactInformationInput) SetAccountId(v string) *GetContactInformationInput {
	s.AccountId = &v
	return s
}

type GetContactInformationOutput struct {
	_ struct{} `type:"structure"`

	// Contains the details of the primary contact information associated with an
	// Amazon Web Services account.
	ContactInformation *ContactInformation `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetContactInformationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetContactInformationOutput) GoString() string {
	return s.String()
}

// SetContactInformation sets the ContactInformation field's value.
func (s *GetContactInformationOutput) SetContactInformation(v *ContactInformation) *GetContactInformationOutput {
	s.ContactInformation = v
	return s
}

type GetPrimaryEmailInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. To use this parameter,
	// the caller must be an identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// This operation can only be called from the management account or the delegated
	// administrator account of an organization for a member account.
	//
	// The management account can't specify its own AccountId.
	//
	// AccountId is a required field
	AccountId *string `type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetPrimaryEmailInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetPrimaryEmailInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetPrimaryEmailInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetPrimaryEmailInput"}
	if s.AccountId == nil {
		invalidParams.Add(request.NewErrParamRequired("AccountId"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *GetPrimaryEmailInput) SetAccountId(v string) *GetPrimaryEmailInput {
	s.AccountId = &v
	return s
}

type GetPrimaryEmailOutput struct {
	_ struct{} `type:"structure"`

	// Retrieves the primary email address associated with the specified account.
	//
	// PrimaryEmail is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetPrimaryEmailOutput's
	// String and GoString methods.
	PrimaryEmail *string `min:"5" type:"string" sensitive:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetPrimaryEmailOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetPrimaryEmailOutput) GoString() string {
	return s.String()
}

// SetPrimaryEmail sets the PrimaryEmail field's value.
func (s *GetPrimaryEmailOutput) SetPrimaryEmail(v string) *GetPrimaryEmailOutput {
	s.PrimaryEmail = &v
	return s
}

type GetRegionOptStatusInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. If you don't specify
	// this parameter, it defaults to the Amazon Web Services account of the identity
	// used to call the operation. To use this parameter, the caller must be an
	// identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId. It must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// don't specify this parameter. Instead, call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Specifies the Region-code for a given Region name (for example, af-south-1).
	// This function will return the status of whatever Region you pass into this
	// parameter.
	//
	// RegionName is a required field
	RegionName *string `min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetRegionOptStatusInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetRegionOptStatusInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetRegionOptStatusInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetRegionOptStatusInput"}
	if s.RegionName == nil {
		invalidParams.Add(request.NewErrParamRequired("RegionName"))
	}
	if s.RegionName != nil && len(*s.RegionName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("RegionName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *GetRegionOptStatusInput) SetAccountId(v string) *GetRegionOptStatusInput {
	s.AccountId = &v
	return s
}

// SetRegionName sets the RegionName field's value.
func (s *GetRegionOptStatusInput) SetRegionName(v string) *GetRegionOptStatusInput {
	s.RegionName = &v
	return s
}

type GetRegionOptStatusOutput struct {
	_ struct{} `type:"structure"`

	// The Region code that was passed in.
	RegionName *string `min:"1" type:"string"`

	// One of the potential statuses a Region can undergo (Enabled, Enabling, Disabled,
	// Disabling, Enabled_By_Default).
	RegionOptStatus *string `type:"string" enum:"RegionOptStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetRegionOptStatusOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetRegionOptStatusOutput) GoString() string {
	return s.String()
}

// SetRegionName sets the RegionName field's value.
func (s *GetRegionOptStatusOutput) SetRegionName(v string) *GetRegionOptStatusOutput {
	s.RegionName = &v
	return s
}

// SetRegionOptStatus sets the RegionOptStatus field's value.
func (s *GetRegionOptStatusOutput) SetRegionOptStatus(v string) *GetRegionOptStatusOutput {
	s.RegionOptStatus = &v
	return s
}

// The operation failed because of an error internal to Amazon Web Services.
// Try your operation again later.
type InternalServerException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) GoString() string {
	return s.String()
}

func newErrorInternalServerException(v protocol.ResponseMetadata) error {
	return &InternalServerException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *InternalServerException) Code() string {
	return "InternalServerException"
}

// Message returns the exception's message.
func (s *InternalServerException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
	return nil
}

func (s *InternalServerException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
	return s.RespMetadata.RequestID
}

type ListRegionsInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. If you don't specify
	// this parameter, it defaults to the Amazon Web Services account of the identity
	// used to call the operation. To use this parameter, the caller must be an
	// identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId. It must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// don't specify this parameter. Instead, call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// The total number of items to return in the command’s output. If the total
	// number of items available is more than the value specified, a NextToken is
	// provided in the command’s output. To resume pagination, provide the NextToken
	// value in the starting-token argument of a subsequent command. Do not use
	// the NextToken response element directly outside of the Amazon Web Services
	// CLI. For usage examples, see Pagination (http://docs.aws.amazon.com/cli/latest/userguide/pagination.html)
	// in the Amazon Web Services Command Line Interface User Guide.
	MaxResults *int64 `min:"1" type:"integer"`

	// A token used to specify where to start paginating. This is the NextToken
	// from a previously truncated response. For usage examples, see Pagination
	// (http://docs.aws.amazon.com/cli/latest/userguide/pagination.html) in the
	// Amazon Web Services Command Line Interface User Guide.
	NextToken *string `type:"string"`

	// A list of Region statuses (Enabling, Enabled, Disabling, Disabled, Enabled_by_default)
	// to use to filter the list of Regions for a given account. For example, passing
	// in a value of ENABLING will only return a list of Regions with a Region status
	// of ENABLING.
	RegionOptStatusContains []*string `type:"list" enum:"RegionOptStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListRegionsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListRegionsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListRegionsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListRegionsInput"}
	if s.MaxResults != nil && *s.MaxResults < 1 {
		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *ListRegionsInput) SetAccountId(v string) *ListRegionsInput {
	s.AccountId = &v
	return s
}

// SetMaxResults sets the MaxResults field's value.
func (s *ListRegionsInput) SetMaxResults(v int64) *ListRegionsInput {
	s.MaxResults = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListRegionsInput) SetNextToken(v string) *ListRegionsInput {
	s.NextToken = &v
	return s
}

// SetRegionOptStatusContains sets the RegionOptStatusContains field's value.
func (s *ListRegionsInput) SetRegionOptStatusContains(v []*string) *ListRegionsInput {
	s.RegionOptStatusContains = v
	return s
}

type ListRegionsOutput struct {
	_ struct{} `type:"structure"`

	// If there is more data to be returned, this will be populated. It should be
	// passed into the next-token request parameter of list-regions.
	NextToken *string `type:"string"`

	// This is a list of Regions for a given account, or if the filtered parameter
	// was used, a list of Regions that match the filter criteria set in the filter
	// parameter.
	Regions []*Region `type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListRegionsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListRegionsOutput) GoString() string {
	return s.String()
}

// SetNextToken sets the NextToken field's value.
func (s *ListRegionsOutput) SetNextToken(v string) *ListRegionsOutput {
	s.NextToken = &v
	return s
}

// SetRegions sets the Regions field's value.
func (s *ListRegionsOutput) SetRegions(v []*Region) *ListRegionsOutput {
	s.Regions = v
	return s
}

type PutAlternateContactInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12 digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation.
	//
	// If you do not specify this parameter, it defaults to the Amazon Web Services
	// account of the identity used to call the operation.
	//
	// To use this parameter, the caller must be an identity in the organization's
	// management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account, and the specified account ID must be
	// a member account in the same organization. The organization must have all
	// features enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId; it must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// then don't specify this parameter, and call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Specifies which alternate contact you want to create or update.
	//
	// AlternateContactType is a required field
	AlternateContactType *string `type:"string" required:"true" enum:"AlternateContactType"`

	// Specifies an email address for the alternate contact.
	//
	// EmailAddress is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by PutAlternateContactInput's
	// String and GoString methods.
	//
	// EmailAddress is a required field
	EmailAddress *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// Specifies a name for the alternate contact.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by PutAlternateContactInput's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// Specifies a phone number for the alternate contact.
	//
	// PhoneNumber is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by PutAlternateContactInput's
	// String and GoString methods.
	//
	// PhoneNumber is a required field
	PhoneNumber *string `min:"1" type:"string" required:"true" sensitive:"true"`

	// Specifies a title for the alternate contact.
	//
	// Title is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by PutAlternateContactInput's
	// String and GoString methods.
	//
	// Title is a required field
	Title *string `min:"1" type:"string" required:"true" sensitive:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAlternateContactInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAlternateContactInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutAlternateContactInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutAlternateContactInput"}
	if s.AlternateContactType == nil {
		invalidParams.Add(request.NewErrParamRequired("AlternateContactType"))
	}
	if s.EmailAddress == nil {
		invalidParams.Add(request.NewErrParamRequired("EmailAddress"))
	}
	if s.EmailAddress != nil && len(*s.EmailAddress) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("EmailAddress", 1))
	}
	if s.Name == nil {
		invalidParams.Add(request.NewErrParamRequired("Name"))
	}
	if s.Name != nil && len(*s.Name) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
	}
	if s.PhoneNumber == nil {
		invalidParams.Add(request.NewErrParamRequired("PhoneNumber"))
	}
	if s.PhoneNumber != nil && len(*s.PhoneNumber) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("PhoneNumber", 1))
	}
	if s.Title == nil {
		invalidParams.Add(request.NewErrParamRequired("Title"))
	}
	if s.Title != nil && len(*s.Title) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Title", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *PutAlternateContactInput) SetAccountId(v string) *PutAlternateContactInput {
	s.AccountId = &v
	return s
}

// SetAlternateContactType sets the AlternateContactType field's value.
func (s *PutAlternateContactInput) SetAlternateContactType(v string) *PutAlternateContactInput {
	s.AlternateContactType = &v
	return s
}

// SetEmailAddress sets the EmailAddress field's value.
func (s *PutAlternateContactInput) SetEmailAddress(v string) *PutAlternateContactInput {
	s.EmailAddress = &v
	return s
}

// SetName sets the Name field's value.
func (s *PutAlternateContactInput) SetName(v string) *PutAlternateContactInput {
	s.Name = &v
	return s
}

// SetPhoneNumber sets the PhoneNumber field's value.
func (s *PutAlternateContactInput) SetPhoneNumber(v string) *PutAlternateContactInput {
	s.PhoneNumber = &v
	return s
}

// SetTitle sets the Title field's value.
func (s *PutAlternateContactInput) SetTitle(v string) *PutAlternateContactInput {
	s.Title = &v
	return s
}

type PutAlternateContactOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAlternateContactOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAlternateContactOutput) GoString() string {
	return s.String()
}

type PutContactInformationInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. If you don't specify
	// this parameter, it defaults to the Amazon Web Services account of the identity
	// used to call the operation. To use this parameter, the caller must be an
	// identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// The management account can't specify its own AccountId. It must call the
	// operation in standalone context by not including the AccountId parameter.
	//
	// To call this operation on an account that is not a member of an organization,
	// don't specify this parameter. Instead, call the operation using an identity
	// belonging to the account whose contacts you wish to retrieve or modify.
	AccountId *string `type:"string"`

	// Contains the details of the primary contact information associated with an
	// Amazon Web Services account.
	//
	// ContactInformation is a required field
	ContactInformation *ContactInformation `type:"structure" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutContactInformationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutContactInformationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutContactInformationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutContactInformationInput"}
	if s.ContactInformation == nil {
		invalidParams.Add(request.NewErrParamRequired("ContactInformation"))
	}
	if s.ContactInformation != nil {
		if err := s.ContactInformation.Validate(); err != nil {
			invalidParams.AddNested("ContactInformation", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *PutContactInformationInput) SetAccountId(v string) *PutContactInformationInput {
	s.AccountId = &v
	return s
}

// SetContactInformation sets the ContactInformation field's value.
func (s *PutContactInformationInput) SetContactInformation(v *ContactInformation) *PutContactInformationInput {
	s.ContactInformation = v
	return s
}

type PutContactInformationOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutContactInformationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutContactInformationOutput) GoString() string {
	return s.String()
}

// This is a structure that expresses the Region for a given account, consisting
// of a name and opt-in status.
type Region struct {
	_ struct{} `type:"structure"`

	// The Region code of a given Region (for example, us-east-1).
	RegionName *string `min:"1" type:"string"`

	// One of potential statuses a Region can undergo (Enabled, Enabling, Disabled,
	// Disabling, Enabled_By_Default).
	RegionOptStatus *string `type:"string" enum:"RegionOptStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Region) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Region) GoString() string {
	return s.String()
}

// SetRegionName sets the RegionName field's value.
func (s *Region) SetRegionName(v string) *Region {
	s.RegionName = &v
	return s
}

// SetRegionOptStatus sets the RegionOptStatus field's value.
func (s *Region) SetRegionOptStatus(v string) *Region {
	s.RegionOptStatus = &v
	return s
}

// The operation failed because it specified a resource that can't be found.
type ResourceNotFoundException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) GoString() string {
	return s.String()
}

func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
	return &ResourceNotFoundException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
	return "ResourceNotFoundException"
}

// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
	return nil
}

func (s *ResourceNotFoundException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
	return s.RespMetadata.RequestID
}

type StartPrimaryEmailUpdateInput struct {
	_ struct{} `type:"structure"`

	// Specifies the 12-digit account ID number of the Amazon Web Services account
	// that you want to access or modify with this operation. To use this parameter,
	// the caller must be an identity in the organization's management account (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account)
	// or a delegated administrator account. The specified account ID must be a
	// member account in the same organization. The organization must have all features
	// enabled (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html),
	// and the organization must have trusted access (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html)
	// enabled for the Account Management service, and optionally a delegated admin
	// (https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html)
	// account assigned.
	//
	// This operation can only be called from the management account or the delegated
	// administrator account of an organization for a member account.
	//
	// The management account can't specify its own AccountId.
	//
	// AccountId is a required field
	AccountId *string `type:"string" required:"true"`

	// The new primary email address (also known as the root user email address)
	// to use in the specified account.
	//
	// PrimaryEmail is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by StartPrimaryEmailUpdateInput's
	// String and GoString methods.
	//
	// PrimaryEmail is a required field
	PrimaryEmail *string `min:"5" type:"string" required:"true" sensitive:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartPrimaryEmailUpdateInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartPrimaryEmailUpdateInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *StartPrimaryEmailUpdateInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "StartPrimaryEmailUpdateInput"}
	if s.AccountId == nil {
		invalidParams.Add(request.NewErrParamRequired("AccountId"))
	}
	if s.PrimaryEmail == nil {
		invalidParams.Add(request.NewErrParamRequired("PrimaryEmail"))
	}
	if s.PrimaryEmail != nil && len(*s.PrimaryEmail) < 5 {
		invalidParams.Add(request.NewErrParamMinLen("PrimaryEmail", 5))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountId sets the AccountId field's value.
func (s *StartPrimaryEmailUpdateInput) SetAccountId(v string) *StartPrimaryEmailUpdateInput {
	s.AccountId = &v
	return s
}

// SetPrimaryEmail sets the PrimaryEmail field's value.
func (s *StartPrimaryEmailUpdateInput) SetPrimaryEmail(v string) *StartPrimaryEmailUpdateInput {
	s.PrimaryEmail = &v
	return s
}

type StartPrimaryEmailUpdateOutput struct {
	_ struct{} `type:"structure"`

	// The status of the primary email update request.
	Status *string `type:"string" enum:"PrimaryEmailUpdateStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartPrimaryEmailUpdateOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartPrimaryEmailUpdateOutput) GoString() string {
	return s.String()
}

// SetStatus sets the Status field's value.
func (s *StartPrimaryEmailUpdateOutput) SetStatus(v string) *StartPrimaryEmailUpdateOutput {
	s.Status = &v
	return s
}

// The operation failed because it was called too frequently and exceeded a
// throttle limit.
type TooManyRequestsException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TooManyRequestsException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TooManyRequestsException) GoString() string {
	return s.String()
}

func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
	return &TooManyRequestsException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *TooManyRequestsException) Code() string {
	return "TooManyRequestsException"
}

// Message returns the exception's message.
func (s *TooManyRequestsException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *TooManyRequestsException) OrigErr() error {
	return nil
}

func (s *TooManyRequestsException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *TooManyRequestsException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *TooManyRequestsException) RequestID() string {
	return s.RespMetadata.RequestID
}

// The operation failed because one of the input parameters was invalid.
type ValidationException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The field where the invalid entry was detected.
	FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"`

	// The message that informs you about what was invalid about the request.
	//
	// Message_ is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ValidationException's
	// String and GoString methods.
	Message_ *string `locationName:"message" type:"string" sensitive:"true"`

	// The reason that validation failed.
	Reason *string `locationName:"reason" type:"string" enum:"ValidationExceptionReason"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) GoString() string {
	return s.String()
}

func newErrorValidationException(v protocol.ResponseMetadata) error {
	return &ValidationException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ValidationException) Code() string {
	return "ValidationException"
}

// Message returns the exception's message.
func (s *ValidationException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
	return nil
}

func (s *ValidationException) Error() string {
	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
	return s.RespMetadata.RequestID
}

// The input failed to meet the constraints specified by the Amazon Web Services
// service in a specified field.
type ValidationExceptionField struct {
	_ struct{} `type:"structure"`

	// A message about the validation exception.
	//
	// Message is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ValidationExceptionField's
	// String and GoString methods.
	//
	// Message is a required field
	Message *string `locationName:"message" type:"string" required:"true" sensitive:"true"`

	// The field name where the invalid entry was detected.
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationExceptionField) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationExceptionField) GoString() string {
	return s.String()
}

// SetMessage sets the Message field's value.
func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField {
	s.Message = &v
	return s
}

// SetName sets the Name field's value.
func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField {
	s.Name = &v
	return s
}

const (
	// AlternateContactTypeBilling is a AlternateContactType enum value
	AlternateContactTypeBilling = "BILLING"

	// AlternateContactTypeOperations is a AlternateContactType enum value
	AlternateContactTypeOperations = "OPERATIONS"

	// AlternateContactTypeSecurity is a AlternateContactType enum value
	AlternateContactTypeSecurity = "SECURITY"
)

// AlternateContactType_Values returns all elements of the AlternateContactType enum
func AlternateContactType_Values() []string {
	return []string{
		AlternateContactTypeBilling,
		AlternateContactTypeOperations,
		AlternateContactTypeSecurity,
	}
}

const (
	// PrimaryEmailUpdateStatusPending is a PrimaryEmailUpdateStatus enum value
	PrimaryEmailUpdateStatusPending = "PENDING"

	// PrimaryEmailUpdateStatusAccepted is a PrimaryEmailUpdateStatus enum value
	PrimaryEmailUpdateStatusAccepted = "ACCEPTED"
)

// PrimaryEmailUpdateStatus_Values returns all elements of the PrimaryEmailUpdateStatus enum
func PrimaryEmailUpdateStatus_Values() []string {
	return []string{
		PrimaryEmailUpdateStatusPending,
		PrimaryEmailUpdateStatusAccepted,
	}
}

const (
	// RegionOptStatusEnabled is a RegionOptStatus enum value
	RegionOptStatusEnabled = "ENABLED"

	// RegionOptStatusEnabling is a RegionOptStatus enum value
	RegionOptStatusEnabling = "ENABLING"

	// RegionOptStatusDisabling is a RegionOptStatus enum value
	RegionOptStatusDisabling = "DISABLING"

	// RegionOptStatusDisabled is a RegionOptStatus enum value
	RegionOptStatusDisabled = "DISABLED"

	// RegionOptStatusEnabledByDefault is a RegionOptStatus enum value
	RegionOptStatusEnabledByDefault = "ENABLED_BY_DEFAULT"
)

// RegionOptStatus_Values returns all elements of the RegionOptStatus enum
func RegionOptStatus_Values() []string {
	return []string{
		RegionOptStatusEnabled,
		RegionOptStatusEnabling,
		RegionOptStatusDisabling,
		RegionOptStatusDisabled,
		RegionOptStatusEnabledByDefault,
	}
}

const (
	// ValidationExceptionReasonInvalidRegionOptTarget is a ValidationExceptionReason enum value
	ValidationExceptionReasonInvalidRegionOptTarget = "invalidRegionOptTarget"

	// ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
	ValidationExceptionReasonFieldValidationFailed = "fieldValidationFailed"
)

// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
func ValidationExceptionReason_Values() []string {
	return []string{
		ValidationExceptionReasonInvalidRegionOptTarget,
		ValidationExceptionReasonFieldValidationFailed,
	}
}
