github.com/aavshr/aws-sdk-go@v1.41.3/service/voiceid/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package voiceid
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  
     9  	"github.com/aavshr/aws-sdk-go/aws"
    10  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    11  	"github.com/aavshr/aws-sdk-go/aws/request"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol"
    13  	"github.com/aavshr/aws-sdk-go/private/protocol/jsonrpc"
    14  )
    15  
    16  const opCreateDomain = "CreateDomain"
    17  
    18  // CreateDomainRequest generates a "aws/request.Request" representing the
    19  // client's request for the CreateDomain operation. The "output" return
    20  // value will be populated with the request's response once the request completes
    21  // successfully.
    22  //
    23  // Use "Send" method on the returned Request to send the API call to the service.
    24  // the "output" return value is not valid until after Send returns without error.
    25  //
    26  // See CreateDomain for more information on using the CreateDomain
    27  // API call, and error handling.
    28  //
    29  // This method is useful when you want to inject custom logic or configuration
    30  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
    31  //
    32  //
    33  //    // Example sending a request using the CreateDomainRequest method.
    34  //    req, resp := client.CreateDomainRequest(params)
    35  //
    36  //    err := req.Send()
    37  //    if err == nil { // resp is now filled
    38  //        fmt.Println(resp)
    39  //    }
    40  //
    41  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/CreateDomain
    42  func (c *VoiceID) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
    43  	op := &request.Operation{
    44  		Name:       opCreateDomain,
    45  		HTTPMethod: "POST",
    46  		HTTPPath:   "/",
    47  	}
    48  
    49  	if input == nil {
    50  		input = &CreateDomainInput{}
    51  	}
    52  
    53  	output = &CreateDomainOutput{}
    54  	req = c.newRequest(op, input, output)
    55  	return
    56  }
    57  
    58  // CreateDomain API operation for Amazon Voice ID.
    59  //
    60  // Creates a domain that contains all Amazon Connect Voice ID data, such as
    61  // speakers, fraudsters, customer audio, and voiceprints.
    62  //
    63  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    64  // with awserr.Error's Code and Message methods to get detailed information about
    65  // the error.
    66  //
    67  // See the AWS API reference guide for Amazon Voice ID's
    68  // API operation CreateDomain for usage and error information.
    69  //
    70  // Returned Error Types:
    71  //   * ServiceQuotaExceededException
    72  //   The request exceeded the service quota. Refer to Voice ID Service Quotas
    73  //   (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas)
    74  //   and try your request again.
    75  //
    76  //   * ResourceNotFoundException
    77  //   The specified resource cannot be found. Check the ResourceType and error
    78  //   message for more details.
    79  //
    80  //   * ValidationException
    81  //   The request failed one or more validations; check the error message for more
    82  //   details.
    83  //
    84  //   * ConflictException
    85  //   The request failed due to a conflict. Check the ConflictType and error message
    86  //   for more details.
    87  //
    88  //   * InternalServerException
    89  //   The request failed due to an unknown error on the server side.
    90  //
    91  //   * ThrottlingException
    92  //   The request was denied due to request throttling. Please slow down your request
    93  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
    94  //   and try your request again.
    95  //
    96  //   * AccessDeniedException
    97  //   You do not have sufficient permissions to perform this action. Check the
    98  //   error message and try again.
    99  //
   100  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/CreateDomain
   101  func (c *VoiceID) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
   102  	req, out := c.CreateDomainRequest(input)
   103  	return out, req.Send()
   104  }
   105  
   106  // CreateDomainWithContext is the same as CreateDomain with the addition of
   107  // the ability to pass a context and additional request options.
   108  //
   109  // See CreateDomain for details on how to use this API operation.
   110  //
   111  // The context must be non-nil and will be used for request cancellation. If
   112  // the context is nil a panic will occur. In the future the SDK may create
   113  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   114  // for more information on using Contexts.
   115  func (c *VoiceID) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error) {
   116  	req, out := c.CreateDomainRequest(input)
   117  	req.SetContext(ctx)
   118  	req.ApplyOptions(opts...)
   119  	return out, req.Send()
   120  }
   121  
   122  const opDeleteDomain = "DeleteDomain"
   123  
   124  // DeleteDomainRequest generates a "aws/request.Request" representing the
   125  // client's request for the DeleteDomain operation. The "output" return
   126  // value will be populated with the request's response once the request completes
   127  // successfully.
   128  //
   129  // Use "Send" method on the returned Request to send the API call to the service.
   130  // the "output" return value is not valid until after Send returns without error.
   131  //
   132  // See DeleteDomain for more information on using the DeleteDomain
   133  // API call, and error handling.
   134  //
   135  // This method is useful when you want to inject custom logic or configuration
   136  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   137  //
   138  //
   139  //    // Example sending a request using the DeleteDomainRequest method.
   140  //    req, resp := client.DeleteDomainRequest(params)
   141  //
   142  //    err := req.Send()
   143  //    if err == nil { // resp is now filled
   144  //        fmt.Println(resp)
   145  //    }
   146  //
   147  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteDomain
   148  func (c *VoiceID) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
   149  	op := &request.Operation{
   150  		Name:       opDeleteDomain,
   151  		HTTPMethod: "POST",
   152  		HTTPPath:   "/",
   153  	}
   154  
   155  	if input == nil {
   156  		input = &DeleteDomainInput{}
   157  	}
   158  
   159  	output = &DeleteDomainOutput{}
   160  	req = c.newRequest(op, input, output)
   161  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   162  	return
   163  }
   164  
   165  // DeleteDomain API operation for Amazon Voice ID.
   166  //
   167  // Deletes the specified domain from the Amazon Connect Voice ID system.
   168  //
   169  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   170  // with awserr.Error's Code and Message methods to get detailed information about
   171  // the error.
   172  //
   173  // See the AWS API reference guide for Amazon Voice ID's
   174  // API operation DeleteDomain for usage and error information.
   175  //
   176  // Returned Error Types:
   177  //   * ResourceNotFoundException
   178  //   The specified resource cannot be found. Check the ResourceType and error
   179  //   message for more details.
   180  //
   181  //   * ValidationException
   182  //   The request failed one or more validations; check the error message for more
   183  //   details.
   184  //
   185  //   * ConflictException
   186  //   The request failed due to a conflict. Check the ConflictType and error message
   187  //   for more details.
   188  //
   189  //   * InternalServerException
   190  //   The request failed due to an unknown error on the server side.
   191  //
   192  //   * ThrottlingException
   193  //   The request was denied due to request throttling. Please slow down your request
   194  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   195  //   and try your request again.
   196  //
   197  //   * AccessDeniedException
   198  //   You do not have sufficient permissions to perform this action. Check the
   199  //   error message and try again.
   200  //
   201  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteDomain
   202  func (c *VoiceID) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
   203  	req, out := c.DeleteDomainRequest(input)
   204  	return out, req.Send()
   205  }
   206  
   207  // DeleteDomainWithContext is the same as DeleteDomain with the addition of
   208  // the ability to pass a context and additional request options.
   209  //
   210  // See DeleteDomain for details on how to use this API operation.
   211  //
   212  // The context must be non-nil and will be used for request cancellation. If
   213  // the context is nil a panic will occur. In the future the SDK may create
   214  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   215  // for more information on using Contexts.
   216  func (c *VoiceID) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) {
   217  	req, out := c.DeleteDomainRequest(input)
   218  	req.SetContext(ctx)
   219  	req.ApplyOptions(opts...)
   220  	return out, req.Send()
   221  }
   222  
   223  const opDeleteFraudster = "DeleteFraudster"
   224  
   225  // DeleteFraudsterRequest generates a "aws/request.Request" representing the
   226  // client's request for the DeleteFraudster operation. The "output" return
   227  // value will be populated with the request's response once the request completes
   228  // successfully.
   229  //
   230  // Use "Send" method on the returned Request to send the API call to the service.
   231  // the "output" return value is not valid until after Send returns without error.
   232  //
   233  // See DeleteFraudster for more information on using the DeleteFraudster
   234  // API call, and error handling.
   235  //
   236  // This method is useful when you want to inject custom logic or configuration
   237  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   238  //
   239  //
   240  //    // Example sending a request using the DeleteFraudsterRequest method.
   241  //    req, resp := client.DeleteFraudsterRequest(params)
   242  //
   243  //    err := req.Send()
   244  //    if err == nil { // resp is now filled
   245  //        fmt.Println(resp)
   246  //    }
   247  //
   248  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteFraudster
   249  func (c *VoiceID) DeleteFraudsterRequest(input *DeleteFraudsterInput) (req *request.Request, output *DeleteFraudsterOutput) {
   250  	op := &request.Operation{
   251  		Name:       opDeleteFraudster,
   252  		HTTPMethod: "POST",
   253  		HTTPPath:   "/",
   254  	}
   255  
   256  	if input == nil {
   257  		input = &DeleteFraudsterInput{}
   258  	}
   259  
   260  	output = &DeleteFraudsterOutput{}
   261  	req = c.newRequest(op, input, output)
   262  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   263  	return
   264  }
   265  
   266  // DeleteFraudster API operation for Amazon Voice ID.
   267  //
   268  // Deletes the specified fraudster from the Amazon Connect Voice ID system.
   269  //
   270  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   271  // with awserr.Error's Code and Message methods to get detailed information about
   272  // the error.
   273  //
   274  // See the AWS API reference guide for Amazon Voice ID's
   275  // API operation DeleteFraudster for usage and error information.
   276  //
   277  // Returned Error Types:
   278  //   * ResourceNotFoundException
   279  //   The specified resource cannot be found. Check the ResourceType and error
   280  //   message for more details.
   281  //
   282  //   * ValidationException
   283  //   The request failed one or more validations; check the error message for more
   284  //   details.
   285  //
   286  //   * InternalServerException
   287  //   The request failed due to an unknown error on the server side.
   288  //
   289  //   * ThrottlingException
   290  //   The request was denied due to request throttling. Please slow down your request
   291  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   292  //   and try your request again.
   293  //
   294  //   * AccessDeniedException
   295  //   You do not have sufficient permissions to perform this action. Check the
   296  //   error message and try again.
   297  //
   298  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteFraudster
   299  func (c *VoiceID) DeleteFraudster(input *DeleteFraudsterInput) (*DeleteFraudsterOutput, error) {
   300  	req, out := c.DeleteFraudsterRequest(input)
   301  	return out, req.Send()
   302  }
   303  
   304  // DeleteFraudsterWithContext is the same as DeleteFraudster with the addition of
   305  // the ability to pass a context and additional request options.
   306  //
   307  // See DeleteFraudster for details on how to use this API operation.
   308  //
   309  // The context must be non-nil and will be used for request cancellation. If
   310  // the context is nil a panic will occur. In the future the SDK may create
   311  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   312  // for more information on using Contexts.
   313  func (c *VoiceID) DeleteFraudsterWithContext(ctx aws.Context, input *DeleteFraudsterInput, opts ...request.Option) (*DeleteFraudsterOutput, error) {
   314  	req, out := c.DeleteFraudsterRequest(input)
   315  	req.SetContext(ctx)
   316  	req.ApplyOptions(opts...)
   317  	return out, req.Send()
   318  }
   319  
   320  const opDeleteSpeaker = "DeleteSpeaker"
   321  
   322  // DeleteSpeakerRequest generates a "aws/request.Request" representing the
   323  // client's request for the DeleteSpeaker operation. The "output" return
   324  // value will be populated with the request's response once the request completes
   325  // successfully.
   326  //
   327  // Use "Send" method on the returned Request to send the API call to the service.
   328  // the "output" return value is not valid until after Send returns without error.
   329  //
   330  // See DeleteSpeaker for more information on using the DeleteSpeaker
   331  // API call, and error handling.
   332  //
   333  // This method is useful when you want to inject custom logic or configuration
   334  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   335  //
   336  //
   337  //    // Example sending a request using the DeleteSpeakerRequest method.
   338  //    req, resp := client.DeleteSpeakerRequest(params)
   339  //
   340  //    err := req.Send()
   341  //    if err == nil { // resp is now filled
   342  //        fmt.Println(resp)
   343  //    }
   344  //
   345  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteSpeaker
   346  func (c *VoiceID) DeleteSpeakerRequest(input *DeleteSpeakerInput) (req *request.Request, output *DeleteSpeakerOutput) {
   347  	op := &request.Operation{
   348  		Name:       opDeleteSpeaker,
   349  		HTTPMethod: "POST",
   350  		HTTPPath:   "/",
   351  	}
   352  
   353  	if input == nil {
   354  		input = &DeleteSpeakerInput{}
   355  	}
   356  
   357  	output = &DeleteSpeakerOutput{}
   358  	req = c.newRequest(op, input, output)
   359  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   360  	return
   361  }
   362  
   363  // DeleteSpeaker API operation for Amazon Voice ID.
   364  //
   365  // Deletes the specified speaker from the Amazon Connect Voice ID system.
   366  //
   367  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   368  // with awserr.Error's Code and Message methods to get detailed information about
   369  // the error.
   370  //
   371  // See the AWS API reference guide for Amazon Voice ID's
   372  // API operation DeleteSpeaker for usage and error information.
   373  //
   374  // Returned Error Types:
   375  //   * ResourceNotFoundException
   376  //   The specified resource cannot be found. Check the ResourceType and error
   377  //   message for more details.
   378  //
   379  //   * ValidationException
   380  //   The request failed one or more validations; check the error message for more
   381  //   details.
   382  //
   383  //   * ConflictException
   384  //   The request failed due to a conflict. Check the ConflictType and error message
   385  //   for more details.
   386  //
   387  //   * InternalServerException
   388  //   The request failed due to an unknown error on the server side.
   389  //
   390  //   * ThrottlingException
   391  //   The request was denied due to request throttling. Please slow down your request
   392  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   393  //   and try your request again.
   394  //
   395  //   * AccessDeniedException
   396  //   You do not have sufficient permissions to perform this action. Check the
   397  //   error message and try again.
   398  //
   399  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteSpeaker
   400  func (c *VoiceID) DeleteSpeaker(input *DeleteSpeakerInput) (*DeleteSpeakerOutput, error) {
   401  	req, out := c.DeleteSpeakerRequest(input)
   402  	return out, req.Send()
   403  }
   404  
   405  // DeleteSpeakerWithContext is the same as DeleteSpeaker with the addition of
   406  // the ability to pass a context and additional request options.
   407  //
   408  // See DeleteSpeaker for details on how to use this API operation.
   409  //
   410  // The context must be non-nil and will be used for request cancellation. If
   411  // the context is nil a panic will occur. In the future the SDK may create
   412  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   413  // for more information on using Contexts.
   414  func (c *VoiceID) DeleteSpeakerWithContext(ctx aws.Context, input *DeleteSpeakerInput, opts ...request.Option) (*DeleteSpeakerOutput, error) {
   415  	req, out := c.DeleteSpeakerRequest(input)
   416  	req.SetContext(ctx)
   417  	req.ApplyOptions(opts...)
   418  	return out, req.Send()
   419  }
   420  
   421  const opDescribeDomain = "DescribeDomain"
   422  
   423  // DescribeDomainRequest generates a "aws/request.Request" representing the
   424  // client's request for the DescribeDomain operation. The "output" return
   425  // value will be populated with the request's response once the request completes
   426  // successfully.
   427  //
   428  // Use "Send" method on the returned Request to send the API call to the service.
   429  // the "output" return value is not valid until after Send returns without error.
   430  //
   431  // See DescribeDomain for more information on using the DescribeDomain
   432  // API call, and error handling.
   433  //
   434  // This method is useful when you want to inject custom logic or configuration
   435  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   436  //
   437  //
   438  //    // Example sending a request using the DescribeDomainRequest method.
   439  //    req, resp := client.DescribeDomainRequest(params)
   440  //
   441  //    err := req.Send()
   442  //    if err == nil { // resp is now filled
   443  //        fmt.Println(resp)
   444  //    }
   445  //
   446  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeDomain
   447  func (c *VoiceID) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) {
   448  	op := &request.Operation{
   449  		Name:       opDescribeDomain,
   450  		HTTPMethod: "POST",
   451  		HTTPPath:   "/",
   452  	}
   453  
   454  	if input == nil {
   455  		input = &DescribeDomainInput{}
   456  	}
   457  
   458  	output = &DescribeDomainOutput{}
   459  	req = c.newRequest(op, input, output)
   460  	return
   461  }
   462  
   463  // DescribeDomain API operation for Amazon Voice ID.
   464  //
   465  // Describes the specified domain.
   466  //
   467  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   468  // with awserr.Error's Code and Message methods to get detailed information about
   469  // the error.
   470  //
   471  // See the AWS API reference guide for Amazon Voice ID's
   472  // API operation DescribeDomain for usage and error information.
   473  //
   474  // Returned Error Types:
   475  //   * ResourceNotFoundException
   476  //   The specified resource cannot be found. Check the ResourceType and error
   477  //   message for more details.
   478  //
   479  //   * ValidationException
   480  //   The request failed one or more validations; check the error message for more
   481  //   details.
   482  //
   483  //   * InternalServerException
   484  //   The request failed due to an unknown error on the server side.
   485  //
   486  //   * ThrottlingException
   487  //   The request was denied due to request throttling. Please slow down your request
   488  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   489  //   and try your request again.
   490  //
   491  //   * AccessDeniedException
   492  //   You do not have sufficient permissions to perform this action. Check the
   493  //   error message and try again.
   494  //
   495  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeDomain
   496  func (c *VoiceID) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) {
   497  	req, out := c.DescribeDomainRequest(input)
   498  	return out, req.Send()
   499  }
   500  
   501  // DescribeDomainWithContext is the same as DescribeDomain with the addition of
   502  // the ability to pass a context and additional request options.
   503  //
   504  // See DescribeDomain for details on how to use this API operation.
   505  //
   506  // The context must be non-nil and will be used for request cancellation. If
   507  // the context is nil a panic will occur. In the future the SDK may create
   508  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   509  // for more information on using Contexts.
   510  func (c *VoiceID) DescribeDomainWithContext(ctx aws.Context, input *DescribeDomainInput, opts ...request.Option) (*DescribeDomainOutput, error) {
   511  	req, out := c.DescribeDomainRequest(input)
   512  	req.SetContext(ctx)
   513  	req.ApplyOptions(opts...)
   514  	return out, req.Send()
   515  }
   516  
   517  const opDescribeFraudster = "DescribeFraudster"
   518  
   519  // DescribeFraudsterRequest generates a "aws/request.Request" representing the
   520  // client's request for the DescribeFraudster operation. The "output" return
   521  // value will be populated with the request's response once the request completes
   522  // successfully.
   523  //
   524  // Use "Send" method on the returned Request to send the API call to the service.
   525  // the "output" return value is not valid until after Send returns without error.
   526  //
   527  // See DescribeFraudster for more information on using the DescribeFraudster
   528  // API call, and error handling.
   529  //
   530  // This method is useful when you want to inject custom logic or configuration
   531  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   532  //
   533  //
   534  //    // Example sending a request using the DescribeFraudsterRequest method.
   535  //    req, resp := client.DescribeFraudsterRequest(params)
   536  //
   537  //    err := req.Send()
   538  //    if err == nil { // resp is now filled
   539  //        fmt.Println(resp)
   540  //    }
   541  //
   542  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeFraudster
   543  func (c *VoiceID) DescribeFraudsterRequest(input *DescribeFraudsterInput) (req *request.Request, output *DescribeFraudsterOutput) {
   544  	op := &request.Operation{
   545  		Name:       opDescribeFraudster,
   546  		HTTPMethod: "POST",
   547  		HTTPPath:   "/",
   548  	}
   549  
   550  	if input == nil {
   551  		input = &DescribeFraudsterInput{}
   552  	}
   553  
   554  	output = &DescribeFraudsterOutput{}
   555  	req = c.newRequest(op, input, output)
   556  	return
   557  }
   558  
   559  // DescribeFraudster API operation for Amazon Voice ID.
   560  //
   561  // Describes the specified fraudster.
   562  //
   563  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   564  // with awserr.Error's Code and Message methods to get detailed information about
   565  // the error.
   566  //
   567  // See the AWS API reference guide for Amazon Voice ID's
   568  // API operation DescribeFraudster for usage and error information.
   569  //
   570  // Returned Error Types:
   571  //   * ResourceNotFoundException
   572  //   The specified resource cannot be found. Check the ResourceType and error
   573  //   message for more details.
   574  //
   575  //   * ValidationException
   576  //   The request failed one or more validations; check the error message for more
   577  //   details.
   578  //
   579  //   * InternalServerException
   580  //   The request failed due to an unknown error on the server side.
   581  //
   582  //   * ThrottlingException
   583  //   The request was denied due to request throttling. Please slow down your request
   584  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   585  //   and try your request again.
   586  //
   587  //   * AccessDeniedException
   588  //   You do not have sufficient permissions to perform this action. Check the
   589  //   error message and try again.
   590  //
   591  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeFraudster
   592  func (c *VoiceID) DescribeFraudster(input *DescribeFraudsterInput) (*DescribeFraudsterOutput, error) {
   593  	req, out := c.DescribeFraudsterRequest(input)
   594  	return out, req.Send()
   595  }
   596  
   597  // DescribeFraudsterWithContext is the same as DescribeFraudster with the addition of
   598  // the ability to pass a context and additional request options.
   599  //
   600  // See DescribeFraudster for details on how to use this API operation.
   601  //
   602  // The context must be non-nil and will be used for request cancellation. If
   603  // the context is nil a panic will occur. In the future the SDK may create
   604  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   605  // for more information on using Contexts.
   606  func (c *VoiceID) DescribeFraudsterWithContext(ctx aws.Context, input *DescribeFraudsterInput, opts ...request.Option) (*DescribeFraudsterOutput, error) {
   607  	req, out := c.DescribeFraudsterRequest(input)
   608  	req.SetContext(ctx)
   609  	req.ApplyOptions(opts...)
   610  	return out, req.Send()
   611  }
   612  
   613  const opDescribeFraudsterRegistrationJob = "DescribeFraudsterRegistrationJob"
   614  
   615  // DescribeFraudsterRegistrationJobRequest generates a "aws/request.Request" representing the
   616  // client's request for the DescribeFraudsterRegistrationJob operation. The "output" return
   617  // value will be populated with the request's response once the request completes
   618  // successfully.
   619  //
   620  // Use "Send" method on the returned Request to send the API call to the service.
   621  // the "output" return value is not valid until after Send returns without error.
   622  //
   623  // See DescribeFraudsterRegistrationJob for more information on using the DescribeFraudsterRegistrationJob
   624  // API call, and error handling.
   625  //
   626  // This method is useful when you want to inject custom logic or configuration
   627  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   628  //
   629  //
   630  //    // Example sending a request using the DescribeFraudsterRegistrationJobRequest method.
   631  //    req, resp := client.DescribeFraudsterRegistrationJobRequest(params)
   632  //
   633  //    err := req.Send()
   634  //    if err == nil { // resp is now filled
   635  //        fmt.Println(resp)
   636  //    }
   637  //
   638  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeFraudsterRegistrationJob
   639  func (c *VoiceID) DescribeFraudsterRegistrationJobRequest(input *DescribeFraudsterRegistrationJobInput) (req *request.Request, output *DescribeFraudsterRegistrationJobOutput) {
   640  	op := &request.Operation{
   641  		Name:       opDescribeFraudsterRegistrationJob,
   642  		HTTPMethod: "POST",
   643  		HTTPPath:   "/",
   644  	}
   645  
   646  	if input == nil {
   647  		input = &DescribeFraudsterRegistrationJobInput{}
   648  	}
   649  
   650  	output = &DescribeFraudsterRegistrationJobOutput{}
   651  	req = c.newRequest(op, input, output)
   652  	return
   653  }
   654  
   655  // DescribeFraudsterRegistrationJob API operation for Amazon Voice ID.
   656  //
   657  // Describes the specified fraudster registration job.
   658  //
   659  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   660  // with awserr.Error's Code and Message methods to get detailed information about
   661  // the error.
   662  //
   663  // See the AWS API reference guide for Amazon Voice ID's
   664  // API operation DescribeFraudsterRegistrationJob for usage and error information.
   665  //
   666  // Returned Error Types:
   667  //   * ResourceNotFoundException
   668  //   The specified resource cannot be found. Check the ResourceType and error
   669  //   message for more details.
   670  //
   671  //   * ValidationException
   672  //   The request failed one or more validations; check the error message for more
   673  //   details.
   674  //
   675  //   * InternalServerException
   676  //   The request failed due to an unknown error on the server side.
   677  //
   678  //   * ThrottlingException
   679  //   The request was denied due to request throttling. Please slow down your request
   680  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   681  //   and try your request again.
   682  //
   683  //   * AccessDeniedException
   684  //   You do not have sufficient permissions to perform this action. Check the
   685  //   error message and try again.
   686  //
   687  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeFraudsterRegistrationJob
   688  func (c *VoiceID) DescribeFraudsterRegistrationJob(input *DescribeFraudsterRegistrationJobInput) (*DescribeFraudsterRegistrationJobOutput, error) {
   689  	req, out := c.DescribeFraudsterRegistrationJobRequest(input)
   690  	return out, req.Send()
   691  }
   692  
   693  // DescribeFraudsterRegistrationJobWithContext is the same as DescribeFraudsterRegistrationJob with the addition of
   694  // the ability to pass a context and additional request options.
   695  //
   696  // See DescribeFraudsterRegistrationJob for details on how to use this API operation.
   697  //
   698  // The context must be non-nil and will be used for request cancellation. If
   699  // the context is nil a panic will occur. In the future the SDK may create
   700  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   701  // for more information on using Contexts.
   702  func (c *VoiceID) DescribeFraudsterRegistrationJobWithContext(ctx aws.Context, input *DescribeFraudsterRegistrationJobInput, opts ...request.Option) (*DescribeFraudsterRegistrationJobOutput, error) {
   703  	req, out := c.DescribeFraudsterRegistrationJobRequest(input)
   704  	req.SetContext(ctx)
   705  	req.ApplyOptions(opts...)
   706  	return out, req.Send()
   707  }
   708  
   709  const opDescribeSpeaker = "DescribeSpeaker"
   710  
   711  // DescribeSpeakerRequest generates a "aws/request.Request" representing the
   712  // client's request for the DescribeSpeaker operation. The "output" return
   713  // value will be populated with the request's response once the request completes
   714  // successfully.
   715  //
   716  // Use "Send" method on the returned Request to send the API call to the service.
   717  // the "output" return value is not valid until after Send returns without error.
   718  //
   719  // See DescribeSpeaker for more information on using the DescribeSpeaker
   720  // API call, and error handling.
   721  //
   722  // This method is useful when you want to inject custom logic or configuration
   723  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   724  //
   725  //
   726  //    // Example sending a request using the DescribeSpeakerRequest method.
   727  //    req, resp := client.DescribeSpeakerRequest(params)
   728  //
   729  //    err := req.Send()
   730  //    if err == nil { // resp is now filled
   731  //        fmt.Println(resp)
   732  //    }
   733  //
   734  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeSpeaker
   735  func (c *VoiceID) DescribeSpeakerRequest(input *DescribeSpeakerInput) (req *request.Request, output *DescribeSpeakerOutput) {
   736  	op := &request.Operation{
   737  		Name:       opDescribeSpeaker,
   738  		HTTPMethod: "POST",
   739  		HTTPPath:   "/",
   740  	}
   741  
   742  	if input == nil {
   743  		input = &DescribeSpeakerInput{}
   744  	}
   745  
   746  	output = &DescribeSpeakerOutput{}
   747  	req = c.newRequest(op, input, output)
   748  	return
   749  }
   750  
   751  // DescribeSpeaker API operation for Amazon Voice ID.
   752  //
   753  // Describes the specified speaker.
   754  //
   755  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   756  // with awserr.Error's Code and Message methods to get detailed information about
   757  // the error.
   758  //
   759  // See the AWS API reference guide for Amazon Voice ID's
   760  // API operation DescribeSpeaker for usage and error information.
   761  //
   762  // Returned Error Types:
   763  //   * ResourceNotFoundException
   764  //   The specified resource cannot be found. Check the ResourceType and error
   765  //   message for more details.
   766  //
   767  //   * ValidationException
   768  //   The request failed one or more validations; check the error message for more
   769  //   details.
   770  //
   771  //   * InternalServerException
   772  //   The request failed due to an unknown error on the server side.
   773  //
   774  //   * ThrottlingException
   775  //   The request was denied due to request throttling. Please slow down your request
   776  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   777  //   and try your request again.
   778  //
   779  //   * AccessDeniedException
   780  //   You do not have sufficient permissions to perform this action. Check the
   781  //   error message and try again.
   782  //
   783  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeSpeaker
   784  func (c *VoiceID) DescribeSpeaker(input *DescribeSpeakerInput) (*DescribeSpeakerOutput, error) {
   785  	req, out := c.DescribeSpeakerRequest(input)
   786  	return out, req.Send()
   787  }
   788  
   789  // DescribeSpeakerWithContext is the same as DescribeSpeaker with the addition of
   790  // the ability to pass a context and additional request options.
   791  //
   792  // See DescribeSpeaker for details on how to use this API operation.
   793  //
   794  // The context must be non-nil and will be used for request cancellation. If
   795  // the context is nil a panic will occur. In the future the SDK may create
   796  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   797  // for more information on using Contexts.
   798  func (c *VoiceID) DescribeSpeakerWithContext(ctx aws.Context, input *DescribeSpeakerInput, opts ...request.Option) (*DescribeSpeakerOutput, error) {
   799  	req, out := c.DescribeSpeakerRequest(input)
   800  	req.SetContext(ctx)
   801  	req.ApplyOptions(opts...)
   802  	return out, req.Send()
   803  }
   804  
   805  const opDescribeSpeakerEnrollmentJob = "DescribeSpeakerEnrollmentJob"
   806  
   807  // DescribeSpeakerEnrollmentJobRequest generates a "aws/request.Request" representing the
   808  // client's request for the DescribeSpeakerEnrollmentJob operation. The "output" return
   809  // value will be populated with the request's response once the request completes
   810  // successfully.
   811  //
   812  // Use "Send" method on the returned Request to send the API call to the service.
   813  // the "output" return value is not valid until after Send returns without error.
   814  //
   815  // See DescribeSpeakerEnrollmentJob for more information on using the DescribeSpeakerEnrollmentJob
   816  // API call, and error handling.
   817  //
   818  // This method is useful when you want to inject custom logic or configuration
   819  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   820  //
   821  //
   822  //    // Example sending a request using the DescribeSpeakerEnrollmentJobRequest method.
   823  //    req, resp := client.DescribeSpeakerEnrollmentJobRequest(params)
   824  //
   825  //    err := req.Send()
   826  //    if err == nil { // resp is now filled
   827  //        fmt.Println(resp)
   828  //    }
   829  //
   830  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeSpeakerEnrollmentJob
   831  func (c *VoiceID) DescribeSpeakerEnrollmentJobRequest(input *DescribeSpeakerEnrollmentJobInput) (req *request.Request, output *DescribeSpeakerEnrollmentJobOutput) {
   832  	op := &request.Operation{
   833  		Name:       opDescribeSpeakerEnrollmentJob,
   834  		HTTPMethod: "POST",
   835  		HTTPPath:   "/",
   836  	}
   837  
   838  	if input == nil {
   839  		input = &DescribeSpeakerEnrollmentJobInput{}
   840  	}
   841  
   842  	output = &DescribeSpeakerEnrollmentJobOutput{}
   843  	req = c.newRequest(op, input, output)
   844  	return
   845  }
   846  
   847  // DescribeSpeakerEnrollmentJob API operation for Amazon Voice ID.
   848  //
   849  // Describes the specified speaker enrollment job.
   850  //
   851  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   852  // with awserr.Error's Code and Message methods to get detailed information about
   853  // the error.
   854  //
   855  // See the AWS API reference guide for Amazon Voice ID's
   856  // API operation DescribeSpeakerEnrollmentJob for usage and error information.
   857  //
   858  // Returned Error Types:
   859  //   * ResourceNotFoundException
   860  //   The specified resource cannot be found. Check the ResourceType and error
   861  //   message for more details.
   862  //
   863  //   * ValidationException
   864  //   The request failed one or more validations; check the error message for more
   865  //   details.
   866  //
   867  //   * InternalServerException
   868  //   The request failed due to an unknown error on the server side.
   869  //
   870  //   * ThrottlingException
   871  //   The request was denied due to request throttling. Please slow down your request
   872  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   873  //   and try your request again.
   874  //
   875  //   * AccessDeniedException
   876  //   You do not have sufficient permissions to perform this action. Check the
   877  //   error message and try again.
   878  //
   879  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeSpeakerEnrollmentJob
   880  func (c *VoiceID) DescribeSpeakerEnrollmentJob(input *DescribeSpeakerEnrollmentJobInput) (*DescribeSpeakerEnrollmentJobOutput, error) {
   881  	req, out := c.DescribeSpeakerEnrollmentJobRequest(input)
   882  	return out, req.Send()
   883  }
   884  
   885  // DescribeSpeakerEnrollmentJobWithContext is the same as DescribeSpeakerEnrollmentJob with the addition of
   886  // the ability to pass a context and additional request options.
   887  //
   888  // See DescribeSpeakerEnrollmentJob for details on how to use this API operation.
   889  //
   890  // The context must be non-nil and will be used for request cancellation. If
   891  // the context is nil a panic will occur. In the future the SDK may create
   892  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   893  // for more information on using Contexts.
   894  func (c *VoiceID) DescribeSpeakerEnrollmentJobWithContext(ctx aws.Context, input *DescribeSpeakerEnrollmentJobInput, opts ...request.Option) (*DescribeSpeakerEnrollmentJobOutput, error) {
   895  	req, out := c.DescribeSpeakerEnrollmentJobRequest(input)
   896  	req.SetContext(ctx)
   897  	req.ApplyOptions(opts...)
   898  	return out, req.Send()
   899  }
   900  
   901  const opEvaluateSession = "EvaluateSession"
   902  
   903  // EvaluateSessionRequest generates a "aws/request.Request" representing the
   904  // client's request for the EvaluateSession operation. The "output" return
   905  // value will be populated with the request's response once the request completes
   906  // successfully.
   907  //
   908  // Use "Send" method on the returned Request to send the API call to the service.
   909  // the "output" return value is not valid until after Send returns without error.
   910  //
   911  // See EvaluateSession for more information on using the EvaluateSession
   912  // API call, and error handling.
   913  //
   914  // This method is useful when you want to inject custom logic or configuration
   915  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   916  //
   917  //
   918  //    // Example sending a request using the EvaluateSessionRequest method.
   919  //    req, resp := client.EvaluateSessionRequest(params)
   920  //
   921  //    err := req.Send()
   922  //    if err == nil { // resp is now filled
   923  //        fmt.Println(resp)
   924  //    }
   925  //
   926  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/EvaluateSession
   927  func (c *VoiceID) EvaluateSessionRequest(input *EvaluateSessionInput) (req *request.Request, output *EvaluateSessionOutput) {
   928  	op := &request.Operation{
   929  		Name:       opEvaluateSession,
   930  		HTTPMethod: "POST",
   931  		HTTPPath:   "/",
   932  	}
   933  
   934  	if input == nil {
   935  		input = &EvaluateSessionInput{}
   936  	}
   937  
   938  	output = &EvaluateSessionOutput{}
   939  	req = c.newRequest(op, input, output)
   940  	return
   941  }
   942  
   943  // EvaluateSession API operation for Amazon Voice ID.
   944  //
   945  // Evaluates a specified session based on audio data accumulated during a streaming
   946  // Amazon Connect Voice ID call.
   947  //
   948  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   949  // with awserr.Error's Code and Message methods to get detailed information about
   950  // the error.
   951  //
   952  // See the AWS API reference guide for Amazon Voice ID's
   953  // API operation EvaluateSession for usage and error information.
   954  //
   955  // Returned Error Types:
   956  //   * ResourceNotFoundException
   957  //   The specified resource cannot be found. Check the ResourceType and error
   958  //   message for more details.
   959  //
   960  //   * ValidationException
   961  //   The request failed one or more validations; check the error message for more
   962  //   details.
   963  //
   964  //   * InternalServerException
   965  //   The request failed due to an unknown error on the server side.
   966  //
   967  //   * ThrottlingException
   968  //   The request was denied due to request throttling. Please slow down your request
   969  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
   970  //   and try your request again.
   971  //
   972  //   * AccessDeniedException
   973  //   You do not have sufficient permissions to perform this action. Check the
   974  //   error message and try again.
   975  //
   976  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/EvaluateSession
   977  func (c *VoiceID) EvaluateSession(input *EvaluateSessionInput) (*EvaluateSessionOutput, error) {
   978  	req, out := c.EvaluateSessionRequest(input)
   979  	return out, req.Send()
   980  }
   981  
   982  // EvaluateSessionWithContext is the same as EvaluateSession with the addition of
   983  // the ability to pass a context and additional request options.
   984  //
   985  // See EvaluateSession for details on how to use this API operation.
   986  //
   987  // The context must be non-nil and will be used for request cancellation. If
   988  // the context is nil a panic will occur. In the future the SDK may create
   989  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   990  // for more information on using Contexts.
   991  func (c *VoiceID) EvaluateSessionWithContext(ctx aws.Context, input *EvaluateSessionInput, opts ...request.Option) (*EvaluateSessionOutput, error) {
   992  	req, out := c.EvaluateSessionRequest(input)
   993  	req.SetContext(ctx)
   994  	req.ApplyOptions(opts...)
   995  	return out, req.Send()
   996  }
   997  
   998  const opListDomains = "ListDomains"
   999  
  1000  // ListDomainsRequest generates a "aws/request.Request" representing the
  1001  // client's request for the ListDomains operation. The "output" return
  1002  // value will be populated with the request's response once the request completes
  1003  // successfully.
  1004  //
  1005  // Use "Send" method on the returned Request to send the API call to the service.
  1006  // the "output" return value is not valid until after Send returns without error.
  1007  //
  1008  // See ListDomains for more information on using the ListDomains
  1009  // API call, and error handling.
  1010  //
  1011  // This method is useful when you want to inject custom logic or configuration
  1012  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1013  //
  1014  //
  1015  //    // Example sending a request using the ListDomainsRequest method.
  1016  //    req, resp := client.ListDomainsRequest(params)
  1017  //
  1018  //    err := req.Send()
  1019  //    if err == nil { // resp is now filled
  1020  //        fmt.Println(resp)
  1021  //    }
  1022  //
  1023  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListDomains
  1024  func (c *VoiceID) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) {
  1025  	op := &request.Operation{
  1026  		Name:       opListDomains,
  1027  		HTTPMethod: "POST",
  1028  		HTTPPath:   "/",
  1029  		Paginator: &request.Paginator{
  1030  			InputTokens:     []string{"NextToken"},
  1031  			OutputTokens:    []string{"NextToken"},
  1032  			LimitToken:      "MaxResults",
  1033  			TruncationToken: "",
  1034  		},
  1035  	}
  1036  
  1037  	if input == nil {
  1038  		input = &ListDomainsInput{}
  1039  	}
  1040  
  1041  	output = &ListDomainsOutput{}
  1042  	req = c.newRequest(op, input, output)
  1043  	return
  1044  }
  1045  
  1046  // ListDomains API operation for Amazon Voice ID.
  1047  //
  1048  // Lists all the domains in the Amazon Web Services account.
  1049  //
  1050  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1051  // with awserr.Error's Code and Message methods to get detailed information about
  1052  // the error.
  1053  //
  1054  // See the AWS API reference guide for Amazon Voice ID's
  1055  // API operation ListDomains for usage and error information.
  1056  //
  1057  // Returned Error Types:
  1058  //   * ValidationException
  1059  //   The request failed one or more validations; check the error message for more
  1060  //   details.
  1061  //
  1062  //   * InternalServerException
  1063  //   The request failed due to an unknown error on the server side.
  1064  //
  1065  //   * ThrottlingException
  1066  //   The request was denied due to request throttling. Please slow down your request
  1067  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1068  //   and try your request again.
  1069  //
  1070  //   * AccessDeniedException
  1071  //   You do not have sufficient permissions to perform this action. Check the
  1072  //   error message and try again.
  1073  //
  1074  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListDomains
  1075  func (c *VoiceID) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) {
  1076  	req, out := c.ListDomainsRequest(input)
  1077  	return out, req.Send()
  1078  }
  1079  
  1080  // ListDomainsWithContext is the same as ListDomains with the addition of
  1081  // the ability to pass a context and additional request options.
  1082  //
  1083  // See ListDomains for details on how to use this API operation.
  1084  //
  1085  // The context must be non-nil and will be used for request cancellation. If
  1086  // the context is nil a panic will occur. In the future the SDK may create
  1087  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1088  // for more information on using Contexts.
  1089  func (c *VoiceID) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) {
  1090  	req, out := c.ListDomainsRequest(input)
  1091  	req.SetContext(ctx)
  1092  	req.ApplyOptions(opts...)
  1093  	return out, req.Send()
  1094  }
  1095  
  1096  // ListDomainsPages iterates over the pages of a ListDomains operation,
  1097  // calling the "fn" function with the response data for each page. To stop
  1098  // iterating, return false from the fn function.
  1099  //
  1100  // See ListDomains method for more information on how to use this operation.
  1101  //
  1102  // Note: This operation can generate multiple requests to a service.
  1103  //
  1104  //    // Example iterating over at most 3 pages of a ListDomains operation.
  1105  //    pageNum := 0
  1106  //    err := client.ListDomainsPages(params,
  1107  //        func(page *voiceid.ListDomainsOutput, lastPage bool) bool {
  1108  //            pageNum++
  1109  //            fmt.Println(page)
  1110  //            return pageNum <= 3
  1111  //        })
  1112  //
  1113  func (c *VoiceID) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error {
  1114  	return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn)
  1115  }
  1116  
  1117  // ListDomainsPagesWithContext same as ListDomainsPages except
  1118  // it takes a Context and allows setting request options on the pages.
  1119  //
  1120  // The context must be non-nil and will be used for request cancellation. If
  1121  // the context is nil a panic will occur. In the future the SDK may create
  1122  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1123  // for more information on using Contexts.
  1124  func (c *VoiceID) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error {
  1125  	p := request.Pagination{
  1126  		NewRequest: func() (*request.Request, error) {
  1127  			var inCpy *ListDomainsInput
  1128  			if input != nil {
  1129  				tmp := *input
  1130  				inCpy = &tmp
  1131  			}
  1132  			req, _ := c.ListDomainsRequest(inCpy)
  1133  			req.SetContext(ctx)
  1134  			req.ApplyOptions(opts...)
  1135  			return req, nil
  1136  		},
  1137  	}
  1138  
  1139  	for p.Next() {
  1140  		if !fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) {
  1141  			break
  1142  		}
  1143  	}
  1144  
  1145  	return p.Err()
  1146  }
  1147  
  1148  const opListFraudsterRegistrationJobs = "ListFraudsterRegistrationJobs"
  1149  
  1150  // ListFraudsterRegistrationJobsRequest generates a "aws/request.Request" representing the
  1151  // client's request for the ListFraudsterRegistrationJobs operation. The "output" return
  1152  // value will be populated with the request's response once the request completes
  1153  // successfully.
  1154  //
  1155  // Use "Send" method on the returned Request to send the API call to the service.
  1156  // the "output" return value is not valid until after Send returns without error.
  1157  //
  1158  // See ListFraudsterRegistrationJobs for more information on using the ListFraudsterRegistrationJobs
  1159  // API call, and error handling.
  1160  //
  1161  // This method is useful when you want to inject custom logic or configuration
  1162  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1163  //
  1164  //
  1165  //    // Example sending a request using the ListFraudsterRegistrationJobsRequest method.
  1166  //    req, resp := client.ListFraudsterRegistrationJobsRequest(params)
  1167  //
  1168  //    err := req.Send()
  1169  //    if err == nil { // resp is now filled
  1170  //        fmt.Println(resp)
  1171  //    }
  1172  //
  1173  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListFraudsterRegistrationJobs
  1174  func (c *VoiceID) ListFraudsterRegistrationJobsRequest(input *ListFraudsterRegistrationJobsInput) (req *request.Request, output *ListFraudsterRegistrationJobsOutput) {
  1175  	op := &request.Operation{
  1176  		Name:       opListFraudsterRegistrationJobs,
  1177  		HTTPMethod: "POST",
  1178  		HTTPPath:   "/",
  1179  		Paginator: &request.Paginator{
  1180  			InputTokens:     []string{"NextToken"},
  1181  			OutputTokens:    []string{"NextToken"},
  1182  			LimitToken:      "MaxResults",
  1183  			TruncationToken: "",
  1184  		},
  1185  	}
  1186  
  1187  	if input == nil {
  1188  		input = &ListFraudsterRegistrationJobsInput{}
  1189  	}
  1190  
  1191  	output = &ListFraudsterRegistrationJobsOutput{}
  1192  	req = c.newRequest(op, input, output)
  1193  	return
  1194  }
  1195  
  1196  // ListFraudsterRegistrationJobs API operation for Amazon Voice ID.
  1197  //
  1198  // Lists all the fraudster registration jobs in the domain with the given JobStatus.
  1199  // If JobStatus is not provided, this lists all fraudster registration jobs
  1200  // in the given domain.
  1201  //
  1202  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1203  // with awserr.Error's Code and Message methods to get detailed information about
  1204  // the error.
  1205  //
  1206  // See the AWS API reference guide for Amazon Voice ID's
  1207  // API operation ListFraudsterRegistrationJobs for usage and error information.
  1208  //
  1209  // Returned Error Types:
  1210  //   * ResourceNotFoundException
  1211  //   The specified resource cannot be found. Check the ResourceType and error
  1212  //   message for more details.
  1213  //
  1214  //   * ValidationException
  1215  //   The request failed one or more validations; check the error message for more
  1216  //   details.
  1217  //
  1218  //   * InternalServerException
  1219  //   The request failed due to an unknown error on the server side.
  1220  //
  1221  //   * ThrottlingException
  1222  //   The request was denied due to request throttling. Please slow down your request
  1223  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1224  //   and try your request again.
  1225  //
  1226  //   * AccessDeniedException
  1227  //   You do not have sufficient permissions to perform this action. Check the
  1228  //   error message and try again.
  1229  //
  1230  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListFraudsterRegistrationJobs
  1231  func (c *VoiceID) ListFraudsterRegistrationJobs(input *ListFraudsterRegistrationJobsInput) (*ListFraudsterRegistrationJobsOutput, error) {
  1232  	req, out := c.ListFraudsterRegistrationJobsRequest(input)
  1233  	return out, req.Send()
  1234  }
  1235  
  1236  // ListFraudsterRegistrationJobsWithContext is the same as ListFraudsterRegistrationJobs with the addition of
  1237  // the ability to pass a context and additional request options.
  1238  //
  1239  // See ListFraudsterRegistrationJobs for details on how to use this API operation.
  1240  //
  1241  // The context must be non-nil and will be used for request cancellation. If
  1242  // the context is nil a panic will occur. In the future the SDK may create
  1243  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1244  // for more information on using Contexts.
  1245  func (c *VoiceID) ListFraudsterRegistrationJobsWithContext(ctx aws.Context, input *ListFraudsterRegistrationJobsInput, opts ...request.Option) (*ListFraudsterRegistrationJobsOutput, error) {
  1246  	req, out := c.ListFraudsterRegistrationJobsRequest(input)
  1247  	req.SetContext(ctx)
  1248  	req.ApplyOptions(opts...)
  1249  	return out, req.Send()
  1250  }
  1251  
  1252  // ListFraudsterRegistrationJobsPages iterates over the pages of a ListFraudsterRegistrationJobs operation,
  1253  // calling the "fn" function with the response data for each page. To stop
  1254  // iterating, return false from the fn function.
  1255  //
  1256  // See ListFraudsterRegistrationJobs method for more information on how to use this operation.
  1257  //
  1258  // Note: This operation can generate multiple requests to a service.
  1259  //
  1260  //    // Example iterating over at most 3 pages of a ListFraudsterRegistrationJobs operation.
  1261  //    pageNum := 0
  1262  //    err := client.ListFraudsterRegistrationJobsPages(params,
  1263  //        func(page *voiceid.ListFraudsterRegistrationJobsOutput, lastPage bool) bool {
  1264  //            pageNum++
  1265  //            fmt.Println(page)
  1266  //            return pageNum <= 3
  1267  //        })
  1268  //
  1269  func (c *VoiceID) ListFraudsterRegistrationJobsPages(input *ListFraudsterRegistrationJobsInput, fn func(*ListFraudsterRegistrationJobsOutput, bool) bool) error {
  1270  	return c.ListFraudsterRegistrationJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  1271  }
  1272  
  1273  // ListFraudsterRegistrationJobsPagesWithContext same as ListFraudsterRegistrationJobsPages except
  1274  // it takes a Context and allows setting request options on the pages.
  1275  //
  1276  // The context must be non-nil and will be used for request cancellation. If
  1277  // the context is nil a panic will occur. In the future the SDK may create
  1278  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1279  // for more information on using Contexts.
  1280  func (c *VoiceID) ListFraudsterRegistrationJobsPagesWithContext(ctx aws.Context, input *ListFraudsterRegistrationJobsInput, fn func(*ListFraudsterRegistrationJobsOutput, bool) bool, opts ...request.Option) error {
  1281  	p := request.Pagination{
  1282  		NewRequest: func() (*request.Request, error) {
  1283  			var inCpy *ListFraudsterRegistrationJobsInput
  1284  			if input != nil {
  1285  				tmp := *input
  1286  				inCpy = &tmp
  1287  			}
  1288  			req, _ := c.ListFraudsterRegistrationJobsRequest(inCpy)
  1289  			req.SetContext(ctx)
  1290  			req.ApplyOptions(opts...)
  1291  			return req, nil
  1292  		},
  1293  	}
  1294  
  1295  	for p.Next() {
  1296  		if !fn(p.Page().(*ListFraudsterRegistrationJobsOutput), !p.HasNextPage()) {
  1297  			break
  1298  		}
  1299  	}
  1300  
  1301  	return p.Err()
  1302  }
  1303  
  1304  const opListSpeakerEnrollmentJobs = "ListSpeakerEnrollmentJobs"
  1305  
  1306  // ListSpeakerEnrollmentJobsRequest generates a "aws/request.Request" representing the
  1307  // client's request for the ListSpeakerEnrollmentJobs operation. The "output" return
  1308  // value will be populated with the request's response once the request completes
  1309  // successfully.
  1310  //
  1311  // Use "Send" method on the returned Request to send the API call to the service.
  1312  // the "output" return value is not valid until after Send returns without error.
  1313  //
  1314  // See ListSpeakerEnrollmentJobs for more information on using the ListSpeakerEnrollmentJobs
  1315  // API call, and error handling.
  1316  //
  1317  // This method is useful when you want to inject custom logic or configuration
  1318  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1319  //
  1320  //
  1321  //    // Example sending a request using the ListSpeakerEnrollmentJobsRequest method.
  1322  //    req, resp := client.ListSpeakerEnrollmentJobsRequest(params)
  1323  //
  1324  //    err := req.Send()
  1325  //    if err == nil { // resp is now filled
  1326  //        fmt.Println(resp)
  1327  //    }
  1328  //
  1329  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListSpeakerEnrollmentJobs
  1330  func (c *VoiceID) ListSpeakerEnrollmentJobsRequest(input *ListSpeakerEnrollmentJobsInput) (req *request.Request, output *ListSpeakerEnrollmentJobsOutput) {
  1331  	op := &request.Operation{
  1332  		Name:       opListSpeakerEnrollmentJobs,
  1333  		HTTPMethod: "POST",
  1334  		HTTPPath:   "/",
  1335  		Paginator: &request.Paginator{
  1336  			InputTokens:     []string{"NextToken"},
  1337  			OutputTokens:    []string{"NextToken"},
  1338  			LimitToken:      "MaxResults",
  1339  			TruncationToken: "",
  1340  		},
  1341  	}
  1342  
  1343  	if input == nil {
  1344  		input = &ListSpeakerEnrollmentJobsInput{}
  1345  	}
  1346  
  1347  	output = &ListSpeakerEnrollmentJobsOutput{}
  1348  	req = c.newRequest(op, input, output)
  1349  	return
  1350  }
  1351  
  1352  // ListSpeakerEnrollmentJobs API operation for Amazon Voice ID.
  1353  //
  1354  // Lists all the speaker enrollment jobs in the domain with the specified JobStatus.
  1355  // If JobStatus is not provided, this lists all jobs with all possible speaker
  1356  // enrollment job statuses.
  1357  //
  1358  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1359  // with awserr.Error's Code and Message methods to get detailed information about
  1360  // the error.
  1361  //
  1362  // See the AWS API reference guide for Amazon Voice ID's
  1363  // API operation ListSpeakerEnrollmentJobs for usage and error information.
  1364  //
  1365  // Returned Error Types:
  1366  //   * ResourceNotFoundException
  1367  //   The specified resource cannot be found. Check the ResourceType and error
  1368  //   message for more details.
  1369  //
  1370  //   * ValidationException
  1371  //   The request failed one or more validations; check the error message for more
  1372  //   details.
  1373  //
  1374  //   * InternalServerException
  1375  //   The request failed due to an unknown error on the server side.
  1376  //
  1377  //   * ThrottlingException
  1378  //   The request was denied due to request throttling. Please slow down your request
  1379  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1380  //   and try your request again.
  1381  //
  1382  //   * AccessDeniedException
  1383  //   You do not have sufficient permissions to perform this action. Check the
  1384  //   error message and try again.
  1385  //
  1386  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListSpeakerEnrollmentJobs
  1387  func (c *VoiceID) ListSpeakerEnrollmentJobs(input *ListSpeakerEnrollmentJobsInput) (*ListSpeakerEnrollmentJobsOutput, error) {
  1388  	req, out := c.ListSpeakerEnrollmentJobsRequest(input)
  1389  	return out, req.Send()
  1390  }
  1391  
  1392  // ListSpeakerEnrollmentJobsWithContext is the same as ListSpeakerEnrollmentJobs with the addition of
  1393  // the ability to pass a context and additional request options.
  1394  //
  1395  // See ListSpeakerEnrollmentJobs for details on how to use this API operation.
  1396  //
  1397  // The context must be non-nil and will be used for request cancellation. If
  1398  // the context is nil a panic will occur. In the future the SDK may create
  1399  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1400  // for more information on using Contexts.
  1401  func (c *VoiceID) ListSpeakerEnrollmentJobsWithContext(ctx aws.Context, input *ListSpeakerEnrollmentJobsInput, opts ...request.Option) (*ListSpeakerEnrollmentJobsOutput, error) {
  1402  	req, out := c.ListSpeakerEnrollmentJobsRequest(input)
  1403  	req.SetContext(ctx)
  1404  	req.ApplyOptions(opts...)
  1405  	return out, req.Send()
  1406  }
  1407  
  1408  // ListSpeakerEnrollmentJobsPages iterates over the pages of a ListSpeakerEnrollmentJobs operation,
  1409  // calling the "fn" function with the response data for each page. To stop
  1410  // iterating, return false from the fn function.
  1411  //
  1412  // See ListSpeakerEnrollmentJobs method for more information on how to use this operation.
  1413  //
  1414  // Note: This operation can generate multiple requests to a service.
  1415  //
  1416  //    // Example iterating over at most 3 pages of a ListSpeakerEnrollmentJobs operation.
  1417  //    pageNum := 0
  1418  //    err := client.ListSpeakerEnrollmentJobsPages(params,
  1419  //        func(page *voiceid.ListSpeakerEnrollmentJobsOutput, lastPage bool) bool {
  1420  //            pageNum++
  1421  //            fmt.Println(page)
  1422  //            return pageNum <= 3
  1423  //        })
  1424  //
  1425  func (c *VoiceID) ListSpeakerEnrollmentJobsPages(input *ListSpeakerEnrollmentJobsInput, fn func(*ListSpeakerEnrollmentJobsOutput, bool) bool) error {
  1426  	return c.ListSpeakerEnrollmentJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  1427  }
  1428  
  1429  // ListSpeakerEnrollmentJobsPagesWithContext same as ListSpeakerEnrollmentJobsPages except
  1430  // it takes a Context and allows setting request options on the pages.
  1431  //
  1432  // The context must be non-nil and will be used for request cancellation. If
  1433  // the context is nil a panic will occur. In the future the SDK may create
  1434  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1435  // for more information on using Contexts.
  1436  func (c *VoiceID) ListSpeakerEnrollmentJobsPagesWithContext(ctx aws.Context, input *ListSpeakerEnrollmentJobsInput, fn func(*ListSpeakerEnrollmentJobsOutput, bool) bool, opts ...request.Option) error {
  1437  	p := request.Pagination{
  1438  		NewRequest: func() (*request.Request, error) {
  1439  			var inCpy *ListSpeakerEnrollmentJobsInput
  1440  			if input != nil {
  1441  				tmp := *input
  1442  				inCpy = &tmp
  1443  			}
  1444  			req, _ := c.ListSpeakerEnrollmentJobsRequest(inCpy)
  1445  			req.SetContext(ctx)
  1446  			req.ApplyOptions(opts...)
  1447  			return req, nil
  1448  		},
  1449  	}
  1450  
  1451  	for p.Next() {
  1452  		if !fn(p.Page().(*ListSpeakerEnrollmentJobsOutput), !p.HasNextPage()) {
  1453  			break
  1454  		}
  1455  	}
  1456  
  1457  	return p.Err()
  1458  }
  1459  
  1460  const opListSpeakers = "ListSpeakers"
  1461  
  1462  // ListSpeakersRequest generates a "aws/request.Request" representing the
  1463  // client's request for the ListSpeakers operation. The "output" return
  1464  // value will be populated with the request's response once the request completes
  1465  // successfully.
  1466  //
  1467  // Use "Send" method on the returned Request to send the API call to the service.
  1468  // the "output" return value is not valid until after Send returns without error.
  1469  //
  1470  // See ListSpeakers for more information on using the ListSpeakers
  1471  // API call, and error handling.
  1472  //
  1473  // This method is useful when you want to inject custom logic or configuration
  1474  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1475  //
  1476  //
  1477  //    // Example sending a request using the ListSpeakersRequest method.
  1478  //    req, resp := client.ListSpeakersRequest(params)
  1479  //
  1480  //    err := req.Send()
  1481  //    if err == nil { // resp is now filled
  1482  //        fmt.Println(resp)
  1483  //    }
  1484  //
  1485  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListSpeakers
  1486  func (c *VoiceID) ListSpeakersRequest(input *ListSpeakersInput) (req *request.Request, output *ListSpeakersOutput) {
  1487  	op := &request.Operation{
  1488  		Name:       opListSpeakers,
  1489  		HTTPMethod: "POST",
  1490  		HTTPPath:   "/",
  1491  		Paginator: &request.Paginator{
  1492  			InputTokens:     []string{"NextToken"},
  1493  			OutputTokens:    []string{"NextToken"},
  1494  			LimitToken:      "MaxResults",
  1495  			TruncationToken: "",
  1496  		},
  1497  	}
  1498  
  1499  	if input == nil {
  1500  		input = &ListSpeakersInput{}
  1501  	}
  1502  
  1503  	output = &ListSpeakersOutput{}
  1504  	req = c.newRequest(op, input, output)
  1505  	return
  1506  }
  1507  
  1508  // ListSpeakers API operation for Amazon Voice ID.
  1509  //
  1510  // Lists all speakers in a specified domain.
  1511  //
  1512  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1513  // with awserr.Error's Code and Message methods to get detailed information about
  1514  // the error.
  1515  //
  1516  // See the AWS API reference guide for Amazon Voice ID's
  1517  // API operation ListSpeakers for usage and error information.
  1518  //
  1519  // Returned Error Types:
  1520  //   * ResourceNotFoundException
  1521  //   The specified resource cannot be found. Check the ResourceType and error
  1522  //   message for more details.
  1523  //
  1524  //   * ValidationException
  1525  //   The request failed one or more validations; check the error message for more
  1526  //   details.
  1527  //
  1528  //   * InternalServerException
  1529  //   The request failed due to an unknown error on the server side.
  1530  //
  1531  //   * ThrottlingException
  1532  //   The request was denied due to request throttling. Please slow down your request
  1533  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1534  //   and try your request again.
  1535  //
  1536  //   * AccessDeniedException
  1537  //   You do not have sufficient permissions to perform this action. Check the
  1538  //   error message and try again.
  1539  //
  1540  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListSpeakers
  1541  func (c *VoiceID) ListSpeakers(input *ListSpeakersInput) (*ListSpeakersOutput, error) {
  1542  	req, out := c.ListSpeakersRequest(input)
  1543  	return out, req.Send()
  1544  }
  1545  
  1546  // ListSpeakersWithContext is the same as ListSpeakers with the addition of
  1547  // the ability to pass a context and additional request options.
  1548  //
  1549  // See ListSpeakers for details on how to use this API operation.
  1550  //
  1551  // The context must be non-nil and will be used for request cancellation. If
  1552  // the context is nil a panic will occur. In the future the SDK may create
  1553  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1554  // for more information on using Contexts.
  1555  func (c *VoiceID) ListSpeakersWithContext(ctx aws.Context, input *ListSpeakersInput, opts ...request.Option) (*ListSpeakersOutput, error) {
  1556  	req, out := c.ListSpeakersRequest(input)
  1557  	req.SetContext(ctx)
  1558  	req.ApplyOptions(opts...)
  1559  	return out, req.Send()
  1560  }
  1561  
  1562  // ListSpeakersPages iterates over the pages of a ListSpeakers operation,
  1563  // calling the "fn" function with the response data for each page. To stop
  1564  // iterating, return false from the fn function.
  1565  //
  1566  // See ListSpeakers method for more information on how to use this operation.
  1567  //
  1568  // Note: This operation can generate multiple requests to a service.
  1569  //
  1570  //    // Example iterating over at most 3 pages of a ListSpeakers operation.
  1571  //    pageNum := 0
  1572  //    err := client.ListSpeakersPages(params,
  1573  //        func(page *voiceid.ListSpeakersOutput, lastPage bool) bool {
  1574  //            pageNum++
  1575  //            fmt.Println(page)
  1576  //            return pageNum <= 3
  1577  //        })
  1578  //
  1579  func (c *VoiceID) ListSpeakersPages(input *ListSpeakersInput, fn func(*ListSpeakersOutput, bool) bool) error {
  1580  	return c.ListSpeakersPagesWithContext(aws.BackgroundContext(), input, fn)
  1581  }
  1582  
  1583  // ListSpeakersPagesWithContext same as ListSpeakersPages except
  1584  // it takes a Context and allows setting request options on the pages.
  1585  //
  1586  // The context must be non-nil and will be used for request cancellation. If
  1587  // the context is nil a panic will occur. In the future the SDK may create
  1588  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1589  // for more information on using Contexts.
  1590  func (c *VoiceID) ListSpeakersPagesWithContext(ctx aws.Context, input *ListSpeakersInput, fn func(*ListSpeakersOutput, bool) bool, opts ...request.Option) error {
  1591  	p := request.Pagination{
  1592  		NewRequest: func() (*request.Request, error) {
  1593  			var inCpy *ListSpeakersInput
  1594  			if input != nil {
  1595  				tmp := *input
  1596  				inCpy = &tmp
  1597  			}
  1598  			req, _ := c.ListSpeakersRequest(inCpy)
  1599  			req.SetContext(ctx)
  1600  			req.ApplyOptions(opts...)
  1601  			return req, nil
  1602  		},
  1603  	}
  1604  
  1605  	for p.Next() {
  1606  		if !fn(p.Page().(*ListSpeakersOutput), !p.HasNextPage()) {
  1607  			break
  1608  		}
  1609  	}
  1610  
  1611  	return p.Err()
  1612  }
  1613  
  1614  const opListTagsForResource = "ListTagsForResource"
  1615  
  1616  // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1617  // client's request for the ListTagsForResource operation. The "output" return
  1618  // value will be populated with the request's response once the request completes
  1619  // successfully.
  1620  //
  1621  // Use "Send" method on the returned Request to send the API call to the service.
  1622  // the "output" return value is not valid until after Send returns without error.
  1623  //
  1624  // See ListTagsForResource for more information on using the ListTagsForResource
  1625  // API call, and error handling.
  1626  //
  1627  // This method is useful when you want to inject custom logic or configuration
  1628  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1629  //
  1630  //
  1631  //    // Example sending a request using the ListTagsForResourceRequest method.
  1632  //    req, resp := client.ListTagsForResourceRequest(params)
  1633  //
  1634  //    err := req.Send()
  1635  //    if err == nil { // resp is now filled
  1636  //        fmt.Println(resp)
  1637  //    }
  1638  //
  1639  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListTagsForResource
  1640  func (c *VoiceID) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  1641  	op := &request.Operation{
  1642  		Name:       opListTagsForResource,
  1643  		HTTPMethod: "POST",
  1644  		HTTPPath:   "/",
  1645  	}
  1646  
  1647  	if input == nil {
  1648  		input = &ListTagsForResourceInput{}
  1649  	}
  1650  
  1651  	output = &ListTagsForResourceOutput{}
  1652  	req = c.newRequest(op, input, output)
  1653  	return
  1654  }
  1655  
  1656  // ListTagsForResource API operation for Amazon Voice ID.
  1657  //
  1658  // Lists all tags associated with a specified Voice ID resource.
  1659  //
  1660  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1661  // with awserr.Error's Code and Message methods to get detailed information about
  1662  // the error.
  1663  //
  1664  // See the AWS API reference guide for Amazon Voice ID's
  1665  // API operation ListTagsForResource for usage and error information.
  1666  //
  1667  // Returned Error Types:
  1668  //   * ResourceNotFoundException
  1669  //   The specified resource cannot be found. Check the ResourceType and error
  1670  //   message for more details.
  1671  //
  1672  //   * ValidationException
  1673  //   The request failed one or more validations; check the error message for more
  1674  //   details.
  1675  //
  1676  //   * InternalServerException
  1677  //   The request failed due to an unknown error on the server side.
  1678  //
  1679  //   * ThrottlingException
  1680  //   The request was denied due to request throttling. Please slow down your request
  1681  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1682  //   and try your request again.
  1683  //
  1684  //   * AccessDeniedException
  1685  //   You do not have sufficient permissions to perform this action. Check the
  1686  //   error message and try again.
  1687  //
  1688  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListTagsForResource
  1689  func (c *VoiceID) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  1690  	req, out := c.ListTagsForResourceRequest(input)
  1691  	return out, req.Send()
  1692  }
  1693  
  1694  // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  1695  // the ability to pass a context and additional request options.
  1696  //
  1697  // See ListTagsForResource for details on how to use this API operation.
  1698  //
  1699  // The context must be non-nil and will be used for request cancellation. If
  1700  // the context is nil a panic will occur. In the future the SDK may create
  1701  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1702  // for more information on using Contexts.
  1703  func (c *VoiceID) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  1704  	req, out := c.ListTagsForResourceRequest(input)
  1705  	req.SetContext(ctx)
  1706  	req.ApplyOptions(opts...)
  1707  	return out, req.Send()
  1708  }
  1709  
  1710  const opOptOutSpeaker = "OptOutSpeaker"
  1711  
  1712  // OptOutSpeakerRequest generates a "aws/request.Request" representing the
  1713  // client's request for the OptOutSpeaker operation. The "output" return
  1714  // value will be populated with the request's response once the request completes
  1715  // successfully.
  1716  //
  1717  // Use "Send" method on the returned Request to send the API call to the service.
  1718  // the "output" return value is not valid until after Send returns without error.
  1719  //
  1720  // See OptOutSpeaker for more information on using the OptOutSpeaker
  1721  // API call, and error handling.
  1722  //
  1723  // This method is useful when you want to inject custom logic or configuration
  1724  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1725  //
  1726  //
  1727  //    // Example sending a request using the OptOutSpeakerRequest method.
  1728  //    req, resp := client.OptOutSpeakerRequest(params)
  1729  //
  1730  //    err := req.Send()
  1731  //    if err == nil { // resp is now filled
  1732  //        fmt.Println(resp)
  1733  //    }
  1734  //
  1735  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/OptOutSpeaker
  1736  func (c *VoiceID) OptOutSpeakerRequest(input *OptOutSpeakerInput) (req *request.Request, output *OptOutSpeakerOutput) {
  1737  	op := &request.Operation{
  1738  		Name:       opOptOutSpeaker,
  1739  		HTTPMethod: "POST",
  1740  		HTTPPath:   "/",
  1741  	}
  1742  
  1743  	if input == nil {
  1744  		input = &OptOutSpeakerInput{}
  1745  	}
  1746  
  1747  	output = &OptOutSpeakerOutput{}
  1748  	req = c.newRequest(op, input, output)
  1749  	return
  1750  }
  1751  
  1752  // OptOutSpeaker API operation for Amazon Voice ID.
  1753  //
  1754  // Opts out a speaker from Voice ID system. A speaker can be opted out regardless
  1755  // of whether or not they already exist in the system. If they don't yet exist,
  1756  // a new speaker is created in an opted out state. If they already exist, their
  1757  // existing status is overridden and they are opted out. Enrollment and evaluation
  1758  // authentication requests are rejected for opted out speakers, and opted out
  1759  // speakers have no voice embeddings stored in the system.
  1760  //
  1761  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1762  // with awserr.Error's Code and Message methods to get detailed information about
  1763  // the error.
  1764  //
  1765  // See the AWS API reference guide for Amazon Voice ID's
  1766  // API operation OptOutSpeaker for usage and error information.
  1767  //
  1768  // Returned Error Types:
  1769  //   * ResourceNotFoundException
  1770  //   The specified resource cannot be found. Check the ResourceType and error
  1771  //   message for more details.
  1772  //
  1773  //   * ValidationException
  1774  //   The request failed one or more validations; check the error message for more
  1775  //   details.
  1776  //
  1777  //   * ConflictException
  1778  //   The request failed due to a conflict. Check the ConflictType and error message
  1779  //   for more details.
  1780  //
  1781  //   * InternalServerException
  1782  //   The request failed due to an unknown error on the server side.
  1783  //
  1784  //   * ThrottlingException
  1785  //   The request was denied due to request throttling. Please slow down your request
  1786  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1787  //   and try your request again.
  1788  //
  1789  //   * AccessDeniedException
  1790  //   You do not have sufficient permissions to perform this action. Check the
  1791  //   error message and try again.
  1792  //
  1793  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/OptOutSpeaker
  1794  func (c *VoiceID) OptOutSpeaker(input *OptOutSpeakerInput) (*OptOutSpeakerOutput, error) {
  1795  	req, out := c.OptOutSpeakerRequest(input)
  1796  	return out, req.Send()
  1797  }
  1798  
  1799  // OptOutSpeakerWithContext is the same as OptOutSpeaker with the addition of
  1800  // the ability to pass a context and additional request options.
  1801  //
  1802  // See OptOutSpeaker for details on how to use this API operation.
  1803  //
  1804  // The context must be non-nil and will be used for request cancellation. If
  1805  // the context is nil a panic will occur. In the future the SDK may create
  1806  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1807  // for more information on using Contexts.
  1808  func (c *VoiceID) OptOutSpeakerWithContext(ctx aws.Context, input *OptOutSpeakerInput, opts ...request.Option) (*OptOutSpeakerOutput, error) {
  1809  	req, out := c.OptOutSpeakerRequest(input)
  1810  	req.SetContext(ctx)
  1811  	req.ApplyOptions(opts...)
  1812  	return out, req.Send()
  1813  }
  1814  
  1815  const opStartFraudsterRegistrationJob = "StartFraudsterRegistrationJob"
  1816  
  1817  // StartFraudsterRegistrationJobRequest generates a "aws/request.Request" representing the
  1818  // client's request for the StartFraudsterRegistrationJob operation. The "output" return
  1819  // value will be populated with the request's response once the request completes
  1820  // successfully.
  1821  //
  1822  // Use "Send" method on the returned Request to send the API call to the service.
  1823  // the "output" return value is not valid until after Send returns without error.
  1824  //
  1825  // See StartFraudsterRegistrationJob for more information on using the StartFraudsterRegistrationJob
  1826  // API call, and error handling.
  1827  //
  1828  // This method is useful when you want to inject custom logic or configuration
  1829  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1830  //
  1831  //
  1832  //    // Example sending a request using the StartFraudsterRegistrationJobRequest method.
  1833  //    req, resp := client.StartFraudsterRegistrationJobRequest(params)
  1834  //
  1835  //    err := req.Send()
  1836  //    if err == nil { // resp is now filled
  1837  //        fmt.Println(resp)
  1838  //    }
  1839  //
  1840  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/StartFraudsterRegistrationJob
  1841  func (c *VoiceID) StartFraudsterRegistrationJobRequest(input *StartFraudsterRegistrationJobInput) (req *request.Request, output *StartFraudsterRegistrationJobOutput) {
  1842  	op := &request.Operation{
  1843  		Name:       opStartFraudsterRegistrationJob,
  1844  		HTTPMethod: "POST",
  1845  		HTTPPath:   "/",
  1846  	}
  1847  
  1848  	if input == nil {
  1849  		input = &StartFraudsterRegistrationJobInput{}
  1850  	}
  1851  
  1852  	output = &StartFraudsterRegistrationJobOutput{}
  1853  	req = c.newRequest(op, input, output)
  1854  	return
  1855  }
  1856  
  1857  // StartFraudsterRegistrationJob API operation for Amazon Voice ID.
  1858  //
  1859  // Starts a new batch fraudster registration job using provided details.
  1860  //
  1861  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1862  // with awserr.Error's Code and Message methods to get detailed information about
  1863  // the error.
  1864  //
  1865  // See the AWS API reference guide for Amazon Voice ID's
  1866  // API operation StartFraudsterRegistrationJob for usage and error information.
  1867  //
  1868  // Returned Error Types:
  1869  //   * ServiceQuotaExceededException
  1870  //   The request exceeded the service quota. Refer to Voice ID Service Quotas
  1871  //   (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas)
  1872  //   and try your request again.
  1873  //
  1874  //   * ResourceNotFoundException
  1875  //   The specified resource cannot be found. Check the ResourceType and error
  1876  //   message for more details.
  1877  //
  1878  //   * ValidationException
  1879  //   The request failed one or more validations; check the error message for more
  1880  //   details.
  1881  //
  1882  //   * ConflictException
  1883  //   The request failed due to a conflict. Check the ConflictType and error message
  1884  //   for more details.
  1885  //
  1886  //   * InternalServerException
  1887  //   The request failed due to an unknown error on the server side.
  1888  //
  1889  //   * ThrottlingException
  1890  //   The request was denied due to request throttling. Please slow down your request
  1891  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1892  //   and try your request again.
  1893  //
  1894  //   * AccessDeniedException
  1895  //   You do not have sufficient permissions to perform this action. Check the
  1896  //   error message and try again.
  1897  //
  1898  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/StartFraudsterRegistrationJob
  1899  func (c *VoiceID) StartFraudsterRegistrationJob(input *StartFraudsterRegistrationJobInput) (*StartFraudsterRegistrationJobOutput, error) {
  1900  	req, out := c.StartFraudsterRegistrationJobRequest(input)
  1901  	return out, req.Send()
  1902  }
  1903  
  1904  // StartFraudsterRegistrationJobWithContext is the same as StartFraudsterRegistrationJob with the addition of
  1905  // the ability to pass a context and additional request options.
  1906  //
  1907  // See StartFraudsterRegistrationJob for details on how to use this API operation.
  1908  //
  1909  // The context must be non-nil and will be used for request cancellation. If
  1910  // the context is nil a panic will occur. In the future the SDK may create
  1911  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1912  // for more information on using Contexts.
  1913  func (c *VoiceID) StartFraudsterRegistrationJobWithContext(ctx aws.Context, input *StartFraudsterRegistrationJobInput, opts ...request.Option) (*StartFraudsterRegistrationJobOutput, error) {
  1914  	req, out := c.StartFraudsterRegistrationJobRequest(input)
  1915  	req.SetContext(ctx)
  1916  	req.ApplyOptions(opts...)
  1917  	return out, req.Send()
  1918  }
  1919  
  1920  const opStartSpeakerEnrollmentJob = "StartSpeakerEnrollmentJob"
  1921  
  1922  // StartSpeakerEnrollmentJobRequest generates a "aws/request.Request" representing the
  1923  // client's request for the StartSpeakerEnrollmentJob operation. The "output" return
  1924  // value will be populated with the request's response once the request completes
  1925  // successfully.
  1926  //
  1927  // Use "Send" method on the returned Request to send the API call to the service.
  1928  // the "output" return value is not valid until after Send returns without error.
  1929  //
  1930  // See StartSpeakerEnrollmentJob for more information on using the StartSpeakerEnrollmentJob
  1931  // API call, and error handling.
  1932  //
  1933  // This method is useful when you want to inject custom logic or configuration
  1934  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1935  //
  1936  //
  1937  //    // Example sending a request using the StartSpeakerEnrollmentJobRequest method.
  1938  //    req, resp := client.StartSpeakerEnrollmentJobRequest(params)
  1939  //
  1940  //    err := req.Send()
  1941  //    if err == nil { // resp is now filled
  1942  //        fmt.Println(resp)
  1943  //    }
  1944  //
  1945  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/StartSpeakerEnrollmentJob
  1946  func (c *VoiceID) StartSpeakerEnrollmentJobRequest(input *StartSpeakerEnrollmentJobInput) (req *request.Request, output *StartSpeakerEnrollmentJobOutput) {
  1947  	op := &request.Operation{
  1948  		Name:       opStartSpeakerEnrollmentJob,
  1949  		HTTPMethod: "POST",
  1950  		HTTPPath:   "/",
  1951  	}
  1952  
  1953  	if input == nil {
  1954  		input = &StartSpeakerEnrollmentJobInput{}
  1955  	}
  1956  
  1957  	output = &StartSpeakerEnrollmentJobOutput{}
  1958  	req = c.newRequest(op, input, output)
  1959  	return
  1960  }
  1961  
  1962  // StartSpeakerEnrollmentJob API operation for Amazon Voice ID.
  1963  //
  1964  // Starts a new batch speaker enrollment job using specified details.
  1965  //
  1966  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1967  // with awserr.Error's Code and Message methods to get detailed information about
  1968  // the error.
  1969  //
  1970  // See the AWS API reference guide for Amazon Voice ID's
  1971  // API operation StartSpeakerEnrollmentJob for usage and error information.
  1972  //
  1973  // Returned Error Types:
  1974  //   * ServiceQuotaExceededException
  1975  //   The request exceeded the service quota. Refer to Voice ID Service Quotas
  1976  //   (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas)
  1977  //   and try your request again.
  1978  //
  1979  //   * ResourceNotFoundException
  1980  //   The specified resource cannot be found. Check the ResourceType and error
  1981  //   message for more details.
  1982  //
  1983  //   * ValidationException
  1984  //   The request failed one or more validations; check the error message for more
  1985  //   details.
  1986  //
  1987  //   * ConflictException
  1988  //   The request failed due to a conflict. Check the ConflictType and error message
  1989  //   for more details.
  1990  //
  1991  //   * InternalServerException
  1992  //   The request failed due to an unknown error on the server side.
  1993  //
  1994  //   * ThrottlingException
  1995  //   The request was denied due to request throttling. Please slow down your request
  1996  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  1997  //   and try your request again.
  1998  //
  1999  //   * AccessDeniedException
  2000  //   You do not have sufficient permissions to perform this action. Check the
  2001  //   error message and try again.
  2002  //
  2003  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/StartSpeakerEnrollmentJob
  2004  func (c *VoiceID) StartSpeakerEnrollmentJob(input *StartSpeakerEnrollmentJobInput) (*StartSpeakerEnrollmentJobOutput, error) {
  2005  	req, out := c.StartSpeakerEnrollmentJobRequest(input)
  2006  	return out, req.Send()
  2007  }
  2008  
  2009  // StartSpeakerEnrollmentJobWithContext is the same as StartSpeakerEnrollmentJob with the addition of
  2010  // the ability to pass a context and additional request options.
  2011  //
  2012  // See StartSpeakerEnrollmentJob for details on how to use this API operation.
  2013  //
  2014  // The context must be non-nil and will be used for request cancellation. If
  2015  // the context is nil a panic will occur. In the future the SDK may create
  2016  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2017  // for more information on using Contexts.
  2018  func (c *VoiceID) StartSpeakerEnrollmentJobWithContext(ctx aws.Context, input *StartSpeakerEnrollmentJobInput, opts ...request.Option) (*StartSpeakerEnrollmentJobOutput, error) {
  2019  	req, out := c.StartSpeakerEnrollmentJobRequest(input)
  2020  	req.SetContext(ctx)
  2021  	req.ApplyOptions(opts...)
  2022  	return out, req.Send()
  2023  }
  2024  
  2025  const opTagResource = "TagResource"
  2026  
  2027  // TagResourceRequest generates a "aws/request.Request" representing the
  2028  // client's request for the TagResource operation. The "output" return
  2029  // value will be populated with the request's response once the request completes
  2030  // successfully.
  2031  //
  2032  // Use "Send" method on the returned Request to send the API call to the service.
  2033  // the "output" return value is not valid until after Send returns without error.
  2034  //
  2035  // See TagResource for more information on using the TagResource
  2036  // API call, and error handling.
  2037  //
  2038  // This method is useful when you want to inject custom logic or configuration
  2039  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2040  //
  2041  //
  2042  //    // Example sending a request using the TagResourceRequest method.
  2043  //    req, resp := client.TagResourceRequest(params)
  2044  //
  2045  //    err := req.Send()
  2046  //    if err == nil { // resp is now filled
  2047  //        fmt.Println(resp)
  2048  //    }
  2049  //
  2050  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/TagResource
  2051  func (c *VoiceID) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  2052  	op := &request.Operation{
  2053  		Name:       opTagResource,
  2054  		HTTPMethod: "POST",
  2055  		HTTPPath:   "/",
  2056  	}
  2057  
  2058  	if input == nil {
  2059  		input = &TagResourceInput{}
  2060  	}
  2061  
  2062  	output = &TagResourceOutput{}
  2063  	req = c.newRequest(op, input, output)
  2064  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2065  	return
  2066  }
  2067  
  2068  // TagResource API operation for Amazon Voice ID.
  2069  //
  2070  // Tags an Amazon Connect Voice ID resource with the provided list of tags.
  2071  //
  2072  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2073  // with awserr.Error's Code and Message methods to get detailed information about
  2074  // the error.
  2075  //
  2076  // See the AWS API reference guide for Amazon Voice ID's
  2077  // API operation TagResource for usage and error information.
  2078  //
  2079  // Returned Error Types:
  2080  //   * ResourceNotFoundException
  2081  //   The specified resource cannot be found. Check the ResourceType and error
  2082  //   message for more details.
  2083  //
  2084  //   * ValidationException
  2085  //   The request failed one or more validations; check the error message for more
  2086  //   details.
  2087  //
  2088  //   * ConflictException
  2089  //   The request failed due to a conflict. Check the ConflictType and error message
  2090  //   for more details.
  2091  //
  2092  //   * InternalServerException
  2093  //   The request failed due to an unknown error on the server side.
  2094  //
  2095  //   * ThrottlingException
  2096  //   The request was denied due to request throttling. Please slow down your request
  2097  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  2098  //   and try your request again.
  2099  //
  2100  //   * AccessDeniedException
  2101  //   You do not have sufficient permissions to perform this action. Check the
  2102  //   error message and try again.
  2103  //
  2104  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/TagResource
  2105  func (c *VoiceID) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  2106  	req, out := c.TagResourceRequest(input)
  2107  	return out, req.Send()
  2108  }
  2109  
  2110  // TagResourceWithContext is the same as TagResource with the addition of
  2111  // the ability to pass a context and additional request options.
  2112  //
  2113  // See TagResource for details on how to use this API operation.
  2114  //
  2115  // The context must be non-nil and will be used for request cancellation. If
  2116  // the context is nil a panic will occur. In the future the SDK may create
  2117  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2118  // for more information on using Contexts.
  2119  func (c *VoiceID) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  2120  	req, out := c.TagResourceRequest(input)
  2121  	req.SetContext(ctx)
  2122  	req.ApplyOptions(opts...)
  2123  	return out, req.Send()
  2124  }
  2125  
  2126  const opUntagResource = "UntagResource"
  2127  
  2128  // UntagResourceRequest generates a "aws/request.Request" representing the
  2129  // client's request for the UntagResource operation. The "output" return
  2130  // value will be populated with the request's response once the request completes
  2131  // successfully.
  2132  //
  2133  // Use "Send" method on the returned Request to send the API call to the service.
  2134  // the "output" return value is not valid until after Send returns without error.
  2135  //
  2136  // See UntagResource for more information on using the UntagResource
  2137  // API call, and error handling.
  2138  //
  2139  // This method is useful when you want to inject custom logic or configuration
  2140  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2141  //
  2142  //
  2143  //    // Example sending a request using the UntagResourceRequest method.
  2144  //    req, resp := client.UntagResourceRequest(params)
  2145  //
  2146  //    err := req.Send()
  2147  //    if err == nil { // resp is now filled
  2148  //        fmt.Println(resp)
  2149  //    }
  2150  //
  2151  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/UntagResource
  2152  func (c *VoiceID) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  2153  	op := &request.Operation{
  2154  		Name:       opUntagResource,
  2155  		HTTPMethod: "POST",
  2156  		HTTPPath:   "/",
  2157  	}
  2158  
  2159  	if input == nil {
  2160  		input = &UntagResourceInput{}
  2161  	}
  2162  
  2163  	output = &UntagResourceOutput{}
  2164  	req = c.newRequest(op, input, output)
  2165  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2166  	return
  2167  }
  2168  
  2169  // UntagResource API operation for Amazon Voice ID.
  2170  //
  2171  // Removes specified tags from a specified Amazon Connect Voice ID resource.
  2172  //
  2173  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2174  // with awserr.Error's Code and Message methods to get detailed information about
  2175  // the error.
  2176  //
  2177  // See the AWS API reference guide for Amazon Voice ID's
  2178  // API operation UntagResource for usage and error information.
  2179  //
  2180  // Returned Error Types:
  2181  //   * ResourceNotFoundException
  2182  //   The specified resource cannot be found. Check the ResourceType and error
  2183  //   message for more details.
  2184  //
  2185  //   * ValidationException
  2186  //   The request failed one or more validations; check the error message for more
  2187  //   details.
  2188  //
  2189  //   * ConflictException
  2190  //   The request failed due to a conflict. Check the ConflictType and error message
  2191  //   for more details.
  2192  //
  2193  //   * InternalServerException
  2194  //   The request failed due to an unknown error on the server side.
  2195  //
  2196  //   * ThrottlingException
  2197  //   The request was denied due to request throttling. Please slow down your request
  2198  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  2199  //   and try your request again.
  2200  //
  2201  //   * AccessDeniedException
  2202  //   You do not have sufficient permissions to perform this action. Check the
  2203  //   error message and try again.
  2204  //
  2205  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/UntagResource
  2206  func (c *VoiceID) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  2207  	req, out := c.UntagResourceRequest(input)
  2208  	return out, req.Send()
  2209  }
  2210  
  2211  // UntagResourceWithContext is the same as UntagResource with the addition of
  2212  // the ability to pass a context and additional request options.
  2213  //
  2214  // See UntagResource for details on how to use this API operation.
  2215  //
  2216  // The context must be non-nil and will be used for request cancellation. If
  2217  // the context is nil a panic will occur. In the future the SDK may create
  2218  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2219  // for more information on using Contexts.
  2220  func (c *VoiceID) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  2221  	req, out := c.UntagResourceRequest(input)
  2222  	req.SetContext(ctx)
  2223  	req.ApplyOptions(opts...)
  2224  	return out, req.Send()
  2225  }
  2226  
  2227  const opUpdateDomain = "UpdateDomain"
  2228  
  2229  // UpdateDomainRequest generates a "aws/request.Request" representing the
  2230  // client's request for the UpdateDomain operation. The "output" return
  2231  // value will be populated with the request's response once the request completes
  2232  // successfully.
  2233  //
  2234  // Use "Send" method on the returned Request to send the API call to the service.
  2235  // the "output" return value is not valid until after Send returns without error.
  2236  //
  2237  // See UpdateDomain for more information on using the UpdateDomain
  2238  // API call, and error handling.
  2239  //
  2240  // This method is useful when you want to inject custom logic or configuration
  2241  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2242  //
  2243  //
  2244  //    // Example sending a request using the UpdateDomainRequest method.
  2245  //    req, resp := client.UpdateDomainRequest(params)
  2246  //
  2247  //    err := req.Send()
  2248  //    if err == nil { // resp is now filled
  2249  //        fmt.Println(resp)
  2250  //    }
  2251  //
  2252  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/UpdateDomain
  2253  func (c *VoiceID) UpdateDomainRequest(input *UpdateDomainInput) (req *request.Request, output *UpdateDomainOutput) {
  2254  	op := &request.Operation{
  2255  		Name:       opUpdateDomain,
  2256  		HTTPMethod: "POST",
  2257  		HTTPPath:   "/",
  2258  	}
  2259  
  2260  	if input == nil {
  2261  		input = &UpdateDomainInput{}
  2262  	}
  2263  
  2264  	output = &UpdateDomainOutput{}
  2265  	req = c.newRequest(op, input, output)
  2266  	return
  2267  }
  2268  
  2269  // UpdateDomain API operation for Amazon Voice ID.
  2270  //
  2271  // Updates the specified domain. This API has clobber behavior, and clears and
  2272  // replaces all attributes. If an optional field, such as 'Description' is not
  2273  // provided, it is removed from the domain.
  2274  //
  2275  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2276  // with awserr.Error's Code and Message methods to get detailed information about
  2277  // the error.
  2278  //
  2279  // See the AWS API reference guide for Amazon Voice ID's
  2280  // API operation UpdateDomain for usage and error information.
  2281  //
  2282  // Returned Error Types:
  2283  //   * ResourceNotFoundException
  2284  //   The specified resource cannot be found. Check the ResourceType and error
  2285  //   message for more details.
  2286  //
  2287  //   * ValidationException
  2288  //   The request failed one or more validations; check the error message for more
  2289  //   details.
  2290  //
  2291  //   * ConflictException
  2292  //   The request failed due to a conflict. Check the ConflictType and error message
  2293  //   for more details.
  2294  //
  2295  //   * InternalServerException
  2296  //   The request failed due to an unknown error on the server side.
  2297  //
  2298  //   * ThrottlingException
  2299  //   The request was denied due to request throttling. Please slow down your request
  2300  //   rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  2301  //   and try your request again.
  2302  //
  2303  //   * AccessDeniedException
  2304  //   You do not have sufficient permissions to perform this action. Check the
  2305  //   error message and try again.
  2306  //
  2307  // See also, https://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/UpdateDomain
  2308  func (c *VoiceID) UpdateDomain(input *UpdateDomainInput) (*UpdateDomainOutput, error) {
  2309  	req, out := c.UpdateDomainRequest(input)
  2310  	return out, req.Send()
  2311  }
  2312  
  2313  // UpdateDomainWithContext is the same as UpdateDomain with the addition of
  2314  // the ability to pass a context and additional request options.
  2315  //
  2316  // See UpdateDomain for details on how to use this API operation.
  2317  //
  2318  // The context must be non-nil and will be used for request cancellation. If
  2319  // the context is nil a panic will occur. In the future the SDK may create
  2320  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2321  // for more information on using Contexts.
  2322  func (c *VoiceID) UpdateDomainWithContext(ctx aws.Context, input *UpdateDomainInput, opts ...request.Option) (*UpdateDomainOutput, error) {
  2323  	req, out := c.UpdateDomainRequest(input)
  2324  	req.SetContext(ctx)
  2325  	req.ApplyOptions(opts...)
  2326  	return out, req.Send()
  2327  }
  2328  
  2329  // You do not have sufficient permissions to perform this action. Check the
  2330  // error message and try again.
  2331  type AccessDeniedException struct {
  2332  	_            struct{}                  `type:"structure"`
  2333  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2334  
  2335  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  2336  }
  2337  
  2338  // String returns the string representation.
  2339  //
  2340  // API parameter values that are decorated as "sensitive" in the API will not
  2341  // be included in the string output. The member name will be present, but the
  2342  // value will be replaced with "sensitive".
  2343  func (s AccessDeniedException) String() string {
  2344  	return awsutil.Prettify(s)
  2345  }
  2346  
  2347  // GoString returns the string representation.
  2348  //
  2349  // API parameter values that are decorated as "sensitive" in the API will not
  2350  // be included in the string output. The member name will be present, but the
  2351  // value will be replaced with "sensitive".
  2352  func (s AccessDeniedException) GoString() string {
  2353  	return s.String()
  2354  }
  2355  
  2356  func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
  2357  	return &AccessDeniedException{
  2358  		RespMetadata: v,
  2359  	}
  2360  }
  2361  
  2362  // Code returns the exception type name.
  2363  func (s *AccessDeniedException) Code() string {
  2364  	return "AccessDeniedException"
  2365  }
  2366  
  2367  // Message returns the exception's message.
  2368  func (s *AccessDeniedException) Message() string {
  2369  	if s.Message_ != nil {
  2370  		return *s.Message_
  2371  	}
  2372  	return ""
  2373  }
  2374  
  2375  // OrigErr always returns nil, satisfies awserr.Error interface.
  2376  func (s *AccessDeniedException) OrigErr() error {
  2377  	return nil
  2378  }
  2379  
  2380  func (s *AccessDeniedException) Error() string {
  2381  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2382  }
  2383  
  2384  // Status code returns the HTTP status code for the request's response error.
  2385  func (s *AccessDeniedException) StatusCode() int {
  2386  	return s.RespMetadata.StatusCode
  2387  }
  2388  
  2389  // RequestID returns the service's response RequestID for request.
  2390  func (s *AccessDeniedException) RequestID() string {
  2391  	return s.RespMetadata.RequestID
  2392  }
  2393  
  2394  // The configuration used to authenticate a speaker during a session.
  2395  type AuthenticationConfiguration struct {
  2396  	_ struct{} `type:"structure"`
  2397  
  2398  	// The minimum threshold needed to successfully authenticate a speaker.
  2399  	//
  2400  	// AcceptanceThreshold is a required field
  2401  	AcceptanceThreshold *int64 `type:"integer" required:"true"`
  2402  }
  2403  
  2404  // String returns the string representation.
  2405  //
  2406  // API parameter values that are decorated as "sensitive" in the API will not
  2407  // be included in the string output. The member name will be present, but the
  2408  // value will be replaced with "sensitive".
  2409  func (s AuthenticationConfiguration) String() string {
  2410  	return awsutil.Prettify(s)
  2411  }
  2412  
  2413  // GoString returns the string representation.
  2414  //
  2415  // API parameter values that are decorated as "sensitive" in the API will not
  2416  // be included in the string output. The member name will be present, but the
  2417  // value will be replaced with "sensitive".
  2418  func (s AuthenticationConfiguration) GoString() string {
  2419  	return s.String()
  2420  }
  2421  
  2422  // SetAcceptanceThreshold sets the AcceptanceThreshold field's value.
  2423  func (s *AuthenticationConfiguration) SetAcceptanceThreshold(v int64) *AuthenticationConfiguration {
  2424  	s.AcceptanceThreshold = &v
  2425  	return s
  2426  }
  2427  
  2428  // The authentication result produced by Voice ID, processed against the current
  2429  // session state and streamed audio of the speaker.
  2430  type AuthenticationResult struct {
  2431  	_ struct{} `type:"structure"`
  2432  
  2433  	// A timestamp indicating when audio aggregation ended for this authentication
  2434  	// result.
  2435  	AudioAggregationEndedAt *time.Time `type:"timestamp"`
  2436  
  2437  	// A timestamp indicating when audio aggregation started for this authentication
  2438  	// result.
  2439  	AudioAggregationStartedAt *time.Time `type:"timestamp"`
  2440  
  2441  	// The unique identifier for this authentication result. Because there can be
  2442  	// multiple authentications for a given session, this field helps to identify
  2443  	// if the returned result is from a previous streaming activity or a new result.
  2444  	// Note that in absence of any new streaming activity, AcceptanceThreshold changes,
  2445  	// or SpeakerId changes, Voice ID always returns cached Authentication Result
  2446  	// for this API.
  2447  	AuthenticationResultId *string `min:"22" type:"string"`
  2448  
  2449  	// The AuthenticationConfiguration used to generate this authentication result.
  2450  	Configuration *AuthenticationConfiguration `type:"structure"`
  2451  
  2452  	// The client-provided identifier for the speaker whose authentication result
  2453  	// is produced. Only present if a SpeakerId is provided for the session.
  2454  	//
  2455  	// CustomerSpeakerId is a sensitive parameter and its value will be
  2456  	// replaced with "sensitive" in string returned by AuthenticationResult's
  2457  	// String and GoString methods.
  2458  	CustomerSpeakerId *string `min:"1" type:"string" sensitive:"true"`
  2459  
  2460  	// The authentication decision produced by Voice ID, processed against the current
  2461  	// session state and streamed audio of the speaker.
  2462  	Decision *string `type:"string" enum:"AuthenticationDecision"`
  2463  
  2464  	// The service-generated identifier for the speaker whose authentication result
  2465  	// is produced.
  2466  	GeneratedSpeakerId *string `min:"25" type:"string"`
  2467  
  2468  	// The authentication score for the speaker whose authentication result is produced.
  2469  	// This value is only present if the authentication decision is either ACCEPT
  2470  	// or REJECT.
  2471  	Score *int64 `type:"integer"`
  2472  }
  2473  
  2474  // String returns the string representation.
  2475  //
  2476  // API parameter values that are decorated as "sensitive" in the API will not
  2477  // be included in the string output. The member name will be present, but the
  2478  // value will be replaced with "sensitive".
  2479  func (s AuthenticationResult) String() string {
  2480  	return awsutil.Prettify(s)
  2481  }
  2482  
  2483  // GoString returns the string representation.
  2484  //
  2485  // API parameter values that are decorated as "sensitive" in the API will not
  2486  // be included in the string output. The member name will be present, but the
  2487  // value will be replaced with "sensitive".
  2488  func (s AuthenticationResult) GoString() string {
  2489  	return s.String()
  2490  }
  2491  
  2492  // SetAudioAggregationEndedAt sets the AudioAggregationEndedAt field's value.
  2493  func (s *AuthenticationResult) SetAudioAggregationEndedAt(v time.Time) *AuthenticationResult {
  2494  	s.AudioAggregationEndedAt = &v
  2495  	return s
  2496  }
  2497  
  2498  // SetAudioAggregationStartedAt sets the AudioAggregationStartedAt field's value.
  2499  func (s *AuthenticationResult) SetAudioAggregationStartedAt(v time.Time) *AuthenticationResult {
  2500  	s.AudioAggregationStartedAt = &v
  2501  	return s
  2502  }
  2503  
  2504  // SetAuthenticationResultId sets the AuthenticationResultId field's value.
  2505  func (s *AuthenticationResult) SetAuthenticationResultId(v string) *AuthenticationResult {
  2506  	s.AuthenticationResultId = &v
  2507  	return s
  2508  }
  2509  
  2510  // SetConfiguration sets the Configuration field's value.
  2511  func (s *AuthenticationResult) SetConfiguration(v *AuthenticationConfiguration) *AuthenticationResult {
  2512  	s.Configuration = v
  2513  	return s
  2514  }
  2515  
  2516  // SetCustomerSpeakerId sets the CustomerSpeakerId field's value.
  2517  func (s *AuthenticationResult) SetCustomerSpeakerId(v string) *AuthenticationResult {
  2518  	s.CustomerSpeakerId = &v
  2519  	return s
  2520  }
  2521  
  2522  // SetDecision sets the Decision field's value.
  2523  func (s *AuthenticationResult) SetDecision(v string) *AuthenticationResult {
  2524  	s.Decision = &v
  2525  	return s
  2526  }
  2527  
  2528  // SetGeneratedSpeakerId sets the GeneratedSpeakerId field's value.
  2529  func (s *AuthenticationResult) SetGeneratedSpeakerId(v string) *AuthenticationResult {
  2530  	s.GeneratedSpeakerId = &v
  2531  	return s
  2532  }
  2533  
  2534  // SetScore sets the Score field's value.
  2535  func (s *AuthenticationResult) SetScore(v int64) *AuthenticationResult {
  2536  	s.Score = &v
  2537  	return s
  2538  }
  2539  
  2540  // The request failed due to a conflict. Check the ConflictType and error message
  2541  // for more details.
  2542  type ConflictException struct {
  2543  	_            struct{}                  `type:"structure"`
  2544  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2545  
  2546  	// The type of conflict which caused a ConflictException. Possible types and
  2547  	// the corresponding error messages are as follows:
  2548  	//
  2549  	//    * DOMAIN_NOT_ACTIVE: The domain is not active.
  2550  	//
  2551  	//    * CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: You cannot change the speaker
  2552  	//    ID after an enrollment has been requested.
  2553  	//
  2554  	//    * ENROLLMENT_ALREADY_EXISTS: There is already an enrollment for this session.
  2555  	//
  2556  	//    * SPEAKER_NOT_SET: You must set the speaker ID before requesting an enrollment.
  2557  	//
  2558  	//    * SPEAKER_OPTED_OUT: You cannot request an enrollment for an opted out
  2559  	//    speaker.
  2560  	//
  2561  	//    * CONCURRENT_CHANGES: The request could not be processed as the resource
  2562  	//    was modified by another request during execution.
  2563  	ConflictType *string `type:"string" enum:"ConflictType"`
  2564  
  2565  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  2566  }
  2567  
  2568  // String returns the string representation.
  2569  //
  2570  // API parameter values that are decorated as "sensitive" in the API will not
  2571  // be included in the string output. The member name will be present, but the
  2572  // value will be replaced with "sensitive".
  2573  func (s ConflictException) String() string {
  2574  	return awsutil.Prettify(s)
  2575  }
  2576  
  2577  // GoString returns the string representation.
  2578  //
  2579  // API parameter values that are decorated as "sensitive" in the API will not
  2580  // be included in the string output. The member name will be present, but the
  2581  // value will be replaced with "sensitive".
  2582  func (s ConflictException) GoString() string {
  2583  	return s.String()
  2584  }
  2585  
  2586  func newErrorConflictException(v protocol.ResponseMetadata) error {
  2587  	return &ConflictException{
  2588  		RespMetadata: v,
  2589  	}
  2590  }
  2591  
  2592  // Code returns the exception type name.
  2593  func (s *ConflictException) Code() string {
  2594  	return "ConflictException"
  2595  }
  2596  
  2597  // Message returns the exception's message.
  2598  func (s *ConflictException) Message() string {
  2599  	if s.Message_ != nil {
  2600  		return *s.Message_
  2601  	}
  2602  	return ""
  2603  }
  2604  
  2605  // OrigErr always returns nil, satisfies awserr.Error interface.
  2606  func (s *ConflictException) OrigErr() error {
  2607  	return nil
  2608  }
  2609  
  2610  func (s *ConflictException) Error() string {
  2611  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  2612  }
  2613  
  2614  // Status code returns the HTTP status code for the request's response error.
  2615  func (s *ConflictException) StatusCode() int {
  2616  	return s.RespMetadata.StatusCode
  2617  }
  2618  
  2619  // RequestID returns the service's response RequestID for request.
  2620  func (s *ConflictException) RequestID() string {
  2621  	return s.RespMetadata.RequestID
  2622  }
  2623  
  2624  type CreateDomainInput struct {
  2625  	_ struct{} `type:"structure"`
  2626  
  2627  	// The idempotency token for creating a new domain. If not provided, Amazon
  2628  	// Web Services SDK populates this field.
  2629  	ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
  2630  
  2631  	// A brief description of this domain.
  2632  	//
  2633  	// Description is a sensitive parameter and its value will be
  2634  	// replaced with "sensitive" in string returned by CreateDomainInput's
  2635  	// String and GoString methods.
  2636  	Description *string `min:"1" type:"string" sensitive:"true"`
  2637  
  2638  	// The name of the domain.
  2639  	//
  2640  	// Name is a sensitive parameter and its value will be
  2641  	// replaced with "sensitive" in string returned by CreateDomainInput's
  2642  	// String and GoString methods.
  2643  	//
  2644  	// Name is a required field
  2645  	Name *string `min:"1" type:"string" required:"true" sensitive:"true"`
  2646  
  2647  	// The configuration, containing the KMS Key Identifier, to be used by Voice
  2648  	// ID for the server-side encryption of your data. Refer to Amazon Connect VoiceID
  2649  	// encryption at rest (https://docs.aws.amazon.com/connect/latest/adminguide/encryption-at-rest.html#encryption-at-rest-voiceid)
  2650  	// for more details on how the KMS Key is used.
  2651  	//
  2652  	// ServerSideEncryptionConfiguration is a required field
  2653  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure" required:"true"`
  2654  
  2655  	// A list of tags you want added to the domain.
  2656  	Tags []*Tag `type:"list"`
  2657  }
  2658  
  2659  // String returns the string representation.
  2660  //
  2661  // API parameter values that are decorated as "sensitive" in the API will not
  2662  // be included in the string output. The member name will be present, but the
  2663  // value will be replaced with "sensitive".
  2664  func (s CreateDomainInput) String() string {
  2665  	return awsutil.Prettify(s)
  2666  }
  2667  
  2668  // GoString returns the string representation.
  2669  //
  2670  // API parameter values that are decorated as "sensitive" in the API will not
  2671  // be included in the string output. The member name will be present, but the
  2672  // value will be replaced with "sensitive".
  2673  func (s CreateDomainInput) GoString() string {
  2674  	return s.String()
  2675  }
  2676  
  2677  // Validate inspects the fields of the type to determine if they are valid.
  2678  func (s *CreateDomainInput) Validate() error {
  2679  	invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"}
  2680  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  2681  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  2682  	}
  2683  	if s.Description != nil && len(*s.Description) < 1 {
  2684  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  2685  	}
  2686  	if s.Name == nil {
  2687  		invalidParams.Add(request.NewErrParamRequired("Name"))
  2688  	}
  2689  	if s.Name != nil && len(*s.Name) < 1 {
  2690  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2691  	}
  2692  	if s.ServerSideEncryptionConfiguration == nil {
  2693  		invalidParams.Add(request.NewErrParamRequired("ServerSideEncryptionConfiguration"))
  2694  	}
  2695  	if s.ServerSideEncryptionConfiguration != nil {
  2696  		if err := s.ServerSideEncryptionConfiguration.Validate(); err != nil {
  2697  			invalidParams.AddNested("ServerSideEncryptionConfiguration", err.(request.ErrInvalidParams))
  2698  		}
  2699  	}
  2700  	if s.Tags != nil {
  2701  		for i, v := range s.Tags {
  2702  			if v == nil {
  2703  				continue
  2704  			}
  2705  			if err := v.Validate(); err != nil {
  2706  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2707  			}
  2708  		}
  2709  	}
  2710  
  2711  	if invalidParams.Len() > 0 {
  2712  		return invalidParams
  2713  	}
  2714  	return nil
  2715  }
  2716  
  2717  // SetClientToken sets the ClientToken field's value.
  2718  func (s *CreateDomainInput) SetClientToken(v string) *CreateDomainInput {
  2719  	s.ClientToken = &v
  2720  	return s
  2721  }
  2722  
  2723  // SetDescription sets the Description field's value.
  2724  func (s *CreateDomainInput) SetDescription(v string) *CreateDomainInput {
  2725  	s.Description = &v
  2726  	return s
  2727  }
  2728  
  2729  // SetName sets the Name field's value.
  2730  func (s *CreateDomainInput) SetName(v string) *CreateDomainInput {
  2731  	s.Name = &v
  2732  	return s
  2733  }
  2734  
  2735  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  2736  func (s *CreateDomainInput) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *CreateDomainInput {
  2737  	s.ServerSideEncryptionConfiguration = v
  2738  	return s
  2739  }
  2740  
  2741  // SetTags sets the Tags field's value.
  2742  func (s *CreateDomainInput) SetTags(v []*Tag) *CreateDomainInput {
  2743  	s.Tags = v
  2744  	return s
  2745  }
  2746  
  2747  type CreateDomainOutput struct {
  2748  	_ struct{} `type:"structure"`
  2749  
  2750  	// Information about the newly created domain.
  2751  	Domain *Domain `type:"structure"`
  2752  }
  2753  
  2754  // String returns the string representation.
  2755  //
  2756  // API parameter values that are decorated as "sensitive" in the API will not
  2757  // be included in the string output. The member name will be present, but the
  2758  // value will be replaced with "sensitive".
  2759  func (s CreateDomainOutput) String() string {
  2760  	return awsutil.Prettify(s)
  2761  }
  2762  
  2763  // GoString returns the string representation.
  2764  //
  2765  // API parameter values that are decorated as "sensitive" in the API will not
  2766  // be included in the string output. The member name will be present, but the
  2767  // value will be replaced with "sensitive".
  2768  func (s CreateDomainOutput) GoString() string {
  2769  	return s.String()
  2770  }
  2771  
  2772  // SetDomain sets the Domain field's value.
  2773  func (s *CreateDomainOutput) SetDomain(v *Domain) *CreateDomainOutput {
  2774  	s.Domain = v
  2775  	return s
  2776  }
  2777  
  2778  type DeleteDomainInput struct {
  2779  	_ struct{} `type:"structure"`
  2780  
  2781  	// The identifier of the domain you want to delete.
  2782  	//
  2783  	// DomainId is a required field
  2784  	DomainId *string `min:"22" type:"string" required:"true"`
  2785  }
  2786  
  2787  // String returns the string representation.
  2788  //
  2789  // API parameter values that are decorated as "sensitive" in the API will not
  2790  // be included in the string output. The member name will be present, but the
  2791  // value will be replaced with "sensitive".
  2792  func (s DeleteDomainInput) String() string {
  2793  	return awsutil.Prettify(s)
  2794  }
  2795  
  2796  // GoString returns the string representation.
  2797  //
  2798  // API parameter values that are decorated as "sensitive" in the API will not
  2799  // be included in the string output. The member name will be present, but the
  2800  // value will be replaced with "sensitive".
  2801  func (s DeleteDomainInput) GoString() string {
  2802  	return s.String()
  2803  }
  2804  
  2805  // Validate inspects the fields of the type to determine if they are valid.
  2806  func (s *DeleteDomainInput) Validate() error {
  2807  	invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"}
  2808  	if s.DomainId == nil {
  2809  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  2810  	}
  2811  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  2812  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  2813  	}
  2814  
  2815  	if invalidParams.Len() > 0 {
  2816  		return invalidParams
  2817  	}
  2818  	return nil
  2819  }
  2820  
  2821  // SetDomainId sets the DomainId field's value.
  2822  func (s *DeleteDomainInput) SetDomainId(v string) *DeleteDomainInput {
  2823  	s.DomainId = &v
  2824  	return s
  2825  }
  2826  
  2827  type DeleteDomainOutput struct {
  2828  	_ struct{} `type:"structure"`
  2829  }
  2830  
  2831  // String returns the string representation.
  2832  //
  2833  // API parameter values that are decorated as "sensitive" in the API will not
  2834  // be included in the string output. The member name will be present, but the
  2835  // value will be replaced with "sensitive".
  2836  func (s DeleteDomainOutput) String() string {
  2837  	return awsutil.Prettify(s)
  2838  }
  2839  
  2840  // GoString returns the string representation.
  2841  //
  2842  // API parameter values that are decorated as "sensitive" in the API will not
  2843  // be included in the string output. The member name will be present, but the
  2844  // value will be replaced with "sensitive".
  2845  func (s DeleteDomainOutput) GoString() string {
  2846  	return s.String()
  2847  }
  2848  
  2849  type DeleteFraudsterInput struct {
  2850  	_ struct{} `type:"structure"`
  2851  
  2852  	// The identifier of the domain containing the fraudster.
  2853  	//
  2854  	// DomainId is a required field
  2855  	DomainId *string `min:"22" type:"string" required:"true"`
  2856  
  2857  	// The identifier of the fraudster you want to delete.
  2858  	//
  2859  	// FraudsterId is a sensitive parameter and its value will be
  2860  	// replaced with "sensitive" in string returned by DeleteFraudsterInput's
  2861  	// String and GoString methods.
  2862  	//
  2863  	// FraudsterId is a required field
  2864  	FraudsterId *string `min:"25" type:"string" required:"true" sensitive:"true"`
  2865  }
  2866  
  2867  // String returns the string representation.
  2868  //
  2869  // API parameter values that are decorated as "sensitive" in the API will not
  2870  // be included in the string output. The member name will be present, but the
  2871  // value will be replaced with "sensitive".
  2872  func (s DeleteFraudsterInput) String() string {
  2873  	return awsutil.Prettify(s)
  2874  }
  2875  
  2876  // GoString returns the string representation.
  2877  //
  2878  // API parameter values that are decorated as "sensitive" in the API will not
  2879  // be included in the string output. The member name will be present, but the
  2880  // value will be replaced with "sensitive".
  2881  func (s DeleteFraudsterInput) GoString() string {
  2882  	return s.String()
  2883  }
  2884  
  2885  // Validate inspects the fields of the type to determine if they are valid.
  2886  func (s *DeleteFraudsterInput) Validate() error {
  2887  	invalidParams := request.ErrInvalidParams{Context: "DeleteFraudsterInput"}
  2888  	if s.DomainId == nil {
  2889  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  2890  	}
  2891  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  2892  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  2893  	}
  2894  	if s.FraudsterId == nil {
  2895  		invalidParams.Add(request.NewErrParamRequired("FraudsterId"))
  2896  	}
  2897  	if s.FraudsterId != nil && len(*s.FraudsterId) < 25 {
  2898  		invalidParams.Add(request.NewErrParamMinLen("FraudsterId", 25))
  2899  	}
  2900  
  2901  	if invalidParams.Len() > 0 {
  2902  		return invalidParams
  2903  	}
  2904  	return nil
  2905  }
  2906  
  2907  // SetDomainId sets the DomainId field's value.
  2908  func (s *DeleteFraudsterInput) SetDomainId(v string) *DeleteFraudsterInput {
  2909  	s.DomainId = &v
  2910  	return s
  2911  }
  2912  
  2913  // SetFraudsterId sets the FraudsterId field's value.
  2914  func (s *DeleteFraudsterInput) SetFraudsterId(v string) *DeleteFraudsterInput {
  2915  	s.FraudsterId = &v
  2916  	return s
  2917  }
  2918  
  2919  type DeleteFraudsterOutput struct {
  2920  	_ struct{} `type:"structure"`
  2921  }
  2922  
  2923  // String returns the string representation.
  2924  //
  2925  // API parameter values that are decorated as "sensitive" in the API will not
  2926  // be included in the string output. The member name will be present, but the
  2927  // value will be replaced with "sensitive".
  2928  func (s DeleteFraudsterOutput) String() string {
  2929  	return awsutil.Prettify(s)
  2930  }
  2931  
  2932  // GoString returns the string representation.
  2933  //
  2934  // API parameter values that are decorated as "sensitive" in the API will not
  2935  // be included in the string output. The member name will be present, but the
  2936  // value will be replaced with "sensitive".
  2937  func (s DeleteFraudsterOutput) GoString() string {
  2938  	return s.String()
  2939  }
  2940  
  2941  type DeleteSpeakerInput struct {
  2942  	_ struct{} `type:"structure"`
  2943  
  2944  	// The identifier of the domain containing the speaker.
  2945  	//
  2946  	// DomainId is a required field
  2947  	DomainId *string `min:"22" type:"string" required:"true"`
  2948  
  2949  	// The identifier of the speaker you want to delete.
  2950  	//
  2951  	// SpeakerId is a sensitive parameter and its value will be
  2952  	// replaced with "sensitive" in string returned by DeleteSpeakerInput's
  2953  	// String and GoString methods.
  2954  	//
  2955  	// SpeakerId is a required field
  2956  	SpeakerId *string `min:"1" type:"string" required:"true" sensitive:"true"`
  2957  }
  2958  
  2959  // String returns the string representation.
  2960  //
  2961  // API parameter values that are decorated as "sensitive" in the API will not
  2962  // be included in the string output. The member name will be present, but the
  2963  // value will be replaced with "sensitive".
  2964  func (s DeleteSpeakerInput) String() string {
  2965  	return awsutil.Prettify(s)
  2966  }
  2967  
  2968  // GoString returns the string representation.
  2969  //
  2970  // API parameter values that are decorated as "sensitive" in the API will not
  2971  // be included in the string output. The member name will be present, but the
  2972  // value will be replaced with "sensitive".
  2973  func (s DeleteSpeakerInput) GoString() string {
  2974  	return s.String()
  2975  }
  2976  
  2977  // Validate inspects the fields of the type to determine if they are valid.
  2978  func (s *DeleteSpeakerInput) Validate() error {
  2979  	invalidParams := request.ErrInvalidParams{Context: "DeleteSpeakerInput"}
  2980  	if s.DomainId == nil {
  2981  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  2982  	}
  2983  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  2984  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  2985  	}
  2986  	if s.SpeakerId == nil {
  2987  		invalidParams.Add(request.NewErrParamRequired("SpeakerId"))
  2988  	}
  2989  	if s.SpeakerId != nil && len(*s.SpeakerId) < 1 {
  2990  		invalidParams.Add(request.NewErrParamMinLen("SpeakerId", 1))
  2991  	}
  2992  
  2993  	if invalidParams.Len() > 0 {
  2994  		return invalidParams
  2995  	}
  2996  	return nil
  2997  }
  2998  
  2999  // SetDomainId sets the DomainId field's value.
  3000  func (s *DeleteSpeakerInput) SetDomainId(v string) *DeleteSpeakerInput {
  3001  	s.DomainId = &v
  3002  	return s
  3003  }
  3004  
  3005  // SetSpeakerId sets the SpeakerId field's value.
  3006  func (s *DeleteSpeakerInput) SetSpeakerId(v string) *DeleteSpeakerInput {
  3007  	s.SpeakerId = &v
  3008  	return s
  3009  }
  3010  
  3011  type DeleteSpeakerOutput struct {
  3012  	_ struct{} `type:"structure"`
  3013  }
  3014  
  3015  // String returns the string representation.
  3016  //
  3017  // API parameter values that are decorated as "sensitive" in the API will not
  3018  // be included in the string output. The member name will be present, but the
  3019  // value will be replaced with "sensitive".
  3020  func (s DeleteSpeakerOutput) String() string {
  3021  	return awsutil.Prettify(s)
  3022  }
  3023  
  3024  // GoString returns the string representation.
  3025  //
  3026  // API parameter values that are decorated as "sensitive" in the API will not
  3027  // be included in the string output. The member name will be present, but the
  3028  // value will be replaced with "sensitive".
  3029  func (s DeleteSpeakerOutput) GoString() string {
  3030  	return s.String()
  3031  }
  3032  
  3033  type DescribeDomainInput struct {
  3034  	_ struct{} `type:"structure"`
  3035  
  3036  	// The identifier of the domain you are describing.
  3037  	//
  3038  	// DomainId is a required field
  3039  	DomainId *string `min:"22" type:"string" required:"true"`
  3040  }
  3041  
  3042  // String returns the string representation.
  3043  //
  3044  // API parameter values that are decorated as "sensitive" in the API will not
  3045  // be included in the string output. The member name will be present, but the
  3046  // value will be replaced with "sensitive".
  3047  func (s DescribeDomainInput) String() string {
  3048  	return awsutil.Prettify(s)
  3049  }
  3050  
  3051  // GoString returns the string representation.
  3052  //
  3053  // API parameter values that are decorated as "sensitive" in the API will not
  3054  // be included in the string output. The member name will be present, but the
  3055  // value will be replaced with "sensitive".
  3056  func (s DescribeDomainInput) GoString() string {
  3057  	return s.String()
  3058  }
  3059  
  3060  // Validate inspects the fields of the type to determine if they are valid.
  3061  func (s *DescribeDomainInput) Validate() error {
  3062  	invalidParams := request.ErrInvalidParams{Context: "DescribeDomainInput"}
  3063  	if s.DomainId == nil {
  3064  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  3065  	}
  3066  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  3067  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  3068  	}
  3069  
  3070  	if invalidParams.Len() > 0 {
  3071  		return invalidParams
  3072  	}
  3073  	return nil
  3074  }
  3075  
  3076  // SetDomainId sets the DomainId field's value.
  3077  func (s *DescribeDomainInput) SetDomainId(v string) *DescribeDomainInput {
  3078  	s.DomainId = &v
  3079  	return s
  3080  }
  3081  
  3082  type DescribeDomainOutput struct {
  3083  	_ struct{} `type:"structure"`
  3084  
  3085  	// Information about the specified domain.
  3086  	Domain *Domain `type:"structure"`
  3087  }
  3088  
  3089  // String returns the string representation.
  3090  //
  3091  // API parameter values that are decorated as "sensitive" in the API will not
  3092  // be included in the string output. The member name will be present, but the
  3093  // value will be replaced with "sensitive".
  3094  func (s DescribeDomainOutput) String() string {
  3095  	return awsutil.Prettify(s)
  3096  }
  3097  
  3098  // GoString returns the string representation.
  3099  //
  3100  // API parameter values that are decorated as "sensitive" in the API will not
  3101  // be included in the string output. The member name will be present, but the
  3102  // value will be replaced with "sensitive".
  3103  func (s DescribeDomainOutput) GoString() string {
  3104  	return s.String()
  3105  }
  3106  
  3107  // SetDomain sets the Domain field's value.
  3108  func (s *DescribeDomainOutput) SetDomain(v *Domain) *DescribeDomainOutput {
  3109  	s.Domain = v
  3110  	return s
  3111  }
  3112  
  3113  type DescribeFraudsterInput struct {
  3114  	_ struct{} `type:"structure"`
  3115  
  3116  	// The identifier of the domain containing the fraudster.
  3117  	//
  3118  	// DomainId is a required field
  3119  	DomainId *string `min:"22" type:"string" required:"true"`
  3120  
  3121  	// The identifier of the fraudster you are describing.
  3122  	//
  3123  	// FraudsterId is a sensitive parameter and its value will be
  3124  	// replaced with "sensitive" in string returned by DescribeFraudsterInput's
  3125  	// String and GoString methods.
  3126  	//
  3127  	// FraudsterId is a required field
  3128  	FraudsterId *string `min:"25" type:"string" required:"true" sensitive:"true"`
  3129  }
  3130  
  3131  // String returns the string representation.
  3132  //
  3133  // API parameter values that are decorated as "sensitive" in the API will not
  3134  // be included in the string output. The member name will be present, but the
  3135  // value will be replaced with "sensitive".
  3136  func (s DescribeFraudsterInput) String() string {
  3137  	return awsutil.Prettify(s)
  3138  }
  3139  
  3140  // GoString returns the string representation.
  3141  //
  3142  // API parameter values that are decorated as "sensitive" in the API will not
  3143  // be included in the string output. The member name will be present, but the
  3144  // value will be replaced with "sensitive".
  3145  func (s DescribeFraudsterInput) GoString() string {
  3146  	return s.String()
  3147  }
  3148  
  3149  // Validate inspects the fields of the type to determine if they are valid.
  3150  func (s *DescribeFraudsterInput) Validate() error {
  3151  	invalidParams := request.ErrInvalidParams{Context: "DescribeFraudsterInput"}
  3152  	if s.DomainId == nil {
  3153  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  3154  	}
  3155  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  3156  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  3157  	}
  3158  	if s.FraudsterId == nil {
  3159  		invalidParams.Add(request.NewErrParamRequired("FraudsterId"))
  3160  	}
  3161  	if s.FraudsterId != nil && len(*s.FraudsterId) < 25 {
  3162  		invalidParams.Add(request.NewErrParamMinLen("FraudsterId", 25))
  3163  	}
  3164  
  3165  	if invalidParams.Len() > 0 {
  3166  		return invalidParams
  3167  	}
  3168  	return nil
  3169  }
  3170  
  3171  // SetDomainId sets the DomainId field's value.
  3172  func (s *DescribeFraudsterInput) SetDomainId(v string) *DescribeFraudsterInput {
  3173  	s.DomainId = &v
  3174  	return s
  3175  }
  3176  
  3177  // SetFraudsterId sets the FraudsterId field's value.
  3178  func (s *DescribeFraudsterInput) SetFraudsterId(v string) *DescribeFraudsterInput {
  3179  	s.FraudsterId = &v
  3180  	return s
  3181  }
  3182  
  3183  type DescribeFraudsterOutput struct {
  3184  	_ struct{} `type:"structure"`
  3185  
  3186  	// Information about the specified fraudster.
  3187  	Fraudster *Fraudster `type:"structure"`
  3188  }
  3189  
  3190  // String returns the string representation.
  3191  //
  3192  // API parameter values that are decorated as "sensitive" in the API will not
  3193  // be included in the string output. The member name will be present, but the
  3194  // value will be replaced with "sensitive".
  3195  func (s DescribeFraudsterOutput) String() string {
  3196  	return awsutil.Prettify(s)
  3197  }
  3198  
  3199  // GoString returns the string representation.
  3200  //
  3201  // API parameter values that are decorated as "sensitive" in the API will not
  3202  // be included in the string output. The member name will be present, but the
  3203  // value will be replaced with "sensitive".
  3204  func (s DescribeFraudsterOutput) GoString() string {
  3205  	return s.String()
  3206  }
  3207  
  3208  // SetFraudster sets the Fraudster field's value.
  3209  func (s *DescribeFraudsterOutput) SetFraudster(v *Fraudster) *DescribeFraudsterOutput {
  3210  	s.Fraudster = v
  3211  	return s
  3212  }
  3213  
  3214  type DescribeFraudsterRegistrationJobInput struct {
  3215  	_ struct{} `type:"structure"`
  3216  
  3217  	// The identifier for the domain containing the fraudster registration job.
  3218  	//
  3219  	// DomainId is a required field
  3220  	DomainId *string `min:"22" type:"string" required:"true"`
  3221  
  3222  	// The identifier for the fraudster registration job you are describing.
  3223  	//
  3224  	// JobId is a required field
  3225  	JobId *string `min:"22" type:"string" required:"true"`
  3226  }
  3227  
  3228  // String returns the string representation.
  3229  //
  3230  // API parameter values that are decorated as "sensitive" in the API will not
  3231  // be included in the string output. The member name will be present, but the
  3232  // value will be replaced with "sensitive".
  3233  func (s DescribeFraudsterRegistrationJobInput) String() string {
  3234  	return awsutil.Prettify(s)
  3235  }
  3236  
  3237  // GoString returns the string representation.
  3238  //
  3239  // API parameter values that are decorated as "sensitive" in the API will not
  3240  // be included in the string output. The member name will be present, but the
  3241  // value will be replaced with "sensitive".
  3242  func (s DescribeFraudsterRegistrationJobInput) GoString() string {
  3243  	return s.String()
  3244  }
  3245  
  3246  // Validate inspects the fields of the type to determine if they are valid.
  3247  func (s *DescribeFraudsterRegistrationJobInput) Validate() error {
  3248  	invalidParams := request.ErrInvalidParams{Context: "DescribeFraudsterRegistrationJobInput"}
  3249  	if s.DomainId == nil {
  3250  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  3251  	}
  3252  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  3253  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  3254  	}
  3255  	if s.JobId == nil {
  3256  		invalidParams.Add(request.NewErrParamRequired("JobId"))
  3257  	}
  3258  	if s.JobId != nil && len(*s.JobId) < 22 {
  3259  		invalidParams.Add(request.NewErrParamMinLen("JobId", 22))
  3260  	}
  3261  
  3262  	if invalidParams.Len() > 0 {
  3263  		return invalidParams
  3264  	}
  3265  	return nil
  3266  }
  3267  
  3268  // SetDomainId sets the DomainId field's value.
  3269  func (s *DescribeFraudsterRegistrationJobInput) SetDomainId(v string) *DescribeFraudsterRegistrationJobInput {
  3270  	s.DomainId = &v
  3271  	return s
  3272  }
  3273  
  3274  // SetJobId sets the JobId field's value.
  3275  func (s *DescribeFraudsterRegistrationJobInput) SetJobId(v string) *DescribeFraudsterRegistrationJobInput {
  3276  	s.JobId = &v
  3277  	return s
  3278  }
  3279  
  3280  type DescribeFraudsterRegistrationJobOutput struct {
  3281  	_ struct{} `type:"structure"`
  3282  
  3283  	// Contains details about the specified fraudster registration job.
  3284  	Job *FraudsterRegistrationJob `type:"structure"`
  3285  }
  3286  
  3287  // String returns the string representation.
  3288  //
  3289  // API parameter values that are decorated as "sensitive" in the API will not
  3290  // be included in the string output. The member name will be present, but the
  3291  // value will be replaced with "sensitive".
  3292  func (s DescribeFraudsterRegistrationJobOutput) String() string {
  3293  	return awsutil.Prettify(s)
  3294  }
  3295  
  3296  // GoString returns the string representation.
  3297  //
  3298  // API parameter values that are decorated as "sensitive" in the API will not
  3299  // be included in the string output. The member name will be present, but the
  3300  // value will be replaced with "sensitive".
  3301  func (s DescribeFraudsterRegistrationJobOutput) GoString() string {
  3302  	return s.String()
  3303  }
  3304  
  3305  // SetJob sets the Job field's value.
  3306  func (s *DescribeFraudsterRegistrationJobOutput) SetJob(v *FraudsterRegistrationJob) *DescribeFraudsterRegistrationJobOutput {
  3307  	s.Job = v
  3308  	return s
  3309  }
  3310  
  3311  type DescribeSpeakerEnrollmentJobInput struct {
  3312  	_ struct{} `type:"structure"`
  3313  
  3314  	// The identifier of the domain containing the speaker enrollment job.
  3315  	//
  3316  	// DomainId is a required field
  3317  	DomainId *string `min:"22" type:"string" required:"true"`
  3318  
  3319  	// The identifier of the speaker enrollment job you are describing.
  3320  	//
  3321  	// JobId is a required field
  3322  	JobId *string `min:"22" type:"string" required:"true"`
  3323  }
  3324  
  3325  // String returns the string representation.
  3326  //
  3327  // API parameter values that are decorated as "sensitive" in the API will not
  3328  // be included in the string output. The member name will be present, but the
  3329  // value will be replaced with "sensitive".
  3330  func (s DescribeSpeakerEnrollmentJobInput) String() string {
  3331  	return awsutil.Prettify(s)
  3332  }
  3333  
  3334  // GoString returns the string representation.
  3335  //
  3336  // API parameter values that are decorated as "sensitive" in the API will not
  3337  // be included in the string output. The member name will be present, but the
  3338  // value will be replaced with "sensitive".
  3339  func (s DescribeSpeakerEnrollmentJobInput) GoString() string {
  3340  	return s.String()
  3341  }
  3342  
  3343  // Validate inspects the fields of the type to determine if they are valid.
  3344  func (s *DescribeSpeakerEnrollmentJobInput) Validate() error {
  3345  	invalidParams := request.ErrInvalidParams{Context: "DescribeSpeakerEnrollmentJobInput"}
  3346  	if s.DomainId == nil {
  3347  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  3348  	}
  3349  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  3350  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  3351  	}
  3352  	if s.JobId == nil {
  3353  		invalidParams.Add(request.NewErrParamRequired("JobId"))
  3354  	}
  3355  	if s.JobId != nil && len(*s.JobId) < 22 {
  3356  		invalidParams.Add(request.NewErrParamMinLen("JobId", 22))
  3357  	}
  3358  
  3359  	if invalidParams.Len() > 0 {
  3360  		return invalidParams
  3361  	}
  3362  	return nil
  3363  }
  3364  
  3365  // SetDomainId sets the DomainId field's value.
  3366  func (s *DescribeSpeakerEnrollmentJobInput) SetDomainId(v string) *DescribeSpeakerEnrollmentJobInput {
  3367  	s.DomainId = &v
  3368  	return s
  3369  }
  3370  
  3371  // SetJobId sets the JobId field's value.
  3372  func (s *DescribeSpeakerEnrollmentJobInput) SetJobId(v string) *DescribeSpeakerEnrollmentJobInput {
  3373  	s.JobId = &v
  3374  	return s
  3375  }
  3376  
  3377  type DescribeSpeakerEnrollmentJobOutput struct {
  3378  	_ struct{} `type:"structure"`
  3379  
  3380  	// Contains details about the specified speaker enrollment job.
  3381  	Job *SpeakerEnrollmentJob `type:"structure"`
  3382  }
  3383  
  3384  // String returns the string representation.
  3385  //
  3386  // API parameter values that are decorated as "sensitive" in the API will not
  3387  // be included in the string output. The member name will be present, but the
  3388  // value will be replaced with "sensitive".
  3389  func (s DescribeSpeakerEnrollmentJobOutput) String() string {
  3390  	return awsutil.Prettify(s)
  3391  }
  3392  
  3393  // GoString returns the string representation.
  3394  //
  3395  // API parameter values that are decorated as "sensitive" in the API will not
  3396  // be included in the string output. The member name will be present, but the
  3397  // value will be replaced with "sensitive".
  3398  func (s DescribeSpeakerEnrollmentJobOutput) GoString() string {
  3399  	return s.String()
  3400  }
  3401  
  3402  // SetJob sets the Job field's value.
  3403  func (s *DescribeSpeakerEnrollmentJobOutput) SetJob(v *SpeakerEnrollmentJob) *DescribeSpeakerEnrollmentJobOutput {
  3404  	s.Job = v
  3405  	return s
  3406  }
  3407  
  3408  type DescribeSpeakerInput struct {
  3409  	_ struct{} `type:"structure"`
  3410  
  3411  	// The identifier of the domain that contains the speaker.
  3412  	//
  3413  	// DomainId is a required field
  3414  	DomainId *string `min:"22" type:"string" required:"true"`
  3415  
  3416  	// The identifier of the speaker you are describing.
  3417  	//
  3418  	// SpeakerId is a sensitive parameter and its value will be
  3419  	// replaced with "sensitive" in string returned by DescribeSpeakerInput's
  3420  	// String and GoString methods.
  3421  	//
  3422  	// SpeakerId is a required field
  3423  	SpeakerId *string `min:"1" type:"string" required:"true" sensitive:"true"`
  3424  }
  3425  
  3426  // String returns the string representation.
  3427  //
  3428  // API parameter values that are decorated as "sensitive" in the API will not
  3429  // be included in the string output. The member name will be present, but the
  3430  // value will be replaced with "sensitive".
  3431  func (s DescribeSpeakerInput) String() string {
  3432  	return awsutil.Prettify(s)
  3433  }
  3434  
  3435  // GoString returns the string representation.
  3436  //
  3437  // API parameter values that are decorated as "sensitive" in the API will not
  3438  // be included in the string output. The member name will be present, but the
  3439  // value will be replaced with "sensitive".
  3440  func (s DescribeSpeakerInput) GoString() string {
  3441  	return s.String()
  3442  }
  3443  
  3444  // Validate inspects the fields of the type to determine if they are valid.
  3445  func (s *DescribeSpeakerInput) Validate() error {
  3446  	invalidParams := request.ErrInvalidParams{Context: "DescribeSpeakerInput"}
  3447  	if s.DomainId == nil {
  3448  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  3449  	}
  3450  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  3451  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  3452  	}
  3453  	if s.SpeakerId == nil {
  3454  		invalidParams.Add(request.NewErrParamRequired("SpeakerId"))
  3455  	}
  3456  	if s.SpeakerId != nil && len(*s.SpeakerId) < 1 {
  3457  		invalidParams.Add(request.NewErrParamMinLen("SpeakerId", 1))
  3458  	}
  3459  
  3460  	if invalidParams.Len() > 0 {
  3461  		return invalidParams
  3462  	}
  3463  	return nil
  3464  }
  3465  
  3466  // SetDomainId sets the DomainId field's value.
  3467  func (s *DescribeSpeakerInput) SetDomainId(v string) *DescribeSpeakerInput {
  3468  	s.DomainId = &v
  3469  	return s
  3470  }
  3471  
  3472  // SetSpeakerId sets the SpeakerId field's value.
  3473  func (s *DescribeSpeakerInput) SetSpeakerId(v string) *DescribeSpeakerInput {
  3474  	s.SpeakerId = &v
  3475  	return s
  3476  }
  3477  
  3478  type DescribeSpeakerOutput struct {
  3479  	_ struct{} `type:"structure"`
  3480  
  3481  	// Information about the specified speaker.
  3482  	Speaker *Speaker `type:"structure"`
  3483  }
  3484  
  3485  // String returns the string representation.
  3486  //
  3487  // API parameter values that are decorated as "sensitive" in the API will not
  3488  // be included in the string output. The member name will be present, but the
  3489  // value will be replaced with "sensitive".
  3490  func (s DescribeSpeakerOutput) String() string {
  3491  	return awsutil.Prettify(s)
  3492  }
  3493  
  3494  // GoString returns the string representation.
  3495  //
  3496  // API parameter values that are decorated as "sensitive" in the API will not
  3497  // be included in the string output. The member name will be present, but the
  3498  // value will be replaced with "sensitive".
  3499  func (s DescribeSpeakerOutput) GoString() string {
  3500  	return s.String()
  3501  }
  3502  
  3503  // SetSpeaker sets the Speaker field's value.
  3504  func (s *DescribeSpeakerOutput) SetSpeaker(v *Speaker) *DescribeSpeakerOutput {
  3505  	s.Speaker = v
  3506  	return s
  3507  }
  3508  
  3509  // Contains all the information about a domain.
  3510  type Domain struct {
  3511  	_ struct{} `type:"structure"`
  3512  
  3513  	// The Amazon Resource Name (ARN) for the domain.
  3514  	Arn *string `type:"string"`
  3515  
  3516  	// The timestamp at which the domain is created.
  3517  	CreatedAt *time.Time `type:"timestamp"`
  3518  
  3519  	// The client-provided description of the domain.
  3520  	//
  3521  	// Description is a sensitive parameter and its value will be
  3522  	// replaced with "sensitive" in string returned by Domain's
  3523  	// String and GoString methods.
  3524  	Description *string `min:"1" type:"string" sensitive:"true"`
  3525  
  3526  	// The service-generated identifier for the domain.
  3527  	DomainId *string `min:"22" type:"string"`
  3528  
  3529  	// The current status of the domain.
  3530  	DomainStatus *string `type:"string" enum:"DomainStatus"`
  3531  
  3532  	// The client-provided name for the domain.
  3533  	//
  3534  	// Name is a sensitive parameter and its value will be
  3535  	// replaced with "sensitive" in string returned by Domain's
  3536  	// String and GoString methods.
  3537  	Name *string `min:"1" type:"string" sensitive:"true"`
  3538  
  3539  	// The server-side encryption configuration containing the KMS Key Identifier
  3540  	// you want Voice ID to use to encrypt your data.
  3541  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure"`
  3542  
  3543  	// The timestamp showing the domain's last update.
  3544  	UpdatedAt *time.Time `type:"timestamp"`
  3545  }
  3546  
  3547  // String returns the string representation.
  3548  //
  3549  // API parameter values that are decorated as "sensitive" in the API will not
  3550  // be included in the string output. The member name will be present, but the
  3551  // value will be replaced with "sensitive".
  3552  func (s Domain) String() string {
  3553  	return awsutil.Prettify(s)
  3554  }
  3555  
  3556  // GoString returns the string representation.
  3557  //
  3558  // API parameter values that are decorated as "sensitive" in the API will not
  3559  // be included in the string output. The member name will be present, but the
  3560  // value will be replaced with "sensitive".
  3561  func (s Domain) GoString() string {
  3562  	return s.String()
  3563  }
  3564  
  3565  // SetArn sets the Arn field's value.
  3566  func (s *Domain) SetArn(v string) *Domain {
  3567  	s.Arn = &v
  3568  	return s
  3569  }
  3570  
  3571  // SetCreatedAt sets the CreatedAt field's value.
  3572  func (s *Domain) SetCreatedAt(v time.Time) *Domain {
  3573  	s.CreatedAt = &v
  3574  	return s
  3575  }
  3576  
  3577  // SetDescription sets the Description field's value.
  3578  func (s *Domain) SetDescription(v string) *Domain {
  3579  	s.Description = &v
  3580  	return s
  3581  }
  3582  
  3583  // SetDomainId sets the DomainId field's value.
  3584  func (s *Domain) SetDomainId(v string) *Domain {
  3585  	s.DomainId = &v
  3586  	return s
  3587  }
  3588  
  3589  // SetDomainStatus sets the DomainStatus field's value.
  3590  func (s *Domain) SetDomainStatus(v string) *Domain {
  3591  	s.DomainStatus = &v
  3592  	return s
  3593  }
  3594  
  3595  // SetName sets the Name field's value.
  3596  func (s *Domain) SetName(v string) *Domain {
  3597  	s.Name = &v
  3598  	return s
  3599  }
  3600  
  3601  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  3602  func (s *Domain) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *Domain {
  3603  	s.ServerSideEncryptionConfiguration = v
  3604  	return s
  3605  }
  3606  
  3607  // SetUpdatedAt sets the UpdatedAt field's value.
  3608  func (s *Domain) SetUpdatedAt(v time.Time) *Domain {
  3609  	s.UpdatedAt = &v
  3610  	return s
  3611  }
  3612  
  3613  // Contains a summary of information about a domain.
  3614  type DomainSummary struct {
  3615  	_ struct{} `type:"structure"`
  3616  
  3617  	// The Amazon Resource Name (ARN) for the domain.
  3618  	Arn *string `type:"string"`
  3619  
  3620  	// The timestamp showing when the domain is created.
  3621  	CreatedAt *time.Time `type:"timestamp"`
  3622  
  3623  	// The client-provided description of the domain.
  3624  	//
  3625  	// Description is a sensitive parameter and its value will be
  3626  	// replaced with "sensitive" in string returned by DomainSummary's
  3627  	// String and GoString methods.
  3628  	Description *string `min:"1" type:"string" sensitive:"true"`
  3629  
  3630  	// The service-generated identifier for the domain.
  3631  	DomainId *string `min:"22" type:"string"`
  3632  
  3633  	// The current status of the domain.
  3634  	DomainStatus *string `type:"string" enum:"DomainStatus"`
  3635  
  3636  	// The client-provided name for the domain.
  3637  	//
  3638  	// Name is a sensitive parameter and its value will be
  3639  	// replaced with "sensitive" in string returned by DomainSummary's
  3640  	// String and GoString methods.
  3641  	Name *string `min:"1" type:"string" sensitive:"true"`
  3642  
  3643  	// The server-side encryption configuration containing the KMS Key Identifier
  3644  	// you want Voice ID to use to encrypt your data..
  3645  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure"`
  3646  
  3647  	// The timestamp showing the domain's last update.
  3648  	UpdatedAt *time.Time `type:"timestamp"`
  3649  }
  3650  
  3651  // String returns the string representation.
  3652  //
  3653  // API parameter values that are decorated as "sensitive" in the API will not
  3654  // be included in the string output. The member name will be present, but the
  3655  // value will be replaced with "sensitive".
  3656  func (s DomainSummary) String() string {
  3657  	return awsutil.Prettify(s)
  3658  }
  3659  
  3660  // GoString returns the string representation.
  3661  //
  3662  // API parameter values that are decorated as "sensitive" in the API will not
  3663  // be included in the string output. The member name will be present, but the
  3664  // value will be replaced with "sensitive".
  3665  func (s DomainSummary) GoString() string {
  3666  	return s.String()
  3667  }
  3668  
  3669  // SetArn sets the Arn field's value.
  3670  func (s *DomainSummary) SetArn(v string) *DomainSummary {
  3671  	s.Arn = &v
  3672  	return s
  3673  }
  3674  
  3675  // SetCreatedAt sets the CreatedAt field's value.
  3676  func (s *DomainSummary) SetCreatedAt(v time.Time) *DomainSummary {
  3677  	s.CreatedAt = &v
  3678  	return s
  3679  }
  3680  
  3681  // SetDescription sets the Description field's value.
  3682  func (s *DomainSummary) SetDescription(v string) *DomainSummary {
  3683  	s.Description = &v
  3684  	return s
  3685  }
  3686  
  3687  // SetDomainId sets the DomainId field's value.
  3688  func (s *DomainSummary) SetDomainId(v string) *DomainSummary {
  3689  	s.DomainId = &v
  3690  	return s
  3691  }
  3692  
  3693  // SetDomainStatus sets the DomainStatus field's value.
  3694  func (s *DomainSummary) SetDomainStatus(v string) *DomainSummary {
  3695  	s.DomainStatus = &v
  3696  	return s
  3697  }
  3698  
  3699  // SetName sets the Name field's value.
  3700  func (s *DomainSummary) SetName(v string) *DomainSummary {
  3701  	s.Name = &v
  3702  	return s
  3703  }
  3704  
  3705  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  3706  func (s *DomainSummary) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *DomainSummary {
  3707  	s.ServerSideEncryptionConfiguration = v
  3708  	return s
  3709  }
  3710  
  3711  // SetUpdatedAt sets the UpdatedAt field's value.
  3712  func (s *DomainSummary) SetUpdatedAt(v time.Time) *DomainSummary {
  3713  	s.UpdatedAt = &v
  3714  	return s
  3715  }
  3716  
  3717  // Contains configurations defining enrollment behavior for the batch job.
  3718  type EnrollmentConfig struct {
  3719  	_ struct{} `type:"structure"`
  3720  
  3721  	// The action to take when the specified speaker is already enrolled in the
  3722  	// specified domain. The default value is SKIP, which skips the enrollment for
  3723  	// the existing speaker. Setting the value to OVERWRITE replaces the existing
  3724  	// voice prints and enrollment audio stored for that speaker with new data generated
  3725  	// from the latest audio.
  3726  	ExistingEnrollmentAction *string `type:"string" enum:"ExistingEnrollmentAction"`
  3727  
  3728  	// The fraud detection configuration to use for the speaker enrollment job.
  3729  	FraudDetectionConfig *EnrollmentJobFraudDetectionConfig `type:"structure"`
  3730  }
  3731  
  3732  // String returns the string representation.
  3733  //
  3734  // API parameter values that are decorated as "sensitive" in the API will not
  3735  // be included in the string output. The member name will be present, but the
  3736  // value will be replaced with "sensitive".
  3737  func (s EnrollmentConfig) String() string {
  3738  	return awsutil.Prettify(s)
  3739  }
  3740  
  3741  // GoString returns the string representation.
  3742  //
  3743  // API parameter values that are decorated as "sensitive" in the API will not
  3744  // be included in the string output. The member name will be present, but the
  3745  // value will be replaced with "sensitive".
  3746  func (s EnrollmentConfig) GoString() string {
  3747  	return s.String()
  3748  }
  3749  
  3750  // SetExistingEnrollmentAction sets the ExistingEnrollmentAction field's value.
  3751  func (s *EnrollmentConfig) SetExistingEnrollmentAction(v string) *EnrollmentConfig {
  3752  	s.ExistingEnrollmentAction = &v
  3753  	return s
  3754  }
  3755  
  3756  // SetFraudDetectionConfig sets the FraudDetectionConfig field's value.
  3757  func (s *EnrollmentConfig) SetFraudDetectionConfig(v *EnrollmentJobFraudDetectionConfig) *EnrollmentConfig {
  3758  	s.FraudDetectionConfig = v
  3759  	return s
  3760  }
  3761  
  3762  // The configuration defining the action to take when a speaker is flagged by
  3763  // the fraud detection system during a batch speaker enrollment job, and the
  3764  // risk threshold to use for identification.
  3765  type EnrollmentJobFraudDetectionConfig struct {
  3766  	_ struct{} `type:"structure"`
  3767  
  3768  	// The action to take when the given speaker is flagged by the fraud detection
  3769  	// system. The default value is FAIL, which fails the speaker enrollment. Changing
  3770  	// this value to IGNORE results in the speaker being enrolled even if they are
  3771  	// flagged by the fraud detection system.
  3772  	FraudDetectionAction *string `type:"string" enum:"FraudDetectionAction"`
  3773  
  3774  	// Threshold value for determining whether the speaker is a high risk to be
  3775  	// fraudulent. If the detected risk score calculated by Voice ID is greater
  3776  	// than or equal to the threshold, the speaker is considered a fraudster.
  3777  	RiskThreshold *int64 `type:"integer"`
  3778  }
  3779  
  3780  // String returns the string representation.
  3781  //
  3782  // API parameter values that are decorated as "sensitive" in the API will not
  3783  // be included in the string output. The member name will be present, but the
  3784  // value will be replaced with "sensitive".
  3785  func (s EnrollmentJobFraudDetectionConfig) String() string {
  3786  	return awsutil.Prettify(s)
  3787  }
  3788  
  3789  // GoString returns the string representation.
  3790  //
  3791  // API parameter values that are decorated as "sensitive" in the API will not
  3792  // be included in the string output. The member name will be present, but the
  3793  // value will be replaced with "sensitive".
  3794  func (s EnrollmentJobFraudDetectionConfig) GoString() string {
  3795  	return s.String()
  3796  }
  3797  
  3798  // SetFraudDetectionAction sets the FraudDetectionAction field's value.
  3799  func (s *EnrollmentJobFraudDetectionConfig) SetFraudDetectionAction(v string) *EnrollmentJobFraudDetectionConfig {
  3800  	s.FraudDetectionAction = &v
  3801  	return s
  3802  }
  3803  
  3804  // SetRiskThreshold sets the RiskThreshold field's value.
  3805  func (s *EnrollmentJobFraudDetectionConfig) SetRiskThreshold(v int64) *EnrollmentJobFraudDetectionConfig {
  3806  	s.RiskThreshold = &v
  3807  	return s
  3808  }
  3809  
  3810  type EvaluateSessionInput struct {
  3811  	_ struct{} `type:"structure"`
  3812  
  3813  	// The identifier of the domain where the session started.
  3814  	//
  3815  	// DomainId is a required field
  3816  	DomainId *string `min:"22" type:"string" required:"true"`
  3817  
  3818  	// The session identifier, or name of the session, that you want to evaluate.
  3819  	// In Voice ID integration, this is the Contact-Id.
  3820  	//
  3821  	// SessionNameOrId is a required field
  3822  	SessionNameOrId *string `min:"1" type:"string" required:"true"`
  3823  }
  3824  
  3825  // String returns the string representation.
  3826  //
  3827  // API parameter values that are decorated as "sensitive" in the API will not
  3828  // be included in the string output. The member name will be present, but the
  3829  // value will be replaced with "sensitive".
  3830  func (s EvaluateSessionInput) String() string {
  3831  	return awsutil.Prettify(s)
  3832  }
  3833  
  3834  // GoString returns the string representation.
  3835  //
  3836  // API parameter values that are decorated as "sensitive" in the API will not
  3837  // be included in the string output. The member name will be present, but the
  3838  // value will be replaced with "sensitive".
  3839  func (s EvaluateSessionInput) GoString() string {
  3840  	return s.String()
  3841  }
  3842  
  3843  // Validate inspects the fields of the type to determine if they are valid.
  3844  func (s *EvaluateSessionInput) Validate() error {
  3845  	invalidParams := request.ErrInvalidParams{Context: "EvaluateSessionInput"}
  3846  	if s.DomainId == nil {
  3847  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  3848  	}
  3849  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  3850  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  3851  	}
  3852  	if s.SessionNameOrId == nil {
  3853  		invalidParams.Add(request.NewErrParamRequired("SessionNameOrId"))
  3854  	}
  3855  	if s.SessionNameOrId != nil && len(*s.SessionNameOrId) < 1 {
  3856  		invalidParams.Add(request.NewErrParamMinLen("SessionNameOrId", 1))
  3857  	}
  3858  
  3859  	if invalidParams.Len() > 0 {
  3860  		return invalidParams
  3861  	}
  3862  	return nil
  3863  }
  3864  
  3865  // SetDomainId sets the DomainId field's value.
  3866  func (s *EvaluateSessionInput) SetDomainId(v string) *EvaluateSessionInput {
  3867  	s.DomainId = &v
  3868  	return s
  3869  }
  3870  
  3871  // SetSessionNameOrId sets the SessionNameOrId field's value.
  3872  func (s *EvaluateSessionInput) SetSessionNameOrId(v string) *EvaluateSessionInput {
  3873  	s.SessionNameOrId = &v
  3874  	return s
  3875  }
  3876  
  3877  type EvaluateSessionOutput struct {
  3878  	_ struct{} `type:"structure"`
  3879  
  3880  	// Details resulting from the authentication process, such as authentication
  3881  	// decision and authentication score.
  3882  	AuthenticationResult *AuthenticationResult `type:"structure"`
  3883  
  3884  	// The identifier of the domain containing the session.
  3885  	DomainId *string `min:"22" type:"string"`
  3886  
  3887  	// Details resulting from the fraud detection process, such as fraud detection
  3888  	// decision and risk score.
  3889  	FraudDetectionResult *FraudDetectionResult `type:"structure"`
  3890  
  3891  	// The service-generated identifier of the session.
  3892  	SessionId *string `min:"25" type:"string"`
  3893  
  3894  	// The client-provided name of the session.
  3895  	SessionName *string `min:"1" type:"string"`
  3896  
  3897  	// The current status of audio streaming for this session. This field is useful
  3898  	// to infer next steps when the Authentication or Fraud Detection results are
  3899  	// empty or the decision is NOT_ENOUGH_SPEECH. In this situation, if the StreamingStatus
  3900  	// is ONGOING/PENDING_CONFIGURATION, it can mean that the client should call
  3901  	// the API again later, once Voice ID has enough audio to produce a result.
  3902  	// If the decision remains NOT_ENOUGH_SPEECH even after StreamingStatus is ENDED,
  3903  	// it means that the previously streamed session did not have enough speech
  3904  	// to perform evaluation, and a new streaming session is needed to try again.
  3905  	StreamingStatus *string `type:"string" enum:"StreamingStatus"`
  3906  }
  3907  
  3908  // String returns the string representation.
  3909  //
  3910  // API parameter values that are decorated as "sensitive" in the API will not
  3911  // be included in the string output. The member name will be present, but the
  3912  // value will be replaced with "sensitive".
  3913  func (s EvaluateSessionOutput) String() string {
  3914  	return awsutil.Prettify(s)
  3915  }
  3916  
  3917  // GoString returns the string representation.
  3918  //
  3919  // API parameter values that are decorated as "sensitive" in the API will not
  3920  // be included in the string output. The member name will be present, but the
  3921  // value will be replaced with "sensitive".
  3922  func (s EvaluateSessionOutput) GoString() string {
  3923  	return s.String()
  3924  }
  3925  
  3926  // SetAuthenticationResult sets the AuthenticationResult field's value.
  3927  func (s *EvaluateSessionOutput) SetAuthenticationResult(v *AuthenticationResult) *EvaluateSessionOutput {
  3928  	s.AuthenticationResult = v
  3929  	return s
  3930  }
  3931  
  3932  // SetDomainId sets the DomainId field's value.
  3933  func (s *EvaluateSessionOutput) SetDomainId(v string) *EvaluateSessionOutput {
  3934  	s.DomainId = &v
  3935  	return s
  3936  }
  3937  
  3938  // SetFraudDetectionResult sets the FraudDetectionResult field's value.
  3939  func (s *EvaluateSessionOutput) SetFraudDetectionResult(v *FraudDetectionResult) *EvaluateSessionOutput {
  3940  	s.FraudDetectionResult = v
  3941  	return s
  3942  }
  3943  
  3944  // SetSessionId sets the SessionId field's value.
  3945  func (s *EvaluateSessionOutput) SetSessionId(v string) *EvaluateSessionOutput {
  3946  	s.SessionId = &v
  3947  	return s
  3948  }
  3949  
  3950  // SetSessionName sets the SessionName field's value.
  3951  func (s *EvaluateSessionOutput) SetSessionName(v string) *EvaluateSessionOutput {
  3952  	s.SessionName = &v
  3953  	return s
  3954  }
  3955  
  3956  // SetStreamingStatus sets the StreamingStatus field's value.
  3957  func (s *EvaluateSessionOutput) SetStreamingStatus(v string) *EvaluateSessionOutput {
  3958  	s.StreamingStatus = &v
  3959  	return s
  3960  }
  3961  
  3962  // Contains error details for a failed batch job.
  3963  type FailureDetails struct {
  3964  	_ struct{} `type:"structure"`
  3965  
  3966  	// A description of the error that caused the batch job failure.
  3967  	Message *string `min:"1" type:"string"`
  3968  
  3969  	// An HTTP status code representing the nature of the error.
  3970  	StatusCode *int64 `type:"integer"`
  3971  }
  3972  
  3973  // String returns the string representation.
  3974  //
  3975  // API parameter values that are decorated as "sensitive" in the API will not
  3976  // be included in the string output. The member name will be present, but the
  3977  // value will be replaced with "sensitive".
  3978  func (s FailureDetails) String() string {
  3979  	return awsutil.Prettify(s)
  3980  }
  3981  
  3982  // GoString returns the string representation.
  3983  //
  3984  // API parameter values that are decorated as "sensitive" in the API will not
  3985  // be included in the string output. The member name will be present, but the
  3986  // value will be replaced with "sensitive".
  3987  func (s FailureDetails) GoString() string {
  3988  	return s.String()
  3989  }
  3990  
  3991  // SetMessage sets the Message field's value.
  3992  func (s *FailureDetails) SetMessage(v string) *FailureDetails {
  3993  	s.Message = &v
  3994  	return s
  3995  }
  3996  
  3997  // SetStatusCode sets the StatusCode field's value.
  3998  func (s *FailureDetails) SetStatusCode(v int64) *FailureDetails {
  3999  	s.StatusCode = &v
  4000  	return s
  4001  }
  4002  
  4003  // The configuration used for performing fraud detection over a speaker during
  4004  // a session.
  4005  type FraudDetectionConfiguration struct {
  4006  	_ struct{} `type:"structure"`
  4007  
  4008  	// Threshold value for determining whether the speaker is a fraudster. If the
  4009  	// detected risk score calculated by Voice ID is higher than the threshold,
  4010  	// the speaker is considered a fraudster.
  4011  	//
  4012  	// RiskThreshold is a required field
  4013  	RiskThreshold *int64 `type:"integer" required:"true"`
  4014  }
  4015  
  4016  // String returns the string representation.
  4017  //
  4018  // API parameter values that are decorated as "sensitive" in the API will not
  4019  // be included in the string output. The member name will be present, but the
  4020  // value will be replaced with "sensitive".
  4021  func (s FraudDetectionConfiguration) String() string {
  4022  	return awsutil.Prettify(s)
  4023  }
  4024  
  4025  // GoString returns the string representation.
  4026  //
  4027  // API parameter values that are decorated as "sensitive" in the API will not
  4028  // be included in the string output. The member name will be present, but the
  4029  // value will be replaced with "sensitive".
  4030  func (s FraudDetectionConfiguration) GoString() string {
  4031  	return s.String()
  4032  }
  4033  
  4034  // SetRiskThreshold sets the RiskThreshold field's value.
  4035  func (s *FraudDetectionConfiguration) SetRiskThreshold(v int64) *FraudDetectionConfiguration {
  4036  	s.RiskThreshold = &v
  4037  	return s
  4038  }
  4039  
  4040  // The fraud detection result produced by Voice ID, processed against the current
  4041  // session state and streamed audio of the speaker.
  4042  type FraudDetectionResult struct {
  4043  	_ struct{} `type:"structure"`
  4044  
  4045  	// A timestamp indicating when audio aggregation ended for this fraud detection
  4046  	// result.
  4047  	AudioAggregationEndedAt *time.Time `type:"timestamp"`
  4048  
  4049  	// A timestamp indicating when audio aggregation started for this fraud detection
  4050  	// result.
  4051  	AudioAggregationStartedAt *time.Time `type:"timestamp"`
  4052  
  4053  	// The FraudDetectionConfiguration used to generate this fraud detection result.
  4054  	Configuration *FraudDetectionConfiguration `type:"structure"`
  4055  
  4056  	// The fraud detection decision produced by Voice ID, processed against the
  4057  	// current session state and streamed audio of the speaker.
  4058  	Decision *string `type:"string" enum:"FraudDetectionDecision"`
  4059  
  4060  	// The unique identifier for this fraud detection result. Given there can be
  4061  	// multiple fraud detections for a given session, this field helps in identifying
  4062  	// if the returned result is from previous streaming activity or a new result.
  4063  	// Note that in the absence of any new streaming activity or risk threshold
  4064  	// changes, Voice ID always returns cached Fraud Detection result for this API.
  4065  	FraudDetectionResultId *string `min:"22" type:"string"`
  4066  
  4067  	// The reason speaker was flagged by the fraud detection system. This is only
  4068  	// be populated if fraud detection Decision is HIGH_RISK, and only has one possible
  4069  	// value: KNOWN_FRAUDSTER.
  4070  	Reasons []*string `type:"list"`
  4071  
  4072  	// Details about each risk analyzed for this speaker.
  4073  	RiskDetails *FraudRiskDetails `type:"structure"`
  4074  }
  4075  
  4076  // String returns the string representation.
  4077  //
  4078  // API parameter values that are decorated as "sensitive" in the API will not
  4079  // be included in the string output. The member name will be present, but the
  4080  // value will be replaced with "sensitive".
  4081  func (s FraudDetectionResult) String() string {
  4082  	return awsutil.Prettify(s)
  4083  }
  4084  
  4085  // GoString returns the string representation.
  4086  //
  4087  // API parameter values that are decorated as "sensitive" in the API will not
  4088  // be included in the string output. The member name will be present, but the
  4089  // value will be replaced with "sensitive".
  4090  func (s FraudDetectionResult) GoString() string {
  4091  	return s.String()
  4092  }
  4093  
  4094  // SetAudioAggregationEndedAt sets the AudioAggregationEndedAt field's value.
  4095  func (s *FraudDetectionResult) SetAudioAggregationEndedAt(v time.Time) *FraudDetectionResult {
  4096  	s.AudioAggregationEndedAt = &v
  4097  	return s
  4098  }
  4099  
  4100  // SetAudioAggregationStartedAt sets the AudioAggregationStartedAt field's value.
  4101  func (s *FraudDetectionResult) SetAudioAggregationStartedAt(v time.Time) *FraudDetectionResult {
  4102  	s.AudioAggregationStartedAt = &v
  4103  	return s
  4104  }
  4105  
  4106  // SetConfiguration sets the Configuration field's value.
  4107  func (s *FraudDetectionResult) SetConfiguration(v *FraudDetectionConfiguration) *FraudDetectionResult {
  4108  	s.Configuration = v
  4109  	return s
  4110  }
  4111  
  4112  // SetDecision sets the Decision field's value.
  4113  func (s *FraudDetectionResult) SetDecision(v string) *FraudDetectionResult {
  4114  	s.Decision = &v
  4115  	return s
  4116  }
  4117  
  4118  // SetFraudDetectionResultId sets the FraudDetectionResultId field's value.
  4119  func (s *FraudDetectionResult) SetFraudDetectionResultId(v string) *FraudDetectionResult {
  4120  	s.FraudDetectionResultId = &v
  4121  	return s
  4122  }
  4123  
  4124  // SetReasons sets the Reasons field's value.
  4125  func (s *FraudDetectionResult) SetReasons(v []*string) *FraudDetectionResult {
  4126  	s.Reasons = v
  4127  	return s
  4128  }
  4129  
  4130  // SetRiskDetails sets the RiskDetails field's value.
  4131  func (s *FraudDetectionResult) SetRiskDetails(v *FraudRiskDetails) *FraudDetectionResult {
  4132  	s.RiskDetails = v
  4133  	return s
  4134  }
  4135  
  4136  // Details regarding various fraud risk analyses performed against the current
  4137  // session state and streamed audio of the speaker.
  4138  type FraudRiskDetails struct {
  4139  	_ struct{} `type:"structure"`
  4140  
  4141  	// The details resulting from 'Known Fraudster Risk' analysis of the speaker.
  4142  	//
  4143  	// KnownFraudsterRisk is a required field
  4144  	KnownFraudsterRisk *KnownFraudsterRisk `type:"structure" required:"true"`
  4145  }
  4146  
  4147  // String returns the string representation.
  4148  //
  4149  // API parameter values that are decorated as "sensitive" in the API will not
  4150  // be included in the string output. The member name will be present, but the
  4151  // value will be replaced with "sensitive".
  4152  func (s FraudRiskDetails) String() string {
  4153  	return awsutil.Prettify(s)
  4154  }
  4155  
  4156  // GoString returns the string representation.
  4157  //
  4158  // API parameter values that are decorated as "sensitive" in the API will not
  4159  // be included in the string output. The member name will be present, but the
  4160  // value will be replaced with "sensitive".
  4161  func (s FraudRiskDetails) GoString() string {
  4162  	return s.String()
  4163  }
  4164  
  4165  // SetKnownFraudsterRisk sets the KnownFraudsterRisk field's value.
  4166  func (s *FraudRiskDetails) SetKnownFraudsterRisk(v *KnownFraudsterRisk) *FraudRiskDetails {
  4167  	s.KnownFraudsterRisk = v
  4168  	return s
  4169  }
  4170  
  4171  // Contains all the information about a fraudster.
  4172  type Fraudster struct {
  4173  	_ struct{} `type:"structure"`
  4174  
  4175  	// The timestamp when Voice ID identified the fraudster.
  4176  	CreatedAt *time.Time `type:"timestamp"`
  4177  
  4178  	// The identifier for the domain containing the fraudster.
  4179  	DomainId *string `min:"22" type:"string"`
  4180  
  4181  	// The service-generated identifier for the fraudster.
  4182  	GeneratedFraudsterId *string `min:"25" type:"string"`
  4183  }
  4184  
  4185  // String returns the string representation.
  4186  //
  4187  // API parameter values that are decorated as "sensitive" in the API will not
  4188  // be included in the string output. The member name will be present, but the
  4189  // value will be replaced with "sensitive".
  4190  func (s Fraudster) String() string {
  4191  	return awsutil.Prettify(s)
  4192  }
  4193  
  4194  // GoString returns the string representation.
  4195  //
  4196  // API parameter values that are decorated as "sensitive" in the API will not
  4197  // be included in the string output. The member name will be present, but the
  4198  // value will be replaced with "sensitive".
  4199  func (s Fraudster) GoString() string {
  4200  	return s.String()
  4201  }
  4202  
  4203  // SetCreatedAt sets the CreatedAt field's value.
  4204  func (s *Fraudster) SetCreatedAt(v time.Time) *Fraudster {
  4205  	s.CreatedAt = &v
  4206  	return s
  4207  }
  4208  
  4209  // SetDomainId sets the DomainId field's value.
  4210  func (s *Fraudster) SetDomainId(v string) *Fraudster {
  4211  	s.DomainId = &v
  4212  	return s
  4213  }
  4214  
  4215  // SetGeneratedFraudsterId sets the GeneratedFraudsterId field's value.
  4216  func (s *Fraudster) SetGeneratedFraudsterId(v string) *Fraudster {
  4217  	s.GeneratedFraudsterId = &v
  4218  	return s
  4219  }
  4220  
  4221  // Contains all the information about a fraudster registration job.
  4222  type FraudsterRegistrationJob struct {
  4223  	_ struct{} `type:"structure"`
  4224  
  4225  	// A timestamp showing the creation time of the fraudster registration job.
  4226  	CreatedAt *time.Time `type:"timestamp"`
  4227  
  4228  	// The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
  4229  	// to access customer's buckets to read the input manifest file and write the
  4230  	// job output file.
  4231  	DataAccessRoleArn *string `min:"20" type:"string"`
  4232  
  4233  	// The identifier of the domain containing the fraudster registration job.
  4234  	DomainId *string `min:"22" type:"string"`
  4235  
  4236  	// A timestamp showing when the fraudster registration job ended.
  4237  	EndedAt *time.Time `type:"timestamp"`
  4238  
  4239  	// Contains details that are populated when an entire batch job fails. In cases
  4240  	// of individual registration job failures, the batch job as a whole doesn't
  4241  	// fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS. You can
  4242  	// use the job output file to identify the individual registration requests
  4243  	// that failed.
  4244  	FailureDetails *FailureDetails `type:"structure"`
  4245  
  4246  	// The input data config containing an S3 URI for the input manifest file that
  4247  	// contains the list of fraudster registration job requests.
  4248  	InputDataConfig *InputDataConfig `type:"structure"`
  4249  
  4250  	// The service-generated identifier for the fraudster registration job.
  4251  	JobId *string `min:"22" type:"string"`
  4252  
  4253  	// The client-provied name for the fraudster registration job.
  4254  	//
  4255  	// JobName is a sensitive parameter and its value will be
  4256  	// replaced with "sensitive" in string returned by FraudsterRegistrationJob's
  4257  	// String and GoString methods.
  4258  	JobName *string `min:"1" type:"string" sensitive:"true"`
  4259  
  4260  	// Shows the completed percentage of registration requests listed in the input
  4261  	// file.
  4262  	JobProgress *JobProgress `type:"structure"`
  4263  
  4264  	// The current status of the fraudster registration job.
  4265  	JobStatus *string `type:"string" enum:"FraudsterRegistrationJobStatus"`
  4266  
  4267  	// The output data config containing the S3 location where you want Voice ID
  4268  	// to write your job output file; you must also include a KMS Key ID in order
  4269  	// to encrypt the file.
  4270  	OutputDataConfig *OutputDataConfig `type:"structure"`
  4271  
  4272  	// The registration config containing details such as the action to take when
  4273  	// a duplicate fraudster is detected, and the similarity threshold to use for
  4274  	// detecting a duplicate fraudster.
  4275  	RegistrationConfig *RegistrationConfig `type:"structure"`
  4276  }
  4277  
  4278  // String returns the string representation.
  4279  //
  4280  // API parameter values that are decorated as "sensitive" in the API will not
  4281  // be included in the string output. The member name will be present, but the
  4282  // value will be replaced with "sensitive".
  4283  func (s FraudsterRegistrationJob) String() string {
  4284  	return awsutil.Prettify(s)
  4285  }
  4286  
  4287  // GoString returns the string representation.
  4288  //
  4289  // API parameter values that are decorated as "sensitive" in the API will not
  4290  // be included in the string output. The member name will be present, but the
  4291  // value will be replaced with "sensitive".
  4292  func (s FraudsterRegistrationJob) GoString() string {
  4293  	return s.String()
  4294  }
  4295  
  4296  // SetCreatedAt sets the CreatedAt field's value.
  4297  func (s *FraudsterRegistrationJob) SetCreatedAt(v time.Time) *FraudsterRegistrationJob {
  4298  	s.CreatedAt = &v
  4299  	return s
  4300  }
  4301  
  4302  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  4303  func (s *FraudsterRegistrationJob) SetDataAccessRoleArn(v string) *FraudsterRegistrationJob {
  4304  	s.DataAccessRoleArn = &v
  4305  	return s
  4306  }
  4307  
  4308  // SetDomainId sets the DomainId field's value.
  4309  func (s *FraudsterRegistrationJob) SetDomainId(v string) *FraudsterRegistrationJob {
  4310  	s.DomainId = &v
  4311  	return s
  4312  }
  4313  
  4314  // SetEndedAt sets the EndedAt field's value.
  4315  func (s *FraudsterRegistrationJob) SetEndedAt(v time.Time) *FraudsterRegistrationJob {
  4316  	s.EndedAt = &v
  4317  	return s
  4318  }
  4319  
  4320  // SetFailureDetails sets the FailureDetails field's value.
  4321  func (s *FraudsterRegistrationJob) SetFailureDetails(v *FailureDetails) *FraudsterRegistrationJob {
  4322  	s.FailureDetails = v
  4323  	return s
  4324  }
  4325  
  4326  // SetInputDataConfig sets the InputDataConfig field's value.
  4327  func (s *FraudsterRegistrationJob) SetInputDataConfig(v *InputDataConfig) *FraudsterRegistrationJob {
  4328  	s.InputDataConfig = v
  4329  	return s
  4330  }
  4331  
  4332  // SetJobId sets the JobId field's value.
  4333  func (s *FraudsterRegistrationJob) SetJobId(v string) *FraudsterRegistrationJob {
  4334  	s.JobId = &v
  4335  	return s
  4336  }
  4337  
  4338  // SetJobName sets the JobName field's value.
  4339  func (s *FraudsterRegistrationJob) SetJobName(v string) *FraudsterRegistrationJob {
  4340  	s.JobName = &v
  4341  	return s
  4342  }
  4343  
  4344  // SetJobProgress sets the JobProgress field's value.
  4345  func (s *FraudsterRegistrationJob) SetJobProgress(v *JobProgress) *FraudsterRegistrationJob {
  4346  	s.JobProgress = v
  4347  	return s
  4348  }
  4349  
  4350  // SetJobStatus sets the JobStatus field's value.
  4351  func (s *FraudsterRegistrationJob) SetJobStatus(v string) *FraudsterRegistrationJob {
  4352  	s.JobStatus = &v
  4353  	return s
  4354  }
  4355  
  4356  // SetOutputDataConfig sets the OutputDataConfig field's value.
  4357  func (s *FraudsterRegistrationJob) SetOutputDataConfig(v *OutputDataConfig) *FraudsterRegistrationJob {
  4358  	s.OutputDataConfig = v
  4359  	return s
  4360  }
  4361  
  4362  // SetRegistrationConfig sets the RegistrationConfig field's value.
  4363  func (s *FraudsterRegistrationJob) SetRegistrationConfig(v *RegistrationConfig) *FraudsterRegistrationJob {
  4364  	s.RegistrationConfig = v
  4365  	return s
  4366  }
  4367  
  4368  // Contains a summary of information about a fraudster registration job.
  4369  type FraudsterRegistrationJobSummary struct {
  4370  	_ struct{} `type:"structure"`
  4371  
  4372  	// A timestamp showing when the fraudster registration job is created.
  4373  	CreatedAt *time.Time `type:"timestamp"`
  4374  
  4375  	// The identifier of the domain containing the fraudster registration job.
  4376  	DomainId *string `min:"22" type:"string"`
  4377  
  4378  	// A timestamp showing when the fraudster registration job ended.
  4379  	EndedAt *time.Time `type:"timestamp"`
  4380  
  4381  	// Contains details that are populated when an entire batch job fails. In cases
  4382  	// of individual registration job failures, the batch job as a whole doesn't
  4383  	// fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS. You can
  4384  	// use the job output file to identify the individual registration requests
  4385  	// that failed.
  4386  	FailureDetails *FailureDetails `type:"structure"`
  4387  
  4388  	// The service-generated identifier for the fraudster registration job.
  4389  	JobId *string `min:"22" type:"string"`
  4390  
  4391  	// The client-provied name for the fraudster registration job.
  4392  	//
  4393  	// JobName is a sensitive parameter and its value will be
  4394  	// replaced with "sensitive" in string returned by FraudsterRegistrationJobSummary's
  4395  	// String and GoString methods.
  4396  	JobName *string `min:"1" type:"string" sensitive:"true"`
  4397  
  4398  	// Shows the completed percentage of registration requests listed in the input
  4399  	// file.
  4400  	JobProgress *JobProgress `type:"structure"`
  4401  
  4402  	// The current status of the fraudster registration job.
  4403  	JobStatus *string `type:"string" enum:"FraudsterRegistrationJobStatus"`
  4404  }
  4405  
  4406  // String returns the string representation.
  4407  //
  4408  // API parameter values that are decorated as "sensitive" in the API will not
  4409  // be included in the string output. The member name will be present, but the
  4410  // value will be replaced with "sensitive".
  4411  func (s FraudsterRegistrationJobSummary) String() string {
  4412  	return awsutil.Prettify(s)
  4413  }
  4414  
  4415  // GoString returns the string representation.
  4416  //
  4417  // API parameter values that are decorated as "sensitive" in the API will not
  4418  // be included in the string output. The member name will be present, but the
  4419  // value will be replaced with "sensitive".
  4420  func (s FraudsterRegistrationJobSummary) GoString() string {
  4421  	return s.String()
  4422  }
  4423  
  4424  // SetCreatedAt sets the CreatedAt field's value.
  4425  func (s *FraudsterRegistrationJobSummary) SetCreatedAt(v time.Time) *FraudsterRegistrationJobSummary {
  4426  	s.CreatedAt = &v
  4427  	return s
  4428  }
  4429  
  4430  // SetDomainId sets the DomainId field's value.
  4431  func (s *FraudsterRegistrationJobSummary) SetDomainId(v string) *FraudsterRegistrationJobSummary {
  4432  	s.DomainId = &v
  4433  	return s
  4434  }
  4435  
  4436  // SetEndedAt sets the EndedAt field's value.
  4437  func (s *FraudsterRegistrationJobSummary) SetEndedAt(v time.Time) *FraudsterRegistrationJobSummary {
  4438  	s.EndedAt = &v
  4439  	return s
  4440  }
  4441  
  4442  // SetFailureDetails sets the FailureDetails field's value.
  4443  func (s *FraudsterRegistrationJobSummary) SetFailureDetails(v *FailureDetails) *FraudsterRegistrationJobSummary {
  4444  	s.FailureDetails = v
  4445  	return s
  4446  }
  4447  
  4448  // SetJobId sets the JobId field's value.
  4449  func (s *FraudsterRegistrationJobSummary) SetJobId(v string) *FraudsterRegistrationJobSummary {
  4450  	s.JobId = &v
  4451  	return s
  4452  }
  4453  
  4454  // SetJobName sets the JobName field's value.
  4455  func (s *FraudsterRegistrationJobSummary) SetJobName(v string) *FraudsterRegistrationJobSummary {
  4456  	s.JobName = &v
  4457  	return s
  4458  }
  4459  
  4460  // SetJobProgress sets the JobProgress field's value.
  4461  func (s *FraudsterRegistrationJobSummary) SetJobProgress(v *JobProgress) *FraudsterRegistrationJobSummary {
  4462  	s.JobProgress = v
  4463  	return s
  4464  }
  4465  
  4466  // SetJobStatus sets the JobStatus field's value.
  4467  func (s *FraudsterRegistrationJobSummary) SetJobStatus(v string) *FraudsterRegistrationJobSummary {
  4468  	s.JobStatus = &v
  4469  	return s
  4470  }
  4471  
  4472  // The configuration containing input file information for a batch job.
  4473  type InputDataConfig struct {
  4474  	_ struct{} `type:"structure"`
  4475  
  4476  	// The S3 location for the input manifest file that contains the list of individual
  4477  	// enrollment or registration job requests.
  4478  	//
  4479  	// S3Uri is a required field
  4480  	S3Uri *string `type:"string" required:"true"`
  4481  }
  4482  
  4483  // String returns the string representation.
  4484  //
  4485  // API parameter values that are decorated as "sensitive" in the API will not
  4486  // be included in the string output. The member name will be present, but the
  4487  // value will be replaced with "sensitive".
  4488  func (s InputDataConfig) String() string {
  4489  	return awsutil.Prettify(s)
  4490  }
  4491  
  4492  // GoString returns the string representation.
  4493  //
  4494  // API parameter values that are decorated as "sensitive" in the API will not
  4495  // be included in the string output. The member name will be present, but the
  4496  // value will be replaced with "sensitive".
  4497  func (s InputDataConfig) GoString() string {
  4498  	return s.String()
  4499  }
  4500  
  4501  // Validate inspects the fields of the type to determine if they are valid.
  4502  func (s *InputDataConfig) Validate() error {
  4503  	invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"}
  4504  	if s.S3Uri == nil {
  4505  		invalidParams.Add(request.NewErrParamRequired("S3Uri"))
  4506  	}
  4507  
  4508  	if invalidParams.Len() > 0 {
  4509  		return invalidParams
  4510  	}
  4511  	return nil
  4512  }
  4513  
  4514  // SetS3Uri sets the S3Uri field's value.
  4515  func (s *InputDataConfig) SetS3Uri(v string) *InputDataConfig {
  4516  	s.S3Uri = &v
  4517  	return s
  4518  }
  4519  
  4520  // The request failed due to an unknown error on the server side.
  4521  type InternalServerException struct {
  4522  	_            struct{}                  `type:"structure"`
  4523  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  4524  
  4525  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  4526  }
  4527  
  4528  // String returns the string representation.
  4529  //
  4530  // API parameter values that are decorated as "sensitive" in the API will not
  4531  // be included in the string output. The member name will be present, but the
  4532  // value will be replaced with "sensitive".
  4533  func (s InternalServerException) String() string {
  4534  	return awsutil.Prettify(s)
  4535  }
  4536  
  4537  // GoString returns the string representation.
  4538  //
  4539  // API parameter values that are decorated as "sensitive" in the API will not
  4540  // be included in the string output. The member name will be present, but the
  4541  // value will be replaced with "sensitive".
  4542  func (s InternalServerException) GoString() string {
  4543  	return s.String()
  4544  }
  4545  
  4546  func newErrorInternalServerException(v protocol.ResponseMetadata) error {
  4547  	return &InternalServerException{
  4548  		RespMetadata: v,
  4549  	}
  4550  }
  4551  
  4552  // Code returns the exception type name.
  4553  func (s *InternalServerException) Code() string {
  4554  	return "InternalServerException"
  4555  }
  4556  
  4557  // Message returns the exception's message.
  4558  func (s *InternalServerException) Message() string {
  4559  	if s.Message_ != nil {
  4560  		return *s.Message_
  4561  	}
  4562  	return ""
  4563  }
  4564  
  4565  // OrigErr always returns nil, satisfies awserr.Error interface.
  4566  func (s *InternalServerException) OrigErr() error {
  4567  	return nil
  4568  }
  4569  
  4570  func (s *InternalServerException) Error() string {
  4571  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  4572  }
  4573  
  4574  // Status code returns the HTTP status code for the request's response error.
  4575  func (s *InternalServerException) StatusCode() int {
  4576  	return s.RespMetadata.StatusCode
  4577  }
  4578  
  4579  // RequestID returns the service's response RequestID for request.
  4580  func (s *InternalServerException) RequestID() string {
  4581  	return s.RespMetadata.RequestID
  4582  }
  4583  
  4584  // Indicates the completion progress for a batch job.
  4585  type JobProgress struct {
  4586  	_ struct{} `type:"structure"`
  4587  
  4588  	// Shows the completed percentage of enrollment or registration requests listed
  4589  	// in the input file.
  4590  	PercentComplete *int64 `type:"integer"`
  4591  }
  4592  
  4593  // String returns the string representation.
  4594  //
  4595  // API parameter values that are decorated as "sensitive" in the API will not
  4596  // be included in the string output. The member name will be present, but the
  4597  // value will be replaced with "sensitive".
  4598  func (s JobProgress) String() string {
  4599  	return awsutil.Prettify(s)
  4600  }
  4601  
  4602  // GoString returns the string representation.
  4603  //
  4604  // API parameter values that are decorated as "sensitive" in the API will not
  4605  // be included in the string output. The member name will be present, but the
  4606  // value will be replaced with "sensitive".
  4607  func (s JobProgress) GoString() string {
  4608  	return s.String()
  4609  }
  4610  
  4611  // SetPercentComplete sets the PercentComplete field's value.
  4612  func (s *JobProgress) SetPercentComplete(v int64) *JobProgress {
  4613  	s.PercentComplete = &v
  4614  	return s
  4615  }
  4616  
  4617  // Contains details produced as a result of performing known fraudster risk
  4618  // analysis on a speaker.
  4619  type KnownFraudsterRisk struct {
  4620  	_ struct{} `type:"structure"`
  4621  
  4622  	// The identifier of the fraudster that is the closest match to the speaker.
  4623  	// If there are no fraudsters registered in a given domain, or if there are
  4624  	// no fraudsters with a non-zero RiskScore, this value is null.
  4625  	GeneratedFraudsterId *string `min:"25" type:"string"`
  4626  
  4627  	// The score indicating the likelihood the speaker is a known fraudster.
  4628  	//
  4629  	// RiskScore is a required field
  4630  	RiskScore *int64 `type:"integer" required:"true"`
  4631  }
  4632  
  4633  // String returns the string representation.
  4634  //
  4635  // API parameter values that are decorated as "sensitive" in the API will not
  4636  // be included in the string output. The member name will be present, but the
  4637  // value will be replaced with "sensitive".
  4638  func (s KnownFraudsterRisk) String() string {
  4639  	return awsutil.Prettify(s)
  4640  }
  4641  
  4642  // GoString returns the string representation.
  4643  //
  4644  // API parameter values that are decorated as "sensitive" in the API will not
  4645  // be included in the string output. The member name will be present, but the
  4646  // value will be replaced with "sensitive".
  4647  func (s KnownFraudsterRisk) GoString() string {
  4648  	return s.String()
  4649  }
  4650  
  4651  // SetGeneratedFraudsterId sets the GeneratedFraudsterId field's value.
  4652  func (s *KnownFraudsterRisk) SetGeneratedFraudsterId(v string) *KnownFraudsterRisk {
  4653  	s.GeneratedFraudsterId = &v
  4654  	return s
  4655  }
  4656  
  4657  // SetRiskScore sets the RiskScore field's value.
  4658  func (s *KnownFraudsterRisk) SetRiskScore(v int64) *KnownFraudsterRisk {
  4659  	s.RiskScore = &v
  4660  	return s
  4661  }
  4662  
  4663  type ListDomainsInput struct {
  4664  	_ struct{} `type:"structure"`
  4665  
  4666  	// The maximum number of results that are returned per call. You can use NextToken
  4667  	// to obtain further pages of results. The default is 100; the maximum allowed
  4668  	// page size is also 100.
  4669  	MaxResults *int64 `min:"1" type:"integer"`
  4670  
  4671  	// If NextToken is returned, there are more results available. The value of
  4672  	// NextToken is a unique pagination token for each page. Make the call again
  4673  	// using the returned token to retrieve the next page. Keep all other arguments
  4674  	// unchanged. Each pagination token expires after 24 hours.
  4675  	NextToken *string `type:"string"`
  4676  }
  4677  
  4678  // String returns the string representation.
  4679  //
  4680  // API parameter values that are decorated as "sensitive" in the API will not
  4681  // be included in the string output. The member name will be present, but the
  4682  // value will be replaced with "sensitive".
  4683  func (s ListDomainsInput) String() string {
  4684  	return awsutil.Prettify(s)
  4685  }
  4686  
  4687  // GoString returns the string representation.
  4688  //
  4689  // API parameter values that are decorated as "sensitive" in the API will not
  4690  // be included in the string output. The member name will be present, but the
  4691  // value will be replaced with "sensitive".
  4692  func (s ListDomainsInput) GoString() string {
  4693  	return s.String()
  4694  }
  4695  
  4696  // Validate inspects the fields of the type to determine if they are valid.
  4697  func (s *ListDomainsInput) Validate() error {
  4698  	invalidParams := request.ErrInvalidParams{Context: "ListDomainsInput"}
  4699  	if s.MaxResults != nil && *s.MaxResults < 1 {
  4700  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4701  	}
  4702  
  4703  	if invalidParams.Len() > 0 {
  4704  		return invalidParams
  4705  	}
  4706  	return nil
  4707  }
  4708  
  4709  // SetMaxResults sets the MaxResults field's value.
  4710  func (s *ListDomainsInput) SetMaxResults(v int64) *ListDomainsInput {
  4711  	s.MaxResults = &v
  4712  	return s
  4713  }
  4714  
  4715  // SetNextToken sets the NextToken field's value.
  4716  func (s *ListDomainsInput) SetNextToken(v string) *ListDomainsInput {
  4717  	s.NextToken = &v
  4718  	return s
  4719  }
  4720  
  4721  type ListDomainsOutput struct {
  4722  	_ struct{} `type:"structure"`
  4723  
  4724  	// A list containing details about each domain in the Amazon Web Services account.
  4725  	DomainSummaries []*DomainSummary `type:"list"`
  4726  
  4727  	// If NextToken is returned, there are more results available. The value of
  4728  	// NextToken is a unique pagination token for each page. Make the call again
  4729  	// using the returned token to retrieve the next page. Keep all other arguments
  4730  	// unchanged. Each pagination token expires after 24 hours.
  4731  	NextToken *string `min:"1" type:"string"`
  4732  }
  4733  
  4734  // String returns the string representation.
  4735  //
  4736  // API parameter values that are decorated as "sensitive" in the API will not
  4737  // be included in the string output. The member name will be present, but the
  4738  // value will be replaced with "sensitive".
  4739  func (s ListDomainsOutput) String() string {
  4740  	return awsutil.Prettify(s)
  4741  }
  4742  
  4743  // GoString returns the string representation.
  4744  //
  4745  // API parameter values that are decorated as "sensitive" in the API will not
  4746  // be included in the string output. The member name will be present, but the
  4747  // value will be replaced with "sensitive".
  4748  func (s ListDomainsOutput) GoString() string {
  4749  	return s.String()
  4750  }
  4751  
  4752  // SetDomainSummaries sets the DomainSummaries field's value.
  4753  func (s *ListDomainsOutput) SetDomainSummaries(v []*DomainSummary) *ListDomainsOutput {
  4754  	s.DomainSummaries = v
  4755  	return s
  4756  }
  4757  
  4758  // SetNextToken sets the NextToken field's value.
  4759  func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput {
  4760  	s.NextToken = &v
  4761  	return s
  4762  }
  4763  
  4764  type ListFraudsterRegistrationJobsInput struct {
  4765  	_ struct{} `type:"structure"`
  4766  
  4767  	// The identifier of the domain containing the fraudster registration Jobs.
  4768  	//
  4769  	// DomainId is a required field
  4770  	DomainId *string `min:"22" type:"string" required:"true"`
  4771  
  4772  	// Provides the status of your fraudster registration job.
  4773  	JobStatus *string `type:"string" enum:"FraudsterRegistrationJobStatus"`
  4774  
  4775  	// The maximum number of results that are returned per call. You can use NextToken
  4776  	// to obtain further pages of results. The default is 100; the maximum allowed
  4777  	// page size is also 100.
  4778  	MaxResults *int64 `min:"1" type:"integer"`
  4779  
  4780  	// If NextToken is returned, there are more results available. The value of
  4781  	// NextToken is a unique pagination token for each page. Make the call again
  4782  	// using the returned token to retrieve the next page. Keep all other arguments
  4783  	// unchanged. Each pagination token expires after 24 hours.
  4784  	NextToken *string `type:"string"`
  4785  }
  4786  
  4787  // String returns the string representation.
  4788  //
  4789  // API parameter values that are decorated as "sensitive" in the API will not
  4790  // be included in the string output. The member name will be present, but the
  4791  // value will be replaced with "sensitive".
  4792  func (s ListFraudsterRegistrationJobsInput) String() string {
  4793  	return awsutil.Prettify(s)
  4794  }
  4795  
  4796  // GoString returns the string representation.
  4797  //
  4798  // API parameter values that are decorated as "sensitive" in the API will not
  4799  // be included in the string output. The member name will be present, but the
  4800  // value will be replaced with "sensitive".
  4801  func (s ListFraudsterRegistrationJobsInput) GoString() string {
  4802  	return s.String()
  4803  }
  4804  
  4805  // Validate inspects the fields of the type to determine if they are valid.
  4806  func (s *ListFraudsterRegistrationJobsInput) Validate() error {
  4807  	invalidParams := request.ErrInvalidParams{Context: "ListFraudsterRegistrationJobsInput"}
  4808  	if s.DomainId == nil {
  4809  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  4810  	}
  4811  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  4812  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  4813  	}
  4814  	if s.MaxResults != nil && *s.MaxResults < 1 {
  4815  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4816  	}
  4817  
  4818  	if invalidParams.Len() > 0 {
  4819  		return invalidParams
  4820  	}
  4821  	return nil
  4822  }
  4823  
  4824  // SetDomainId sets the DomainId field's value.
  4825  func (s *ListFraudsterRegistrationJobsInput) SetDomainId(v string) *ListFraudsterRegistrationJobsInput {
  4826  	s.DomainId = &v
  4827  	return s
  4828  }
  4829  
  4830  // SetJobStatus sets the JobStatus field's value.
  4831  func (s *ListFraudsterRegistrationJobsInput) SetJobStatus(v string) *ListFraudsterRegistrationJobsInput {
  4832  	s.JobStatus = &v
  4833  	return s
  4834  }
  4835  
  4836  // SetMaxResults sets the MaxResults field's value.
  4837  func (s *ListFraudsterRegistrationJobsInput) SetMaxResults(v int64) *ListFraudsterRegistrationJobsInput {
  4838  	s.MaxResults = &v
  4839  	return s
  4840  }
  4841  
  4842  // SetNextToken sets the NextToken field's value.
  4843  func (s *ListFraudsterRegistrationJobsInput) SetNextToken(v string) *ListFraudsterRegistrationJobsInput {
  4844  	s.NextToken = &v
  4845  	return s
  4846  }
  4847  
  4848  type ListFraudsterRegistrationJobsOutput struct {
  4849  	_ struct{} `type:"structure"`
  4850  
  4851  	// A list containing details about each specified fraudster registration job.
  4852  	JobSummaries []*FraudsterRegistrationJobSummary `type:"list"`
  4853  
  4854  	// If NextToken is returned, there are more results available. The value of
  4855  	// NextToken is a unique pagination token for each page. Make the call again
  4856  	// using the returned token to retrieve the next page. Keep all other arguments
  4857  	// unchanged. Each pagination token expires after 24 hours.
  4858  	NextToken *string `min:"1" type:"string"`
  4859  }
  4860  
  4861  // String returns the string representation.
  4862  //
  4863  // API parameter values that are decorated as "sensitive" in the API will not
  4864  // be included in the string output. The member name will be present, but the
  4865  // value will be replaced with "sensitive".
  4866  func (s ListFraudsterRegistrationJobsOutput) String() string {
  4867  	return awsutil.Prettify(s)
  4868  }
  4869  
  4870  // GoString returns the string representation.
  4871  //
  4872  // API parameter values that are decorated as "sensitive" in the API will not
  4873  // be included in the string output. The member name will be present, but the
  4874  // value will be replaced with "sensitive".
  4875  func (s ListFraudsterRegistrationJobsOutput) GoString() string {
  4876  	return s.String()
  4877  }
  4878  
  4879  // SetJobSummaries sets the JobSummaries field's value.
  4880  func (s *ListFraudsterRegistrationJobsOutput) SetJobSummaries(v []*FraudsterRegistrationJobSummary) *ListFraudsterRegistrationJobsOutput {
  4881  	s.JobSummaries = v
  4882  	return s
  4883  }
  4884  
  4885  // SetNextToken sets the NextToken field's value.
  4886  func (s *ListFraudsterRegistrationJobsOutput) SetNextToken(v string) *ListFraudsterRegistrationJobsOutput {
  4887  	s.NextToken = &v
  4888  	return s
  4889  }
  4890  
  4891  type ListSpeakerEnrollmentJobsInput struct {
  4892  	_ struct{} `type:"structure"`
  4893  
  4894  	// The identifier of the domain containing the speaker enrollment jobs.
  4895  	//
  4896  	// DomainId is a required field
  4897  	DomainId *string `min:"22" type:"string" required:"true"`
  4898  
  4899  	// Provides the status of your speaker enrollment Job.
  4900  	JobStatus *string `type:"string" enum:"SpeakerEnrollmentJobStatus"`
  4901  
  4902  	// The maximum number of results that are returned per call. You can use NextToken
  4903  	// to obtain further pages of results. The default is 100; the maximum allowed
  4904  	// page size is also 100.
  4905  	MaxResults *int64 `min:"1" type:"integer"`
  4906  
  4907  	// If NextToken is returned, there are more results available. The value of
  4908  	// NextToken is a unique pagination token for each page. Make the call again
  4909  	// using the returned token to retrieve the next page. Keep all other arguments
  4910  	// unchanged. Each pagination token expires after 24 hours.
  4911  	NextToken *string `type:"string"`
  4912  }
  4913  
  4914  // String returns the string representation.
  4915  //
  4916  // API parameter values that are decorated as "sensitive" in the API will not
  4917  // be included in the string output. The member name will be present, but the
  4918  // value will be replaced with "sensitive".
  4919  func (s ListSpeakerEnrollmentJobsInput) String() string {
  4920  	return awsutil.Prettify(s)
  4921  }
  4922  
  4923  // GoString returns the string representation.
  4924  //
  4925  // API parameter values that are decorated as "sensitive" in the API will not
  4926  // be included in the string output. The member name will be present, but the
  4927  // value will be replaced with "sensitive".
  4928  func (s ListSpeakerEnrollmentJobsInput) GoString() string {
  4929  	return s.String()
  4930  }
  4931  
  4932  // Validate inspects the fields of the type to determine if they are valid.
  4933  func (s *ListSpeakerEnrollmentJobsInput) Validate() error {
  4934  	invalidParams := request.ErrInvalidParams{Context: "ListSpeakerEnrollmentJobsInput"}
  4935  	if s.DomainId == nil {
  4936  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  4937  	}
  4938  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  4939  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  4940  	}
  4941  	if s.MaxResults != nil && *s.MaxResults < 1 {
  4942  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4943  	}
  4944  
  4945  	if invalidParams.Len() > 0 {
  4946  		return invalidParams
  4947  	}
  4948  	return nil
  4949  }
  4950  
  4951  // SetDomainId sets the DomainId field's value.
  4952  func (s *ListSpeakerEnrollmentJobsInput) SetDomainId(v string) *ListSpeakerEnrollmentJobsInput {
  4953  	s.DomainId = &v
  4954  	return s
  4955  }
  4956  
  4957  // SetJobStatus sets the JobStatus field's value.
  4958  func (s *ListSpeakerEnrollmentJobsInput) SetJobStatus(v string) *ListSpeakerEnrollmentJobsInput {
  4959  	s.JobStatus = &v
  4960  	return s
  4961  }
  4962  
  4963  // SetMaxResults sets the MaxResults field's value.
  4964  func (s *ListSpeakerEnrollmentJobsInput) SetMaxResults(v int64) *ListSpeakerEnrollmentJobsInput {
  4965  	s.MaxResults = &v
  4966  	return s
  4967  }
  4968  
  4969  // SetNextToken sets the NextToken field's value.
  4970  func (s *ListSpeakerEnrollmentJobsInput) SetNextToken(v string) *ListSpeakerEnrollmentJobsInput {
  4971  	s.NextToken = &v
  4972  	return s
  4973  }
  4974  
  4975  type ListSpeakerEnrollmentJobsOutput struct {
  4976  	_ struct{} `type:"structure"`
  4977  
  4978  	// A list containing details about each specified speaker enrollment job.
  4979  	JobSummaries []*SpeakerEnrollmentJobSummary `type:"list"`
  4980  
  4981  	// If NextToken is returned, there are more results available. The value of
  4982  	// NextToken is a unique pagination token for each page. Make the call again
  4983  	// using the returned token to retrieve the next page. Keep all other arguments
  4984  	// unchanged. Each pagination token expires after 24 hours.
  4985  	NextToken *string `min:"1" type:"string"`
  4986  }
  4987  
  4988  // String returns the string representation.
  4989  //
  4990  // API parameter values that are decorated as "sensitive" in the API will not
  4991  // be included in the string output. The member name will be present, but the
  4992  // value will be replaced with "sensitive".
  4993  func (s ListSpeakerEnrollmentJobsOutput) String() string {
  4994  	return awsutil.Prettify(s)
  4995  }
  4996  
  4997  // GoString returns the string representation.
  4998  //
  4999  // API parameter values that are decorated as "sensitive" in the API will not
  5000  // be included in the string output. The member name will be present, but the
  5001  // value will be replaced with "sensitive".
  5002  func (s ListSpeakerEnrollmentJobsOutput) GoString() string {
  5003  	return s.String()
  5004  }
  5005  
  5006  // SetJobSummaries sets the JobSummaries field's value.
  5007  func (s *ListSpeakerEnrollmentJobsOutput) SetJobSummaries(v []*SpeakerEnrollmentJobSummary) *ListSpeakerEnrollmentJobsOutput {
  5008  	s.JobSummaries = v
  5009  	return s
  5010  }
  5011  
  5012  // SetNextToken sets the NextToken field's value.
  5013  func (s *ListSpeakerEnrollmentJobsOutput) SetNextToken(v string) *ListSpeakerEnrollmentJobsOutput {
  5014  	s.NextToken = &v
  5015  	return s
  5016  }
  5017  
  5018  type ListSpeakersInput struct {
  5019  	_ struct{} `type:"structure"`
  5020  
  5021  	// The identifier of the domain.
  5022  	//
  5023  	// DomainId is a required field
  5024  	DomainId *string `min:"22" type:"string" required:"true"`
  5025  
  5026  	// The maximum number of results that are returned per call. You can use NextToken
  5027  	// to obtain further pages of results. The default is 100; the maximum allowed
  5028  	// page size is also 100.
  5029  	MaxResults *int64 `min:"1" type:"integer"`
  5030  
  5031  	// If NextToken is returned, there are more results available. The value of
  5032  	// NextToken is a unique pagination token for each page. Make the call again
  5033  	// using the returned token to retrieve the next page. Keep all other arguments
  5034  	// unchanged. Each pagination token expires after 24 hours.
  5035  	NextToken *string `type:"string"`
  5036  }
  5037  
  5038  // String returns the string representation.
  5039  //
  5040  // API parameter values that are decorated as "sensitive" in the API will not
  5041  // be included in the string output. The member name will be present, but the
  5042  // value will be replaced with "sensitive".
  5043  func (s ListSpeakersInput) String() string {
  5044  	return awsutil.Prettify(s)
  5045  }
  5046  
  5047  // GoString returns the string representation.
  5048  //
  5049  // API parameter values that are decorated as "sensitive" in the API will not
  5050  // be included in the string output. The member name will be present, but the
  5051  // value will be replaced with "sensitive".
  5052  func (s ListSpeakersInput) GoString() string {
  5053  	return s.String()
  5054  }
  5055  
  5056  // Validate inspects the fields of the type to determine if they are valid.
  5057  func (s *ListSpeakersInput) Validate() error {
  5058  	invalidParams := request.ErrInvalidParams{Context: "ListSpeakersInput"}
  5059  	if s.DomainId == nil {
  5060  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  5061  	}
  5062  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  5063  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  5064  	}
  5065  	if s.MaxResults != nil && *s.MaxResults < 1 {
  5066  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5067  	}
  5068  
  5069  	if invalidParams.Len() > 0 {
  5070  		return invalidParams
  5071  	}
  5072  	return nil
  5073  }
  5074  
  5075  // SetDomainId sets the DomainId field's value.
  5076  func (s *ListSpeakersInput) SetDomainId(v string) *ListSpeakersInput {
  5077  	s.DomainId = &v
  5078  	return s
  5079  }
  5080  
  5081  // SetMaxResults sets the MaxResults field's value.
  5082  func (s *ListSpeakersInput) SetMaxResults(v int64) *ListSpeakersInput {
  5083  	s.MaxResults = &v
  5084  	return s
  5085  }
  5086  
  5087  // SetNextToken sets the NextToken field's value.
  5088  func (s *ListSpeakersInput) SetNextToken(v string) *ListSpeakersInput {
  5089  	s.NextToken = &v
  5090  	return s
  5091  }
  5092  
  5093  type ListSpeakersOutput struct {
  5094  	_ struct{} `type:"structure"`
  5095  
  5096  	// If NextToken is returned, there are more results available. The value of
  5097  	// NextToken is a unique pagination token for each page. Make the call again
  5098  	// using the returned token to retrieve the next page. Keep all other arguments
  5099  	// unchanged. Each pagination token expires after 24 hours.
  5100  	NextToken *string `min:"1" type:"string"`
  5101  
  5102  	// A list containing details about each speaker in the Amazon Web Services account.
  5103  	SpeakerSummaries []*SpeakerSummary `type:"list"`
  5104  }
  5105  
  5106  // String returns the string representation.
  5107  //
  5108  // API parameter values that are decorated as "sensitive" in the API will not
  5109  // be included in the string output. The member name will be present, but the
  5110  // value will be replaced with "sensitive".
  5111  func (s ListSpeakersOutput) String() string {
  5112  	return awsutil.Prettify(s)
  5113  }
  5114  
  5115  // GoString returns the string representation.
  5116  //
  5117  // API parameter values that are decorated as "sensitive" in the API will not
  5118  // be included in the string output. The member name will be present, but the
  5119  // value will be replaced with "sensitive".
  5120  func (s ListSpeakersOutput) GoString() string {
  5121  	return s.String()
  5122  }
  5123  
  5124  // SetNextToken sets the NextToken field's value.
  5125  func (s *ListSpeakersOutput) SetNextToken(v string) *ListSpeakersOutput {
  5126  	s.NextToken = &v
  5127  	return s
  5128  }
  5129  
  5130  // SetSpeakerSummaries sets the SpeakerSummaries field's value.
  5131  func (s *ListSpeakersOutput) SetSpeakerSummaries(v []*SpeakerSummary) *ListSpeakersOutput {
  5132  	s.SpeakerSummaries = v
  5133  	return s
  5134  }
  5135  
  5136  type ListTagsForResourceInput struct {
  5137  	_ struct{} `type:"structure"`
  5138  
  5139  	// The Amazon Resource Name (ARN) of the Voice ID resource for which you want
  5140  	// to list the tags.
  5141  	//
  5142  	// ResourceArn is a required field
  5143  	ResourceArn *string `min:"1" type:"string" required:"true"`
  5144  }
  5145  
  5146  // String returns the string representation.
  5147  //
  5148  // API parameter values that are decorated as "sensitive" in the API will not
  5149  // be included in the string output. The member name will be present, but the
  5150  // value will be replaced with "sensitive".
  5151  func (s ListTagsForResourceInput) String() string {
  5152  	return awsutil.Prettify(s)
  5153  }
  5154  
  5155  // GoString returns the string representation.
  5156  //
  5157  // API parameter values that are decorated as "sensitive" in the API will not
  5158  // be included in the string output. The member name will be present, but the
  5159  // value will be replaced with "sensitive".
  5160  func (s ListTagsForResourceInput) GoString() string {
  5161  	return s.String()
  5162  }
  5163  
  5164  // Validate inspects the fields of the type to determine if they are valid.
  5165  func (s *ListTagsForResourceInput) Validate() error {
  5166  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  5167  	if s.ResourceArn == nil {
  5168  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  5169  	}
  5170  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  5171  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  5172  	}
  5173  
  5174  	if invalidParams.Len() > 0 {
  5175  		return invalidParams
  5176  	}
  5177  	return nil
  5178  }
  5179  
  5180  // SetResourceArn sets the ResourceArn field's value.
  5181  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  5182  	s.ResourceArn = &v
  5183  	return s
  5184  }
  5185  
  5186  type ListTagsForResourceOutput struct {
  5187  	_ struct{} `type:"structure"`
  5188  
  5189  	// The list of tags associated with the specified resource.
  5190  	Tags []*Tag `type:"list"`
  5191  }
  5192  
  5193  // String returns the string representation.
  5194  //
  5195  // API parameter values that are decorated as "sensitive" in the API will not
  5196  // be included in the string output. The member name will be present, but the
  5197  // value will be replaced with "sensitive".
  5198  func (s ListTagsForResourceOutput) String() string {
  5199  	return awsutil.Prettify(s)
  5200  }
  5201  
  5202  // GoString returns the string representation.
  5203  //
  5204  // API parameter values that are decorated as "sensitive" in the API will not
  5205  // be included in the string output. The member name will be present, but the
  5206  // value will be replaced with "sensitive".
  5207  func (s ListTagsForResourceOutput) GoString() string {
  5208  	return s.String()
  5209  }
  5210  
  5211  // SetTags sets the Tags field's value.
  5212  func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
  5213  	s.Tags = v
  5214  	return s
  5215  }
  5216  
  5217  type OptOutSpeakerInput struct {
  5218  	_ struct{} `type:"structure"`
  5219  
  5220  	// The identifier of the domain containing the speaker.
  5221  	//
  5222  	// DomainId is a required field
  5223  	DomainId *string `min:"22" type:"string" required:"true"`
  5224  
  5225  	// The identifier of the speaker you want opted-out.
  5226  	//
  5227  	// SpeakerId is a sensitive parameter and its value will be
  5228  	// replaced with "sensitive" in string returned by OptOutSpeakerInput's
  5229  	// String and GoString methods.
  5230  	//
  5231  	// SpeakerId is a required field
  5232  	SpeakerId *string `min:"1" type:"string" required:"true" sensitive:"true"`
  5233  }
  5234  
  5235  // String returns the string representation.
  5236  //
  5237  // API parameter values that are decorated as "sensitive" in the API will not
  5238  // be included in the string output. The member name will be present, but the
  5239  // value will be replaced with "sensitive".
  5240  func (s OptOutSpeakerInput) String() string {
  5241  	return awsutil.Prettify(s)
  5242  }
  5243  
  5244  // GoString returns the string representation.
  5245  //
  5246  // API parameter values that are decorated as "sensitive" in the API will not
  5247  // be included in the string output. The member name will be present, but the
  5248  // value will be replaced with "sensitive".
  5249  func (s OptOutSpeakerInput) GoString() string {
  5250  	return s.String()
  5251  }
  5252  
  5253  // Validate inspects the fields of the type to determine if they are valid.
  5254  func (s *OptOutSpeakerInput) Validate() error {
  5255  	invalidParams := request.ErrInvalidParams{Context: "OptOutSpeakerInput"}
  5256  	if s.DomainId == nil {
  5257  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  5258  	}
  5259  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  5260  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  5261  	}
  5262  	if s.SpeakerId == nil {
  5263  		invalidParams.Add(request.NewErrParamRequired("SpeakerId"))
  5264  	}
  5265  	if s.SpeakerId != nil && len(*s.SpeakerId) < 1 {
  5266  		invalidParams.Add(request.NewErrParamMinLen("SpeakerId", 1))
  5267  	}
  5268  
  5269  	if invalidParams.Len() > 0 {
  5270  		return invalidParams
  5271  	}
  5272  	return nil
  5273  }
  5274  
  5275  // SetDomainId sets the DomainId field's value.
  5276  func (s *OptOutSpeakerInput) SetDomainId(v string) *OptOutSpeakerInput {
  5277  	s.DomainId = &v
  5278  	return s
  5279  }
  5280  
  5281  // SetSpeakerId sets the SpeakerId field's value.
  5282  func (s *OptOutSpeakerInput) SetSpeakerId(v string) *OptOutSpeakerInput {
  5283  	s.SpeakerId = &v
  5284  	return s
  5285  }
  5286  
  5287  type OptOutSpeakerOutput struct {
  5288  	_ struct{} `type:"structure"`
  5289  
  5290  	// Details about the opted-out speaker.
  5291  	Speaker *Speaker `type:"structure"`
  5292  }
  5293  
  5294  // String returns the string representation.
  5295  //
  5296  // API parameter values that are decorated as "sensitive" in the API will not
  5297  // be included in the string output. The member name will be present, but the
  5298  // value will be replaced with "sensitive".
  5299  func (s OptOutSpeakerOutput) String() string {
  5300  	return awsutil.Prettify(s)
  5301  }
  5302  
  5303  // GoString returns the string representation.
  5304  //
  5305  // API parameter values that are decorated as "sensitive" in the API will not
  5306  // be included in the string output. The member name will be present, but the
  5307  // value will be replaced with "sensitive".
  5308  func (s OptOutSpeakerOutput) GoString() string {
  5309  	return s.String()
  5310  }
  5311  
  5312  // SetSpeaker sets the Speaker field's value.
  5313  func (s *OptOutSpeakerOutput) SetSpeaker(v *Speaker) *OptOutSpeakerOutput {
  5314  	s.Speaker = v
  5315  	return s
  5316  }
  5317  
  5318  // The configuration containing output file information for a batch job.
  5319  type OutputDataConfig struct {
  5320  	_ struct{} `type:"structure"`
  5321  
  5322  	// the identifier of the KMS key you want Voice ID to use to encrypt the output
  5323  	// file of the fraudster registration job.
  5324  	KmsKeyId *string `min:"1" type:"string"`
  5325  
  5326  	// The S3 path of the folder to which Voice ID writes the job output file, which
  5327  	// has a *.out extension. For example, if the input file name is input-file.json
  5328  	// and the output folder path is s3://output-bucket/output-folder, the full
  5329  	// output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out.
  5330  	//
  5331  	// S3Uri is a required field
  5332  	S3Uri *string `type:"string" required:"true"`
  5333  }
  5334  
  5335  // String returns the string representation.
  5336  //
  5337  // API parameter values that are decorated as "sensitive" in the API will not
  5338  // be included in the string output. The member name will be present, but the
  5339  // value will be replaced with "sensitive".
  5340  func (s OutputDataConfig) String() string {
  5341  	return awsutil.Prettify(s)
  5342  }
  5343  
  5344  // GoString returns the string representation.
  5345  //
  5346  // API parameter values that are decorated as "sensitive" in the API will not
  5347  // be included in the string output. The member name will be present, but the
  5348  // value will be replaced with "sensitive".
  5349  func (s OutputDataConfig) GoString() string {
  5350  	return s.String()
  5351  }
  5352  
  5353  // Validate inspects the fields of the type to determine if they are valid.
  5354  func (s *OutputDataConfig) Validate() error {
  5355  	invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"}
  5356  	if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 {
  5357  		invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1))
  5358  	}
  5359  	if s.S3Uri == nil {
  5360  		invalidParams.Add(request.NewErrParamRequired("S3Uri"))
  5361  	}
  5362  
  5363  	if invalidParams.Len() > 0 {
  5364  		return invalidParams
  5365  	}
  5366  	return nil
  5367  }
  5368  
  5369  // SetKmsKeyId sets the KmsKeyId field's value.
  5370  func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig {
  5371  	s.KmsKeyId = &v
  5372  	return s
  5373  }
  5374  
  5375  // SetS3Uri sets the S3Uri field's value.
  5376  func (s *OutputDataConfig) SetS3Uri(v string) *OutputDataConfig {
  5377  	s.S3Uri = &v
  5378  	return s
  5379  }
  5380  
  5381  // The configuration definining the action to take when a duplicate fraudster
  5382  // is detected, and the similarity threshold to use for detecting a duplicate
  5383  // fraudster during a batch fraudster registration job.
  5384  type RegistrationConfig struct {
  5385  	_ struct{} `type:"structure"`
  5386  
  5387  	// The action to take when a fraudster is identified as a duplicate. The default
  5388  	// action is SKIP, which skips registering the duplicate fraudster. Setting
  5389  	// the value to REGISTER_AS_NEW always registers a new fraudster into the specified
  5390  	// domain.
  5391  	DuplicateRegistrationAction *string `type:"string" enum:"DuplicateRegistrationAction"`
  5392  
  5393  	// The minimum similarity score between the new and old fraudsters in order
  5394  	// to consider the new fraudster a duplicate.
  5395  	FraudsterSimilarityThreshold *int64 `type:"integer"`
  5396  }
  5397  
  5398  // String returns the string representation.
  5399  //
  5400  // API parameter values that are decorated as "sensitive" in the API will not
  5401  // be included in the string output. The member name will be present, but the
  5402  // value will be replaced with "sensitive".
  5403  func (s RegistrationConfig) String() string {
  5404  	return awsutil.Prettify(s)
  5405  }
  5406  
  5407  // GoString returns the string representation.
  5408  //
  5409  // API parameter values that are decorated as "sensitive" in the API will not
  5410  // be included in the string output. The member name will be present, but the
  5411  // value will be replaced with "sensitive".
  5412  func (s RegistrationConfig) GoString() string {
  5413  	return s.String()
  5414  }
  5415  
  5416  // SetDuplicateRegistrationAction sets the DuplicateRegistrationAction field's value.
  5417  func (s *RegistrationConfig) SetDuplicateRegistrationAction(v string) *RegistrationConfig {
  5418  	s.DuplicateRegistrationAction = &v
  5419  	return s
  5420  }
  5421  
  5422  // SetFraudsterSimilarityThreshold sets the FraudsterSimilarityThreshold field's value.
  5423  func (s *RegistrationConfig) SetFraudsterSimilarityThreshold(v int64) *RegistrationConfig {
  5424  	s.FraudsterSimilarityThreshold = &v
  5425  	return s
  5426  }
  5427  
  5428  // The specified resource cannot be found. Check the ResourceType and error
  5429  // message for more details.
  5430  type ResourceNotFoundException struct {
  5431  	_            struct{}                  `type:"structure"`
  5432  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5433  
  5434  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  5435  
  5436  	// The type of resource which cannot not be found. Possible types are BATCH_JOB,
  5437  	// COMPLIANCE_CONSENT, DOMAIN, FRAUDSTER, SESSION and SPEAKER.
  5438  	ResourceType *string `type:"string" enum:"ResourceType"`
  5439  }
  5440  
  5441  // String returns the string representation.
  5442  //
  5443  // API parameter values that are decorated as "sensitive" in the API will not
  5444  // be included in the string output. The member name will be present, but the
  5445  // value will be replaced with "sensitive".
  5446  func (s ResourceNotFoundException) String() string {
  5447  	return awsutil.Prettify(s)
  5448  }
  5449  
  5450  // GoString returns the string representation.
  5451  //
  5452  // API parameter values that are decorated as "sensitive" in the API will not
  5453  // be included in the string output. The member name will be present, but the
  5454  // value will be replaced with "sensitive".
  5455  func (s ResourceNotFoundException) GoString() string {
  5456  	return s.String()
  5457  }
  5458  
  5459  func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
  5460  	return &ResourceNotFoundException{
  5461  		RespMetadata: v,
  5462  	}
  5463  }
  5464  
  5465  // Code returns the exception type name.
  5466  func (s *ResourceNotFoundException) Code() string {
  5467  	return "ResourceNotFoundException"
  5468  }
  5469  
  5470  // Message returns the exception's message.
  5471  func (s *ResourceNotFoundException) Message() string {
  5472  	if s.Message_ != nil {
  5473  		return *s.Message_
  5474  	}
  5475  	return ""
  5476  }
  5477  
  5478  // OrigErr always returns nil, satisfies awserr.Error interface.
  5479  func (s *ResourceNotFoundException) OrigErr() error {
  5480  	return nil
  5481  }
  5482  
  5483  func (s *ResourceNotFoundException) Error() string {
  5484  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  5485  }
  5486  
  5487  // Status code returns the HTTP status code for the request's response error.
  5488  func (s *ResourceNotFoundException) StatusCode() int {
  5489  	return s.RespMetadata.StatusCode
  5490  }
  5491  
  5492  // RequestID returns the service's response RequestID for request.
  5493  func (s *ResourceNotFoundException) RequestID() string {
  5494  	return s.RespMetadata.RequestID
  5495  }
  5496  
  5497  // The configuration containing information about the customer-managed KMS Key
  5498  // used for encrypting customer data.
  5499  type ServerSideEncryptionConfiguration struct {
  5500  	_ struct{} `type:"structure"`
  5501  
  5502  	// The identifier of the KMS Key you want Voice ID to use to encrypt your data.
  5503  	//
  5504  	// KmsKeyId is a required field
  5505  	KmsKeyId *string `min:"1" type:"string" required:"true"`
  5506  }
  5507  
  5508  // String returns the string representation.
  5509  //
  5510  // API parameter values that are decorated as "sensitive" in the API will not
  5511  // be included in the string output. The member name will be present, but the
  5512  // value will be replaced with "sensitive".
  5513  func (s ServerSideEncryptionConfiguration) String() string {
  5514  	return awsutil.Prettify(s)
  5515  }
  5516  
  5517  // GoString returns the string representation.
  5518  //
  5519  // API parameter values that are decorated as "sensitive" in the API will not
  5520  // be included in the string output. The member name will be present, but the
  5521  // value will be replaced with "sensitive".
  5522  func (s ServerSideEncryptionConfiguration) GoString() string {
  5523  	return s.String()
  5524  }
  5525  
  5526  // Validate inspects the fields of the type to determine if they are valid.
  5527  func (s *ServerSideEncryptionConfiguration) Validate() error {
  5528  	invalidParams := request.ErrInvalidParams{Context: "ServerSideEncryptionConfiguration"}
  5529  	if s.KmsKeyId == nil {
  5530  		invalidParams.Add(request.NewErrParamRequired("KmsKeyId"))
  5531  	}
  5532  	if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 {
  5533  		invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1))
  5534  	}
  5535  
  5536  	if invalidParams.Len() > 0 {
  5537  		return invalidParams
  5538  	}
  5539  	return nil
  5540  }
  5541  
  5542  // SetKmsKeyId sets the KmsKeyId field's value.
  5543  func (s *ServerSideEncryptionConfiguration) SetKmsKeyId(v string) *ServerSideEncryptionConfiguration {
  5544  	s.KmsKeyId = &v
  5545  	return s
  5546  }
  5547  
  5548  // The request exceeded the service quota. Refer to Voice ID Service Quotas
  5549  // (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas)
  5550  // and try your request again.
  5551  type ServiceQuotaExceededException struct {
  5552  	_            struct{}                  `type:"structure"`
  5553  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5554  
  5555  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  5556  }
  5557  
  5558  // String returns the string representation.
  5559  //
  5560  // API parameter values that are decorated as "sensitive" in the API will not
  5561  // be included in the string output. The member name will be present, but the
  5562  // value will be replaced with "sensitive".
  5563  func (s ServiceQuotaExceededException) String() string {
  5564  	return awsutil.Prettify(s)
  5565  }
  5566  
  5567  // GoString returns the string representation.
  5568  //
  5569  // API parameter values that are decorated as "sensitive" in the API will not
  5570  // be included in the string output. The member name will be present, but the
  5571  // value will be replaced with "sensitive".
  5572  func (s ServiceQuotaExceededException) GoString() string {
  5573  	return s.String()
  5574  }
  5575  
  5576  func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
  5577  	return &ServiceQuotaExceededException{
  5578  		RespMetadata: v,
  5579  	}
  5580  }
  5581  
  5582  // Code returns the exception type name.
  5583  func (s *ServiceQuotaExceededException) Code() string {
  5584  	return "ServiceQuotaExceededException"
  5585  }
  5586  
  5587  // Message returns the exception's message.
  5588  func (s *ServiceQuotaExceededException) Message() string {
  5589  	if s.Message_ != nil {
  5590  		return *s.Message_
  5591  	}
  5592  	return ""
  5593  }
  5594  
  5595  // OrigErr always returns nil, satisfies awserr.Error interface.
  5596  func (s *ServiceQuotaExceededException) OrigErr() error {
  5597  	return nil
  5598  }
  5599  
  5600  func (s *ServiceQuotaExceededException) Error() string {
  5601  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  5602  }
  5603  
  5604  // Status code returns the HTTP status code for the request's response error.
  5605  func (s *ServiceQuotaExceededException) StatusCode() int {
  5606  	return s.RespMetadata.StatusCode
  5607  }
  5608  
  5609  // RequestID returns the service's response RequestID for request.
  5610  func (s *ServiceQuotaExceededException) RequestID() string {
  5611  	return s.RespMetadata.RequestID
  5612  }
  5613  
  5614  // Contains all the information about a speaker.
  5615  type Speaker struct {
  5616  	_ struct{} `type:"structure"`
  5617  
  5618  	// A timestamp showing when the speaker is created.
  5619  	CreatedAt *time.Time `type:"timestamp"`
  5620  
  5621  	// The client-provided identifier for the speaker.
  5622  	//
  5623  	// CustomerSpeakerId is a sensitive parameter and its value will be
  5624  	// replaced with "sensitive" in string returned by Speaker's
  5625  	// String and GoString methods.
  5626  	CustomerSpeakerId *string `min:"1" type:"string" sensitive:"true"`
  5627  
  5628  	// The identifier of the domain that contains the speaker.
  5629  	DomainId *string `min:"22" type:"string"`
  5630  
  5631  	// The service-generated identifier for the speaker.
  5632  	GeneratedSpeakerId *string `min:"25" type:"string"`
  5633  
  5634  	// The current status of the speaker.
  5635  	Status *string `type:"string" enum:"SpeakerStatus"`
  5636  
  5637  	// A timestamp showing the speaker's last update.
  5638  	UpdatedAt *time.Time `type:"timestamp"`
  5639  }
  5640  
  5641  // String returns the string representation.
  5642  //
  5643  // API parameter values that are decorated as "sensitive" in the API will not
  5644  // be included in the string output. The member name will be present, but the
  5645  // value will be replaced with "sensitive".
  5646  func (s Speaker) String() string {
  5647  	return awsutil.Prettify(s)
  5648  }
  5649  
  5650  // GoString returns the string representation.
  5651  //
  5652  // API parameter values that are decorated as "sensitive" in the API will not
  5653  // be included in the string output. The member name will be present, but the
  5654  // value will be replaced with "sensitive".
  5655  func (s Speaker) GoString() string {
  5656  	return s.String()
  5657  }
  5658  
  5659  // SetCreatedAt sets the CreatedAt field's value.
  5660  func (s *Speaker) SetCreatedAt(v time.Time) *Speaker {
  5661  	s.CreatedAt = &v
  5662  	return s
  5663  }
  5664  
  5665  // SetCustomerSpeakerId sets the CustomerSpeakerId field's value.
  5666  func (s *Speaker) SetCustomerSpeakerId(v string) *Speaker {
  5667  	s.CustomerSpeakerId = &v
  5668  	return s
  5669  }
  5670  
  5671  // SetDomainId sets the DomainId field's value.
  5672  func (s *Speaker) SetDomainId(v string) *Speaker {
  5673  	s.DomainId = &v
  5674  	return s
  5675  }
  5676  
  5677  // SetGeneratedSpeakerId sets the GeneratedSpeakerId field's value.
  5678  func (s *Speaker) SetGeneratedSpeakerId(v string) *Speaker {
  5679  	s.GeneratedSpeakerId = &v
  5680  	return s
  5681  }
  5682  
  5683  // SetStatus sets the Status field's value.
  5684  func (s *Speaker) SetStatus(v string) *Speaker {
  5685  	s.Status = &v
  5686  	return s
  5687  }
  5688  
  5689  // SetUpdatedAt sets the UpdatedAt field's value.
  5690  func (s *Speaker) SetUpdatedAt(v time.Time) *Speaker {
  5691  	s.UpdatedAt = &v
  5692  	return s
  5693  }
  5694  
  5695  // Contains all the information about a speaker enrollment job.
  5696  type SpeakerEnrollmentJob struct {
  5697  	_ struct{} `type:"structure"`
  5698  
  5699  	// A timestamp showing the creation of the speaker enrollment job.
  5700  	CreatedAt *time.Time `type:"timestamp"`
  5701  
  5702  	// The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
  5703  	// to access customer's buckets to read the input manifest file and write the
  5704  	// job output file.
  5705  	DataAccessRoleArn *string `min:"20" type:"string"`
  5706  
  5707  	// The identifier of the domain that contains the speaker enrollment job.
  5708  	DomainId *string `min:"22" type:"string"`
  5709  
  5710  	// A timestamp showing when the speaker enrollment job ended.
  5711  	EndedAt *time.Time `type:"timestamp"`
  5712  
  5713  	// The configuration that defines the action to take when the speaker is already
  5714  	// enrolled in Voice ID, and the FraudDetectionConfig to use.
  5715  	EnrollmentConfig *EnrollmentConfig `type:"structure"`
  5716  
  5717  	// Contains details that are populated when an entire batch job fails. In cases
  5718  	// of individual registration job failures, the batch job as a whole doesn't
  5719  	// fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS. You can
  5720  	// use the job output file to identify the individual registration requests
  5721  	// that failed.
  5722  	FailureDetails *FailureDetails `type:"structure"`
  5723  
  5724  	// The input data config containing an S3 URI for the input manifest file that
  5725  	// contains the list of speaker enrollment job requests.
  5726  	InputDataConfig *InputDataConfig `type:"structure"`
  5727  
  5728  	// The service-generated identifier for the speaker enrollment job.
  5729  	JobId *string `min:"22" type:"string"`
  5730  
  5731  	// The client-provided name for the speaker enrollment job.
  5732  	//
  5733  	// JobName is a sensitive parameter and its value will be
  5734  	// replaced with "sensitive" in string returned by SpeakerEnrollmentJob's
  5735  	// String and GoString methods.
  5736  	JobName *string `min:"1" type:"string" sensitive:"true"`
  5737  
  5738  	// Provides details on job progress. This field shows the completed percentage
  5739  	// of registration requests listed in the input file.
  5740  	JobProgress *JobProgress `type:"structure"`
  5741  
  5742  	// The current status of the speaker enrollment job.
  5743  	JobStatus *string `type:"string" enum:"SpeakerEnrollmentJobStatus"`
  5744  
  5745  	// The output data config containing the S3 location where Voice ID writes the
  5746  	// job output file; you must also include a KMS Key ID to encrypt the file.
  5747  	OutputDataConfig *OutputDataConfig `type:"structure"`
  5748  }
  5749  
  5750  // String returns the string representation.
  5751  //
  5752  // API parameter values that are decorated as "sensitive" in the API will not
  5753  // be included in the string output. The member name will be present, but the
  5754  // value will be replaced with "sensitive".
  5755  func (s SpeakerEnrollmentJob) String() string {
  5756  	return awsutil.Prettify(s)
  5757  }
  5758  
  5759  // GoString returns the string representation.
  5760  //
  5761  // API parameter values that are decorated as "sensitive" in the API will not
  5762  // be included in the string output. The member name will be present, but the
  5763  // value will be replaced with "sensitive".
  5764  func (s SpeakerEnrollmentJob) GoString() string {
  5765  	return s.String()
  5766  }
  5767  
  5768  // SetCreatedAt sets the CreatedAt field's value.
  5769  func (s *SpeakerEnrollmentJob) SetCreatedAt(v time.Time) *SpeakerEnrollmentJob {
  5770  	s.CreatedAt = &v
  5771  	return s
  5772  }
  5773  
  5774  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  5775  func (s *SpeakerEnrollmentJob) SetDataAccessRoleArn(v string) *SpeakerEnrollmentJob {
  5776  	s.DataAccessRoleArn = &v
  5777  	return s
  5778  }
  5779  
  5780  // SetDomainId sets the DomainId field's value.
  5781  func (s *SpeakerEnrollmentJob) SetDomainId(v string) *SpeakerEnrollmentJob {
  5782  	s.DomainId = &v
  5783  	return s
  5784  }
  5785  
  5786  // SetEndedAt sets the EndedAt field's value.
  5787  func (s *SpeakerEnrollmentJob) SetEndedAt(v time.Time) *SpeakerEnrollmentJob {
  5788  	s.EndedAt = &v
  5789  	return s
  5790  }
  5791  
  5792  // SetEnrollmentConfig sets the EnrollmentConfig field's value.
  5793  func (s *SpeakerEnrollmentJob) SetEnrollmentConfig(v *EnrollmentConfig) *SpeakerEnrollmentJob {
  5794  	s.EnrollmentConfig = v
  5795  	return s
  5796  }
  5797  
  5798  // SetFailureDetails sets the FailureDetails field's value.
  5799  func (s *SpeakerEnrollmentJob) SetFailureDetails(v *FailureDetails) *SpeakerEnrollmentJob {
  5800  	s.FailureDetails = v
  5801  	return s
  5802  }
  5803  
  5804  // SetInputDataConfig sets the InputDataConfig field's value.
  5805  func (s *SpeakerEnrollmentJob) SetInputDataConfig(v *InputDataConfig) *SpeakerEnrollmentJob {
  5806  	s.InputDataConfig = v
  5807  	return s
  5808  }
  5809  
  5810  // SetJobId sets the JobId field's value.
  5811  func (s *SpeakerEnrollmentJob) SetJobId(v string) *SpeakerEnrollmentJob {
  5812  	s.JobId = &v
  5813  	return s
  5814  }
  5815  
  5816  // SetJobName sets the JobName field's value.
  5817  func (s *SpeakerEnrollmentJob) SetJobName(v string) *SpeakerEnrollmentJob {
  5818  	s.JobName = &v
  5819  	return s
  5820  }
  5821  
  5822  // SetJobProgress sets the JobProgress field's value.
  5823  func (s *SpeakerEnrollmentJob) SetJobProgress(v *JobProgress) *SpeakerEnrollmentJob {
  5824  	s.JobProgress = v
  5825  	return s
  5826  }
  5827  
  5828  // SetJobStatus sets the JobStatus field's value.
  5829  func (s *SpeakerEnrollmentJob) SetJobStatus(v string) *SpeakerEnrollmentJob {
  5830  	s.JobStatus = &v
  5831  	return s
  5832  }
  5833  
  5834  // SetOutputDataConfig sets the OutputDataConfig field's value.
  5835  func (s *SpeakerEnrollmentJob) SetOutputDataConfig(v *OutputDataConfig) *SpeakerEnrollmentJob {
  5836  	s.OutputDataConfig = v
  5837  	return s
  5838  }
  5839  
  5840  // Contains a summary of information about a speaker enrollment job.
  5841  type SpeakerEnrollmentJobSummary struct {
  5842  	_ struct{} `type:"structure"`
  5843  
  5844  	// A timestamp showing the creation time of the speaker enrollment job.
  5845  	CreatedAt *time.Time `type:"timestamp"`
  5846  
  5847  	// The identifier of the domain that contains the speaker enrollment job.
  5848  	DomainId *string `min:"22" type:"string"`
  5849  
  5850  	// A timestamp showing when the speaker enrollment job ended.
  5851  	EndedAt *time.Time `type:"timestamp"`
  5852  
  5853  	// Contains details that are populated when an entire batch job fails. In cases
  5854  	// of individual registration job failures, the batch job as a whole doesn't
  5855  	// fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS. You can
  5856  	// use the job output file to identify the individual registration requests
  5857  	// that failed.
  5858  	FailureDetails *FailureDetails `type:"structure"`
  5859  
  5860  	// The service-generated identifier for the speaker enrollment job.
  5861  	JobId *string `min:"22" type:"string"`
  5862  
  5863  	// The client-provided name for the speaker enrollment job.
  5864  	//
  5865  	// JobName is a sensitive parameter and its value will be
  5866  	// replaced with "sensitive" in string returned by SpeakerEnrollmentJobSummary's
  5867  	// String and GoString methods.
  5868  	JobName *string `min:"1" type:"string" sensitive:"true"`
  5869  
  5870  	// Provides details regarding job progress. This field shows the completed percentage
  5871  	// of enrollment requests listed in the input file.
  5872  	JobProgress *JobProgress `type:"structure"`
  5873  
  5874  	// The current status of the speaker enrollment job.
  5875  	JobStatus *string `type:"string" enum:"SpeakerEnrollmentJobStatus"`
  5876  }
  5877  
  5878  // String returns the string representation.
  5879  //
  5880  // API parameter values that are decorated as "sensitive" in the API will not
  5881  // be included in the string output. The member name will be present, but the
  5882  // value will be replaced with "sensitive".
  5883  func (s SpeakerEnrollmentJobSummary) String() string {
  5884  	return awsutil.Prettify(s)
  5885  }
  5886  
  5887  // GoString returns the string representation.
  5888  //
  5889  // API parameter values that are decorated as "sensitive" in the API will not
  5890  // be included in the string output. The member name will be present, but the
  5891  // value will be replaced with "sensitive".
  5892  func (s SpeakerEnrollmentJobSummary) GoString() string {
  5893  	return s.String()
  5894  }
  5895  
  5896  // SetCreatedAt sets the CreatedAt field's value.
  5897  func (s *SpeakerEnrollmentJobSummary) SetCreatedAt(v time.Time) *SpeakerEnrollmentJobSummary {
  5898  	s.CreatedAt = &v
  5899  	return s
  5900  }
  5901  
  5902  // SetDomainId sets the DomainId field's value.
  5903  func (s *SpeakerEnrollmentJobSummary) SetDomainId(v string) *SpeakerEnrollmentJobSummary {
  5904  	s.DomainId = &v
  5905  	return s
  5906  }
  5907  
  5908  // SetEndedAt sets the EndedAt field's value.
  5909  func (s *SpeakerEnrollmentJobSummary) SetEndedAt(v time.Time) *SpeakerEnrollmentJobSummary {
  5910  	s.EndedAt = &v
  5911  	return s
  5912  }
  5913  
  5914  // SetFailureDetails sets the FailureDetails field's value.
  5915  func (s *SpeakerEnrollmentJobSummary) SetFailureDetails(v *FailureDetails) *SpeakerEnrollmentJobSummary {
  5916  	s.FailureDetails = v
  5917  	return s
  5918  }
  5919  
  5920  // SetJobId sets the JobId field's value.
  5921  func (s *SpeakerEnrollmentJobSummary) SetJobId(v string) *SpeakerEnrollmentJobSummary {
  5922  	s.JobId = &v
  5923  	return s
  5924  }
  5925  
  5926  // SetJobName sets the JobName field's value.
  5927  func (s *SpeakerEnrollmentJobSummary) SetJobName(v string) *SpeakerEnrollmentJobSummary {
  5928  	s.JobName = &v
  5929  	return s
  5930  }
  5931  
  5932  // SetJobProgress sets the JobProgress field's value.
  5933  func (s *SpeakerEnrollmentJobSummary) SetJobProgress(v *JobProgress) *SpeakerEnrollmentJobSummary {
  5934  	s.JobProgress = v
  5935  	return s
  5936  }
  5937  
  5938  // SetJobStatus sets the JobStatus field's value.
  5939  func (s *SpeakerEnrollmentJobSummary) SetJobStatus(v string) *SpeakerEnrollmentJobSummary {
  5940  	s.JobStatus = &v
  5941  	return s
  5942  }
  5943  
  5944  // Contains a summary of information about a speaker.
  5945  type SpeakerSummary struct {
  5946  	_ struct{} `type:"structure"`
  5947  
  5948  	// A timestamp showing the speaker's creation time.
  5949  	CreatedAt *time.Time `type:"timestamp"`
  5950  
  5951  	// The client-provided identifier for the speaker.
  5952  	//
  5953  	// CustomerSpeakerId is a sensitive parameter and its value will be
  5954  	// replaced with "sensitive" in string returned by SpeakerSummary's
  5955  	// String and GoString methods.
  5956  	CustomerSpeakerId *string `min:"1" type:"string" sensitive:"true"`
  5957  
  5958  	// The identifier of the domain that contains the speaker.
  5959  	DomainId *string `min:"22" type:"string"`
  5960  
  5961  	// The service-generated identifier for the speaker.
  5962  	GeneratedSpeakerId *string `min:"25" type:"string"`
  5963  
  5964  	// The current status of the speaker.
  5965  	Status *string `type:"string" enum:"SpeakerStatus"`
  5966  
  5967  	// A timestamp showing the speaker's last update.
  5968  	UpdatedAt *time.Time `type:"timestamp"`
  5969  }
  5970  
  5971  // String returns the string representation.
  5972  //
  5973  // API parameter values that are decorated as "sensitive" in the API will not
  5974  // be included in the string output. The member name will be present, but the
  5975  // value will be replaced with "sensitive".
  5976  func (s SpeakerSummary) String() string {
  5977  	return awsutil.Prettify(s)
  5978  }
  5979  
  5980  // GoString returns the string representation.
  5981  //
  5982  // API parameter values that are decorated as "sensitive" in the API will not
  5983  // be included in the string output. The member name will be present, but the
  5984  // value will be replaced with "sensitive".
  5985  func (s SpeakerSummary) GoString() string {
  5986  	return s.String()
  5987  }
  5988  
  5989  // SetCreatedAt sets the CreatedAt field's value.
  5990  func (s *SpeakerSummary) SetCreatedAt(v time.Time) *SpeakerSummary {
  5991  	s.CreatedAt = &v
  5992  	return s
  5993  }
  5994  
  5995  // SetCustomerSpeakerId sets the CustomerSpeakerId field's value.
  5996  func (s *SpeakerSummary) SetCustomerSpeakerId(v string) *SpeakerSummary {
  5997  	s.CustomerSpeakerId = &v
  5998  	return s
  5999  }
  6000  
  6001  // SetDomainId sets the DomainId field's value.
  6002  func (s *SpeakerSummary) SetDomainId(v string) *SpeakerSummary {
  6003  	s.DomainId = &v
  6004  	return s
  6005  }
  6006  
  6007  // SetGeneratedSpeakerId sets the GeneratedSpeakerId field's value.
  6008  func (s *SpeakerSummary) SetGeneratedSpeakerId(v string) *SpeakerSummary {
  6009  	s.GeneratedSpeakerId = &v
  6010  	return s
  6011  }
  6012  
  6013  // SetStatus sets the Status field's value.
  6014  func (s *SpeakerSummary) SetStatus(v string) *SpeakerSummary {
  6015  	s.Status = &v
  6016  	return s
  6017  }
  6018  
  6019  // SetUpdatedAt sets the UpdatedAt field's value.
  6020  func (s *SpeakerSummary) SetUpdatedAt(v time.Time) *SpeakerSummary {
  6021  	s.UpdatedAt = &v
  6022  	return s
  6023  }
  6024  
  6025  type StartFraudsterRegistrationJobInput struct {
  6026  	_ struct{} `type:"structure"`
  6027  
  6028  	// The idempotency token for starting a new fraudster registration job. If not
  6029  	// provided, Amazon Web Services SDK populates this field.
  6030  	ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
  6031  
  6032  	// The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
  6033  	// to access customer's buckets to read the input manifest file and write the
  6034  	// Job output file. Refer to the Create and edit a fraudster watchlist (https://docs.aws.amazon.com/connect/latest/adminguide/voiceid-fraudster-watchlist.html)
  6035  	// documentation for the permissions needed in this role.
  6036  	//
  6037  	// DataAccessRoleArn is a required field
  6038  	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
  6039  
  6040  	// The identifier of the domain containing the fraudster registration job and
  6041  	// in which the fraudsters are registered.
  6042  	//
  6043  	// DomainId is a required field
  6044  	DomainId *string `min:"22" type:"string" required:"true"`
  6045  
  6046  	// The input data config containing an S3 URI for the input manifest file that
  6047  	// contains the list of fraudster registration requests.
  6048  	//
  6049  	// InputDataConfig is a required field
  6050  	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
  6051  
  6052  	// The name of the new fraudster registration job.
  6053  	//
  6054  	// JobName is a sensitive parameter and its value will be
  6055  	// replaced with "sensitive" in string returned by StartFraudsterRegistrationJobInput's
  6056  	// String and GoString methods.
  6057  	JobName *string `min:"1" type:"string" sensitive:"true"`
  6058  
  6059  	// The output data config containing the S3 location where Voice ID writes the
  6060  	// job output file; you must also include a KMS Key ID to encrypt the file.
  6061  	//
  6062  	// OutputDataConfig is a required field
  6063  	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
  6064  
  6065  	// The registration config containing details such as the action to take when
  6066  	// a duplicate fraudster is detected, and the similarity threshold to use for
  6067  	// detecting a duplicate fraudster.
  6068  	RegistrationConfig *RegistrationConfig `type:"structure"`
  6069  }
  6070  
  6071  // String returns the string representation.
  6072  //
  6073  // API parameter values that are decorated as "sensitive" in the API will not
  6074  // be included in the string output. The member name will be present, but the
  6075  // value will be replaced with "sensitive".
  6076  func (s StartFraudsterRegistrationJobInput) String() string {
  6077  	return awsutil.Prettify(s)
  6078  }
  6079  
  6080  // GoString returns the string representation.
  6081  //
  6082  // API parameter values that are decorated as "sensitive" in the API will not
  6083  // be included in the string output. The member name will be present, but the
  6084  // value will be replaced with "sensitive".
  6085  func (s StartFraudsterRegistrationJobInput) GoString() string {
  6086  	return s.String()
  6087  }
  6088  
  6089  // Validate inspects the fields of the type to determine if they are valid.
  6090  func (s *StartFraudsterRegistrationJobInput) Validate() error {
  6091  	invalidParams := request.ErrInvalidParams{Context: "StartFraudsterRegistrationJobInput"}
  6092  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  6093  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  6094  	}
  6095  	if s.DataAccessRoleArn == nil {
  6096  		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
  6097  	}
  6098  	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
  6099  		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
  6100  	}
  6101  	if s.DomainId == nil {
  6102  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  6103  	}
  6104  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  6105  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  6106  	}
  6107  	if s.InputDataConfig == nil {
  6108  		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
  6109  	}
  6110  	if s.JobName != nil && len(*s.JobName) < 1 {
  6111  		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
  6112  	}
  6113  	if s.OutputDataConfig == nil {
  6114  		invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
  6115  	}
  6116  	if s.InputDataConfig != nil {
  6117  		if err := s.InputDataConfig.Validate(); err != nil {
  6118  			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
  6119  		}
  6120  	}
  6121  	if s.OutputDataConfig != nil {
  6122  		if err := s.OutputDataConfig.Validate(); err != nil {
  6123  			invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
  6124  		}
  6125  	}
  6126  
  6127  	if invalidParams.Len() > 0 {
  6128  		return invalidParams
  6129  	}
  6130  	return nil
  6131  }
  6132  
  6133  // SetClientToken sets the ClientToken field's value.
  6134  func (s *StartFraudsterRegistrationJobInput) SetClientToken(v string) *StartFraudsterRegistrationJobInput {
  6135  	s.ClientToken = &v
  6136  	return s
  6137  }
  6138  
  6139  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  6140  func (s *StartFraudsterRegistrationJobInput) SetDataAccessRoleArn(v string) *StartFraudsterRegistrationJobInput {
  6141  	s.DataAccessRoleArn = &v
  6142  	return s
  6143  }
  6144  
  6145  // SetDomainId sets the DomainId field's value.
  6146  func (s *StartFraudsterRegistrationJobInput) SetDomainId(v string) *StartFraudsterRegistrationJobInput {
  6147  	s.DomainId = &v
  6148  	return s
  6149  }
  6150  
  6151  // SetInputDataConfig sets the InputDataConfig field's value.
  6152  func (s *StartFraudsterRegistrationJobInput) SetInputDataConfig(v *InputDataConfig) *StartFraudsterRegistrationJobInput {
  6153  	s.InputDataConfig = v
  6154  	return s
  6155  }
  6156  
  6157  // SetJobName sets the JobName field's value.
  6158  func (s *StartFraudsterRegistrationJobInput) SetJobName(v string) *StartFraudsterRegistrationJobInput {
  6159  	s.JobName = &v
  6160  	return s
  6161  }
  6162  
  6163  // SetOutputDataConfig sets the OutputDataConfig field's value.
  6164  func (s *StartFraudsterRegistrationJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartFraudsterRegistrationJobInput {
  6165  	s.OutputDataConfig = v
  6166  	return s
  6167  }
  6168  
  6169  // SetRegistrationConfig sets the RegistrationConfig field's value.
  6170  func (s *StartFraudsterRegistrationJobInput) SetRegistrationConfig(v *RegistrationConfig) *StartFraudsterRegistrationJobInput {
  6171  	s.RegistrationConfig = v
  6172  	return s
  6173  }
  6174  
  6175  type StartFraudsterRegistrationJobOutput struct {
  6176  	_ struct{} `type:"structure"`
  6177  
  6178  	// Details about the started fraudster registration job.
  6179  	Job *FraudsterRegistrationJob `type:"structure"`
  6180  }
  6181  
  6182  // String returns the string representation.
  6183  //
  6184  // API parameter values that are decorated as "sensitive" in the API will not
  6185  // be included in the string output. The member name will be present, but the
  6186  // value will be replaced with "sensitive".
  6187  func (s StartFraudsterRegistrationJobOutput) String() string {
  6188  	return awsutil.Prettify(s)
  6189  }
  6190  
  6191  // GoString returns the string representation.
  6192  //
  6193  // API parameter values that are decorated as "sensitive" in the API will not
  6194  // be included in the string output. The member name will be present, but the
  6195  // value will be replaced with "sensitive".
  6196  func (s StartFraudsterRegistrationJobOutput) GoString() string {
  6197  	return s.String()
  6198  }
  6199  
  6200  // SetJob sets the Job field's value.
  6201  func (s *StartFraudsterRegistrationJobOutput) SetJob(v *FraudsterRegistrationJob) *StartFraudsterRegistrationJobOutput {
  6202  	s.Job = v
  6203  	return s
  6204  }
  6205  
  6206  type StartSpeakerEnrollmentJobInput struct {
  6207  	_ struct{} `type:"structure"`
  6208  
  6209  	// The idempotency token for starting a new speaker enrollment Job. If not provided,
  6210  	// Amazon Web Services SDK populates this field.
  6211  	ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
  6212  
  6213  	// The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
  6214  	// to access customer's buckets to read the input manifest file and write the
  6215  	// job output file. Refer to Batch enrollment using audio data from prior calls
  6216  	// (https://docs.aws.amazon.com/connect/latest/adminguide/voiceid-batch-enrollment.html)
  6217  	// documentation for the permissions needed in this role.
  6218  	//
  6219  	// DataAccessRoleArn is a required field
  6220  	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
  6221  
  6222  	// The identifier of the domain that contains the speaker enrollment job and
  6223  	// in which the speakers are enrolled.
  6224  	//
  6225  	// DomainId is a required field
  6226  	DomainId *string `min:"22" type:"string" required:"true"`
  6227  
  6228  	// The enrollment config that contains details such as the action to take when
  6229  	// a speaker is already enrolled in the Voice ID system or when a speaker is
  6230  	// identified as a fraudster.
  6231  	EnrollmentConfig *EnrollmentConfig `type:"structure"`
  6232  
  6233  	// The input data config containing the S3 location for the input manifest file
  6234  	// that contains the list of speaker enrollment requests.
  6235  	//
  6236  	// InputDataConfig is a required field
  6237  	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
  6238  
  6239  	// A name for your speaker enrollment job.
  6240  	//
  6241  	// JobName is a sensitive parameter and its value will be
  6242  	// replaced with "sensitive" in string returned by StartSpeakerEnrollmentJobInput's
  6243  	// String and GoString methods.
  6244  	JobName *string `min:"1" type:"string" sensitive:"true"`
  6245  
  6246  	// The output data config containing the S3 location where Voice ID writes the
  6247  	// job output file; you must also include a KMS Key ID to encrypt the file.
  6248  	//
  6249  	// OutputDataConfig is a required field
  6250  	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
  6251  }
  6252  
  6253  // String returns the string representation.
  6254  //
  6255  // API parameter values that are decorated as "sensitive" in the API will not
  6256  // be included in the string output. The member name will be present, but the
  6257  // value will be replaced with "sensitive".
  6258  func (s StartSpeakerEnrollmentJobInput) String() string {
  6259  	return awsutil.Prettify(s)
  6260  }
  6261  
  6262  // GoString returns the string representation.
  6263  //
  6264  // API parameter values that are decorated as "sensitive" in the API will not
  6265  // be included in the string output. The member name will be present, but the
  6266  // value will be replaced with "sensitive".
  6267  func (s StartSpeakerEnrollmentJobInput) GoString() string {
  6268  	return s.String()
  6269  }
  6270  
  6271  // Validate inspects the fields of the type to determine if they are valid.
  6272  func (s *StartSpeakerEnrollmentJobInput) Validate() error {
  6273  	invalidParams := request.ErrInvalidParams{Context: "StartSpeakerEnrollmentJobInput"}
  6274  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  6275  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  6276  	}
  6277  	if s.DataAccessRoleArn == nil {
  6278  		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
  6279  	}
  6280  	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
  6281  		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
  6282  	}
  6283  	if s.DomainId == nil {
  6284  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  6285  	}
  6286  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  6287  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  6288  	}
  6289  	if s.InputDataConfig == nil {
  6290  		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
  6291  	}
  6292  	if s.JobName != nil && len(*s.JobName) < 1 {
  6293  		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
  6294  	}
  6295  	if s.OutputDataConfig == nil {
  6296  		invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
  6297  	}
  6298  	if s.InputDataConfig != nil {
  6299  		if err := s.InputDataConfig.Validate(); err != nil {
  6300  			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
  6301  		}
  6302  	}
  6303  	if s.OutputDataConfig != nil {
  6304  		if err := s.OutputDataConfig.Validate(); err != nil {
  6305  			invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
  6306  		}
  6307  	}
  6308  
  6309  	if invalidParams.Len() > 0 {
  6310  		return invalidParams
  6311  	}
  6312  	return nil
  6313  }
  6314  
  6315  // SetClientToken sets the ClientToken field's value.
  6316  func (s *StartSpeakerEnrollmentJobInput) SetClientToken(v string) *StartSpeakerEnrollmentJobInput {
  6317  	s.ClientToken = &v
  6318  	return s
  6319  }
  6320  
  6321  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  6322  func (s *StartSpeakerEnrollmentJobInput) SetDataAccessRoleArn(v string) *StartSpeakerEnrollmentJobInput {
  6323  	s.DataAccessRoleArn = &v
  6324  	return s
  6325  }
  6326  
  6327  // SetDomainId sets the DomainId field's value.
  6328  func (s *StartSpeakerEnrollmentJobInput) SetDomainId(v string) *StartSpeakerEnrollmentJobInput {
  6329  	s.DomainId = &v
  6330  	return s
  6331  }
  6332  
  6333  // SetEnrollmentConfig sets the EnrollmentConfig field's value.
  6334  func (s *StartSpeakerEnrollmentJobInput) SetEnrollmentConfig(v *EnrollmentConfig) *StartSpeakerEnrollmentJobInput {
  6335  	s.EnrollmentConfig = v
  6336  	return s
  6337  }
  6338  
  6339  // SetInputDataConfig sets the InputDataConfig field's value.
  6340  func (s *StartSpeakerEnrollmentJobInput) SetInputDataConfig(v *InputDataConfig) *StartSpeakerEnrollmentJobInput {
  6341  	s.InputDataConfig = v
  6342  	return s
  6343  }
  6344  
  6345  // SetJobName sets the JobName field's value.
  6346  func (s *StartSpeakerEnrollmentJobInput) SetJobName(v string) *StartSpeakerEnrollmentJobInput {
  6347  	s.JobName = &v
  6348  	return s
  6349  }
  6350  
  6351  // SetOutputDataConfig sets the OutputDataConfig field's value.
  6352  func (s *StartSpeakerEnrollmentJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartSpeakerEnrollmentJobInput {
  6353  	s.OutputDataConfig = v
  6354  	return s
  6355  }
  6356  
  6357  type StartSpeakerEnrollmentJobOutput struct {
  6358  	_ struct{} `type:"structure"`
  6359  
  6360  	// Details about the started speaker enrollment job.
  6361  	Job *SpeakerEnrollmentJob `type:"structure"`
  6362  }
  6363  
  6364  // String returns the string representation.
  6365  //
  6366  // API parameter values that are decorated as "sensitive" in the API will not
  6367  // be included in the string output. The member name will be present, but the
  6368  // value will be replaced with "sensitive".
  6369  func (s StartSpeakerEnrollmentJobOutput) String() string {
  6370  	return awsutil.Prettify(s)
  6371  }
  6372  
  6373  // GoString returns the string representation.
  6374  //
  6375  // API parameter values that are decorated as "sensitive" in the API will not
  6376  // be included in the string output. The member name will be present, but the
  6377  // value will be replaced with "sensitive".
  6378  func (s StartSpeakerEnrollmentJobOutput) GoString() string {
  6379  	return s.String()
  6380  }
  6381  
  6382  // SetJob sets the Job field's value.
  6383  func (s *StartSpeakerEnrollmentJobOutput) SetJob(v *SpeakerEnrollmentJob) *StartSpeakerEnrollmentJobOutput {
  6384  	s.Job = v
  6385  	return s
  6386  }
  6387  
  6388  // A tag that can be assigned to a Voice ID resource.
  6389  type Tag struct {
  6390  	_ struct{} `type:"structure"`
  6391  
  6392  	// The first part of a key:value pair that forms a tag associated with a given
  6393  	// resource. For example, in the tag ‘Department’:’Sales’, the key is
  6394  	// 'Department'.
  6395  	//
  6396  	// Key is a sensitive parameter and its value will be
  6397  	// replaced with "sensitive" in string returned by Tag's
  6398  	// String and GoString methods.
  6399  	//
  6400  	// Key is a required field
  6401  	Key *string `min:"1" type:"string" required:"true" sensitive:"true"`
  6402  
  6403  	// The second part of a key:value pair that forms a tag associated with a given
  6404  	// resource. For example, in the tag ‘Department’:’Sales’, the value
  6405  	// is 'Sales'.
  6406  	//
  6407  	// Value is a sensitive parameter and its value will be
  6408  	// replaced with "sensitive" in string returned by Tag's
  6409  	// String and GoString methods.
  6410  	//
  6411  	// Value is a required field
  6412  	Value *string `type:"string" required:"true" sensitive:"true"`
  6413  }
  6414  
  6415  // String returns the string representation.
  6416  //
  6417  // API parameter values that are decorated as "sensitive" in the API will not
  6418  // be included in the string output. The member name will be present, but the
  6419  // value will be replaced with "sensitive".
  6420  func (s Tag) String() string {
  6421  	return awsutil.Prettify(s)
  6422  }
  6423  
  6424  // GoString returns the string representation.
  6425  //
  6426  // API parameter values that are decorated as "sensitive" in the API will not
  6427  // be included in the string output. The member name will be present, but the
  6428  // value will be replaced with "sensitive".
  6429  func (s Tag) GoString() string {
  6430  	return s.String()
  6431  }
  6432  
  6433  // Validate inspects the fields of the type to determine if they are valid.
  6434  func (s *Tag) Validate() error {
  6435  	invalidParams := request.ErrInvalidParams{Context: "Tag"}
  6436  	if s.Key == nil {
  6437  		invalidParams.Add(request.NewErrParamRequired("Key"))
  6438  	}
  6439  	if s.Key != nil && len(*s.Key) < 1 {
  6440  		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  6441  	}
  6442  	if s.Value == nil {
  6443  		invalidParams.Add(request.NewErrParamRequired("Value"))
  6444  	}
  6445  
  6446  	if invalidParams.Len() > 0 {
  6447  		return invalidParams
  6448  	}
  6449  	return nil
  6450  }
  6451  
  6452  // SetKey sets the Key field's value.
  6453  func (s *Tag) SetKey(v string) *Tag {
  6454  	s.Key = &v
  6455  	return s
  6456  }
  6457  
  6458  // SetValue sets the Value field's value.
  6459  func (s *Tag) SetValue(v string) *Tag {
  6460  	s.Value = &v
  6461  	return s
  6462  }
  6463  
  6464  type TagResourceInput struct {
  6465  	_ struct{} `type:"structure"`
  6466  
  6467  	// The Amazon Resource Name (ARN) of the Voice ID resource you want to tag.
  6468  	//
  6469  	// ResourceArn is a required field
  6470  	ResourceArn *string `min:"1" type:"string" required:"true"`
  6471  
  6472  	// The list of tags to assign to the specified resource.
  6473  	//
  6474  	// Tags is a required field
  6475  	Tags []*Tag `type:"list" required:"true"`
  6476  }
  6477  
  6478  // String returns the string representation.
  6479  //
  6480  // API parameter values that are decorated as "sensitive" in the API will not
  6481  // be included in the string output. The member name will be present, but the
  6482  // value will be replaced with "sensitive".
  6483  func (s TagResourceInput) String() string {
  6484  	return awsutil.Prettify(s)
  6485  }
  6486  
  6487  // GoString returns the string representation.
  6488  //
  6489  // API parameter values that are decorated as "sensitive" in the API will not
  6490  // be included in the string output. The member name will be present, but the
  6491  // value will be replaced with "sensitive".
  6492  func (s TagResourceInput) GoString() string {
  6493  	return s.String()
  6494  }
  6495  
  6496  // Validate inspects the fields of the type to determine if they are valid.
  6497  func (s *TagResourceInput) Validate() error {
  6498  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  6499  	if s.ResourceArn == nil {
  6500  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6501  	}
  6502  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  6503  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  6504  	}
  6505  	if s.Tags == nil {
  6506  		invalidParams.Add(request.NewErrParamRequired("Tags"))
  6507  	}
  6508  	if s.Tags != nil {
  6509  		for i, v := range s.Tags {
  6510  			if v == nil {
  6511  				continue
  6512  			}
  6513  			if err := v.Validate(); err != nil {
  6514  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  6515  			}
  6516  		}
  6517  	}
  6518  
  6519  	if invalidParams.Len() > 0 {
  6520  		return invalidParams
  6521  	}
  6522  	return nil
  6523  }
  6524  
  6525  // SetResourceArn sets the ResourceArn field's value.
  6526  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  6527  	s.ResourceArn = &v
  6528  	return s
  6529  }
  6530  
  6531  // SetTags sets the Tags field's value.
  6532  func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
  6533  	s.Tags = v
  6534  	return s
  6535  }
  6536  
  6537  type TagResourceOutput struct {
  6538  	_ struct{} `type:"structure"`
  6539  }
  6540  
  6541  // String returns the string representation.
  6542  //
  6543  // API parameter values that are decorated as "sensitive" in the API will not
  6544  // be included in the string output. The member name will be present, but the
  6545  // value will be replaced with "sensitive".
  6546  func (s TagResourceOutput) String() string {
  6547  	return awsutil.Prettify(s)
  6548  }
  6549  
  6550  // GoString returns the string representation.
  6551  //
  6552  // API parameter values that are decorated as "sensitive" in the API will not
  6553  // be included in the string output. The member name will be present, but the
  6554  // value will be replaced with "sensitive".
  6555  func (s TagResourceOutput) GoString() string {
  6556  	return s.String()
  6557  }
  6558  
  6559  // The request was denied due to request throttling. Please slow down your request
  6560  // rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas)
  6561  // and try your request again.
  6562  type ThrottlingException struct {
  6563  	_            struct{}                  `type:"structure"`
  6564  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6565  
  6566  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  6567  }
  6568  
  6569  // String returns the string representation.
  6570  //
  6571  // API parameter values that are decorated as "sensitive" in the API will not
  6572  // be included in the string output. The member name will be present, but the
  6573  // value will be replaced with "sensitive".
  6574  func (s ThrottlingException) String() string {
  6575  	return awsutil.Prettify(s)
  6576  }
  6577  
  6578  // GoString returns the string representation.
  6579  //
  6580  // API parameter values that are decorated as "sensitive" in the API will not
  6581  // be included in the string output. The member name will be present, but the
  6582  // value will be replaced with "sensitive".
  6583  func (s ThrottlingException) GoString() string {
  6584  	return s.String()
  6585  }
  6586  
  6587  func newErrorThrottlingException(v protocol.ResponseMetadata) error {
  6588  	return &ThrottlingException{
  6589  		RespMetadata: v,
  6590  	}
  6591  }
  6592  
  6593  // Code returns the exception type name.
  6594  func (s *ThrottlingException) Code() string {
  6595  	return "ThrottlingException"
  6596  }
  6597  
  6598  // Message returns the exception's message.
  6599  func (s *ThrottlingException) Message() string {
  6600  	if s.Message_ != nil {
  6601  		return *s.Message_
  6602  	}
  6603  	return ""
  6604  }
  6605  
  6606  // OrigErr always returns nil, satisfies awserr.Error interface.
  6607  func (s *ThrottlingException) OrigErr() error {
  6608  	return nil
  6609  }
  6610  
  6611  func (s *ThrottlingException) Error() string {
  6612  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  6613  }
  6614  
  6615  // Status code returns the HTTP status code for the request's response error.
  6616  func (s *ThrottlingException) StatusCode() int {
  6617  	return s.RespMetadata.StatusCode
  6618  }
  6619  
  6620  // RequestID returns the service's response RequestID for request.
  6621  func (s *ThrottlingException) RequestID() string {
  6622  	return s.RespMetadata.RequestID
  6623  }
  6624  
  6625  type UntagResourceInput struct {
  6626  	_ struct{} `type:"structure"`
  6627  
  6628  	// The Amazon Resource Name (ARN) of the Voice ID resource you want to remove
  6629  	// tags from.
  6630  	//
  6631  	// ResourceArn is a required field
  6632  	ResourceArn *string `min:"1" type:"string" required:"true"`
  6633  
  6634  	// The list of tag keys you want to remove from the specified resource.
  6635  	//
  6636  	// TagKeys is a required field
  6637  	TagKeys []*string `type:"list" required:"true"`
  6638  }
  6639  
  6640  // String returns the string representation.
  6641  //
  6642  // API parameter values that are decorated as "sensitive" in the API will not
  6643  // be included in the string output. The member name will be present, but the
  6644  // value will be replaced with "sensitive".
  6645  func (s UntagResourceInput) String() string {
  6646  	return awsutil.Prettify(s)
  6647  }
  6648  
  6649  // GoString returns the string representation.
  6650  //
  6651  // API parameter values that are decorated as "sensitive" in the API will not
  6652  // be included in the string output. The member name will be present, but the
  6653  // value will be replaced with "sensitive".
  6654  func (s UntagResourceInput) GoString() string {
  6655  	return s.String()
  6656  }
  6657  
  6658  // Validate inspects the fields of the type to determine if they are valid.
  6659  func (s *UntagResourceInput) Validate() error {
  6660  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  6661  	if s.ResourceArn == nil {
  6662  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6663  	}
  6664  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  6665  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  6666  	}
  6667  	if s.TagKeys == nil {
  6668  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  6669  	}
  6670  
  6671  	if invalidParams.Len() > 0 {
  6672  		return invalidParams
  6673  	}
  6674  	return nil
  6675  }
  6676  
  6677  // SetResourceArn sets the ResourceArn field's value.
  6678  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  6679  	s.ResourceArn = &v
  6680  	return s
  6681  }
  6682  
  6683  // SetTagKeys sets the TagKeys field's value.
  6684  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  6685  	s.TagKeys = v
  6686  	return s
  6687  }
  6688  
  6689  type UntagResourceOutput struct {
  6690  	_ struct{} `type:"structure"`
  6691  }
  6692  
  6693  // String returns the string representation.
  6694  //
  6695  // API parameter values that are decorated as "sensitive" in the API will not
  6696  // be included in the string output. The member name will be present, but the
  6697  // value will be replaced with "sensitive".
  6698  func (s UntagResourceOutput) String() string {
  6699  	return awsutil.Prettify(s)
  6700  }
  6701  
  6702  // GoString returns the string representation.
  6703  //
  6704  // API parameter values that are decorated as "sensitive" in the API will not
  6705  // be included in the string output. The member name will be present, but the
  6706  // value will be replaced with "sensitive".
  6707  func (s UntagResourceOutput) GoString() string {
  6708  	return s.String()
  6709  }
  6710  
  6711  type UpdateDomainInput struct {
  6712  	_ struct{} `type:"structure"`
  6713  
  6714  	// A brief description about this domain.
  6715  	//
  6716  	// Description is a sensitive parameter and its value will be
  6717  	// replaced with "sensitive" in string returned by UpdateDomainInput's
  6718  	// String and GoString methods.
  6719  	Description *string `min:"1" type:"string" sensitive:"true"`
  6720  
  6721  	// The identifier of the domain to be updated.
  6722  	//
  6723  	// DomainId is a required field
  6724  	DomainId *string `min:"22" type:"string" required:"true"`
  6725  
  6726  	// The name of the domain.
  6727  	//
  6728  	// Name is a sensitive parameter and its value will be
  6729  	// replaced with "sensitive" in string returned by UpdateDomainInput's
  6730  	// String and GoString methods.
  6731  	//
  6732  	// Name is a required field
  6733  	Name *string `min:"1" type:"string" required:"true" sensitive:"true"`
  6734  
  6735  	// The configuration, containing the KMS Key Identifier, to be used by Voice
  6736  	// ID for the server-side encryption of your data. Note that all the existing
  6737  	// data in the domain are still encrypted using the existing key, only the data
  6738  	// added to domain after updating the key is encrypted using the new key.
  6739  	//
  6740  	// ServerSideEncryptionConfiguration is a required field
  6741  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure" required:"true"`
  6742  }
  6743  
  6744  // String returns the string representation.
  6745  //
  6746  // API parameter values that are decorated as "sensitive" in the API will not
  6747  // be included in the string output. The member name will be present, but the
  6748  // value will be replaced with "sensitive".
  6749  func (s UpdateDomainInput) String() string {
  6750  	return awsutil.Prettify(s)
  6751  }
  6752  
  6753  // GoString returns the string representation.
  6754  //
  6755  // API parameter values that are decorated as "sensitive" in the API will not
  6756  // be included in the string output. The member name will be present, but the
  6757  // value will be replaced with "sensitive".
  6758  func (s UpdateDomainInput) GoString() string {
  6759  	return s.String()
  6760  }
  6761  
  6762  // Validate inspects the fields of the type to determine if they are valid.
  6763  func (s *UpdateDomainInput) Validate() error {
  6764  	invalidParams := request.ErrInvalidParams{Context: "UpdateDomainInput"}
  6765  	if s.Description != nil && len(*s.Description) < 1 {
  6766  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  6767  	}
  6768  	if s.DomainId == nil {
  6769  		invalidParams.Add(request.NewErrParamRequired("DomainId"))
  6770  	}
  6771  	if s.DomainId != nil && len(*s.DomainId) < 22 {
  6772  		invalidParams.Add(request.NewErrParamMinLen("DomainId", 22))
  6773  	}
  6774  	if s.Name == nil {
  6775  		invalidParams.Add(request.NewErrParamRequired("Name"))
  6776  	}
  6777  	if s.Name != nil && len(*s.Name) < 1 {
  6778  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6779  	}
  6780  	if s.ServerSideEncryptionConfiguration == nil {
  6781  		invalidParams.Add(request.NewErrParamRequired("ServerSideEncryptionConfiguration"))
  6782  	}
  6783  	if s.ServerSideEncryptionConfiguration != nil {
  6784  		if err := s.ServerSideEncryptionConfiguration.Validate(); err != nil {
  6785  			invalidParams.AddNested("ServerSideEncryptionConfiguration", err.(request.ErrInvalidParams))
  6786  		}
  6787  	}
  6788  
  6789  	if invalidParams.Len() > 0 {
  6790  		return invalidParams
  6791  	}
  6792  	return nil
  6793  }
  6794  
  6795  // SetDescription sets the Description field's value.
  6796  func (s *UpdateDomainInput) SetDescription(v string) *UpdateDomainInput {
  6797  	s.Description = &v
  6798  	return s
  6799  }
  6800  
  6801  // SetDomainId sets the DomainId field's value.
  6802  func (s *UpdateDomainInput) SetDomainId(v string) *UpdateDomainInput {
  6803  	s.DomainId = &v
  6804  	return s
  6805  }
  6806  
  6807  // SetName sets the Name field's value.
  6808  func (s *UpdateDomainInput) SetName(v string) *UpdateDomainInput {
  6809  	s.Name = &v
  6810  	return s
  6811  }
  6812  
  6813  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  6814  func (s *UpdateDomainInput) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *UpdateDomainInput {
  6815  	s.ServerSideEncryptionConfiguration = v
  6816  	return s
  6817  }
  6818  
  6819  type UpdateDomainOutput struct {
  6820  	_ struct{} `type:"structure"`
  6821  
  6822  	// Details about the updated domain
  6823  	Domain *Domain `type:"structure"`
  6824  }
  6825  
  6826  // String returns the string representation.
  6827  //
  6828  // API parameter values that are decorated as "sensitive" in the API will not
  6829  // be included in the string output. The member name will be present, but the
  6830  // value will be replaced with "sensitive".
  6831  func (s UpdateDomainOutput) String() string {
  6832  	return awsutil.Prettify(s)
  6833  }
  6834  
  6835  // GoString returns the string representation.
  6836  //
  6837  // API parameter values that are decorated as "sensitive" in the API will not
  6838  // be included in the string output. The member name will be present, but the
  6839  // value will be replaced with "sensitive".
  6840  func (s UpdateDomainOutput) GoString() string {
  6841  	return s.String()
  6842  }
  6843  
  6844  // SetDomain sets the Domain field's value.
  6845  func (s *UpdateDomainOutput) SetDomain(v *Domain) *UpdateDomainOutput {
  6846  	s.Domain = v
  6847  	return s
  6848  }
  6849  
  6850  // The request failed one or more validations; check the error message for more
  6851  // details.
  6852  type ValidationException struct {
  6853  	_            struct{}                  `type:"structure"`
  6854  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6855  
  6856  	Message_ *string `locationName:"Message" min:"1" type:"string"`
  6857  }
  6858  
  6859  // String returns the string representation.
  6860  //
  6861  // API parameter values that are decorated as "sensitive" in the API will not
  6862  // be included in the string output. The member name will be present, but the
  6863  // value will be replaced with "sensitive".
  6864  func (s ValidationException) String() string {
  6865  	return awsutil.Prettify(s)
  6866  }
  6867  
  6868  // GoString returns the string representation.
  6869  //
  6870  // API parameter values that are decorated as "sensitive" in the API will not
  6871  // be included in the string output. The member name will be present, but the
  6872  // value will be replaced with "sensitive".
  6873  func (s ValidationException) GoString() string {
  6874  	return s.String()
  6875  }
  6876  
  6877  func newErrorValidationException(v protocol.ResponseMetadata) error {
  6878  	return &ValidationException{
  6879  		RespMetadata: v,
  6880  	}
  6881  }
  6882  
  6883  // Code returns the exception type name.
  6884  func (s *ValidationException) Code() string {
  6885  	return "ValidationException"
  6886  }
  6887  
  6888  // Message returns the exception's message.
  6889  func (s *ValidationException) Message() string {
  6890  	if s.Message_ != nil {
  6891  		return *s.Message_
  6892  	}
  6893  	return ""
  6894  }
  6895  
  6896  // OrigErr always returns nil, satisfies awserr.Error interface.
  6897  func (s *ValidationException) OrigErr() error {
  6898  	return nil
  6899  }
  6900  
  6901  func (s *ValidationException) Error() string {
  6902  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  6903  }
  6904  
  6905  // Status code returns the HTTP status code for the request's response error.
  6906  func (s *ValidationException) StatusCode() int {
  6907  	return s.RespMetadata.StatusCode
  6908  }
  6909  
  6910  // RequestID returns the service's response RequestID for request.
  6911  func (s *ValidationException) RequestID() string {
  6912  	return s.RespMetadata.RequestID
  6913  }
  6914  
  6915  const (
  6916  	// AuthenticationDecisionAccept is a AuthenticationDecision enum value
  6917  	AuthenticationDecisionAccept = "ACCEPT"
  6918  
  6919  	// AuthenticationDecisionReject is a AuthenticationDecision enum value
  6920  	AuthenticationDecisionReject = "REJECT"
  6921  
  6922  	// AuthenticationDecisionNotEnoughSpeech is a AuthenticationDecision enum value
  6923  	AuthenticationDecisionNotEnoughSpeech = "NOT_ENOUGH_SPEECH"
  6924  
  6925  	// AuthenticationDecisionSpeakerNotEnrolled is a AuthenticationDecision enum value
  6926  	AuthenticationDecisionSpeakerNotEnrolled = "SPEAKER_NOT_ENROLLED"
  6927  
  6928  	// AuthenticationDecisionSpeakerOptedOut is a AuthenticationDecision enum value
  6929  	AuthenticationDecisionSpeakerOptedOut = "SPEAKER_OPTED_OUT"
  6930  
  6931  	// AuthenticationDecisionSpeakerIdNotProvided is a AuthenticationDecision enum value
  6932  	AuthenticationDecisionSpeakerIdNotProvided = "SPEAKER_ID_NOT_PROVIDED"
  6933  )
  6934  
  6935  // AuthenticationDecision_Values returns all elements of the AuthenticationDecision enum
  6936  func AuthenticationDecision_Values() []string {
  6937  	return []string{
  6938  		AuthenticationDecisionAccept,
  6939  		AuthenticationDecisionReject,
  6940  		AuthenticationDecisionNotEnoughSpeech,
  6941  		AuthenticationDecisionSpeakerNotEnrolled,
  6942  		AuthenticationDecisionSpeakerOptedOut,
  6943  		AuthenticationDecisionSpeakerIdNotProvided,
  6944  	}
  6945  }
  6946  
  6947  const (
  6948  	// ConflictTypeAnotherActiveStream is a ConflictType enum value
  6949  	ConflictTypeAnotherActiveStream = "ANOTHER_ACTIVE_STREAM"
  6950  
  6951  	// ConflictTypeDomainNotActive is a ConflictType enum value
  6952  	ConflictTypeDomainNotActive = "DOMAIN_NOT_ACTIVE"
  6953  
  6954  	// ConflictTypeCannotChangeSpeakerAfterEnrollment is a ConflictType enum value
  6955  	ConflictTypeCannotChangeSpeakerAfterEnrollment = "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT"
  6956  
  6957  	// ConflictTypeEnrollmentAlreadyExists is a ConflictType enum value
  6958  	ConflictTypeEnrollmentAlreadyExists = "ENROLLMENT_ALREADY_EXISTS"
  6959  
  6960  	// ConflictTypeSpeakerNotSet is a ConflictType enum value
  6961  	ConflictTypeSpeakerNotSet = "SPEAKER_NOT_SET"
  6962  
  6963  	// ConflictTypeSpeakerOptedOut is a ConflictType enum value
  6964  	ConflictTypeSpeakerOptedOut = "SPEAKER_OPTED_OUT"
  6965  
  6966  	// ConflictTypeConcurrentChanges is a ConflictType enum value
  6967  	ConflictTypeConcurrentChanges = "CONCURRENT_CHANGES"
  6968  )
  6969  
  6970  // ConflictType_Values returns all elements of the ConflictType enum
  6971  func ConflictType_Values() []string {
  6972  	return []string{
  6973  		ConflictTypeAnotherActiveStream,
  6974  		ConflictTypeDomainNotActive,
  6975  		ConflictTypeCannotChangeSpeakerAfterEnrollment,
  6976  		ConflictTypeEnrollmentAlreadyExists,
  6977  		ConflictTypeSpeakerNotSet,
  6978  		ConflictTypeSpeakerOptedOut,
  6979  		ConflictTypeConcurrentChanges,
  6980  	}
  6981  }
  6982  
  6983  const (
  6984  	// DomainStatusActive is a DomainStatus enum value
  6985  	DomainStatusActive = "ACTIVE"
  6986  
  6987  	// DomainStatusPending is a DomainStatus enum value
  6988  	DomainStatusPending = "PENDING"
  6989  
  6990  	// DomainStatusSuspended is a DomainStatus enum value
  6991  	DomainStatusSuspended = "SUSPENDED"
  6992  )
  6993  
  6994  // DomainStatus_Values returns all elements of the DomainStatus enum
  6995  func DomainStatus_Values() []string {
  6996  	return []string{
  6997  		DomainStatusActive,
  6998  		DomainStatusPending,
  6999  		DomainStatusSuspended,
  7000  	}
  7001  }
  7002  
  7003  const (
  7004  	// DuplicateRegistrationActionSkip is a DuplicateRegistrationAction enum value
  7005  	DuplicateRegistrationActionSkip = "SKIP"
  7006  
  7007  	// DuplicateRegistrationActionRegisterAsNew is a DuplicateRegistrationAction enum value
  7008  	DuplicateRegistrationActionRegisterAsNew = "REGISTER_AS_NEW"
  7009  )
  7010  
  7011  // DuplicateRegistrationAction_Values returns all elements of the DuplicateRegistrationAction enum
  7012  func DuplicateRegistrationAction_Values() []string {
  7013  	return []string{
  7014  		DuplicateRegistrationActionSkip,
  7015  		DuplicateRegistrationActionRegisterAsNew,
  7016  	}
  7017  }
  7018  
  7019  const (
  7020  	// ExistingEnrollmentActionSkip is a ExistingEnrollmentAction enum value
  7021  	ExistingEnrollmentActionSkip = "SKIP"
  7022  
  7023  	// ExistingEnrollmentActionOverwrite is a ExistingEnrollmentAction enum value
  7024  	ExistingEnrollmentActionOverwrite = "OVERWRITE"
  7025  )
  7026  
  7027  // ExistingEnrollmentAction_Values returns all elements of the ExistingEnrollmentAction enum
  7028  func ExistingEnrollmentAction_Values() []string {
  7029  	return []string{
  7030  		ExistingEnrollmentActionSkip,
  7031  		ExistingEnrollmentActionOverwrite,
  7032  	}
  7033  }
  7034  
  7035  const (
  7036  	// FraudDetectionActionIgnore is a FraudDetectionAction enum value
  7037  	FraudDetectionActionIgnore = "IGNORE"
  7038  
  7039  	// FraudDetectionActionFail is a FraudDetectionAction enum value
  7040  	FraudDetectionActionFail = "FAIL"
  7041  )
  7042  
  7043  // FraudDetectionAction_Values returns all elements of the FraudDetectionAction enum
  7044  func FraudDetectionAction_Values() []string {
  7045  	return []string{
  7046  		FraudDetectionActionIgnore,
  7047  		FraudDetectionActionFail,
  7048  	}
  7049  }
  7050  
  7051  const (
  7052  	// FraudDetectionDecisionHighRisk is a FraudDetectionDecision enum value
  7053  	FraudDetectionDecisionHighRisk = "HIGH_RISK"
  7054  
  7055  	// FraudDetectionDecisionLowRisk is a FraudDetectionDecision enum value
  7056  	FraudDetectionDecisionLowRisk = "LOW_RISK"
  7057  
  7058  	// FraudDetectionDecisionNotEnoughSpeech is a FraudDetectionDecision enum value
  7059  	FraudDetectionDecisionNotEnoughSpeech = "NOT_ENOUGH_SPEECH"
  7060  )
  7061  
  7062  // FraudDetectionDecision_Values returns all elements of the FraudDetectionDecision enum
  7063  func FraudDetectionDecision_Values() []string {
  7064  	return []string{
  7065  		FraudDetectionDecisionHighRisk,
  7066  		FraudDetectionDecisionLowRisk,
  7067  		FraudDetectionDecisionNotEnoughSpeech,
  7068  	}
  7069  }
  7070  
  7071  const (
  7072  	// FraudDetectionReasonKnownFraudster is a FraudDetectionReason enum value
  7073  	FraudDetectionReasonKnownFraudster = "KNOWN_FRAUDSTER"
  7074  )
  7075  
  7076  // FraudDetectionReason_Values returns all elements of the FraudDetectionReason enum
  7077  func FraudDetectionReason_Values() []string {
  7078  	return []string{
  7079  		FraudDetectionReasonKnownFraudster,
  7080  	}
  7081  }
  7082  
  7083  const (
  7084  	// FraudsterRegistrationJobStatusSubmitted is a FraudsterRegistrationJobStatus enum value
  7085  	FraudsterRegistrationJobStatusSubmitted = "SUBMITTED"
  7086  
  7087  	// FraudsterRegistrationJobStatusInProgress is a FraudsterRegistrationJobStatus enum value
  7088  	FraudsterRegistrationJobStatusInProgress = "IN_PROGRESS"
  7089  
  7090  	// FraudsterRegistrationJobStatusCompleted is a FraudsterRegistrationJobStatus enum value
  7091  	FraudsterRegistrationJobStatusCompleted = "COMPLETED"
  7092  
  7093  	// FraudsterRegistrationJobStatusCompletedWithErrors is a FraudsterRegistrationJobStatus enum value
  7094  	FraudsterRegistrationJobStatusCompletedWithErrors = "COMPLETED_WITH_ERRORS"
  7095  
  7096  	// FraudsterRegistrationJobStatusFailed is a FraudsterRegistrationJobStatus enum value
  7097  	FraudsterRegistrationJobStatusFailed = "FAILED"
  7098  )
  7099  
  7100  // FraudsterRegistrationJobStatus_Values returns all elements of the FraudsterRegistrationJobStatus enum
  7101  func FraudsterRegistrationJobStatus_Values() []string {
  7102  	return []string{
  7103  		FraudsterRegistrationJobStatusSubmitted,
  7104  		FraudsterRegistrationJobStatusInProgress,
  7105  		FraudsterRegistrationJobStatusCompleted,
  7106  		FraudsterRegistrationJobStatusCompletedWithErrors,
  7107  		FraudsterRegistrationJobStatusFailed,
  7108  	}
  7109  }
  7110  
  7111  const (
  7112  	// ResourceTypeBatchJob is a ResourceType enum value
  7113  	ResourceTypeBatchJob = "BATCH_JOB"
  7114  
  7115  	// ResourceTypeComplianceConsent is a ResourceType enum value
  7116  	ResourceTypeComplianceConsent = "COMPLIANCE_CONSENT"
  7117  
  7118  	// ResourceTypeDomain is a ResourceType enum value
  7119  	ResourceTypeDomain = "DOMAIN"
  7120  
  7121  	// ResourceTypeFraudster is a ResourceType enum value
  7122  	ResourceTypeFraudster = "FRAUDSTER"
  7123  
  7124  	// ResourceTypeSession is a ResourceType enum value
  7125  	ResourceTypeSession = "SESSION"
  7126  
  7127  	// ResourceTypeSpeaker is a ResourceType enum value
  7128  	ResourceTypeSpeaker = "SPEAKER"
  7129  )
  7130  
  7131  // ResourceType_Values returns all elements of the ResourceType enum
  7132  func ResourceType_Values() []string {
  7133  	return []string{
  7134  		ResourceTypeBatchJob,
  7135  		ResourceTypeComplianceConsent,
  7136  		ResourceTypeDomain,
  7137  		ResourceTypeFraudster,
  7138  		ResourceTypeSession,
  7139  		ResourceTypeSpeaker,
  7140  	}
  7141  }
  7142  
  7143  const (
  7144  	// SpeakerEnrollmentJobStatusSubmitted is a SpeakerEnrollmentJobStatus enum value
  7145  	SpeakerEnrollmentJobStatusSubmitted = "SUBMITTED"
  7146  
  7147  	// SpeakerEnrollmentJobStatusInProgress is a SpeakerEnrollmentJobStatus enum value
  7148  	SpeakerEnrollmentJobStatusInProgress = "IN_PROGRESS"
  7149  
  7150  	// SpeakerEnrollmentJobStatusCompleted is a SpeakerEnrollmentJobStatus enum value
  7151  	SpeakerEnrollmentJobStatusCompleted = "COMPLETED"
  7152  
  7153  	// SpeakerEnrollmentJobStatusCompletedWithErrors is a SpeakerEnrollmentJobStatus enum value
  7154  	SpeakerEnrollmentJobStatusCompletedWithErrors = "COMPLETED_WITH_ERRORS"
  7155  
  7156  	// SpeakerEnrollmentJobStatusFailed is a SpeakerEnrollmentJobStatus enum value
  7157  	SpeakerEnrollmentJobStatusFailed = "FAILED"
  7158  )
  7159  
  7160  // SpeakerEnrollmentJobStatus_Values returns all elements of the SpeakerEnrollmentJobStatus enum
  7161  func SpeakerEnrollmentJobStatus_Values() []string {
  7162  	return []string{
  7163  		SpeakerEnrollmentJobStatusSubmitted,
  7164  		SpeakerEnrollmentJobStatusInProgress,
  7165  		SpeakerEnrollmentJobStatusCompleted,
  7166  		SpeakerEnrollmentJobStatusCompletedWithErrors,
  7167  		SpeakerEnrollmentJobStatusFailed,
  7168  	}
  7169  }
  7170  
  7171  const (
  7172  	// SpeakerStatusEnrolled is a SpeakerStatus enum value
  7173  	SpeakerStatusEnrolled = "ENROLLED"
  7174  
  7175  	// SpeakerStatusExpired is a SpeakerStatus enum value
  7176  	SpeakerStatusExpired = "EXPIRED"
  7177  
  7178  	// SpeakerStatusOptedOut is a SpeakerStatus enum value
  7179  	SpeakerStatusOptedOut = "OPTED_OUT"
  7180  
  7181  	// SpeakerStatusPending is a SpeakerStatus enum value
  7182  	SpeakerStatusPending = "PENDING"
  7183  )
  7184  
  7185  // SpeakerStatus_Values returns all elements of the SpeakerStatus enum
  7186  func SpeakerStatus_Values() []string {
  7187  	return []string{
  7188  		SpeakerStatusEnrolled,
  7189  		SpeakerStatusExpired,
  7190  		SpeakerStatusOptedOut,
  7191  		SpeakerStatusPending,
  7192  	}
  7193  }
  7194  
  7195  const (
  7196  	// StreamingStatusPendingConfiguration is a StreamingStatus enum value
  7197  	StreamingStatusPendingConfiguration = "PENDING_CONFIGURATION"
  7198  
  7199  	// StreamingStatusOngoing is a StreamingStatus enum value
  7200  	StreamingStatusOngoing = "ONGOING"
  7201  
  7202  	// StreamingStatusEnded is a StreamingStatus enum value
  7203  	StreamingStatusEnded = "ENDED"
  7204  )
  7205  
  7206  // StreamingStatus_Values returns all elements of the StreamingStatus enum
  7207  func StreamingStatus_Values() []string {
  7208  	return []string{
  7209  		StreamingStatusPendingConfiguration,
  7210  		StreamingStatusOngoing,
  7211  		StreamingStatusEnded,
  7212  	}
  7213  }