15533 lines
506 KiB
Go
15533 lines
506 KiB
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||
|
||
package alexaforbusiness
|
||
|
||
import (
|
||
"fmt"
|
||
"time"
|
||
|
||
"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/jsonrpc"
|
||
)
|
||
|
||
const opApproveSkill = "ApproveSkill"
|
||
|
||
// ApproveSkillRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ApproveSkill 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 ApproveSkill for more information on using the ApproveSkill
|
||
// 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 ApproveSkillRequest method.
|
||
// req, resp := client.ApproveSkillRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ApproveSkill
|
||
func (c *AlexaForBusiness) ApproveSkillRequest(input *ApproveSkillInput) (req *request.Request, output *ApproveSkillOutput) {
|
||
op := &request.Operation{
|
||
Name: opApproveSkill,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ApproveSkillInput{}
|
||
}
|
||
|
||
output = &ApproveSkillOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// ApproveSkill API operation for Alexa For Business.
|
||
//
|
||
// Associates a skill with the organization under the customer's AWS account.
|
||
// If a skill is private, the user implicitly accepts access to this skill during
|
||
// enablement.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ApproveSkill for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ApproveSkill
|
||
func (c *AlexaForBusiness) ApproveSkill(input *ApproveSkillInput) (*ApproveSkillOutput, error) {
|
||
req, out := c.ApproveSkillRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ApproveSkillWithContext is the same as ApproveSkill with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ApproveSkill 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 *AlexaForBusiness) ApproveSkillWithContext(ctx aws.Context, input *ApproveSkillInput, opts ...request.Option) (*ApproveSkillOutput, error) {
|
||
req, out := c.ApproveSkillRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opAssociateContactWithAddressBook = "AssociateContactWithAddressBook"
|
||
|
||
// AssociateContactWithAddressBookRequest generates a "aws/request.Request" representing the
|
||
// client's request for the AssociateContactWithAddressBook 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 AssociateContactWithAddressBook for more information on using the AssociateContactWithAddressBook
|
||
// 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 AssociateContactWithAddressBookRequest method.
|
||
// req, resp := client.AssociateContactWithAddressBookRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateContactWithAddressBook
|
||
func (c *AlexaForBusiness) AssociateContactWithAddressBookRequest(input *AssociateContactWithAddressBookInput) (req *request.Request, output *AssociateContactWithAddressBookOutput) {
|
||
op := &request.Operation{
|
||
Name: opAssociateContactWithAddressBook,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &AssociateContactWithAddressBookInput{}
|
||
}
|
||
|
||
output = &AssociateContactWithAddressBookOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// AssociateContactWithAddressBook API operation for Alexa For Business.
|
||
//
|
||
// Associates a contact with a given address book.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation AssociateContactWithAddressBook for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateContactWithAddressBook
|
||
func (c *AlexaForBusiness) AssociateContactWithAddressBook(input *AssociateContactWithAddressBookInput) (*AssociateContactWithAddressBookOutput, error) {
|
||
req, out := c.AssociateContactWithAddressBookRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// AssociateContactWithAddressBookWithContext is the same as AssociateContactWithAddressBook with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See AssociateContactWithAddressBook 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 *AlexaForBusiness) AssociateContactWithAddressBookWithContext(ctx aws.Context, input *AssociateContactWithAddressBookInput, opts ...request.Option) (*AssociateContactWithAddressBookOutput, error) {
|
||
req, out := c.AssociateContactWithAddressBookRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opAssociateDeviceWithRoom = "AssociateDeviceWithRoom"
|
||
|
||
// AssociateDeviceWithRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the AssociateDeviceWithRoom 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 AssociateDeviceWithRoom for more information on using the AssociateDeviceWithRoom
|
||
// 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 AssociateDeviceWithRoomRequest method.
|
||
// req, resp := client.AssociateDeviceWithRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateDeviceWithRoom
|
||
func (c *AlexaForBusiness) AssociateDeviceWithRoomRequest(input *AssociateDeviceWithRoomInput) (req *request.Request, output *AssociateDeviceWithRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opAssociateDeviceWithRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &AssociateDeviceWithRoomInput{}
|
||
}
|
||
|
||
output = &AssociateDeviceWithRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// AssociateDeviceWithRoom API operation for Alexa For Business.
|
||
//
|
||
// Associates a device with a given room. This applies all the settings from
|
||
// the room profile to the device, and all the skills in any skill groups added
|
||
// to that room. This operation requires the device to be online, or else a
|
||
// manual sync is required.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation AssociateDeviceWithRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException"
|
||
// The request failed because this device is no longer registered and therefore
|
||
// no longer managed by this account.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateDeviceWithRoom
|
||
func (c *AlexaForBusiness) AssociateDeviceWithRoom(input *AssociateDeviceWithRoomInput) (*AssociateDeviceWithRoomOutput, error) {
|
||
req, out := c.AssociateDeviceWithRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// AssociateDeviceWithRoomWithContext is the same as AssociateDeviceWithRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See AssociateDeviceWithRoom 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 *AlexaForBusiness) AssociateDeviceWithRoomWithContext(ctx aws.Context, input *AssociateDeviceWithRoomInput, opts ...request.Option) (*AssociateDeviceWithRoomOutput, error) {
|
||
req, out := c.AssociateDeviceWithRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opAssociateSkillGroupWithRoom = "AssociateSkillGroupWithRoom"
|
||
|
||
// AssociateSkillGroupWithRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the AssociateSkillGroupWithRoom 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 AssociateSkillGroupWithRoom for more information on using the AssociateSkillGroupWithRoom
|
||
// 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 AssociateSkillGroupWithRoomRequest method.
|
||
// req, resp := client.AssociateSkillGroupWithRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillGroupWithRoom
|
||
func (c *AlexaForBusiness) AssociateSkillGroupWithRoomRequest(input *AssociateSkillGroupWithRoomInput) (req *request.Request, output *AssociateSkillGroupWithRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opAssociateSkillGroupWithRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &AssociateSkillGroupWithRoomInput{}
|
||
}
|
||
|
||
output = &AssociateSkillGroupWithRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// AssociateSkillGroupWithRoom API operation for Alexa For Business.
|
||
//
|
||
// Associates a skill group with a given room. This enables all skills in the
|
||
// associated skill group on all devices in the room.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation AssociateSkillGroupWithRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillGroupWithRoom
|
||
func (c *AlexaForBusiness) AssociateSkillGroupWithRoom(input *AssociateSkillGroupWithRoomInput) (*AssociateSkillGroupWithRoomOutput, error) {
|
||
req, out := c.AssociateSkillGroupWithRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// AssociateSkillGroupWithRoomWithContext is the same as AssociateSkillGroupWithRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See AssociateSkillGroupWithRoom 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 *AlexaForBusiness) AssociateSkillGroupWithRoomWithContext(ctx aws.Context, input *AssociateSkillGroupWithRoomInput, opts ...request.Option) (*AssociateSkillGroupWithRoomOutput, error) {
|
||
req, out := c.AssociateSkillGroupWithRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opAssociateSkillWithSkillGroup = "AssociateSkillWithSkillGroup"
|
||
|
||
// AssociateSkillWithSkillGroupRequest generates a "aws/request.Request" representing the
|
||
// client's request for the AssociateSkillWithSkillGroup 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 AssociateSkillWithSkillGroup for more information on using the AssociateSkillWithSkillGroup
|
||
// 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 AssociateSkillWithSkillGroupRequest method.
|
||
// req, resp := client.AssociateSkillWithSkillGroupRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithSkillGroup
|
||
func (c *AlexaForBusiness) AssociateSkillWithSkillGroupRequest(input *AssociateSkillWithSkillGroupInput) (req *request.Request, output *AssociateSkillWithSkillGroupOutput) {
|
||
op := &request.Operation{
|
||
Name: opAssociateSkillWithSkillGroup,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &AssociateSkillWithSkillGroupInput{}
|
||
}
|
||
|
||
output = &AssociateSkillWithSkillGroupOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// AssociateSkillWithSkillGroup API operation for Alexa For Business.
|
||
//
|
||
// Associates a skill with a skill group.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation AssociateSkillWithSkillGroup for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeSkillNotLinkedException "SkillNotLinkedException"
|
||
// The skill must be linked to a third-party account.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithSkillGroup
|
||
func (c *AlexaForBusiness) AssociateSkillWithSkillGroup(input *AssociateSkillWithSkillGroupInput) (*AssociateSkillWithSkillGroupOutput, error) {
|
||
req, out := c.AssociateSkillWithSkillGroupRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// AssociateSkillWithSkillGroupWithContext is the same as AssociateSkillWithSkillGroup with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See AssociateSkillWithSkillGroup 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 *AlexaForBusiness) AssociateSkillWithSkillGroupWithContext(ctx aws.Context, input *AssociateSkillWithSkillGroupInput, opts ...request.Option) (*AssociateSkillWithSkillGroupOutput, error) {
|
||
req, out := c.AssociateSkillWithSkillGroupRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opAssociateSkillWithUsers = "AssociateSkillWithUsers"
|
||
|
||
// AssociateSkillWithUsersRequest generates a "aws/request.Request" representing the
|
||
// client's request for the AssociateSkillWithUsers 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 AssociateSkillWithUsers for more information on using the AssociateSkillWithUsers
|
||
// 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 AssociateSkillWithUsersRequest method.
|
||
// req, resp := client.AssociateSkillWithUsersRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithUsers
|
||
func (c *AlexaForBusiness) AssociateSkillWithUsersRequest(input *AssociateSkillWithUsersInput) (req *request.Request, output *AssociateSkillWithUsersOutput) {
|
||
op := &request.Operation{
|
||
Name: opAssociateSkillWithUsers,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &AssociateSkillWithUsersInput{}
|
||
}
|
||
|
||
output = &AssociateSkillWithUsersOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// AssociateSkillWithUsers API operation for Alexa For Business.
|
||
//
|
||
// Makes a private skill available for enrolled users to enable on their devices.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation AssociateSkillWithUsers for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithUsers
|
||
func (c *AlexaForBusiness) AssociateSkillWithUsers(input *AssociateSkillWithUsersInput) (*AssociateSkillWithUsersOutput, error) {
|
||
req, out := c.AssociateSkillWithUsersRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// AssociateSkillWithUsersWithContext is the same as AssociateSkillWithUsers with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See AssociateSkillWithUsers 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 *AlexaForBusiness) AssociateSkillWithUsersWithContext(ctx aws.Context, input *AssociateSkillWithUsersInput, opts ...request.Option) (*AssociateSkillWithUsersOutput, error) {
|
||
req, out := c.AssociateSkillWithUsersRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateAddressBook = "CreateAddressBook"
|
||
|
||
// CreateAddressBookRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateAddressBook 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 CreateAddressBook for more information on using the CreateAddressBook
|
||
// 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 CreateAddressBookRequest method.
|
||
// req, resp := client.CreateAddressBookRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateAddressBook
|
||
func (c *AlexaForBusiness) CreateAddressBookRequest(input *CreateAddressBookInput) (req *request.Request, output *CreateAddressBookOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateAddressBook,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateAddressBookInput{}
|
||
}
|
||
|
||
output = &CreateAddressBookOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateAddressBook API operation for Alexa For Business.
|
||
//
|
||
// Creates an address book with the specified details.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateAddressBook for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateAddressBook
|
||
func (c *AlexaForBusiness) CreateAddressBook(input *CreateAddressBookInput) (*CreateAddressBookOutput, error) {
|
||
req, out := c.CreateAddressBookRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateAddressBookWithContext is the same as CreateAddressBook with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateAddressBook 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 *AlexaForBusiness) CreateAddressBookWithContext(ctx aws.Context, input *CreateAddressBookInput, opts ...request.Option) (*CreateAddressBookOutput, error) {
|
||
req, out := c.CreateAddressBookRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateBusinessReportSchedule = "CreateBusinessReportSchedule"
|
||
|
||
// CreateBusinessReportScheduleRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateBusinessReportSchedule 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 CreateBusinessReportSchedule for more information on using the CreateBusinessReportSchedule
|
||
// 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 CreateBusinessReportScheduleRequest method.
|
||
// req, resp := client.CreateBusinessReportScheduleRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateBusinessReportSchedule
|
||
func (c *AlexaForBusiness) CreateBusinessReportScheduleRequest(input *CreateBusinessReportScheduleInput) (req *request.Request, output *CreateBusinessReportScheduleOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateBusinessReportSchedule,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateBusinessReportScheduleInput{}
|
||
}
|
||
|
||
output = &CreateBusinessReportScheduleOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateBusinessReportSchedule API operation for Alexa For Business.
|
||
//
|
||
// Creates a recurring schedule for usage reports to deliver to the specified
|
||
// S3 location with a specified daily or weekly interval.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateBusinessReportSchedule for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateBusinessReportSchedule
|
||
func (c *AlexaForBusiness) CreateBusinessReportSchedule(input *CreateBusinessReportScheduleInput) (*CreateBusinessReportScheduleOutput, error) {
|
||
req, out := c.CreateBusinessReportScheduleRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateBusinessReportScheduleWithContext is the same as CreateBusinessReportSchedule with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateBusinessReportSchedule 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 *AlexaForBusiness) CreateBusinessReportScheduleWithContext(ctx aws.Context, input *CreateBusinessReportScheduleInput, opts ...request.Option) (*CreateBusinessReportScheduleOutput, error) {
|
||
req, out := c.CreateBusinessReportScheduleRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateConferenceProvider = "CreateConferenceProvider"
|
||
|
||
// CreateConferenceProviderRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateConferenceProvider 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 CreateConferenceProvider for more information on using the CreateConferenceProvider
|
||
// 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 CreateConferenceProviderRequest method.
|
||
// req, resp := client.CreateConferenceProviderRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateConferenceProvider
|
||
func (c *AlexaForBusiness) CreateConferenceProviderRequest(input *CreateConferenceProviderInput) (req *request.Request, output *CreateConferenceProviderOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateConferenceProvider,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateConferenceProviderInput{}
|
||
}
|
||
|
||
output = &CreateConferenceProviderOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateConferenceProvider API operation for Alexa For Business.
|
||
//
|
||
// Adds a new conference provider under the user's AWS 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 Alexa For Business's
|
||
// API operation CreateConferenceProvider for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateConferenceProvider
|
||
func (c *AlexaForBusiness) CreateConferenceProvider(input *CreateConferenceProviderInput) (*CreateConferenceProviderOutput, error) {
|
||
req, out := c.CreateConferenceProviderRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateConferenceProviderWithContext is the same as CreateConferenceProvider with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateConferenceProvider 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 *AlexaForBusiness) CreateConferenceProviderWithContext(ctx aws.Context, input *CreateConferenceProviderInput, opts ...request.Option) (*CreateConferenceProviderOutput, error) {
|
||
req, out := c.CreateConferenceProviderRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateContact = "CreateContact"
|
||
|
||
// CreateContactRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateContact 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 CreateContact for more information on using the CreateContact
|
||
// 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 CreateContactRequest method.
|
||
// req, resp := client.CreateContactRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateContact
|
||
func (c *AlexaForBusiness) CreateContactRequest(input *CreateContactInput) (req *request.Request, output *CreateContactOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateContact,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateContactInput{}
|
||
}
|
||
|
||
output = &CreateContactOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateContact API operation for Alexa For Business.
|
||
//
|
||
// Creates a contact with the specified details.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateContact for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateContact
|
||
func (c *AlexaForBusiness) CreateContact(input *CreateContactInput) (*CreateContactOutput, error) {
|
||
req, out := c.CreateContactRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateContactWithContext is the same as CreateContact with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateContact 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 *AlexaForBusiness) CreateContactWithContext(ctx aws.Context, input *CreateContactInput, opts ...request.Option) (*CreateContactOutput, error) {
|
||
req, out := c.CreateContactRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateProfile = "CreateProfile"
|
||
|
||
// CreateProfileRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateProfile 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 CreateProfile for more information on using the CreateProfile
|
||
// 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 CreateProfileRequest method.
|
||
// req, resp := client.CreateProfileRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateProfile
|
||
func (c *AlexaForBusiness) CreateProfileRequest(input *CreateProfileInput) (req *request.Request, output *CreateProfileOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateProfile,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateProfileInput{}
|
||
}
|
||
|
||
output = &CreateProfileOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateProfile API operation for Alexa For Business.
|
||
//
|
||
// Creates a new room profile with the specified details.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateProfile for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateProfile
|
||
func (c *AlexaForBusiness) CreateProfile(input *CreateProfileInput) (*CreateProfileOutput, error) {
|
||
req, out := c.CreateProfileRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateProfileWithContext is the same as CreateProfile with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateProfile 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 *AlexaForBusiness) CreateProfileWithContext(ctx aws.Context, input *CreateProfileInput, opts ...request.Option) (*CreateProfileOutput, error) {
|
||
req, out := c.CreateProfileRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateRoom = "CreateRoom"
|
||
|
||
// CreateRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateRoom 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 CreateRoom for more information on using the CreateRoom
|
||
// 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 CreateRoomRequest method.
|
||
// req, resp := client.CreateRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateRoom
|
||
func (c *AlexaForBusiness) CreateRoomRequest(input *CreateRoomInput) (req *request.Request, output *CreateRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateRoomInput{}
|
||
}
|
||
|
||
output = &CreateRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateRoom API operation for Alexa For Business.
|
||
//
|
||
// Creates a room with the specified details.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateRoom
|
||
func (c *AlexaForBusiness) CreateRoom(input *CreateRoomInput) (*CreateRoomOutput, error) {
|
||
req, out := c.CreateRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateRoomWithContext is the same as CreateRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateRoom 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 *AlexaForBusiness) CreateRoomWithContext(ctx aws.Context, input *CreateRoomInput, opts ...request.Option) (*CreateRoomOutput, error) {
|
||
req, out := c.CreateRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateSkillGroup = "CreateSkillGroup"
|
||
|
||
// CreateSkillGroupRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateSkillGroup 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 CreateSkillGroup for more information on using the CreateSkillGroup
|
||
// 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 CreateSkillGroupRequest method.
|
||
// req, resp := client.CreateSkillGroupRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateSkillGroup
|
||
func (c *AlexaForBusiness) CreateSkillGroupRequest(input *CreateSkillGroupInput) (req *request.Request, output *CreateSkillGroupOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateSkillGroup,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateSkillGroupInput{}
|
||
}
|
||
|
||
output = &CreateSkillGroupOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateSkillGroup API operation for Alexa For Business.
|
||
//
|
||
// Creates a skill group with a specified name and description.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateSkillGroup for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeAlreadyExistsException "AlreadyExistsException"
|
||
// The resource being created already exists.
|
||
//
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateSkillGroup
|
||
func (c *AlexaForBusiness) CreateSkillGroup(input *CreateSkillGroupInput) (*CreateSkillGroupOutput, error) {
|
||
req, out := c.CreateSkillGroupRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateSkillGroupWithContext is the same as CreateSkillGroup with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateSkillGroup 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 *AlexaForBusiness) CreateSkillGroupWithContext(ctx aws.Context, input *CreateSkillGroupInput, opts ...request.Option) (*CreateSkillGroupOutput, error) {
|
||
req, out := c.CreateSkillGroupRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opCreateUser = "CreateUser"
|
||
|
||
// CreateUserRequest generates a "aws/request.Request" representing the
|
||
// client's request for the CreateUser 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 CreateUser for more information on using the CreateUser
|
||
// 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 CreateUserRequest method.
|
||
// req, resp := client.CreateUserRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateUser
|
||
func (c *AlexaForBusiness) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) {
|
||
op := &request.Operation{
|
||
Name: opCreateUser,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &CreateUserInput{}
|
||
}
|
||
|
||
output = &CreateUserOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// CreateUser API operation for Alexa For Business.
|
||
//
|
||
// Creates a user.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation CreateUser for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeResourceInUseException "ResourceInUseException"
|
||
// The resource in the request is already in use.
|
||
//
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateUser
|
||
func (c *AlexaForBusiness) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) {
|
||
req, out := c.CreateUserRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// CreateUserWithContext is the same as CreateUser with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See CreateUser 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 *AlexaForBusiness) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) {
|
||
req, out := c.CreateUserRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteAddressBook = "DeleteAddressBook"
|
||
|
||
// DeleteAddressBookRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteAddressBook 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 DeleteAddressBook for more information on using the DeleteAddressBook
|
||
// 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 DeleteAddressBookRequest method.
|
||
// req, resp := client.DeleteAddressBookRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteAddressBook
|
||
func (c *AlexaForBusiness) DeleteAddressBookRequest(input *DeleteAddressBookInput) (req *request.Request, output *DeleteAddressBookOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteAddressBook,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteAddressBookInput{}
|
||
}
|
||
|
||
output = &DeleteAddressBookOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteAddressBook API operation for Alexa For Business.
|
||
//
|
||
// Deletes an address book by the address book ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteAddressBook for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteAddressBook
|
||
func (c *AlexaForBusiness) DeleteAddressBook(input *DeleteAddressBookInput) (*DeleteAddressBookOutput, error) {
|
||
req, out := c.DeleteAddressBookRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteAddressBookWithContext is the same as DeleteAddressBook with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteAddressBook 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 *AlexaForBusiness) DeleteAddressBookWithContext(ctx aws.Context, input *DeleteAddressBookInput, opts ...request.Option) (*DeleteAddressBookOutput, error) {
|
||
req, out := c.DeleteAddressBookRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteBusinessReportSchedule = "DeleteBusinessReportSchedule"
|
||
|
||
// DeleteBusinessReportScheduleRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteBusinessReportSchedule 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 DeleteBusinessReportSchedule for more information on using the DeleteBusinessReportSchedule
|
||
// 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 DeleteBusinessReportScheduleRequest method.
|
||
// req, resp := client.DeleteBusinessReportScheduleRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteBusinessReportSchedule
|
||
func (c *AlexaForBusiness) DeleteBusinessReportScheduleRequest(input *DeleteBusinessReportScheduleInput) (req *request.Request, output *DeleteBusinessReportScheduleOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteBusinessReportSchedule,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteBusinessReportScheduleInput{}
|
||
}
|
||
|
||
output = &DeleteBusinessReportScheduleOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteBusinessReportSchedule API operation for Alexa For Business.
|
||
//
|
||
// Deletes the recurring report delivery schedule with the specified schedule
|
||
// ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteBusinessReportSchedule for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteBusinessReportSchedule
|
||
func (c *AlexaForBusiness) DeleteBusinessReportSchedule(input *DeleteBusinessReportScheduleInput) (*DeleteBusinessReportScheduleOutput, error) {
|
||
req, out := c.DeleteBusinessReportScheduleRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteBusinessReportScheduleWithContext is the same as DeleteBusinessReportSchedule with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteBusinessReportSchedule 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 *AlexaForBusiness) DeleteBusinessReportScheduleWithContext(ctx aws.Context, input *DeleteBusinessReportScheduleInput, opts ...request.Option) (*DeleteBusinessReportScheduleOutput, error) {
|
||
req, out := c.DeleteBusinessReportScheduleRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteConferenceProvider = "DeleteConferenceProvider"
|
||
|
||
// DeleteConferenceProviderRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteConferenceProvider 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 DeleteConferenceProvider for more information on using the DeleteConferenceProvider
|
||
// 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 DeleteConferenceProviderRequest method.
|
||
// req, resp := client.DeleteConferenceProviderRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteConferenceProvider
|
||
func (c *AlexaForBusiness) DeleteConferenceProviderRequest(input *DeleteConferenceProviderInput) (req *request.Request, output *DeleteConferenceProviderOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteConferenceProvider,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteConferenceProviderInput{}
|
||
}
|
||
|
||
output = &DeleteConferenceProviderOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteConferenceProvider API operation for Alexa For Business.
|
||
//
|
||
// Deletes a conference provider.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteConferenceProvider for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteConferenceProvider
|
||
func (c *AlexaForBusiness) DeleteConferenceProvider(input *DeleteConferenceProviderInput) (*DeleteConferenceProviderOutput, error) {
|
||
req, out := c.DeleteConferenceProviderRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteConferenceProviderWithContext is the same as DeleteConferenceProvider with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteConferenceProvider 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 *AlexaForBusiness) DeleteConferenceProviderWithContext(ctx aws.Context, input *DeleteConferenceProviderInput, opts ...request.Option) (*DeleteConferenceProviderOutput, error) {
|
||
req, out := c.DeleteConferenceProviderRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteContact = "DeleteContact"
|
||
|
||
// DeleteContactRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteContact 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 DeleteContact for more information on using the DeleteContact
|
||
// 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 DeleteContactRequest method.
|
||
// req, resp := client.DeleteContactRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact
|
||
func (c *AlexaForBusiness) DeleteContactRequest(input *DeleteContactInput) (req *request.Request, output *DeleteContactOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteContact,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteContactInput{}
|
||
}
|
||
|
||
output = &DeleteContactOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteContact API operation for Alexa For Business.
|
||
//
|
||
// Deletes a contact by the contact ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteContact for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact
|
||
func (c *AlexaForBusiness) DeleteContact(input *DeleteContactInput) (*DeleteContactOutput, error) {
|
||
req, out := c.DeleteContactRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteContactWithContext is the same as DeleteContact with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteContact 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 *AlexaForBusiness) DeleteContactWithContext(ctx aws.Context, input *DeleteContactInput, opts ...request.Option) (*DeleteContactOutput, error) {
|
||
req, out := c.DeleteContactRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteDevice = "DeleteDevice"
|
||
|
||
// DeleteDeviceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteDevice 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 DeleteDevice for more information on using the DeleteDevice
|
||
// 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 DeleteDeviceRequest method.
|
||
// req, resp := client.DeleteDeviceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteDevice
|
||
func (c *AlexaForBusiness) DeleteDeviceRequest(input *DeleteDeviceInput) (req *request.Request, output *DeleteDeviceOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteDevice,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteDeviceInput{}
|
||
}
|
||
|
||
output = &DeleteDeviceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteDevice API operation for Alexa For Business.
|
||
//
|
||
// Removes a device from Alexa For Business.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteDevice for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeInvalidCertificateAuthorityException "InvalidCertificateAuthorityException"
|
||
// The Certificate Authority can't issue or revoke a certificate.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteDevice
|
||
func (c *AlexaForBusiness) DeleteDevice(input *DeleteDeviceInput) (*DeleteDeviceOutput, error) {
|
||
req, out := c.DeleteDeviceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteDeviceWithContext is the same as DeleteDevice with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteDevice 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 *AlexaForBusiness) DeleteDeviceWithContext(ctx aws.Context, input *DeleteDeviceInput, opts ...request.Option) (*DeleteDeviceOutput, error) {
|
||
req, out := c.DeleteDeviceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteProfile = "DeleteProfile"
|
||
|
||
// DeleteProfileRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteProfile 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 DeleteProfile for more information on using the DeleteProfile
|
||
// 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 DeleteProfileRequest method.
|
||
// req, resp := client.DeleteProfileRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile
|
||
func (c *AlexaForBusiness) DeleteProfileRequest(input *DeleteProfileInput) (req *request.Request, output *DeleteProfileOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteProfile,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteProfileInput{}
|
||
}
|
||
|
||
output = &DeleteProfileOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteProfile API operation for Alexa For Business.
|
||
//
|
||
// Deletes a room profile by the profile ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteProfile for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile
|
||
func (c *AlexaForBusiness) DeleteProfile(input *DeleteProfileInput) (*DeleteProfileOutput, error) {
|
||
req, out := c.DeleteProfileRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteProfileWithContext is the same as DeleteProfile with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteProfile 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 *AlexaForBusiness) DeleteProfileWithContext(ctx aws.Context, input *DeleteProfileInput, opts ...request.Option) (*DeleteProfileOutput, error) {
|
||
req, out := c.DeleteProfileRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteRoom = "DeleteRoom"
|
||
|
||
// DeleteRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteRoom 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 DeleteRoom for more information on using the DeleteRoom
|
||
// 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 DeleteRoomRequest method.
|
||
// req, resp := client.DeleteRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoom
|
||
func (c *AlexaForBusiness) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, output *DeleteRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteRoomInput{}
|
||
}
|
||
|
||
output = &DeleteRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteRoom API operation for Alexa For Business.
|
||
//
|
||
// Deletes a room by the room ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoom
|
||
func (c *AlexaForBusiness) DeleteRoom(input *DeleteRoomInput) (*DeleteRoomOutput, error) {
|
||
req, out := c.DeleteRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteRoomWithContext is the same as DeleteRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteRoom 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 *AlexaForBusiness) DeleteRoomWithContext(ctx aws.Context, input *DeleteRoomInput, opts ...request.Option) (*DeleteRoomOutput, error) {
|
||
req, out := c.DeleteRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteRoomSkillParameter = "DeleteRoomSkillParameter"
|
||
|
||
// DeleteRoomSkillParameterRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteRoomSkillParameter 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 DeleteRoomSkillParameter for more information on using the DeleteRoomSkillParameter
|
||
// 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 DeleteRoomSkillParameterRequest method.
|
||
// req, resp := client.DeleteRoomSkillParameterRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoomSkillParameter
|
||
func (c *AlexaForBusiness) DeleteRoomSkillParameterRequest(input *DeleteRoomSkillParameterInput) (req *request.Request, output *DeleteRoomSkillParameterOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteRoomSkillParameter,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteRoomSkillParameterInput{}
|
||
}
|
||
|
||
output = &DeleteRoomSkillParameterOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteRoomSkillParameter API operation for Alexa For Business.
|
||
//
|
||
// Deletes room skill parameter details by room, skill, and parameter key ID.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteRoomSkillParameter for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoomSkillParameter
|
||
func (c *AlexaForBusiness) DeleteRoomSkillParameter(input *DeleteRoomSkillParameterInput) (*DeleteRoomSkillParameterOutput, error) {
|
||
req, out := c.DeleteRoomSkillParameterRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteRoomSkillParameterWithContext is the same as DeleteRoomSkillParameter with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteRoomSkillParameter 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 *AlexaForBusiness) DeleteRoomSkillParameterWithContext(ctx aws.Context, input *DeleteRoomSkillParameterInput, opts ...request.Option) (*DeleteRoomSkillParameterOutput, error) {
|
||
req, out := c.DeleteRoomSkillParameterRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteSkillAuthorization = "DeleteSkillAuthorization"
|
||
|
||
// DeleteSkillAuthorizationRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteSkillAuthorization 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 DeleteSkillAuthorization for more information on using the DeleteSkillAuthorization
|
||
// 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 DeleteSkillAuthorizationRequest method.
|
||
// req, resp := client.DeleteSkillAuthorizationRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillAuthorization
|
||
func (c *AlexaForBusiness) DeleteSkillAuthorizationRequest(input *DeleteSkillAuthorizationInput) (req *request.Request, output *DeleteSkillAuthorizationOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteSkillAuthorization,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteSkillAuthorizationInput{}
|
||
}
|
||
|
||
output = &DeleteSkillAuthorizationOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteSkillAuthorization API operation for Alexa For Business.
|
||
//
|
||
// Unlinks a third-party account from a skill.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteSkillAuthorization for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillAuthorization
|
||
func (c *AlexaForBusiness) DeleteSkillAuthorization(input *DeleteSkillAuthorizationInput) (*DeleteSkillAuthorizationOutput, error) {
|
||
req, out := c.DeleteSkillAuthorizationRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteSkillAuthorizationWithContext is the same as DeleteSkillAuthorization with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteSkillAuthorization 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 *AlexaForBusiness) DeleteSkillAuthorizationWithContext(ctx aws.Context, input *DeleteSkillAuthorizationInput, opts ...request.Option) (*DeleteSkillAuthorizationOutput, error) {
|
||
req, out := c.DeleteSkillAuthorizationRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteSkillGroup = "DeleteSkillGroup"
|
||
|
||
// DeleteSkillGroupRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteSkillGroup 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 DeleteSkillGroup for more information on using the DeleteSkillGroup
|
||
// 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 DeleteSkillGroupRequest method.
|
||
// req, resp := client.DeleteSkillGroupRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillGroup
|
||
func (c *AlexaForBusiness) DeleteSkillGroupRequest(input *DeleteSkillGroupInput) (req *request.Request, output *DeleteSkillGroupOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteSkillGroup,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteSkillGroupInput{}
|
||
}
|
||
|
||
output = &DeleteSkillGroupOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteSkillGroup API operation for Alexa For Business.
|
||
//
|
||
// Deletes a skill group by skill group ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteSkillGroup for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillGroup
|
||
func (c *AlexaForBusiness) DeleteSkillGroup(input *DeleteSkillGroupInput) (*DeleteSkillGroupOutput, error) {
|
||
req, out := c.DeleteSkillGroupRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteSkillGroupWithContext is the same as DeleteSkillGroup with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteSkillGroup 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 *AlexaForBusiness) DeleteSkillGroupWithContext(ctx aws.Context, input *DeleteSkillGroupInput, opts ...request.Option) (*DeleteSkillGroupOutput, error) {
|
||
req, out := c.DeleteSkillGroupRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDeleteUser = "DeleteUser"
|
||
|
||
// DeleteUserRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DeleteUser 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 DeleteUser for more information on using the DeleteUser
|
||
// 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 DeleteUserRequest method.
|
||
// req, resp := client.DeleteUserRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteUser
|
||
func (c *AlexaForBusiness) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
|
||
op := &request.Operation{
|
||
Name: opDeleteUser,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DeleteUserInput{}
|
||
}
|
||
|
||
output = &DeleteUserOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DeleteUser API operation for Alexa For Business.
|
||
//
|
||
// Deletes a specified user by user ARN and enrollment ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DeleteUser for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteUser
|
||
func (c *AlexaForBusiness) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
|
||
req, out := c.DeleteUserRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DeleteUserWithContext is the same as DeleteUser with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DeleteUser 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 *AlexaForBusiness) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) {
|
||
req, out := c.DeleteUserRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDisassociateContactFromAddressBook = "DisassociateContactFromAddressBook"
|
||
|
||
// DisassociateContactFromAddressBookRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DisassociateContactFromAddressBook 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 DisassociateContactFromAddressBook for more information on using the DisassociateContactFromAddressBook
|
||
// 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 DisassociateContactFromAddressBookRequest method.
|
||
// req, resp := client.DisassociateContactFromAddressBookRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateContactFromAddressBook
|
||
func (c *AlexaForBusiness) DisassociateContactFromAddressBookRequest(input *DisassociateContactFromAddressBookInput) (req *request.Request, output *DisassociateContactFromAddressBookOutput) {
|
||
op := &request.Operation{
|
||
Name: opDisassociateContactFromAddressBook,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DisassociateContactFromAddressBookInput{}
|
||
}
|
||
|
||
output = &DisassociateContactFromAddressBookOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DisassociateContactFromAddressBook API operation for Alexa For Business.
|
||
//
|
||
// Disassociates a contact from a given address book.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DisassociateContactFromAddressBook for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateContactFromAddressBook
|
||
func (c *AlexaForBusiness) DisassociateContactFromAddressBook(input *DisassociateContactFromAddressBookInput) (*DisassociateContactFromAddressBookOutput, error) {
|
||
req, out := c.DisassociateContactFromAddressBookRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DisassociateContactFromAddressBookWithContext is the same as DisassociateContactFromAddressBook with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DisassociateContactFromAddressBook 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 *AlexaForBusiness) DisassociateContactFromAddressBookWithContext(ctx aws.Context, input *DisassociateContactFromAddressBookInput, opts ...request.Option) (*DisassociateContactFromAddressBookOutput, error) {
|
||
req, out := c.DisassociateContactFromAddressBookRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDisassociateDeviceFromRoom = "DisassociateDeviceFromRoom"
|
||
|
||
// DisassociateDeviceFromRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DisassociateDeviceFromRoom 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 DisassociateDeviceFromRoom for more information on using the DisassociateDeviceFromRoom
|
||
// 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 DisassociateDeviceFromRoomRequest method.
|
||
// req, resp := client.DisassociateDeviceFromRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateDeviceFromRoom
|
||
func (c *AlexaForBusiness) DisassociateDeviceFromRoomRequest(input *DisassociateDeviceFromRoomInput) (req *request.Request, output *DisassociateDeviceFromRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opDisassociateDeviceFromRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DisassociateDeviceFromRoomInput{}
|
||
}
|
||
|
||
output = &DisassociateDeviceFromRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DisassociateDeviceFromRoom API operation for Alexa For Business.
|
||
//
|
||
// Disassociates a device from its current room. The device continues to be
|
||
// connected to the Wi-Fi network and is still registered to the account. The
|
||
// device settings and skills are removed from the room.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DisassociateDeviceFromRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException"
|
||
// The request failed because this device is no longer registered and therefore
|
||
// no longer managed by this account.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateDeviceFromRoom
|
||
func (c *AlexaForBusiness) DisassociateDeviceFromRoom(input *DisassociateDeviceFromRoomInput) (*DisassociateDeviceFromRoomOutput, error) {
|
||
req, out := c.DisassociateDeviceFromRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DisassociateDeviceFromRoomWithContext is the same as DisassociateDeviceFromRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DisassociateDeviceFromRoom 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 *AlexaForBusiness) DisassociateDeviceFromRoomWithContext(ctx aws.Context, input *DisassociateDeviceFromRoomInput, opts ...request.Option) (*DisassociateDeviceFromRoomOutput, error) {
|
||
req, out := c.DisassociateDeviceFromRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDisassociateSkillFromSkillGroup = "DisassociateSkillFromSkillGroup"
|
||
|
||
// DisassociateSkillFromSkillGroupRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DisassociateSkillFromSkillGroup 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 DisassociateSkillFromSkillGroup for more information on using the DisassociateSkillFromSkillGroup
|
||
// 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 DisassociateSkillFromSkillGroupRequest method.
|
||
// req, resp := client.DisassociateSkillFromSkillGroupRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromSkillGroup
|
||
func (c *AlexaForBusiness) DisassociateSkillFromSkillGroupRequest(input *DisassociateSkillFromSkillGroupInput) (req *request.Request, output *DisassociateSkillFromSkillGroupOutput) {
|
||
op := &request.Operation{
|
||
Name: opDisassociateSkillFromSkillGroup,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DisassociateSkillFromSkillGroupInput{}
|
||
}
|
||
|
||
output = &DisassociateSkillFromSkillGroupOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DisassociateSkillFromSkillGroup API operation for Alexa For Business.
|
||
//
|
||
// Disassociates a skill from a skill group.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DisassociateSkillFromSkillGroup for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromSkillGroup
|
||
func (c *AlexaForBusiness) DisassociateSkillFromSkillGroup(input *DisassociateSkillFromSkillGroupInput) (*DisassociateSkillFromSkillGroupOutput, error) {
|
||
req, out := c.DisassociateSkillFromSkillGroupRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DisassociateSkillFromSkillGroupWithContext is the same as DisassociateSkillFromSkillGroup with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DisassociateSkillFromSkillGroup 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 *AlexaForBusiness) DisassociateSkillFromSkillGroupWithContext(ctx aws.Context, input *DisassociateSkillFromSkillGroupInput, opts ...request.Option) (*DisassociateSkillFromSkillGroupOutput, error) {
|
||
req, out := c.DisassociateSkillFromSkillGroupRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDisassociateSkillFromUsers = "DisassociateSkillFromUsers"
|
||
|
||
// DisassociateSkillFromUsersRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DisassociateSkillFromUsers 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 DisassociateSkillFromUsers for more information on using the DisassociateSkillFromUsers
|
||
// 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 DisassociateSkillFromUsersRequest method.
|
||
// req, resp := client.DisassociateSkillFromUsersRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromUsers
|
||
func (c *AlexaForBusiness) DisassociateSkillFromUsersRequest(input *DisassociateSkillFromUsersInput) (req *request.Request, output *DisassociateSkillFromUsersOutput) {
|
||
op := &request.Operation{
|
||
Name: opDisassociateSkillFromUsers,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DisassociateSkillFromUsersInput{}
|
||
}
|
||
|
||
output = &DisassociateSkillFromUsersOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DisassociateSkillFromUsers API operation for Alexa For Business.
|
||
//
|
||
// Makes a private skill unavailable for enrolled users and prevents them from
|
||
// enabling it on their devices.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DisassociateSkillFromUsers for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromUsers
|
||
func (c *AlexaForBusiness) DisassociateSkillFromUsers(input *DisassociateSkillFromUsersInput) (*DisassociateSkillFromUsersOutput, error) {
|
||
req, out := c.DisassociateSkillFromUsersRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DisassociateSkillFromUsersWithContext is the same as DisassociateSkillFromUsers with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DisassociateSkillFromUsers 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 *AlexaForBusiness) DisassociateSkillFromUsersWithContext(ctx aws.Context, input *DisassociateSkillFromUsersInput, opts ...request.Option) (*DisassociateSkillFromUsersOutput, error) {
|
||
req, out := c.DisassociateSkillFromUsersRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opDisassociateSkillGroupFromRoom = "DisassociateSkillGroupFromRoom"
|
||
|
||
// DisassociateSkillGroupFromRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the DisassociateSkillGroupFromRoom 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 DisassociateSkillGroupFromRoom for more information on using the DisassociateSkillGroupFromRoom
|
||
// 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 DisassociateSkillGroupFromRoomRequest method.
|
||
// req, resp := client.DisassociateSkillGroupFromRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom
|
||
func (c *AlexaForBusiness) DisassociateSkillGroupFromRoomRequest(input *DisassociateSkillGroupFromRoomInput) (req *request.Request, output *DisassociateSkillGroupFromRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opDisassociateSkillGroupFromRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &DisassociateSkillGroupFromRoomInput{}
|
||
}
|
||
|
||
output = &DisassociateSkillGroupFromRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// DisassociateSkillGroupFromRoom API operation for Alexa For Business.
|
||
//
|
||
// Disassociates a skill group from a specified room. This disables all skills
|
||
// in the skill group on all devices in the room.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation DisassociateSkillGroupFromRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom
|
||
func (c *AlexaForBusiness) DisassociateSkillGroupFromRoom(input *DisassociateSkillGroupFromRoomInput) (*DisassociateSkillGroupFromRoomOutput, error) {
|
||
req, out := c.DisassociateSkillGroupFromRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// DisassociateSkillGroupFromRoomWithContext is the same as DisassociateSkillGroupFromRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See DisassociateSkillGroupFromRoom 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 *AlexaForBusiness) DisassociateSkillGroupFromRoomWithContext(ctx aws.Context, input *DisassociateSkillGroupFromRoomInput, opts ...request.Option) (*DisassociateSkillGroupFromRoomOutput, error) {
|
||
req, out := c.DisassociateSkillGroupFromRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opForgetSmartHomeAppliances = "ForgetSmartHomeAppliances"
|
||
|
||
// ForgetSmartHomeAppliancesRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ForgetSmartHomeAppliances 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 ForgetSmartHomeAppliances for more information on using the ForgetSmartHomeAppliances
|
||
// 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 ForgetSmartHomeAppliancesRequest method.
|
||
// req, resp := client.ForgetSmartHomeAppliancesRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ForgetSmartHomeAppliances
|
||
func (c *AlexaForBusiness) ForgetSmartHomeAppliancesRequest(input *ForgetSmartHomeAppliancesInput) (req *request.Request, output *ForgetSmartHomeAppliancesOutput) {
|
||
op := &request.Operation{
|
||
Name: opForgetSmartHomeAppliances,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ForgetSmartHomeAppliancesInput{}
|
||
}
|
||
|
||
output = &ForgetSmartHomeAppliancesOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// ForgetSmartHomeAppliances API operation for Alexa For Business.
|
||
//
|
||
// Forgets smart home appliances associated to a room.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ForgetSmartHomeAppliances for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ForgetSmartHomeAppliances
|
||
func (c *AlexaForBusiness) ForgetSmartHomeAppliances(input *ForgetSmartHomeAppliancesInput) (*ForgetSmartHomeAppliancesOutput, error) {
|
||
req, out := c.ForgetSmartHomeAppliancesRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ForgetSmartHomeAppliancesWithContext is the same as ForgetSmartHomeAppliances with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ForgetSmartHomeAppliances 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 *AlexaForBusiness) ForgetSmartHomeAppliancesWithContext(ctx aws.Context, input *ForgetSmartHomeAppliancesInput, opts ...request.Option) (*ForgetSmartHomeAppliancesOutput, error) {
|
||
req, out := c.ForgetSmartHomeAppliancesRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetAddressBook = "GetAddressBook"
|
||
|
||
// GetAddressBookRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetAddressBook 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 GetAddressBook for more information on using the GetAddressBook
|
||
// 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 GetAddressBookRequest method.
|
||
// req, resp := client.GetAddressBookRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBook
|
||
func (c *AlexaForBusiness) GetAddressBookRequest(input *GetAddressBookInput) (req *request.Request, output *GetAddressBookOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetAddressBook,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetAddressBookInput{}
|
||
}
|
||
|
||
output = &GetAddressBookOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetAddressBook API operation for Alexa For Business.
|
||
//
|
||
// Gets address the book details by the address book ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetAddressBook for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBook
|
||
func (c *AlexaForBusiness) GetAddressBook(input *GetAddressBookInput) (*GetAddressBookOutput, error) {
|
||
req, out := c.GetAddressBookRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetAddressBookWithContext is the same as GetAddressBook with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetAddressBook 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 *AlexaForBusiness) GetAddressBookWithContext(ctx aws.Context, input *GetAddressBookInput, opts ...request.Option) (*GetAddressBookOutput, error) {
|
||
req, out := c.GetAddressBookRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetConferencePreference = "GetConferencePreference"
|
||
|
||
// GetConferencePreferenceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetConferencePreference 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 GetConferencePreference for more information on using the GetConferencePreference
|
||
// 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 GetConferencePreferenceRequest method.
|
||
// req, resp := client.GetConferencePreferenceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferencePreference
|
||
func (c *AlexaForBusiness) GetConferencePreferenceRequest(input *GetConferencePreferenceInput) (req *request.Request, output *GetConferencePreferenceOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetConferencePreference,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetConferencePreferenceInput{}
|
||
}
|
||
|
||
output = &GetConferencePreferenceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetConferencePreference API operation for Alexa For Business.
|
||
//
|
||
// Retrieves the existing conference preferences.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetConferencePreference for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferencePreference
|
||
func (c *AlexaForBusiness) GetConferencePreference(input *GetConferencePreferenceInput) (*GetConferencePreferenceOutput, error) {
|
||
req, out := c.GetConferencePreferenceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetConferencePreferenceWithContext is the same as GetConferencePreference with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetConferencePreference 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 *AlexaForBusiness) GetConferencePreferenceWithContext(ctx aws.Context, input *GetConferencePreferenceInput, opts ...request.Option) (*GetConferencePreferenceOutput, error) {
|
||
req, out := c.GetConferencePreferenceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetConferenceProvider = "GetConferenceProvider"
|
||
|
||
// GetConferenceProviderRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetConferenceProvider 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 GetConferenceProvider for more information on using the GetConferenceProvider
|
||
// 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 GetConferenceProviderRequest method.
|
||
// req, resp := client.GetConferenceProviderRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferenceProvider
|
||
func (c *AlexaForBusiness) GetConferenceProviderRequest(input *GetConferenceProviderInput) (req *request.Request, output *GetConferenceProviderOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetConferenceProvider,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetConferenceProviderInput{}
|
||
}
|
||
|
||
output = &GetConferenceProviderOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetConferenceProvider API operation for Alexa For Business.
|
||
//
|
||
// Gets details about a specific conference provider.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetConferenceProvider for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferenceProvider
|
||
func (c *AlexaForBusiness) GetConferenceProvider(input *GetConferenceProviderInput) (*GetConferenceProviderOutput, error) {
|
||
req, out := c.GetConferenceProviderRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetConferenceProviderWithContext is the same as GetConferenceProvider with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetConferenceProvider 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 *AlexaForBusiness) GetConferenceProviderWithContext(ctx aws.Context, input *GetConferenceProviderInput, opts ...request.Option) (*GetConferenceProviderOutput, error) {
|
||
req, out := c.GetConferenceProviderRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetContact = "GetContact"
|
||
|
||
// GetContactRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetContact 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 GetContact for more information on using the GetContact
|
||
// 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 GetContactRequest method.
|
||
// req, resp := client.GetContactRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetContact
|
||
func (c *AlexaForBusiness) GetContactRequest(input *GetContactInput) (req *request.Request, output *GetContactOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetContact,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetContactInput{}
|
||
}
|
||
|
||
output = &GetContactOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetContact API operation for Alexa For Business.
|
||
//
|
||
// Gets the contact details by the contact ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetContact for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetContact
|
||
func (c *AlexaForBusiness) GetContact(input *GetContactInput) (*GetContactOutput, error) {
|
||
req, out := c.GetContactRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetContactWithContext is the same as GetContact with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetContact 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 *AlexaForBusiness) GetContactWithContext(ctx aws.Context, input *GetContactInput, opts ...request.Option) (*GetContactOutput, error) {
|
||
req, out := c.GetContactRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetDevice = "GetDevice"
|
||
|
||
// GetDeviceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetDevice 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 GetDevice for more information on using the GetDevice
|
||
// 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 GetDeviceRequest method.
|
||
// req, resp := client.GetDeviceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetDevice
|
||
func (c *AlexaForBusiness) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetDevice,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetDeviceInput{}
|
||
}
|
||
|
||
output = &GetDeviceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetDevice API operation for Alexa For Business.
|
||
//
|
||
// Gets the details of a device by device ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetDevice for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetDevice
|
||
func (c *AlexaForBusiness) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) {
|
||
req, out := c.GetDeviceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetDeviceWithContext is the same as GetDevice with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetDevice 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 *AlexaForBusiness) GetDeviceWithContext(ctx aws.Context, input *GetDeviceInput, opts ...request.Option) (*GetDeviceOutput, error) {
|
||
req, out := c.GetDeviceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetInvitationConfiguration = "GetInvitationConfiguration"
|
||
|
||
// GetInvitationConfigurationRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetInvitationConfiguration 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 GetInvitationConfiguration for more information on using the GetInvitationConfiguration
|
||
// 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 GetInvitationConfigurationRequest method.
|
||
// req, resp := client.GetInvitationConfigurationRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetInvitationConfiguration
|
||
func (c *AlexaForBusiness) GetInvitationConfigurationRequest(input *GetInvitationConfigurationInput) (req *request.Request, output *GetInvitationConfigurationOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetInvitationConfiguration,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetInvitationConfigurationInput{}
|
||
}
|
||
|
||
output = &GetInvitationConfigurationOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetInvitationConfiguration API operation for Alexa For Business.
|
||
//
|
||
// Retrieves the configured values for the user enrollment invitation email
|
||
// template.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetInvitationConfiguration for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetInvitationConfiguration
|
||
func (c *AlexaForBusiness) GetInvitationConfiguration(input *GetInvitationConfigurationInput) (*GetInvitationConfigurationOutput, error) {
|
||
req, out := c.GetInvitationConfigurationRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetInvitationConfigurationWithContext is the same as GetInvitationConfiguration with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetInvitationConfiguration 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 *AlexaForBusiness) GetInvitationConfigurationWithContext(ctx aws.Context, input *GetInvitationConfigurationInput, opts ...request.Option) (*GetInvitationConfigurationOutput, error) {
|
||
req, out := c.GetInvitationConfigurationRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetProfile = "GetProfile"
|
||
|
||
// GetProfileRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetProfile 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 GetProfile for more information on using the GetProfile
|
||
// 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 GetProfileRequest method.
|
||
// req, resp := client.GetProfileRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetProfile
|
||
func (c *AlexaForBusiness) GetProfileRequest(input *GetProfileInput) (req *request.Request, output *GetProfileOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetProfile,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetProfileInput{}
|
||
}
|
||
|
||
output = &GetProfileOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetProfile API operation for Alexa For Business.
|
||
//
|
||
// Gets the details of a room profile by profile ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetProfile for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetProfile
|
||
func (c *AlexaForBusiness) GetProfile(input *GetProfileInput) (*GetProfileOutput, error) {
|
||
req, out := c.GetProfileRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetProfileWithContext is the same as GetProfile with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetProfile 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 *AlexaForBusiness) GetProfileWithContext(ctx aws.Context, input *GetProfileInput, opts ...request.Option) (*GetProfileOutput, error) {
|
||
req, out := c.GetProfileRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetRoom = "GetRoom"
|
||
|
||
// GetRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetRoom 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 GetRoom for more information on using the GetRoom
|
||
// 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 GetRoomRequest method.
|
||
// req, resp := client.GetRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoom
|
||
func (c *AlexaForBusiness) GetRoomRequest(input *GetRoomInput) (req *request.Request, output *GetRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetRoomInput{}
|
||
}
|
||
|
||
output = &GetRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetRoom API operation for Alexa For Business.
|
||
//
|
||
// Gets room details by room ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoom
|
||
func (c *AlexaForBusiness) GetRoom(input *GetRoomInput) (*GetRoomOutput, error) {
|
||
req, out := c.GetRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetRoomWithContext is the same as GetRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetRoom 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 *AlexaForBusiness) GetRoomWithContext(ctx aws.Context, input *GetRoomInput, opts ...request.Option) (*GetRoomOutput, error) {
|
||
req, out := c.GetRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetRoomSkillParameter = "GetRoomSkillParameter"
|
||
|
||
// GetRoomSkillParameterRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetRoomSkillParameter 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 GetRoomSkillParameter for more information on using the GetRoomSkillParameter
|
||
// 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 GetRoomSkillParameterRequest method.
|
||
// req, resp := client.GetRoomSkillParameterRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoomSkillParameter
|
||
func (c *AlexaForBusiness) GetRoomSkillParameterRequest(input *GetRoomSkillParameterInput) (req *request.Request, output *GetRoomSkillParameterOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetRoomSkillParameter,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetRoomSkillParameterInput{}
|
||
}
|
||
|
||
output = &GetRoomSkillParameterOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetRoomSkillParameter API operation for Alexa For Business.
|
||
//
|
||
// Gets room skill parameter details by room, skill, and parameter key ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetRoomSkillParameter for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoomSkillParameter
|
||
func (c *AlexaForBusiness) GetRoomSkillParameter(input *GetRoomSkillParameterInput) (*GetRoomSkillParameterOutput, error) {
|
||
req, out := c.GetRoomSkillParameterRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetRoomSkillParameterWithContext is the same as GetRoomSkillParameter with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetRoomSkillParameter 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 *AlexaForBusiness) GetRoomSkillParameterWithContext(ctx aws.Context, input *GetRoomSkillParameterInput, opts ...request.Option) (*GetRoomSkillParameterOutput, error) {
|
||
req, out := c.GetRoomSkillParameterRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opGetSkillGroup = "GetSkillGroup"
|
||
|
||
// GetSkillGroupRequest generates a "aws/request.Request" representing the
|
||
// client's request for the GetSkillGroup 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 GetSkillGroup for more information on using the GetSkillGroup
|
||
// 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 GetSkillGroupRequest method.
|
||
// req, resp := client.GetSkillGroupRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetSkillGroup
|
||
func (c *AlexaForBusiness) GetSkillGroupRequest(input *GetSkillGroupInput) (req *request.Request, output *GetSkillGroupOutput) {
|
||
op := &request.Operation{
|
||
Name: opGetSkillGroup,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &GetSkillGroupInput{}
|
||
}
|
||
|
||
output = &GetSkillGroupOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// GetSkillGroup API operation for Alexa For Business.
|
||
//
|
||
// Gets skill group details by skill group ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation GetSkillGroup for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetSkillGroup
|
||
func (c *AlexaForBusiness) GetSkillGroup(input *GetSkillGroupInput) (*GetSkillGroupOutput, error) {
|
||
req, out := c.GetSkillGroupRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// GetSkillGroupWithContext is the same as GetSkillGroup with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See GetSkillGroup 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 *AlexaForBusiness) GetSkillGroupWithContext(ctx aws.Context, input *GetSkillGroupInput, opts ...request.Option) (*GetSkillGroupOutput, error) {
|
||
req, out := c.GetSkillGroupRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opListBusinessReportSchedules = "ListBusinessReportSchedules"
|
||
|
||
// ListBusinessReportSchedulesRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListBusinessReportSchedules 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 ListBusinessReportSchedules for more information on using the ListBusinessReportSchedules
|
||
// 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 ListBusinessReportSchedulesRequest method.
|
||
// req, resp := client.ListBusinessReportSchedulesRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListBusinessReportSchedules
|
||
func (c *AlexaForBusiness) ListBusinessReportSchedulesRequest(input *ListBusinessReportSchedulesInput) (req *request.Request, output *ListBusinessReportSchedulesOutput) {
|
||
op := &request.Operation{
|
||
Name: opListBusinessReportSchedules,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListBusinessReportSchedulesInput{}
|
||
}
|
||
|
||
output = &ListBusinessReportSchedulesOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListBusinessReportSchedules API operation for Alexa For Business.
|
||
//
|
||
// Lists the details of the schedules that a user configured.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListBusinessReportSchedules for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListBusinessReportSchedules
|
||
func (c *AlexaForBusiness) ListBusinessReportSchedules(input *ListBusinessReportSchedulesInput) (*ListBusinessReportSchedulesOutput, error) {
|
||
req, out := c.ListBusinessReportSchedulesRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListBusinessReportSchedulesWithContext is the same as ListBusinessReportSchedules with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListBusinessReportSchedules 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 *AlexaForBusiness) ListBusinessReportSchedulesWithContext(ctx aws.Context, input *ListBusinessReportSchedulesInput, opts ...request.Option) (*ListBusinessReportSchedulesOutput, error) {
|
||
req, out := c.ListBusinessReportSchedulesRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListBusinessReportSchedulesPages iterates over the pages of a ListBusinessReportSchedules operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListBusinessReportSchedules 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 ListBusinessReportSchedules operation.
|
||
// pageNum := 0
|
||
// err := client.ListBusinessReportSchedulesPages(params,
|
||
// func(page *ListBusinessReportSchedulesOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListBusinessReportSchedulesPages(input *ListBusinessReportSchedulesInput, fn func(*ListBusinessReportSchedulesOutput, bool) bool) error {
|
||
return c.ListBusinessReportSchedulesPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListBusinessReportSchedulesPagesWithContext same as ListBusinessReportSchedulesPages 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 *AlexaForBusiness) ListBusinessReportSchedulesPagesWithContext(ctx aws.Context, input *ListBusinessReportSchedulesInput, fn func(*ListBusinessReportSchedulesOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListBusinessReportSchedulesInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListBusinessReportSchedulesRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListBusinessReportSchedulesOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListConferenceProviders = "ListConferenceProviders"
|
||
|
||
// ListConferenceProvidersRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListConferenceProviders 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 ListConferenceProviders for more information on using the ListConferenceProviders
|
||
// 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 ListConferenceProvidersRequest method.
|
||
// req, resp := client.ListConferenceProvidersRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListConferenceProviders
|
||
func (c *AlexaForBusiness) ListConferenceProvidersRequest(input *ListConferenceProvidersInput) (req *request.Request, output *ListConferenceProvidersOutput) {
|
||
op := &request.Operation{
|
||
Name: opListConferenceProviders,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListConferenceProvidersInput{}
|
||
}
|
||
|
||
output = &ListConferenceProvidersOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListConferenceProviders API operation for Alexa For Business.
|
||
//
|
||
// Lists conference providers under a specific AWS 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 Alexa For Business's
|
||
// API operation ListConferenceProviders for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListConferenceProviders
|
||
func (c *AlexaForBusiness) ListConferenceProviders(input *ListConferenceProvidersInput) (*ListConferenceProvidersOutput, error) {
|
||
req, out := c.ListConferenceProvidersRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListConferenceProvidersWithContext is the same as ListConferenceProviders with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListConferenceProviders 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 *AlexaForBusiness) ListConferenceProvidersWithContext(ctx aws.Context, input *ListConferenceProvidersInput, opts ...request.Option) (*ListConferenceProvidersOutput, error) {
|
||
req, out := c.ListConferenceProvidersRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListConferenceProvidersPages iterates over the pages of a ListConferenceProviders operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListConferenceProviders 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 ListConferenceProviders operation.
|
||
// pageNum := 0
|
||
// err := client.ListConferenceProvidersPages(params,
|
||
// func(page *ListConferenceProvidersOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListConferenceProvidersPages(input *ListConferenceProvidersInput, fn func(*ListConferenceProvidersOutput, bool) bool) error {
|
||
return c.ListConferenceProvidersPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListConferenceProvidersPagesWithContext same as ListConferenceProvidersPages 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 *AlexaForBusiness) ListConferenceProvidersPagesWithContext(ctx aws.Context, input *ListConferenceProvidersInput, fn func(*ListConferenceProvidersOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListConferenceProvidersInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListConferenceProvidersRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListConferenceProvidersOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListDeviceEvents = "ListDeviceEvents"
|
||
|
||
// ListDeviceEventsRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListDeviceEvents 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 ListDeviceEvents for more information on using the ListDeviceEvents
|
||
// 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 ListDeviceEventsRequest method.
|
||
// req, resp := client.ListDeviceEventsRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListDeviceEvents
|
||
func (c *AlexaForBusiness) ListDeviceEventsRequest(input *ListDeviceEventsInput) (req *request.Request, output *ListDeviceEventsOutput) {
|
||
op := &request.Operation{
|
||
Name: opListDeviceEvents,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListDeviceEventsInput{}
|
||
}
|
||
|
||
output = &ListDeviceEventsOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListDeviceEvents API operation for Alexa For Business.
|
||
//
|
||
// Lists the device event history, including device connection status, for up
|
||
// to 30 days.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListDeviceEvents for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListDeviceEvents
|
||
func (c *AlexaForBusiness) ListDeviceEvents(input *ListDeviceEventsInput) (*ListDeviceEventsOutput, error) {
|
||
req, out := c.ListDeviceEventsRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListDeviceEventsWithContext is the same as ListDeviceEvents with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListDeviceEvents 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 *AlexaForBusiness) ListDeviceEventsWithContext(ctx aws.Context, input *ListDeviceEventsInput, opts ...request.Option) (*ListDeviceEventsOutput, error) {
|
||
req, out := c.ListDeviceEventsRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListDeviceEventsPages iterates over the pages of a ListDeviceEvents operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListDeviceEvents 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 ListDeviceEvents operation.
|
||
// pageNum := 0
|
||
// err := client.ListDeviceEventsPages(params,
|
||
// func(page *ListDeviceEventsOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListDeviceEventsPages(input *ListDeviceEventsInput, fn func(*ListDeviceEventsOutput, bool) bool) error {
|
||
return c.ListDeviceEventsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListDeviceEventsPagesWithContext same as ListDeviceEventsPages 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 *AlexaForBusiness) ListDeviceEventsPagesWithContext(ctx aws.Context, input *ListDeviceEventsInput, fn func(*ListDeviceEventsOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListDeviceEventsInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListDeviceEventsRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListDeviceEventsOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListSkills = "ListSkills"
|
||
|
||
// ListSkillsRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListSkills 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 ListSkills for more information on using the ListSkills
|
||
// 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 ListSkillsRequest method.
|
||
// req, resp := client.ListSkillsRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkills
|
||
func (c *AlexaForBusiness) ListSkillsRequest(input *ListSkillsInput) (req *request.Request, output *ListSkillsOutput) {
|
||
op := &request.Operation{
|
||
Name: opListSkills,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListSkillsInput{}
|
||
}
|
||
|
||
output = &ListSkillsOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListSkills API operation for Alexa For Business.
|
||
//
|
||
// Lists all enabled skills in a specific skill group.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListSkills for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkills
|
||
func (c *AlexaForBusiness) ListSkills(input *ListSkillsInput) (*ListSkillsOutput, error) {
|
||
req, out := c.ListSkillsRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSkillsWithContext is the same as ListSkills with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListSkills 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 *AlexaForBusiness) ListSkillsWithContext(ctx aws.Context, input *ListSkillsInput, opts ...request.Option) (*ListSkillsOutput, error) {
|
||
req, out := c.ListSkillsRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSkillsPages iterates over the pages of a ListSkills operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListSkills 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 ListSkills operation.
|
||
// pageNum := 0
|
||
// err := client.ListSkillsPages(params,
|
||
// func(page *ListSkillsOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListSkillsPages(input *ListSkillsInput, fn func(*ListSkillsOutput, bool) bool) error {
|
||
return c.ListSkillsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListSkillsPagesWithContext same as ListSkillsPages 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 *AlexaForBusiness) ListSkillsPagesWithContext(ctx aws.Context, input *ListSkillsInput, fn func(*ListSkillsOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListSkillsInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListSkillsRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListSkillsOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListSkillsStoreCategories = "ListSkillsStoreCategories"
|
||
|
||
// ListSkillsStoreCategoriesRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListSkillsStoreCategories 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 ListSkillsStoreCategories for more information on using the ListSkillsStoreCategories
|
||
// 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 ListSkillsStoreCategoriesRequest method.
|
||
// req, resp := client.ListSkillsStoreCategoriesRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreCategories
|
||
func (c *AlexaForBusiness) ListSkillsStoreCategoriesRequest(input *ListSkillsStoreCategoriesInput) (req *request.Request, output *ListSkillsStoreCategoriesOutput) {
|
||
op := &request.Operation{
|
||
Name: opListSkillsStoreCategories,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListSkillsStoreCategoriesInput{}
|
||
}
|
||
|
||
output = &ListSkillsStoreCategoriesOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListSkillsStoreCategories API operation for Alexa For Business.
|
||
//
|
||
// Lists all categories in the Alexa skill store.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListSkillsStoreCategories for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreCategories
|
||
func (c *AlexaForBusiness) ListSkillsStoreCategories(input *ListSkillsStoreCategoriesInput) (*ListSkillsStoreCategoriesOutput, error) {
|
||
req, out := c.ListSkillsStoreCategoriesRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSkillsStoreCategoriesWithContext is the same as ListSkillsStoreCategories with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListSkillsStoreCategories 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 *AlexaForBusiness) ListSkillsStoreCategoriesWithContext(ctx aws.Context, input *ListSkillsStoreCategoriesInput, opts ...request.Option) (*ListSkillsStoreCategoriesOutput, error) {
|
||
req, out := c.ListSkillsStoreCategoriesRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSkillsStoreCategoriesPages iterates over the pages of a ListSkillsStoreCategories operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListSkillsStoreCategories 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 ListSkillsStoreCategories operation.
|
||
// pageNum := 0
|
||
// err := client.ListSkillsStoreCategoriesPages(params,
|
||
// func(page *ListSkillsStoreCategoriesOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListSkillsStoreCategoriesPages(input *ListSkillsStoreCategoriesInput, fn func(*ListSkillsStoreCategoriesOutput, bool) bool) error {
|
||
return c.ListSkillsStoreCategoriesPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListSkillsStoreCategoriesPagesWithContext same as ListSkillsStoreCategoriesPages 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 *AlexaForBusiness) ListSkillsStoreCategoriesPagesWithContext(ctx aws.Context, input *ListSkillsStoreCategoriesInput, fn func(*ListSkillsStoreCategoriesOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListSkillsStoreCategoriesInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListSkillsStoreCategoriesRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListSkillsStoreCategoriesOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListSkillsStoreSkillsByCategory = "ListSkillsStoreSkillsByCategory"
|
||
|
||
// ListSkillsStoreSkillsByCategoryRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListSkillsStoreSkillsByCategory 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 ListSkillsStoreSkillsByCategory for more information on using the ListSkillsStoreSkillsByCategory
|
||
// 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 ListSkillsStoreSkillsByCategoryRequest method.
|
||
// req, resp := client.ListSkillsStoreSkillsByCategoryRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreSkillsByCategory
|
||
func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategoryRequest(input *ListSkillsStoreSkillsByCategoryInput) (req *request.Request, output *ListSkillsStoreSkillsByCategoryOutput) {
|
||
op := &request.Operation{
|
||
Name: opListSkillsStoreSkillsByCategory,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListSkillsStoreSkillsByCategoryInput{}
|
||
}
|
||
|
||
output = &ListSkillsStoreSkillsByCategoryOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListSkillsStoreSkillsByCategory API operation for Alexa For Business.
|
||
//
|
||
// Lists all skills in the Alexa skill store by category.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListSkillsStoreSkillsByCategory for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreSkillsByCategory
|
||
func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategory(input *ListSkillsStoreSkillsByCategoryInput) (*ListSkillsStoreSkillsByCategoryOutput, error) {
|
||
req, out := c.ListSkillsStoreSkillsByCategoryRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSkillsStoreSkillsByCategoryWithContext is the same as ListSkillsStoreSkillsByCategory with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListSkillsStoreSkillsByCategory 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 *AlexaForBusiness) ListSkillsStoreSkillsByCategoryWithContext(ctx aws.Context, input *ListSkillsStoreSkillsByCategoryInput, opts ...request.Option) (*ListSkillsStoreSkillsByCategoryOutput, error) {
|
||
req, out := c.ListSkillsStoreSkillsByCategoryRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSkillsStoreSkillsByCategoryPages iterates over the pages of a ListSkillsStoreSkillsByCategory operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListSkillsStoreSkillsByCategory 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 ListSkillsStoreSkillsByCategory operation.
|
||
// pageNum := 0
|
||
// err := client.ListSkillsStoreSkillsByCategoryPages(params,
|
||
// func(page *ListSkillsStoreSkillsByCategoryOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategoryPages(input *ListSkillsStoreSkillsByCategoryInput, fn func(*ListSkillsStoreSkillsByCategoryOutput, bool) bool) error {
|
||
return c.ListSkillsStoreSkillsByCategoryPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListSkillsStoreSkillsByCategoryPagesWithContext same as ListSkillsStoreSkillsByCategoryPages 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 *AlexaForBusiness) ListSkillsStoreSkillsByCategoryPagesWithContext(ctx aws.Context, input *ListSkillsStoreSkillsByCategoryInput, fn func(*ListSkillsStoreSkillsByCategoryOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListSkillsStoreSkillsByCategoryInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListSkillsStoreSkillsByCategoryRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListSkillsStoreSkillsByCategoryOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListSmartHomeAppliances = "ListSmartHomeAppliances"
|
||
|
||
// ListSmartHomeAppliancesRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListSmartHomeAppliances 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 ListSmartHomeAppliances for more information on using the ListSmartHomeAppliances
|
||
// 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 ListSmartHomeAppliancesRequest method.
|
||
// req, resp := client.ListSmartHomeAppliancesRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSmartHomeAppliances
|
||
func (c *AlexaForBusiness) ListSmartHomeAppliancesRequest(input *ListSmartHomeAppliancesInput) (req *request.Request, output *ListSmartHomeAppliancesOutput) {
|
||
op := &request.Operation{
|
||
Name: opListSmartHomeAppliances,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListSmartHomeAppliancesInput{}
|
||
}
|
||
|
||
output = &ListSmartHomeAppliancesOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListSmartHomeAppliances API operation for Alexa For Business.
|
||
//
|
||
// Lists all of the smart home appliances associated with a room.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListSmartHomeAppliances for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSmartHomeAppliances
|
||
func (c *AlexaForBusiness) ListSmartHomeAppliances(input *ListSmartHomeAppliancesInput) (*ListSmartHomeAppliancesOutput, error) {
|
||
req, out := c.ListSmartHomeAppliancesRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSmartHomeAppliancesWithContext is the same as ListSmartHomeAppliances with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListSmartHomeAppliances 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 *AlexaForBusiness) ListSmartHomeAppliancesWithContext(ctx aws.Context, input *ListSmartHomeAppliancesInput, opts ...request.Option) (*ListSmartHomeAppliancesOutput, error) {
|
||
req, out := c.ListSmartHomeAppliancesRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListSmartHomeAppliancesPages iterates over the pages of a ListSmartHomeAppliances operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListSmartHomeAppliances 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 ListSmartHomeAppliances operation.
|
||
// pageNum := 0
|
||
// err := client.ListSmartHomeAppliancesPages(params,
|
||
// func(page *ListSmartHomeAppliancesOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListSmartHomeAppliancesPages(input *ListSmartHomeAppliancesInput, fn func(*ListSmartHomeAppliancesOutput, bool) bool) error {
|
||
return c.ListSmartHomeAppliancesPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListSmartHomeAppliancesPagesWithContext same as ListSmartHomeAppliancesPages 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 *AlexaForBusiness) ListSmartHomeAppliancesPagesWithContext(ctx aws.Context, input *ListSmartHomeAppliancesInput, fn func(*ListSmartHomeAppliancesOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListSmartHomeAppliancesInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListSmartHomeAppliancesRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListSmartHomeAppliancesOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opListTags = "ListTags"
|
||
|
||
// ListTagsRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ListTags 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 ListTags for more information on using the ListTags
|
||
// 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 ListTagsRequest method.
|
||
// req, resp := client.ListTagsRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags
|
||
func (c *AlexaForBusiness) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
|
||
op := &request.Operation{
|
||
Name: opListTags,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ListTagsInput{}
|
||
}
|
||
|
||
output = &ListTagsOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ListTags API operation for Alexa For Business.
|
||
//
|
||
// Lists all tags for the specified resource.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ListTags for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags
|
||
func (c *AlexaForBusiness) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
|
||
req, out := c.ListTagsRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListTagsWithContext is the same as ListTags with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ListTags 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 *AlexaForBusiness) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) {
|
||
req, out := c.ListTagsRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ListTagsPages iterates over the pages of a ListTags operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See ListTags 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 ListTags operation.
|
||
// pageNum := 0
|
||
// err := client.ListTagsPages(params,
|
||
// func(page *ListTagsOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error {
|
||
return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// ListTagsPagesWithContext same as ListTagsPages 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 *AlexaForBusiness) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *ListTagsInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.ListTagsRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opPutConferencePreference = "PutConferencePreference"
|
||
|
||
// PutConferencePreferenceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the PutConferencePreference 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 PutConferencePreference for more information on using the PutConferencePreference
|
||
// 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 PutConferencePreferenceRequest method.
|
||
// req, resp := client.PutConferencePreferenceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutConferencePreference
|
||
func (c *AlexaForBusiness) PutConferencePreferenceRequest(input *PutConferencePreferenceInput) (req *request.Request, output *PutConferencePreferenceOutput) {
|
||
op := &request.Operation{
|
||
Name: opPutConferencePreference,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &PutConferencePreferenceInput{}
|
||
}
|
||
|
||
output = &PutConferencePreferenceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// PutConferencePreference API operation for Alexa For Business.
|
||
//
|
||
// Sets the conference preferences on a specific conference provider at the
|
||
// account level.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation PutConferencePreference for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutConferencePreference
|
||
func (c *AlexaForBusiness) PutConferencePreference(input *PutConferencePreferenceInput) (*PutConferencePreferenceOutput, error) {
|
||
req, out := c.PutConferencePreferenceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// PutConferencePreferenceWithContext is the same as PutConferencePreference with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See PutConferencePreference 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 *AlexaForBusiness) PutConferencePreferenceWithContext(ctx aws.Context, input *PutConferencePreferenceInput, opts ...request.Option) (*PutConferencePreferenceOutput, error) {
|
||
req, out := c.PutConferencePreferenceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opPutInvitationConfiguration = "PutInvitationConfiguration"
|
||
|
||
// PutInvitationConfigurationRequest generates a "aws/request.Request" representing the
|
||
// client's request for the PutInvitationConfiguration 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 PutInvitationConfiguration for more information on using the PutInvitationConfiguration
|
||
// 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 PutInvitationConfigurationRequest method.
|
||
// req, resp := client.PutInvitationConfigurationRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutInvitationConfiguration
|
||
func (c *AlexaForBusiness) PutInvitationConfigurationRequest(input *PutInvitationConfigurationInput) (req *request.Request, output *PutInvitationConfigurationOutput) {
|
||
op := &request.Operation{
|
||
Name: opPutInvitationConfiguration,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &PutInvitationConfigurationInput{}
|
||
}
|
||
|
||
output = &PutInvitationConfigurationOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// PutInvitationConfiguration API operation for Alexa For Business.
|
||
//
|
||
// Configures the email template for the user enrollment invitation with the
|
||
// specified attributes.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation PutInvitationConfiguration for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutInvitationConfiguration
|
||
func (c *AlexaForBusiness) PutInvitationConfiguration(input *PutInvitationConfigurationInput) (*PutInvitationConfigurationOutput, error) {
|
||
req, out := c.PutInvitationConfigurationRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// PutInvitationConfigurationWithContext is the same as PutInvitationConfiguration with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See PutInvitationConfiguration 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 *AlexaForBusiness) PutInvitationConfigurationWithContext(ctx aws.Context, input *PutInvitationConfigurationInput, opts ...request.Option) (*PutInvitationConfigurationOutput, error) {
|
||
req, out := c.PutInvitationConfigurationRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opPutRoomSkillParameter = "PutRoomSkillParameter"
|
||
|
||
// PutRoomSkillParameterRequest generates a "aws/request.Request" representing the
|
||
// client's request for the PutRoomSkillParameter 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 PutRoomSkillParameter for more information on using the PutRoomSkillParameter
|
||
// 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 PutRoomSkillParameterRequest method.
|
||
// req, resp := client.PutRoomSkillParameterRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter
|
||
func (c *AlexaForBusiness) PutRoomSkillParameterRequest(input *PutRoomSkillParameterInput) (req *request.Request, output *PutRoomSkillParameterOutput) {
|
||
op := &request.Operation{
|
||
Name: opPutRoomSkillParameter,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &PutRoomSkillParameterInput{}
|
||
}
|
||
|
||
output = &PutRoomSkillParameterOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// PutRoomSkillParameter API operation for Alexa For Business.
|
||
//
|
||
// Updates room skill parameter details by room, skill, and parameter key ID.
|
||
// Not all skills have a room skill 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 Alexa For Business's
|
||
// API operation PutRoomSkillParameter for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter
|
||
func (c *AlexaForBusiness) PutRoomSkillParameter(input *PutRoomSkillParameterInput) (*PutRoomSkillParameterOutput, error) {
|
||
req, out := c.PutRoomSkillParameterRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// PutRoomSkillParameterWithContext is the same as PutRoomSkillParameter with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See PutRoomSkillParameter 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 *AlexaForBusiness) PutRoomSkillParameterWithContext(ctx aws.Context, input *PutRoomSkillParameterInput, opts ...request.Option) (*PutRoomSkillParameterOutput, error) {
|
||
req, out := c.PutRoomSkillParameterRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opPutSkillAuthorization = "PutSkillAuthorization"
|
||
|
||
// PutSkillAuthorizationRequest generates a "aws/request.Request" representing the
|
||
// client's request for the PutSkillAuthorization 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 PutSkillAuthorization for more information on using the PutSkillAuthorization
|
||
// 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 PutSkillAuthorizationRequest method.
|
||
// req, resp := client.PutSkillAuthorizationRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutSkillAuthorization
|
||
func (c *AlexaForBusiness) PutSkillAuthorizationRequest(input *PutSkillAuthorizationInput) (req *request.Request, output *PutSkillAuthorizationOutput) {
|
||
op := &request.Operation{
|
||
Name: opPutSkillAuthorization,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &PutSkillAuthorizationInput{}
|
||
}
|
||
|
||
output = &PutSkillAuthorizationOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// PutSkillAuthorization API operation for Alexa For Business.
|
||
//
|
||
// Links a user's account to a third-party skill provider. If this API operation
|
||
// is called by an assumed IAM role, the skill being linked must be a private
|
||
// skill. Also, the skill must be owned by the AWS account that assumed the
|
||
// IAM role.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation PutSkillAuthorization for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeUnauthorizedException "UnauthorizedException"
|
||
// The caller has no permissions to operate on the resource involved in the
|
||
// API call.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutSkillAuthorization
|
||
func (c *AlexaForBusiness) PutSkillAuthorization(input *PutSkillAuthorizationInput) (*PutSkillAuthorizationOutput, error) {
|
||
req, out := c.PutSkillAuthorizationRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// PutSkillAuthorizationWithContext is the same as PutSkillAuthorization with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See PutSkillAuthorization 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 *AlexaForBusiness) PutSkillAuthorizationWithContext(ctx aws.Context, input *PutSkillAuthorizationInput, opts ...request.Option) (*PutSkillAuthorizationOutput, error) {
|
||
req, out := c.PutSkillAuthorizationRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opRegisterAVSDevice = "RegisterAVSDevice"
|
||
|
||
// RegisterAVSDeviceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the RegisterAVSDevice 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 RegisterAVSDevice for more information on using the RegisterAVSDevice
|
||
// 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 RegisterAVSDeviceRequest method.
|
||
// req, resp := client.RegisterAVSDeviceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RegisterAVSDevice
|
||
func (c *AlexaForBusiness) RegisterAVSDeviceRequest(input *RegisterAVSDeviceInput) (req *request.Request, output *RegisterAVSDeviceOutput) {
|
||
op := &request.Operation{
|
||
Name: opRegisterAVSDevice,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &RegisterAVSDeviceInput{}
|
||
}
|
||
|
||
output = &RegisterAVSDeviceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// RegisterAVSDevice API operation for Alexa For Business.
|
||
//
|
||
// Registers an Alexa-enabled device built by an Original Equipment Manufacturer
|
||
// (OEM) using Alexa Voice Service (AVS).
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation RegisterAVSDevice for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||
// You are performing an action that would put you beyond your account's limits.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeInvalidDeviceException "InvalidDeviceException"
|
||
// The device is in an invalid state.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RegisterAVSDevice
|
||
func (c *AlexaForBusiness) RegisterAVSDevice(input *RegisterAVSDeviceInput) (*RegisterAVSDeviceOutput, error) {
|
||
req, out := c.RegisterAVSDeviceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// RegisterAVSDeviceWithContext is the same as RegisterAVSDevice with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See RegisterAVSDevice 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 *AlexaForBusiness) RegisterAVSDeviceWithContext(ctx aws.Context, input *RegisterAVSDeviceInput, opts ...request.Option) (*RegisterAVSDeviceOutput, error) {
|
||
req, out := c.RegisterAVSDeviceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opRejectSkill = "RejectSkill"
|
||
|
||
// RejectSkillRequest generates a "aws/request.Request" representing the
|
||
// client's request for the RejectSkill 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 RejectSkill for more information on using the RejectSkill
|
||
// 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 RejectSkillRequest method.
|
||
// req, resp := client.RejectSkillRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RejectSkill
|
||
func (c *AlexaForBusiness) RejectSkillRequest(input *RejectSkillInput) (req *request.Request, output *RejectSkillOutput) {
|
||
op := &request.Operation{
|
||
Name: opRejectSkill,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &RejectSkillInput{}
|
||
}
|
||
|
||
output = &RejectSkillOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// RejectSkill API operation for Alexa For Business.
|
||
//
|
||
// Disassociates a skill from the organization under a user's AWS account. If
|
||
// the skill is a private skill, it moves to an AcceptStatus of PENDING. Any
|
||
// private or public skill that is rejected can be added later by calling the
|
||
// ApproveSkill API.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation RejectSkill for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RejectSkill
|
||
func (c *AlexaForBusiness) RejectSkill(input *RejectSkillInput) (*RejectSkillOutput, error) {
|
||
req, out := c.RejectSkillRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// RejectSkillWithContext is the same as RejectSkill with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See RejectSkill 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 *AlexaForBusiness) RejectSkillWithContext(ctx aws.Context, input *RejectSkillInput, opts ...request.Option) (*RejectSkillOutput, error) {
|
||
req, out := c.RejectSkillRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opResolveRoom = "ResolveRoom"
|
||
|
||
// ResolveRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the ResolveRoom 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 ResolveRoom for more information on using the ResolveRoom
|
||
// 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 ResolveRoomRequest method.
|
||
// req, resp := client.ResolveRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom
|
||
func (c *AlexaForBusiness) ResolveRoomRequest(input *ResolveRoomInput) (req *request.Request, output *ResolveRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opResolveRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &ResolveRoomInput{}
|
||
}
|
||
|
||
output = &ResolveRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// ResolveRoom API operation for Alexa For Business.
|
||
//
|
||
// Determines the details for the room from which a skill request was invoked.
|
||
// This operation is used by skill developers.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation ResolveRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom
|
||
func (c *AlexaForBusiness) ResolveRoom(input *ResolveRoomInput) (*ResolveRoomOutput, error) {
|
||
req, out := c.ResolveRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// ResolveRoomWithContext is the same as ResolveRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See ResolveRoom 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 *AlexaForBusiness) ResolveRoomWithContext(ctx aws.Context, input *ResolveRoomInput, opts ...request.Option) (*ResolveRoomOutput, error) {
|
||
req, out := c.ResolveRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opRevokeInvitation = "RevokeInvitation"
|
||
|
||
// RevokeInvitationRequest generates a "aws/request.Request" representing the
|
||
// client's request for the RevokeInvitation 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 RevokeInvitation for more information on using the RevokeInvitation
|
||
// 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 RevokeInvitationRequest method.
|
||
// req, resp := client.RevokeInvitationRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation
|
||
func (c *AlexaForBusiness) RevokeInvitationRequest(input *RevokeInvitationInput) (req *request.Request, output *RevokeInvitationOutput) {
|
||
op := &request.Operation{
|
||
Name: opRevokeInvitation,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &RevokeInvitationInput{}
|
||
}
|
||
|
||
output = &RevokeInvitationOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// RevokeInvitation API operation for Alexa For Business.
|
||
//
|
||
// Revokes an invitation and invalidates the enrollment URL.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation RevokeInvitation for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation
|
||
func (c *AlexaForBusiness) RevokeInvitation(input *RevokeInvitationInput) (*RevokeInvitationOutput, error) {
|
||
req, out := c.RevokeInvitationRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// RevokeInvitationWithContext is the same as RevokeInvitation with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See RevokeInvitation 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 *AlexaForBusiness) RevokeInvitationWithContext(ctx aws.Context, input *RevokeInvitationInput, opts ...request.Option) (*RevokeInvitationOutput, error) {
|
||
req, out := c.RevokeInvitationRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opSearchAddressBooks = "SearchAddressBooks"
|
||
|
||
// SearchAddressBooksRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchAddressBooks 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 SearchAddressBooks for more information on using the SearchAddressBooks
|
||
// 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 SearchAddressBooksRequest method.
|
||
// req, resp := client.SearchAddressBooksRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooks
|
||
func (c *AlexaForBusiness) SearchAddressBooksRequest(input *SearchAddressBooksInput) (req *request.Request, output *SearchAddressBooksOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchAddressBooks,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchAddressBooksInput{}
|
||
}
|
||
|
||
output = &SearchAddressBooksOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchAddressBooks API operation for Alexa For Business.
|
||
//
|
||
// Searches address books and lists the ones that meet a set of filter and sort
|
||
// criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchAddressBooks for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooks
|
||
func (c *AlexaForBusiness) SearchAddressBooks(input *SearchAddressBooksInput) (*SearchAddressBooksOutput, error) {
|
||
req, out := c.SearchAddressBooksRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchAddressBooksWithContext is the same as SearchAddressBooks with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchAddressBooks 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 *AlexaForBusiness) SearchAddressBooksWithContext(ctx aws.Context, input *SearchAddressBooksInput, opts ...request.Option) (*SearchAddressBooksOutput, error) {
|
||
req, out := c.SearchAddressBooksRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchAddressBooksPages iterates over the pages of a SearchAddressBooks operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchAddressBooks 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 SearchAddressBooks operation.
|
||
// pageNum := 0
|
||
// err := client.SearchAddressBooksPages(params,
|
||
// func(page *SearchAddressBooksOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchAddressBooksPages(input *SearchAddressBooksInput, fn func(*SearchAddressBooksOutput, bool) bool) error {
|
||
return c.SearchAddressBooksPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchAddressBooksPagesWithContext same as SearchAddressBooksPages 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 *AlexaForBusiness) SearchAddressBooksPagesWithContext(ctx aws.Context, input *SearchAddressBooksInput, fn func(*SearchAddressBooksOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchAddressBooksInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchAddressBooksRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchAddressBooksOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSearchContacts = "SearchContacts"
|
||
|
||
// SearchContactsRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchContacts 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 SearchContacts for more information on using the SearchContacts
|
||
// 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 SearchContactsRequest method.
|
||
// req, resp := client.SearchContactsRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContacts
|
||
func (c *AlexaForBusiness) SearchContactsRequest(input *SearchContactsInput) (req *request.Request, output *SearchContactsOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchContacts,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchContactsInput{}
|
||
}
|
||
|
||
output = &SearchContactsOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchContacts API operation for Alexa For Business.
|
||
//
|
||
// Searches contacts and lists the ones that meet a set of filter and sort criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchContacts for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContacts
|
||
func (c *AlexaForBusiness) SearchContacts(input *SearchContactsInput) (*SearchContactsOutput, error) {
|
||
req, out := c.SearchContactsRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchContactsWithContext is the same as SearchContacts with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchContacts 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 *AlexaForBusiness) SearchContactsWithContext(ctx aws.Context, input *SearchContactsInput, opts ...request.Option) (*SearchContactsOutput, error) {
|
||
req, out := c.SearchContactsRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchContactsPages iterates over the pages of a SearchContacts operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchContacts 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 SearchContacts operation.
|
||
// pageNum := 0
|
||
// err := client.SearchContactsPages(params,
|
||
// func(page *SearchContactsOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchContactsPages(input *SearchContactsInput, fn func(*SearchContactsOutput, bool) bool) error {
|
||
return c.SearchContactsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchContactsPagesWithContext same as SearchContactsPages 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 *AlexaForBusiness) SearchContactsPagesWithContext(ctx aws.Context, input *SearchContactsInput, fn func(*SearchContactsOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchContactsInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchContactsRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchContactsOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSearchDevices = "SearchDevices"
|
||
|
||
// SearchDevicesRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchDevices 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 SearchDevices for more information on using the SearchDevices
|
||
// 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 SearchDevicesRequest method.
|
||
// req, resp := client.SearchDevicesRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchDevices
|
||
func (c *AlexaForBusiness) SearchDevicesRequest(input *SearchDevicesInput) (req *request.Request, output *SearchDevicesOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchDevices,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchDevicesInput{}
|
||
}
|
||
|
||
output = &SearchDevicesOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchDevices API operation for Alexa For Business.
|
||
//
|
||
// Searches devices and lists the ones that meet a set of filter criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchDevices for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchDevices
|
||
func (c *AlexaForBusiness) SearchDevices(input *SearchDevicesInput) (*SearchDevicesOutput, error) {
|
||
req, out := c.SearchDevicesRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchDevicesWithContext is the same as SearchDevices with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchDevices 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 *AlexaForBusiness) SearchDevicesWithContext(ctx aws.Context, input *SearchDevicesInput, opts ...request.Option) (*SearchDevicesOutput, error) {
|
||
req, out := c.SearchDevicesRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchDevicesPages iterates over the pages of a SearchDevices operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchDevices 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 SearchDevices operation.
|
||
// pageNum := 0
|
||
// err := client.SearchDevicesPages(params,
|
||
// func(page *SearchDevicesOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchDevicesPages(input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool) error {
|
||
return c.SearchDevicesPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchDevicesPagesWithContext same as SearchDevicesPages 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 *AlexaForBusiness) SearchDevicesPagesWithContext(ctx aws.Context, input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchDevicesInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchDevicesRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchDevicesOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSearchProfiles = "SearchProfiles"
|
||
|
||
// SearchProfilesRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchProfiles 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 SearchProfiles for more information on using the SearchProfiles
|
||
// 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 SearchProfilesRequest method.
|
||
// req, resp := client.SearchProfilesRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchProfiles
|
||
func (c *AlexaForBusiness) SearchProfilesRequest(input *SearchProfilesInput) (req *request.Request, output *SearchProfilesOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchProfiles,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchProfilesInput{}
|
||
}
|
||
|
||
output = &SearchProfilesOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchProfiles API operation for Alexa For Business.
|
||
//
|
||
// Searches room profiles and lists the ones that meet a set of filter criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchProfiles for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchProfiles
|
||
func (c *AlexaForBusiness) SearchProfiles(input *SearchProfilesInput) (*SearchProfilesOutput, error) {
|
||
req, out := c.SearchProfilesRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchProfilesWithContext is the same as SearchProfiles with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchProfiles 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 *AlexaForBusiness) SearchProfilesWithContext(ctx aws.Context, input *SearchProfilesInput, opts ...request.Option) (*SearchProfilesOutput, error) {
|
||
req, out := c.SearchProfilesRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchProfilesPages iterates over the pages of a SearchProfiles operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchProfiles 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 SearchProfiles operation.
|
||
// pageNum := 0
|
||
// err := client.SearchProfilesPages(params,
|
||
// func(page *SearchProfilesOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchProfilesPages(input *SearchProfilesInput, fn func(*SearchProfilesOutput, bool) bool) error {
|
||
return c.SearchProfilesPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchProfilesPagesWithContext same as SearchProfilesPages 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 *AlexaForBusiness) SearchProfilesPagesWithContext(ctx aws.Context, input *SearchProfilesInput, fn func(*SearchProfilesOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchProfilesInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchProfilesRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchProfilesOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSearchRooms = "SearchRooms"
|
||
|
||
// SearchRoomsRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchRooms 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 SearchRooms for more information on using the SearchRooms
|
||
// 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 SearchRoomsRequest method.
|
||
// req, resp := client.SearchRoomsRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchRooms
|
||
func (c *AlexaForBusiness) SearchRoomsRequest(input *SearchRoomsInput) (req *request.Request, output *SearchRoomsOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchRooms,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchRoomsInput{}
|
||
}
|
||
|
||
output = &SearchRoomsOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchRooms API operation for Alexa For Business.
|
||
//
|
||
// Searches rooms and lists the ones that meet a set of filter and sort criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchRooms for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchRooms
|
||
func (c *AlexaForBusiness) SearchRooms(input *SearchRoomsInput) (*SearchRoomsOutput, error) {
|
||
req, out := c.SearchRoomsRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchRoomsWithContext is the same as SearchRooms with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchRooms 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 *AlexaForBusiness) SearchRoomsWithContext(ctx aws.Context, input *SearchRoomsInput, opts ...request.Option) (*SearchRoomsOutput, error) {
|
||
req, out := c.SearchRoomsRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchRoomsPages iterates over the pages of a SearchRooms operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchRooms 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 SearchRooms operation.
|
||
// pageNum := 0
|
||
// err := client.SearchRoomsPages(params,
|
||
// func(page *SearchRoomsOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchRoomsPages(input *SearchRoomsInput, fn func(*SearchRoomsOutput, bool) bool) error {
|
||
return c.SearchRoomsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchRoomsPagesWithContext same as SearchRoomsPages 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 *AlexaForBusiness) SearchRoomsPagesWithContext(ctx aws.Context, input *SearchRoomsInput, fn func(*SearchRoomsOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchRoomsInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchRoomsRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchRoomsOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSearchSkillGroups = "SearchSkillGroups"
|
||
|
||
// SearchSkillGroupsRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchSkillGroups 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 SearchSkillGroups for more information on using the SearchSkillGroups
|
||
// 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 SearchSkillGroupsRequest method.
|
||
// req, resp := client.SearchSkillGroupsRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchSkillGroups
|
||
func (c *AlexaForBusiness) SearchSkillGroupsRequest(input *SearchSkillGroupsInput) (req *request.Request, output *SearchSkillGroupsOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchSkillGroups,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchSkillGroupsInput{}
|
||
}
|
||
|
||
output = &SearchSkillGroupsOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchSkillGroups API operation for Alexa For Business.
|
||
//
|
||
// Searches skill groups and lists the ones that meet a set of filter and sort
|
||
// criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchSkillGroups for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchSkillGroups
|
||
func (c *AlexaForBusiness) SearchSkillGroups(input *SearchSkillGroupsInput) (*SearchSkillGroupsOutput, error) {
|
||
req, out := c.SearchSkillGroupsRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchSkillGroupsWithContext is the same as SearchSkillGroups with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchSkillGroups 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 *AlexaForBusiness) SearchSkillGroupsWithContext(ctx aws.Context, input *SearchSkillGroupsInput, opts ...request.Option) (*SearchSkillGroupsOutput, error) {
|
||
req, out := c.SearchSkillGroupsRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchSkillGroupsPages iterates over the pages of a SearchSkillGroups operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchSkillGroups 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 SearchSkillGroups operation.
|
||
// pageNum := 0
|
||
// err := client.SearchSkillGroupsPages(params,
|
||
// func(page *SearchSkillGroupsOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchSkillGroupsPages(input *SearchSkillGroupsInput, fn func(*SearchSkillGroupsOutput, bool) bool) error {
|
||
return c.SearchSkillGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchSkillGroupsPagesWithContext same as SearchSkillGroupsPages 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 *AlexaForBusiness) SearchSkillGroupsPagesWithContext(ctx aws.Context, input *SearchSkillGroupsInput, fn func(*SearchSkillGroupsOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchSkillGroupsInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchSkillGroupsRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchSkillGroupsOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSearchUsers = "SearchUsers"
|
||
|
||
// SearchUsersRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SearchUsers 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 SearchUsers for more information on using the SearchUsers
|
||
// 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 SearchUsersRequest method.
|
||
// req, resp := client.SearchUsersRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchUsers
|
||
func (c *AlexaForBusiness) SearchUsersRequest(input *SearchUsersInput) (req *request.Request, output *SearchUsersOutput) {
|
||
op := &request.Operation{
|
||
Name: opSearchUsers,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
Paginator: &request.Paginator{
|
||
InputTokens: []string{"NextToken"},
|
||
OutputTokens: []string{"NextToken"},
|
||
LimitToken: "MaxResults",
|
||
TruncationToken: "",
|
||
},
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SearchUsersInput{}
|
||
}
|
||
|
||
output = &SearchUsersOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
return
|
||
}
|
||
|
||
// SearchUsers API operation for Alexa For Business.
|
||
//
|
||
// Searches users and lists the ones that meet a set of filter and sort criteria.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SearchUsers for usage and error information.
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchUsers
|
||
func (c *AlexaForBusiness) SearchUsers(input *SearchUsersInput) (*SearchUsersOutput, error) {
|
||
req, out := c.SearchUsersRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchUsersWithContext is the same as SearchUsers with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SearchUsers 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 *AlexaForBusiness) SearchUsersWithContext(ctx aws.Context, input *SearchUsersInput, opts ...request.Option) (*SearchUsersOutput, error) {
|
||
req, out := c.SearchUsersRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SearchUsersPages iterates over the pages of a SearchUsers operation,
|
||
// calling the "fn" function with the response data for each page. To stop
|
||
// iterating, return false from the fn function.
|
||
//
|
||
// See SearchUsers 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 SearchUsers operation.
|
||
// pageNum := 0
|
||
// err := client.SearchUsersPages(params,
|
||
// func(page *SearchUsersOutput, lastPage bool) bool {
|
||
// pageNum++
|
||
// fmt.Println(page)
|
||
// return pageNum <= 3
|
||
// })
|
||
//
|
||
func (c *AlexaForBusiness) SearchUsersPages(input *SearchUsersInput, fn func(*SearchUsersOutput, bool) bool) error {
|
||
return c.SearchUsersPagesWithContext(aws.BackgroundContext(), input, fn)
|
||
}
|
||
|
||
// SearchUsersPagesWithContext same as SearchUsersPages 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 *AlexaForBusiness) SearchUsersPagesWithContext(ctx aws.Context, input *SearchUsersInput, fn func(*SearchUsersOutput, bool) bool, opts ...request.Option) error {
|
||
p := request.Pagination{
|
||
NewRequest: func() (*request.Request, error) {
|
||
var inCpy *SearchUsersInput
|
||
if input != nil {
|
||
tmp := *input
|
||
inCpy = &tmp
|
||
}
|
||
req, _ := c.SearchUsersRequest(inCpy)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return req, nil
|
||
},
|
||
}
|
||
|
||
cont := true
|
||
for p.Next() && cont {
|
||
cont = fn(p.Page().(*SearchUsersOutput), !p.HasNextPage())
|
||
}
|
||
return p.Err()
|
||
}
|
||
|
||
const opSendInvitation = "SendInvitation"
|
||
|
||
// SendInvitationRequest generates a "aws/request.Request" representing the
|
||
// client's request for the SendInvitation 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 SendInvitation for more information on using the SendInvitation
|
||
// 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 SendInvitationRequest method.
|
||
// req, resp := client.SendInvitationRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation
|
||
func (c *AlexaForBusiness) SendInvitationRequest(input *SendInvitationInput) (req *request.Request, output *SendInvitationOutput) {
|
||
op := &request.Operation{
|
||
Name: opSendInvitation,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &SendInvitationInput{}
|
||
}
|
||
|
||
output = &SendInvitationOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// SendInvitation API operation for Alexa For Business.
|
||
//
|
||
// Sends an enrollment invitation email with a URL to a user. The URL is valid
|
||
// for 72 hours or until you call this operation again, whichever comes first.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation SendInvitation for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeInvalidUserStatusException "InvalidUserStatusException"
|
||
// The attempt to update a user is invalid due to the user's current status.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation
|
||
func (c *AlexaForBusiness) SendInvitation(input *SendInvitationInput) (*SendInvitationOutput, error) {
|
||
req, out := c.SendInvitationRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// SendInvitationWithContext is the same as SendInvitation with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See SendInvitation 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 *AlexaForBusiness) SendInvitationWithContext(ctx aws.Context, input *SendInvitationInput, opts ...request.Option) (*SendInvitationOutput, error) {
|
||
req, out := c.SendInvitationRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opStartDeviceSync = "StartDeviceSync"
|
||
|
||
// StartDeviceSyncRequest generates a "aws/request.Request" representing the
|
||
// client's request for the StartDeviceSync 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 StartDeviceSync for more information on using the StartDeviceSync
|
||
// 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 StartDeviceSyncRequest method.
|
||
// req, resp := client.StartDeviceSyncRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartDeviceSync
|
||
func (c *AlexaForBusiness) StartDeviceSyncRequest(input *StartDeviceSyncInput) (req *request.Request, output *StartDeviceSyncOutput) {
|
||
op := &request.Operation{
|
||
Name: opStartDeviceSync,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &StartDeviceSyncInput{}
|
||
}
|
||
|
||
output = &StartDeviceSyncOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// StartDeviceSync API operation for Alexa For Business.
|
||
//
|
||
// Resets a device and its account to the known default settings, by clearing
|
||
// all information and settings set by previous users.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation StartDeviceSync for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException"
|
||
// The request failed because this device is no longer registered and therefore
|
||
// no longer managed by this account.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartDeviceSync
|
||
func (c *AlexaForBusiness) StartDeviceSync(input *StartDeviceSyncInput) (*StartDeviceSyncOutput, error) {
|
||
req, out := c.StartDeviceSyncRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// StartDeviceSyncWithContext is the same as StartDeviceSync with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See StartDeviceSync 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 *AlexaForBusiness) StartDeviceSyncWithContext(ctx aws.Context, input *StartDeviceSyncInput, opts ...request.Option) (*StartDeviceSyncOutput, error) {
|
||
req, out := c.StartDeviceSyncRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opStartSmartHomeApplianceDiscovery = "StartSmartHomeApplianceDiscovery"
|
||
|
||
// StartSmartHomeApplianceDiscoveryRequest generates a "aws/request.Request" representing the
|
||
// client's request for the StartSmartHomeApplianceDiscovery 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 StartSmartHomeApplianceDiscovery for more information on using the StartSmartHomeApplianceDiscovery
|
||
// 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 StartSmartHomeApplianceDiscoveryRequest method.
|
||
// req, resp := client.StartSmartHomeApplianceDiscoveryRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartSmartHomeApplianceDiscovery
|
||
func (c *AlexaForBusiness) StartSmartHomeApplianceDiscoveryRequest(input *StartSmartHomeApplianceDiscoveryInput) (req *request.Request, output *StartSmartHomeApplianceDiscoveryOutput) {
|
||
op := &request.Operation{
|
||
Name: opStartSmartHomeApplianceDiscovery,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &StartSmartHomeApplianceDiscoveryInput{}
|
||
}
|
||
|
||
output = &StartSmartHomeApplianceDiscoveryOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// StartSmartHomeApplianceDiscovery API operation for Alexa For Business.
|
||
//
|
||
// Initiates the discovery of any smart home appliances associated with the
|
||
// room.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation StartSmartHomeApplianceDiscovery for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartSmartHomeApplianceDiscovery
|
||
func (c *AlexaForBusiness) StartSmartHomeApplianceDiscovery(input *StartSmartHomeApplianceDiscoveryInput) (*StartSmartHomeApplianceDiscoveryOutput, error) {
|
||
req, out := c.StartSmartHomeApplianceDiscoveryRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// StartSmartHomeApplianceDiscoveryWithContext is the same as StartSmartHomeApplianceDiscovery with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See StartSmartHomeApplianceDiscovery 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 *AlexaForBusiness) StartSmartHomeApplianceDiscoveryWithContext(ctx aws.Context, input *StartSmartHomeApplianceDiscoveryInput, opts ...request.Option) (*StartSmartHomeApplianceDiscoveryOutput, error) {
|
||
req, out := c.StartSmartHomeApplianceDiscoveryRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opTagResource = "TagResource"
|
||
|
||
// TagResourceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the TagResource 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 TagResource for more information on using the TagResource
|
||
// 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 TagResourceRequest method.
|
||
// req, resp := client.TagResourceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource
|
||
func (c *AlexaForBusiness) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
|
||
op := &request.Operation{
|
||
Name: opTagResource,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &TagResourceInput{}
|
||
}
|
||
|
||
output = &TagResourceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// TagResource API operation for Alexa For Business.
|
||
//
|
||
// Adds metadata tags to a specified resource.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation TagResource for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource
|
||
func (c *AlexaForBusiness) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
|
||
req, out := c.TagResourceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// TagResourceWithContext is the same as TagResource with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See TagResource 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 *AlexaForBusiness) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
|
||
req, out := c.TagResourceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUntagResource = "UntagResource"
|
||
|
||
// UntagResourceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UntagResource 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 UntagResource for more information on using the UntagResource
|
||
// 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 UntagResourceRequest method.
|
||
// req, resp := client.UntagResourceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource
|
||
func (c *AlexaForBusiness) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
|
||
op := &request.Operation{
|
||
Name: opUntagResource,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UntagResourceInput{}
|
||
}
|
||
|
||
output = &UntagResourceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UntagResource API operation for Alexa For Business.
|
||
//
|
||
// Removes metadata tags from a specified resource.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UntagResource for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource
|
||
func (c *AlexaForBusiness) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
|
||
req, out := c.UntagResourceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UntagResourceWithContext is the same as UntagResource with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UntagResource 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 *AlexaForBusiness) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
|
||
req, out := c.UntagResourceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateAddressBook = "UpdateAddressBook"
|
||
|
||
// UpdateAddressBookRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateAddressBook 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 UpdateAddressBook for more information on using the UpdateAddressBook
|
||
// 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 UpdateAddressBookRequest method.
|
||
// req, resp := client.UpdateAddressBookRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook
|
||
func (c *AlexaForBusiness) UpdateAddressBookRequest(input *UpdateAddressBookInput) (req *request.Request, output *UpdateAddressBookOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateAddressBook,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateAddressBookInput{}
|
||
}
|
||
|
||
output = &UpdateAddressBookOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateAddressBook API operation for Alexa For Business.
|
||
//
|
||
// Updates address book details by the address book ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateAddressBook for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeNameInUseException "NameInUseException"
|
||
// The name sent in the request is already in use.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook
|
||
func (c *AlexaForBusiness) UpdateAddressBook(input *UpdateAddressBookInput) (*UpdateAddressBookOutput, error) {
|
||
req, out := c.UpdateAddressBookRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateAddressBookWithContext is the same as UpdateAddressBook with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateAddressBook 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 *AlexaForBusiness) UpdateAddressBookWithContext(ctx aws.Context, input *UpdateAddressBookInput, opts ...request.Option) (*UpdateAddressBookOutput, error) {
|
||
req, out := c.UpdateAddressBookRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateBusinessReportSchedule = "UpdateBusinessReportSchedule"
|
||
|
||
// UpdateBusinessReportScheduleRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateBusinessReportSchedule 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 UpdateBusinessReportSchedule for more information on using the UpdateBusinessReportSchedule
|
||
// 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 UpdateBusinessReportScheduleRequest method.
|
||
// req, resp := client.UpdateBusinessReportScheduleRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateBusinessReportSchedule
|
||
func (c *AlexaForBusiness) UpdateBusinessReportScheduleRequest(input *UpdateBusinessReportScheduleInput) (req *request.Request, output *UpdateBusinessReportScheduleOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateBusinessReportSchedule,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateBusinessReportScheduleInput{}
|
||
}
|
||
|
||
output = &UpdateBusinessReportScheduleOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateBusinessReportSchedule API operation for Alexa For Business.
|
||
//
|
||
// Updates the configuration of the report delivery schedule with the specified
|
||
// schedule ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateBusinessReportSchedule for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateBusinessReportSchedule
|
||
func (c *AlexaForBusiness) UpdateBusinessReportSchedule(input *UpdateBusinessReportScheduleInput) (*UpdateBusinessReportScheduleOutput, error) {
|
||
req, out := c.UpdateBusinessReportScheduleRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateBusinessReportScheduleWithContext is the same as UpdateBusinessReportSchedule with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateBusinessReportSchedule 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 *AlexaForBusiness) UpdateBusinessReportScheduleWithContext(ctx aws.Context, input *UpdateBusinessReportScheduleInput, opts ...request.Option) (*UpdateBusinessReportScheduleOutput, error) {
|
||
req, out := c.UpdateBusinessReportScheduleRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateConferenceProvider = "UpdateConferenceProvider"
|
||
|
||
// UpdateConferenceProviderRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateConferenceProvider 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 UpdateConferenceProvider for more information on using the UpdateConferenceProvider
|
||
// 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 UpdateConferenceProviderRequest method.
|
||
// req, resp := client.UpdateConferenceProviderRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateConferenceProvider
|
||
func (c *AlexaForBusiness) UpdateConferenceProviderRequest(input *UpdateConferenceProviderInput) (req *request.Request, output *UpdateConferenceProviderOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateConferenceProvider,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateConferenceProviderInput{}
|
||
}
|
||
|
||
output = &UpdateConferenceProviderOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateConferenceProvider API operation for Alexa For Business.
|
||
//
|
||
// Updates an existing conference provider's settings.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateConferenceProvider for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateConferenceProvider
|
||
func (c *AlexaForBusiness) UpdateConferenceProvider(input *UpdateConferenceProviderInput) (*UpdateConferenceProviderOutput, error) {
|
||
req, out := c.UpdateConferenceProviderRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateConferenceProviderWithContext is the same as UpdateConferenceProvider with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateConferenceProvider 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 *AlexaForBusiness) UpdateConferenceProviderWithContext(ctx aws.Context, input *UpdateConferenceProviderInput, opts ...request.Option) (*UpdateConferenceProviderOutput, error) {
|
||
req, out := c.UpdateConferenceProviderRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateContact = "UpdateContact"
|
||
|
||
// UpdateContactRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateContact 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 UpdateContact for more information on using the UpdateContact
|
||
// 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 UpdateContactRequest method.
|
||
// req, resp := client.UpdateContactRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact
|
||
func (c *AlexaForBusiness) UpdateContactRequest(input *UpdateContactInput) (req *request.Request, output *UpdateContactOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateContact,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateContactInput{}
|
||
}
|
||
|
||
output = &UpdateContactOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateContact API operation for Alexa For Business.
|
||
//
|
||
// Updates the contact details by the contact ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateContact for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact
|
||
func (c *AlexaForBusiness) UpdateContact(input *UpdateContactInput) (*UpdateContactOutput, error) {
|
||
req, out := c.UpdateContactRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateContactWithContext is the same as UpdateContact with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateContact 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 *AlexaForBusiness) UpdateContactWithContext(ctx aws.Context, input *UpdateContactInput, opts ...request.Option) (*UpdateContactOutput, error) {
|
||
req, out := c.UpdateContactRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateDevice = "UpdateDevice"
|
||
|
||
// UpdateDeviceRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateDevice 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 UpdateDevice for more information on using the UpdateDevice
|
||
// 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 UpdateDeviceRequest method.
|
||
// req, resp := client.UpdateDeviceRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateDevice
|
||
func (c *AlexaForBusiness) UpdateDeviceRequest(input *UpdateDeviceInput) (req *request.Request, output *UpdateDeviceOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateDevice,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateDeviceInput{}
|
||
}
|
||
|
||
output = &UpdateDeviceOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateDevice API operation for Alexa For Business.
|
||
//
|
||
// Updates the device name by device ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateDevice for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException"
|
||
// The request failed because this device is no longer registered and therefore
|
||
// no longer managed by this account.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateDevice
|
||
func (c *AlexaForBusiness) UpdateDevice(input *UpdateDeviceInput) (*UpdateDeviceOutput, error) {
|
||
req, out := c.UpdateDeviceRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateDeviceWithContext is the same as UpdateDevice with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateDevice 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 *AlexaForBusiness) UpdateDeviceWithContext(ctx aws.Context, input *UpdateDeviceInput, opts ...request.Option) (*UpdateDeviceOutput, error) {
|
||
req, out := c.UpdateDeviceRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateProfile = "UpdateProfile"
|
||
|
||
// UpdateProfileRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateProfile 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 UpdateProfile for more information on using the UpdateProfile
|
||
// 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 UpdateProfileRequest method.
|
||
// req, resp := client.UpdateProfileRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile
|
||
func (c *AlexaForBusiness) UpdateProfileRequest(input *UpdateProfileInput) (req *request.Request, output *UpdateProfileOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateProfile,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateProfileInput{}
|
||
}
|
||
|
||
output = &UpdateProfileOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateProfile API operation for Alexa For Business.
|
||
//
|
||
// Updates an existing room profile by room profile ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateProfile for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeNameInUseException "NameInUseException"
|
||
// The name sent in the request is already in use.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile
|
||
func (c *AlexaForBusiness) UpdateProfile(input *UpdateProfileInput) (*UpdateProfileOutput, error) {
|
||
req, out := c.UpdateProfileRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateProfileWithContext is the same as UpdateProfile with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateProfile 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 *AlexaForBusiness) UpdateProfileWithContext(ctx aws.Context, input *UpdateProfileInput, opts ...request.Option) (*UpdateProfileOutput, error) {
|
||
req, out := c.UpdateProfileRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateRoom = "UpdateRoom"
|
||
|
||
// UpdateRoomRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateRoom 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 UpdateRoom for more information on using the UpdateRoom
|
||
// 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 UpdateRoomRequest method.
|
||
// req, resp := client.UpdateRoomRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom
|
||
func (c *AlexaForBusiness) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, output *UpdateRoomOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateRoom,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateRoomInput{}
|
||
}
|
||
|
||
output = &UpdateRoomOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateRoom API operation for Alexa For Business.
|
||
//
|
||
// Updates room details by room ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateRoom for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeNameInUseException "NameInUseException"
|
||
// The name sent in the request is already in use.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom
|
||
func (c *AlexaForBusiness) UpdateRoom(input *UpdateRoomInput) (*UpdateRoomOutput, error) {
|
||
req, out := c.UpdateRoomRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateRoomWithContext is the same as UpdateRoom with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateRoom 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 *AlexaForBusiness) UpdateRoomWithContext(ctx aws.Context, input *UpdateRoomInput, opts ...request.Option) (*UpdateRoomOutput, error) {
|
||
req, out := c.UpdateRoomRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
const opUpdateSkillGroup = "UpdateSkillGroup"
|
||
|
||
// UpdateSkillGroupRequest generates a "aws/request.Request" representing the
|
||
// client's request for the UpdateSkillGroup 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 UpdateSkillGroup for more information on using the UpdateSkillGroup
|
||
// 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 UpdateSkillGroupRequest method.
|
||
// req, resp := client.UpdateSkillGroupRequest(params)
|
||
//
|
||
// err := req.Send()
|
||
// if err == nil { // resp is now filled
|
||
// fmt.Println(resp)
|
||
// }
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup
|
||
func (c *AlexaForBusiness) UpdateSkillGroupRequest(input *UpdateSkillGroupInput) (req *request.Request, output *UpdateSkillGroupOutput) {
|
||
op := &request.Operation{
|
||
Name: opUpdateSkillGroup,
|
||
HTTPMethod: "POST",
|
||
HTTPPath: "/",
|
||
}
|
||
|
||
if input == nil {
|
||
input = &UpdateSkillGroupInput{}
|
||
}
|
||
|
||
output = &UpdateSkillGroupOutput{}
|
||
req = c.newRequest(op, input, output)
|
||
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||
return
|
||
}
|
||
|
||
// UpdateSkillGroup API operation for Alexa For Business.
|
||
//
|
||
// Updates skill group details by skill group ARN.
|
||
//
|
||
// 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 Alexa For Business's
|
||
// API operation UpdateSkillGroup for usage and error information.
|
||
//
|
||
// Returned Error Codes:
|
||
// * ErrCodeNotFoundException "NotFoundException"
|
||
// The resource is not found.
|
||
//
|
||
// * ErrCodeNameInUseException "NameInUseException"
|
||
// The name sent in the request is already in use.
|
||
//
|
||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||
// There is a concurrent modification of resources.
|
||
//
|
||
// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup
|
||
func (c *AlexaForBusiness) UpdateSkillGroup(input *UpdateSkillGroupInput) (*UpdateSkillGroupOutput, error) {
|
||
req, out := c.UpdateSkillGroupRequest(input)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// UpdateSkillGroupWithContext is the same as UpdateSkillGroup with the addition of
|
||
// the ability to pass a context and additional request options.
|
||
//
|
||
// See UpdateSkillGroup 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 *AlexaForBusiness) UpdateSkillGroupWithContext(ctx aws.Context, input *UpdateSkillGroupInput, opts ...request.Option) (*UpdateSkillGroupOutput, error) {
|
||
req, out := c.UpdateSkillGroupRequest(input)
|
||
req.SetContext(ctx)
|
||
req.ApplyOptions(opts...)
|
||
return out, req.Send()
|
||
}
|
||
|
||
// An address book with attributes.
|
||
type AddressBook struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the address book.
|
||
AddressBookArn *string `type:"string"`
|
||
|
||
// The description of the address book.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The name of the address book.
|
||
Name *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AddressBook) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AddressBook) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *AddressBook) SetAddressBookArn(v string) *AddressBook {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *AddressBook) SetDescription(v string) *AddressBook {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetName sets the Name field's value.
|
||
func (s *AddressBook) SetName(v string) *AddressBook {
|
||
s.Name = &v
|
||
return s
|
||
}
|
||
|
||
// Information related to an address book.
|
||
type AddressBookData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the address book.
|
||
AddressBookArn *string `type:"string"`
|
||
|
||
// The description of the address book.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The name of the address book.
|
||
Name *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AddressBookData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AddressBookData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *AddressBookData) SetAddressBookArn(v string) *AddressBookData {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *AddressBookData) SetDescription(v string) *AddressBookData {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetName sets the Name field's value.
|
||
func (s *AddressBookData) SetName(v string) *AddressBookData {
|
||
s.Name = &v
|
||
return s
|
||
}
|
||
|
||
type ApproveSkillInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The unique identifier of the skill.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ApproveSkillInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ApproveSkillInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ApproveSkillInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ApproveSkillInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *ApproveSkillInput) SetSkillId(v string) *ApproveSkillInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type ApproveSkillOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ApproveSkillOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ApproveSkillOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type AssociateContactWithAddressBookInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the address book with which to associate the contact.
|
||
//
|
||
// AddressBookArn is a required field
|
||
AddressBookArn *string `type:"string" required:"true"`
|
||
|
||
// The ARN of the contact to associate with an address book.
|
||
//
|
||
// ContactArn is a required field
|
||
ContactArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateContactWithAddressBookInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateContactWithAddressBookInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *AssociateContactWithAddressBookInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "AssociateContactWithAddressBookInput"}
|
||
if s.AddressBookArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AddressBookArn"))
|
||
}
|
||
if s.ContactArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ContactArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *AssociateContactWithAddressBookInput) SetAddressBookArn(v string) *AssociateContactWithAddressBookInput {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *AssociateContactWithAddressBookInput) SetContactArn(v string) *AssociateContactWithAddressBookInput {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
type AssociateContactWithAddressBookOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateContactWithAddressBookOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateContactWithAddressBookOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type AssociateDeviceWithRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device to associate to a room. Required.
|
||
DeviceArn *string `type:"string"`
|
||
|
||
// The ARN of the room with which to associate the device. Required.
|
||
RoomArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateDeviceWithRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateDeviceWithRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *AssociateDeviceWithRoomInput) SetDeviceArn(v string) *AssociateDeviceWithRoomInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *AssociateDeviceWithRoomInput) SetRoomArn(v string) *AssociateDeviceWithRoomInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type AssociateDeviceWithRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateDeviceWithRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateDeviceWithRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type AssociateSkillGroupWithRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room with which to associate the skill group. Required.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The ARN of the skill group to associate with a room. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateSkillGroupWithRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateSkillGroupWithRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *AssociateSkillGroupWithRoomInput) SetRoomArn(v string) *AssociateSkillGroupWithRoomInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *AssociateSkillGroupWithRoomInput) SetSkillGroupArn(v string) *AssociateSkillGroupWithRoomInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
type AssociateSkillGroupWithRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateSkillGroupWithRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateSkillGroupWithRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type AssociateSkillWithSkillGroupInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the skill group to associate the skill to. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
|
||
// The unique identifier of the skill.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateSkillWithSkillGroupInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateSkillWithSkillGroupInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *AssociateSkillWithSkillGroupInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "AssociateSkillWithSkillGroupInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *AssociateSkillWithSkillGroupInput) SetSkillGroupArn(v string) *AssociateSkillWithSkillGroupInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *AssociateSkillWithSkillGroupInput) SetSkillId(v string) *AssociateSkillWithSkillGroupInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type AssociateSkillWithSkillGroupOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateSkillWithSkillGroupOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateSkillWithSkillGroupOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type AssociateSkillWithUsersInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The private skill ID you want to make available to enrolled users.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateSkillWithUsersInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateSkillWithUsersInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *AssociateSkillWithUsersInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "AssociateSkillWithUsersInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *AssociateSkillWithUsersInput) SetSkillId(v string) *AssociateSkillWithUsersInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type AssociateSkillWithUsersOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s AssociateSkillWithUsersOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s AssociateSkillWithUsersOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Usage report with specified parameters.
|
||
type BusinessReport struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The time of report delivery.
|
||
DeliveryTime *time.Time `type:"timestamp"`
|
||
|
||
// The download link where a user can download the report.
|
||
DownloadUrl *string `type:"string"`
|
||
|
||
// The failure code.
|
||
FailureCode *string `type:"string" enum:"BusinessReportFailureCode"`
|
||
|
||
// The S3 location of the output reports.
|
||
S3Location *BusinessReportS3Location `type:"structure"`
|
||
|
||
// The status of the report generation execution (RUNNING, SUCCEEDED, or FAILED).
|
||
Status *string `type:"string" enum:"BusinessReportStatus"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s BusinessReport) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s BusinessReport) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeliveryTime sets the DeliveryTime field's value.
|
||
func (s *BusinessReport) SetDeliveryTime(v time.Time) *BusinessReport {
|
||
s.DeliveryTime = &v
|
||
return s
|
||
}
|
||
|
||
// SetDownloadUrl sets the DownloadUrl field's value.
|
||
func (s *BusinessReport) SetDownloadUrl(v string) *BusinessReport {
|
||
s.DownloadUrl = &v
|
||
return s
|
||
}
|
||
|
||
// SetFailureCode sets the FailureCode field's value.
|
||
func (s *BusinessReport) SetFailureCode(v string) *BusinessReport {
|
||
s.FailureCode = &v
|
||
return s
|
||
}
|
||
|
||
// SetS3Location sets the S3Location field's value.
|
||
func (s *BusinessReport) SetS3Location(v *BusinessReportS3Location) *BusinessReport {
|
||
s.S3Location = v
|
||
return s
|
||
}
|
||
|
||
// SetStatus sets the Status field's value.
|
||
func (s *BusinessReport) SetStatus(v string) *BusinessReport {
|
||
s.Status = &v
|
||
return s
|
||
}
|
||
|
||
// The content range of the report.
|
||
type BusinessReportContentRange struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The interval of the content range.
|
||
Interval *string `type:"string" enum:"BusinessReportInterval"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s BusinessReportContentRange) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s BusinessReportContentRange) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetInterval sets the Interval field's value.
|
||
func (s *BusinessReportContentRange) SetInterval(v string) *BusinessReportContentRange {
|
||
s.Interval = &v
|
||
return s
|
||
}
|
||
|
||
// The recurrence of the reports.
|
||
type BusinessReportRecurrence struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The start date.
|
||
StartDate *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s BusinessReportRecurrence) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s BusinessReportRecurrence) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetStartDate sets the StartDate field's value.
|
||
func (s *BusinessReportRecurrence) SetStartDate(v string) *BusinessReportRecurrence {
|
||
s.StartDate = &v
|
||
return s
|
||
}
|
||
|
||
// The S3 location of the output reports.
|
||
type BusinessReportS3Location struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The S3 bucket name of the output reports.
|
||
BucketName *string `type:"string"`
|
||
|
||
// The path of the business report.
|
||
Path *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s BusinessReportS3Location) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s BusinessReportS3Location) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetBucketName sets the BucketName field's value.
|
||
func (s *BusinessReportS3Location) SetBucketName(v string) *BusinessReportS3Location {
|
||
s.BucketName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPath sets the Path field's value.
|
||
func (s *BusinessReportS3Location) SetPath(v string) *BusinessReportS3Location {
|
||
s.Path = &v
|
||
return s
|
||
}
|
||
|
||
// The schedule of the usage report.
|
||
type BusinessReportSchedule struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The content range of the reports.
|
||
ContentRange *BusinessReportContentRange `type:"structure"`
|
||
|
||
// The format of the generated report (individual CSV files or zipped files
|
||
// of individual files).
|
||
Format *string `type:"string" enum:"BusinessReportFormat"`
|
||
|
||
// The details of the last business report delivery for a specified time interval.
|
||
LastBusinessReport *BusinessReport `type:"structure"`
|
||
|
||
// The recurrence of the reports.
|
||
Recurrence *BusinessReportRecurrence `type:"structure"`
|
||
|
||
// The S3 bucket name of the output reports.
|
||
S3BucketName *string `type:"string"`
|
||
|
||
// The S3 key where the report is delivered.
|
||
S3KeyPrefix *string `type:"string"`
|
||
|
||
// The ARN of the business report schedule.
|
||
ScheduleArn *string `type:"string"`
|
||
|
||
// The name identifier of the schedule.
|
||
ScheduleName *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s BusinessReportSchedule) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s BusinessReportSchedule) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContentRange sets the ContentRange field's value.
|
||
func (s *BusinessReportSchedule) SetContentRange(v *BusinessReportContentRange) *BusinessReportSchedule {
|
||
s.ContentRange = v
|
||
return s
|
||
}
|
||
|
||
// SetFormat sets the Format field's value.
|
||
func (s *BusinessReportSchedule) SetFormat(v string) *BusinessReportSchedule {
|
||
s.Format = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastBusinessReport sets the LastBusinessReport field's value.
|
||
func (s *BusinessReportSchedule) SetLastBusinessReport(v *BusinessReport) *BusinessReportSchedule {
|
||
s.LastBusinessReport = v
|
||
return s
|
||
}
|
||
|
||
// SetRecurrence sets the Recurrence field's value.
|
||
func (s *BusinessReportSchedule) SetRecurrence(v *BusinessReportRecurrence) *BusinessReportSchedule {
|
||
s.Recurrence = v
|
||
return s
|
||
}
|
||
|
||
// SetS3BucketName sets the S3BucketName field's value.
|
||
func (s *BusinessReportSchedule) SetS3BucketName(v string) *BusinessReportSchedule {
|
||
s.S3BucketName = &v
|
||
return s
|
||
}
|
||
|
||
// SetS3KeyPrefix sets the S3KeyPrefix field's value.
|
||
func (s *BusinessReportSchedule) SetS3KeyPrefix(v string) *BusinessReportSchedule {
|
||
s.S3KeyPrefix = &v
|
||
return s
|
||
}
|
||
|
||
// SetScheduleArn sets the ScheduleArn field's value.
|
||
func (s *BusinessReportSchedule) SetScheduleArn(v string) *BusinessReportSchedule {
|
||
s.ScheduleArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetScheduleName sets the ScheduleName field's value.
|
||
func (s *BusinessReportSchedule) SetScheduleName(v string) *BusinessReportSchedule {
|
||
s.ScheduleName = &v
|
||
return s
|
||
}
|
||
|
||
// The skill store category that is shown. Alexa skills are assigned a specific
|
||
// skill category during creation, such as News, Social, and Sports.
|
||
type Category struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ID of the skill store category.
|
||
CategoryId *int64 `min:"1" type:"long"`
|
||
|
||
// The name of the skill store category.
|
||
CategoryName *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Category) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Category) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetCategoryId sets the CategoryId field's value.
|
||
func (s *Category) SetCategoryId(v int64) *Category {
|
||
s.CategoryId = &v
|
||
return s
|
||
}
|
||
|
||
// SetCategoryName sets the CategoryName field's value.
|
||
func (s *Category) SetCategoryName(v string) *Category {
|
||
s.CategoryName = &v
|
||
return s
|
||
}
|
||
|
||
// The default conference provider that is used if no other scheduled meetings
|
||
// are detected.
|
||
type ConferencePreference struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the default conference provider.
|
||
DefaultConferenceProviderArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ConferencePreference) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ConferencePreference) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDefaultConferenceProviderArn sets the DefaultConferenceProviderArn field's value.
|
||
func (s *ConferencePreference) SetDefaultConferenceProviderArn(v string) *ConferencePreference {
|
||
s.DefaultConferenceProviderArn = &v
|
||
return s
|
||
}
|
||
|
||
// An entity that provides a conferencing solution. Alexa for Business acts
|
||
// as the voice interface and mediator that connects users to their preferred
|
||
// conference provider. Examples of conference providers include Amazon Chime,
|
||
// Zoom, Cisco, and Polycom.
|
||
type ConferenceProvider struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created conference provider.
|
||
Arn *string `type:"string"`
|
||
|
||
// The IP endpoint and protocol for calling.
|
||
IPDialIn *IPDialIn `type:"structure"`
|
||
|
||
// The meeting settings for the conference provider.
|
||
MeetingSetting *MeetingSetting `type:"structure"`
|
||
|
||
// The name of the conference provider.
|
||
Name *string `min:"1" type:"string"`
|
||
|
||
// The information for PSTN conferencing.
|
||
PSTNDialIn *PSTNDialIn `type:"structure"`
|
||
|
||
// The type of conference providers.
|
||
Type *string `type:"string" enum:"ConferenceProviderType"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ConferenceProvider) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ConferenceProvider) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetArn sets the Arn field's value.
|
||
func (s *ConferenceProvider) SetArn(v string) *ConferenceProvider {
|
||
s.Arn = &v
|
||
return s
|
||
}
|
||
|
||
// SetIPDialIn sets the IPDialIn field's value.
|
||
func (s *ConferenceProvider) SetIPDialIn(v *IPDialIn) *ConferenceProvider {
|
||
s.IPDialIn = v
|
||
return s
|
||
}
|
||
|
||
// SetMeetingSetting sets the MeetingSetting field's value.
|
||
func (s *ConferenceProvider) SetMeetingSetting(v *MeetingSetting) *ConferenceProvider {
|
||
s.MeetingSetting = v
|
||
return s
|
||
}
|
||
|
||
// SetName sets the Name field's value.
|
||
func (s *ConferenceProvider) SetName(v string) *ConferenceProvider {
|
||
s.Name = &v
|
||
return s
|
||
}
|
||
|
||
// SetPSTNDialIn sets the PSTNDialIn field's value.
|
||
func (s *ConferenceProvider) SetPSTNDialIn(v *PSTNDialIn) *ConferenceProvider {
|
||
s.PSTNDialIn = v
|
||
return s
|
||
}
|
||
|
||
// SetType sets the Type field's value.
|
||
func (s *ConferenceProvider) SetType(v string) *ConferenceProvider {
|
||
s.Type = &v
|
||
return s
|
||
}
|
||
|
||
// A contact with attributes.
|
||
type Contact struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the contact.
|
||
ContactArn *string `type:"string"`
|
||
|
||
// The name of the contact to display on the console.
|
||
DisplayName *string `min:"1" type:"string"`
|
||
|
||
// The first name of the contact, used to call the contact on the device.
|
||
FirstName *string `min:"1" type:"string"`
|
||
|
||
// The last name of the contact, used to call the contact on the device.
|
||
LastName *string `min:"1" type:"string"`
|
||
|
||
// The phone number of the contact.
|
||
PhoneNumber *string `type:"string" sensitive:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Contact) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Contact) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *Contact) SetContactArn(v string) *Contact {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDisplayName sets the DisplayName field's value.
|
||
func (s *Contact) SetDisplayName(v string) *Contact {
|
||
s.DisplayName = &v
|
||
return s
|
||
}
|
||
|
||
// SetFirstName sets the FirstName field's value.
|
||
func (s *Contact) SetFirstName(v string) *Contact {
|
||
s.FirstName = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastName sets the LastName field's value.
|
||
func (s *Contact) SetLastName(v string) *Contact {
|
||
s.LastName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPhoneNumber sets the PhoneNumber field's value.
|
||
func (s *Contact) SetPhoneNumber(v string) *Contact {
|
||
s.PhoneNumber = &v
|
||
return s
|
||
}
|
||
|
||
// Information related to a contact.
|
||
type ContactData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the contact.
|
||
ContactArn *string `type:"string"`
|
||
|
||
// The name of the contact to display on the console.
|
||
DisplayName *string `min:"1" type:"string"`
|
||
|
||
// The first name of the contact, used to call the contact on the device.
|
||
FirstName *string `min:"1" type:"string"`
|
||
|
||
// The last name of the contact, used to call the contact on the device.
|
||
LastName *string `min:"1" type:"string"`
|
||
|
||
// The phone number of the contact.
|
||
PhoneNumber *string `type:"string" sensitive:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ContactData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ContactData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *ContactData) SetContactArn(v string) *ContactData {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDisplayName sets the DisplayName field's value.
|
||
func (s *ContactData) SetDisplayName(v string) *ContactData {
|
||
s.DisplayName = &v
|
||
return s
|
||
}
|
||
|
||
// SetFirstName sets the FirstName field's value.
|
||
func (s *ContactData) SetFirstName(v string) *ContactData {
|
||
s.FirstName = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastName sets the LastName field's value.
|
||
func (s *ContactData) SetLastName(v string) *ContactData {
|
||
s.LastName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPhoneNumber sets the PhoneNumber field's value.
|
||
func (s *ContactData) SetPhoneNumber(v string) *ContactData {
|
||
s.PhoneNumber = &v
|
||
return s
|
||
}
|
||
|
||
type CreateAddressBookInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// A unique, user-specified identifier for the request that ensures idempotency.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The description of the address book.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The name of the address book.
|
||
//
|
||
// Name is a required field
|
||
Name *string `min:"1" type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateAddressBookInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateAddressBookInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateAddressBookInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateAddressBookInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.Description != nil && len(*s.Description) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Description", 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 invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateAddressBookInput) SetClientRequestToken(v string) *CreateAddressBookInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *CreateAddressBookInput) SetDescription(v string) *CreateAddressBookInput {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetName sets the Name field's value.
|
||
func (s *CreateAddressBookInput) SetName(v string) *CreateAddressBookInput {
|
||
s.Name = &v
|
||
return s
|
||
}
|
||
|
||
type CreateAddressBookOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created address book.
|
||
AddressBookArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateAddressBookOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateAddressBookOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *CreateAddressBookOutput) SetAddressBookArn(v string) *CreateAddressBookOutput {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateBusinessReportScheduleInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The client request token.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The content range of the reports.
|
||
//
|
||
// ContentRange is a required field
|
||
ContentRange *BusinessReportContentRange `type:"structure" required:"true"`
|
||
|
||
// The format of the generated report (individual CSV files or zipped files
|
||
// of individual files).
|
||
//
|
||
// Format is a required field
|
||
Format *string `type:"string" required:"true" enum:"BusinessReportFormat"`
|
||
|
||
// The recurrence of the reports. If this isn't specified, the report will only
|
||
// be delivered one time when the API is called.
|
||
Recurrence *BusinessReportRecurrence `type:"structure"`
|
||
|
||
// The S3 bucket name of the output reports. If this isn't specified, the report
|
||
// can be retrieved from a download link by calling ListBusinessReportSchedule.
|
||
S3BucketName *string `type:"string"`
|
||
|
||
// The S3 key where the report is delivered.
|
||
S3KeyPrefix *string `type:"string"`
|
||
|
||
// The name identifier of the schedule.
|
||
ScheduleName *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateBusinessReportScheduleInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateBusinessReportScheduleInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateBusinessReportScheduleInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateBusinessReportScheduleInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.ContentRange == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ContentRange"))
|
||
}
|
||
if s.Format == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Format"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetClientRequestToken(v string) *CreateBusinessReportScheduleInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetContentRange sets the ContentRange field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetContentRange(v *BusinessReportContentRange) *CreateBusinessReportScheduleInput {
|
||
s.ContentRange = v
|
||
return s
|
||
}
|
||
|
||
// SetFormat sets the Format field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetFormat(v string) *CreateBusinessReportScheduleInput {
|
||
s.Format = &v
|
||
return s
|
||
}
|
||
|
||
// SetRecurrence sets the Recurrence field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetRecurrence(v *BusinessReportRecurrence) *CreateBusinessReportScheduleInput {
|
||
s.Recurrence = v
|
||
return s
|
||
}
|
||
|
||
// SetS3BucketName sets the S3BucketName field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetS3BucketName(v string) *CreateBusinessReportScheduleInput {
|
||
s.S3BucketName = &v
|
||
return s
|
||
}
|
||
|
||
// SetS3KeyPrefix sets the S3KeyPrefix field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetS3KeyPrefix(v string) *CreateBusinessReportScheduleInput {
|
||
s.S3KeyPrefix = &v
|
||
return s
|
||
}
|
||
|
||
// SetScheduleName sets the ScheduleName field's value.
|
||
func (s *CreateBusinessReportScheduleInput) SetScheduleName(v string) *CreateBusinessReportScheduleInput {
|
||
s.ScheduleName = &v
|
||
return s
|
||
}
|
||
|
||
type CreateBusinessReportScheduleOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the business report schedule.
|
||
ScheduleArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateBusinessReportScheduleOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateBusinessReportScheduleOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetScheduleArn sets the ScheduleArn field's value.
|
||
func (s *CreateBusinessReportScheduleOutput) SetScheduleArn(v string) *CreateBusinessReportScheduleOutput {
|
||
s.ScheduleArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateConferenceProviderInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The request token of the client.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The name of the conference provider.
|
||
//
|
||
// ConferenceProviderName is a required field
|
||
ConferenceProviderName *string `min:"1" type:"string" required:"true"`
|
||
|
||
// Represents a type within a list of predefined types.
|
||
//
|
||
// ConferenceProviderType is a required field
|
||
ConferenceProviderType *string `type:"string" required:"true" enum:"ConferenceProviderType"`
|
||
|
||
// The IP endpoint and protocol for calling.
|
||
IPDialIn *IPDialIn `type:"structure"`
|
||
|
||
// The meeting settings for the conference provider.
|
||
//
|
||
// MeetingSetting is a required field
|
||
MeetingSetting *MeetingSetting `type:"structure" required:"true"`
|
||
|
||
// The information for PSTN conferencing.
|
||
PSTNDialIn *PSTNDialIn `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateConferenceProviderInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateConferenceProviderInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateConferenceProviderInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateConferenceProviderInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.ConferenceProviderName == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferenceProviderName"))
|
||
}
|
||
if s.ConferenceProviderName != nil && len(*s.ConferenceProviderName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ConferenceProviderName", 1))
|
||
}
|
||
if s.ConferenceProviderType == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferenceProviderType"))
|
||
}
|
||
if s.MeetingSetting == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("MeetingSetting"))
|
||
}
|
||
if s.IPDialIn != nil {
|
||
if err := s.IPDialIn.Validate(); err != nil {
|
||
invalidParams.AddNested("IPDialIn", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
if s.MeetingSetting != nil {
|
||
if err := s.MeetingSetting.Validate(); err != nil {
|
||
invalidParams.AddNested("MeetingSetting", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
if s.PSTNDialIn != nil {
|
||
if err := s.PSTNDialIn.Validate(); err != nil {
|
||
invalidParams.AddNested("PSTNDialIn", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateConferenceProviderInput) SetClientRequestToken(v string) *CreateConferenceProviderInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetConferenceProviderName sets the ConferenceProviderName field's value.
|
||
func (s *CreateConferenceProviderInput) SetConferenceProviderName(v string) *CreateConferenceProviderInput {
|
||
s.ConferenceProviderName = &v
|
||
return s
|
||
}
|
||
|
||
// SetConferenceProviderType sets the ConferenceProviderType field's value.
|
||
func (s *CreateConferenceProviderInput) SetConferenceProviderType(v string) *CreateConferenceProviderInput {
|
||
s.ConferenceProviderType = &v
|
||
return s
|
||
}
|
||
|
||
// SetIPDialIn sets the IPDialIn field's value.
|
||
func (s *CreateConferenceProviderInput) SetIPDialIn(v *IPDialIn) *CreateConferenceProviderInput {
|
||
s.IPDialIn = v
|
||
return s
|
||
}
|
||
|
||
// SetMeetingSetting sets the MeetingSetting field's value.
|
||
func (s *CreateConferenceProviderInput) SetMeetingSetting(v *MeetingSetting) *CreateConferenceProviderInput {
|
||
s.MeetingSetting = v
|
||
return s
|
||
}
|
||
|
||
// SetPSTNDialIn sets the PSTNDialIn field's value.
|
||
func (s *CreateConferenceProviderInput) SetPSTNDialIn(v *PSTNDialIn) *CreateConferenceProviderInput {
|
||
s.PSTNDialIn = v
|
||
return s
|
||
}
|
||
|
||
type CreateConferenceProviderOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly-created conference provider.
|
||
ConferenceProviderArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateConferenceProviderOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateConferenceProviderOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetConferenceProviderArn sets the ConferenceProviderArn field's value.
|
||
func (s *CreateConferenceProviderOutput) SetConferenceProviderArn(v string) *CreateConferenceProviderOutput {
|
||
s.ConferenceProviderArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateContactInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// A unique, user-specified identifier for this request that ensures idempotency.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The name of the contact to display on the console.
|
||
DisplayName *string `min:"1" type:"string"`
|
||
|
||
// The first name of the contact that is used to call the contact on the device.
|
||
//
|
||
// FirstName is a required field
|
||
FirstName *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The last name of the contact that is used to call the contact on the device.
|
||
LastName *string `min:"1" type:"string"`
|
||
|
||
// The phone number of the contact in E.164 format.
|
||
PhoneNumber *string `type:"string" sensitive:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateContactInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateContactInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateContactInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateContactInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.DisplayName != nil && len(*s.DisplayName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
|
||
}
|
||
if s.FirstName == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("FirstName"))
|
||
}
|
||
if s.FirstName != nil && len(*s.FirstName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("FirstName", 1))
|
||
}
|
||
if s.LastName != nil && len(*s.LastName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("LastName", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateContactInput) SetClientRequestToken(v string) *CreateContactInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetDisplayName sets the DisplayName field's value.
|
||
func (s *CreateContactInput) SetDisplayName(v string) *CreateContactInput {
|
||
s.DisplayName = &v
|
||
return s
|
||
}
|
||
|
||
// SetFirstName sets the FirstName field's value.
|
||
func (s *CreateContactInput) SetFirstName(v string) *CreateContactInput {
|
||
s.FirstName = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastName sets the LastName field's value.
|
||
func (s *CreateContactInput) SetLastName(v string) *CreateContactInput {
|
||
s.LastName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPhoneNumber sets the PhoneNumber field's value.
|
||
func (s *CreateContactInput) SetPhoneNumber(v string) *CreateContactInput {
|
||
s.PhoneNumber = &v
|
||
return s
|
||
}
|
||
|
||
type CreateContactOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created address book.
|
||
ContactArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateContactOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateContactOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *CreateContactOutput) SetContactArn(v string) *CreateContactOutput {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateProfileInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The valid address for the room.
|
||
//
|
||
// Address is a required field
|
||
Address *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The user-specified token that is used during the creation of a profile.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The distance unit to be used by devices in the profile.
|
||
//
|
||
// DistanceUnit is a required field
|
||
DistanceUnit *string `type:"string" required:"true" enum:"DistanceUnit"`
|
||
|
||
// The maximum volume limit for a room profile.
|
||
MaxVolumeLimit *int64 `type:"integer"`
|
||
|
||
// Whether PSTN calling is enabled.
|
||
PSTNEnabled *bool `type:"boolean"`
|
||
|
||
// The name of a room profile.
|
||
//
|
||
// ProfileName is a required field
|
||
ProfileName *string `min:"1" type:"string" required:"true"`
|
||
|
||
// Whether room profile setup is enabled.
|
||
SetupModeDisabled *bool `type:"boolean"`
|
||
|
||
// The temperature unit to be used by devices in the profile.
|
||
//
|
||
// TemperatureUnit is a required field
|
||
TemperatureUnit *string `type:"string" required:"true" enum:"TemperatureUnit"`
|
||
|
||
// The time zone used by a room profile.
|
||
//
|
||
// Timezone is a required field
|
||
Timezone *string `min:"1" type:"string" required:"true"`
|
||
|
||
// A wake word for Alexa, Echo, Amazon, or a computer.
|
||
//
|
||
// WakeWord is a required field
|
||
WakeWord *string `type:"string" required:"true" enum:"WakeWord"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateProfileInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateProfileInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateProfileInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateProfileInput"}
|
||
if s.Address == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Address"))
|
||
}
|
||
if s.Address != nil && len(*s.Address) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Address", 1))
|
||
}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.DistanceUnit == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("DistanceUnit"))
|
||
}
|
||
if s.ProfileName == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ProfileName"))
|
||
}
|
||
if s.ProfileName != nil && len(*s.ProfileName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1))
|
||
}
|
||
if s.TemperatureUnit == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("TemperatureUnit"))
|
||
}
|
||
if s.Timezone == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Timezone"))
|
||
}
|
||
if s.Timezone != nil && len(*s.Timezone) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Timezone", 1))
|
||
}
|
||
if s.WakeWord == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("WakeWord"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddress sets the Address field's value.
|
||
func (s *CreateProfileInput) SetAddress(v string) *CreateProfileInput {
|
||
s.Address = &v
|
||
return s
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateProfileInput) SetClientRequestToken(v string) *CreateProfileInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetDistanceUnit sets the DistanceUnit field's value.
|
||
func (s *CreateProfileInput) SetDistanceUnit(v string) *CreateProfileInput {
|
||
s.DistanceUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxVolumeLimit sets the MaxVolumeLimit field's value.
|
||
func (s *CreateProfileInput) SetMaxVolumeLimit(v int64) *CreateProfileInput {
|
||
s.MaxVolumeLimit = &v
|
||
return s
|
||
}
|
||
|
||
// SetPSTNEnabled sets the PSTNEnabled field's value.
|
||
func (s *CreateProfileInput) SetPSTNEnabled(v bool) *CreateProfileInput {
|
||
s.PSTNEnabled = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileName sets the ProfileName field's value.
|
||
func (s *CreateProfileInput) SetProfileName(v string) *CreateProfileInput {
|
||
s.ProfileName = &v
|
||
return s
|
||
}
|
||
|
||
// SetSetupModeDisabled sets the SetupModeDisabled field's value.
|
||
func (s *CreateProfileInput) SetSetupModeDisabled(v bool) *CreateProfileInput {
|
||
s.SetupModeDisabled = &v
|
||
return s
|
||
}
|
||
|
||
// SetTemperatureUnit sets the TemperatureUnit field's value.
|
||
func (s *CreateProfileInput) SetTemperatureUnit(v string) *CreateProfileInput {
|
||
s.TemperatureUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetTimezone sets the Timezone field's value.
|
||
func (s *CreateProfileInput) SetTimezone(v string) *CreateProfileInput {
|
||
s.Timezone = &v
|
||
return s
|
||
}
|
||
|
||
// SetWakeWord sets the WakeWord field's value.
|
||
func (s *CreateProfileInput) SetWakeWord(v string) *CreateProfileInput {
|
||
s.WakeWord = &v
|
||
return s
|
||
}
|
||
|
||
type CreateProfileOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created room profile in the response.
|
||
ProfileArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateProfileOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateProfileOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *CreateProfileOutput) SetProfileArn(v string) *CreateProfileOutput {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// A unique, user-specified identifier for this request that ensures idempotency.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The description for the room.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The profile ARN for the room.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The calendar ARN for the room.
|
||
ProviderCalendarId *string `type:"string"`
|
||
|
||
// The name for the room.
|
||
//
|
||
// RoomName is a required field
|
||
RoomName *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The tags for the room.
|
||
Tags []*Tag `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateRoomInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateRoomInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.Description != nil && len(*s.Description) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||
}
|
||
if s.RoomName == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("RoomName"))
|
||
}
|
||
if s.RoomName != nil && len(*s.RoomName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("RoomName", 1))
|
||
}
|
||
if s.Tags != nil {
|
||
for i, v := range s.Tags {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateRoomInput) SetClientRequestToken(v string) *CreateRoomInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *CreateRoomInput) SetDescription(v string) *CreateRoomInput {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *CreateRoomInput) SetProfileArn(v string) *CreateRoomInput {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProviderCalendarId sets the ProviderCalendarId field's value.
|
||
func (s *CreateRoomInput) SetProviderCalendarId(v string) *CreateRoomInput {
|
||
s.ProviderCalendarId = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomName sets the RoomName field's value.
|
||
func (s *CreateRoomInput) SetRoomName(v string) *CreateRoomInput {
|
||
s.RoomName = &v
|
||
return s
|
||
}
|
||
|
||
// SetTags sets the Tags field's value.
|
||
func (s *CreateRoomInput) SetTags(v []*Tag) *CreateRoomInput {
|
||
s.Tags = v
|
||
return s
|
||
}
|
||
|
||
type CreateRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created room in the response.
|
||
RoomArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *CreateRoomOutput) SetRoomArn(v string) *CreateRoomOutput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateSkillGroupInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// A unique, user-specified identifier for this request that ensures idempotency.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The description for the skill group.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The name for the skill group.
|
||
//
|
||
// SkillGroupName is a required field
|
||
SkillGroupName *string `min:"1" type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateSkillGroupInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateSkillGroupInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateSkillGroupInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateSkillGroupInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.Description != nil && len(*s.Description) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||
}
|
||
if s.SkillGroupName == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillGroupName"))
|
||
}
|
||
if s.SkillGroupName != nil && len(*s.SkillGroupName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("SkillGroupName", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateSkillGroupInput) SetClientRequestToken(v string) *CreateSkillGroupInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *CreateSkillGroupInput) SetDescription(v string) *CreateSkillGroupInput {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupName sets the SkillGroupName field's value.
|
||
func (s *CreateSkillGroupInput) SetSkillGroupName(v string) *CreateSkillGroupInput {
|
||
s.SkillGroupName = &v
|
||
return s
|
||
}
|
||
|
||
type CreateSkillGroupOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created skill group in the response.
|
||
SkillGroupArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateSkillGroupOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateSkillGroupOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *CreateSkillGroupOutput) SetSkillGroupArn(v string) *CreateSkillGroupOutput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
type CreateUserInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// A unique, user-specified identifier for this request that ensures idempotency.
|
||
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
|
||
|
||
// The email address for the user.
|
||
Email *string `min:"1" type:"string"`
|
||
|
||
// The first name for the user.
|
||
FirstName *string `type:"string"`
|
||
|
||
// The last name for the user.
|
||
LastName *string `type:"string"`
|
||
|
||
// The tags for the user.
|
||
Tags []*Tag `type:"list"`
|
||
|
||
// The ARN for the user.
|
||
//
|
||
// UserId is a required field
|
||
UserId *string `min:"1" type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateUserInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateUserInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *CreateUserInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"}
|
||
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10))
|
||
}
|
||
if s.Email != nil && len(*s.Email) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Email", 1))
|
||
}
|
||
if s.UserId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("UserId"))
|
||
}
|
||
if s.UserId != nil && len(*s.UserId) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("UserId", 1))
|
||
}
|
||
if s.Tags != nil {
|
||
for i, v := range s.Tags {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetClientRequestToken sets the ClientRequestToken field's value.
|
||
func (s *CreateUserInput) SetClientRequestToken(v string) *CreateUserInput {
|
||
s.ClientRequestToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetEmail sets the Email field's value.
|
||
func (s *CreateUserInput) SetEmail(v string) *CreateUserInput {
|
||
s.Email = &v
|
||
return s
|
||
}
|
||
|
||
// SetFirstName sets the FirstName field's value.
|
||
func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput {
|
||
s.FirstName = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastName sets the LastName field's value.
|
||
func (s *CreateUserInput) SetLastName(v string) *CreateUserInput {
|
||
s.LastName = &v
|
||
return s
|
||
}
|
||
|
||
// SetTags sets the Tags field's value.
|
||
func (s *CreateUserInput) SetTags(v []*Tag) *CreateUserInput {
|
||
s.Tags = v
|
||
return s
|
||
}
|
||
|
||
// SetUserId sets the UserId field's value.
|
||
func (s *CreateUserInput) SetUserId(v string) *CreateUserInput {
|
||
s.UserId = &v
|
||
return s
|
||
}
|
||
|
||
type CreateUserOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created user in the response.
|
||
UserArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s CreateUserOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s CreateUserOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetUserArn sets the UserArn field's value.
|
||
func (s *CreateUserOutput) SetUserArn(v string) *CreateUserOutput {
|
||
s.UserArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteAddressBookInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the address book to delete.
|
||
//
|
||
// AddressBookArn is a required field
|
||
AddressBookArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteAddressBookInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteAddressBookInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteAddressBookInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteAddressBookInput"}
|
||
if s.AddressBookArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AddressBookArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *DeleteAddressBookInput) SetAddressBookArn(v string) *DeleteAddressBookInput {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteAddressBookOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteAddressBookOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteAddressBookOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteBusinessReportScheduleInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the business report schedule.
|
||
//
|
||
// ScheduleArn is a required field
|
||
ScheduleArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteBusinessReportScheduleInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteBusinessReportScheduleInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteBusinessReportScheduleInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteBusinessReportScheduleInput"}
|
||
if s.ScheduleArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ScheduleArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetScheduleArn sets the ScheduleArn field's value.
|
||
func (s *DeleteBusinessReportScheduleInput) SetScheduleArn(v string) *DeleteBusinessReportScheduleInput {
|
||
s.ScheduleArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteBusinessReportScheduleOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteBusinessReportScheduleOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteBusinessReportScheduleOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteConferenceProviderInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the conference provider.
|
||
//
|
||
// ConferenceProviderArn is a required field
|
||
ConferenceProviderArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteConferenceProviderInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteConferenceProviderInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteConferenceProviderInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteConferenceProviderInput"}
|
||
if s.ConferenceProviderArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferenceProviderArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetConferenceProviderArn sets the ConferenceProviderArn field's value.
|
||
func (s *DeleteConferenceProviderInput) SetConferenceProviderArn(v string) *DeleteConferenceProviderInput {
|
||
s.ConferenceProviderArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteConferenceProviderOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteConferenceProviderOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteConferenceProviderOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteContactInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the contact to delete.
|
||
//
|
||
// ContactArn is a required field
|
||
ContactArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteContactInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteContactInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteContactInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteContactInput"}
|
||
if s.ContactArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ContactArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *DeleteContactInput) SetContactArn(v string) *DeleteContactInput {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteContactOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteContactOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteContactOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteDeviceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device for which to request details.
|
||
//
|
||
// DeviceArn is a required field
|
||
DeviceArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteDeviceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteDeviceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteDeviceInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceInput"}
|
||
if s.DeviceArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *DeleteDeviceInput) SetDeviceArn(v string) *DeleteDeviceInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteDeviceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteDeviceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteDeviceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteProfileInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room profile to delete. Required.
|
||
ProfileArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteProfileInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteProfileInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *DeleteProfileInput) SetProfileArn(v string) *DeleteProfileInput {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteProfileOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteProfileOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteProfileOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room to delete. Required.
|
||
RoomArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *DeleteRoomInput) SetRoomArn(v string) *DeleteRoomInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteRoomSkillParameterInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The room skill parameter key for which to remove details.
|
||
//
|
||
// ParameterKey is a required field
|
||
ParameterKey *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The ARN of the room from which to remove the room skill parameter details.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The ID of the skill from which to remove the room skill parameter details.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteRoomSkillParameterInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteRoomSkillParameterInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteRoomSkillParameterInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteRoomSkillParameterInput"}
|
||
if s.ParameterKey == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ParameterKey"))
|
||
}
|
||
if s.ParameterKey != nil && len(*s.ParameterKey) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1))
|
||
}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetParameterKey sets the ParameterKey field's value.
|
||
func (s *DeleteRoomSkillParameterInput) SetParameterKey(v string) *DeleteRoomSkillParameterInput {
|
||
s.ParameterKey = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *DeleteRoomSkillParameterInput) SetRoomArn(v string) *DeleteRoomSkillParameterInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *DeleteRoomSkillParameterInput) SetSkillId(v string) *DeleteRoomSkillParameterInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteRoomSkillParameterOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteRoomSkillParameterOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteRoomSkillParameterOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteSkillAuthorizationInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The room that the skill is authorized for.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The unique identifier of a skill.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteSkillAuthorizationInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteSkillAuthorizationInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteSkillAuthorizationInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteSkillAuthorizationInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *DeleteSkillAuthorizationInput) SetRoomArn(v string) *DeleteSkillAuthorizationInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *DeleteSkillAuthorizationInput) SetSkillId(v string) *DeleteSkillAuthorizationInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteSkillAuthorizationOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteSkillAuthorizationOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteSkillAuthorizationOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteSkillGroupInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the skill group to delete. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteSkillGroupInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteSkillGroupInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *DeleteSkillGroupInput) SetSkillGroupArn(v string) *DeleteSkillGroupInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteSkillGroupOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteSkillGroupOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteSkillGroupOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DeleteUserInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the user's enrollment in the organization. Required.
|
||
//
|
||
// EnrollmentId is a required field
|
||
EnrollmentId *string `type:"string" required:"true"`
|
||
|
||
// The ARN of the user to delete in the organization. Required.
|
||
UserArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteUserInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteUserInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DeleteUserInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"}
|
||
if s.EnrollmentId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("EnrollmentId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetEnrollmentId sets the EnrollmentId field's value.
|
||
func (s *DeleteUserInput) SetEnrollmentId(v string) *DeleteUserInput {
|
||
s.EnrollmentId = &v
|
||
return s
|
||
}
|
||
|
||
// SetUserArn sets the UserArn field's value.
|
||
func (s *DeleteUserInput) SetUserArn(v string) *DeleteUserInput {
|
||
s.UserArn = &v
|
||
return s
|
||
}
|
||
|
||
type DeleteUserOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeleteUserOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeleteUserOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// The details about the developer that published the skill.
|
||
type DeveloperInfo struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The name of the developer.
|
||
DeveloperName *string `type:"string"`
|
||
|
||
// The email of the developer.
|
||
Email *string `min:"1" type:"string"`
|
||
|
||
// The URL of the privacy policy.
|
||
PrivacyPolicy *string `type:"string"`
|
||
|
||
// The website of the developer.
|
||
Url *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeveloperInfo) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeveloperInfo) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeveloperName sets the DeveloperName field's value.
|
||
func (s *DeveloperInfo) SetDeveloperName(v string) *DeveloperInfo {
|
||
s.DeveloperName = &v
|
||
return s
|
||
}
|
||
|
||
// SetEmail sets the Email field's value.
|
||
func (s *DeveloperInfo) SetEmail(v string) *DeveloperInfo {
|
||
s.Email = &v
|
||
return s
|
||
}
|
||
|
||
// SetPrivacyPolicy sets the PrivacyPolicy field's value.
|
||
func (s *DeveloperInfo) SetPrivacyPolicy(v string) *DeveloperInfo {
|
||
s.PrivacyPolicy = &v
|
||
return s
|
||
}
|
||
|
||
// SetUrl sets the Url field's value.
|
||
func (s *DeveloperInfo) SetUrl(v string) *DeveloperInfo {
|
||
s.Url = &v
|
||
return s
|
||
}
|
||
|
||
// A device with attributes.
|
||
type Device struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of a device.
|
||
DeviceArn *string `type:"string"`
|
||
|
||
// The name of a device.
|
||
DeviceName *string `min:"2" type:"string"`
|
||
|
||
// The serial number of a device.
|
||
DeviceSerialNumber *string `type:"string"`
|
||
|
||
// The status of a device. If the status is not READY, check the DeviceStatusInfo
|
||
// value for details.
|
||
DeviceStatus *string `type:"string" enum:"DeviceStatus"`
|
||
|
||
// Detailed information about a device's status.
|
||
DeviceStatusInfo *DeviceStatusInfo `type:"structure"`
|
||
|
||
// The type of a device.
|
||
DeviceType *string `type:"string"`
|
||
|
||
// The MAC address of a device.
|
||
MacAddress *string `type:"string"`
|
||
|
||
// The room ARN of a device.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The software version of a device.
|
||
SoftwareVersion *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Device) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Device) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *Device) SetDeviceArn(v string) *Device {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceName sets the DeviceName field's value.
|
||
func (s *Device) SetDeviceName(v string) *Device {
|
||
s.DeviceName = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceSerialNumber sets the DeviceSerialNumber field's value.
|
||
func (s *Device) SetDeviceSerialNumber(v string) *Device {
|
||
s.DeviceSerialNumber = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceStatus sets the DeviceStatus field's value.
|
||
func (s *Device) SetDeviceStatus(v string) *Device {
|
||
s.DeviceStatus = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceStatusInfo sets the DeviceStatusInfo field's value.
|
||
func (s *Device) SetDeviceStatusInfo(v *DeviceStatusInfo) *Device {
|
||
s.DeviceStatusInfo = v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceType sets the DeviceType field's value.
|
||
func (s *Device) SetDeviceType(v string) *Device {
|
||
s.DeviceType = &v
|
||
return s
|
||
}
|
||
|
||
// SetMacAddress sets the MacAddress field's value.
|
||
func (s *Device) SetMacAddress(v string) *Device {
|
||
s.MacAddress = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *Device) SetRoomArn(v string) *Device {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSoftwareVersion sets the SoftwareVersion field's value.
|
||
func (s *Device) SetSoftwareVersion(v string) *Device {
|
||
s.SoftwareVersion = &v
|
||
return s
|
||
}
|
||
|
||
// Device attributes.
|
||
type DeviceData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of a device.
|
||
DeviceArn *string `type:"string"`
|
||
|
||
// The name of a device.
|
||
DeviceName *string `min:"2" type:"string"`
|
||
|
||
// The serial number of a device.
|
||
DeviceSerialNumber *string `type:"string"`
|
||
|
||
// The status of a device.
|
||
DeviceStatus *string `type:"string" enum:"DeviceStatus"`
|
||
|
||
// Detailed information about a device's status.
|
||
DeviceStatusInfo *DeviceStatusInfo `type:"structure"`
|
||
|
||
// The type of a device.
|
||
DeviceType *string `type:"string"`
|
||
|
||
// The MAC address of a device.
|
||
MacAddress *string `type:"string"`
|
||
|
||
// The room ARN associated with a device.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The name of the room associated with a device.
|
||
RoomName *string `min:"1" type:"string"`
|
||
|
||
// The software version of a device.
|
||
SoftwareVersion *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeviceData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeviceData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *DeviceData) SetDeviceArn(v string) *DeviceData {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceName sets the DeviceName field's value.
|
||
func (s *DeviceData) SetDeviceName(v string) *DeviceData {
|
||
s.DeviceName = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceSerialNumber sets the DeviceSerialNumber field's value.
|
||
func (s *DeviceData) SetDeviceSerialNumber(v string) *DeviceData {
|
||
s.DeviceSerialNumber = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceStatus sets the DeviceStatus field's value.
|
||
func (s *DeviceData) SetDeviceStatus(v string) *DeviceData {
|
||
s.DeviceStatus = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceStatusInfo sets the DeviceStatusInfo field's value.
|
||
func (s *DeviceData) SetDeviceStatusInfo(v *DeviceStatusInfo) *DeviceData {
|
||
s.DeviceStatusInfo = v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceType sets the DeviceType field's value.
|
||
func (s *DeviceData) SetDeviceType(v string) *DeviceData {
|
||
s.DeviceType = &v
|
||
return s
|
||
}
|
||
|
||
// SetMacAddress sets the MacAddress field's value.
|
||
func (s *DeviceData) SetMacAddress(v string) *DeviceData {
|
||
s.MacAddress = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *DeviceData) SetRoomArn(v string) *DeviceData {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomName sets the RoomName field's value.
|
||
func (s *DeviceData) SetRoomName(v string) *DeviceData {
|
||
s.RoomName = &v
|
||
return s
|
||
}
|
||
|
||
// SetSoftwareVersion sets the SoftwareVersion field's value.
|
||
func (s *DeviceData) SetSoftwareVersion(v string) *DeviceData {
|
||
s.SoftwareVersion = &v
|
||
return s
|
||
}
|
||
|
||
// The list of device events.
|
||
type DeviceEvent struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The time (in epoch) when the event occurred.
|
||
Timestamp *time.Time `type:"timestamp"`
|
||
|
||
// The type of device event.
|
||
Type *string `type:"string" enum:"DeviceEventType"`
|
||
|
||
// The value of the event.
|
||
Value *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeviceEvent) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeviceEvent) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetTimestamp sets the Timestamp field's value.
|
||
func (s *DeviceEvent) SetTimestamp(v time.Time) *DeviceEvent {
|
||
s.Timestamp = &v
|
||
return s
|
||
}
|
||
|
||
// SetType sets the Type field's value.
|
||
func (s *DeviceEvent) SetType(v string) *DeviceEvent {
|
||
s.Type = &v
|
||
return s
|
||
}
|
||
|
||
// SetValue sets the Value field's value.
|
||
func (s *DeviceEvent) SetValue(v string) *DeviceEvent {
|
||
s.Value = &v
|
||
return s
|
||
}
|
||
|
||
// Details of a device’s status.
|
||
type DeviceStatusDetail struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The device status detail code.
|
||
Code *string `type:"string" enum:"DeviceStatusDetailCode"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeviceStatusDetail) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeviceStatusDetail) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetCode sets the Code field's value.
|
||
func (s *DeviceStatusDetail) SetCode(v string) *DeviceStatusDetail {
|
||
s.Code = &v
|
||
return s
|
||
}
|
||
|
||
// Detailed information about a device's status.
|
||
type DeviceStatusInfo struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The latest available information about the connection status of a device.
|
||
ConnectionStatus *string `type:"string" enum:"ConnectionStatus"`
|
||
|
||
// One or more device status detail descriptions.
|
||
DeviceStatusDetails []*DeviceStatusDetail `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DeviceStatusInfo) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DeviceStatusInfo) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetConnectionStatus sets the ConnectionStatus field's value.
|
||
func (s *DeviceStatusInfo) SetConnectionStatus(v string) *DeviceStatusInfo {
|
||
s.ConnectionStatus = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceStatusDetails sets the DeviceStatusDetails field's value.
|
||
func (s *DeviceStatusInfo) SetDeviceStatusDetails(v []*DeviceStatusDetail) *DeviceStatusInfo {
|
||
s.DeviceStatusDetails = v
|
||
return s
|
||
}
|
||
|
||
type DisassociateContactFromAddressBookInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the address from which to disassociate the contact.
|
||
//
|
||
// AddressBookArn is a required field
|
||
AddressBookArn *string `type:"string" required:"true"`
|
||
|
||
// The ARN of the contact to disassociate from an address book.
|
||
//
|
||
// ContactArn is a required field
|
||
ContactArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateContactFromAddressBookInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateContactFromAddressBookInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DisassociateContactFromAddressBookInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DisassociateContactFromAddressBookInput"}
|
||
if s.AddressBookArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AddressBookArn"))
|
||
}
|
||
if s.ContactArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ContactArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *DisassociateContactFromAddressBookInput) SetAddressBookArn(v string) *DisassociateContactFromAddressBookInput {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *DisassociateContactFromAddressBookInput) SetContactArn(v string) *DisassociateContactFromAddressBookInput {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
type DisassociateContactFromAddressBookOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateContactFromAddressBookOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateContactFromAddressBookOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DisassociateDeviceFromRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device to disassociate from a room. Required.
|
||
DeviceArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateDeviceFromRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateDeviceFromRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *DisassociateDeviceFromRoomInput) SetDeviceArn(v string) *DisassociateDeviceFromRoomInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
type DisassociateDeviceFromRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateDeviceFromRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateDeviceFromRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DisassociateSkillFromSkillGroupInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The unique identifier of a skill. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
|
||
// The ARN of a skill group to associate to a skill.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateSkillFromSkillGroupInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateSkillFromSkillGroupInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DisassociateSkillFromSkillGroupInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DisassociateSkillFromSkillGroupInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *DisassociateSkillFromSkillGroupInput) SetSkillGroupArn(v string) *DisassociateSkillFromSkillGroupInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *DisassociateSkillFromSkillGroupInput) SetSkillId(v string) *DisassociateSkillFromSkillGroupInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type DisassociateSkillFromSkillGroupOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateSkillFromSkillGroupOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateSkillFromSkillGroupOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DisassociateSkillFromUsersInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The private skill ID you want to make unavailable for enrolled users.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateSkillFromUsersInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateSkillFromUsersInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *DisassociateSkillFromUsersInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "DisassociateSkillFromUsersInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *DisassociateSkillFromUsersInput) SetSkillId(v string) *DisassociateSkillFromUsersInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type DisassociateSkillFromUsersOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateSkillFromUsersOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateSkillFromUsersOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type DisassociateSkillGroupFromRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room from which the skill group is to be disassociated. Required.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The ARN of the skill group to disassociate from a room. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateSkillGroupFromRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateSkillGroupFromRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *DisassociateSkillGroupFromRoomInput) SetRoomArn(v string) *DisassociateSkillGroupFromRoomInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *DisassociateSkillGroupFromRoomInput) SetSkillGroupArn(v string) *DisassociateSkillGroupFromRoomInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
type DisassociateSkillGroupFromRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s DisassociateSkillGroupFromRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s DisassociateSkillGroupFromRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// A filter name and value pair that is used to return a more specific list
|
||
// of results. Filters can be used to match a set of resources by various criteria.
|
||
type Filter struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The key of a filter.
|
||
//
|
||
// Key is a required field
|
||
Key *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The values of a filter.
|
||
//
|
||
// Values is a required field
|
||
Values []*string `type:"list" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Filter) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Filter) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *Filter) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "Filter"}
|
||
if s.Key == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Key"))
|
||
}
|
||
if s.Key != nil && len(*s.Key) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
|
||
}
|
||
if s.Values == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Values"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetKey sets the Key field's value.
|
||
func (s *Filter) SetKey(v string) *Filter {
|
||
s.Key = &v
|
||
return s
|
||
}
|
||
|
||
// SetValues sets the Values field's value.
|
||
func (s *Filter) SetValues(v []*string) *Filter {
|
||
s.Values = v
|
||
return s
|
||
}
|
||
|
||
type ForgetSmartHomeAppliancesInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The room that the appliances are associated with.
|
||
//
|
||
// RoomArn is a required field
|
||
RoomArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ForgetSmartHomeAppliancesInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ForgetSmartHomeAppliancesInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ForgetSmartHomeAppliancesInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ForgetSmartHomeAppliancesInput"}
|
||
if s.RoomArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("RoomArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *ForgetSmartHomeAppliancesInput) SetRoomArn(v string) *ForgetSmartHomeAppliancesInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type ForgetSmartHomeAppliancesOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ForgetSmartHomeAppliancesOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ForgetSmartHomeAppliancesOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type GetAddressBookInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the address book for which to request details.
|
||
//
|
||
// AddressBookArn is a required field
|
||
AddressBookArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetAddressBookInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetAddressBookInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *GetAddressBookInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "GetAddressBookInput"}
|
||
if s.AddressBookArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AddressBookArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *GetAddressBookInput) SetAddressBookArn(v string) *GetAddressBookInput {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetAddressBookOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the requested address book.
|
||
AddressBook *AddressBook `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetAddressBookOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetAddressBookOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddressBook sets the AddressBook field's value.
|
||
func (s *GetAddressBookOutput) SetAddressBook(v *AddressBook) *GetAddressBookOutput {
|
||
s.AddressBook = v
|
||
return s
|
||
}
|
||
|
||
type GetConferencePreferenceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetConferencePreferenceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetConferencePreferenceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type GetConferencePreferenceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The conference preference.
|
||
Preference *ConferencePreference `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetConferencePreferenceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetConferencePreferenceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetPreference sets the Preference field's value.
|
||
func (s *GetConferencePreferenceOutput) SetPreference(v *ConferencePreference) *GetConferencePreferenceOutput {
|
||
s.Preference = v
|
||
return s
|
||
}
|
||
|
||
type GetConferenceProviderInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the newly created conference provider.
|
||
//
|
||
// ConferenceProviderArn is a required field
|
||
ConferenceProviderArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetConferenceProviderInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetConferenceProviderInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *GetConferenceProviderInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "GetConferenceProviderInput"}
|
||
if s.ConferenceProviderArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferenceProviderArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetConferenceProviderArn sets the ConferenceProviderArn field's value.
|
||
func (s *GetConferenceProviderInput) SetConferenceProviderArn(v string) *GetConferenceProviderInput {
|
||
s.ConferenceProviderArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetConferenceProviderOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The conference provider.
|
||
ConferenceProvider *ConferenceProvider `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetConferenceProviderOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetConferenceProviderOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetConferenceProvider sets the ConferenceProvider field's value.
|
||
func (s *GetConferenceProviderOutput) SetConferenceProvider(v *ConferenceProvider) *GetConferenceProviderOutput {
|
||
s.ConferenceProvider = v
|
||
return s
|
||
}
|
||
|
||
type GetContactInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the contact for which to request details.
|
||
//
|
||
// ContactArn is a required field
|
||
ContactArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetContactInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetContactInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *GetContactInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "GetContactInput"}
|
||
if s.ContactArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ContactArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *GetContactInput) SetContactArn(v string) *GetContactInput {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetContactOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the requested contact.
|
||
Contact *Contact `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetContactOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetContactOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContact sets the Contact field's value.
|
||
func (s *GetContactOutput) SetContact(v *Contact) *GetContactOutput {
|
||
s.Contact = v
|
||
return s
|
||
}
|
||
|
||
type GetDeviceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device for which to request details. Required.
|
||
DeviceArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetDeviceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetDeviceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *GetDeviceInput) SetDeviceArn(v string) *GetDeviceInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetDeviceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the device requested. Required.
|
||
Device *Device `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetDeviceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetDeviceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDevice sets the Device field's value.
|
||
func (s *GetDeviceOutput) SetDevice(v *Device) *GetDeviceOutput {
|
||
s.Device = v
|
||
return s
|
||
}
|
||
|
||
type GetInvitationConfigurationInput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetInvitationConfigurationInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetInvitationConfigurationInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type GetInvitationConfigurationOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The email ID of the organization or individual contact that the enrolled
|
||
// user can use.
|
||
ContactEmail *string `min:"1" type:"string"`
|
||
|
||
// The name of the organization sending the enrollment invite to a user.
|
||
OrganizationName *string `min:"1" type:"string"`
|
||
|
||
// The list of private skill IDs that you want to recommend to the user to enable
|
||
// in the invitation.
|
||
PrivateSkillIds []*string `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetInvitationConfigurationOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetInvitationConfigurationOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContactEmail sets the ContactEmail field's value.
|
||
func (s *GetInvitationConfigurationOutput) SetContactEmail(v string) *GetInvitationConfigurationOutput {
|
||
s.ContactEmail = &v
|
||
return s
|
||
}
|
||
|
||
// SetOrganizationName sets the OrganizationName field's value.
|
||
func (s *GetInvitationConfigurationOutput) SetOrganizationName(v string) *GetInvitationConfigurationOutput {
|
||
s.OrganizationName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPrivateSkillIds sets the PrivateSkillIds field's value.
|
||
func (s *GetInvitationConfigurationOutput) SetPrivateSkillIds(v []*string) *GetInvitationConfigurationOutput {
|
||
s.PrivateSkillIds = v
|
||
return s
|
||
}
|
||
|
||
type GetProfileInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room profile for which to request details. Required.
|
||
ProfileArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetProfileInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetProfileInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *GetProfileInput) SetProfileArn(v string) *GetProfileInput {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetProfileOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the room profile requested. Required.
|
||
Profile *Profile `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetProfileOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetProfileOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetProfile sets the Profile field's value.
|
||
func (s *GetProfileOutput) SetProfile(v *Profile) *GetProfileOutput {
|
||
s.Profile = v
|
||
return s
|
||
}
|
||
|
||
type GetRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room for which to request details. Required.
|
||
RoomArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *GetRoomInput) SetRoomArn(v string) *GetRoomInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the room requested.
|
||
Room *Room `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoom sets the Room field's value.
|
||
func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput {
|
||
s.Room = v
|
||
return s
|
||
}
|
||
|
||
type GetRoomSkillParameterInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The room skill parameter key for which to get details. Required.
|
||
//
|
||
// ParameterKey is a required field
|
||
ParameterKey *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The ARN of the room from which to get the room skill parameter details.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The ARN of the skill from which to get the room skill parameter details.
|
||
// Required.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetRoomSkillParameterInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetRoomSkillParameterInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *GetRoomSkillParameterInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "GetRoomSkillParameterInput"}
|
||
if s.ParameterKey == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ParameterKey"))
|
||
}
|
||
if s.ParameterKey != nil && len(*s.ParameterKey) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1))
|
||
}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetParameterKey sets the ParameterKey field's value.
|
||
func (s *GetRoomSkillParameterInput) SetParameterKey(v string) *GetRoomSkillParameterInput {
|
||
s.ParameterKey = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *GetRoomSkillParameterInput) SetRoomArn(v string) *GetRoomSkillParameterInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *GetRoomSkillParameterInput) SetSkillId(v string) *GetRoomSkillParameterInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type GetRoomSkillParameterOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the room skill parameter requested. Required.
|
||
RoomSkillParameter *RoomSkillParameter `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetRoomSkillParameterOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetRoomSkillParameterOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomSkillParameter sets the RoomSkillParameter field's value.
|
||
func (s *GetRoomSkillParameterOutput) SetRoomSkillParameter(v *RoomSkillParameter) *GetRoomSkillParameterOutput {
|
||
s.RoomSkillParameter = v
|
||
return s
|
||
}
|
||
|
||
type GetSkillGroupInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the skill group for which to get details. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetSkillGroupInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetSkillGroupInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *GetSkillGroupInput) SetSkillGroupArn(v string) *GetSkillGroupInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
type GetSkillGroupOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details of the skill group requested. Required.
|
||
SkillGroup *SkillGroup `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s GetSkillGroupOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s GetSkillGroupOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetSkillGroup sets the SkillGroup field's value.
|
||
func (s *GetSkillGroupOutput) SetSkillGroup(v *SkillGroup) *GetSkillGroupOutput {
|
||
s.SkillGroup = v
|
||
return s
|
||
}
|
||
|
||
// The IP endpoint and protocol for calling.
|
||
type IPDialIn struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The protocol, including SIP, SIPS, and H323.
|
||
//
|
||
// CommsProtocol is a required field
|
||
CommsProtocol *string `type:"string" required:"true" enum:"CommsProtocol"`
|
||
|
||
// The IP address.
|
||
//
|
||
// Endpoint is a required field
|
||
Endpoint *string `min:"1" type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s IPDialIn) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s IPDialIn) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *IPDialIn) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "IPDialIn"}
|
||
if s.CommsProtocol == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("CommsProtocol"))
|
||
}
|
||
if s.Endpoint == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Endpoint"))
|
||
}
|
||
if s.Endpoint != nil && len(*s.Endpoint) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Endpoint", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetCommsProtocol sets the CommsProtocol field's value.
|
||
func (s *IPDialIn) SetCommsProtocol(v string) *IPDialIn {
|
||
s.CommsProtocol = &v
|
||
return s
|
||
}
|
||
|
||
// SetEndpoint sets the Endpoint field's value.
|
||
func (s *IPDialIn) SetEndpoint(v string) *IPDialIn {
|
||
s.Endpoint = &v
|
||
return s
|
||
}
|
||
|
||
type ListBusinessReportSchedulesInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The maximum number of schedules listed in the call.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// The token used to list the remaining schedules from the previous API call.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListBusinessReportSchedulesInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListBusinessReportSchedulesInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListBusinessReportSchedulesInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListBusinessReportSchedulesInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListBusinessReportSchedulesInput) SetMaxResults(v int64) *ListBusinessReportSchedulesInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListBusinessReportSchedulesInput) SetNextToken(v string) *ListBusinessReportSchedulesInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListBusinessReportSchedulesOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The schedule of the reports.
|
||
BusinessReportSchedules []*BusinessReportSchedule `type:"list"`
|
||
|
||
// The token used to list the remaining schedules from the previous API call.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListBusinessReportSchedulesOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListBusinessReportSchedulesOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetBusinessReportSchedules sets the BusinessReportSchedules field's value.
|
||
func (s *ListBusinessReportSchedulesOutput) SetBusinessReportSchedules(v []*BusinessReportSchedule) *ListBusinessReportSchedulesOutput {
|
||
s.BusinessReportSchedules = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListBusinessReportSchedulesOutput) SetNextToken(v string) *ListBusinessReportSchedulesOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListConferenceProvidersInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The maximum number of conference providers to be returned, per paginated
|
||
// calls.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListConferenceProvidersInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListConferenceProvidersInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListConferenceProvidersInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListConferenceProvidersInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListConferenceProvidersInput) SetMaxResults(v int64) *ListConferenceProvidersInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListConferenceProvidersInput) SetNextToken(v string) *ListConferenceProvidersInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListConferenceProvidersOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The conference providers.
|
||
ConferenceProviders []*ConferenceProvider `type:"list"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListConferenceProvidersOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListConferenceProvidersOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetConferenceProviders sets the ConferenceProviders field's value.
|
||
func (s *ListConferenceProvidersOutput) SetConferenceProviders(v []*ConferenceProvider) *ListConferenceProvidersOutput {
|
||
s.ConferenceProviders = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListConferenceProvidersOutput) SetNextToken(v string) *ListConferenceProvidersOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListDeviceEventsInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of a device.
|
||
//
|
||
// DeviceArn is a required field
|
||
DeviceArn *string `type:"string" required:"true"`
|
||
|
||
// The event type to filter device events. If EventType isn't specified, this
|
||
// returns a list of all device events in reverse chronological order. If EventType
|
||
// is specified, this returns a list of device events for that EventType in
|
||
// reverse chronological order.
|
||
EventType *string `type:"string" enum:"DeviceEventType"`
|
||
|
||
// The maximum number of results to include in the response. The default value
|
||
// is 50. If more results exist than the specified MaxResults value, a token
|
||
// is included in the response so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// only includes results beyond the token, up to the value specified by MaxResults.
|
||
// When the end of results is reached, the response has a value of null.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListDeviceEventsInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListDeviceEventsInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListDeviceEventsInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListDeviceEventsInput"}
|
||
if s.DeviceArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
|
||
}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *ListDeviceEventsInput) SetDeviceArn(v string) *ListDeviceEventsInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetEventType sets the EventType field's value.
|
||
func (s *ListDeviceEventsInput) SetEventType(v string) *ListDeviceEventsInput {
|
||
s.EventType = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListDeviceEventsInput) SetMaxResults(v int64) *ListDeviceEventsInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListDeviceEventsInput) SetNextToken(v string) *ListDeviceEventsInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListDeviceEventsOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The device events requested for the device ARN.
|
||
DeviceEvents []*DeviceEvent `type:"list"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListDeviceEventsOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListDeviceEventsOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceEvents sets the DeviceEvents field's value.
|
||
func (s *ListDeviceEventsOutput) SetDeviceEvents(v []*DeviceEvent) *ListDeviceEventsOutput {
|
||
s.DeviceEvents = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListDeviceEventsOutput) SetNextToken(v string) *ListDeviceEventsOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListSkillsInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// Whether the skill is enabled under the user's account, or if it requires
|
||
// linking to be used.
|
||
EnablementType *string `type:"string" enum:"EnablementTypeFilter"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved. Required.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
// Required.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The ARN of the skill group for which to list enabled skills. Required.
|
||
SkillGroupArn *string `type:"string"`
|
||
|
||
// Whether the skill is publicly available or is a private skill.
|
||
SkillType *string `type:"string" enum:"SkillTypeFilter"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSkillsInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSkillsInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListSkillsInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListSkillsInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetEnablementType sets the EnablementType field's value.
|
||
func (s *ListSkillsInput) SetEnablementType(v string) *ListSkillsInput {
|
||
s.EnablementType = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListSkillsInput) SetMaxResults(v int64) *ListSkillsInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSkillsInput) SetNextToken(v string) *ListSkillsInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *ListSkillsInput) SetSkillGroupArn(v string) *ListSkillsInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillType sets the SkillType field's value.
|
||
func (s *ListSkillsInput) SetSkillType(v string) *ListSkillsInput {
|
||
s.SkillType = &v
|
||
return s
|
||
}
|
||
|
||
type ListSkillsOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The list of enabled skills requested. Required.
|
||
SkillSummaries []*SkillSummary `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSkillsOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSkillsOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSkillsOutput) SetNextToken(v string) *ListSkillsOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillSummaries sets the SkillSummaries field's value.
|
||
func (s *ListSkillsOutput) SetSkillSummaries(v []*SkillSummary) *ListSkillsOutput {
|
||
s.SkillSummaries = v
|
||
return s
|
||
}
|
||
|
||
type ListSkillsStoreCategoriesInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The maximum number of categories returned, per paginated calls.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSkillsStoreCategoriesInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSkillsStoreCategoriesInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListSkillsStoreCategoriesInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListSkillsStoreCategoriesInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListSkillsStoreCategoriesInput) SetMaxResults(v int64) *ListSkillsStoreCategoriesInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSkillsStoreCategoriesInput) SetNextToken(v string) *ListSkillsStoreCategoriesInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListSkillsStoreCategoriesOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The list of categories.
|
||
CategoryList []*Category `type:"list"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSkillsStoreCategoriesOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSkillsStoreCategoriesOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetCategoryList sets the CategoryList field's value.
|
||
func (s *ListSkillsStoreCategoriesOutput) SetCategoryList(v []*Category) *ListSkillsStoreCategoriesOutput {
|
||
s.CategoryList = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSkillsStoreCategoriesOutput) SetNextToken(v string) *ListSkillsStoreCategoriesOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListSkillsStoreSkillsByCategoryInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The category ID for which the skills are being retrieved from the skill store.
|
||
//
|
||
// CategoryId is a required field
|
||
CategoryId *int64 `min:"1" type:"long" required:"true"`
|
||
|
||
// The maximum number of skills returned per paginated calls.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSkillsStoreSkillsByCategoryInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSkillsStoreSkillsByCategoryInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListSkillsStoreSkillsByCategoryInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListSkillsStoreSkillsByCategoryInput"}
|
||
if s.CategoryId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("CategoryId"))
|
||
}
|
||
if s.CategoryId != nil && *s.CategoryId < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("CategoryId", 1))
|
||
}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetCategoryId sets the CategoryId field's value.
|
||
func (s *ListSkillsStoreSkillsByCategoryInput) SetCategoryId(v int64) *ListSkillsStoreSkillsByCategoryInput {
|
||
s.CategoryId = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListSkillsStoreSkillsByCategoryInput) SetMaxResults(v int64) *ListSkillsStoreSkillsByCategoryInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSkillsStoreSkillsByCategoryInput) SetNextToken(v string) *ListSkillsStoreSkillsByCategoryInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListSkillsStoreSkillsByCategoryOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The skill store skills.
|
||
SkillsStoreSkills []*SkillsStoreSkill `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSkillsStoreSkillsByCategoryOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSkillsStoreSkillsByCategoryOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSkillsStoreSkillsByCategoryOutput) SetNextToken(v string) *ListSkillsStoreSkillsByCategoryOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillsStoreSkills sets the SkillsStoreSkills field's value.
|
||
func (s *ListSkillsStoreSkillsByCategoryOutput) SetSkillsStoreSkills(v []*SkillsStoreSkill) *ListSkillsStoreSkillsByCategoryOutput {
|
||
s.SkillsStoreSkills = v
|
||
return s
|
||
}
|
||
|
||
type ListSmartHomeAppliancesInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The maximum number of appliances to be returned, per paginated calls.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The room that the appliances are associated with.
|
||
//
|
||
// RoomArn is a required field
|
||
RoomArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSmartHomeAppliancesInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSmartHomeAppliancesInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListSmartHomeAppliancesInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListSmartHomeAppliancesInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.RoomArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("RoomArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListSmartHomeAppliancesInput) SetMaxResults(v int64) *ListSmartHomeAppliancesInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSmartHomeAppliancesInput) SetNextToken(v string) *ListSmartHomeAppliancesInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *ListSmartHomeAppliancesInput) SetRoomArn(v string) *ListSmartHomeAppliancesInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type ListSmartHomeAppliancesOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The tokens used for pagination.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The smart home appliances.
|
||
SmartHomeAppliances []*SmartHomeAppliance `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListSmartHomeAppliancesOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListSmartHomeAppliancesOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListSmartHomeAppliancesOutput) SetNextToken(v string) *ListSmartHomeAppliancesOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSmartHomeAppliances sets the SmartHomeAppliances field's value.
|
||
func (s *ListSmartHomeAppliancesOutput) SetSmartHomeAppliances(v []*SmartHomeAppliance) *ListSmartHomeAppliancesOutput {
|
||
s.SmartHomeAppliances = v
|
||
return s
|
||
}
|
||
|
||
type ListTagsInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the specified resource for which to list tags.
|
||
//
|
||
// Arn is a required field
|
||
Arn *string `type:"string" required:"true"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
NextToken *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListTagsInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListTagsInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ListTagsInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"}
|
||
if s.Arn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Arn"))
|
||
}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetArn sets the Arn field's value.
|
||
func (s *ListTagsInput) SetArn(v string) *ListTagsInput {
|
||
s.Arn = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
type ListTagsOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The tags requested for the specified resource.
|
||
Tags []*Tag `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ListTagsOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ListTagsOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetTags sets the Tags field's value.
|
||
func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput {
|
||
s.Tags = v
|
||
return s
|
||
}
|
||
|
||
// The values that indicate whether a pin is always required (YES), never required
|
||
// (NO), or OPTIONAL.
|
||
//
|
||
// * If YES, Alexa will always ask for a meeting pin.
|
||
//
|
||
// * If NO, Alexa will never ask for a meeting pin.
|
||
//
|
||
// * If OPTIONAL, Alexa will ask if you have a meeting pin and if the customer
|
||
// responds with yes, it will ask for the meeting pin.
|
||
type MeetingSetting struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The values that indicate whether the pin is always required.
|
||
//
|
||
// RequirePin is a required field
|
||
RequirePin *string `type:"string" required:"true" enum:"RequirePin"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s MeetingSetting) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s MeetingSetting) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *MeetingSetting) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "MeetingSetting"}
|
||
if s.RequirePin == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("RequirePin"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetRequirePin sets the RequirePin field's value.
|
||
func (s *MeetingSetting) SetRequirePin(v string) *MeetingSetting {
|
||
s.RequirePin = &v
|
||
return s
|
||
}
|
||
|
||
// The information for public switched telephone network (PSTN) conferencing.
|
||
type PSTNDialIn struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The zip code.
|
||
//
|
||
// CountryCode is a required field
|
||
CountryCode *string `type:"string" required:"true"`
|
||
|
||
// The delay duration before Alexa enters the conference ID with dual-tone multi-frequency
|
||
// (DTMF). Each number on the dial pad corresponds to a DTMF tone, which is
|
||
// how we send data over the telephone network.
|
||
//
|
||
// OneClickIdDelay is a required field
|
||
OneClickIdDelay *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The delay duration before Alexa enters the conference pin with dual-tone
|
||
// multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF
|
||
// tone, which is how we send data over the telephone network.
|
||
//
|
||
// OneClickPinDelay is a required field
|
||
OneClickPinDelay *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The phone number to call to join the conference.
|
||
//
|
||
// PhoneNumber is a required field
|
||
PhoneNumber *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PSTNDialIn) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PSTNDialIn) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *PSTNDialIn) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "PSTNDialIn"}
|
||
if s.CountryCode == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("CountryCode"))
|
||
}
|
||
if s.OneClickIdDelay == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("OneClickIdDelay"))
|
||
}
|
||
if s.OneClickIdDelay != nil && len(*s.OneClickIdDelay) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("OneClickIdDelay", 1))
|
||
}
|
||
if s.OneClickPinDelay == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("OneClickPinDelay"))
|
||
}
|
||
if s.OneClickPinDelay != nil && len(*s.OneClickPinDelay) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("OneClickPinDelay", 1))
|
||
}
|
||
if s.PhoneNumber == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("PhoneNumber"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetCountryCode sets the CountryCode field's value.
|
||
func (s *PSTNDialIn) SetCountryCode(v string) *PSTNDialIn {
|
||
s.CountryCode = &v
|
||
return s
|
||
}
|
||
|
||
// SetOneClickIdDelay sets the OneClickIdDelay field's value.
|
||
func (s *PSTNDialIn) SetOneClickIdDelay(v string) *PSTNDialIn {
|
||
s.OneClickIdDelay = &v
|
||
return s
|
||
}
|
||
|
||
// SetOneClickPinDelay sets the OneClickPinDelay field's value.
|
||
func (s *PSTNDialIn) SetOneClickPinDelay(v string) *PSTNDialIn {
|
||
s.OneClickPinDelay = &v
|
||
return s
|
||
}
|
||
|
||
// SetPhoneNumber sets the PhoneNumber field's value.
|
||
func (s *PSTNDialIn) SetPhoneNumber(v string) *PSTNDialIn {
|
||
s.PhoneNumber = &v
|
||
return s
|
||
}
|
||
|
||
// A room profile with attributes.
|
||
type Profile struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The address of a room profile.
|
||
Address *string `min:"1" type:"string"`
|
||
|
||
// The ARN of the address book.
|
||
AddressBookArn *string `type:"string"`
|
||
|
||
// The distance unit of a room profile.
|
||
DistanceUnit *string `type:"string" enum:"DistanceUnit"`
|
||
|
||
// Retrieves if the profile is default or not.
|
||
IsDefault *bool `type:"boolean"`
|
||
|
||
// The max volume limit of a room profile.
|
||
MaxVolumeLimit *int64 `type:"integer"`
|
||
|
||
// The PSTN setting of a room profile.
|
||
PSTNEnabled *bool `type:"boolean"`
|
||
|
||
// The ARN of a room profile.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The name of a room profile.
|
||
ProfileName *string `min:"1" type:"string"`
|
||
|
||
// The setup mode of a room profile.
|
||
SetupModeDisabled *bool `type:"boolean"`
|
||
|
||
// The temperature unit of a room profile.
|
||
TemperatureUnit *string `type:"string" enum:"TemperatureUnit"`
|
||
|
||
// The time zone of a room profile.
|
||
Timezone *string `min:"1" type:"string"`
|
||
|
||
// The wake word of a room profile.
|
||
WakeWord *string `type:"string" enum:"WakeWord"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Profile) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Profile) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddress sets the Address field's value.
|
||
func (s *Profile) SetAddress(v string) *Profile {
|
||
s.Address = &v
|
||
return s
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *Profile) SetAddressBookArn(v string) *Profile {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDistanceUnit sets the DistanceUnit field's value.
|
||
func (s *Profile) SetDistanceUnit(v string) *Profile {
|
||
s.DistanceUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetIsDefault sets the IsDefault field's value.
|
||
func (s *Profile) SetIsDefault(v bool) *Profile {
|
||
s.IsDefault = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxVolumeLimit sets the MaxVolumeLimit field's value.
|
||
func (s *Profile) SetMaxVolumeLimit(v int64) *Profile {
|
||
s.MaxVolumeLimit = &v
|
||
return s
|
||
}
|
||
|
||
// SetPSTNEnabled sets the PSTNEnabled field's value.
|
||
func (s *Profile) SetPSTNEnabled(v bool) *Profile {
|
||
s.PSTNEnabled = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *Profile) SetProfileArn(v string) *Profile {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileName sets the ProfileName field's value.
|
||
func (s *Profile) SetProfileName(v string) *Profile {
|
||
s.ProfileName = &v
|
||
return s
|
||
}
|
||
|
||
// SetSetupModeDisabled sets the SetupModeDisabled field's value.
|
||
func (s *Profile) SetSetupModeDisabled(v bool) *Profile {
|
||
s.SetupModeDisabled = &v
|
||
return s
|
||
}
|
||
|
||
// SetTemperatureUnit sets the TemperatureUnit field's value.
|
||
func (s *Profile) SetTemperatureUnit(v string) *Profile {
|
||
s.TemperatureUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetTimezone sets the Timezone field's value.
|
||
func (s *Profile) SetTimezone(v string) *Profile {
|
||
s.Timezone = &v
|
||
return s
|
||
}
|
||
|
||
// SetWakeWord sets the WakeWord field's value.
|
||
func (s *Profile) SetWakeWord(v string) *Profile {
|
||
s.WakeWord = &v
|
||
return s
|
||
}
|
||
|
||
// The data of a room profile.
|
||
type ProfileData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The address of a room profile.
|
||
Address *string `min:"1" type:"string"`
|
||
|
||
// The distance unit of a room profile.
|
||
DistanceUnit *string `type:"string" enum:"DistanceUnit"`
|
||
|
||
// Retrieves if the profile data is default or not.
|
||
IsDefault *bool `type:"boolean"`
|
||
|
||
// The ARN of a room profile.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The name of a room profile.
|
||
ProfileName *string `min:"1" type:"string"`
|
||
|
||
// The temperature unit of a room profile.
|
||
TemperatureUnit *string `type:"string" enum:"TemperatureUnit"`
|
||
|
||
// The timezone of a room profile.
|
||
Timezone *string `min:"1" type:"string"`
|
||
|
||
// The wake word of a room profile.
|
||
WakeWord *string `type:"string" enum:"WakeWord"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ProfileData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ProfileData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddress sets the Address field's value.
|
||
func (s *ProfileData) SetAddress(v string) *ProfileData {
|
||
s.Address = &v
|
||
return s
|
||
}
|
||
|
||
// SetDistanceUnit sets the DistanceUnit field's value.
|
||
func (s *ProfileData) SetDistanceUnit(v string) *ProfileData {
|
||
s.DistanceUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetIsDefault sets the IsDefault field's value.
|
||
func (s *ProfileData) SetIsDefault(v bool) *ProfileData {
|
||
s.IsDefault = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *ProfileData) SetProfileArn(v string) *ProfileData {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileName sets the ProfileName field's value.
|
||
func (s *ProfileData) SetProfileName(v string) *ProfileData {
|
||
s.ProfileName = &v
|
||
return s
|
||
}
|
||
|
||
// SetTemperatureUnit sets the TemperatureUnit field's value.
|
||
func (s *ProfileData) SetTemperatureUnit(v string) *ProfileData {
|
||
s.TemperatureUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetTimezone sets the Timezone field's value.
|
||
func (s *ProfileData) SetTimezone(v string) *ProfileData {
|
||
s.Timezone = &v
|
||
return s
|
||
}
|
||
|
||
// SetWakeWord sets the WakeWord field's value.
|
||
func (s *ProfileData) SetWakeWord(v string) *ProfileData {
|
||
s.WakeWord = &v
|
||
return s
|
||
}
|
||
|
||
type PutConferencePreferenceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The conference preference of a specific conference provider.
|
||
//
|
||
// ConferencePreference is a required field
|
||
ConferencePreference *ConferencePreference `type:"structure" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutConferencePreferenceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutConferencePreferenceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *PutConferencePreferenceInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "PutConferencePreferenceInput"}
|
||
if s.ConferencePreference == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferencePreference"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetConferencePreference sets the ConferencePreference field's value.
|
||
func (s *PutConferencePreferenceInput) SetConferencePreference(v *ConferencePreference) *PutConferencePreferenceInput {
|
||
s.ConferencePreference = v
|
||
return s
|
||
}
|
||
|
||
type PutConferencePreferenceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutConferencePreferenceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutConferencePreferenceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type PutInvitationConfigurationInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The email ID of the organization or individual contact that the enrolled
|
||
// user can use.
|
||
ContactEmail *string `min:"1" type:"string"`
|
||
|
||
// The name of the organization sending the enrollment invite to a user.
|
||
//
|
||
// OrganizationName is a required field
|
||
OrganizationName *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The list of private skill IDs that you want to recommend to the user to enable
|
||
// in the invitation.
|
||
PrivateSkillIds []*string `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutInvitationConfigurationInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutInvitationConfigurationInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *PutInvitationConfigurationInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "PutInvitationConfigurationInput"}
|
||
if s.ContactEmail != nil && len(*s.ContactEmail) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ContactEmail", 1))
|
||
}
|
||
if s.OrganizationName == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("OrganizationName"))
|
||
}
|
||
if s.OrganizationName != nil && len(*s.OrganizationName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("OrganizationName", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetContactEmail sets the ContactEmail field's value.
|
||
func (s *PutInvitationConfigurationInput) SetContactEmail(v string) *PutInvitationConfigurationInput {
|
||
s.ContactEmail = &v
|
||
return s
|
||
}
|
||
|
||
// SetOrganizationName sets the OrganizationName field's value.
|
||
func (s *PutInvitationConfigurationInput) SetOrganizationName(v string) *PutInvitationConfigurationInput {
|
||
s.OrganizationName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPrivateSkillIds sets the PrivateSkillIds field's value.
|
||
func (s *PutInvitationConfigurationInput) SetPrivateSkillIds(v []*string) *PutInvitationConfigurationInput {
|
||
s.PrivateSkillIds = v
|
||
return s
|
||
}
|
||
|
||
type PutInvitationConfigurationOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutInvitationConfigurationOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutInvitationConfigurationOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type PutRoomSkillParameterInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room associated with the room skill parameter. Required.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The updated room skill parameter. Required.
|
||
//
|
||
// RoomSkillParameter is a required field
|
||
RoomSkillParameter *RoomSkillParameter `type:"structure" required:"true"`
|
||
|
||
// The ARN of the skill associated with the room skill parameter. Required.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutRoomSkillParameterInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutRoomSkillParameterInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *PutRoomSkillParameterInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "PutRoomSkillParameterInput"}
|
||
if s.RoomSkillParameter == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("RoomSkillParameter"))
|
||
}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
if s.RoomSkillParameter != nil {
|
||
if err := s.RoomSkillParameter.Validate(); err != nil {
|
||
invalidParams.AddNested("RoomSkillParameter", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *PutRoomSkillParameterInput) SetRoomArn(v string) *PutRoomSkillParameterInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomSkillParameter sets the RoomSkillParameter field's value.
|
||
func (s *PutRoomSkillParameterInput) SetRoomSkillParameter(v *RoomSkillParameter) *PutRoomSkillParameterInput {
|
||
s.RoomSkillParameter = v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *PutRoomSkillParameterInput) SetSkillId(v string) *PutRoomSkillParameterInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type PutRoomSkillParameterOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutRoomSkillParameterOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutRoomSkillParameterOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type PutSkillAuthorizationInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The authorization result specific to OAUTH code grant output. "Code” must
|
||
// be populated in the AuthorizationResult map to establish the authorization.
|
||
//
|
||
// AuthorizationResult is a required field
|
||
AuthorizationResult map[string]*string `type:"map" required:"true" sensitive:"true"`
|
||
|
||
// The room that the skill is authorized for.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The unique identifier of a skill.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutSkillAuthorizationInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutSkillAuthorizationInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *PutSkillAuthorizationInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "PutSkillAuthorizationInput"}
|
||
if s.AuthorizationResult == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AuthorizationResult"))
|
||
}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAuthorizationResult sets the AuthorizationResult field's value.
|
||
func (s *PutSkillAuthorizationInput) SetAuthorizationResult(v map[string]*string) *PutSkillAuthorizationInput {
|
||
s.AuthorizationResult = v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *PutSkillAuthorizationInput) SetRoomArn(v string) *PutSkillAuthorizationInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *PutSkillAuthorizationInput) SetSkillId(v string) *PutSkillAuthorizationInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type PutSkillAuthorizationOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s PutSkillAuthorizationOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s PutSkillAuthorizationOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type RegisterAVSDeviceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The device type ID for your AVS device generated by Amazon when the OEM creates
|
||
// a new product on Amazon's Developer Console.
|
||
//
|
||
// AmazonId is a required field
|
||
AmazonId *string `type:"string" required:"true"`
|
||
|
||
// The client ID of the OEM used for code-based linking authorization on an
|
||
// AVS device.
|
||
//
|
||
// ClientId is a required field
|
||
ClientId *string `type:"string" required:"true"`
|
||
|
||
// The key generated by the OEM that uniquely identifies a specified instance
|
||
// of your AVS device.
|
||
//
|
||
// DeviceSerialNumber is a required field
|
||
DeviceSerialNumber *string `type:"string" required:"true"`
|
||
|
||
// The product ID used to identify your AVS device during authorization.
|
||
//
|
||
// ProductId is a required field
|
||
ProductId *string `type:"string" required:"true"`
|
||
|
||
// The code that is obtained after your AVS device has made a POST request to
|
||
// LWA as a part of the Device Authorization Request component of the OAuth
|
||
// code-based linking specification.
|
||
//
|
||
// UserCode is a required field
|
||
UserCode *string `min:"1" type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RegisterAVSDeviceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RegisterAVSDeviceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *RegisterAVSDeviceInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "RegisterAVSDeviceInput"}
|
||
if s.AmazonId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AmazonId"))
|
||
}
|
||
if s.ClientId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ClientId"))
|
||
}
|
||
if s.DeviceSerialNumber == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("DeviceSerialNumber"))
|
||
}
|
||
if s.ProductId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ProductId"))
|
||
}
|
||
if s.UserCode == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("UserCode"))
|
||
}
|
||
if s.UserCode != nil && len(*s.UserCode) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("UserCode", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAmazonId sets the AmazonId field's value.
|
||
func (s *RegisterAVSDeviceInput) SetAmazonId(v string) *RegisterAVSDeviceInput {
|
||
s.AmazonId = &v
|
||
return s
|
||
}
|
||
|
||
// SetClientId sets the ClientId field's value.
|
||
func (s *RegisterAVSDeviceInput) SetClientId(v string) *RegisterAVSDeviceInput {
|
||
s.ClientId = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceSerialNumber sets the DeviceSerialNumber field's value.
|
||
func (s *RegisterAVSDeviceInput) SetDeviceSerialNumber(v string) *RegisterAVSDeviceInput {
|
||
s.DeviceSerialNumber = &v
|
||
return s
|
||
}
|
||
|
||
// SetProductId sets the ProductId field's value.
|
||
func (s *RegisterAVSDeviceInput) SetProductId(v string) *RegisterAVSDeviceInput {
|
||
s.ProductId = &v
|
||
return s
|
||
}
|
||
|
||
// SetUserCode sets the UserCode field's value.
|
||
func (s *RegisterAVSDeviceInput) SetUserCode(v string) *RegisterAVSDeviceInput {
|
||
s.UserCode = &v
|
||
return s
|
||
}
|
||
|
||
type RegisterAVSDeviceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device.
|
||
DeviceArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RegisterAVSDeviceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RegisterAVSDeviceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *RegisterAVSDeviceOutput) SetDeviceArn(v string) *RegisterAVSDeviceOutput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
type RejectSkillInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The unique identifier of the skill.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RejectSkillInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RejectSkillInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *RejectSkillInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "RejectSkillInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *RejectSkillInput) SetSkillId(v string) *RejectSkillInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
type RejectSkillOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RejectSkillOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RejectSkillOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type ResolveRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the skill that was requested. Required.
|
||
//
|
||
// SkillId is a required field
|
||
SkillId *string `type:"string" required:"true"`
|
||
|
||
// The ARN of the user. Required.
|
||
//
|
||
// UserId is a required field
|
||
UserId *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ResolveRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ResolveRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *ResolveRoomInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "ResolveRoomInput"}
|
||
if s.SkillId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("SkillId"))
|
||
}
|
||
if s.UserId == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("UserId"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *ResolveRoomInput) SetSkillId(v string) *ResolveRoomInput {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
// SetUserId sets the UserId field's value.
|
||
func (s *ResolveRoomInput) SetUserId(v string) *ResolveRoomInput {
|
||
s.UserId = &v
|
||
return s
|
||
}
|
||
|
||
type ResolveRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room from which the skill request was invoked.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The name of the room from which the skill request was invoked.
|
||
RoomName *string `min:"1" type:"string"`
|
||
|
||
// Response to get the room profile request. Required.
|
||
RoomSkillParameters []*RoomSkillParameter `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s ResolveRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s ResolveRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *ResolveRoomOutput) SetRoomArn(v string) *ResolveRoomOutput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomName sets the RoomName field's value.
|
||
func (s *ResolveRoomOutput) SetRoomName(v string) *ResolveRoomOutput {
|
||
s.RoomName = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomSkillParameters sets the RoomSkillParameters field's value.
|
||
func (s *ResolveRoomOutput) SetRoomSkillParameters(v []*RoomSkillParameter) *ResolveRoomOutput {
|
||
s.RoomSkillParameters = v
|
||
return s
|
||
}
|
||
|
||
type RevokeInvitationInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the enrollment invitation to revoke. Required.
|
||
EnrollmentId *string `type:"string"`
|
||
|
||
// The ARN of the user for whom to revoke an enrollment invitation. Required.
|
||
UserArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RevokeInvitationInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RevokeInvitationInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetEnrollmentId sets the EnrollmentId field's value.
|
||
func (s *RevokeInvitationInput) SetEnrollmentId(v string) *RevokeInvitationInput {
|
||
s.EnrollmentId = &v
|
||
return s
|
||
}
|
||
|
||
// SetUserArn sets the UserArn field's value.
|
||
func (s *RevokeInvitationInput) SetUserArn(v string) *RevokeInvitationInput {
|
||
s.UserArn = &v
|
||
return s
|
||
}
|
||
|
||
type RevokeInvitationOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RevokeInvitationOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RevokeInvitationOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// A room with attributes.
|
||
type Room struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The description of a room.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The profile ARN of a room.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The provider calendar ARN of a room.
|
||
ProviderCalendarId *string `type:"string"`
|
||
|
||
// The ARN of a room.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The name of a room.
|
||
RoomName *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Room) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Room) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *Room) SetDescription(v string) *Room {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *Room) SetProfileArn(v string) *Room {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProviderCalendarId sets the ProviderCalendarId field's value.
|
||
func (s *Room) SetProviderCalendarId(v string) *Room {
|
||
s.ProviderCalendarId = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *Room) SetRoomArn(v string) *Room {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomName sets the RoomName field's value.
|
||
func (s *Room) SetRoomName(v string) *Room {
|
||
s.RoomName = &v
|
||
return s
|
||
}
|
||
|
||
// The data of a room.
|
||
type RoomData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The description of a room.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The profile ARN of a room.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The profile name of a room.
|
||
ProfileName *string `min:"1" type:"string"`
|
||
|
||
// The provider calendar ARN of a room.
|
||
ProviderCalendarId *string `type:"string"`
|
||
|
||
// The ARN of a room.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The name of a room.
|
||
RoomName *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RoomData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RoomData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *RoomData) SetDescription(v string) *RoomData {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *RoomData) SetProfileArn(v string) *RoomData {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileName sets the ProfileName field's value.
|
||
func (s *RoomData) SetProfileName(v string) *RoomData {
|
||
s.ProfileName = &v
|
||
return s
|
||
}
|
||
|
||
// SetProviderCalendarId sets the ProviderCalendarId field's value.
|
||
func (s *RoomData) SetProviderCalendarId(v string) *RoomData {
|
||
s.ProviderCalendarId = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *RoomData) SetRoomArn(v string) *RoomData {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomName sets the RoomName field's value.
|
||
func (s *RoomData) SetRoomName(v string) *RoomData {
|
||
s.RoomName = &v
|
||
return s
|
||
}
|
||
|
||
// A skill parameter associated with a room.
|
||
type RoomSkillParameter struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The parameter key of a room skill parameter. ParameterKey is an enumerated
|
||
// type that only takes “DEFAULT” or “SCOPE” as valid values.
|
||
//
|
||
// ParameterKey is a required field
|
||
ParameterKey *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The parameter value of a room skill parameter.
|
||
//
|
||
// ParameterValue is a required field
|
||
ParameterValue *string `min:"1" type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s RoomSkillParameter) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s RoomSkillParameter) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *RoomSkillParameter) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "RoomSkillParameter"}
|
||
if s.ParameterKey == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ParameterKey"))
|
||
}
|
||
if s.ParameterKey != nil && len(*s.ParameterKey) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1))
|
||
}
|
||
if s.ParameterValue == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ParameterValue"))
|
||
}
|
||
if s.ParameterValue != nil && len(*s.ParameterValue) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ParameterValue", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetParameterKey sets the ParameterKey field's value.
|
||
func (s *RoomSkillParameter) SetParameterKey(v string) *RoomSkillParameter {
|
||
s.ParameterKey = &v
|
||
return s
|
||
}
|
||
|
||
// SetParameterValue sets the ParameterValue field's value.
|
||
func (s *RoomSkillParameter) SetParameterValue(v string) *RoomSkillParameter {
|
||
s.ParameterValue = &v
|
||
return s
|
||
}
|
||
|
||
type SearchAddressBooksInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use to list a specified set of address books. The supported
|
||
// filter key is AddressBookName.
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// only includes results beyond the token, up to the value specified by MaxResults.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the specified set of address books. The
|
||
// supported sort key is AddressBookName.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchAddressBooksInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchAddressBooksInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchAddressBooksInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchAddressBooksInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchAddressBooksInput) SetFilters(v []*Filter) *SearchAddressBooksInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchAddressBooksInput) SetMaxResults(v int64) *SearchAddressBooksInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchAddressBooksInput) SetNextToken(v string) *SearchAddressBooksInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchAddressBooksInput) SetSortCriteria(v []*Sort) *SearchAddressBooksInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchAddressBooksOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The address books that meet the specified set of filter criteria, in sort
|
||
// order.
|
||
AddressBooks []*AddressBookData `type:"list"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The total number of address books returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchAddressBooksOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchAddressBooksOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetAddressBooks sets the AddressBooks field's value.
|
||
func (s *SearchAddressBooksOutput) SetAddressBooks(v []*AddressBookData) *SearchAddressBooksOutput {
|
||
s.AddressBooks = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchAddressBooksOutput) SetNextToken(v string) *SearchAddressBooksOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchAddressBooksOutput) SetTotalCount(v int64) *SearchAddressBooksOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
type SearchContactsInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use to list a specified set of address books. The supported
|
||
// filter keys are DisplayName, FirstName, LastName, and AddressBookArns.
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// only includes results beyond the token, up to the value specified by MaxResults.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the specified set of contacts. The supported
|
||
// sort keys are DisplayName, FirstName, and LastName.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchContactsInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchContactsInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchContactsInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchContactsInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchContactsInput) SetFilters(v []*Filter) *SearchContactsInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchContactsInput) SetMaxResults(v int64) *SearchContactsInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchContactsInput) SetNextToken(v string) *SearchContactsInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchContactsInput) SetSortCriteria(v []*Sort) *SearchContactsInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchContactsOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The contacts that meet the specified set of filter criteria, in sort order.
|
||
Contacts []*ContactData `type:"list"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The total number of contacts returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchContactsOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchContactsOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetContacts sets the Contacts field's value.
|
||
func (s *SearchContactsOutput) SetContacts(v []*ContactData) *SearchContactsOutput {
|
||
s.Contacts = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchContactsOutput) SetNextToken(v string) *SearchContactsOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchContactsOutput) SetTotalCount(v int64) *SearchContactsOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
type SearchDevicesInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use to list a specified set of devices. Supported filter keys
|
||
// are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType,
|
||
// DeviceSerialNumber, UnassociatedOnly, and ConnectionStatus (ONLINE and OFFLINE).
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the specified set of devices. Supported
|
||
// sort keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber,
|
||
// and ConnectionStatus.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchDevicesInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchDevicesInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchDevicesInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchDevicesInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchDevicesInput) SetFilters(v []*Filter) *SearchDevicesInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchDevicesInput) SetMaxResults(v int64) *SearchDevicesInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchDevicesInput) SetNextToken(v string) *SearchDevicesInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchDevicesInput) SetSortCriteria(v []*Sort) *SearchDevicesInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchDevicesOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The devices that meet the specified set of filter criteria, in sort order.
|
||
Devices []*DeviceData `type:"list"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The total number of devices returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchDevicesOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchDevicesOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDevices sets the Devices field's value.
|
||
func (s *SearchDevicesOutput) SetDevices(v []*DeviceData) *SearchDevicesOutput {
|
||
s.Devices = v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchDevicesOutput) SetNextToken(v string) *SearchDevicesOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchDevicesOutput) SetTotalCount(v int64) *SearchDevicesOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
type SearchProfilesInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use to list a specified set of room profiles. Supported filter
|
||
// keys are ProfileName and Address. Required.
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the specified set of room profiles. Supported
|
||
// sort keys are ProfileName and Address.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchProfilesInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchProfilesInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchProfilesInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchProfilesInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchProfilesInput) SetFilters(v []*Filter) *SearchProfilesInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchProfilesInput) SetMaxResults(v int64) *SearchProfilesInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchProfilesInput) SetNextToken(v string) *SearchProfilesInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchProfilesInput) SetSortCriteria(v []*Sort) *SearchProfilesInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchProfilesOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The profiles that meet the specified set of filter criteria, in sort order.
|
||
Profiles []*ProfileData `type:"list"`
|
||
|
||
// The total number of room profiles returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchProfilesOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchProfilesOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchProfilesOutput) SetNextToken(v string) *SearchProfilesOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfiles sets the Profiles field's value.
|
||
func (s *SearchProfilesOutput) SetProfiles(v []*ProfileData) *SearchProfilesOutput {
|
||
s.Profiles = v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchProfilesOutput) SetTotalCount(v int64) *SearchProfilesOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
type SearchRoomsInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use to list a specified set of rooms. The supported filter
|
||
// keys are RoomName and ProfileName.
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the specified set of rooms. The supported
|
||
// sort keys are RoomName and ProfileName.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchRoomsInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchRoomsInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchRoomsInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchRoomsInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchRoomsInput) SetFilters(v []*Filter) *SearchRoomsInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchRoomsInput) SetMaxResults(v int64) *SearchRoomsInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchRoomsInput) SetNextToken(v string) *SearchRoomsInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchRoomsInput) SetSortCriteria(v []*Sort) *SearchRoomsInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchRoomsOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The rooms that meet the specified set of filter criteria, in sort order.
|
||
Rooms []*RoomData `type:"list"`
|
||
|
||
// The total number of rooms returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchRoomsOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchRoomsOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchRoomsOutput) SetNextToken(v string) *SearchRoomsOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetRooms sets the Rooms field's value.
|
||
func (s *SearchRoomsOutput) SetRooms(v []*RoomData) *SearchRoomsOutput {
|
||
s.Rooms = v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchRoomsOutput) SetTotalCount(v int64) *SearchRoomsOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
type SearchSkillGroupsInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use to list a specified set of skill groups. The supported
|
||
// filter key is SkillGroupName.
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
// Required.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the specified set of skill groups. The supported
|
||
// sort key is SkillGroupName.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchSkillGroupsInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchSkillGroupsInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchSkillGroupsInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchSkillGroupsInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchSkillGroupsInput) SetFilters(v []*Filter) *SearchSkillGroupsInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchSkillGroupsInput) SetMaxResults(v int64) *SearchSkillGroupsInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchSkillGroupsInput) SetNextToken(v string) *SearchSkillGroupsInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchSkillGroupsInput) SetSortCriteria(v []*Sort) *SearchSkillGroupsInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchSkillGroupsOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The skill groups that meet the filter criteria, in sort order.
|
||
SkillGroups []*SkillGroupData `type:"list"`
|
||
|
||
// The total number of skill groups returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchSkillGroupsOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchSkillGroupsOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchSkillGroupsOutput) SetNextToken(v string) *SearchSkillGroupsOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroups sets the SkillGroups field's value.
|
||
func (s *SearchSkillGroupsOutput) SetSkillGroups(v []*SkillGroupData) *SearchSkillGroupsOutput {
|
||
s.SkillGroups = v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchSkillGroupsOutput) SetTotalCount(v int64) *SearchSkillGroupsOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
type SearchUsersInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The filters to use for listing a specific set of users. Required. Supported
|
||
// filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.
|
||
Filters []*Filter `type:"list"`
|
||
|
||
// The maximum number of results to include in the response. If more results
|
||
// exist than the specified MaxResults value, a token is included in the response
|
||
// so that the remaining results can be retrieved. Required.
|
||
MaxResults *int64 `min:"1" type:"integer"`
|
||
|
||
// An optional token returned from a prior request. Use this token for pagination
|
||
// of results from this action. If this parameter is specified, the response
|
||
// includes only results beyond the token, up to the value specified by MaxResults.
|
||
// Required.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The sort order to use in listing the filtered set of users. Required. Supported
|
||
// sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.
|
||
SortCriteria []*Sort `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchUsersInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchUsersInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *SearchUsersInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "SearchUsersInput"}
|
||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||
}
|
||
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
||
}
|
||
if s.Filters != nil {
|
||
for i, v := range s.Filters {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
if s.SortCriteria != nil {
|
||
for i, v := range s.SortCriteria {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortCriteria", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFilters sets the Filters field's value.
|
||
func (s *SearchUsersInput) SetFilters(v []*Filter) *SearchUsersInput {
|
||
s.Filters = v
|
||
return s
|
||
}
|
||
|
||
// SetMaxResults sets the MaxResults field's value.
|
||
func (s *SearchUsersInput) SetMaxResults(v int64) *SearchUsersInput {
|
||
s.MaxResults = &v
|
||
return s
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchUsersInput) SetNextToken(v string) *SearchUsersInput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetSortCriteria sets the SortCriteria field's value.
|
||
func (s *SearchUsersInput) SetSortCriteria(v []*Sort) *SearchUsersInput {
|
||
s.SortCriteria = v
|
||
return s
|
||
}
|
||
|
||
type SearchUsersOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The token returned to indicate that there is more data available.
|
||
NextToken *string `min:"1" type:"string"`
|
||
|
||
// The total number of users returned.
|
||
TotalCount *int64 `type:"integer"`
|
||
|
||
// The users that meet the specified set of filter criteria, in sort order.
|
||
Users []*UserData `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SearchUsersOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SearchUsersOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetNextToken sets the NextToken field's value.
|
||
func (s *SearchUsersOutput) SetNextToken(v string) *SearchUsersOutput {
|
||
s.NextToken = &v
|
||
return s
|
||
}
|
||
|
||
// SetTotalCount sets the TotalCount field's value.
|
||
func (s *SearchUsersOutput) SetTotalCount(v int64) *SearchUsersOutput {
|
||
s.TotalCount = &v
|
||
return s
|
||
}
|
||
|
||
// SetUsers sets the Users field's value.
|
||
func (s *SearchUsersOutput) SetUsers(v []*UserData) *SearchUsersOutput {
|
||
s.Users = v
|
||
return s
|
||
}
|
||
|
||
type SendInvitationInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the user to whom to send an invitation. Required.
|
||
UserArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SendInvitationInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SendInvitationInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetUserArn sets the UserArn field's value.
|
||
func (s *SendInvitationInput) SetUserArn(v string) *SendInvitationInput {
|
||
s.UserArn = &v
|
||
return s
|
||
}
|
||
|
||
type SendInvitationOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SendInvitationOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SendInvitationOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Granular information about the skill.
|
||
type SkillDetails struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The details about what the skill supports organized as bullet points.
|
||
BulletPoints []*string `type:"list"`
|
||
|
||
// The details about the developer that published the skill.
|
||
DeveloperInfo *DeveloperInfo `type:"structure"`
|
||
|
||
// The URL of the end user license agreement.
|
||
EndUserLicenseAgreement *string `type:"string"`
|
||
|
||
// The generic keywords associated with the skill that can be used to find a
|
||
// skill.
|
||
GenericKeywords []*string `type:"list"`
|
||
|
||
// The phrase used to trigger the skill.
|
||
InvocationPhrase *string `type:"string"`
|
||
|
||
// The updates added in bullet points.
|
||
NewInThisVersionBulletPoints []*string `type:"list"`
|
||
|
||
// The description of the product.
|
||
ProductDescription *string `type:"string"`
|
||
|
||
// The date when the skill was released.
|
||
ReleaseDate *string `type:"string"`
|
||
|
||
// The list of reviews for the skill, including Key and Value pair.
|
||
Reviews map[string]*string `type:"map"`
|
||
|
||
// The types of skills.
|
||
SkillTypes []*string `type:"list"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SkillDetails) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SkillDetails) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetBulletPoints sets the BulletPoints field's value.
|
||
func (s *SkillDetails) SetBulletPoints(v []*string) *SkillDetails {
|
||
s.BulletPoints = v
|
||
return s
|
||
}
|
||
|
||
// SetDeveloperInfo sets the DeveloperInfo field's value.
|
||
func (s *SkillDetails) SetDeveloperInfo(v *DeveloperInfo) *SkillDetails {
|
||
s.DeveloperInfo = v
|
||
return s
|
||
}
|
||
|
||
// SetEndUserLicenseAgreement sets the EndUserLicenseAgreement field's value.
|
||
func (s *SkillDetails) SetEndUserLicenseAgreement(v string) *SkillDetails {
|
||
s.EndUserLicenseAgreement = &v
|
||
return s
|
||
}
|
||
|
||
// SetGenericKeywords sets the GenericKeywords field's value.
|
||
func (s *SkillDetails) SetGenericKeywords(v []*string) *SkillDetails {
|
||
s.GenericKeywords = v
|
||
return s
|
||
}
|
||
|
||
// SetInvocationPhrase sets the InvocationPhrase field's value.
|
||
func (s *SkillDetails) SetInvocationPhrase(v string) *SkillDetails {
|
||
s.InvocationPhrase = &v
|
||
return s
|
||
}
|
||
|
||
// SetNewInThisVersionBulletPoints sets the NewInThisVersionBulletPoints field's value.
|
||
func (s *SkillDetails) SetNewInThisVersionBulletPoints(v []*string) *SkillDetails {
|
||
s.NewInThisVersionBulletPoints = v
|
||
return s
|
||
}
|
||
|
||
// SetProductDescription sets the ProductDescription field's value.
|
||
func (s *SkillDetails) SetProductDescription(v string) *SkillDetails {
|
||
s.ProductDescription = &v
|
||
return s
|
||
}
|
||
|
||
// SetReleaseDate sets the ReleaseDate field's value.
|
||
func (s *SkillDetails) SetReleaseDate(v string) *SkillDetails {
|
||
s.ReleaseDate = &v
|
||
return s
|
||
}
|
||
|
||
// SetReviews sets the Reviews field's value.
|
||
func (s *SkillDetails) SetReviews(v map[string]*string) *SkillDetails {
|
||
s.Reviews = v
|
||
return s
|
||
}
|
||
|
||
// SetSkillTypes sets the SkillTypes field's value.
|
||
func (s *SkillDetails) SetSkillTypes(v []*string) *SkillDetails {
|
||
s.SkillTypes = v
|
||
return s
|
||
}
|
||
|
||
// A skill group with attributes.
|
||
type SkillGroup struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The description of a skill group.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The ARN of a skill group.
|
||
SkillGroupArn *string `type:"string"`
|
||
|
||
// The name of a skill group.
|
||
SkillGroupName *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SkillGroup) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SkillGroup) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *SkillGroup) SetDescription(v string) *SkillGroup {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *SkillGroup) SetSkillGroupArn(v string) *SkillGroup {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupName sets the SkillGroupName field's value.
|
||
func (s *SkillGroup) SetSkillGroupName(v string) *SkillGroup {
|
||
s.SkillGroupName = &v
|
||
return s
|
||
}
|
||
|
||
// The attributes of a skill group.
|
||
type SkillGroupData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The description of a skill group.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The skill group ARN of a skill group.
|
||
SkillGroupArn *string `type:"string"`
|
||
|
||
// The skill group name of a skill group.
|
||
SkillGroupName *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SkillGroupData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SkillGroupData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *SkillGroupData) SetDescription(v string) *SkillGroupData {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *SkillGroupData) SetSkillGroupArn(v string) *SkillGroupData {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupName sets the SkillGroupName field's value.
|
||
func (s *SkillGroupData) SetSkillGroupName(v string) *SkillGroupData {
|
||
s.SkillGroupName = &v
|
||
return s
|
||
}
|
||
|
||
// The summary of skills.
|
||
type SkillSummary struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// Whether the skill is enabled under the user's account, or if it requires
|
||
// linking to be used.
|
||
EnablementType *string `type:"string" enum:"EnablementType"`
|
||
|
||
// The ARN of the skill summary.
|
||
SkillId *string `type:"string"`
|
||
|
||
// The name of the skill.
|
||
SkillName *string `min:"1" type:"string"`
|
||
|
||
// Whether the skill is publicly available or is a private skill.
|
||
SkillType *string `min:"1" type:"string" enum:"SkillType"`
|
||
|
||
// Linking support for a skill.
|
||
SupportsLinking *bool `type:"boolean"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SkillSummary) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SkillSummary) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetEnablementType sets the EnablementType field's value.
|
||
func (s *SkillSummary) SetEnablementType(v string) *SkillSummary {
|
||
s.EnablementType = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *SkillSummary) SetSkillId(v string) *SkillSummary {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillName sets the SkillName field's value.
|
||
func (s *SkillSummary) SetSkillName(v string) *SkillSummary {
|
||
s.SkillName = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillType sets the SkillType field's value.
|
||
func (s *SkillSummary) SetSkillType(v string) *SkillSummary {
|
||
s.SkillType = &v
|
||
return s
|
||
}
|
||
|
||
// SetSupportsLinking sets the SupportsLinking field's value.
|
||
func (s *SkillSummary) SetSupportsLinking(v bool) *SkillSummary {
|
||
s.SupportsLinking = &v
|
||
return s
|
||
}
|
||
|
||
// The detailed information about an Alexa skill.
|
||
type SkillsStoreSkill struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The URL where the skill icon resides.
|
||
IconUrl *string `type:"string"`
|
||
|
||
// Sample utterances that interact with the skill.
|
||
SampleUtterances []*string `type:"list"`
|
||
|
||
// Short description about the skill.
|
||
ShortDescription *string `type:"string"`
|
||
|
||
// Information about the skill.
|
||
SkillDetails *SkillDetails `type:"structure"`
|
||
|
||
// The ARN of the skill.
|
||
SkillId *string `type:"string"`
|
||
|
||
// The name of the skill.
|
||
SkillName *string `min:"1" type:"string"`
|
||
|
||
// Linking support for a skill.
|
||
SupportsLinking *bool `type:"boolean"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SkillsStoreSkill) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SkillsStoreSkill) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetIconUrl sets the IconUrl field's value.
|
||
func (s *SkillsStoreSkill) SetIconUrl(v string) *SkillsStoreSkill {
|
||
s.IconUrl = &v
|
||
return s
|
||
}
|
||
|
||
// SetSampleUtterances sets the SampleUtterances field's value.
|
||
func (s *SkillsStoreSkill) SetSampleUtterances(v []*string) *SkillsStoreSkill {
|
||
s.SampleUtterances = v
|
||
return s
|
||
}
|
||
|
||
// SetShortDescription sets the ShortDescription field's value.
|
||
func (s *SkillsStoreSkill) SetShortDescription(v string) *SkillsStoreSkill {
|
||
s.ShortDescription = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillDetails sets the SkillDetails field's value.
|
||
func (s *SkillsStoreSkill) SetSkillDetails(v *SkillDetails) *SkillsStoreSkill {
|
||
s.SkillDetails = v
|
||
return s
|
||
}
|
||
|
||
// SetSkillId sets the SkillId field's value.
|
||
func (s *SkillsStoreSkill) SetSkillId(v string) *SkillsStoreSkill {
|
||
s.SkillId = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillName sets the SkillName field's value.
|
||
func (s *SkillsStoreSkill) SetSkillName(v string) *SkillsStoreSkill {
|
||
s.SkillName = &v
|
||
return s
|
||
}
|
||
|
||
// SetSupportsLinking sets the SupportsLinking field's value.
|
||
func (s *SkillsStoreSkill) SetSupportsLinking(v bool) *SkillsStoreSkill {
|
||
s.SupportsLinking = &v
|
||
return s
|
||
}
|
||
|
||
// A smart home appliance that can connect to a central system. Any domestic
|
||
// device can be a smart appliance.
|
||
type SmartHomeAppliance struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The description of the smart home appliance.
|
||
Description *string `type:"string"`
|
||
|
||
// The friendly name of the smart home appliance.
|
||
FriendlyName *string `type:"string"`
|
||
|
||
// The name of the manufacturer of the smart home appliance.
|
||
ManufacturerName *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s SmartHomeAppliance) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s SmartHomeAppliance) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *SmartHomeAppliance) SetDescription(v string) *SmartHomeAppliance {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetFriendlyName sets the FriendlyName field's value.
|
||
func (s *SmartHomeAppliance) SetFriendlyName(v string) *SmartHomeAppliance {
|
||
s.FriendlyName = &v
|
||
return s
|
||
}
|
||
|
||
// SetManufacturerName sets the ManufacturerName field's value.
|
||
func (s *SmartHomeAppliance) SetManufacturerName(v string) *SmartHomeAppliance {
|
||
s.ManufacturerName = &v
|
||
return s
|
||
}
|
||
|
||
// An object representing a sort criteria.
|
||
type Sort struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The sort key of a sort object.
|
||
//
|
||
// Key is a required field
|
||
Key *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The sort value of a sort object.
|
||
//
|
||
// Value is a required field
|
||
Value *string `type:"string" required:"true" enum:"SortValue"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Sort) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Sort) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *Sort) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "Sort"}
|
||
if s.Key == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Key"))
|
||
}
|
||
if s.Key != nil && len(*s.Key) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
|
||
}
|
||
if s.Value == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Value"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetKey sets the Key field's value.
|
||
func (s *Sort) SetKey(v string) *Sort {
|
||
s.Key = &v
|
||
return s
|
||
}
|
||
|
||
// SetValue sets the Value field's value.
|
||
func (s *Sort) SetValue(v string) *Sort {
|
||
s.Value = &v
|
||
return s
|
||
}
|
||
|
||
type StartDeviceSyncInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device to sync. Required.
|
||
DeviceArn *string `type:"string"`
|
||
|
||
// Request structure to start the device sync. Required.
|
||
//
|
||
// Features is a required field
|
||
Features []*string `type:"list" required:"true"`
|
||
|
||
// The ARN of the room with which the device to sync is associated. Required.
|
||
RoomArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s StartDeviceSyncInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s StartDeviceSyncInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *StartDeviceSyncInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "StartDeviceSyncInput"}
|
||
if s.Features == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Features"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *StartDeviceSyncInput) SetDeviceArn(v string) *StartDeviceSyncInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetFeatures sets the Features field's value.
|
||
func (s *StartDeviceSyncInput) SetFeatures(v []*string) *StartDeviceSyncInput {
|
||
s.Features = v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *StartDeviceSyncInput) SetRoomArn(v string) *StartDeviceSyncInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type StartDeviceSyncOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s StartDeviceSyncOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s StartDeviceSyncOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type StartSmartHomeApplianceDiscoveryInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The room where smart home appliance discovery was initiated.
|
||
//
|
||
// RoomArn is a required field
|
||
RoomArn *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s StartSmartHomeApplianceDiscoveryInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s StartSmartHomeApplianceDiscoveryInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *StartSmartHomeApplianceDiscoveryInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "StartSmartHomeApplianceDiscoveryInput"}
|
||
if s.RoomArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("RoomArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *StartSmartHomeApplianceDiscoveryInput) SetRoomArn(v string) *StartSmartHomeApplianceDiscoveryInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
type StartSmartHomeApplianceDiscoveryOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s StartSmartHomeApplianceDiscoveryOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s StartSmartHomeApplianceDiscoveryOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// A key-value pair that can be associated with a resource.
|
||
type Tag struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The key of a tag. Tag keys are case-sensitive.
|
||
//
|
||
// Key is a required field
|
||
Key *string `min:"1" type:"string" required:"true"`
|
||
|
||
// The value of a tag. Tag values are case-sensitive and can be null.
|
||
//
|
||
// Value is a required field
|
||
Value *string `type:"string" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s Tag) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s Tag) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *Tag) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "Tag"}
|
||
if s.Key == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Key"))
|
||
}
|
||
if s.Key != nil && len(*s.Key) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
|
||
}
|
||
if s.Value == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Value"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetKey sets the Key field's value.
|
||
func (s *Tag) SetKey(v string) *Tag {
|
||
s.Key = &v
|
||
return s
|
||
}
|
||
|
||
// SetValue sets the Value field's value.
|
||
func (s *Tag) SetValue(v string) *Tag {
|
||
s.Value = &v
|
||
return s
|
||
}
|
||
|
||
type TagResourceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the resource to which to add metadata tags. Required.
|
||
//
|
||
// Arn is a required field
|
||
Arn *string `type:"string" required:"true"`
|
||
|
||
// The tags to be added to the specified resource. Do not provide system tags.
|
||
// Required.
|
||
//
|
||
// Tags is a required field
|
||
Tags []*Tag `type:"list" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s TagResourceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s TagResourceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *TagResourceInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
|
||
if s.Arn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Arn"))
|
||
}
|
||
if s.Tags == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Tags"))
|
||
}
|
||
if s.Tags != nil {
|
||
for i, v := range s.Tags {
|
||
if v == nil {
|
||
continue
|
||
}
|
||
if err := v.Validate(); err != nil {
|
||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetArn sets the Arn field's value.
|
||
func (s *TagResourceInput) SetArn(v string) *TagResourceInput {
|
||
s.Arn = &v
|
||
return s
|
||
}
|
||
|
||
// SetTags sets the Tags field's value.
|
||
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
|
||
s.Tags = v
|
||
return s
|
||
}
|
||
|
||
type TagResourceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s TagResourceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s TagResourceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UntagResourceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the resource from which to remove metadata tags. Required.
|
||
//
|
||
// Arn is a required field
|
||
Arn *string `type:"string" required:"true"`
|
||
|
||
// The tags to be removed from the specified resource. Do not provide system
|
||
// tags. Required.
|
||
//
|
||
// TagKeys is a required field
|
||
TagKeys []*string `type:"list" required:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UntagResourceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UntagResourceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UntagResourceInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
|
||
if s.Arn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("Arn"))
|
||
}
|
||
if s.TagKeys == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetArn sets the Arn field's value.
|
||
func (s *UntagResourceInput) SetArn(v string) *UntagResourceInput {
|
||
s.Arn = &v
|
||
return s
|
||
}
|
||
|
||
// SetTagKeys sets the TagKeys field's value.
|
||
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
|
||
s.TagKeys = v
|
||
return s
|
||
}
|
||
|
||
type UntagResourceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UntagResourceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UntagResourceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateAddressBookInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the room to update.
|
||
//
|
||
// AddressBookArn is a required field
|
||
AddressBookArn *string `type:"string" required:"true"`
|
||
|
||
// The updated description of the room.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The updated name of the room.
|
||
Name *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateAddressBookInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateAddressBookInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateAddressBookInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateAddressBookInput"}
|
||
if s.AddressBookArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("AddressBookArn"))
|
||
}
|
||
if s.Description != nil && len(*s.Description) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||
}
|
||
if s.Name != nil && len(*s.Name) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddressBookArn sets the AddressBookArn field's value.
|
||
func (s *UpdateAddressBookInput) SetAddressBookArn(v string) *UpdateAddressBookInput {
|
||
s.AddressBookArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *UpdateAddressBookInput) SetDescription(v string) *UpdateAddressBookInput {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetName sets the Name field's value.
|
||
func (s *UpdateAddressBookInput) SetName(v string) *UpdateAddressBookInput {
|
||
s.Name = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateAddressBookOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateAddressBookOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateAddressBookOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateBusinessReportScheduleInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The format of the generated report (individual CSV files or zipped files
|
||
// of individual files).
|
||
Format *string `type:"string" enum:"BusinessReportFormat"`
|
||
|
||
// The recurrence of the reports.
|
||
Recurrence *BusinessReportRecurrence `type:"structure"`
|
||
|
||
// The S3 location of the output reports.
|
||
S3BucketName *string `type:"string"`
|
||
|
||
// The S3 key where the report is delivered.
|
||
S3KeyPrefix *string `type:"string"`
|
||
|
||
// The ARN of the business report schedule.
|
||
//
|
||
// ScheduleArn is a required field
|
||
ScheduleArn *string `type:"string" required:"true"`
|
||
|
||
// The name identifier of the schedule.
|
||
ScheduleName *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateBusinessReportScheduleInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateBusinessReportScheduleInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateBusinessReportScheduleInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateBusinessReportScheduleInput"}
|
||
if s.ScheduleArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ScheduleArn"))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetFormat sets the Format field's value.
|
||
func (s *UpdateBusinessReportScheduleInput) SetFormat(v string) *UpdateBusinessReportScheduleInput {
|
||
s.Format = &v
|
||
return s
|
||
}
|
||
|
||
// SetRecurrence sets the Recurrence field's value.
|
||
func (s *UpdateBusinessReportScheduleInput) SetRecurrence(v *BusinessReportRecurrence) *UpdateBusinessReportScheduleInput {
|
||
s.Recurrence = v
|
||
return s
|
||
}
|
||
|
||
// SetS3BucketName sets the S3BucketName field's value.
|
||
func (s *UpdateBusinessReportScheduleInput) SetS3BucketName(v string) *UpdateBusinessReportScheduleInput {
|
||
s.S3BucketName = &v
|
||
return s
|
||
}
|
||
|
||
// SetS3KeyPrefix sets the S3KeyPrefix field's value.
|
||
func (s *UpdateBusinessReportScheduleInput) SetS3KeyPrefix(v string) *UpdateBusinessReportScheduleInput {
|
||
s.S3KeyPrefix = &v
|
||
return s
|
||
}
|
||
|
||
// SetScheduleArn sets the ScheduleArn field's value.
|
||
func (s *UpdateBusinessReportScheduleInput) SetScheduleArn(v string) *UpdateBusinessReportScheduleInput {
|
||
s.ScheduleArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetScheduleName sets the ScheduleName field's value.
|
||
func (s *UpdateBusinessReportScheduleInput) SetScheduleName(v string) *UpdateBusinessReportScheduleInput {
|
||
s.ScheduleName = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateBusinessReportScheduleOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateBusinessReportScheduleOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateBusinessReportScheduleOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateConferenceProviderInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the conference provider.
|
||
//
|
||
// ConferenceProviderArn is a required field
|
||
ConferenceProviderArn *string `type:"string" required:"true"`
|
||
|
||
// The type of the conference provider.
|
||
//
|
||
// ConferenceProviderType is a required field
|
||
ConferenceProviderType *string `type:"string" required:"true" enum:"ConferenceProviderType"`
|
||
|
||
// The IP endpoint and protocol for calling.
|
||
IPDialIn *IPDialIn `type:"structure"`
|
||
|
||
// The meeting settings for the conference provider.
|
||
//
|
||
// MeetingSetting is a required field
|
||
MeetingSetting *MeetingSetting `type:"structure" required:"true"`
|
||
|
||
// The information for PSTN conferencing.
|
||
PSTNDialIn *PSTNDialIn `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateConferenceProviderInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateConferenceProviderInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateConferenceProviderInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateConferenceProviderInput"}
|
||
if s.ConferenceProviderArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferenceProviderArn"))
|
||
}
|
||
if s.ConferenceProviderType == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ConferenceProviderType"))
|
||
}
|
||
if s.MeetingSetting == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("MeetingSetting"))
|
||
}
|
||
if s.IPDialIn != nil {
|
||
if err := s.IPDialIn.Validate(); err != nil {
|
||
invalidParams.AddNested("IPDialIn", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
if s.MeetingSetting != nil {
|
||
if err := s.MeetingSetting.Validate(); err != nil {
|
||
invalidParams.AddNested("MeetingSetting", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
if s.PSTNDialIn != nil {
|
||
if err := s.PSTNDialIn.Validate(); err != nil {
|
||
invalidParams.AddNested("PSTNDialIn", err.(request.ErrInvalidParams))
|
||
}
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetConferenceProviderArn sets the ConferenceProviderArn field's value.
|
||
func (s *UpdateConferenceProviderInput) SetConferenceProviderArn(v string) *UpdateConferenceProviderInput {
|
||
s.ConferenceProviderArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetConferenceProviderType sets the ConferenceProviderType field's value.
|
||
func (s *UpdateConferenceProviderInput) SetConferenceProviderType(v string) *UpdateConferenceProviderInput {
|
||
s.ConferenceProviderType = &v
|
||
return s
|
||
}
|
||
|
||
// SetIPDialIn sets the IPDialIn field's value.
|
||
func (s *UpdateConferenceProviderInput) SetIPDialIn(v *IPDialIn) *UpdateConferenceProviderInput {
|
||
s.IPDialIn = v
|
||
return s
|
||
}
|
||
|
||
// SetMeetingSetting sets the MeetingSetting field's value.
|
||
func (s *UpdateConferenceProviderInput) SetMeetingSetting(v *MeetingSetting) *UpdateConferenceProviderInput {
|
||
s.MeetingSetting = v
|
||
return s
|
||
}
|
||
|
||
// SetPSTNDialIn sets the PSTNDialIn field's value.
|
||
func (s *UpdateConferenceProviderInput) SetPSTNDialIn(v *PSTNDialIn) *UpdateConferenceProviderInput {
|
||
s.PSTNDialIn = v
|
||
return s
|
||
}
|
||
|
||
type UpdateConferenceProviderOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateConferenceProviderOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateConferenceProviderOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateContactInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the contact to update.
|
||
//
|
||
// ContactArn is a required field
|
||
ContactArn *string `type:"string" required:"true"`
|
||
|
||
// The updated display name of the contact.
|
||
DisplayName *string `min:"1" type:"string"`
|
||
|
||
// The updated first name of the contact.
|
||
FirstName *string `min:"1" type:"string"`
|
||
|
||
// The updated last name of the contact.
|
||
LastName *string `min:"1" type:"string"`
|
||
|
||
// The updated phone number of the contact.
|
||
PhoneNumber *string `type:"string" sensitive:"true"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateContactInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateContactInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateContactInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateContactInput"}
|
||
if s.ContactArn == nil {
|
||
invalidParams.Add(request.NewErrParamRequired("ContactArn"))
|
||
}
|
||
if s.DisplayName != nil && len(*s.DisplayName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
|
||
}
|
||
if s.FirstName != nil && len(*s.FirstName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("FirstName", 1))
|
||
}
|
||
if s.LastName != nil && len(*s.LastName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("LastName", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetContactArn sets the ContactArn field's value.
|
||
func (s *UpdateContactInput) SetContactArn(v string) *UpdateContactInput {
|
||
s.ContactArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDisplayName sets the DisplayName field's value.
|
||
func (s *UpdateContactInput) SetDisplayName(v string) *UpdateContactInput {
|
||
s.DisplayName = &v
|
||
return s
|
||
}
|
||
|
||
// SetFirstName sets the FirstName field's value.
|
||
func (s *UpdateContactInput) SetFirstName(v string) *UpdateContactInput {
|
||
s.FirstName = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastName sets the LastName field's value.
|
||
func (s *UpdateContactInput) SetLastName(v string) *UpdateContactInput {
|
||
s.LastName = &v
|
||
return s
|
||
}
|
||
|
||
// SetPhoneNumber sets the PhoneNumber field's value.
|
||
func (s *UpdateContactInput) SetPhoneNumber(v string) *UpdateContactInput {
|
||
s.PhoneNumber = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateContactOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateContactOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateContactOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateDeviceInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The ARN of the device to update. Required.
|
||
DeviceArn *string `type:"string"`
|
||
|
||
// The updated device name. Required.
|
||
DeviceName *string `min:"2" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateDeviceInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateDeviceInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateDeviceInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateDeviceInput"}
|
||
if s.DeviceName != nil && len(*s.DeviceName) < 2 {
|
||
invalidParams.Add(request.NewErrParamMinLen("DeviceName", 2))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetDeviceArn sets the DeviceArn field's value.
|
||
func (s *UpdateDeviceInput) SetDeviceArn(v string) *UpdateDeviceInput {
|
||
s.DeviceArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetDeviceName sets the DeviceName field's value.
|
||
func (s *UpdateDeviceInput) SetDeviceName(v string) *UpdateDeviceInput {
|
||
s.DeviceName = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateDeviceOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateDeviceOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateDeviceOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateProfileInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The updated address for the room profile.
|
||
Address *string `min:"1" type:"string"`
|
||
|
||
// The updated distance unit for the room profile.
|
||
DistanceUnit *string `type:"string" enum:"DistanceUnit"`
|
||
|
||
// Sets the profile as default if selected. If this is missing, no update is
|
||
// done to the default status.
|
||
IsDefault *bool `type:"boolean"`
|
||
|
||
// The updated maximum volume limit for the room profile.
|
||
MaxVolumeLimit *int64 `type:"integer"`
|
||
|
||
// Whether the PSTN setting of the room profile is enabled.
|
||
PSTNEnabled *bool `type:"boolean"`
|
||
|
||
// The ARN of the room profile to update. Required.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The updated name for the room profile.
|
||
ProfileName *string `min:"1" type:"string"`
|
||
|
||
// Whether the setup mode of the profile is enabled.
|
||
SetupModeDisabled *bool `type:"boolean"`
|
||
|
||
// The updated temperature unit for the room profile.
|
||
TemperatureUnit *string `type:"string" enum:"TemperatureUnit"`
|
||
|
||
// The updated timezone for the room profile.
|
||
Timezone *string `min:"1" type:"string"`
|
||
|
||
// The updated wake word for the room profile.
|
||
WakeWord *string `type:"string" enum:"WakeWord"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateProfileInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateProfileInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateProfileInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateProfileInput"}
|
||
if s.Address != nil && len(*s.Address) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Address", 1))
|
||
}
|
||
if s.ProfileName != nil && len(*s.ProfileName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1))
|
||
}
|
||
if s.Timezone != nil && len(*s.Timezone) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Timezone", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetAddress sets the Address field's value.
|
||
func (s *UpdateProfileInput) SetAddress(v string) *UpdateProfileInput {
|
||
s.Address = &v
|
||
return s
|
||
}
|
||
|
||
// SetDistanceUnit sets the DistanceUnit field's value.
|
||
func (s *UpdateProfileInput) SetDistanceUnit(v string) *UpdateProfileInput {
|
||
s.DistanceUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetIsDefault sets the IsDefault field's value.
|
||
func (s *UpdateProfileInput) SetIsDefault(v bool) *UpdateProfileInput {
|
||
s.IsDefault = &v
|
||
return s
|
||
}
|
||
|
||
// SetMaxVolumeLimit sets the MaxVolumeLimit field's value.
|
||
func (s *UpdateProfileInput) SetMaxVolumeLimit(v int64) *UpdateProfileInput {
|
||
s.MaxVolumeLimit = &v
|
||
return s
|
||
}
|
||
|
||
// SetPSTNEnabled sets the PSTNEnabled field's value.
|
||
func (s *UpdateProfileInput) SetPSTNEnabled(v bool) *UpdateProfileInput {
|
||
s.PSTNEnabled = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *UpdateProfileInput) SetProfileArn(v string) *UpdateProfileInput {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileName sets the ProfileName field's value.
|
||
func (s *UpdateProfileInput) SetProfileName(v string) *UpdateProfileInput {
|
||
s.ProfileName = &v
|
||
return s
|
||
}
|
||
|
||
// SetSetupModeDisabled sets the SetupModeDisabled field's value.
|
||
func (s *UpdateProfileInput) SetSetupModeDisabled(v bool) *UpdateProfileInput {
|
||
s.SetupModeDisabled = &v
|
||
return s
|
||
}
|
||
|
||
// SetTemperatureUnit sets the TemperatureUnit field's value.
|
||
func (s *UpdateProfileInput) SetTemperatureUnit(v string) *UpdateProfileInput {
|
||
s.TemperatureUnit = &v
|
||
return s
|
||
}
|
||
|
||
// SetTimezone sets the Timezone field's value.
|
||
func (s *UpdateProfileInput) SetTimezone(v string) *UpdateProfileInput {
|
||
s.Timezone = &v
|
||
return s
|
||
}
|
||
|
||
// SetWakeWord sets the WakeWord field's value.
|
||
func (s *UpdateProfileInput) SetWakeWord(v string) *UpdateProfileInput {
|
||
s.WakeWord = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateProfileOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateProfileOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateProfileOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateRoomInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The updated description for the room.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The updated profile ARN for the room.
|
||
ProfileArn *string `type:"string"`
|
||
|
||
// The updated provider calendar ARN for the room.
|
||
ProviderCalendarId *string `type:"string"`
|
||
|
||
// The ARN of the room to update.
|
||
RoomArn *string `type:"string"`
|
||
|
||
// The updated name for the room.
|
||
RoomName *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateRoomInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateRoomInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateRoomInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateRoomInput"}
|
||
if s.Description != nil && len(*s.Description) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||
}
|
||
if s.RoomName != nil && len(*s.RoomName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("RoomName", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *UpdateRoomInput) SetDescription(v string) *UpdateRoomInput {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetProfileArn sets the ProfileArn field's value.
|
||
func (s *UpdateRoomInput) SetProfileArn(v string) *UpdateRoomInput {
|
||
s.ProfileArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetProviderCalendarId sets the ProviderCalendarId field's value.
|
||
func (s *UpdateRoomInput) SetProviderCalendarId(v string) *UpdateRoomInput {
|
||
s.ProviderCalendarId = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomArn sets the RoomArn field's value.
|
||
func (s *UpdateRoomInput) SetRoomArn(v string) *UpdateRoomInput {
|
||
s.RoomArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetRoomName sets the RoomName field's value.
|
||
func (s *UpdateRoomInput) SetRoomName(v string) *UpdateRoomInput {
|
||
s.RoomName = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateRoomOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateRoomOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateRoomOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
type UpdateSkillGroupInput struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The updated description for the skill group.
|
||
Description *string `min:"1" type:"string"`
|
||
|
||
// The ARN of the skill group to update.
|
||
SkillGroupArn *string `type:"string"`
|
||
|
||
// The updated name for the skill group.
|
||
SkillGroupName *string `min:"1" type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateSkillGroupInput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateSkillGroupInput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Validate inspects the fields of the type to determine if they are valid.
|
||
func (s *UpdateSkillGroupInput) Validate() error {
|
||
invalidParams := request.ErrInvalidParams{Context: "UpdateSkillGroupInput"}
|
||
if s.Description != nil && len(*s.Description) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||
}
|
||
if s.SkillGroupName != nil && len(*s.SkillGroupName) < 1 {
|
||
invalidParams.Add(request.NewErrParamMinLen("SkillGroupName", 1))
|
||
}
|
||
|
||
if invalidParams.Len() > 0 {
|
||
return invalidParams
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetDescription sets the Description field's value.
|
||
func (s *UpdateSkillGroupInput) SetDescription(v string) *UpdateSkillGroupInput {
|
||
s.Description = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupArn sets the SkillGroupArn field's value.
|
||
func (s *UpdateSkillGroupInput) SetSkillGroupArn(v string) *UpdateSkillGroupInput {
|
||
s.SkillGroupArn = &v
|
||
return s
|
||
}
|
||
|
||
// SetSkillGroupName sets the SkillGroupName field's value.
|
||
func (s *UpdateSkillGroupInput) SetSkillGroupName(v string) *UpdateSkillGroupInput {
|
||
s.SkillGroupName = &v
|
||
return s
|
||
}
|
||
|
||
type UpdateSkillGroupOutput struct {
|
||
_ struct{} `type:"structure"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UpdateSkillGroupOutput) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UpdateSkillGroupOutput) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// Information related to a user.
|
||
type UserData struct {
|
||
_ struct{} `type:"structure"`
|
||
|
||
// The email of a user.
|
||
Email *string `min:"1" type:"string"`
|
||
|
||
// The enrollment ARN of a user.
|
||
EnrollmentId *string `type:"string"`
|
||
|
||
// The enrollment status of a user.
|
||
EnrollmentStatus *string `type:"string" enum:"EnrollmentStatus"`
|
||
|
||
// The first name of a user.
|
||
FirstName *string `type:"string"`
|
||
|
||
// The last name of a user.
|
||
LastName *string `type:"string"`
|
||
|
||
// The ARN of a user.
|
||
UserArn *string `type:"string"`
|
||
}
|
||
|
||
// String returns the string representation
|
||
func (s UserData) String() string {
|
||
return awsutil.Prettify(s)
|
||
}
|
||
|
||
// GoString returns the string representation
|
||
func (s UserData) GoString() string {
|
||
return s.String()
|
||
}
|
||
|
||
// SetEmail sets the Email field's value.
|
||
func (s *UserData) SetEmail(v string) *UserData {
|
||
s.Email = &v
|
||
return s
|
||
}
|
||
|
||
// SetEnrollmentId sets the EnrollmentId field's value.
|
||
func (s *UserData) SetEnrollmentId(v string) *UserData {
|
||
s.EnrollmentId = &v
|
||
return s
|
||
}
|
||
|
||
// SetEnrollmentStatus sets the EnrollmentStatus field's value.
|
||
func (s *UserData) SetEnrollmentStatus(v string) *UserData {
|
||
s.EnrollmentStatus = &v
|
||
return s
|
||
}
|
||
|
||
// SetFirstName sets the FirstName field's value.
|
||
func (s *UserData) SetFirstName(v string) *UserData {
|
||
s.FirstName = &v
|
||
return s
|
||
}
|
||
|
||
// SetLastName sets the LastName field's value.
|
||
func (s *UserData) SetLastName(v string) *UserData {
|
||
s.LastName = &v
|
||
return s
|
||
}
|
||
|
||
// SetUserArn sets the UserArn field's value.
|
||
func (s *UserData) SetUserArn(v string) *UserData {
|
||
s.UserArn = &v
|
||
return s
|
||
}
|
||
|
||
const (
|
||
// BusinessReportFailureCodeAccessDenied is a BusinessReportFailureCode enum value
|
||
BusinessReportFailureCodeAccessDenied = "ACCESS_DENIED"
|
||
|
||
// BusinessReportFailureCodeNoSuchBucket is a BusinessReportFailureCode enum value
|
||
BusinessReportFailureCodeNoSuchBucket = "NO_SUCH_BUCKET"
|
||
|
||
// BusinessReportFailureCodeInternalFailure is a BusinessReportFailureCode enum value
|
||
BusinessReportFailureCodeInternalFailure = "INTERNAL_FAILURE"
|
||
)
|
||
|
||
const (
|
||
// BusinessReportFormatCsv is a BusinessReportFormat enum value
|
||
BusinessReportFormatCsv = "CSV"
|
||
|
||
// BusinessReportFormatCsvZip is a BusinessReportFormat enum value
|
||
BusinessReportFormatCsvZip = "CSV_ZIP"
|
||
)
|
||
|
||
const (
|
||
// BusinessReportIntervalOneDay is a BusinessReportInterval enum value
|
||
BusinessReportIntervalOneDay = "ONE_DAY"
|
||
|
||
// BusinessReportIntervalOneWeek is a BusinessReportInterval enum value
|
||
BusinessReportIntervalOneWeek = "ONE_WEEK"
|
||
)
|
||
|
||
const (
|
||
// BusinessReportStatusRunning is a BusinessReportStatus enum value
|
||
BusinessReportStatusRunning = "RUNNING"
|
||
|
||
// BusinessReportStatusSucceeded is a BusinessReportStatus enum value
|
||
BusinessReportStatusSucceeded = "SUCCEEDED"
|
||
|
||
// BusinessReportStatusFailed is a BusinessReportStatus enum value
|
||
BusinessReportStatusFailed = "FAILED"
|
||
)
|
||
|
||
const (
|
||
// CommsProtocolSip is a CommsProtocol enum value
|
||
CommsProtocolSip = "SIP"
|
||
|
||
// CommsProtocolSips is a CommsProtocol enum value
|
||
CommsProtocolSips = "SIPS"
|
||
|
||
// CommsProtocolH323 is a CommsProtocol enum value
|
||
CommsProtocolH323 = "H323"
|
||
)
|
||
|
||
const (
|
||
// ConferenceProviderTypeChime is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeChime = "CHIME"
|
||
|
||
// ConferenceProviderTypeBluejeans is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeBluejeans = "BLUEJEANS"
|
||
|
||
// ConferenceProviderTypeFuze is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeFuze = "FUZE"
|
||
|
||
// ConferenceProviderTypeGoogleHangouts is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeGoogleHangouts = "GOOGLE_HANGOUTS"
|
||
|
||
// ConferenceProviderTypePolycom is a ConferenceProviderType enum value
|
||
ConferenceProviderTypePolycom = "POLYCOM"
|
||
|
||
// ConferenceProviderTypeRingcentral is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeRingcentral = "RINGCENTRAL"
|
||
|
||
// ConferenceProviderTypeSkypeForBusiness is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeSkypeForBusiness = "SKYPE_FOR_BUSINESS"
|
||
|
||
// ConferenceProviderTypeWebex is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeWebex = "WEBEX"
|
||
|
||
// ConferenceProviderTypeZoom is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeZoom = "ZOOM"
|
||
|
||
// ConferenceProviderTypeCustom is a ConferenceProviderType enum value
|
||
ConferenceProviderTypeCustom = "CUSTOM"
|
||
)
|
||
|
||
const (
|
||
// ConnectionStatusOnline is a ConnectionStatus enum value
|
||
ConnectionStatusOnline = "ONLINE"
|
||
|
||
// ConnectionStatusOffline is a ConnectionStatus enum value
|
||
ConnectionStatusOffline = "OFFLINE"
|
||
)
|
||
|
||
const (
|
||
// DeviceEventTypeConnectionStatus is a DeviceEventType enum value
|
||
DeviceEventTypeConnectionStatus = "CONNECTION_STATUS"
|
||
|
||
// DeviceEventTypeDeviceStatus is a DeviceEventType enum value
|
||
DeviceEventTypeDeviceStatus = "DEVICE_STATUS"
|
||
)
|
||
|
||
const (
|
||
// DeviceStatusReady is a DeviceStatus enum value
|
||
DeviceStatusReady = "READY"
|
||
|
||
// DeviceStatusPending is a DeviceStatus enum value
|
||
DeviceStatusPending = "PENDING"
|
||
|
||
// DeviceStatusWasOffline is a DeviceStatus enum value
|
||
DeviceStatusWasOffline = "WAS_OFFLINE"
|
||
|
||
// DeviceStatusDeregistered is a DeviceStatus enum value
|
||
DeviceStatusDeregistered = "DEREGISTERED"
|
||
)
|
||
|
||
const (
|
||
// DeviceStatusDetailCodeDeviceSoftwareUpdateNeeded is a DeviceStatusDetailCode enum value
|
||
DeviceStatusDetailCodeDeviceSoftwareUpdateNeeded = "DEVICE_SOFTWARE_UPDATE_NEEDED"
|
||
|
||
// DeviceStatusDetailCodeDeviceWasOffline is a DeviceStatusDetailCode enum value
|
||
DeviceStatusDetailCodeDeviceWasOffline = "DEVICE_WAS_OFFLINE"
|
||
)
|
||
|
||
const (
|
||
// DistanceUnitMetric is a DistanceUnit enum value
|
||
DistanceUnitMetric = "METRIC"
|
||
|
||
// DistanceUnitImperial is a DistanceUnit enum value
|
||
DistanceUnitImperial = "IMPERIAL"
|
||
)
|
||
|
||
const (
|
||
// EnablementTypeEnabled is a EnablementType enum value
|
||
EnablementTypeEnabled = "ENABLED"
|
||
|
||
// EnablementTypePending is a EnablementType enum value
|
||
EnablementTypePending = "PENDING"
|
||
)
|
||
|
||
const (
|
||
// EnablementTypeFilterEnabled is a EnablementTypeFilter enum value
|
||
EnablementTypeFilterEnabled = "ENABLED"
|
||
|
||
// EnablementTypeFilterPending is a EnablementTypeFilter enum value
|
||
EnablementTypeFilterPending = "PENDING"
|
||
)
|
||
|
||
const (
|
||
// EnrollmentStatusInitialized is a EnrollmentStatus enum value
|
||
EnrollmentStatusInitialized = "INITIALIZED"
|
||
|
||
// EnrollmentStatusPending is a EnrollmentStatus enum value
|
||
EnrollmentStatusPending = "PENDING"
|
||
|
||
// EnrollmentStatusRegistered is a EnrollmentStatus enum value
|
||
EnrollmentStatusRegistered = "REGISTERED"
|
||
|
||
// EnrollmentStatusDisassociating is a EnrollmentStatus enum value
|
||
EnrollmentStatusDisassociating = "DISASSOCIATING"
|
||
|
||
// EnrollmentStatusDeregistering is a EnrollmentStatus enum value
|
||
EnrollmentStatusDeregistering = "DEREGISTERING"
|
||
)
|
||
|
||
const (
|
||
// FeatureBluetooth is a Feature enum value
|
||
FeatureBluetooth = "BLUETOOTH"
|
||
|
||
// FeatureVolume is a Feature enum value
|
||
FeatureVolume = "VOLUME"
|
||
|
||
// FeatureNotifications is a Feature enum value
|
||
FeatureNotifications = "NOTIFICATIONS"
|
||
|
||
// FeatureLists is a Feature enum value
|
||
FeatureLists = "LISTS"
|
||
|
||
// FeatureSkills is a Feature enum value
|
||
FeatureSkills = "SKILLS"
|
||
|
||
// FeatureAll is a Feature enum value
|
||
FeatureAll = "ALL"
|
||
)
|
||
|
||
const (
|
||
// RequirePinYes is a RequirePin enum value
|
||
RequirePinYes = "YES"
|
||
|
||
// RequirePinNo is a RequirePin enum value
|
||
RequirePinNo = "NO"
|
||
|
||
// RequirePinOptional is a RequirePin enum value
|
||
RequirePinOptional = "OPTIONAL"
|
||
)
|
||
|
||
const (
|
||
// SkillTypePublic is a SkillType enum value
|
||
SkillTypePublic = "PUBLIC"
|
||
|
||
// SkillTypePrivate is a SkillType enum value
|
||
SkillTypePrivate = "PRIVATE"
|
||
)
|
||
|
||
const (
|
||
// SkillTypeFilterPublic is a SkillTypeFilter enum value
|
||
SkillTypeFilterPublic = "PUBLIC"
|
||
|
||
// SkillTypeFilterPrivate is a SkillTypeFilter enum value
|
||
SkillTypeFilterPrivate = "PRIVATE"
|
||
|
||
// SkillTypeFilterAll is a SkillTypeFilter enum value
|
||
SkillTypeFilterAll = "ALL"
|
||
)
|
||
|
||
const (
|
||
// SortValueAsc is a SortValue enum value
|
||
SortValueAsc = "ASC"
|
||
|
||
// SortValueDesc is a SortValue enum value
|
||
SortValueDesc = "DESC"
|
||
)
|
||
|
||
const (
|
||
// TemperatureUnitFahrenheit is a TemperatureUnit enum value
|
||
TemperatureUnitFahrenheit = "FAHRENHEIT"
|
||
|
||
// TemperatureUnitCelsius is a TemperatureUnit enum value
|
||
TemperatureUnitCelsius = "CELSIUS"
|
||
)
|
||
|
||
const (
|
||
// WakeWordAlexa is a WakeWord enum value
|
||
WakeWordAlexa = "ALEXA"
|
||
|
||
// WakeWordAmazon is a WakeWord enum value
|
||
WakeWordAmazon = "AMAZON"
|
||
|
||
// WakeWordEcho is a WakeWord enum value
|
||
WakeWordEcho = "ECHO"
|
||
|
||
// WakeWordComputer is a WakeWord enum value
|
||
WakeWordComputer = "COMPUTER"
|
||
)
|