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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package transcribeservice
     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 opCreateCallAnalyticsCategory = "CreateCallAnalyticsCategory"
    17  
    18  // CreateCallAnalyticsCategoryRequest generates a "aws/request.Request" representing the
    19  // client's request for the CreateCallAnalyticsCategory 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 CreateCallAnalyticsCategory for more information on using the CreateCallAnalyticsCategory
    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 CreateCallAnalyticsCategoryRequest method.
    34  //    req, resp := client.CreateCallAnalyticsCategoryRequest(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/transcribe-2017-10-26/CreateCallAnalyticsCategory
    42  func (c *TranscribeService) CreateCallAnalyticsCategoryRequest(input *CreateCallAnalyticsCategoryInput) (req *request.Request, output *CreateCallAnalyticsCategoryOutput) {
    43  	op := &request.Operation{
    44  		Name:       opCreateCallAnalyticsCategory,
    45  		HTTPMethod: "POST",
    46  		HTTPPath:   "/",
    47  	}
    48  
    49  	if input == nil {
    50  		input = &CreateCallAnalyticsCategoryInput{}
    51  	}
    52  
    53  	output = &CreateCallAnalyticsCategoryOutput{}
    54  	req = c.newRequest(op, input, output)
    55  	return
    56  }
    57  
    58  // CreateCallAnalyticsCategory API operation for Amazon Transcribe Service.
    59  //
    60  // Creates an analytics category. Amazon Transcribe applies the conditions specified
    61  // by your analytics categories to your call analytics jobs. For each analytics
    62  // category, you specify one or more rules. For example, you can specify a rule
    63  // that the customer sentiment was neutral or negative within that category.
    64  // If you start a call analytics job, Amazon Transcribe applies the category
    65  // to the analytics job that you've specified.
    66  //
    67  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    68  // with awserr.Error's Code and Message methods to get detailed information about
    69  // the error.
    70  //
    71  // See the AWS API reference guide for Amazon Transcribe Service's
    72  // API operation CreateCallAnalyticsCategory for usage and error information.
    73  //
    74  // Returned Error Types:
    75  //   * BadRequestException
    76  //   Your request didn't pass one or more validation tests. For example, if the
    77  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
    78  //   state (for example, it's "in progress"). See the exception Message field
    79  //   for more information.
    80  //
    81  //   * LimitExceededException
    82  //   Either you have sent too many requests or your input file is too long. Wait
    83  //   before you resend your request, or use a smaller file and resend the request.
    84  //
    85  //   * InternalFailureException
    86  //   There was an internal error. Check the error message and try your request
    87  //   again.
    88  //
    89  //   * ConflictException
    90  //   There is already a resource with that name.
    91  //
    92  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateCallAnalyticsCategory
    93  func (c *TranscribeService) CreateCallAnalyticsCategory(input *CreateCallAnalyticsCategoryInput) (*CreateCallAnalyticsCategoryOutput, error) {
    94  	req, out := c.CreateCallAnalyticsCategoryRequest(input)
    95  	return out, req.Send()
    96  }
    97  
    98  // CreateCallAnalyticsCategoryWithContext is the same as CreateCallAnalyticsCategory with the addition of
    99  // the ability to pass a context and additional request options.
   100  //
   101  // See CreateCallAnalyticsCategory for details on how to use this API operation.
   102  //
   103  // The context must be non-nil and will be used for request cancellation. If
   104  // the context is nil a panic will occur. In the future the SDK may create
   105  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   106  // for more information on using Contexts.
   107  func (c *TranscribeService) CreateCallAnalyticsCategoryWithContext(ctx aws.Context, input *CreateCallAnalyticsCategoryInput, opts ...request.Option) (*CreateCallAnalyticsCategoryOutput, error) {
   108  	req, out := c.CreateCallAnalyticsCategoryRequest(input)
   109  	req.SetContext(ctx)
   110  	req.ApplyOptions(opts...)
   111  	return out, req.Send()
   112  }
   113  
   114  const opCreateLanguageModel = "CreateLanguageModel"
   115  
   116  // CreateLanguageModelRequest generates a "aws/request.Request" representing the
   117  // client's request for the CreateLanguageModel operation. The "output" return
   118  // value will be populated with the request's response once the request completes
   119  // successfully.
   120  //
   121  // Use "Send" method on the returned Request to send the API call to the service.
   122  // the "output" return value is not valid until after Send returns without error.
   123  //
   124  // See CreateLanguageModel for more information on using the CreateLanguageModel
   125  // API call, and error handling.
   126  //
   127  // This method is useful when you want to inject custom logic or configuration
   128  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   129  //
   130  //
   131  //    // Example sending a request using the CreateLanguageModelRequest method.
   132  //    req, resp := client.CreateLanguageModelRequest(params)
   133  //
   134  //    err := req.Send()
   135  //    if err == nil { // resp is now filled
   136  //        fmt.Println(resp)
   137  //    }
   138  //
   139  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModel
   140  func (c *TranscribeService) CreateLanguageModelRequest(input *CreateLanguageModelInput) (req *request.Request, output *CreateLanguageModelOutput) {
   141  	op := &request.Operation{
   142  		Name:       opCreateLanguageModel,
   143  		HTTPMethod: "POST",
   144  		HTTPPath:   "/",
   145  	}
   146  
   147  	if input == nil {
   148  		input = &CreateLanguageModelInput{}
   149  	}
   150  
   151  	output = &CreateLanguageModelOutput{}
   152  	req = c.newRequest(op, input, output)
   153  	return
   154  }
   155  
   156  // CreateLanguageModel API operation for Amazon Transcribe Service.
   157  //
   158  // Creates a new custom language model. Use Amazon S3 prefixes to provide the
   159  // location of your input files. The time it takes to create your model depends
   160  // on the size of your training data.
   161  //
   162  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   163  // with awserr.Error's Code and Message methods to get detailed information about
   164  // the error.
   165  //
   166  // See the AWS API reference guide for Amazon Transcribe Service's
   167  // API operation CreateLanguageModel for usage and error information.
   168  //
   169  // Returned Error Types:
   170  //   * BadRequestException
   171  //   Your request didn't pass one or more validation tests. For example, if the
   172  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   173  //   state (for example, it's "in progress"). See the exception Message field
   174  //   for more information.
   175  //
   176  //   * LimitExceededException
   177  //   Either you have sent too many requests or your input file is too long. Wait
   178  //   before you resend your request, or use a smaller file and resend the request.
   179  //
   180  //   * InternalFailureException
   181  //   There was an internal error. Check the error message and try your request
   182  //   again.
   183  //
   184  //   * ConflictException
   185  //   There is already a resource with that name.
   186  //
   187  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModel
   188  func (c *TranscribeService) CreateLanguageModel(input *CreateLanguageModelInput) (*CreateLanguageModelOutput, error) {
   189  	req, out := c.CreateLanguageModelRequest(input)
   190  	return out, req.Send()
   191  }
   192  
   193  // CreateLanguageModelWithContext is the same as CreateLanguageModel with the addition of
   194  // the ability to pass a context and additional request options.
   195  //
   196  // See CreateLanguageModel for details on how to use this API operation.
   197  //
   198  // The context must be non-nil and will be used for request cancellation. If
   199  // the context is nil a panic will occur. In the future the SDK may create
   200  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   201  // for more information on using Contexts.
   202  func (c *TranscribeService) CreateLanguageModelWithContext(ctx aws.Context, input *CreateLanguageModelInput, opts ...request.Option) (*CreateLanguageModelOutput, error) {
   203  	req, out := c.CreateLanguageModelRequest(input)
   204  	req.SetContext(ctx)
   205  	req.ApplyOptions(opts...)
   206  	return out, req.Send()
   207  }
   208  
   209  const opCreateMedicalVocabulary = "CreateMedicalVocabulary"
   210  
   211  // CreateMedicalVocabularyRequest generates a "aws/request.Request" representing the
   212  // client's request for the CreateMedicalVocabulary operation. The "output" return
   213  // value will be populated with the request's response once the request completes
   214  // successfully.
   215  //
   216  // Use "Send" method on the returned Request to send the API call to the service.
   217  // the "output" return value is not valid until after Send returns without error.
   218  //
   219  // See CreateMedicalVocabulary for more information on using the CreateMedicalVocabulary
   220  // API call, and error handling.
   221  //
   222  // This method is useful when you want to inject custom logic or configuration
   223  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   224  //
   225  //
   226  //    // Example sending a request using the CreateMedicalVocabularyRequest method.
   227  //    req, resp := client.CreateMedicalVocabularyRequest(params)
   228  //
   229  //    err := req.Send()
   230  //    if err == nil { // resp is now filled
   231  //        fmt.Println(resp)
   232  //    }
   233  //
   234  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabulary
   235  func (c *TranscribeService) CreateMedicalVocabularyRequest(input *CreateMedicalVocabularyInput) (req *request.Request, output *CreateMedicalVocabularyOutput) {
   236  	op := &request.Operation{
   237  		Name:       opCreateMedicalVocabulary,
   238  		HTTPMethod: "POST",
   239  		HTTPPath:   "/",
   240  	}
   241  
   242  	if input == nil {
   243  		input = &CreateMedicalVocabularyInput{}
   244  	}
   245  
   246  	output = &CreateMedicalVocabularyOutput{}
   247  	req = c.newRequest(op, input, output)
   248  	return
   249  }
   250  
   251  // CreateMedicalVocabulary API operation for Amazon Transcribe Service.
   252  //
   253  // Creates a new custom vocabulary that you can use to modify how Amazon Transcribe
   254  // Medical transcribes your audio file.
   255  //
   256  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   257  // with awserr.Error's Code and Message methods to get detailed information about
   258  // the error.
   259  //
   260  // See the AWS API reference guide for Amazon Transcribe Service's
   261  // API operation CreateMedicalVocabulary for usage and error information.
   262  //
   263  // Returned Error Types:
   264  //   * BadRequestException
   265  //   Your request didn't pass one or more validation tests. For example, if the
   266  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   267  //   state (for example, it's "in progress"). See the exception Message field
   268  //   for more information.
   269  //
   270  //   * LimitExceededException
   271  //   Either you have sent too many requests or your input file is too long. Wait
   272  //   before you resend your request, or use a smaller file and resend the request.
   273  //
   274  //   * InternalFailureException
   275  //   There was an internal error. Check the error message and try your request
   276  //   again.
   277  //
   278  //   * ConflictException
   279  //   There is already a resource with that name.
   280  //
   281  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabulary
   282  func (c *TranscribeService) CreateMedicalVocabulary(input *CreateMedicalVocabularyInput) (*CreateMedicalVocabularyOutput, error) {
   283  	req, out := c.CreateMedicalVocabularyRequest(input)
   284  	return out, req.Send()
   285  }
   286  
   287  // CreateMedicalVocabularyWithContext is the same as CreateMedicalVocabulary with the addition of
   288  // the ability to pass a context and additional request options.
   289  //
   290  // See CreateMedicalVocabulary for details on how to use this API operation.
   291  //
   292  // The context must be non-nil and will be used for request cancellation. If
   293  // the context is nil a panic will occur. In the future the SDK may create
   294  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   295  // for more information on using Contexts.
   296  func (c *TranscribeService) CreateMedicalVocabularyWithContext(ctx aws.Context, input *CreateMedicalVocabularyInput, opts ...request.Option) (*CreateMedicalVocabularyOutput, error) {
   297  	req, out := c.CreateMedicalVocabularyRequest(input)
   298  	req.SetContext(ctx)
   299  	req.ApplyOptions(opts...)
   300  	return out, req.Send()
   301  }
   302  
   303  const opCreateVocabulary = "CreateVocabulary"
   304  
   305  // CreateVocabularyRequest generates a "aws/request.Request" representing the
   306  // client's request for the CreateVocabulary operation. The "output" return
   307  // value will be populated with the request's response once the request completes
   308  // successfully.
   309  //
   310  // Use "Send" method on the returned Request to send the API call to the service.
   311  // the "output" return value is not valid until after Send returns without error.
   312  //
   313  // See CreateVocabulary for more information on using the CreateVocabulary
   314  // API call, and error handling.
   315  //
   316  // This method is useful when you want to inject custom logic or configuration
   317  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   318  //
   319  //
   320  //    // Example sending a request using the CreateVocabularyRequest method.
   321  //    req, resp := client.CreateVocabularyRequest(params)
   322  //
   323  //    err := req.Send()
   324  //    if err == nil { // resp is now filled
   325  //        fmt.Println(resp)
   326  //    }
   327  //
   328  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabulary
   329  func (c *TranscribeService) CreateVocabularyRequest(input *CreateVocabularyInput) (req *request.Request, output *CreateVocabularyOutput) {
   330  	op := &request.Operation{
   331  		Name:       opCreateVocabulary,
   332  		HTTPMethod: "POST",
   333  		HTTPPath:   "/",
   334  	}
   335  
   336  	if input == nil {
   337  		input = &CreateVocabularyInput{}
   338  	}
   339  
   340  	output = &CreateVocabularyOutput{}
   341  	req = c.newRequest(op, input, output)
   342  	return
   343  }
   344  
   345  // CreateVocabulary API operation for Amazon Transcribe Service.
   346  //
   347  // Creates a new custom vocabulary that you can use to change the way Amazon
   348  // Transcribe handles transcription of an audio file.
   349  //
   350  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   351  // with awserr.Error's Code and Message methods to get detailed information about
   352  // the error.
   353  //
   354  // See the AWS API reference guide for Amazon Transcribe Service's
   355  // API operation CreateVocabulary for usage and error information.
   356  //
   357  // Returned Error Types:
   358  //   * BadRequestException
   359  //   Your request didn't pass one or more validation tests. For example, if the
   360  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   361  //   state (for example, it's "in progress"). See the exception Message field
   362  //   for more information.
   363  //
   364  //   * LimitExceededException
   365  //   Either you have sent too many requests or your input file is too long. Wait
   366  //   before you resend your request, or use a smaller file and resend the request.
   367  //
   368  //   * InternalFailureException
   369  //   There was an internal error. Check the error message and try your request
   370  //   again.
   371  //
   372  //   * ConflictException
   373  //   There is already a resource with that name.
   374  //
   375  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabulary
   376  func (c *TranscribeService) CreateVocabulary(input *CreateVocabularyInput) (*CreateVocabularyOutput, error) {
   377  	req, out := c.CreateVocabularyRequest(input)
   378  	return out, req.Send()
   379  }
   380  
   381  // CreateVocabularyWithContext is the same as CreateVocabulary with the addition of
   382  // the ability to pass a context and additional request options.
   383  //
   384  // See CreateVocabulary for details on how to use this API operation.
   385  //
   386  // The context must be non-nil and will be used for request cancellation. If
   387  // the context is nil a panic will occur. In the future the SDK may create
   388  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   389  // for more information on using Contexts.
   390  func (c *TranscribeService) CreateVocabularyWithContext(ctx aws.Context, input *CreateVocabularyInput, opts ...request.Option) (*CreateVocabularyOutput, error) {
   391  	req, out := c.CreateVocabularyRequest(input)
   392  	req.SetContext(ctx)
   393  	req.ApplyOptions(opts...)
   394  	return out, req.Send()
   395  }
   396  
   397  const opCreateVocabularyFilter = "CreateVocabularyFilter"
   398  
   399  // CreateVocabularyFilterRequest generates a "aws/request.Request" representing the
   400  // client's request for the CreateVocabularyFilter operation. The "output" return
   401  // value will be populated with the request's response once the request completes
   402  // successfully.
   403  //
   404  // Use "Send" method on the returned Request to send the API call to the service.
   405  // the "output" return value is not valid until after Send returns without error.
   406  //
   407  // See CreateVocabularyFilter for more information on using the CreateVocabularyFilter
   408  // API call, and error handling.
   409  //
   410  // This method is useful when you want to inject custom logic or configuration
   411  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   412  //
   413  //
   414  //    // Example sending a request using the CreateVocabularyFilterRequest method.
   415  //    req, resp := client.CreateVocabularyFilterRequest(params)
   416  //
   417  //    err := req.Send()
   418  //    if err == nil { // resp is now filled
   419  //        fmt.Println(resp)
   420  //    }
   421  //
   422  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter
   423  func (c *TranscribeService) CreateVocabularyFilterRequest(input *CreateVocabularyFilterInput) (req *request.Request, output *CreateVocabularyFilterOutput) {
   424  	op := &request.Operation{
   425  		Name:       opCreateVocabularyFilter,
   426  		HTTPMethod: "POST",
   427  		HTTPPath:   "/",
   428  	}
   429  
   430  	if input == nil {
   431  		input = &CreateVocabularyFilterInput{}
   432  	}
   433  
   434  	output = &CreateVocabularyFilterOutput{}
   435  	req = c.newRequest(op, input, output)
   436  	return
   437  }
   438  
   439  // CreateVocabularyFilter API operation for Amazon Transcribe Service.
   440  //
   441  // Creates a new vocabulary filter that you can use to filter words, such as
   442  // profane words, from the output of a transcription job.
   443  //
   444  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   445  // with awserr.Error's Code and Message methods to get detailed information about
   446  // the error.
   447  //
   448  // See the AWS API reference guide for Amazon Transcribe Service's
   449  // API operation CreateVocabularyFilter for usage and error information.
   450  //
   451  // Returned Error Types:
   452  //   * BadRequestException
   453  //   Your request didn't pass one or more validation tests. For example, if the
   454  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   455  //   state (for example, it's "in progress"). See the exception Message field
   456  //   for more information.
   457  //
   458  //   * LimitExceededException
   459  //   Either you have sent too many requests or your input file is too long. Wait
   460  //   before you resend your request, or use a smaller file and resend the request.
   461  //
   462  //   * InternalFailureException
   463  //   There was an internal error. Check the error message and try your request
   464  //   again.
   465  //
   466  //   * ConflictException
   467  //   There is already a resource with that name.
   468  //
   469  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter
   470  func (c *TranscribeService) CreateVocabularyFilter(input *CreateVocabularyFilterInput) (*CreateVocabularyFilterOutput, error) {
   471  	req, out := c.CreateVocabularyFilterRequest(input)
   472  	return out, req.Send()
   473  }
   474  
   475  // CreateVocabularyFilterWithContext is the same as CreateVocabularyFilter with the addition of
   476  // the ability to pass a context and additional request options.
   477  //
   478  // See CreateVocabularyFilter for details on how to use this API operation.
   479  //
   480  // The context must be non-nil and will be used for request cancellation. If
   481  // the context is nil a panic will occur. In the future the SDK may create
   482  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   483  // for more information on using Contexts.
   484  func (c *TranscribeService) CreateVocabularyFilterWithContext(ctx aws.Context, input *CreateVocabularyFilterInput, opts ...request.Option) (*CreateVocabularyFilterOutput, error) {
   485  	req, out := c.CreateVocabularyFilterRequest(input)
   486  	req.SetContext(ctx)
   487  	req.ApplyOptions(opts...)
   488  	return out, req.Send()
   489  }
   490  
   491  const opDeleteCallAnalyticsCategory = "DeleteCallAnalyticsCategory"
   492  
   493  // DeleteCallAnalyticsCategoryRequest generates a "aws/request.Request" representing the
   494  // client's request for the DeleteCallAnalyticsCategory operation. The "output" return
   495  // value will be populated with the request's response once the request completes
   496  // successfully.
   497  //
   498  // Use "Send" method on the returned Request to send the API call to the service.
   499  // the "output" return value is not valid until after Send returns without error.
   500  //
   501  // See DeleteCallAnalyticsCategory for more information on using the DeleteCallAnalyticsCategory
   502  // API call, and error handling.
   503  //
   504  // This method is useful when you want to inject custom logic or configuration
   505  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   506  //
   507  //
   508  //    // Example sending a request using the DeleteCallAnalyticsCategoryRequest method.
   509  //    req, resp := client.DeleteCallAnalyticsCategoryRequest(params)
   510  //
   511  //    err := req.Send()
   512  //    if err == nil { // resp is now filled
   513  //        fmt.Println(resp)
   514  //    }
   515  //
   516  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteCallAnalyticsCategory
   517  func (c *TranscribeService) DeleteCallAnalyticsCategoryRequest(input *DeleteCallAnalyticsCategoryInput) (req *request.Request, output *DeleteCallAnalyticsCategoryOutput) {
   518  	op := &request.Operation{
   519  		Name:       opDeleteCallAnalyticsCategory,
   520  		HTTPMethod: "POST",
   521  		HTTPPath:   "/",
   522  	}
   523  
   524  	if input == nil {
   525  		input = &DeleteCallAnalyticsCategoryInput{}
   526  	}
   527  
   528  	output = &DeleteCallAnalyticsCategoryOutput{}
   529  	req = c.newRequest(op, input, output)
   530  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   531  	return
   532  }
   533  
   534  // DeleteCallAnalyticsCategory API operation for Amazon Transcribe Service.
   535  //
   536  // Deletes a call analytics category using its name.
   537  //
   538  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   539  // with awserr.Error's Code and Message methods to get detailed information about
   540  // the error.
   541  //
   542  // See the AWS API reference guide for Amazon Transcribe Service's
   543  // API operation DeleteCallAnalyticsCategory for usage and error information.
   544  //
   545  // Returned Error Types:
   546  //   * NotFoundException
   547  //   We can't find the requested resource. Check the name and try your request
   548  //   again.
   549  //
   550  //   * LimitExceededException
   551  //   Either you have sent too many requests or your input file is too long. Wait
   552  //   before you resend your request, or use a smaller file and resend the request.
   553  //
   554  //   * BadRequestException
   555  //   Your request didn't pass one or more validation tests. For example, if the
   556  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   557  //   state (for example, it's "in progress"). See the exception Message field
   558  //   for more information.
   559  //
   560  //   * InternalFailureException
   561  //   There was an internal error. Check the error message and try your request
   562  //   again.
   563  //
   564  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteCallAnalyticsCategory
   565  func (c *TranscribeService) DeleteCallAnalyticsCategory(input *DeleteCallAnalyticsCategoryInput) (*DeleteCallAnalyticsCategoryOutput, error) {
   566  	req, out := c.DeleteCallAnalyticsCategoryRequest(input)
   567  	return out, req.Send()
   568  }
   569  
   570  // DeleteCallAnalyticsCategoryWithContext is the same as DeleteCallAnalyticsCategory with the addition of
   571  // the ability to pass a context and additional request options.
   572  //
   573  // See DeleteCallAnalyticsCategory for details on how to use this API operation.
   574  //
   575  // The context must be non-nil and will be used for request cancellation. If
   576  // the context is nil a panic will occur. In the future the SDK may create
   577  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   578  // for more information on using Contexts.
   579  func (c *TranscribeService) DeleteCallAnalyticsCategoryWithContext(ctx aws.Context, input *DeleteCallAnalyticsCategoryInput, opts ...request.Option) (*DeleteCallAnalyticsCategoryOutput, error) {
   580  	req, out := c.DeleteCallAnalyticsCategoryRequest(input)
   581  	req.SetContext(ctx)
   582  	req.ApplyOptions(opts...)
   583  	return out, req.Send()
   584  }
   585  
   586  const opDeleteCallAnalyticsJob = "DeleteCallAnalyticsJob"
   587  
   588  // DeleteCallAnalyticsJobRequest generates a "aws/request.Request" representing the
   589  // client's request for the DeleteCallAnalyticsJob operation. The "output" return
   590  // value will be populated with the request's response once the request completes
   591  // successfully.
   592  //
   593  // Use "Send" method on the returned Request to send the API call to the service.
   594  // the "output" return value is not valid until after Send returns without error.
   595  //
   596  // See DeleteCallAnalyticsJob for more information on using the DeleteCallAnalyticsJob
   597  // API call, and error handling.
   598  //
   599  // This method is useful when you want to inject custom logic or configuration
   600  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   601  //
   602  //
   603  //    // Example sending a request using the DeleteCallAnalyticsJobRequest method.
   604  //    req, resp := client.DeleteCallAnalyticsJobRequest(params)
   605  //
   606  //    err := req.Send()
   607  //    if err == nil { // resp is now filled
   608  //        fmt.Println(resp)
   609  //    }
   610  //
   611  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteCallAnalyticsJob
   612  func (c *TranscribeService) DeleteCallAnalyticsJobRequest(input *DeleteCallAnalyticsJobInput) (req *request.Request, output *DeleteCallAnalyticsJobOutput) {
   613  	op := &request.Operation{
   614  		Name:       opDeleteCallAnalyticsJob,
   615  		HTTPMethod: "POST",
   616  		HTTPPath:   "/",
   617  	}
   618  
   619  	if input == nil {
   620  		input = &DeleteCallAnalyticsJobInput{}
   621  	}
   622  
   623  	output = &DeleteCallAnalyticsJobOutput{}
   624  	req = c.newRequest(op, input, output)
   625  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   626  	return
   627  }
   628  
   629  // DeleteCallAnalyticsJob API operation for Amazon Transcribe Service.
   630  //
   631  // Deletes a call analytics job using its name.
   632  //
   633  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   634  // with awserr.Error's Code and Message methods to get detailed information about
   635  // the error.
   636  //
   637  // See the AWS API reference guide for Amazon Transcribe Service's
   638  // API operation DeleteCallAnalyticsJob for usage and error information.
   639  //
   640  // Returned Error Types:
   641  //   * LimitExceededException
   642  //   Either you have sent too many requests or your input file is too long. Wait
   643  //   before you resend your request, or use a smaller file and resend the request.
   644  //
   645  //   * BadRequestException
   646  //   Your request didn't pass one or more validation tests. For example, if the
   647  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   648  //   state (for example, it's "in progress"). See the exception Message field
   649  //   for more information.
   650  //
   651  //   * InternalFailureException
   652  //   There was an internal error. Check the error message and try your request
   653  //   again.
   654  //
   655  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteCallAnalyticsJob
   656  func (c *TranscribeService) DeleteCallAnalyticsJob(input *DeleteCallAnalyticsJobInput) (*DeleteCallAnalyticsJobOutput, error) {
   657  	req, out := c.DeleteCallAnalyticsJobRequest(input)
   658  	return out, req.Send()
   659  }
   660  
   661  // DeleteCallAnalyticsJobWithContext is the same as DeleteCallAnalyticsJob with the addition of
   662  // the ability to pass a context and additional request options.
   663  //
   664  // See DeleteCallAnalyticsJob for details on how to use this API operation.
   665  //
   666  // The context must be non-nil and will be used for request cancellation. If
   667  // the context is nil a panic will occur. In the future the SDK may create
   668  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   669  // for more information on using Contexts.
   670  func (c *TranscribeService) DeleteCallAnalyticsJobWithContext(ctx aws.Context, input *DeleteCallAnalyticsJobInput, opts ...request.Option) (*DeleteCallAnalyticsJobOutput, error) {
   671  	req, out := c.DeleteCallAnalyticsJobRequest(input)
   672  	req.SetContext(ctx)
   673  	req.ApplyOptions(opts...)
   674  	return out, req.Send()
   675  }
   676  
   677  const opDeleteLanguageModel = "DeleteLanguageModel"
   678  
   679  // DeleteLanguageModelRequest generates a "aws/request.Request" representing the
   680  // client's request for the DeleteLanguageModel operation. The "output" return
   681  // value will be populated with the request's response once the request completes
   682  // successfully.
   683  //
   684  // Use "Send" method on the returned Request to send the API call to the service.
   685  // the "output" return value is not valid until after Send returns without error.
   686  //
   687  // See DeleteLanguageModel for more information on using the DeleteLanguageModel
   688  // API call, and error handling.
   689  //
   690  // This method is useful when you want to inject custom logic or configuration
   691  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   692  //
   693  //
   694  //    // Example sending a request using the DeleteLanguageModelRequest method.
   695  //    req, resp := client.DeleteLanguageModelRequest(params)
   696  //
   697  //    err := req.Send()
   698  //    if err == nil { // resp is now filled
   699  //        fmt.Println(resp)
   700  //    }
   701  //
   702  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModel
   703  func (c *TranscribeService) DeleteLanguageModelRequest(input *DeleteLanguageModelInput) (req *request.Request, output *DeleteLanguageModelOutput) {
   704  	op := &request.Operation{
   705  		Name:       opDeleteLanguageModel,
   706  		HTTPMethod: "POST",
   707  		HTTPPath:   "/",
   708  	}
   709  
   710  	if input == nil {
   711  		input = &DeleteLanguageModelInput{}
   712  	}
   713  
   714  	output = &DeleteLanguageModelOutput{}
   715  	req = c.newRequest(op, input, output)
   716  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   717  	return
   718  }
   719  
   720  // DeleteLanguageModel API operation for Amazon Transcribe Service.
   721  //
   722  // Deletes a custom language model using its name.
   723  //
   724  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   725  // with awserr.Error's Code and Message methods to get detailed information about
   726  // the error.
   727  //
   728  // See the AWS API reference guide for Amazon Transcribe Service's
   729  // API operation DeleteLanguageModel for usage and error information.
   730  //
   731  // Returned Error Types:
   732  //   * BadRequestException
   733  //   Your request didn't pass one or more validation tests. For example, if the
   734  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   735  //   state (for example, it's "in progress"). See the exception Message field
   736  //   for more information.
   737  //
   738  //   * LimitExceededException
   739  //   Either you have sent too many requests or your input file is too long. Wait
   740  //   before you resend your request, or use a smaller file and resend the request.
   741  //
   742  //   * InternalFailureException
   743  //   There was an internal error. Check the error message and try your request
   744  //   again.
   745  //
   746  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModel
   747  func (c *TranscribeService) DeleteLanguageModel(input *DeleteLanguageModelInput) (*DeleteLanguageModelOutput, error) {
   748  	req, out := c.DeleteLanguageModelRequest(input)
   749  	return out, req.Send()
   750  }
   751  
   752  // DeleteLanguageModelWithContext is the same as DeleteLanguageModel with the addition of
   753  // the ability to pass a context and additional request options.
   754  //
   755  // See DeleteLanguageModel for details on how to use this API operation.
   756  //
   757  // The context must be non-nil and will be used for request cancellation. If
   758  // the context is nil a panic will occur. In the future the SDK may create
   759  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   760  // for more information on using Contexts.
   761  func (c *TranscribeService) DeleteLanguageModelWithContext(ctx aws.Context, input *DeleteLanguageModelInput, opts ...request.Option) (*DeleteLanguageModelOutput, error) {
   762  	req, out := c.DeleteLanguageModelRequest(input)
   763  	req.SetContext(ctx)
   764  	req.ApplyOptions(opts...)
   765  	return out, req.Send()
   766  }
   767  
   768  const opDeleteMedicalTranscriptionJob = "DeleteMedicalTranscriptionJob"
   769  
   770  // DeleteMedicalTranscriptionJobRequest generates a "aws/request.Request" representing the
   771  // client's request for the DeleteMedicalTranscriptionJob operation. The "output" return
   772  // value will be populated with the request's response once the request completes
   773  // successfully.
   774  //
   775  // Use "Send" method on the returned Request to send the API call to the service.
   776  // the "output" return value is not valid until after Send returns without error.
   777  //
   778  // See DeleteMedicalTranscriptionJob for more information on using the DeleteMedicalTranscriptionJob
   779  // API call, and error handling.
   780  //
   781  // This method is useful when you want to inject custom logic or configuration
   782  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   783  //
   784  //
   785  //    // Example sending a request using the DeleteMedicalTranscriptionJobRequest method.
   786  //    req, resp := client.DeleteMedicalTranscriptionJobRequest(params)
   787  //
   788  //    err := req.Send()
   789  //    if err == nil { // resp is now filled
   790  //        fmt.Println(resp)
   791  //    }
   792  //
   793  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalTranscriptionJob
   794  func (c *TranscribeService) DeleteMedicalTranscriptionJobRequest(input *DeleteMedicalTranscriptionJobInput) (req *request.Request, output *DeleteMedicalTranscriptionJobOutput) {
   795  	op := &request.Operation{
   796  		Name:       opDeleteMedicalTranscriptionJob,
   797  		HTTPMethod: "POST",
   798  		HTTPPath:   "/",
   799  	}
   800  
   801  	if input == nil {
   802  		input = &DeleteMedicalTranscriptionJobInput{}
   803  	}
   804  
   805  	output = &DeleteMedicalTranscriptionJobOutput{}
   806  	req = c.newRequest(op, input, output)
   807  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   808  	return
   809  }
   810  
   811  // DeleteMedicalTranscriptionJob API operation for Amazon Transcribe Service.
   812  //
   813  // Deletes a transcription job generated by Amazon Transcribe Medical and any
   814  // related information.
   815  //
   816  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   817  // with awserr.Error's Code and Message methods to get detailed information about
   818  // the error.
   819  //
   820  // See the AWS API reference guide for Amazon Transcribe Service's
   821  // API operation DeleteMedicalTranscriptionJob for usage and error information.
   822  //
   823  // Returned Error Types:
   824  //   * LimitExceededException
   825  //   Either you have sent too many requests or your input file is too long. Wait
   826  //   before you resend your request, or use a smaller file and resend the request.
   827  //
   828  //   * BadRequestException
   829  //   Your request didn't pass one or more validation tests. For example, if the
   830  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   831  //   state (for example, it's "in progress"). See the exception Message field
   832  //   for more information.
   833  //
   834  //   * InternalFailureException
   835  //   There was an internal error. Check the error message and try your request
   836  //   again.
   837  //
   838  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalTranscriptionJob
   839  func (c *TranscribeService) DeleteMedicalTranscriptionJob(input *DeleteMedicalTranscriptionJobInput) (*DeleteMedicalTranscriptionJobOutput, error) {
   840  	req, out := c.DeleteMedicalTranscriptionJobRequest(input)
   841  	return out, req.Send()
   842  }
   843  
   844  // DeleteMedicalTranscriptionJobWithContext is the same as DeleteMedicalTranscriptionJob with the addition of
   845  // the ability to pass a context and additional request options.
   846  //
   847  // See DeleteMedicalTranscriptionJob for details on how to use this API operation.
   848  //
   849  // The context must be non-nil and will be used for request cancellation. If
   850  // the context is nil a panic will occur. In the future the SDK may create
   851  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   852  // for more information on using Contexts.
   853  func (c *TranscribeService) DeleteMedicalTranscriptionJobWithContext(ctx aws.Context, input *DeleteMedicalTranscriptionJobInput, opts ...request.Option) (*DeleteMedicalTranscriptionJobOutput, error) {
   854  	req, out := c.DeleteMedicalTranscriptionJobRequest(input)
   855  	req.SetContext(ctx)
   856  	req.ApplyOptions(opts...)
   857  	return out, req.Send()
   858  }
   859  
   860  const opDeleteMedicalVocabulary = "DeleteMedicalVocabulary"
   861  
   862  // DeleteMedicalVocabularyRequest generates a "aws/request.Request" representing the
   863  // client's request for the DeleteMedicalVocabulary operation. The "output" return
   864  // value will be populated with the request's response once the request completes
   865  // successfully.
   866  //
   867  // Use "Send" method on the returned Request to send the API call to the service.
   868  // the "output" return value is not valid until after Send returns without error.
   869  //
   870  // See DeleteMedicalVocabulary for more information on using the DeleteMedicalVocabulary
   871  // API call, and error handling.
   872  //
   873  // This method is useful when you want to inject custom logic or configuration
   874  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   875  //
   876  //
   877  //    // Example sending a request using the DeleteMedicalVocabularyRequest method.
   878  //    req, resp := client.DeleteMedicalVocabularyRequest(params)
   879  //
   880  //    err := req.Send()
   881  //    if err == nil { // resp is now filled
   882  //        fmt.Println(resp)
   883  //    }
   884  //
   885  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabulary
   886  func (c *TranscribeService) DeleteMedicalVocabularyRequest(input *DeleteMedicalVocabularyInput) (req *request.Request, output *DeleteMedicalVocabularyOutput) {
   887  	op := &request.Operation{
   888  		Name:       opDeleteMedicalVocabulary,
   889  		HTTPMethod: "POST",
   890  		HTTPPath:   "/",
   891  	}
   892  
   893  	if input == nil {
   894  		input = &DeleteMedicalVocabularyInput{}
   895  	}
   896  
   897  	output = &DeleteMedicalVocabularyOutput{}
   898  	req = c.newRequest(op, input, output)
   899  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   900  	return
   901  }
   902  
   903  // DeleteMedicalVocabulary API operation for Amazon Transcribe Service.
   904  //
   905  // Deletes a vocabulary from Amazon Transcribe Medical.
   906  //
   907  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   908  // with awserr.Error's Code and Message methods to get detailed information about
   909  // the error.
   910  //
   911  // See the AWS API reference guide for Amazon Transcribe Service's
   912  // API operation DeleteMedicalVocabulary for usage and error information.
   913  //
   914  // Returned Error Types:
   915  //   * NotFoundException
   916  //   We can't find the requested resource. Check the name and try your request
   917  //   again.
   918  //
   919  //   * LimitExceededException
   920  //   Either you have sent too many requests or your input file is too long. Wait
   921  //   before you resend your request, or use a smaller file and resend the request.
   922  //
   923  //   * BadRequestException
   924  //   Your request didn't pass one or more validation tests. For example, if the
   925  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
   926  //   state (for example, it's "in progress"). See the exception Message field
   927  //   for more information.
   928  //
   929  //   * InternalFailureException
   930  //   There was an internal error. Check the error message and try your request
   931  //   again.
   932  //
   933  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabulary
   934  func (c *TranscribeService) DeleteMedicalVocabulary(input *DeleteMedicalVocabularyInput) (*DeleteMedicalVocabularyOutput, error) {
   935  	req, out := c.DeleteMedicalVocabularyRequest(input)
   936  	return out, req.Send()
   937  }
   938  
   939  // DeleteMedicalVocabularyWithContext is the same as DeleteMedicalVocabulary with the addition of
   940  // the ability to pass a context and additional request options.
   941  //
   942  // See DeleteMedicalVocabulary for details on how to use this API operation.
   943  //
   944  // The context must be non-nil and will be used for request cancellation. If
   945  // the context is nil a panic will occur. In the future the SDK may create
   946  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   947  // for more information on using Contexts.
   948  func (c *TranscribeService) DeleteMedicalVocabularyWithContext(ctx aws.Context, input *DeleteMedicalVocabularyInput, opts ...request.Option) (*DeleteMedicalVocabularyOutput, error) {
   949  	req, out := c.DeleteMedicalVocabularyRequest(input)
   950  	req.SetContext(ctx)
   951  	req.ApplyOptions(opts...)
   952  	return out, req.Send()
   953  }
   954  
   955  const opDeleteTranscriptionJob = "DeleteTranscriptionJob"
   956  
   957  // DeleteTranscriptionJobRequest generates a "aws/request.Request" representing the
   958  // client's request for the DeleteTranscriptionJob operation. The "output" return
   959  // value will be populated with the request's response once the request completes
   960  // successfully.
   961  //
   962  // Use "Send" method on the returned Request to send the API call to the service.
   963  // the "output" return value is not valid until after Send returns without error.
   964  //
   965  // See DeleteTranscriptionJob for more information on using the DeleteTranscriptionJob
   966  // API call, and error handling.
   967  //
   968  // This method is useful when you want to inject custom logic or configuration
   969  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   970  //
   971  //
   972  //    // Example sending a request using the DeleteTranscriptionJobRequest method.
   973  //    req, resp := client.DeleteTranscriptionJobRequest(params)
   974  //
   975  //    err := req.Send()
   976  //    if err == nil { // resp is now filled
   977  //        fmt.Println(resp)
   978  //    }
   979  //
   980  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob
   981  func (c *TranscribeService) DeleteTranscriptionJobRequest(input *DeleteTranscriptionJobInput) (req *request.Request, output *DeleteTranscriptionJobOutput) {
   982  	op := &request.Operation{
   983  		Name:       opDeleteTranscriptionJob,
   984  		HTTPMethod: "POST",
   985  		HTTPPath:   "/",
   986  	}
   987  
   988  	if input == nil {
   989  		input = &DeleteTranscriptionJobInput{}
   990  	}
   991  
   992  	output = &DeleteTranscriptionJobOutput{}
   993  	req = c.newRequest(op, input, output)
   994  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   995  	return
   996  }
   997  
   998  // DeleteTranscriptionJob API operation for Amazon Transcribe Service.
   999  //
  1000  // Deletes a previously submitted transcription job along with any other generated
  1001  // results such as the transcription, models, and so on.
  1002  //
  1003  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1004  // with awserr.Error's Code and Message methods to get detailed information about
  1005  // the error.
  1006  //
  1007  // See the AWS API reference guide for Amazon Transcribe Service's
  1008  // API operation DeleteTranscriptionJob for usage and error information.
  1009  //
  1010  // Returned Error Types:
  1011  //   * LimitExceededException
  1012  //   Either you have sent too many requests or your input file is too long. Wait
  1013  //   before you resend your request, or use a smaller file and resend the request.
  1014  //
  1015  //   * BadRequestException
  1016  //   Your request didn't pass one or more validation tests. For example, if the
  1017  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1018  //   state (for example, it's "in progress"). See the exception Message field
  1019  //   for more information.
  1020  //
  1021  //   * InternalFailureException
  1022  //   There was an internal error. Check the error message and try your request
  1023  //   again.
  1024  //
  1025  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob
  1026  func (c *TranscribeService) DeleteTranscriptionJob(input *DeleteTranscriptionJobInput) (*DeleteTranscriptionJobOutput, error) {
  1027  	req, out := c.DeleteTranscriptionJobRequest(input)
  1028  	return out, req.Send()
  1029  }
  1030  
  1031  // DeleteTranscriptionJobWithContext is the same as DeleteTranscriptionJob with the addition of
  1032  // the ability to pass a context and additional request options.
  1033  //
  1034  // See DeleteTranscriptionJob for details on how to use this API operation.
  1035  //
  1036  // The context must be non-nil and will be used for request cancellation. If
  1037  // the context is nil a panic will occur. In the future the SDK may create
  1038  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1039  // for more information on using Contexts.
  1040  func (c *TranscribeService) DeleteTranscriptionJobWithContext(ctx aws.Context, input *DeleteTranscriptionJobInput, opts ...request.Option) (*DeleteTranscriptionJobOutput, error) {
  1041  	req, out := c.DeleteTranscriptionJobRequest(input)
  1042  	req.SetContext(ctx)
  1043  	req.ApplyOptions(opts...)
  1044  	return out, req.Send()
  1045  }
  1046  
  1047  const opDeleteVocabulary = "DeleteVocabulary"
  1048  
  1049  // DeleteVocabularyRequest generates a "aws/request.Request" representing the
  1050  // client's request for the DeleteVocabulary operation. The "output" return
  1051  // value will be populated with the request's response once the request completes
  1052  // successfully.
  1053  //
  1054  // Use "Send" method on the returned Request to send the API call to the service.
  1055  // the "output" return value is not valid until after Send returns without error.
  1056  //
  1057  // See DeleteVocabulary for more information on using the DeleteVocabulary
  1058  // API call, and error handling.
  1059  //
  1060  // This method is useful when you want to inject custom logic or configuration
  1061  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1062  //
  1063  //
  1064  //    // Example sending a request using the DeleteVocabularyRequest method.
  1065  //    req, resp := client.DeleteVocabularyRequest(params)
  1066  //
  1067  //    err := req.Send()
  1068  //    if err == nil { // resp is now filled
  1069  //        fmt.Println(resp)
  1070  //    }
  1071  //
  1072  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabulary
  1073  func (c *TranscribeService) DeleteVocabularyRequest(input *DeleteVocabularyInput) (req *request.Request, output *DeleteVocabularyOutput) {
  1074  	op := &request.Operation{
  1075  		Name:       opDeleteVocabulary,
  1076  		HTTPMethod: "POST",
  1077  		HTTPPath:   "/",
  1078  	}
  1079  
  1080  	if input == nil {
  1081  		input = &DeleteVocabularyInput{}
  1082  	}
  1083  
  1084  	output = &DeleteVocabularyOutput{}
  1085  	req = c.newRequest(op, input, output)
  1086  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1087  	return
  1088  }
  1089  
  1090  // DeleteVocabulary API operation for Amazon Transcribe Service.
  1091  //
  1092  // Deletes a vocabulary from Amazon Transcribe.
  1093  //
  1094  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1095  // with awserr.Error's Code and Message methods to get detailed information about
  1096  // the error.
  1097  //
  1098  // See the AWS API reference guide for Amazon Transcribe Service's
  1099  // API operation DeleteVocabulary for usage and error information.
  1100  //
  1101  // Returned Error Types:
  1102  //   * NotFoundException
  1103  //   We can't find the requested resource. Check the name and try your request
  1104  //   again.
  1105  //
  1106  //   * LimitExceededException
  1107  //   Either you have sent too many requests or your input file is too long. Wait
  1108  //   before you resend your request, or use a smaller file and resend the request.
  1109  //
  1110  //   * BadRequestException
  1111  //   Your request didn't pass one or more validation tests. For example, if the
  1112  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1113  //   state (for example, it's "in progress"). See the exception Message field
  1114  //   for more information.
  1115  //
  1116  //   * InternalFailureException
  1117  //   There was an internal error. Check the error message and try your request
  1118  //   again.
  1119  //
  1120  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabulary
  1121  func (c *TranscribeService) DeleteVocabulary(input *DeleteVocabularyInput) (*DeleteVocabularyOutput, error) {
  1122  	req, out := c.DeleteVocabularyRequest(input)
  1123  	return out, req.Send()
  1124  }
  1125  
  1126  // DeleteVocabularyWithContext is the same as DeleteVocabulary with the addition of
  1127  // the ability to pass a context and additional request options.
  1128  //
  1129  // See DeleteVocabulary for details on how to use this API operation.
  1130  //
  1131  // The context must be non-nil and will be used for request cancellation. If
  1132  // the context is nil a panic will occur. In the future the SDK may create
  1133  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1134  // for more information on using Contexts.
  1135  func (c *TranscribeService) DeleteVocabularyWithContext(ctx aws.Context, input *DeleteVocabularyInput, opts ...request.Option) (*DeleteVocabularyOutput, error) {
  1136  	req, out := c.DeleteVocabularyRequest(input)
  1137  	req.SetContext(ctx)
  1138  	req.ApplyOptions(opts...)
  1139  	return out, req.Send()
  1140  }
  1141  
  1142  const opDeleteVocabularyFilter = "DeleteVocabularyFilter"
  1143  
  1144  // DeleteVocabularyFilterRequest generates a "aws/request.Request" representing the
  1145  // client's request for the DeleteVocabularyFilter operation. The "output" return
  1146  // value will be populated with the request's response once the request completes
  1147  // successfully.
  1148  //
  1149  // Use "Send" method on the returned Request to send the API call to the service.
  1150  // the "output" return value is not valid until after Send returns without error.
  1151  //
  1152  // See DeleteVocabularyFilter for more information on using the DeleteVocabularyFilter
  1153  // API call, and error handling.
  1154  //
  1155  // This method is useful when you want to inject custom logic or configuration
  1156  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1157  //
  1158  //
  1159  //    // Example sending a request using the DeleteVocabularyFilterRequest method.
  1160  //    req, resp := client.DeleteVocabularyFilterRequest(params)
  1161  //
  1162  //    err := req.Send()
  1163  //    if err == nil { // resp is now filled
  1164  //        fmt.Println(resp)
  1165  //    }
  1166  //
  1167  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilter
  1168  func (c *TranscribeService) DeleteVocabularyFilterRequest(input *DeleteVocabularyFilterInput) (req *request.Request, output *DeleteVocabularyFilterOutput) {
  1169  	op := &request.Operation{
  1170  		Name:       opDeleteVocabularyFilter,
  1171  		HTTPMethod: "POST",
  1172  		HTTPPath:   "/",
  1173  	}
  1174  
  1175  	if input == nil {
  1176  		input = &DeleteVocabularyFilterInput{}
  1177  	}
  1178  
  1179  	output = &DeleteVocabularyFilterOutput{}
  1180  	req = c.newRequest(op, input, output)
  1181  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1182  	return
  1183  }
  1184  
  1185  // DeleteVocabularyFilter API operation for Amazon Transcribe Service.
  1186  //
  1187  // Removes a vocabulary filter.
  1188  //
  1189  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1190  // with awserr.Error's Code and Message methods to get detailed information about
  1191  // the error.
  1192  //
  1193  // See the AWS API reference guide for Amazon Transcribe Service's
  1194  // API operation DeleteVocabularyFilter for usage and error information.
  1195  //
  1196  // Returned Error Types:
  1197  //   * NotFoundException
  1198  //   We can't find the requested resource. Check the name and try your request
  1199  //   again.
  1200  //
  1201  //   * LimitExceededException
  1202  //   Either you have sent too many requests or your input file is too long. Wait
  1203  //   before you resend your request, or use a smaller file and resend the request.
  1204  //
  1205  //   * BadRequestException
  1206  //   Your request didn't pass one or more validation tests. For example, if the
  1207  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1208  //   state (for example, it's "in progress"). See the exception Message field
  1209  //   for more information.
  1210  //
  1211  //   * InternalFailureException
  1212  //   There was an internal error. Check the error message and try your request
  1213  //   again.
  1214  //
  1215  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilter
  1216  func (c *TranscribeService) DeleteVocabularyFilter(input *DeleteVocabularyFilterInput) (*DeleteVocabularyFilterOutput, error) {
  1217  	req, out := c.DeleteVocabularyFilterRequest(input)
  1218  	return out, req.Send()
  1219  }
  1220  
  1221  // DeleteVocabularyFilterWithContext is the same as DeleteVocabularyFilter with the addition of
  1222  // the ability to pass a context and additional request options.
  1223  //
  1224  // See DeleteVocabularyFilter for details on how to use this API operation.
  1225  //
  1226  // The context must be non-nil and will be used for request cancellation. If
  1227  // the context is nil a panic will occur. In the future the SDK may create
  1228  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1229  // for more information on using Contexts.
  1230  func (c *TranscribeService) DeleteVocabularyFilterWithContext(ctx aws.Context, input *DeleteVocabularyFilterInput, opts ...request.Option) (*DeleteVocabularyFilterOutput, error) {
  1231  	req, out := c.DeleteVocabularyFilterRequest(input)
  1232  	req.SetContext(ctx)
  1233  	req.ApplyOptions(opts...)
  1234  	return out, req.Send()
  1235  }
  1236  
  1237  const opDescribeLanguageModel = "DescribeLanguageModel"
  1238  
  1239  // DescribeLanguageModelRequest generates a "aws/request.Request" representing the
  1240  // client's request for the DescribeLanguageModel operation. The "output" return
  1241  // value will be populated with the request's response once the request completes
  1242  // successfully.
  1243  //
  1244  // Use "Send" method on the returned Request to send the API call to the service.
  1245  // the "output" return value is not valid until after Send returns without error.
  1246  //
  1247  // See DescribeLanguageModel for more information on using the DescribeLanguageModel
  1248  // API call, and error handling.
  1249  //
  1250  // This method is useful when you want to inject custom logic or configuration
  1251  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1252  //
  1253  //
  1254  //    // Example sending a request using the DescribeLanguageModelRequest method.
  1255  //    req, resp := client.DescribeLanguageModelRequest(params)
  1256  //
  1257  //    err := req.Send()
  1258  //    if err == nil { // resp is now filled
  1259  //        fmt.Println(resp)
  1260  //    }
  1261  //
  1262  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel
  1263  func (c *TranscribeService) DescribeLanguageModelRequest(input *DescribeLanguageModelInput) (req *request.Request, output *DescribeLanguageModelOutput) {
  1264  	op := &request.Operation{
  1265  		Name:       opDescribeLanguageModel,
  1266  		HTTPMethod: "POST",
  1267  		HTTPPath:   "/",
  1268  	}
  1269  
  1270  	if input == nil {
  1271  		input = &DescribeLanguageModelInput{}
  1272  	}
  1273  
  1274  	output = &DescribeLanguageModelOutput{}
  1275  	req = c.newRequest(op, input, output)
  1276  	return
  1277  }
  1278  
  1279  // DescribeLanguageModel API operation for Amazon Transcribe Service.
  1280  //
  1281  // Gets information about a single custom language model. Use this information
  1282  // to see details about the language model in your Amazon Web Services account.
  1283  // You can also see whether the base language model used to create your custom
  1284  // language model has been updated. If Amazon Transcribe has updated the base
  1285  // model, you can create a new custom language model using the updated base
  1286  // model. If the language model wasn't created, you can use this operation to
  1287  // understand why Amazon Transcribe couldn't create it.
  1288  //
  1289  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1290  // with awserr.Error's Code and Message methods to get detailed information about
  1291  // the error.
  1292  //
  1293  // See the AWS API reference guide for Amazon Transcribe Service's
  1294  // API operation DescribeLanguageModel for usage and error information.
  1295  //
  1296  // Returned Error Types:
  1297  //   * BadRequestException
  1298  //   Your request didn't pass one or more validation tests. For example, if the
  1299  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1300  //   state (for example, it's "in progress"). See the exception Message field
  1301  //   for more information.
  1302  //
  1303  //   * LimitExceededException
  1304  //   Either you have sent too many requests or your input file is too long. Wait
  1305  //   before you resend your request, or use a smaller file and resend the request.
  1306  //
  1307  //   * InternalFailureException
  1308  //   There was an internal error. Check the error message and try your request
  1309  //   again.
  1310  //
  1311  //   * NotFoundException
  1312  //   We can't find the requested resource. Check the name and try your request
  1313  //   again.
  1314  //
  1315  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel
  1316  func (c *TranscribeService) DescribeLanguageModel(input *DescribeLanguageModelInput) (*DescribeLanguageModelOutput, error) {
  1317  	req, out := c.DescribeLanguageModelRequest(input)
  1318  	return out, req.Send()
  1319  }
  1320  
  1321  // DescribeLanguageModelWithContext is the same as DescribeLanguageModel with the addition of
  1322  // the ability to pass a context and additional request options.
  1323  //
  1324  // See DescribeLanguageModel for details on how to use this API operation.
  1325  //
  1326  // The context must be non-nil and will be used for request cancellation. If
  1327  // the context is nil a panic will occur. In the future the SDK may create
  1328  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1329  // for more information on using Contexts.
  1330  func (c *TranscribeService) DescribeLanguageModelWithContext(ctx aws.Context, input *DescribeLanguageModelInput, opts ...request.Option) (*DescribeLanguageModelOutput, error) {
  1331  	req, out := c.DescribeLanguageModelRequest(input)
  1332  	req.SetContext(ctx)
  1333  	req.ApplyOptions(opts...)
  1334  	return out, req.Send()
  1335  }
  1336  
  1337  const opGetCallAnalyticsCategory = "GetCallAnalyticsCategory"
  1338  
  1339  // GetCallAnalyticsCategoryRequest generates a "aws/request.Request" representing the
  1340  // client's request for the GetCallAnalyticsCategory operation. The "output" return
  1341  // value will be populated with the request's response once the request completes
  1342  // successfully.
  1343  //
  1344  // Use "Send" method on the returned Request to send the API call to the service.
  1345  // the "output" return value is not valid until after Send returns without error.
  1346  //
  1347  // See GetCallAnalyticsCategory for more information on using the GetCallAnalyticsCategory
  1348  // API call, and error handling.
  1349  //
  1350  // This method is useful when you want to inject custom logic or configuration
  1351  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1352  //
  1353  //
  1354  //    // Example sending a request using the GetCallAnalyticsCategoryRequest method.
  1355  //    req, resp := client.GetCallAnalyticsCategoryRequest(params)
  1356  //
  1357  //    err := req.Send()
  1358  //    if err == nil { // resp is now filled
  1359  //        fmt.Println(resp)
  1360  //    }
  1361  //
  1362  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsCategory
  1363  func (c *TranscribeService) GetCallAnalyticsCategoryRequest(input *GetCallAnalyticsCategoryInput) (req *request.Request, output *GetCallAnalyticsCategoryOutput) {
  1364  	op := &request.Operation{
  1365  		Name:       opGetCallAnalyticsCategory,
  1366  		HTTPMethod: "POST",
  1367  		HTTPPath:   "/",
  1368  	}
  1369  
  1370  	if input == nil {
  1371  		input = &GetCallAnalyticsCategoryInput{}
  1372  	}
  1373  
  1374  	output = &GetCallAnalyticsCategoryOutput{}
  1375  	req = c.newRequest(op, input, output)
  1376  	return
  1377  }
  1378  
  1379  // GetCallAnalyticsCategory API operation for Amazon Transcribe Service.
  1380  //
  1381  // Retrieves information about a call analytics category.
  1382  //
  1383  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1384  // with awserr.Error's Code and Message methods to get detailed information about
  1385  // the error.
  1386  //
  1387  // See the AWS API reference guide for Amazon Transcribe Service's
  1388  // API operation GetCallAnalyticsCategory for usage and error information.
  1389  //
  1390  // Returned Error Types:
  1391  //   * NotFoundException
  1392  //   We can't find the requested resource. Check the name and try your request
  1393  //   again.
  1394  //
  1395  //   * LimitExceededException
  1396  //   Either you have sent too many requests or your input file is too long. Wait
  1397  //   before you resend your request, or use a smaller file and resend the request.
  1398  //
  1399  //   * InternalFailureException
  1400  //   There was an internal error. Check the error message and try your request
  1401  //   again.
  1402  //
  1403  //   * BadRequestException
  1404  //   Your request didn't pass one or more validation tests. For example, if the
  1405  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1406  //   state (for example, it's "in progress"). See the exception Message field
  1407  //   for more information.
  1408  //
  1409  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsCategory
  1410  func (c *TranscribeService) GetCallAnalyticsCategory(input *GetCallAnalyticsCategoryInput) (*GetCallAnalyticsCategoryOutput, error) {
  1411  	req, out := c.GetCallAnalyticsCategoryRequest(input)
  1412  	return out, req.Send()
  1413  }
  1414  
  1415  // GetCallAnalyticsCategoryWithContext is the same as GetCallAnalyticsCategory with the addition of
  1416  // the ability to pass a context and additional request options.
  1417  //
  1418  // See GetCallAnalyticsCategory for details on how to use this API operation.
  1419  //
  1420  // The context must be non-nil and will be used for request cancellation. If
  1421  // the context is nil a panic will occur. In the future the SDK may create
  1422  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1423  // for more information on using Contexts.
  1424  func (c *TranscribeService) GetCallAnalyticsCategoryWithContext(ctx aws.Context, input *GetCallAnalyticsCategoryInput, opts ...request.Option) (*GetCallAnalyticsCategoryOutput, error) {
  1425  	req, out := c.GetCallAnalyticsCategoryRequest(input)
  1426  	req.SetContext(ctx)
  1427  	req.ApplyOptions(opts...)
  1428  	return out, req.Send()
  1429  }
  1430  
  1431  const opGetCallAnalyticsJob = "GetCallAnalyticsJob"
  1432  
  1433  // GetCallAnalyticsJobRequest generates a "aws/request.Request" representing the
  1434  // client's request for the GetCallAnalyticsJob operation. The "output" return
  1435  // value will be populated with the request's response once the request completes
  1436  // successfully.
  1437  //
  1438  // Use "Send" method on the returned Request to send the API call to the service.
  1439  // the "output" return value is not valid until after Send returns without error.
  1440  //
  1441  // See GetCallAnalyticsJob for more information on using the GetCallAnalyticsJob
  1442  // API call, and error handling.
  1443  //
  1444  // This method is useful when you want to inject custom logic or configuration
  1445  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1446  //
  1447  //
  1448  //    // Example sending a request using the GetCallAnalyticsJobRequest method.
  1449  //    req, resp := client.GetCallAnalyticsJobRequest(params)
  1450  //
  1451  //    err := req.Send()
  1452  //    if err == nil { // resp is now filled
  1453  //        fmt.Println(resp)
  1454  //    }
  1455  //
  1456  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsJob
  1457  func (c *TranscribeService) GetCallAnalyticsJobRequest(input *GetCallAnalyticsJobInput) (req *request.Request, output *GetCallAnalyticsJobOutput) {
  1458  	op := &request.Operation{
  1459  		Name:       opGetCallAnalyticsJob,
  1460  		HTTPMethod: "POST",
  1461  		HTTPPath:   "/",
  1462  	}
  1463  
  1464  	if input == nil {
  1465  		input = &GetCallAnalyticsJobInput{}
  1466  	}
  1467  
  1468  	output = &GetCallAnalyticsJobOutput{}
  1469  	req = c.newRequest(op, input, output)
  1470  	return
  1471  }
  1472  
  1473  // GetCallAnalyticsJob API operation for Amazon Transcribe Service.
  1474  //
  1475  // Returns information about a call analytics job. To see the status of the
  1476  // job, check the CallAnalyticsJobStatus field. If the status is COMPLETED,
  1477  // the job is finished and you can find the results at the location specified
  1478  // in the TranscriptFileUri field. If you enable personally identifiable information
  1479  // (PII) redaction, the redacted transcript appears in the RedactedTranscriptFileUri
  1480  // field.
  1481  //
  1482  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1483  // with awserr.Error's Code and Message methods to get detailed information about
  1484  // the error.
  1485  //
  1486  // See the AWS API reference guide for Amazon Transcribe Service's
  1487  // API operation GetCallAnalyticsJob for usage and error information.
  1488  //
  1489  // Returned Error Types:
  1490  //   * BadRequestException
  1491  //   Your request didn't pass one or more validation tests. For example, if the
  1492  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1493  //   state (for example, it's "in progress"). See the exception Message field
  1494  //   for more information.
  1495  //
  1496  //   * LimitExceededException
  1497  //   Either you have sent too many requests or your input file is too long. Wait
  1498  //   before you resend your request, or use a smaller file and resend the request.
  1499  //
  1500  //   * InternalFailureException
  1501  //   There was an internal error. Check the error message and try your request
  1502  //   again.
  1503  //
  1504  //   * NotFoundException
  1505  //   We can't find the requested resource. Check the name and try your request
  1506  //   again.
  1507  //
  1508  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsJob
  1509  func (c *TranscribeService) GetCallAnalyticsJob(input *GetCallAnalyticsJobInput) (*GetCallAnalyticsJobOutput, error) {
  1510  	req, out := c.GetCallAnalyticsJobRequest(input)
  1511  	return out, req.Send()
  1512  }
  1513  
  1514  // GetCallAnalyticsJobWithContext is the same as GetCallAnalyticsJob with the addition of
  1515  // the ability to pass a context and additional request options.
  1516  //
  1517  // See GetCallAnalyticsJob for details on how to use this API operation.
  1518  //
  1519  // The context must be non-nil and will be used for request cancellation. If
  1520  // the context is nil a panic will occur. In the future the SDK may create
  1521  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1522  // for more information on using Contexts.
  1523  func (c *TranscribeService) GetCallAnalyticsJobWithContext(ctx aws.Context, input *GetCallAnalyticsJobInput, opts ...request.Option) (*GetCallAnalyticsJobOutput, error) {
  1524  	req, out := c.GetCallAnalyticsJobRequest(input)
  1525  	req.SetContext(ctx)
  1526  	req.ApplyOptions(opts...)
  1527  	return out, req.Send()
  1528  }
  1529  
  1530  const opGetMedicalTranscriptionJob = "GetMedicalTranscriptionJob"
  1531  
  1532  // GetMedicalTranscriptionJobRequest generates a "aws/request.Request" representing the
  1533  // client's request for the GetMedicalTranscriptionJob operation. The "output" return
  1534  // value will be populated with the request's response once the request completes
  1535  // successfully.
  1536  //
  1537  // Use "Send" method on the returned Request to send the API call to the service.
  1538  // the "output" return value is not valid until after Send returns without error.
  1539  //
  1540  // See GetMedicalTranscriptionJob for more information on using the GetMedicalTranscriptionJob
  1541  // API call, and error handling.
  1542  //
  1543  // This method is useful when you want to inject custom logic or configuration
  1544  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1545  //
  1546  //
  1547  //    // Example sending a request using the GetMedicalTranscriptionJobRequest method.
  1548  //    req, resp := client.GetMedicalTranscriptionJobRequest(params)
  1549  //
  1550  //    err := req.Send()
  1551  //    if err == nil { // resp is now filled
  1552  //        fmt.Println(resp)
  1553  //    }
  1554  //
  1555  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalTranscriptionJob
  1556  func (c *TranscribeService) GetMedicalTranscriptionJobRequest(input *GetMedicalTranscriptionJobInput) (req *request.Request, output *GetMedicalTranscriptionJobOutput) {
  1557  	op := &request.Operation{
  1558  		Name:       opGetMedicalTranscriptionJob,
  1559  		HTTPMethod: "POST",
  1560  		HTTPPath:   "/",
  1561  	}
  1562  
  1563  	if input == nil {
  1564  		input = &GetMedicalTranscriptionJobInput{}
  1565  	}
  1566  
  1567  	output = &GetMedicalTranscriptionJobOutput{}
  1568  	req = c.newRequest(op, input, output)
  1569  	return
  1570  }
  1571  
  1572  // GetMedicalTranscriptionJob API operation for Amazon Transcribe Service.
  1573  //
  1574  // Returns information about a transcription job from Amazon Transcribe Medical.
  1575  // To see the status of the job, check the TranscriptionJobStatus field. If
  1576  // the status is COMPLETED, the job is finished. You find the results of the
  1577  // completed job in the TranscriptFileUri field.
  1578  //
  1579  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1580  // with awserr.Error's Code and Message methods to get detailed information about
  1581  // the error.
  1582  //
  1583  // See the AWS API reference guide for Amazon Transcribe Service's
  1584  // API operation GetMedicalTranscriptionJob for usage and error information.
  1585  //
  1586  // Returned Error Types:
  1587  //   * BadRequestException
  1588  //   Your request didn't pass one or more validation tests. For example, if the
  1589  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1590  //   state (for example, it's "in progress"). See the exception Message field
  1591  //   for more information.
  1592  //
  1593  //   * LimitExceededException
  1594  //   Either you have sent too many requests or your input file is too long. Wait
  1595  //   before you resend your request, or use a smaller file and resend the request.
  1596  //
  1597  //   * InternalFailureException
  1598  //   There was an internal error. Check the error message and try your request
  1599  //   again.
  1600  //
  1601  //   * NotFoundException
  1602  //   We can't find the requested resource. Check the name and try your request
  1603  //   again.
  1604  //
  1605  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalTranscriptionJob
  1606  func (c *TranscribeService) GetMedicalTranscriptionJob(input *GetMedicalTranscriptionJobInput) (*GetMedicalTranscriptionJobOutput, error) {
  1607  	req, out := c.GetMedicalTranscriptionJobRequest(input)
  1608  	return out, req.Send()
  1609  }
  1610  
  1611  // GetMedicalTranscriptionJobWithContext is the same as GetMedicalTranscriptionJob with the addition of
  1612  // the ability to pass a context and additional request options.
  1613  //
  1614  // See GetMedicalTranscriptionJob for details on how to use this API operation.
  1615  //
  1616  // The context must be non-nil and will be used for request cancellation. If
  1617  // the context is nil a panic will occur. In the future the SDK may create
  1618  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1619  // for more information on using Contexts.
  1620  func (c *TranscribeService) GetMedicalTranscriptionJobWithContext(ctx aws.Context, input *GetMedicalTranscriptionJobInput, opts ...request.Option) (*GetMedicalTranscriptionJobOutput, error) {
  1621  	req, out := c.GetMedicalTranscriptionJobRequest(input)
  1622  	req.SetContext(ctx)
  1623  	req.ApplyOptions(opts...)
  1624  	return out, req.Send()
  1625  }
  1626  
  1627  const opGetMedicalVocabulary = "GetMedicalVocabulary"
  1628  
  1629  // GetMedicalVocabularyRequest generates a "aws/request.Request" representing the
  1630  // client's request for the GetMedicalVocabulary operation. The "output" return
  1631  // value will be populated with the request's response once the request completes
  1632  // successfully.
  1633  //
  1634  // Use "Send" method on the returned Request to send the API call to the service.
  1635  // the "output" return value is not valid until after Send returns without error.
  1636  //
  1637  // See GetMedicalVocabulary for more information on using the GetMedicalVocabulary
  1638  // API call, and error handling.
  1639  //
  1640  // This method is useful when you want to inject custom logic or configuration
  1641  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1642  //
  1643  //
  1644  //    // Example sending a request using the GetMedicalVocabularyRequest method.
  1645  //    req, resp := client.GetMedicalVocabularyRequest(params)
  1646  //
  1647  //    err := req.Send()
  1648  //    if err == nil { // resp is now filled
  1649  //        fmt.Println(resp)
  1650  //    }
  1651  //
  1652  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabulary
  1653  func (c *TranscribeService) GetMedicalVocabularyRequest(input *GetMedicalVocabularyInput) (req *request.Request, output *GetMedicalVocabularyOutput) {
  1654  	op := &request.Operation{
  1655  		Name:       opGetMedicalVocabulary,
  1656  		HTTPMethod: "POST",
  1657  		HTTPPath:   "/",
  1658  	}
  1659  
  1660  	if input == nil {
  1661  		input = &GetMedicalVocabularyInput{}
  1662  	}
  1663  
  1664  	output = &GetMedicalVocabularyOutput{}
  1665  	req = c.newRequest(op, input, output)
  1666  	return
  1667  }
  1668  
  1669  // GetMedicalVocabulary API operation for Amazon Transcribe Service.
  1670  //
  1671  // Retrieves information about a medical vocabulary.
  1672  //
  1673  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1674  // with awserr.Error's Code and Message methods to get detailed information about
  1675  // the error.
  1676  //
  1677  // See the AWS API reference guide for Amazon Transcribe Service's
  1678  // API operation GetMedicalVocabulary for usage and error information.
  1679  //
  1680  // Returned Error Types:
  1681  //   * NotFoundException
  1682  //   We can't find the requested resource. Check the name and try your request
  1683  //   again.
  1684  //
  1685  //   * LimitExceededException
  1686  //   Either you have sent too many requests or your input file is too long. Wait
  1687  //   before you resend your request, or use a smaller file and resend the request.
  1688  //
  1689  //   * InternalFailureException
  1690  //   There was an internal error. Check the error message and try your request
  1691  //   again.
  1692  //
  1693  //   * BadRequestException
  1694  //   Your request didn't pass one or more validation tests. For example, if the
  1695  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1696  //   state (for example, it's "in progress"). See the exception Message field
  1697  //   for more information.
  1698  //
  1699  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabulary
  1700  func (c *TranscribeService) GetMedicalVocabulary(input *GetMedicalVocabularyInput) (*GetMedicalVocabularyOutput, error) {
  1701  	req, out := c.GetMedicalVocabularyRequest(input)
  1702  	return out, req.Send()
  1703  }
  1704  
  1705  // GetMedicalVocabularyWithContext is the same as GetMedicalVocabulary with the addition of
  1706  // the ability to pass a context and additional request options.
  1707  //
  1708  // See GetMedicalVocabulary for details on how to use this API operation.
  1709  //
  1710  // The context must be non-nil and will be used for request cancellation. If
  1711  // the context is nil a panic will occur. In the future the SDK may create
  1712  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1713  // for more information on using Contexts.
  1714  func (c *TranscribeService) GetMedicalVocabularyWithContext(ctx aws.Context, input *GetMedicalVocabularyInput, opts ...request.Option) (*GetMedicalVocabularyOutput, error) {
  1715  	req, out := c.GetMedicalVocabularyRequest(input)
  1716  	req.SetContext(ctx)
  1717  	req.ApplyOptions(opts...)
  1718  	return out, req.Send()
  1719  }
  1720  
  1721  const opGetTranscriptionJob = "GetTranscriptionJob"
  1722  
  1723  // GetTranscriptionJobRequest generates a "aws/request.Request" representing the
  1724  // client's request for the GetTranscriptionJob operation. The "output" return
  1725  // value will be populated with the request's response once the request completes
  1726  // successfully.
  1727  //
  1728  // Use "Send" method on the returned Request to send the API call to the service.
  1729  // the "output" return value is not valid until after Send returns without error.
  1730  //
  1731  // See GetTranscriptionJob for more information on using the GetTranscriptionJob
  1732  // API call, and error handling.
  1733  //
  1734  // This method is useful when you want to inject custom logic or configuration
  1735  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1736  //
  1737  //
  1738  //    // Example sending a request using the GetTranscriptionJobRequest method.
  1739  //    req, resp := client.GetTranscriptionJobRequest(params)
  1740  //
  1741  //    err := req.Send()
  1742  //    if err == nil { // resp is now filled
  1743  //        fmt.Println(resp)
  1744  //    }
  1745  //
  1746  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob
  1747  func (c *TranscribeService) GetTranscriptionJobRequest(input *GetTranscriptionJobInput) (req *request.Request, output *GetTranscriptionJobOutput) {
  1748  	op := &request.Operation{
  1749  		Name:       opGetTranscriptionJob,
  1750  		HTTPMethod: "POST",
  1751  		HTTPPath:   "/",
  1752  	}
  1753  
  1754  	if input == nil {
  1755  		input = &GetTranscriptionJobInput{}
  1756  	}
  1757  
  1758  	output = &GetTranscriptionJobOutput{}
  1759  	req = c.newRequest(op, input, output)
  1760  	return
  1761  }
  1762  
  1763  // GetTranscriptionJob API operation for Amazon Transcribe Service.
  1764  //
  1765  // Returns information about a transcription job. To see the status of the job,
  1766  // check the TranscriptionJobStatus field. If the status is COMPLETED, the job
  1767  // is finished and you can find the results at the location specified in the
  1768  // TranscriptFileUri field. If you enable content redaction, the redacted transcript
  1769  // appears in RedactedTranscriptFileUri.
  1770  //
  1771  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1772  // with awserr.Error's Code and Message methods to get detailed information about
  1773  // the error.
  1774  //
  1775  // See the AWS API reference guide for Amazon Transcribe Service's
  1776  // API operation GetTranscriptionJob for usage and error information.
  1777  //
  1778  // Returned Error Types:
  1779  //   * BadRequestException
  1780  //   Your request didn't pass one or more validation tests. For example, if the
  1781  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1782  //   state (for example, it's "in progress"). See the exception Message field
  1783  //   for more information.
  1784  //
  1785  //   * LimitExceededException
  1786  //   Either you have sent too many requests or your input file is too long. Wait
  1787  //   before you resend your request, or use a smaller file and resend the request.
  1788  //
  1789  //   * InternalFailureException
  1790  //   There was an internal error. Check the error message and try your request
  1791  //   again.
  1792  //
  1793  //   * NotFoundException
  1794  //   We can't find the requested resource. Check the name and try your request
  1795  //   again.
  1796  //
  1797  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob
  1798  func (c *TranscribeService) GetTranscriptionJob(input *GetTranscriptionJobInput) (*GetTranscriptionJobOutput, error) {
  1799  	req, out := c.GetTranscriptionJobRequest(input)
  1800  	return out, req.Send()
  1801  }
  1802  
  1803  // GetTranscriptionJobWithContext is the same as GetTranscriptionJob with the addition of
  1804  // the ability to pass a context and additional request options.
  1805  //
  1806  // See GetTranscriptionJob for details on how to use this API operation.
  1807  //
  1808  // The context must be non-nil and will be used for request cancellation. If
  1809  // the context is nil a panic will occur. In the future the SDK may create
  1810  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1811  // for more information on using Contexts.
  1812  func (c *TranscribeService) GetTranscriptionJobWithContext(ctx aws.Context, input *GetTranscriptionJobInput, opts ...request.Option) (*GetTranscriptionJobOutput, error) {
  1813  	req, out := c.GetTranscriptionJobRequest(input)
  1814  	req.SetContext(ctx)
  1815  	req.ApplyOptions(opts...)
  1816  	return out, req.Send()
  1817  }
  1818  
  1819  const opGetVocabulary = "GetVocabulary"
  1820  
  1821  // GetVocabularyRequest generates a "aws/request.Request" representing the
  1822  // client's request for the GetVocabulary operation. The "output" return
  1823  // value will be populated with the request's response once the request completes
  1824  // successfully.
  1825  //
  1826  // Use "Send" method on the returned Request to send the API call to the service.
  1827  // the "output" return value is not valid until after Send returns without error.
  1828  //
  1829  // See GetVocabulary for more information on using the GetVocabulary
  1830  // API call, and error handling.
  1831  //
  1832  // This method is useful when you want to inject custom logic or configuration
  1833  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1834  //
  1835  //
  1836  //    // Example sending a request using the GetVocabularyRequest method.
  1837  //    req, resp := client.GetVocabularyRequest(params)
  1838  //
  1839  //    err := req.Send()
  1840  //    if err == nil { // resp is now filled
  1841  //        fmt.Println(resp)
  1842  //    }
  1843  //
  1844  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary
  1845  func (c *TranscribeService) GetVocabularyRequest(input *GetVocabularyInput) (req *request.Request, output *GetVocabularyOutput) {
  1846  	op := &request.Operation{
  1847  		Name:       opGetVocabulary,
  1848  		HTTPMethod: "POST",
  1849  		HTTPPath:   "/",
  1850  	}
  1851  
  1852  	if input == nil {
  1853  		input = &GetVocabularyInput{}
  1854  	}
  1855  
  1856  	output = &GetVocabularyOutput{}
  1857  	req = c.newRequest(op, input, output)
  1858  	return
  1859  }
  1860  
  1861  // GetVocabulary API operation for Amazon Transcribe Service.
  1862  //
  1863  // Gets information about a vocabulary.
  1864  //
  1865  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1866  // with awserr.Error's Code and Message methods to get detailed information about
  1867  // the error.
  1868  //
  1869  // See the AWS API reference guide for Amazon Transcribe Service's
  1870  // API operation GetVocabulary for usage and error information.
  1871  //
  1872  // Returned Error Types:
  1873  //   * NotFoundException
  1874  //   We can't find the requested resource. Check the name and try your request
  1875  //   again.
  1876  //
  1877  //   * LimitExceededException
  1878  //   Either you have sent too many requests or your input file is too long. Wait
  1879  //   before you resend your request, or use a smaller file and resend the request.
  1880  //
  1881  //   * InternalFailureException
  1882  //   There was an internal error. Check the error message and try your request
  1883  //   again.
  1884  //
  1885  //   * BadRequestException
  1886  //   Your request didn't pass one or more validation tests. For example, if the
  1887  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1888  //   state (for example, it's "in progress"). See the exception Message field
  1889  //   for more information.
  1890  //
  1891  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary
  1892  func (c *TranscribeService) GetVocabulary(input *GetVocabularyInput) (*GetVocabularyOutput, error) {
  1893  	req, out := c.GetVocabularyRequest(input)
  1894  	return out, req.Send()
  1895  }
  1896  
  1897  // GetVocabularyWithContext is the same as GetVocabulary with the addition of
  1898  // the ability to pass a context and additional request options.
  1899  //
  1900  // See GetVocabulary for details on how to use this API operation.
  1901  //
  1902  // The context must be non-nil and will be used for request cancellation. If
  1903  // the context is nil a panic will occur. In the future the SDK may create
  1904  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1905  // for more information on using Contexts.
  1906  func (c *TranscribeService) GetVocabularyWithContext(ctx aws.Context, input *GetVocabularyInput, opts ...request.Option) (*GetVocabularyOutput, error) {
  1907  	req, out := c.GetVocabularyRequest(input)
  1908  	req.SetContext(ctx)
  1909  	req.ApplyOptions(opts...)
  1910  	return out, req.Send()
  1911  }
  1912  
  1913  const opGetVocabularyFilter = "GetVocabularyFilter"
  1914  
  1915  // GetVocabularyFilterRequest generates a "aws/request.Request" representing the
  1916  // client's request for the GetVocabularyFilter operation. The "output" return
  1917  // value will be populated with the request's response once the request completes
  1918  // successfully.
  1919  //
  1920  // Use "Send" method on the returned Request to send the API call to the service.
  1921  // the "output" return value is not valid until after Send returns without error.
  1922  //
  1923  // See GetVocabularyFilter for more information on using the GetVocabularyFilter
  1924  // API call, and error handling.
  1925  //
  1926  // This method is useful when you want to inject custom logic or configuration
  1927  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1928  //
  1929  //
  1930  //    // Example sending a request using the GetVocabularyFilterRequest method.
  1931  //    req, resp := client.GetVocabularyFilterRequest(params)
  1932  //
  1933  //    err := req.Send()
  1934  //    if err == nil { // resp is now filled
  1935  //        fmt.Println(resp)
  1936  //    }
  1937  //
  1938  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilter
  1939  func (c *TranscribeService) GetVocabularyFilterRequest(input *GetVocabularyFilterInput) (req *request.Request, output *GetVocabularyFilterOutput) {
  1940  	op := &request.Operation{
  1941  		Name:       opGetVocabularyFilter,
  1942  		HTTPMethod: "POST",
  1943  		HTTPPath:   "/",
  1944  	}
  1945  
  1946  	if input == nil {
  1947  		input = &GetVocabularyFilterInput{}
  1948  	}
  1949  
  1950  	output = &GetVocabularyFilterOutput{}
  1951  	req = c.newRequest(op, input, output)
  1952  	return
  1953  }
  1954  
  1955  // GetVocabularyFilter API operation for Amazon Transcribe Service.
  1956  //
  1957  // Returns information about a vocabulary filter.
  1958  //
  1959  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1960  // with awserr.Error's Code and Message methods to get detailed information about
  1961  // the error.
  1962  //
  1963  // See the AWS API reference guide for Amazon Transcribe Service's
  1964  // API operation GetVocabularyFilter for usage and error information.
  1965  //
  1966  // Returned Error Types:
  1967  //   * NotFoundException
  1968  //   We can't find the requested resource. Check the name and try your request
  1969  //   again.
  1970  //
  1971  //   * LimitExceededException
  1972  //   Either you have sent too many requests or your input file is too long. Wait
  1973  //   before you resend your request, or use a smaller file and resend the request.
  1974  //
  1975  //   * InternalFailureException
  1976  //   There was an internal error. Check the error message and try your request
  1977  //   again.
  1978  //
  1979  //   * BadRequestException
  1980  //   Your request didn't pass one or more validation tests. For example, if the
  1981  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  1982  //   state (for example, it's "in progress"). See the exception Message field
  1983  //   for more information.
  1984  //
  1985  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilter
  1986  func (c *TranscribeService) GetVocabularyFilter(input *GetVocabularyFilterInput) (*GetVocabularyFilterOutput, error) {
  1987  	req, out := c.GetVocabularyFilterRequest(input)
  1988  	return out, req.Send()
  1989  }
  1990  
  1991  // GetVocabularyFilterWithContext is the same as GetVocabularyFilter with the addition of
  1992  // the ability to pass a context and additional request options.
  1993  //
  1994  // See GetVocabularyFilter for details on how to use this API operation.
  1995  //
  1996  // The context must be non-nil and will be used for request cancellation. If
  1997  // the context is nil a panic will occur. In the future the SDK may create
  1998  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1999  // for more information on using Contexts.
  2000  func (c *TranscribeService) GetVocabularyFilterWithContext(ctx aws.Context, input *GetVocabularyFilterInput, opts ...request.Option) (*GetVocabularyFilterOutput, error) {
  2001  	req, out := c.GetVocabularyFilterRequest(input)
  2002  	req.SetContext(ctx)
  2003  	req.ApplyOptions(opts...)
  2004  	return out, req.Send()
  2005  }
  2006  
  2007  const opListCallAnalyticsCategories = "ListCallAnalyticsCategories"
  2008  
  2009  // ListCallAnalyticsCategoriesRequest generates a "aws/request.Request" representing the
  2010  // client's request for the ListCallAnalyticsCategories operation. The "output" return
  2011  // value will be populated with the request's response once the request completes
  2012  // successfully.
  2013  //
  2014  // Use "Send" method on the returned Request to send the API call to the service.
  2015  // the "output" return value is not valid until after Send returns without error.
  2016  //
  2017  // See ListCallAnalyticsCategories for more information on using the ListCallAnalyticsCategories
  2018  // API call, and error handling.
  2019  //
  2020  // This method is useful when you want to inject custom logic or configuration
  2021  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2022  //
  2023  //
  2024  //    // Example sending a request using the ListCallAnalyticsCategoriesRequest method.
  2025  //    req, resp := client.ListCallAnalyticsCategoriesRequest(params)
  2026  //
  2027  //    err := req.Send()
  2028  //    if err == nil { // resp is now filled
  2029  //        fmt.Println(resp)
  2030  //    }
  2031  //
  2032  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListCallAnalyticsCategories
  2033  func (c *TranscribeService) ListCallAnalyticsCategoriesRequest(input *ListCallAnalyticsCategoriesInput) (req *request.Request, output *ListCallAnalyticsCategoriesOutput) {
  2034  	op := &request.Operation{
  2035  		Name:       opListCallAnalyticsCategories,
  2036  		HTTPMethod: "POST",
  2037  		HTTPPath:   "/",
  2038  		Paginator: &request.Paginator{
  2039  			InputTokens:     []string{"NextToken"},
  2040  			OutputTokens:    []string{"NextToken"},
  2041  			LimitToken:      "MaxResults",
  2042  			TruncationToken: "",
  2043  		},
  2044  	}
  2045  
  2046  	if input == nil {
  2047  		input = &ListCallAnalyticsCategoriesInput{}
  2048  	}
  2049  
  2050  	output = &ListCallAnalyticsCategoriesOutput{}
  2051  	req = c.newRequest(op, input, output)
  2052  	return
  2053  }
  2054  
  2055  // ListCallAnalyticsCategories API operation for Amazon Transcribe Service.
  2056  //
  2057  // Provides more information about the call analytics categories that you've
  2058  // created. You can use the information in this list to find a specific category.
  2059  // You can then use the operation to get more information about it.
  2060  //
  2061  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2062  // with awserr.Error's Code and Message methods to get detailed information about
  2063  // the error.
  2064  //
  2065  // See the AWS API reference guide for Amazon Transcribe Service's
  2066  // API operation ListCallAnalyticsCategories for usage and error information.
  2067  //
  2068  // Returned Error Types:
  2069  //   * BadRequestException
  2070  //   Your request didn't pass one or more validation tests. For example, if the
  2071  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2072  //   state (for example, it's "in progress"). See the exception Message field
  2073  //   for more information.
  2074  //
  2075  //   * LimitExceededException
  2076  //   Either you have sent too many requests or your input file is too long. Wait
  2077  //   before you resend your request, or use a smaller file and resend the request.
  2078  //
  2079  //   * InternalFailureException
  2080  //   There was an internal error. Check the error message and try your request
  2081  //   again.
  2082  //
  2083  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListCallAnalyticsCategories
  2084  func (c *TranscribeService) ListCallAnalyticsCategories(input *ListCallAnalyticsCategoriesInput) (*ListCallAnalyticsCategoriesOutput, error) {
  2085  	req, out := c.ListCallAnalyticsCategoriesRequest(input)
  2086  	return out, req.Send()
  2087  }
  2088  
  2089  // ListCallAnalyticsCategoriesWithContext is the same as ListCallAnalyticsCategories with the addition of
  2090  // the ability to pass a context and additional request options.
  2091  //
  2092  // See ListCallAnalyticsCategories for details on how to use this API operation.
  2093  //
  2094  // The context must be non-nil and will be used for request cancellation. If
  2095  // the context is nil a panic will occur. In the future the SDK may create
  2096  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2097  // for more information on using Contexts.
  2098  func (c *TranscribeService) ListCallAnalyticsCategoriesWithContext(ctx aws.Context, input *ListCallAnalyticsCategoriesInput, opts ...request.Option) (*ListCallAnalyticsCategoriesOutput, error) {
  2099  	req, out := c.ListCallAnalyticsCategoriesRequest(input)
  2100  	req.SetContext(ctx)
  2101  	req.ApplyOptions(opts...)
  2102  	return out, req.Send()
  2103  }
  2104  
  2105  // ListCallAnalyticsCategoriesPages iterates over the pages of a ListCallAnalyticsCategories operation,
  2106  // calling the "fn" function with the response data for each page. To stop
  2107  // iterating, return false from the fn function.
  2108  //
  2109  // See ListCallAnalyticsCategories method for more information on how to use this operation.
  2110  //
  2111  // Note: This operation can generate multiple requests to a service.
  2112  //
  2113  //    // Example iterating over at most 3 pages of a ListCallAnalyticsCategories operation.
  2114  //    pageNum := 0
  2115  //    err := client.ListCallAnalyticsCategoriesPages(params,
  2116  //        func(page *transcribeservice.ListCallAnalyticsCategoriesOutput, lastPage bool) bool {
  2117  //            pageNum++
  2118  //            fmt.Println(page)
  2119  //            return pageNum <= 3
  2120  //        })
  2121  //
  2122  func (c *TranscribeService) ListCallAnalyticsCategoriesPages(input *ListCallAnalyticsCategoriesInput, fn func(*ListCallAnalyticsCategoriesOutput, bool) bool) error {
  2123  	return c.ListCallAnalyticsCategoriesPagesWithContext(aws.BackgroundContext(), input, fn)
  2124  }
  2125  
  2126  // ListCallAnalyticsCategoriesPagesWithContext same as ListCallAnalyticsCategoriesPages except
  2127  // it takes a Context and allows setting request options on the pages.
  2128  //
  2129  // The context must be non-nil and will be used for request cancellation. If
  2130  // the context is nil a panic will occur. In the future the SDK may create
  2131  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2132  // for more information on using Contexts.
  2133  func (c *TranscribeService) ListCallAnalyticsCategoriesPagesWithContext(ctx aws.Context, input *ListCallAnalyticsCategoriesInput, fn func(*ListCallAnalyticsCategoriesOutput, bool) bool, opts ...request.Option) error {
  2134  	p := request.Pagination{
  2135  		NewRequest: func() (*request.Request, error) {
  2136  			var inCpy *ListCallAnalyticsCategoriesInput
  2137  			if input != nil {
  2138  				tmp := *input
  2139  				inCpy = &tmp
  2140  			}
  2141  			req, _ := c.ListCallAnalyticsCategoriesRequest(inCpy)
  2142  			req.SetContext(ctx)
  2143  			req.ApplyOptions(opts...)
  2144  			return req, nil
  2145  		},
  2146  	}
  2147  
  2148  	for p.Next() {
  2149  		if !fn(p.Page().(*ListCallAnalyticsCategoriesOutput), !p.HasNextPage()) {
  2150  			break
  2151  		}
  2152  	}
  2153  
  2154  	return p.Err()
  2155  }
  2156  
  2157  const opListCallAnalyticsJobs = "ListCallAnalyticsJobs"
  2158  
  2159  // ListCallAnalyticsJobsRequest generates a "aws/request.Request" representing the
  2160  // client's request for the ListCallAnalyticsJobs operation. The "output" return
  2161  // value will be populated with the request's response once the request completes
  2162  // successfully.
  2163  //
  2164  // Use "Send" method on the returned Request to send the API call to the service.
  2165  // the "output" return value is not valid until after Send returns without error.
  2166  //
  2167  // See ListCallAnalyticsJobs for more information on using the ListCallAnalyticsJobs
  2168  // API call, and error handling.
  2169  //
  2170  // This method is useful when you want to inject custom logic or configuration
  2171  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2172  //
  2173  //
  2174  //    // Example sending a request using the ListCallAnalyticsJobsRequest method.
  2175  //    req, resp := client.ListCallAnalyticsJobsRequest(params)
  2176  //
  2177  //    err := req.Send()
  2178  //    if err == nil { // resp is now filled
  2179  //        fmt.Println(resp)
  2180  //    }
  2181  //
  2182  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListCallAnalyticsJobs
  2183  func (c *TranscribeService) ListCallAnalyticsJobsRequest(input *ListCallAnalyticsJobsInput) (req *request.Request, output *ListCallAnalyticsJobsOutput) {
  2184  	op := &request.Operation{
  2185  		Name:       opListCallAnalyticsJobs,
  2186  		HTTPMethod: "POST",
  2187  		HTTPPath:   "/",
  2188  		Paginator: &request.Paginator{
  2189  			InputTokens:     []string{"NextToken"},
  2190  			OutputTokens:    []string{"NextToken"},
  2191  			LimitToken:      "MaxResults",
  2192  			TruncationToken: "",
  2193  		},
  2194  	}
  2195  
  2196  	if input == nil {
  2197  		input = &ListCallAnalyticsJobsInput{}
  2198  	}
  2199  
  2200  	output = &ListCallAnalyticsJobsOutput{}
  2201  	req = c.newRequest(op, input, output)
  2202  	return
  2203  }
  2204  
  2205  // ListCallAnalyticsJobs API operation for Amazon Transcribe Service.
  2206  //
  2207  // List call analytics jobs with a specified status or substring that matches
  2208  // their names.
  2209  //
  2210  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2211  // with awserr.Error's Code and Message methods to get detailed information about
  2212  // the error.
  2213  //
  2214  // See the AWS API reference guide for Amazon Transcribe Service's
  2215  // API operation ListCallAnalyticsJobs for usage and error information.
  2216  //
  2217  // Returned Error Types:
  2218  //   * BadRequestException
  2219  //   Your request didn't pass one or more validation tests. For example, if the
  2220  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2221  //   state (for example, it's "in progress"). See the exception Message field
  2222  //   for more information.
  2223  //
  2224  //   * LimitExceededException
  2225  //   Either you have sent too many requests or your input file is too long. Wait
  2226  //   before you resend your request, or use a smaller file and resend the request.
  2227  //
  2228  //   * InternalFailureException
  2229  //   There was an internal error. Check the error message and try your request
  2230  //   again.
  2231  //
  2232  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListCallAnalyticsJobs
  2233  func (c *TranscribeService) ListCallAnalyticsJobs(input *ListCallAnalyticsJobsInput) (*ListCallAnalyticsJobsOutput, error) {
  2234  	req, out := c.ListCallAnalyticsJobsRequest(input)
  2235  	return out, req.Send()
  2236  }
  2237  
  2238  // ListCallAnalyticsJobsWithContext is the same as ListCallAnalyticsJobs with the addition of
  2239  // the ability to pass a context and additional request options.
  2240  //
  2241  // See ListCallAnalyticsJobs for details on how to use this API operation.
  2242  //
  2243  // The context must be non-nil and will be used for request cancellation. If
  2244  // the context is nil a panic will occur. In the future the SDK may create
  2245  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2246  // for more information on using Contexts.
  2247  func (c *TranscribeService) ListCallAnalyticsJobsWithContext(ctx aws.Context, input *ListCallAnalyticsJobsInput, opts ...request.Option) (*ListCallAnalyticsJobsOutput, error) {
  2248  	req, out := c.ListCallAnalyticsJobsRequest(input)
  2249  	req.SetContext(ctx)
  2250  	req.ApplyOptions(opts...)
  2251  	return out, req.Send()
  2252  }
  2253  
  2254  // ListCallAnalyticsJobsPages iterates over the pages of a ListCallAnalyticsJobs operation,
  2255  // calling the "fn" function with the response data for each page. To stop
  2256  // iterating, return false from the fn function.
  2257  //
  2258  // See ListCallAnalyticsJobs method for more information on how to use this operation.
  2259  //
  2260  // Note: This operation can generate multiple requests to a service.
  2261  //
  2262  //    // Example iterating over at most 3 pages of a ListCallAnalyticsJobs operation.
  2263  //    pageNum := 0
  2264  //    err := client.ListCallAnalyticsJobsPages(params,
  2265  //        func(page *transcribeservice.ListCallAnalyticsJobsOutput, lastPage bool) bool {
  2266  //            pageNum++
  2267  //            fmt.Println(page)
  2268  //            return pageNum <= 3
  2269  //        })
  2270  //
  2271  func (c *TranscribeService) ListCallAnalyticsJobsPages(input *ListCallAnalyticsJobsInput, fn func(*ListCallAnalyticsJobsOutput, bool) bool) error {
  2272  	return c.ListCallAnalyticsJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  2273  }
  2274  
  2275  // ListCallAnalyticsJobsPagesWithContext same as ListCallAnalyticsJobsPages except
  2276  // it takes a Context and allows setting request options on the pages.
  2277  //
  2278  // The context must be non-nil and will be used for request cancellation. If
  2279  // the context is nil a panic will occur. In the future the SDK may create
  2280  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2281  // for more information on using Contexts.
  2282  func (c *TranscribeService) ListCallAnalyticsJobsPagesWithContext(ctx aws.Context, input *ListCallAnalyticsJobsInput, fn func(*ListCallAnalyticsJobsOutput, bool) bool, opts ...request.Option) error {
  2283  	p := request.Pagination{
  2284  		NewRequest: func() (*request.Request, error) {
  2285  			var inCpy *ListCallAnalyticsJobsInput
  2286  			if input != nil {
  2287  				tmp := *input
  2288  				inCpy = &tmp
  2289  			}
  2290  			req, _ := c.ListCallAnalyticsJobsRequest(inCpy)
  2291  			req.SetContext(ctx)
  2292  			req.ApplyOptions(opts...)
  2293  			return req, nil
  2294  		},
  2295  	}
  2296  
  2297  	for p.Next() {
  2298  		if !fn(p.Page().(*ListCallAnalyticsJobsOutput), !p.HasNextPage()) {
  2299  			break
  2300  		}
  2301  	}
  2302  
  2303  	return p.Err()
  2304  }
  2305  
  2306  const opListLanguageModels = "ListLanguageModels"
  2307  
  2308  // ListLanguageModelsRequest generates a "aws/request.Request" representing the
  2309  // client's request for the ListLanguageModels operation. The "output" return
  2310  // value will be populated with the request's response once the request completes
  2311  // successfully.
  2312  //
  2313  // Use "Send" method on the returned Request to send the API call to the service.
  2314  // the "output" return value is not valid until after Send returns without error.
  2315  //
  2316  // See ListLanguageModels for more information on using the ListLanguageModels
  2317  // API call, and error handling.
  2318  //
  2319  // This method is useful when you want to inject custom logic or configuration
  2320  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2321  //
  2322  //
  2323  //    // Example sending a request using the ListLanguageModelsRequest method.
  2324  //    req, resp := client.ListLanguageModelsRequest(params)
  2325  //
  2326  //    err := req.Send()
  2327  //    if err == nil { // resp is now filled
  2328  //        fmt.Println(resp)
  2329  //    }
  2330  //
  2331  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModels
  2332  func (c *TranscribeService) ListLanguageModelsRequest(input *ListLanguageModelsInput) (req *request.Request, output *ListLanguageModelsOutput) {
  2333  	op := &request.Operation{
  2334  		Name:       opListLanguageModels,
  2335  		HTTPMethod: "POST",
  2336  		HTTPPath:   "/",
  2337  		Paginator: &request.Paginator{
  2338  			InputTokens:     []string{"NextToken"},
  2339  			OutputTokens:    []string{"NextToken"},
  2340  			LimitToken:      "MaxResults",
  2341  			TruncationToken: "",
  2342  		},
  2343  	}
  2344  
  2345  	if input == nil {
  2346  		input = &ListLanguageModelsInput{}
  2347  	}
  2348  
  2349  	output = &ListLanguageModelsOutput{}
  2350  	req = c.newRequest(op, input, output)
  2351  	return
  2352  }
  2353  
  2354  // ListLanguageModels API operation for Amazon Transcribe Service.
  2355  //
  2356  // Provides more information about the custom language models you've created.
  2357  // You can use the information in this list to find a specific custom language
  2358  // model. You can then use the operation to get more information about it.
  2359  //
  2360  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2361  // with awserr.Error's Code and Message methods to get detailed information about
  2362  // the error.
  2363  //
  2364  // See the AWS API reference guide for Amazon Transcribe Service's
  2365  // API operation ListLanguageModels for usage and error information.
  2366  //
  2367  // Returned Error Types:
  2368  //   * BadRequestException
  2369  //   Your request didn't pass one or more validation tests. For example, if the
  2370  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2371  //   state (for example, it's "in progress"). See the exception Message field
  2372  //   for more information.
  2373  //
  2374  //   * LimitExceededException
  2375  //   Either you have sent too many requests or your input file is too long. Wait
  2376  //   before you resend your request, or use a smaller file and resend the request.
  2377  //
  2378  //   * InternalFailureException
  2379  //   There was an internal error. Check the error message and try your request
  2380  //   again.
  2381  //
  2382  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModels
  2383  func (c *TranscribeService) ListLanguageModels(input *ListLanguageModelsInput) (*ListLanguageModelsOutput, error) {
  2384  	req, out := c.ListLanguageModelsRequest(input)
  2385  	return out, req.Send()
  2386  }
  2387  
  2388  // ListLanguageModelsWithContext is the same as ListLanguageModels with the addition of
  2389  // the ability to pass a context and additional request options.
  2390  //
  2391  // See ListLanguageModels for details on how to use this API operation.
  2392  //
  2393  // The context must be non-nil and will be used for request cancellation. If
  2394  // the context is nil a panic will occur. In the future the SDK may create
  2395  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2396  // for more information on using Contexts.
  2397  func (c *TranscribeService) ListLanguageModelsWithContext(ctx aws.Context, input *ListLanguageModelsInput, opts ...request.Option) (*ListLanguageModelsOutput, error) {
  2398  	req, out := c.ListLanguageModelsRequest(input)
  2399  	req.SetContext(ctx)
  2400  	req.ApplyOptions(opts...)
  2401  	return out, req.Send()
  2402  }
  2403  
  2404  // ListLanguageModelsPages iterates over the pages of a ListLanguageModels operation,
  2405  // calling the "fn" function with the response data for each page. To stop
  2406  // iterating, return false from the fn function.
  2407  //
  2408  // See ListLanguageModels method for more information on how to use this operation.
  2409  //
  2410  // Note: This operation can generate multiple requests to a service.
  2411  //
  2412  //    // Example iterating over at most 3 pages of a ListLanguageModels operation.
  2413  //    pageNum := 0
  2414  //    err := client.ListLanguageModelsPages(params,
  2415  //        func(page *transcribeservice.ListLanguageModelsOutput, lastPage bool) bool {
  2416  //            pageNum++
  2417  //            fmt.Println(page)
  2418  //            return pageNum <= 3
  2419  //        })
  2420  //
  2421  func (c *TranscribeService) ListLanguageModelsPages(input *ListLanguageModelsInput, fn func(*ListLanguageModelsOutput, bool) bool) error {
  2422  	return c.ListLanguageModelsPagesWithContext(aws.BackgroundContext(), input, fn)
  2423  }
  2424  
  2425  // ListLanguageModelsPagesWithContext same as ListLanguageModelsPages except
  2426  // it takes a Context and allows setting request options on the pages.
  2427  //
  2428  // The context must be non-nil and will be used for request cancellation. If
  2429  // the context is nil a panic will occur. In the future the SDK may create
  2430  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2431  // for more information on using Contexts.
  2432  func (c *TranscribeService) ListLanguageModelsPagesWithContext(ctx aws.Context, input *ListLanguageModelsInput, fn func(*ListLanguageModelsOutput, bool) bool, opts ...request.Option) error {
  2433  	p := request.Pagination{
  2434  		NewRequest: func() (*request.Request, error) {
  2435  			var inCpy *ListLanguageModelsInput
  2436  			if input != nil {
  2437  				tmp := *input
  2438  				inCpy = &tmp
  2439  			}
  2440  			req, _ := c.ListLanguageModelsRequest(inCpy)
  2441  			req.SetContext(ctx)
  2442  			req.ApplyOptions(opts...)
  2443  			return req, nil
  2444  		},
  2445  	}
  2446  
  2447  	for p.Next() {
  2448  		if !fn(p.Page().(*ListLanguageModelsOutput), !p.HasNextPage()) {
  2449  			break
  2450  		}
  2451  	}
  2452  
  2453  	return p.Err()
  2454  }
  2455  
  2456  const opListMedicalTranscriptionJobs = "ListMedicalTranscriptionJobs"
  2457  
  2458  // ListMedicalTranscriptionJobsRequest generates a "aws/request.Request" representing the
  2459  // client's request for the ListMedicalTranscriptionJobs operation. The "output" return
  2460  // value will be populated with the request's response once the request completes
  2461  // successfully.
  2462  //
  2463  // Use "Send" method on the returned Request to send the API call to the service.
  2464  // the "output" return value is not valid until after Send returns without error.
  2465  //
  2466  // See ListMedicalTranscriptionJobs for more information on using the ListMedicalTranscriptionJobs
  2467  // API call, and error handling.
  2468  //
  2469  // This method is useful when you want to inject custom logic or configuration
  2470  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2471  //
  2472  //
  2473  //    // Example sending a request using the ListMedicalTranscriptionJobsRequest method.
  2474  //    req, resp := client.ListMedicalTranscriptionJobsRequest(params)
  2475  //
  2476  //    err := req.Send()
  2477  //    if err == nil { // resp is now filled
  2478  //        fmt.Println(resp)
  2479  //    }
  2480  //
  2481  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalTranscriptionJobs
  2482  func (c *TranscribeService) ListMedicalTranscriptionJobsRequest(input *ListMedicalTranscriptionJobsInput) (req *request.Request, output *ListMedicalTranscriptionJobsOutput) {
  2483  	op := &request.Operation{
  2484  		Name:       opListMedicalTranscriptionJobs,
  2485  		HTTPMethod: "POST",
  2486  		HTTPPath:   "/",
  2487  		Paginator: &request.Paginator{
  2488  			InputTokens:     []string{"NextToken"},
  2489  			OutputTokens:    []string{"NextToken"},
  2490  			LimitToken:      "MaxResults",
  2491  			TruncationToken: "",
  2492  		},
  2493  	}
  2494  
  2495  	if input == nil {
  2496  		input = &ListMedicalTranscriptionJobsInput{}
  2497  	}
  2498  
  2499  	output = &ListMedicalTranscriptionJobsOutput{}
  2500  	req = c.newRequest(op, input, output)
  2501  	return
  2502  }
  2503  
  2504  // ListMedicalTranscriptionJobs API operation for Amazon Transcribe Service.
  2505  //
  2506  // Lists medical transcription jobs with a specified status or substring that
  2507  // matches their names.
  2508  //
  2509  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2510  // with awserr.Error's Code and Message methods to get detailed information about
  2511  // the error.
  2512  //
  2513  // See the AWS API reference guide for Amazon Transcribe Service's
  2514  // API operation ListMedicalTranscriptionJobs for usage and error information.
  2515  //
  2516  // Returned Error Types:
  2517  //   * BadRequestException
  2518  //   Your request didn't pass one or more validation tests. For example, if the
  2519  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2520  //   state (for example, it's "in progress"). See the exception Message field
  2521  //   for more information.
  2522  //
  2523  //   * LimitExceededException
  2524  //   Either you have sent too many requests or your input file is too long. Wait
  2525  //   before you resend your request, or use a smaller file and resend the request.
  2526  //
  2527  //   * InternalFailureException
  2528  //   There was an internal error. Check the error message and try your request
  2529  //   again.
  2530  //
  2531  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalTranscriptionJobs
  2532  func (c *TranscribeService) ListMedicalTranscriptionJobs(input *ListMedicalTranscriptionJobsInput) (*ListMedicalTranscriptionJobsOutput, error) {
  2533  	req, out := c.ListMedicalTranscriptionJobsRequest(input)
  2534  	return out, req.Send()
  2535  }
  2536  
  2537  // ListMedicalTranscriptionJobsWithContext is the same as ListMedicalTranscriptionJobs with the addition of
  2538  // the ability to pass a context and additional request options.
  2539  //
  2540  // See ListMedicalTranscriptionJobs for details on how to use this API operation.
  2541  //
  2542  // The context must be non-nil and will be used for request cancellation. If
  2543  // the context is nil a panic will occur. In the future the SDK may create
  2544  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2545  // for more information on using Contexts.
  2546  func (c *TranscribeService) ListMedicalTranscriptionJobsWithContext(ctx aws.Context, input *ListMedicalTranscriptionJobsInput, opts ...request.Option) (*ListMedicalTranscriptionJobsOutput, error) {
  2547  	req, out := c.ListMedicalTranscriptionJobsRequest(input)
  2548  	req.SetContext(ctx)
  2549  	req.ApplyOptions(opts...)
  2550  	return out, req.Send()
  2551  }
  2552  
  2553  // ListMedicalTranscriptionJobsPages iterates over the pages of a ListMedicalTranscriptionJobs operation,
  2554  // calling the "fn" function with the response data for each page. To stop
  2555  // iterating, return false from the fn function.
  2556  //
  2557  // See ListMedicalTranscriptionJobs method for more information on how to use this operation.
  2558  //
  2559  // Note: This operation can generate multiple requests to a service.
  2560  //
  2561  //    // Example iterating over at most 3 pages of a ListMedicalTranscriptionJobs operation.
  2562  //    pageNum := 0
  2563  //    err := client.ListMedicalTranscriptionJobsPages(params,
  2564  //        func(page *transcribeservice.ListMedicalTranscriptionJobsOutput, lastPage bool) bool {
  2565  //            pageNum++
  2566  //            fmt.Println(page)
  2567  //            return pageNum <= 3
  2568  //        })
  2569  //
  2570  func (c *TranscribeService) ListMedicalTranscriptionJobsPages(input *ListMedicalTranscriptionJobsInput, fn func(*ListMedicalTranscriptionJobsOutput, bool) bool) error {
  2571  	return c.ListMedicalTranscriptionJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  2572  }
  2573  
  2574  // ListMedicalTranscriptionJobsPagesWithContext same as ListMedicalTranscriptionJobsPages except
  2575  // it takes a Context and allows setting request options on the pages.
  2576  //
  2577  // The context must be non-nil and will be used for request cancellation. If
  2578  // the context is nil a panic will occur. In the future the SDK may create
  2579  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2580  // for more information on using Contexts.
  2581  func (c *TranscribeService) ListMedicalTranscriptionJobsPagesWithContext(ctx aws.Context, input *ListMedicalTranscriptionJobsInput, fn func(*ListMedicalTranscriptionJobsOutput, bool) bool, opts ...request.Option) error {
  2582  	p := request.Pagination{
  2583  		NewRequest: func() (*request.Request, error) {
  2584  			var inCpy *ListMedicalTranscriptionJobsInput
  2585  			if input != nil {
  2586  				tmp := *input
  2587  				inCpy = &tmp
  2588  			}
  2589  			req, _ := c.ListMedicalTranscriptionJobsRequest(inCpy)
  2590  			req.SetContext(ctx)
  2591  			req.ApplyOptions(opts...)
  2592  			return req, nil
  2593  		},
  2594  	}
  2595  
  2596  	for p.Next() {
  2597  		if !fn(p.Page().(*ListMedicalTranscriptionJobsOutput), !p.HasNextPage()) {
  2598  			break
  2599  		}
  2600  	}
  2601  
  2602  	return p.Err()
  2603  }
  2604  
  2605  const opListMedicalVocabularies = "ListMedicalVocabularies"
  2606  
  2607  // ListMedicalVocabulariesRequest generates a "aws/request.Request" representing the
  2608  // client's request for the ListMedicalVocabularies operation. The "output" return
  2609  // value will be populated with the request's response once the request completes
  2610  // successfully.
  2611  //
  2612  // Use "Send" method on the returned Request to send the API call to the service.
  2613  // the "output" return value is not valid until after Send returns without error.
  2614  //
  2615  // See ListMedicalVocabularies for more information on using the ListMedicalVocabularies
  2616  // API call, and error handling.
  2617  //
  2618  // This method is useful when you want to inject custom logic or configuration
  2619  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2620  //
  2621  //
  2622  //    // Example sending a request using the ListMedicalVocabulariesRequest method.
  2623  //    req, resp := client.ListMedicalVocabulariesRequest(params)
  2624  //
  2625  //    err := req.Send()
  2626  //    if err == nil { // resp is now filled
  2627  //        fmt.Println(resp)
  2628  //    }
  2629  //
  2630  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabularies
  2631  func (c *TranscribeService) ListMedicalVocabulariesRequest(input *ListMedicalVocabulariesInput) (req *request.Request, output *ListMedicalVocabulariesOutput) {
  2632  	op := &request.Operation{
  2633  		Name:       opListMedicalVocabularies,
  2634  		HTTPMethod: "POST",
  2635  		HTTPPath:   "/",
  2636  		Paginator: &request.Paginator{
  2637  			InputTokens:     []string{"NextToken"},
  2638  			OutputTokens:    []string{"NextToken"},
  2639  			LimitToken:      "MaxResults",
  2640  			TruncationToken: "",
  2641  		},
  2642  	}
  2643  
  2644  	if input == nil {
  2645  		input = &ListMedicalVocabulariesInput{}
  2646  	}
  2647  
  2648  	output = &ListMedicalVocabulariesOutput{}
  2649  	req = c.newRequest(op, input, output)
  2650  	return
  2651  }
  2652  
  2653  // ListMedicalVocabularies API operation for Amazon Transcribe Service.
  2654  //
  2655  // Returns a list of vocabularies that match the specified criteria. If you
  2656  // don't enter a value in any of the request parameters, returns the entire
  2657  // list of vocabularies.
  2658  //
  2659  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2660  // with awserr.Error's Code and Message methods to get detailed information about
  2661  // the error.
  2662  //
  2663  // See the AWS API reference guide for Amazon Transcribe Service's
  2664  // API operation ListMedicalVocabularies for usage and error information.
  2665  //
  2666  // Returned Error Types:
  2667  //   * BadRequestException
  2668  //   Your request didn't pass one or more validation tests. For example, if the
  2669  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2670  //   state (for example, it's "in progress"). See the exception Message field
  2671  //   for more information.
  2672  //
  2673  //   * LimitExceededException
  2674  //   Either you have sent too many requests or your input file is too long. Wait
  2675  //   before you resend your request, or use a smaller file and resend the request.
  2676  //
  2677  //   * InternalFailureException
  2678  //   There was an internal error. Check the error message and try your request
  2679  //   again.
  2680  //
  2681  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabularies
  2682  func (c *TranscribeService) ListMedicalVocabularies(input *ListMedicalVocabulariesInput) (*ListMedicalVocabulariesOutput, error) {
  2683  	req, out := c.ListMedicalVocabulariesRequest(input)
  2684  	return out, req.Send()
  2685  }
  2686  
  2687  // ListMedicalVocabulariesWithContext is the same as ListMedicalVocabularies with the addition of
  2688  // the ability to pass a context and additional request options.
  2689  //
  2690  // See ListMedicalVocabularies for details on how to use this API operation.
  2691  //
  2692  // The context must be non-nil and will be used for request cancellation. If
  2693  // the context is nil a panic will occur. In the future the SDK may create
  2694  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2695  // for more information on using Contexts.
  2696  func (c *TranscribeService) ListMedicalVocabulariesWithContext(ctx aws.Context, input *ListMedicalVocabulariesInput, opts ...request.Option) (*ListMedicalVocabulariesOutput, error) {
  2697  	req, out := c.ListMedicalVocabulariesRequest(input)
  2698  	req.SetContext(ctx)
  2699  	req.ApplyOptions(opts...)
  2700  	return out, req.Send()
  2701  }
  2702  
  2703  // ListMedicalVocabulariesPages iterates over the pages of a ListMedicalVocabularies operation,
  2704  // calling the "fn" function with the response data for each page. To stop
  2705  // iterating, return false from the fn function.
  2706  //
  2707  // See ListMedicalVocabularies method for more information on how to use this operation.
  2708  //
  2709  // Note: This operation can generate multiple requests to a service.
  2710  //
  2711  //    // Example iterating over at most 3 pages of a ListMedicalVocabularies operation.
  2712  //    pageNum := 0
  2713  //    err := client.ListMedicalVocabulariesPages(params,
  2714  //        func(page *transcribeservice.ListMedicalVocabulariesOutput, lastPage bool) bool {
  2715  //            pageNum++
  2716  //            fmt.Println(page)
  2717  //            return pageNum <= 3
  2718  //        })
  2719  //
  2720  func (c *TranscribeService) ListMedicalVocabulariesPages(input *ListMedicalVocabulariesInput, fn func(*ListMedicalVocabulariesOutput, bool) bool) error {
  2721  	return c.ListMedicalVocabulariesPagesWithContext(aws.BackgroundContext(), input, fn)
  2722  }
  2723  
  2724  // ListMedicalVocabulariesPagesWithContext same as ListMedicalVocabulariesPages except
  2725  // it takes a Context and allows setting request options on the pages.
  2726  //
  2727  // The context must be non-nil and will be used for request cancellation. If
  2728  // the context is nil a panic will occur. In the future the SDK may create
  2729  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2730  // for more information on using Contexts.
  2731  func (c *TranscribeService) ListMedicalVocabulariesPagesWithContext(ctx aws.Context, input *ListMedicalVocabulariesInput, fn func(*ListMedicalVocabulariesOutput, bool) bool, opts ...request.Option) error {
  2732  	p := request.Pagination{
  2733  		NewRequest: func() (*request.Request, error) {
  2734  			var inCpy *ListMedicalVocabulariesInput
  2735  			if input != nil {
  2736  				tmp := *input
  2737  				inCpy = &tmp
  2738  			}
  2739  			req, _ := c.ListMedicalVocabulariesRequest(inCpy)
  2740  			req.SetContext(ctx)
  2741  			req.ApplyOptions(opts...)
  2742  			return req, nil
  2743  		},
  2744  	}
  2745  
  2746  	for p.Next() {
  2747  		if !fn(p.Page().(*ListMedicalVocabulariesOutput), !p.HasNextPage()) {
  2748  			break
  2749  		}
  2750  	}
  2751  
  2752  	return p.Err()
  2753  }
  2754  
  2755  const opListTagsForResource = "ListTagsForResource"
  2756  
  2757  // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  2758  // client's request for the ListTagsForResource operation. The "output" return
  2759  // value will be populated with the request's response once the request completes
  2760  // successfully.
  2761  //
  2762  // Use "Send" method on the returned Request to send the API call to the service.
  2763  // the "output" return value is not valid until after Send returns without error.
  2764  //
  2765  // See ListTagsForResource for more information on using the ListTagsForResource
  2766  // API call, and error handling.
  2767  //
  2768  // This method is useful when you want to inject custom logic or configuration
  2769  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2770  //
  2771  //
  2772  //    // Example sending a request using the ListTagsForResourceRequest method.
  2773  //    req, resp := client.ListTagsForResourceRequest(params)
  2774  //
  2775  //    err := req.Send()
  2776  //    if err == nil { // resp is now filled
  2777  //        fmt.Println(resp)
  2778  //    }
  2779  //
  2780  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTagsForResource
  2781  func (c *TranscribeService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  2782  	op := &request.Operation{
  2783  		Name:       opListTagsForResource,
  2784  		HTTPMethod: "POST",
  2785  		HTTPPath:   "/",
  2786  	}
  2787  
  2788  	if input == nil {
  2789  		input = &ListTagsForResourceInput{}
  2790  	}
  2791  
  2792  	output = &ListTagsForResourceOutput{}
  2793  	req = c.newRequest(op, input, output)
  2794  	return
  2795  }
  2796  
  2797  // ListTagsForResource API operation for Amazon Transcribe Service.
  2798  //
  2799  // Lists all tags associated with a given transcription job, vocabulary, or
  2800  // resource.
  2801  //
  2802  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2803  // with awserr.Error's Code and Message methods to get detailed information about
  2804  // the error.
  2805  //
  2806  // See the AWS API reference guide for Amazon Transcribe Service's
  2807  // API operation ListTagsForResource for usage and error information.
  2808  //
  2809  // Returned Error Types:
  2810  //   * BadRequestException
  2811  //   Your request didn't pass one or more validation tests. For example, if the
  2812  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2813  //   state (for example, it's "in progress"). See the exception Message field
  2814  //   for more information.
  2815  //
  2816  //   * NotFoundException
  2817  //   We can't find the requested resource. Check the name and try your request
  2818  //   again.
  2819  //
  2820  //   * LimitExceededException
  2821  //   Either you have sent too many requests or your input file is too long. Wait
  2822  //   before you resend your request, or use a smaller file and resend the request.
  2823  //
  2824  //   * InternalFailureException
  2825  //   There was an internal error. Check the error message and try your request
  2826  //   again.
  2827  //
  2828  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTagsForResource
  2829  func (c *TranscribeService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  2830  	req, out := c.ListTagsForResourceRequest(input)
  2831  	return out, req.Send()
  2832  }
  2833  
  2834  // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  2835  // the ability to pass a context and additional request options.
  2836  //
  2837  // See ListTagsForResource for details on how to use this API operation.
  2838  //
  2839  // The context must be non-nil and will be used for request cancellation. If
  2840  // the context is nil a panic will occur. In the future the SDK may create
  2841  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2842  // for more information on using Contexts.
  2843  func (c *TranscribeService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  2844  	req, out := c.ListTagsForResourceRequest(input)
  2845  	req.SetContext(ctx)
  2846  	req.ApplyOptions(opts...)
  2847  	return out, req.Send()
  2848  }
  2849  
  2850  const opListTranscriptionJobs = "ListTranscriptionJobs"
  2851  
  2852  // ListTranscriptionJobsRequest generates a "aws/request.Request" representing the
  2853  // client's request for the ListTranscriptionJobs operation. The "output" return
  2854  // value will be populated with the request's response once the request completes
  2855  // successfully.
  2856  //
  2857  // Use "Send" method on the returned Request to send the API call to the service.
  2858  // the "output" return value is not valid until after Send returns without error.
  2859  //
  2860  // See ListTranscriptionJobs for more information on using the ListTranscriptionJobs
  2861  // API call, and error handling.
  2862  //
  2863  // This method is useful when you want to inject custom logic or configuration
  2864  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2865  //
  2866  //
  2867  //    // Example sending a request using the ListTranscriptionJobsRequest method.
  2868  //    req, resp := client.ListTranscriptionJobsRequest(params)
  2869  //
  2870  //    err := req.Send()
  2871  //    if err == nil { // resp is now filled
  2872  //        fmt.Println(resp)
  2873  //    }
  2874  //
  2875  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs
  2876  func (c *TranscribeService) ListTranscriptionJobsRequest(input *ListTranscriptionJobsInput) (req *request.Request, output *ListTranscriptionJobsOutput) {
  2877  	op := &request.Operation{
  2878  		Name:       opListTranscriptionJobs,
  2879  		HTTPMethod: "POST",
  2880  		HTTPPath:   "/",
  2881  		Paginator: &request.Paginator{
  2882  			InputTokens:     []string{"NextToken"},
  2883  			OutputTokens:    []string{"NextToken"},
  2884  			LimitToken:      "MaxResults",
  2885  			TruncationToken: "",
  2886  		},
  2887  	}
  2888  
  2889  	if input == nil {
  2890  		input = &ListTranscriptionJobsInput{}
  2891  	}
  2892  
  2893  	output = &ListTranscriptionJobsOutput{}
  2894  	req = c.newRequest(op, input, output)
  2895  	return
  2896  }
  2897  
  2898  // ListTranscriptionJobs API operation for Amazon Transcribe Service.
  2899  //
  2900  // Lists transcription jobs with the specified status.
  2901  //
  2902  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2903  // with awserr.Error's Code and Message methods to get detailed information about
  2904  // the error.
  2905  //
  2906  // See the AWS API reference guide for Amazon Transcribe Service's
  2907  // API operation ListTranscriptionJobs for usage and error information.
  2908  //
  2909  // Returned Error Types:
  2910  //   * BadRequestException
  2911  //   Your request didn't pass one or more validation tests. For example, if the
  2912  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  2913  //   state (for example, it's "in progress"). See the exception Message field
  2914  //   for more information.
  2915  //
  2916  //   * LimitExceededException
  2917  //   Either you have sent too many requests or your input file is too long. Wait
  2918  //   before you resend your request, or use a smaller file and resend the request.
  2919  //
  2920  //   * InternalFailureException
  2921  //   There was an internal error. Check the error message and try your request
  2922  //   again.
  2923  //
  2924  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs
  2925  func (c *TranscribeService) ListTranscriptionJobs(input *ListTranscriptionJobsInput) (*ListTranscriptionJobsOutput, error) {
  2926  	req, out := c.ListTranscriptionJobsRequest(input)
  2927  	return out, req.Send()
  2928  }
  2929  
  2930  // ListTranscriptionJobsWithContext is the same as ListTranscriptionJobs with the addition of
  2931  // the ability to pass a context and additional request options.
  2932  //
  2933  // See ListTranscriptionJobs for details on how to use this API operation.
  2934  //
  2935  // The context must be non-nil and will be used for request cancellation. If
  2936  // the context is nil a panic will occur. In the future the SDK may create
  2937  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2938  // for more information on using Contexts.
  2939  func (c *TranscribeService) ListTranscriptionJobsWithContext(ctx aws.Context, input *ListTranscriptionJobsInput, opts ...request.Option) (*ListTranscriptionJobsOutput, error) {
  2940  	req, out := c.ListTranscriptionJobsRequest(input)
  2941  	req.SetContext(ctx)
  2942  	req.ApplyOptions(opts...)
  2943  	return out, req.Send()
  2944  }
  2945  
  2946  // ListTranscriptionJobsPages iterates over the pages of a ListTranscriptionJobs operation,
  2947  // calling the "fn" function with the response data for each page. To stop
  2948  // iterating, return false from the fn function.
  2949  //
  2950  // See ListTranscriptionJobs method for more information on how to use this operation.
  2951  //
  2952  // Note: This operation can generate multiple requests to a service.
  2953  //
  2954  //    // Example iterating over at most 3 pages of a ListTranscriptionJobs operation.
  2955  //    pageNum := 0
  2956  //    err := client.ListTranscriptionJobsPages(params,
  2957  //        func(page *transcribeservice.ListTranscriptionJobsOutput, lastPage bool) bool {
  2958  //            pageNum++
  2959  //            fmt.Println(page)
  2960  //            return pageNum <= 3
  2961  //        })
  2962  //
  2963  func (c *TranscribeService) ListTranscriptionJobsPages(input *ListTranscriptionJobsInput, fn func(*ListTranscriptionJobsOutput, bool) bool) error {
  2964  	return c.ListTranscriptionJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  2965  }
  2966  
  2967  // ListTranscriptionJobsPagesWithContext same as ListTranscriptionJobsPages except
  2968  // it takes a Context and allows setting request options on the pages.
  2969  //
  2970  // The context must be non-nil and will be used for request cancellation. If
  2971  // the context is nil a panic will occur. In the future the SDK may create
  2972  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2973  // for more information on using Contexts.
  2974  func (c *TranscribeService) ListTranscriptionJobsPagesWithContext(ctx aws.Context, input *ListTranscriptionJobsInput, fn func(*ListTranscriptionJobsOutput, bool) bool, opts ...request.Option) error {
  2975  	p := request.Pagination{
  2976  		NewRequest: func() (*request.Request, error) {
  2977  			var inCpy *ListTranscriptionJobsInput
  2978  			if input != nil {
  2979  				tmp := *input
  2980  				inCpy = &tmp
  2981  			}
  2982  			req, _ := c.ListTranscriptionJobsRequest(inCpy)
  2983  			req.SetContext(ctx)
  2984  			req.ApplyOptions(opts...)
  2985  			return req, nil
  2986  		},
  2987  	}
  2988  
  2989  	for p.Next() {
  2990  		if !fn(p.Page().(*ListTranscriptionJobsOutput), !p.HasNextPage()) {
  2991  			break
  2992  		}
  2993  	}
  2994  
  2995  	return p.Err()
  2996  }
  2997  
  2998  const opListVocabularies = "ListVocabularies"
  2999  
  3000  // ListVocabulariesRequest generates a "aws/request.Request" representing the
  3001  // client's request for the ListVocabularies operation. The "output" return
  3002  // value will be populated with the request's response once the request completes
  3003  // successfully.
  3004  //
  3005  // Use "Send" method on the returned Request to send the API call to the service.
  3006  // the "output" return value is not valid until after Send returns without error.
  3007  //
  3008  // See ListVocabularies for more information on using the ListVocabularies
  3009  // API call, and error handling.
  3010  //
  3011  // This method is useful when you want to inject custom logic or configuration
  3012  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3013  //
  3014  //
  3015  //    // Example sending a request using the ListVocabulariesRequest method.
  3016  //    req, resp := client.ListVocabulariesRequest(params)
  3017  //
  3018  //    err := req.Send()
  3019  //    if err == nil { // resp is now filled
  3020  //        fmt.Println(resp)
  3021  //    }
  3022  //
  3023  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularies
  3024  func (c *TranscribeService) ListVocabulariesRequest(input *ListVocabulariesInput) (req *request.Request, output *ListVocabulariesOutput) {
  3025  	op := &request.Operation{
  3026  		Name:       opListVocabularies,
  3027  		HTTPMethod: "POST",
  3028  		HTTPPath:   "/",
  3029  		Paginator: &request.Paginator{
  3030  			InputTokens:     []string{"NextToken"},
  3031  			OutputTokens:    []string{"NextToken"},
  3032  			LimitToken:      "MaxResults",
  3033  			TruncationToken: "",
  3034  		},
  3035  	}
  3036  
  3037  	if input == nil {
  3038  		input = &ListVocabulariesInput{}
  3039  	}
  3040  
  3041  	output = &ListVocabulariesOutput{}
  3042  	req = c.newRequest(op, input, output)
  3043  	return
  3044  }
  3045  
  3046  // ListVocabularies API operation for Amazon Transcribe Service.
  3047  //
  3048  // Returns a list of vocabularies that match the specified criteria. If no criteria
  3049  // are specified, returns the entire list of vocabularies.
  3050  //
  3051  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3052  // with awserr.Error's Code and Message methods to get detailed information about
  3053  // the error.
  3054  //
  3055  // See the AWS API reference guide for Amazon Transcribe Service's
  3056  // API operation ListVocabularies for usage and error information.
  3057  //
  3058  // Returned Error Types:
  3059  //   * BadRequestException
  3060  //   Your request didn't pass one or more validation tests. For example, if the
  3061  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3062  //   state (for example, it's "in progress"). See the exception Message field
  3063  //   for more information.
  3064  //
  3065  //   * LimitExceededException
  3066  //   Either you have sent too many requests or your input file is too long. Wait
  3067  //   before you resend your request, or use a smaller file and resend the request.
  3068  //
  3069  //   * InternalFailureException
  3070  //   There was an internal error. Check the error message and try your request
  3071  //   again.
  3072  //
  3073  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularies
  3074  func (c *TranscribeService) ListVocabularies(input *ListVocabulariesInput) (*ListVocabulariesOutput, error) {
  3075  	req, out := c.ListVocabulariesRequest(input)
  3076  	return out, req.Send()
  3077  }
  3078  
  3079  // ListVocabulariesWithContext is the same as ListVocabularies with the addition of
  3080  // the ability to pass a context and additional request options.
  3081  //
  3082  // See ListVocabularies for details on how to use this API operation.
  3083  //
  3084  // The context must be non-nil and will be used for request cancellation. If
  3085  // the context is nil a panic will occur. In the future the SDK may create
  3086  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3087  // for more information on using Contexts.
  3088  func (c *TranscribeService) ListVocabulariesWithContext(ctx aws.Context, input *ListVocabulariesInput, opts ...request.Option) (*ListVocabulariesOutput, error) {
  3089  	req, out := c.ListVocabulariesRequest(input)
  3090  	req.SetContext(ctx)
  3091  	req.ApplyOptions(opts...)
  3092  	return out, req.Send()
  3093  }
  3094  
  3095  // ListVocabulariesPages iterates over the pages of a ListVocabularies operation,
  3096  // calling the "fn" function with the response data for each page. To stop
  3097  // iterating, return false from the fn function.
  3098  //
  3099  // See ListVocabularies method for more information on how to use this operation.
  3100  //
  3101  // Note: This operation can generate multiple requests to a service.
  3102  //
  3103  //    // Example iterating over at most 3 pages of a ListVocabularies operation.
  3104  //    pageNum := 0
  3105  //    err := client.ListVocabulariesPages(params,
  3106  //        func(page *transcribeservice.ListVocabulariesOutput, lastPage bool) bool {
  3107  //            pageNum++
  3108  //            fmt.Println(page)
  3109  //            return pageNum <= 3
  3110  //        })
  3111  //
  3112  func (c *TranscribeService) ListVocabulariesPages(input *ListVocabulariesInput, fn func(*ListVocabulariesOutput, bool) bool) error {
  3113  	return c.ListVocabulariesPagesWithContext(aws.BackgroundContext(), input, fn)
  3114  }
  3115  
  3116  // ListVocabulariesPagesWithContext same as ListVocabulariesPages except
  3117  // it takes a Context and allows setting request options on the pages.
  3118  //
  3119  // The context must be non-nil and will be used for request cancellation. If
  3120  // the context is nil a panic will occur. In the future the SDK may create
  3121  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3122  // for more information on using Contexts.
  3123  func (c *TranscribeService) ListVocabulariesPagesWithContext(ctx aws.Context, input *ListVocabulariesInput, fn func(*ListVocabulariesOutput, bool) bool, opts ...request.Option) error {
  3124  	p := request.Pagination{
  3125  		NewRequest: func() (*request.Request, error) {
  3126  			var inCpy *ListVocabulariesInput
  3127  			if input != nil {
  3128  				tmp := *input
  3129  				inCpy = &tmp
  3130  			}
  3131  			req, _ := c.ListVocabulariesRequest(inCpy)
  3132  			req.SetContext(ctx)
  3133  			req.ApplyOptions(opts...)
  3134  			return req, nil
  3135  		},
  3136  	}
  3137  
  3138  	for p.Next() {
  3139  		if !fn(p.Page().(*ListVocabulariesOutput), !p.HasNextPage()) {
  3140  			break
  3141  		}
  3142  	}
  3143  
  3144  	return p.Err()
  3145  }
  3146  
  3147  const opListVocabularyFilters = "ListVocabularyFilters"
  3148  
  3149  // ListVocabularyFiltersRequest generates a "aws/request.Request" representing the
  3150  // client's request for the ListVocabularyFilters operation. The "output" return
  3151  // value will be populated with the request's response once the request completes
  3152  // successfully.
  3153  //
  3154  // Use "Send" method on the returned Request to send the API call to the service.
  3155  // the "output" return value is not valid until after Send returns without error.
  3156  //
  3157  // See ListVocabularyFilters for more information on using the ListVocabularyFilters
  3158  // API call, and error handling.
  3159  //
  3160  // This method is useful when you want to inject custom logic or configuration
  3161  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3162  //
  3163  //
  3164  //    // Example sending a request using the ListVocabularyFiltersRequest method.
  3165  //    req, resp := client.ListVocabularyFiltersRequest(params)
  3166  //
  3167  //    err := req.Send()
  3168  //    if err == nil { // resp is now filled
  3169  //        fmt.Println(resp)
  3170  //    }
  3171  //
  3172  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters
  3173  func (c *TranscribeService) ListVocabularyFiltersRequest(input *ListVocabularyFiltersInput) (req *request.Request, output *ListVocabularyFiltersOutput) {
  3174  	op := &request.Operation{
  3175  		Name:       opListVocabularyFilters,
  3176  		HTTPMethod: "POST",
  3177  		HTTPPath:   "/",
  3178  		Paginator: &request.Paginator{
  3179  			InputTokens:     []string{"NextToken"},
  3180  			OutputTokens:    []string{"NextToken"},
  3181  			LimitToken:      "MaxResults",
  3182  			TruncationToken: "",
  3183  		},
  3184  	}
  3185  
  3186  	if input == nil {
  3187  		input = &ListVocabularyFiltersInput{}
  3188  	}
  3189  
  3190  	output = &ListVocabularyFiltersOutput{}
  3191  	req = c.newRequest(op, input, output)
  3192  	return
  3193  }
  3194  
  3195  // ListVocabularyFilters API operation for Amazon Transcribe Service.
  3196  //
  3197  // Gets information about vocabulary filters.
  3198  //
  3199  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3200  // with awserr.Error's Code and Message methods to get detailed information about
  3201  // the error.
  3202  //
  3203  // See the AWS API reference guide for Amazon Transcribe Service's
  3204  // API operation ListVocabularyFilters for usage and error information.
  3205  //
  3206  // Returned Error Types:
  3207  //   * BadRequestException
  3208  //   Your request didn't pass one or more validation tests. For example, if the
  3209  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3210  //   state (for example, it's "in progress"). See the exception Message field
  3211  //   for more information.
  3212  //
  3213  //   * LimitExceededException
  3214  //   Either you have sent too many requests or your input file is too long. Wait
  3215  //   before you resend your request, or use a smaller file and resend the request.
  3216  //
  3217  //   * InternalFailureException
  3218  //   There was an internal error. Check the error message and try your request
  3219  //   again.
  3220  //
  3221  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters
  3222  func (c *TranscribeService) ListVocabularyFilters(input *ListVocabularyFiltersInput) (*ListVocabularyFiltersOutput, error) {
  3223  	req, out := c.ListVocabularyFiltersRequest(input)
  3224  	return out, req.Send()
  3225  }
  3226  
  3227  // ListVocabularyFiltersWithContext is the same as ListVocabularyFilters with the addition of
  3228  // the ability to pass a context and additional request options.
  3229  //
  3230  // See ListVocabularyFilters for details on how to use this API operation.
  3231  //
  3232  // The context must be non-nil and will be used for request cancellation. If
  3233  // the context is nil a panic will occur. In the future the SDK may create
  3234  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3235  // for more information on using Contexts.
  3236  func (c *TranscribeService) ListVocabularyFiltersWithContext(ctx aws.Context, input *ListVocabularyFiltersInput, opts ...request.Option) (*ListVocabularyFiltersOutput, error) {
  3237  	req, out := c.ListVocabularyFiltersRequest(input)
  3238  	req.SetContext(ctx)
  3239  	req.ApplyOptions(opts...)
  3240  	return out, req.Send()
  3241  }
  3242  
  3243  // ListVocabularyFiltersPages iterates over the pages of a ListVocabularyFilters operation,
  3244  // calling the "fn" function with the response data for each page. To stop
  3245  // iterating, return false from the fn function.
  3246  //
  3247  // See ListVocabularyFilters method for more information on how to use this operation.
  3248  //
  3249  // Note: This operation can generate multiple requests to a service.
  3250  //
  3251  //    // Example iterating over at most 3 pages of a ListVocabularyFilters operation.
  3252  //    pageNum := 0
  3253  //    err := client.ListVocabularyFiltersPages(params,
  3254  //        func(page *transcribeservice.ListVocabularyFiltersOutput, lastPage bool) bool {
  3255  //            pageNum++
  3256  //            fmt.Println(page)
  3257  //            return pageNum <= 3
  3258  //        })
  3259  //
  3260  func (c *TranscribeService) ListVocabularyFiltersPages(input *ListVocabularyFiltersInput, fn func(*ListVocabularyFiltersOutput, bool) bool) error {
  3261  	return c.ListVocabularyFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
  3262  }
  3263  
  3264  // ListVocabularyFiltersPagesWithContext same as ListVocabularyFiltersPages except
  3265  // it takes a Context and allows setting request options on the pages.
  3266  //
  3267  // The context must be non-nil and will be used for request cancellation. If
  3268  // the context is nil a panic will occur. In the future the SDK may create
  3269  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3270  // for more information on using Contexts.
  3271  func (c *TranscribeService) ListVocabularyFiltersPagesWithContext(ctx aws.Context, input *ListVocabularyFiltersInput, fn func(*ListVocabularyFiltersOutput, bool) bool, opts ...request.Option) error {
  3272  	p := request.Pagination{
  3273  		NewRequest: func() (*request.Request, error) {
  3274  			var inCpy *ListVocabularyFiltersInput
  3275  			if input != nil {
  3276  				tmp := *input
  3277  				inCpy = &tmp
  3278  			}
  3279  			req, _ := c.ListVocabularyFiltersRequest(inCpy)
  3280  			req.SetContext(ctx)
  3281  			req.ApplyOptions(opts...)
  3282  			return req, nil
  3283  		},
  3284  	}
  3285  
  3286  	for p.Next() {
  3287  		if !fn(p.Page().(*ListVocabularyFiltersOutput), !p.HasNextPage()) {
  3288  			break
  3289  		}
  3290  	}
  3291  
  3292  	return p.Err()
  3293  }
  3294  
  3295  const opStartCallAnalyticsJob = "StartCallAnalyticsJob"
  3296  
  3297  // StartCallAnalyticsJobRequest generates a "aws/request.Request" representing the
  3298  // client's request for the StartCallAnalyticsJob operation. The "output" return
  3299  // value will be populated with the request's response once the request completes
  3300  // successfully.
  3301  //
  3302  // Use "Send" method on the returned Request to send the API call to the service.
  3303  // the "output" return value is not valid until after Send returns without error.
  3304  //
  3305  // See StartCallAnalyticsJob for more information on using the StartCallAnalyticsJob
  3306  // API call, and error handling.
  3307  //
  3308  // This method is useful when you want to inject custom logic or configuration
  3309  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3310  //
  3311  //
  3312  //    // Example sending a request using the StartCallAnalyticsJobRequest method.
  3313  //    req, resp := client.StartCallAnalyticsJobRequest(params)
  3314  //
  3315  //    err := req.Send()
  3316  //    if err == nil { // resp is now filled
  3317  //        fmt.Println(resp)
  3318  //    }
  3319  //
  3320  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartCallAnalyticsJob
  3321  func (c *TranscribeService) StartCallAnalyticsJobRequest(input *StartCallAnalyticsJobInput) (req *request.Request, output *StartCallAnalyticsJobOutput) {
  3322  	op := &request.Operation{
  3323  		Name:       opStartCallAnalyticsJob,
  3324  		HTTPMethod: "POST",
  3325  		HTTPPath:   "/",
  3326  	}
  3327  
  3328  	if input == nil {
  3329  		input = &StartCallAnalyticsJobInput{}
  3330  	}
  3331  
  3332  	output = &StartCallAnalyticsJobOutput{}
  3333  	req = c.newRequest(op, input, output)
  3334  	return
  3335  }
  3336  
  3337  // StartCallAnalyticsJob API operation for Amazon Transcribe Service.
  3338  //
  3339  // Starts an asynchronous analytics job that not only transcribes the audio
  3340  // recording of a caller and agent, but also returns additional insights. These
  3341  // insights include how quickly or loudly the caller or agent was speaking.
  3342  // To retrieve additional insights with your analytics jobs, create categories.
  3343  // A category is a way to classify analytics jobs based on attributes, such
  3344  // as a customer's sentiment or a particular phrase being used during the call.
  3345  // For more information, see the operation.
  3346  //
  3347  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3348  // with awserr.Error's Code and Message methods to get detailed information about
  3349  // the error.
  3350  //
  3351  // See the AWS API reference guide for Amazon Transcribe Service's
  3352  // API operation StartCallAnalyticsJob for usage and error information.
  3353  //
  3354  // Returned Error Types:
  3355  //   * BadRequestException
  3356  //   Your request didn't pass one or more validation tests. For example, if the
  3357  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3358  //   state (for example, it's "in progress"). See the exception Message field
  3359  //   for more information.
  3360  //
  3361  //   * LimitExceededException
  3362  //   Either you have sent too many requests or your input file is too long. Wait
  3363  //   before you resend your request, or use a smaller file and resend the request.
  3364  //
  3365  //   * InternalFailureException
  3366  //   There was an internal error. Check the error message and try your request
  3367  //   again.
  3368  //
  3369  //   * ConflictException
  3370  //   There is already a resource with that name.
  3371  //
  3372  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartCallAnalyticsJob
  3373  func (c *TranscribeService) StartCallAnalyticsJob(input *StartCallAnalyticsJobInput) (*StartCallAnalyticsJobOutput, error) {
  3374  	req, out := c.StartCallAnalyticsJobRequest(input)
  3375  	return out, req.Send()
  3376  }
  3377  
  3378  // StartCallAnalyticsJobWithContext is the same as StartCallAnalyticsJob with the addition of
  3379  // the ability to pass a context and additional request options.
  3380  //
  3381  // See StartCallAnalyticsJob for details on how to use this API operation.
  3382  //
  3383  // The context must be non-nil and will be used for request cancellation. If
  3384  // the context is nil a panic will occur. In the future the SDK may create
  3385  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3386  // for more information on using Contexts.
  3387  func (c *TranscribeService) StartCallAnalyticsJobWithContext(ctx aws.Context, input *StartCallAnalyticsJobInput, opts ...request.Option) (*StartCallAnalyticsJobOutput, error) {
  3388  	req, out := c.StartCallAnalyticsJobRequest(input)
  3389  	req.SetContext(ctx)
  3390  	req.ApplyOptions(opts...)
  3391  	return out, req.Send()
  3392  }
  3393  
  3394  const opStartMedicalTranscriptionJob = "StartMedicalTranscriptionJob"
  3395  
  3396  // StartMedicalTranscriptionJobRequest generates a "aws/request.Request" representing the
  3397  // client's request for the StartMedicalTranscriptionJob operation. The "output" return
  3398  // value will be populated with the request's response once the request completes
  3399  // successfully.
  3400  //
  3401  // Use "Send" method on the returned Request to send the API call to the service.
  3402  // the "output" return value is not valid until after Send returns without error.
  3403  //
  3404  // See StartMedicalTranscriptionJob for more information on using the StartMedicalTranscriptionJob
  3405  // API call, and error handling.
  3406  //
  3407  // This method is useful when you want to inject custom logic or configuration
  3408  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3409  //
  3410  //
  3411  //    // Example sending a request using the StartMedicalTranscriptionJobRequest method.
  3412  //    req, resp := client.StartMedicalTranscriptionJobRequest(params)
  3413  //
  3414  //    err := req.Send()
  3415  //    if err == nil { // resp is now filled
  3416  //        fmt.Println(resp)
  3417  //    }
  3418  //
  3419  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartMedicalTranscriptionJob
  3420  func (c *TranscribeService) StartMedicalTranscriptionJobRequest(input *StartMedicalTranscriptionJobInput) (req *request.Request, output *StartMedicalTranscriptionJobOutput) {
  3421  	op := &request.Operation{
  3422  		Name:       opStartMedicalTranscriptionJob,
  3423  		HTTPMethod: "POST",
  3424  		HTTPPath:   "/",
  3425  	}
  3426  
  3427  	if input == nil {
  3428  		input = &StartMedicalTranscriptionJobInput{}
  3429  	}
  3430  
  3431  	output = &StartMedicalTranscriptionJobOutput{}
  3432  	req = c.newRequest(op, input, output)
  3433  	return
  3434  }
  3435  
  3436  // StartMedicalTranscriptionJob API operation for Amazon Transcribe Service.
  3437  //
  3438  // Starts a batch job to transcribe medical speech to text.
  3439  //
  3440  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3441  // with awserr.Error's Code and Message methods to get detailed information about
  3442  // the error.
  3443  //
  3444  // See the AWS API reference guide for Amazon Transcribe Service's
  3445  // API operation StartMedicalTranscriptionJob for usage and error information.
  3446  //
  3447  // Returned Error Types:
  3448  //   * BadRequestException
  3449  //   Your request didn't pass one or more validation tests. For example, if the
  3450  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3451  //   state (for example, it's "in progress"). See the exception Message field
  3452  //   for more information.
  3453  //
  3454  //   * LimitExceededException
  3455  //   Either you have sent too many requests or your input file is too long. Wait
  3456  //   before you resend your request, or use a smaller file and resend the request.
  3457  //
  3458  //   * InternalFailureException
  3459  //   There was an internal error. Check the error message and try your request
  3460  //   again.
  3461  //
  3462  //   * ConflictException
  3463  //   There is already a resource with that name.
  3464  //
  3465  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartMedicalTranscriptionJob
  3466  func (c *TranscribeService) StartMedicalTranscriptionJob(input *StartMedicalTranscriptionJobInput) (*StartMedicalTranscriptionJobOutput, error) {
  3467  	req, out := c.StartMedicalTranscriptionJobRequest(input)
  3468  	return out, req.Send()
  3469  }
  3470  
  3471  // StartMedicalTranscriptionJobWithContext is the same as StartMedicalTranscriptionJob with the addition of
  3472  // the ability to pass a context and additional request options.
  3473  //
  3474  // See StartMedicalTranscriptionJob for details on how to use this API operation.
  3475  //
  3476  // The context must be non-nil and will be used for request cancellation. If
  3477  // the context is nil a panic will occur. In the future the SDK may create
  3478  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3479  // for more information on using Contexts.
  3480  func (c *TranscribeService) StartMedicalTranscriptionJobWithContext(ctx aws.Context, input *StartMedicalTranscriptionJobInput, opts ...request.Option) (*StartMedicalTranscriptionJobOutput, error) {
  3481  	req, out := c.StartMedicalTranscriptionJobRequest(input)
  3482  	req.SetContext(ctx)
  3483  	req.ApplyOptions(opts...)
  3484  	return out, req.Send()
  3485  }
  3486  
  3487  const opStartTranscriptionJob = "StartTranscriptionJob"
  3488  
  3489  // StartTranscriptionJobRequest generates a "aws/request.Request" representing the
  3490  // client's request for the StartTranscriptionJob operation. The "output" return
  3491  // value will be populated with the request's response once the request completes
  3492  // successfully.
  3493  //
  3494  // Use "Send" method on the returned Request to send the API call to the service.
  3495  // the "output" return value is not valid until after Send returns without error.
  3496  //
  3497  // See StartTranscriptionJob for more information on using the StartTranscriptionJob
  3498  // API call, and error handling.
  3499  //
  3500  // This method is useful when you want to inject custom logic or configuration
  3501  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3502  //
  3503  //
  3504  //    // Example sending a request using the StartTranscriptionJobRequest method.
  3505  //    req, resp := client.StartTranscriptionJobRequest(params)
  3506  //
  3507  //    err := req.Send()
  3508  //    if err == nil { // resp is now filled
  3509  //        fmt.Println(resp)
  3510  //    }
  3511  //
  3512  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob
  3513  func (c *TranscribeService) StartTranscriptionJobRequest(input *StartTranscriptionJobInput) (req *request.Request, output *StartTranscriptionJobOutput) {
  3514  	op := &request.Operation{
  3515  		Name:       opStartTranscriptionJob,
  3516  		HTTPMethod: "POST",
  3517  		HTTPPath:   "/",
  3518  	}
  3519  
  3520  	if input == nil {
  3521  		input = &StartTranscriptionJobInput{}
  3522  	}
  3523  
  3524  	output = &StartTranscriptionJobOutput{}
  3525  	req = c.newRequest(op, input, output)
  3526  	return
  3527  }
  3528  
  3529  // StartTranscriptionJob API operation for Amazon Transcribe Service.
  3530  //
  3531  // Starts an asynchronous job to transcribe speech to text.
  3532  //
  3533  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3534  // with awserr.Error's Code and Message methods to get detailed information about
  3535  // the error.
  3536  //
  3537  // See the AWS API reference guide for Amazon Transcribe Service's
  3538  // API operation StartTranscriptionJob for usage and error information.
  3539  //
  3540  // Returned Error Types:
  3541  //   * BadRequestException
  3542  //   Your request didn't pass one or more validation tests. For example, if the
  3543  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3544  //   state (for example, it's "in progress"). See the exception Message field
  3545  //   for more information.
  3546  //
  3547  //   * LimitExceededException
  3548  //   Either you have sent too many requests or your input file is too long. Wait
  3549  //   before you resend your request, or use a smaller file and resend the request.
  3550  //
  3551  //   * InternalFailureException
  3552  //   There was an internal error. Check the error message and try your request
  3553  //   again.
  3554  //
  3555  //   * ConflictException
  3556  //   There is already a resource with that name.
  3557  //
  3558  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob
  3559  func (c *TranscribeService) StartTranscriptionJob(input *StartTranscriptionJobInput) (*StartTranscriptionJobOutput, error) {
  3560  	req, out := c.StartTranscriptionJobRequest(input)
  3561  	return out, req.Send()
  3562  }
  3563  
  3564  // StartTranscriptionJobWithContext is the same as StartTranscriptionJob with the addition of
  3565  // the ability to pass a context and additional request options.
  3566  //
  3567  // See StartTranscriptionJob for details on how to use this API operation.
  3568  //
  3569  // The context must be non-nil and will be used for request cancellation. If
  3570  // the context is nil a panic will occur. In the future the SDK may create
  3571  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3572  // for more information on using Contexts.
  3573  func (c *TranscribeService) StartTranscriptionJobWithContext(ctx aws.Context, input *StartTranscriptionJobInput, opts ...request.Option) (*StartTranscriptionJobOutput, error) {
  3574  	req, out := c.StartTranscriptionJobRequest(input)
  3575  	req.SetContext(ctx)
  3576  	req.ApplyOptions(opts...)
  3577  	return out, req.Send()
  3578  }
  3579  
  3580  const opTagResource = "TagResource"
  3581  
  3582  // TagResourceRequest generates a "aws/request.Request" representing the
  3583  // client's request for the TagResource operation. The "output" return
  3584  // value will be populated with the request's response once the request completes
  3585  // successfully.
  3586  //
  3587  // Use "Send" method on the returned Request to send the API call to the service.
  3588  // the "output" return value is not valid until after Send returns without error.
  3589  //
  3590  // See TagResource for more information on using the TagResource
  3591  // API call, and error handling.
  3592  //
  3593  // This method is useful when you want to inject custom logic or configuration
  3594  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3595  //
  3596  //
  3597  //    // Example sending a request using the TagResourceRequest method.
  3598  //    req, resp := client.TagResourceRequest(params)
  3599  //
  3600  //    err := req.Send()
  3601  //    if err == nil { // resp is now filled
  3602  //        fmt.Println(resp)
  3603  //    }
  3604  //
  3605  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TagResource
  3606  func (c *TranscribeService) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  3607  	op := &request.Operation{
  3608  		Name:       opTagResource,
  3609  		HTTPMethod: "POST",
  3610  		HTTPPath:   "/",
  3611  	}
  3612  
  3613  	if input == nil {
  3614  		input = &TagResourceInput{}
  3615  	}
  3616  
  3617  	output = &TagResourceOutput{}
  3618  	req = c.newRequest(op, input, output)
  3619  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3620  	return
  3621  }
  3622  
  3623  // TagResource API operation for Amazon Transcribe Service.
  3624  //
  3625  // Tags a Amazon Transcribe resource with the given list of tags.
  3626  //
  3627  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3628  // with awserr.Error's Code and Message methods to get detailed information about
  3629  // the error.
  3630  //
  3631  // See the AWS API reference guide for Amazon Transcribe Service's
  3632  // API operation TagResource for usage and error information.
  3633  //
  3634  // Returned Error Types:
  3635  //   * BadRequestException
  3636  //   Your request didn't pass one or more validation tests. For example, if the
  3637  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3638  //   state (for example, it's "in progress"). See the exception Message field
  3639  //   for more information.
  3640  //
  3641  //   * ConflictException
  3642  //   There is already a resource with that name.
  3643  //
  3644  //   * NotFoundException
  3645  //   We can't find the requested resource. Check the name and try your request
  3646  //   again.
  3647  //
  3648  //   * LimitExceededException
  3649  //   Either you have sent too many requests or your input file is too long. Wait
  3650  //   before you resend your request, or use a smaller file and resend the request.
  3651  //
  3652  //   * InternalFailureException
  3653  //   There was an internal error. Check the error message and try your request
  3654  //   again.
  3655  //
  3656  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TagResource
  3657  func (c *TranscribeService) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  3658  	req, out := c.TagResourceRequest(input)
  3659  	return out, req.Send()
  3660  }
  3661  
  3662  // TagResourceWithContext is the same as TagResource with the addition of
  3663  // the ability to pass a context and additional request options.
  3664  //
  3665  // See TagResource for details on how to use this API operation.
  3666  //
  3667  // The context must be non-nil and will be used for request cancellation. If
  3668  // the context is nil a panic will occur. In the future the SDK may create
  3669  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3670  // for more information on using Contexts.
  3671  func (c *TranscribeService) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  3672  	req, out := c.TagResourceRequest(input)
  3673  	req.SetContext(ctx)
  3674  	req.ApplyOptions(opts...)
  3675  	return out, req.Send()
  3676  }
  3677  
  3678  const opUntagResource = "UntagResource"
  3679  
  3680  // UntagResourceRequest generates a "aws/request.Request" representing the
  3681  // client's request for the UntagResource operation. The "output" return
  3682  // value will be populated with the request's response once the request completes
  3683  // successfully.
  3684  //
  3685  // Use "Send" method on the returned Request to send the API call to the service.
  3686  // the "output" return value is not valid until after Send returns without error.
  3687  //
  3688  // See UntagResource for more information on using the UntagResource
  3689  // API call, and error handling.
  3690  //
  3691  // This method is useful when you want to inject custom logic or configuration
  3692  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3693  //
  3694  //
  3695  //    // Example sending a request using the UntagResourceRequest method.
  3696  //    req, resp := client.UntagResourceRequest(params)
  3697  //
  3698  //    err := req.Send()
  3699  //    if err == nil { // resp is now filled
  3700  //        fmt.Println(resp)
  3701  //    }
  3702  //
  3703  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UntagResource
  3704  func (c *TranscribeService) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  3705  	op := &request.Operation{
  3706  		Name:       opUntagResource,
  3707  		HTTPMethod: "POST",
  3708  		HTTPPath:   "/",
  3709  	}
  3710  
  3711  	if input == nil {
  3712  		input = &UntagResourceInput{}
  3713  	}
  3714  
  3715  	output = &UntagResourceOutput{}
  3716  	req = c.newRequest(op, input, output)
  3717  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3718  	return
  3719  }
  3720  
  3721  // UntagResource API operation for Amazon Transcribe Service.
  3722  //
  3723  // Removes specified tags from a specified Amazon Transcribe resource.
  3724  //
  3725  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3726  // with awserr.Error's Code and Message methods to get detailed information about
  3727  // the error.
  3728  //
  3729  // See the AWS API reference guide for Amazon Transcribe Service's
  3730  // API operation UntagResource for usage and error information.
  3731  //
  3732  // Returned Error Types:
  3733  //   * LimitExceededException
  3734  //   Either you have sent too many requests or your input file is too long. Wait
  3735  //   before you resend your request, or use a smaller file and resend the request.
  3736  //
  3737  //   * BadRequestException
  3738  //   Your request didn't pass one or more validation tests. For example, if the
  3739  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3740  //   state (for example, it's "in progress"). See the exception Message field
  3741  //   for more information.
  3742  //
  3743  //   * ConflictException
  3744  //   There is already a resource with that name.
  3745  //
  3746  //   * NotFoundException
  3747  //   We can't find the requested resource. Check the name and try your request
  3748  //   again.
  3749  //
  3750  //   * InternalFailureException
  3751  //   There was an internal error. Check the error message and try your request
  3752  //   again.
  3753  //
  3754  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UntagResource
  3755  func (c *TranscribeService) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  3756  	req, out := c.UntagResourceRequest(input)
  3757  	return out, req.Send()
  3758  }
  3759  
  3760  // UntagResourceWithContext is the same as UntagResource with the addition of
  3761  // the ability to pass a context and additional request options.
  3762  //
  3763  // See UntagResource for details on how to use this API operation.
  3764  //
  3765  // The context must be non-nil and will be used for request cancellation. If
  3766  // the context is nil a panic will occur. In the future the SDK may create
  3767  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3768  // for more information on using Contexts.
  3769  func (c *TranscribeService) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  3770  	req, out := c.UntagResourceRequest(input)
  3771  	req.SetContext(ctx)
  3772  	req.ApplyOptions(opts...)
  3773  	return out, req.Send()
  3774  }
  3775  
  3776  const opUpdateCallAnalyticsCategory = "UpdateCallAnalyticsCategory"
  3777  
  3778  // UpdateCallAnalyticsCategoryRequest generates a "aws/request.Request" representing the
  3779  // client's request for the UpdateCallAnalyticsCategory operation. The "output" return
  3780  // value will be populated with the request's response once the request completes
  3781  // successfully.
  3782  //
  3783  // Use "Send" method on the returned Request to send the API call to the service.
  3784  // the "output" return value is not valid until after Send returns without error.
  3785  //
  3786  // See UpdateCallAnalyticsCategory for more information on using the UpdateCallAnalyticsCategory
  3787  // API call, and error handling.
  3788  //
  3789  // This method is useful when you want to inject custom logic or configuration
  3790  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3791  //
  3792  //
  3793  //    // Example sending a request using the UpdateCallAnalyticsCategoryRequest method.
  3794  //    req, resp := client.UpdateCallAnalyticsCategoryRequest(params)
  3795  //
  3796  //    err := req.Send()
  3797  //    if err == nil { // resp is now filled
  3798  //        fmt.Println(resp)
  3799  //    }
  3800  //
  3801  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateCallAnalyticsCategory
  3802  func (c *TranscribeService) UpdateCallAnalyticsCategoryRequest(input *UpdateCallAnalyticsCategoryInput) (req *request.Request, output *UpdateCallAnalyticsCategoryOutput) {
  3803  	op := &request.Operation{
  3804  		Name:       opUpdateCallAnalyticsCategory,
  3805  		HTTPMethod: "POST",
  3806  		HTTPPath:   "/",
  3807  	}
  3808  
  3809  	if input == nil {
  3810  		input = &UpdateCallAnalyticsCategoryInput{}
  3811  	}
  3812  
  3813  	output = &UpdateCallAnalyticsCategoryOutput{}
  3814  	req = c.newRequest(op, input, output)
  3815  	return
  3816  }
  3817  
  3818  // UpdateCallAnalyticsCategory API operation for Amazon Transcribe Service.
  3819  //
  3820  // Updates the call analytics category with new values. The UpdateCallAnalyticsCategory
  3821  // operation overwrites all of the existing information with the values that
  3822  // you provide in the request.
  3823  //
  3824  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3825  // with awserr.Error's Code and Message methods to get detailed information about
  3826  // the error.
  3827  //
  3828  // See the AWS API reference guide for Amazon Transcribe Service's
  3829  // API operation UpdateCallAnalyticsCategory for usage and error information.
  3830  //
  3831  // Returned Error Types:
  3832  //   * BadRequestException
  3833  //   Your request didn't pass one or more validation tests. For example, if the
  3834  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3835  //   state (for example, it's "in progress"). See the exception Message field
  3836  //   for more information.
  3837  //
  3838  //   * LimitExceededException
  3839  //   Either you have sent too many requests or your input file is too long. Wait
  3840  //   before you resend your request, or use a smaller file and resend the request.
  3841  //
  3842  //   * InternalFailureException
  3843  //   There was an internal error. Check the error message and try your request
  3844  //   again.
  3845  //
  3846  //   * NotFoundException
  3847  //   We can't find the requested resource. Check the name and try your request
  3848  //   again.
  3849  //
  3850  //   * ConflictException
  3851  //   There is already a resource with that name.
  3852  //
  3853  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateCallAnalyticsCategory
  3854  func (c *TranscribeService) UpdateCallAnalyticsCategory(input *UpdateCallAnalyticsCategoryInput) (*UpdateCallAnalyticsCategoryOutput, error) {
  3855  	req, out := c.UpdateCallAnalyticsCategoryRequest(input)
  3856  	return out, req.Send()
  3857  }
  3858  
  3859  // UpdateCallAnalyticsCategoryWithContext is the same as UpdateCallAnalyticsCategory with the addition of
  3860  // the ability to pass a context and additional request options.
  3861  //
  3862  // See UpdateCallAnalyticsCategory for details on how to use this API operation.
  3863  //
  3864  // The context must be non-nil and will be used for request cancellation. If
  3865  // the context is nil a panic will occur. In the future the SDK may create
  3866  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3867  // for more information on using Contexts.
  3868  func (c *TranscribeService) UpdateCallAnalyticsCategoryWithContext(ctx aws.Context, input *UpdateCallAnalyticsCategoryInput, opts ...request.Option) (*UpdateCallAnalyticsCategoryOutput, error) {
  3869  	req, out := c.UpdateCallAnalyticsCategoryRequest(input)
  3870  	req.SetContext(ctx)
  3871  	req.ApplyOptions(opts...)
  3872  	return out, req.Send()
  3873  }
  3874  
  3875  const opUpdateMedicalVocabulary = "UpdateMedicalVocabulary"
  3876  
  3877  // UpdateMedicalVocabularyRequest generates a "aws/request.Request" representing the
  3878  // client's request for the UpdateMedicalVocabulary operation. The "output" return
  3879  // value will be populated with the request's response once the request completes
  3880  // successfully.
  3881  //
  3882  // Use "Send" method on the returned Request to send the API call to the service.
  3883  // the "output" return value is not valid until after Send returns without error.
  3884  //
  3885  // See UpdateMedicalVocabulary for more information on using the UpdateMedicalVocabulary
  3886  // API call, and error handling.
  3887  //
  3888  // This method is useful when you want to inject custom logic or configuration
  3889  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3890  //
  3891  //
  3892  //    // Example sending a request using the UpdateMedicalVocabularyRequest method.
  3893  //    req, resp := client.UpdateMedicalVocabularyRequest(params)
  3894  //
  3895  //    err := req.Send()
  3896  //    if err == nil { // resp is now filled
  3897  //        fmt.Println(resp)
  3898  //    }
  3899  //
  3900  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabulary
  3901  func (c *TranscribeService) UpdateMedicalVocabularyRequest(input *UpdateMedicalVocabularyInput) (req *request.Request, output *UpdateMedicalVocabularyOutput) {
  3902  	op := &request.Operation{
  3903  		Name:       opUpdateMedicalVocabulary,
  3904  		HTTPMethod: "POST",
  3905  		HTTPPath:   "/",
  3906  	}
  3907  
  3908  	if input == nil {
  3909  		input = &UpdateMedicalVocabularyInput{}
  3910  	}
  3911  
  3912  	output = &UpdateMedicalVocabularyOutput{}
  3913  	req = c.newRequest(op, input, output)
  3914  	return
  3915  }
  3916  
  3917  // UpdateMedicalVocabulary API operation for Amazon Transcribe Service.
  3918  //
  3919  // Updates a vocabulary with new values that you provide in a different text
  3920  // file from the one you used to create the vocabulary. The UpdateMedicalVocabulary
  3921  // operation overwrites all of the existing information with the values that
  3922  // you provide in the request.
  3923  //
  3924  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3925  // with awserr.Error's Code and Message methods to get detailed information about
  3926  // the error.
  3927  //
  3928  // See the AWS API reference guide for Amazon Transcribe Service's
  3929  // API operation UpdateMedicalVocabulary for usage and error information.
  3930  //
  3931  // Returned Error Types:
  3932  //   * BadRequestException
  3933  //   Your request didn't pass one or more validation tests. For example, if the
  3934  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  3935  //   state (for example, it's "in progress"). See the exception Message field
  3936  //   for more information.
  3937  //
  3938  //   * LimitExceededException
  3939  //   Either you have sent too many requests or your input file is too long. Wait
  3940  //   before you resend your request, or use a smaller file and resend the request.
  3941  //
  3942  //   * InternalFailureException
  3943  //   There was an internal error. Check the error message and try your request
  3944  //   again.
  3945  //
  3946  //   * NotFoundException
  3947  //   We can't find the requested resource. Check the name and try your request
  3948  //   again.
  3949  //
  3950  //   * ConflictException
  3951  //   There is already a resource with that name.
  3952  //
  3953  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabulary
  3954  func (c *TranscribeService) UpdateMedicalVocabulary(input *UpdateMedicalVocabularyInput) (*UpdateMedicalVocabularyOutput, error) {
  3955  	req, out := c.UpdateMedicalVocabularyRequest(input)
  3956  	return out, req.Send()
  3957  }
  3958  
  3959  // UpdateMedicalVocabularyWithContext is the same as UpdateMedicalVocabulary with the addition of
  3960  // the ability to pass a context and additional request options.
  3961  //
  3962  // See UpdateMedicalVocabulary for details on how to use this API operation.
  3963  //
  3964  // The context must be non-nil and will be used for request cancellation. If
  3965  // the context is nil a panic will occur. In the future the SDK may create
  3966  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3967  // for more information on using Contexts.
  3968  func (c *TranscribeService) UpdateMedicalVocabularyWithContext(ctx aws.Context, input *UpdateMedicalVocabularyInput, opts ...request.Option) (*UpdateMedicalVocabularyOutput, error) {
  3969  	req, out := c.UpdateMedicalVocabularyRequest(input)
  3970  	req.SetContext(ctx)
  3971  	req.ApplyOptions(opts...)
  3972  	return out, req.Send()
  3973  }
  3974  
  3975  const opUpdateVocabulary = "UpdateVocabulary"
  3976  
  3977  // UpdateVocabularyRequest generates a "aws/request.Request" representing the
  3978  // client's request for the UpdateVocabulary operation. The "output" return
  3979  // value will be populated with the request's response once the request completes
  3980  // successfully.
  3981  //
  3982  // Use "Send" method on the returned Request to send the API call to the service.
  3983  // the "output" return value is not valid until after Send returns without error.
  3984  //
  3985  // See UpdateVocabulary for more information on using the UpdateVocabulary
  3986  // API call, and error handling.
  3987  //
  3988  // This method is useful when you want to inject custom logic or configuration
  3989  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3990  //
  3991  //
  3992  //    // Example sending a request using the UpdateVocabularyRequest method.
  3993  //    req, resp := client.UpdateVocabularyRequest(params)
  3994  //
  3995  //    err := req.Send()
  3996  //    if err == nil { // resp is now filled
  3997  //        fmt.Println(resp)
  3998  //    }
  3999  //
  4000  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabulary
  4001  func (c *TranscribeService) UpdateVocabularyRequest(input *UpdateVocabularyInput) (req *request.Request, output *UpdateVocabularyOutput) {
  4002  	op := &request.Operation{
  4003  		Name:       opUpdateVocabulary,
  4004  		HTTPMethod: "POST",
  4005  		HTTPPath:   "/",
  4006  	}
  4007  
  4008  	if input == nil {
  4009  		input = &UpdateVocabularyInput{}
  4010  	}
  4011  
  4012  	output = &UpdateVocabularyOutput{}
  4013  	req = c.newRequest(op, input, output)
  4014  	return
  4015  }
  4016  
  4017  // UpdateVocabulary API operation for Amazon Transcribe Service.
  4018  //
  4019  // Updates an existing vocabulary with new values. The UpdateVocabulary operation
  4020  // overwrites all of the existing information with the values that you provide
  4021  // in the request.
  4022  //
  4023  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4024  // with awserr.Error's Code and Message methods to get detailed information about
  4025  // the error.
  4026  //
  4027  // See the AWS API reference guide for Amazon Transcribe Service's
  4028  // API operation UpdateVocabulary for usage and error information.
  4029  //
  4030  // Returned Error Types:
  4031  //   * BadRequestException
  4032  //   Your request didn't pass one or more validation tests. For example, if the
  4033  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  4034  //   state (for example, it's "in progress"). See the exception Message field
  4035  //   for more information.
  4036  //
  4037  //   * LimitExceededException
  4038  //   Either you have sent too many requests or your input file is too long. Wait
  4039  //   before you resend your request, or use a smaller file and resend the request.
  4040  //
  4041  //   * InternalFailureException
  4042  //   There was an internal error. Check the error message and try your request
  4043  //   again.
  4044  //
  4045  //   * NotFoundException
  4046  //   We can't find the requested resource. Check the name and try your request
  4047  //   again.
  4048  //
  4049  //   * ConflictException
  4050  //   There is already a resource with that name.
  4051  //
  4052  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabulary
  4053  func (c *TranscribeService) UpdateVocabulary(input *UpdateVocabularyInput) (*UpdateVocabularyOutput, error) {
  4054  	req, out := c.UpdateVocabularyRequest(input)
  4055  	return out, req.Send()
  4056  }
  4057  
  4058  // UpdateVocabularyWithContext is the same as UpdateVocabulary with the addition of
  4059  // the ability to pass a context and additional request options.
  4060  //
  4061  // See UpdateVocabulary for details on how to use this API operation.
  4062  //
  4063  // The context must be non-nil and will be used for request cancellation. If
  4064  // the context is nil a panic will occur. In the future the SDK may create
  4065  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4066  // for more information on using Contexts.
  4067  func (c *TranscribeService) UpdateVocabularyWithContext(ctx aws.Context, input *UpdateVocabularyInput, opts ...request.Option) (*UpdateVocabularyOutput, error) {
  4068  	req, out := c.UpdateVocabularyRequest(input)
  4069  	req.SetContext(ctx)
  4070  	req.ApplyOptions(opts...)
  4071  	return out, req.Send()
  4072  }
  4073  
  4074  const opUpdateVocabularyFilter = "UpdateVocabularyFilter"
  4075  
  4076  // UpdateVocabularyFilterRequest generates a "aws/request.Request" representing the
  4077  // client's request for the UpdateVocabularyFilter operation. The "output" return
  4078  // value will be populated with the request's response once the request completes
  4079  // successfully.
  4080  //
  4081  // Use "Send" method on the returned Request to send the API call to the service.
  4082  // the "output" return value is not valid until after Send returns without error.
  4083  //
  4084  // See UpdateVocabularyFilter for more information on using the UpdateVocabularyFilter
  4085  // API call, and error handling.
  4086  //
  4087  // This method is useful when you want to inject custom logic or configuration
  4088  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4089  //
  4090  //
  4091  //    // Example sending a request using the UpdateVocabularyFilterRequest method.
  4092  //    req, resp := client.UpdateVocabularyFilterRequest(params)
  4093  //
  4094  //    err := req.Send()
  4095  //    if err == nil { // resp is now filled
  4096  //        fmt.Println(resp)
  4097  //    }
  4098  //
  4099  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter
  4100  func (c *TranscribeService) UpdateVocabularyFilterRequest(input *UpdateVocabularyFilterInput) (req *request.Request, output *UpdateVocabularyFilterOutput) {
  4101  	op := &request.Operation{
  4102  		Name:       opUpdateVocabularyFilter,
  4103  		HTTPMethod: "POST",
  4104  		HTTPPath:   "/",
  4105  	}
  4106  
  4107  	if input == nil {
  4108  		input = &UpdateVocabularyFilterInput{}
  4109  	}
  4110  
  4111  	output = &UpdateVocabularyFilterOutput{}
  4112  	req = c.newRequest(op, input, output)
  4113  	return
  4114  }
  4115  
  4116  // UpdateVocabularyFilter API operation for Amazon Transcribe Service.
  4117  //
  4118  // Updates a vocabulary filter with a new list of filtered words.
  4119  //
  4120  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4121  // with awserr.Error's Code and Message methods to get detailed information about
  4122  // the error.
  4123  //
  4124  // See the AWS API reference guide for Amazon Transcribe Service's
  4125  // API operation UpdateVocabularyFilter for usage and error information.
  4126  //
  4127  // Returned Error Types:
  4128  //   * BadRequestException
  4129  //   Your request didn't pass one or more validation tests. For example, if the
  4130  //   entity that you're trying to delete doesn't exist or if it is in a non-terminal
  4131  //   state (for example, it's "in progress"). See the exception Message field
  4132  //   for more information.
  4133  //
  4134  //   * LimitExceededException
  4135  //   Either you have sent too many requests or your input file is too long. Wait
  4136  //   before you resend your request, or use a smaller file and resend the request.
  4137  //
  4138  //   * InternalFailureException
  4139  //   There was an internal error. Check the error message and try your request
  4140  //   again.
  4141  //
  4142  //   * NotFoundException
  4143  //   We can't find the requested resource. Check the name and try your request
  4144  //   again.
  4145  //
  4146  // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter
  4147  func (c *TranscribeService) UpdateVocabularyFilter(input *UpdateVocabularyFilterInput) (*UpdateVocabularyFilterOutput, error) {
  4148  	req, out := c.UpdateVocabularyFilterRequest(input)
  4149  	return out, req.Send()
  4150  }
  4151  
  4152  // UpdateVocabularyFilterWithContext is the same as UpdateVocabularyFilter with the addition of
  4153  // the ability to pass a context and additional request options.
  4154  //
  4155  // See UpdateVocabularyFilter for details on how to use this API operation.
  4156  //
  4157  // The context must be non-nil and will be used for request cancellation. If
  4158  // the context is nil a panic will occur. In the future the SDK may create
  4159  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4160  // for more information on using Contexts.
  4161  func (c *TranscribeService) UpdateVocabularyFilterWithContext(ctx aws.Context, input *UpdateVocabularyFilterInput, opts ...request.Option) (*UpdateVocabularyFilterOutput, error) {
  4162  	req, out := c.UpdateVocabularyFilterRequest(input)
  4163  	req.SetContext(ctx)
  4164  	req.ApplyOptions(opts...)
  4165  	return out, req.Send()
  4166  }
  4167  
  4168  // A time range, set in seconds, between two points in the call.
  4169  type AbsoluteTimeRange struct {
  4170  	_ struct{} `type:"structure"`
  4171  
  4172  	// A value that indicates the end of the time range in milliseconds. To set
  4173  	// absolute time range, you must specify a start time and an end time. For example,
  4174  	// if you specify the following values:
  4175  	//
  4176  	//    * StartTime - 10000
  4177  	//
  4178  	//    * Endtime - 50000
  4179  	//
  4180  	// The time range is set between 10,000 milliseconds and 50,000 milliseconds
  4181  	// into the call.
  4182  	EndTime *int64 `type:"long"`
  4183  
  4184  	// A time range from the beginning of the call to the value that you've specified.
  4185  	// For example, if you specify 100000, the time range is set to the first 100,000
  4186  	// milliseconds of the call.
  4187  	First *int64 `type:"long"`
  4188  
  4189  	// A time range from the value that you've specified to the end of the call.
  4190  	// For example, if you specify 100000, the time range is set to the last 100,000
  4191  	// milliseconds of the call.
  4192  	Last *int64 `type:"long"`
  4193  
  4194  	// A value that indicates the beginning of the time range in seconds. To set
  4195  	// absolute time range, you must specify a start time and an end time. For example,
  4196  	// if you specify the following values:
  4197  	//
  4198  	//    * StartTime - 10000
  4199  	//
  4200  	//    * Endtime - 50000
  4201  	//
  4202  	// The time range is set between 10,000 milliseconds and 50,000 milliseconds
  4203  	// into the call.
  4204  	StartTime *int64 `type:"long"`
  4205  }
  4206  
  4207  // String returns the string representation.
  4208  //
  4209  // API parameter values that are decorated as "sensitive" in the API will not
  4210  // be included in the string output. The member name will be present, but the
  4211  // value will be replaced with "sensitive".
  4212  func (s AbsoluteTimeRange) String() string {
  4213  	return awsutil.Prettify(s)
  4214  }
  4215  
  4216  // GoString returns the string representation.
  4217  //
  4218  // API parameter values that are decorated as "sensitive" in the API will not
  4219  // be included in the string output. The member name will be present, but the
  4220  // value will be replaced with "sensitive".
  4221  func (s AbsoluteTimeRange) GoString() string {
  4222  	return s.String()
  4223  }
  4224  
  4225  // SetEndTime sets the EndTime field's value.
  4226  func (s *AbsoluteTimeRange) SetEndTime(v int64) *AbsoluteTimeRange {
  4227  	s.EndTime = &v
  4228  	return s
  4229  }
  4230  
  4231  // SetFirst sets the First field's value.
  4232  func (s *AbsoluteTimeRange) SetFirst(v int64) *AbsoluteTimeRange {
  4233  	s.First = &v
  4234  	return s
  4235  }
  4236  
  4237  // SetLast sets the Last field's value.
  4238  func (s *AbsoluteTimeRange) SetLast(v int64) *AbsoluteTimeRange {
  4239  	s.Last = &v
  4240  	return s
  4241  }
  4242  
  4243  // SetStartTime sets the StartTime field's value.
  4244  func (s *AbsoluteTimeRange) SetStartTime(v int64) *AbsoluteTimeRange {
  4245  	s.StartTime = &v
  4246  	return s
  4247  }
  4248  
  4249  // Your request didn't pass one or more validation tests. For example, if the
  4250  // entity that you're trying to delete doesn't exist or if it is in a non-terminal
  4251  // state (for example, it's "in progress"). See the exception Message field
  4252  // for more information.
  4253  type BadRequestException struct {
  4254  	_            struct{}                  `type:"structure"`
  4255  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  4256  
  4257  	Message_ *string `locationName:"Message" type:"string"`
  4258  }
  4259  
  4260  // String returns the string representation.
  4261  //
  4262  // API parameter values that are decorated as "sensitive" in the API will not
  4263  // be included in the string output. The member name will be present, but the
  4264  // value will be replaced with "sensitive".
  4265  func (s BadRequestException) String() string {
  4266  	return awsutil.Prettify(s)
  4267  }
  4268  
  4269  // GoString returns the string representation.
  4270  //
  4271  // API parameter values that are decorated as "sensitive" in the API will not
  4272  // be included in the string output. The member name will be present, but the
  4273  // value will be replaced with "sensitive".
  4274  func (s BadRequestException) GoString() string {
  4275  	return s.String()
  4276  }
  4277  
  4278  func newErrorBadRequestException(v protocol.ResponseMetadata) error {
  4279  	return &BadRequestException{
  4280  		RespMetadata: v,
  4281  	}
  4282  }
  4283  
  4284  // Code returns the exception type name.
  4285  func (s *BadRequestException) Code() string {
  4286  	return "BadRequestException"
  4287  }
  4288  
  4289  // Message returns the exception's message.
  4290  func (s *BadRequestException) Message() string {
  4291  	if s.Message_ != nil {
  4292  		return *s.Message_
  4293  	}
  4294  	return ""
  4295  }
  4296  
  4297  // OrigErr always returns nil, satisfies awserr.Error interface.
  4298  func (s *BadRequestException) OrigErr() error {
  4299  	return nil
  4300  }
  4301  
  4302  func (s *BadRequestException) Error() string {
  4303  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  4304  }
  4305  
  4306  // Status code returns the HTTP status code for the request's response error.
  4307  func (s *BadRequestException) StatusCode() int {
  4308  	return s.RespMetadata.StatusCode
  4309  }
  4310  
  4311  // RequestID returns the service's response RequestID for request.
  4312  func (s *BadRequestException) RequestID() string {
  4313  	return s.RespMetadata.RequestID
  4314  }
  4315  
  4316  // Describes an asynchronous analytics job that was created with the StartAnalyticsJob
  4317  // operation.
  4318  type CallAnalyticsJob struct {
  4319  	_ struct{} `type:"structure"`
  4320  
  4321  	// The name of the call analytics job.
  4322  	CallAnalyticsJobName *string `min:"1" type:"string"`
  4323  
  4324  	// The status of the analytics job.
  4325  	CallAnalyticsJobStatus *string `type:"string" enum:"CallAnalyticsJobStatus"`
  4326  
  4327  	// Shows numeric values to indicate the channel assigned to the agent's audio
  4328  	// and the channel assigned to the customer's audio.
  4329  	ChannelDefinitions []*ChannelDefinition `min:"2" type:"list"`
  4330  
  4331  	// A timestamp that shows when the analytics job was completed.
  4332  	CompletionTime *time.Time `type:"timestamp"`
  4333  
  4334  	// A timestamp that shows when the analytics job was created.
  4335  	CreationTime *time.Time `type:"timestamp"`
  4336  
  4337  	// The Amazon Resource Number (ARN) that you use to get access to the analytics
  4338  	// job.
  4339  	DataAccessRoleArn *string `min:"20" type:"string"`
  4340  
  4341  	// If the AnalyticsJobStatus is FAILED, this field contains information about
  4342  	// why the job failed.
  4343  	//
  4344  	// The FailureReason field can contain one of the following values:
  4345  	//
  4346  	//    * Unsupported media format: The media format specified in the MediaFormat
  4347  	//    field of the request isn't valid. See the description of the MediaFormat
  4348  	//    field for a list of valid values.
  4349  	//
  4350  	//    * The media format provided does not match the detected media format:
  4351  	//    The media format of the audio file doesn't match the format specified
  4352  	//    in the MediaFormat field in the request. Check the media format of your
  4353  	//    media file and make sure the two values match.
  4354  	//
  4355  	//    * Invalid sample rate for audio file: The sample rate specified in the
  4356  	//    MediaSampleRateHertz of the request isn't valid. The sample rate must
  4357  	//    be between 8,000 and 48,000 Hertz.
  4358  	//
  4359  	//    * The sample rate provided does not match the detected sample rate: The
  4360  	//    sample rate in the audio file doesn't match the sample rate specified
  4361  	//    in the MediaSampleRateHertz field in the request. Check the sample rate
  4362  	//    of your media file and make sure that the two values match.
  4363  	//
  4364  	//    * Invalid file size: file size too large: The size of your audio file
  4365  	//    is larger than what Amazon Transcribe Medical can process. For more information,
  4366  	//    see Guidelines and Quotas in the Amazon Transcribe Medical Guide.
  4367  	//
  4368  	//    * Invalid number of channels: number of channels too large: Your audio
  4369  	//    contains more channels than Amazon Transcribe Medical is configured to
  4370  	//    process. To request additional channels, see Amazon Transcribe Medical
  4371  	//    Endpoints and Quotas in the Amazon Web Services General Reference (https://docs.aws.amazon.com/general/latest/gr/Welcome.html).
  4372  	FailureReason *string `type:"string"`
  4373  
  4374  	// A value between zero and one that Amazon Transcribe assigned to the language
  4375  	// that it identified in the source audio. This value appears only when you
  4376  	// don't provide a single language code. Larger values indicate that Amazon
  4377  	// Transcribe has higher confidence in the language that it identified
  4378  	IdentifiedLanguageScore *float64 `type:"float"`
  4379  
  4380  	// If you know the language spoken between the customer and the agent, specify
  4381  	// a language code for this field.
  4382  	//
  4383  	// If you don't know the language, you can leave this field blank, and Amazon
  4384  	// Transcribe will use machine learning to automatically identify the language.
  4385  	// To improve the accuracy of language identification, you can provide an array
  4386  	// containing the possible language codes for the language spoken in your audio.
  4387  	// Refer to Supported languages and language-specific features (https://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html)
  4388  	// for additional information.
  4389  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  4390  
  4391  	// Describes the input media file in a transcription request.
  4392  	Media *Media `type:"structure"`
  4393  
  4394  	// The format of the input audio file. Note: for call analytics jobs, only the
  4395  	// following media formats are supported: MP3, MP4, WAV, FLAC, OGG, and WebM.
  4396  	MediaFormat *string `type:"string" enum:"MediaFormat"`
  4397  
  4398  	// The sample rate, in Hertz, of the audio.
  4399  	MediaSampleRateHertz *int64 `min:"8000" type:"integer"`
  4400  
  4401  	// Provides information about the settings used to run a transcription job.
  4402  	Settings *CallAnalyticsJobSettings `type:"structure"`
  4403  
  4404  	// A timestamp that shows when the analytics job started processing.
  4405  	StartTime *time.Time `type:"timestamp"`
  4406  
  4407  	// Identifies the location of a transcription.
  4408  	Transcript *Transcript `type:"structure"`
  4409  }
  4410  
  4411  // String returns the string representation.
  4412  //
  4413  // API parameter values that are decorated as "sensitive" in the API will not
  4414  // be included in the string output. The member name will be present, but the
  4415  // value will be replaced with "sensitive".
  4416  func (s CallAnalyticsJob) String() string {
  4417  	return awsutil.Prettify(s)
  4418  }
  4419  
  4420  // GoString returns the string representation.
  4421  //
  4422  // API parameter values that are decorated as "sensitive" in the API will not
  4423  // be included in the string output. The member name will be present, but the
  4424  // value will be replaced with "sensitive".
  4425  func (s CallAnalyticsJob) GoString() string {
  4426  	return s.String()
  4427  }
  4428  
  4429  // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value.
  4430  func (s *CallAnalyticsJob) SetCallAnalyticsJobName(v string) *CallAnalyticsJob {
  4431  	s.CallAnalyticsJobName = &v
  4432  	return s
  4433  }
  4434  
  4435  // SetCallAnalyticsJobStatus sets the CallAnalyticsJobStatus field's value.
  4436  func (s *CallAnalyticsJob) SetCallAnalyticsJobStatus(v string) *CallAnalyticsJob {
  4437  	s.CallAnalyticsJobStatus = &v
  4438  	return s
  4439  }
  4440  
  4441  // SetChannelDefinitions sets the ChannelDefinitions field's value.
  4442  func (s *CallAnalyticsJob) SetChannelDefinitions(v []*ChannelDefinition) *CallAnalyticsJob {
  4443  	s.ChannelDefinitions = v
  4444  	return s
  4445  }
  4446  
  4447  // SetCompletionTime sets the CompletionTime field's value.
  4448  func (s *CallAnalyticsJob) SetCompletionTime(v time.Time) *CallAnalyticsJob {
  4449  	s.CompletionTime = &v
  4450  	return s
  4451  }
  4452  
  4453  // SetCreationTime sets the CreationTime field's value.
  4454  func (s *CallAnalyticsJob) SetCreationTime(v time.Time) *CallAnalyticsJob {
  4455  	s.CreationTime = &v
  4456  	return s
  4457  }
  4458  
  4459  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  4460  func (s *CallAnalyticsJob) SetDataAccessRoleArn(v string) *CallAnalyticsJob {
  4461  	s.DataAccessRoleArn = &v
  4462  	return s
  4463  }
  4464  
  4465  // SetFailureReason sets the FailureReason field's value.
  4466  func (s *CallAnalyticsJob) SetFailureReason(v string) *CallAnalyticsJob {
  4467  	s.FailureReason = &v
  4468  	return s
  4469  }
  4470  
  4471  // SetIdentifiedLanguageScore sets the IdentifiedLanguageScore field's value.
  4472  func (s *CallAnalyticsJob) SetIdentifiedLanguageScore(v float64) *CallAnalyticsJob {
  4473  	s.IdentifiedLanguageScore = &v
  4474  	return s
  4475  }
  4476  
  4477  // SetLanguageCode sets the LanguageCode field's value.
  4478  func (s *CallAnalyticsJob) SetLanguageCode(v string) *CallAnalyticsJob {
  4479  	s.LanguageCode = &v
  4480  	return s
  4481  }
  4482  
  4483  // SetMedia sets the Media field's value.
  4484  func (s *CallAnalyticsJob) SetMedia(v *Media) *CallAnalyticsJob {
  4485  	s.Media = v
  4486  	return s
  4487  }
  4488  
  4489  // SetMediaFormat sets the MediaFormat field's value.
  4490  func (s *CallAnalyticsJob) SetMediaFormat(v string) *CallAnalyticsJob {
  4491  	s.MediaFormat = &v
  4492  	return s
  4493  }
  4494  
  4495  // SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
  4496  func (s *CallAnalyticsJob) SetMediaSampleRateHertz(v int64) *CallAnalyticsJob {
  4497  	s.MediaSampleRateHertz = &v
  4498  	return s
  4499  }
  4500  
  4501  // SetSettings sets the Settings field's value.
  4502  func (s *CallAnalyticsJob) SetSettings(v *CallAnalyticsJobSettings) *CallAnalyticsJob {
  4503  	s.Settings = v
  4504  	return s
  4505  }
  4506  
  4507  // SetStartTime sets the StartTime field's value.
  4508  func (s *CallAnalyticsJob) SetStartTime(v time.Time) *CallAnalyticsJob {
  4509  	s.StartTime = &v
  4510  	return s
  4511  }
  4512  
  4513  // SetTranscript sets the Transcript field's value.
  4514  func (s *CallAnalyticsJob) SetTranscript(v *Transcript) *CallAnalyticsJob {
  4515  	s.Transcript = v
  4516  	return s
  4517  }
  4518  
  4519  // Provides optional settings for the CallAnalyticsJob operation.
  4520  type CallAnalyticsJobSettings struct {
  4521  	_ struct{} `type:"structure"`
  4522  
  4523  	// Settings for content redaction within a transcription job.
  4524  	ContentRedaction *ContentRedaction `type:"structure"`
  4525  
  4526  	// The structure used to describe a custom language model.
  4527  	LanguageModelName *string `min:"1" type:"string"`
  4528  
  4529  	// When you run a call analytics job, you can specify the language spoken in
  4530  	// the audio, or you can have Amazon Transcribe identify the language for you.
  4531  	//
  4532  	// To specify a language, specify an array with one language code. If you don't
  4533  	// know the language, you can leave this field blank and Amazon Transcribe will
  4534  	// use machine learning to identify the language for you. To improve the ability
  4535  	// of Amazon Transcribe to correctly identify the language, you can provide
  4536  	// an array of the languages that can be present in the audio. Refer to Supported
  4537  	// languages and language-specific features (https://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html)
  4538  	// for additional information.
  4539  	LanguageOptions []*string `min:"1" type:"list"`
  4540  
  4541  	// Set to mask to remove filtered text from the transcript and replace it with
  4542  	// three asterisks ("***") as placeholder text. Set to remove to remove filtered
  4543  	// text from the transcript without using placeholder text. Set to tag to mark
  4544  	// the word in the transcription output that matches the vocabulary filter.
  4545  	// When you set the filter method to tag, the words matching your vocabulary
  4546  	// filter are not masked or removed.
  4547  	VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"`
  4548  
  4549  	// The name of the vocabulary filter to use when running a call analytics job.
  4550  	// The filter that you specify must have the same language code as the analytics
  4551  	// job.
  4552  	VocabularyFilterName *string `min:"1" type:"string"`
  4553  
  4554  	// The name of a vocabulary to use when processing the call analytics job.
  4555  	VocabularyName *string `min:"1" type:"string"`
  4556  }
  4557  
  4558  // String returns the string representation.
  4559  //
  4560  // API parameter values that are decorated as "sensitive" in the API will not
  4561  // be included in the string output. The member name will be present, but the
  4562  // value will be replaced with "sensitive".
  4563  func (s CallAnalyticsJobSettings) String() string {
  4564  	return awsutil.Prettify(s)
  4565  }
  4566  
  4567  // GoString returns the string representation.
  4568  //
  4569  // API parameter values that are decorated as "sensitive" in the API will not
  4570  // be included in the string output. The member name will be present, but the
  4571  // value will be replaced with "sensitive".
  4572  func (s CallAnalyticsJobSettings) GoString() string {
  4573  	return s.String()
  4574  }
  4575  
  4576  // Validate inspects the fields of the type to determine if they are valid.
  4577  func (s *CallAnalyticsJobSettings) Validate() error {
  4578  	invalidParams := request.ErrInvalidParams{Context: "CallAnalyticsJobSettings"}
  4579  	if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 {
  4580  		invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1))
  4581  	}
  4582  	if s.LanguageOptions != nil && len(s.LanguageOptions) < 1 {
  4583  		invalidParams.Add(request.NewErrParamMinLen("LanguageOptions", 1))
  4584  	}
  4585  	if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 {
  4586  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1))
  4587  	}
  4588  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  4589  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  4590  	}
  4591  	if s.ContentRedaction != nil {
  4592  		if err := s.ContentRedaction.Validate(); err != nil {
  4593  			invalidParams.AddNested("ContentRedaction", err.(request.ErrInvalidParams))
  4594  		}
  4595  	}
  4596  
  4597  	if invalidParams.Len() > 0 {
  4598  		return invalidParams
  4599  	}
  4600  	return nil
  4601  }
  4602  
  4603  // SetContentRedaction sets the ContentRedaction field's value.
  4604  func (s *CallAnalyticsJobSettings) SetContentRedaction(v *ContentRedaction) *CallAnalyticsJobSettings {
  4605  	s.ContentRedaction = v
  4606  	return s
  4607  }
  4608  
  4609  // SetLanguageModelName sets the LanguageModelName field's value.
  4610  func (s *CallAnalyticsJobSettings) SetLanguageModelName(v string) *CallAnalyticsJobSettings {
  4611  	s.LanguageModelName = &v
  4612  	return s
  4613  }
  4614  
  4615  // SetLanguageOptions sets the LanguageOptions field's value.
  4616  func (s *CallAnalyticsJobSettings) SetLanguageOptions(v []*string) *CallAnalyticsJobSettings {
  4617  	s.LanguageOptions = v
  4618  	return s
  4619  }
  4620  
  4621  // SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value.
  4622  func (s *CallAnalyticsJobSettings) SetVocabularyFilterMethod(v string) *CallAnalyticsJobSettings {
  4623  	s.VocabularyFilterMethod = &v
  4624  	return s
  4625  }
  4626  
  4627  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  4628  func (s *CallAnalyticsJobSettings) SetVocabularyFilterName(v string) *CallAnalyticsJobSettings {
  4629  	s.VocabularyFilterName = &v
  4630  	return s
  4631  }
  4632  
  4633  // SetVocabularyName sets the VocabularyName field's value.
  4634  func (s *CallAnalyticsJobSettings) SetVocabularyName(v string) *CallAnalyticsJobSettings {
  4635  	s.VocabularyName = &v
  4636  	return s
  4637  }
  4638  
  4639  // Provides summary information about a call analytics job.
  4640  type CallAnalyticsJobSummary struct {
  4641  	_ struct{} `type:"structure"`
  4642  
  4643  	// The name of the call analytics job.
  4644  	CallAnalyticsJobName *string `min:"1" type:"string"`
  4645  
  4646  	// The status of the call analytics job.
  4647  	CallAnalyticsJobStatus *string `type:"string" enum:"CallAnalyticsJobStatus"`
  4648  
  4649  	// A timestamp that shows when the job was completed.
  4650  	CompletionTime *time.Time `type:"timestamp"`
  4651  
  4652  	// A timestamp that shows when the call analytics job was created.
  4653  	CreationTime *time.Time `type:"timestamp"`
  4654  
  4655  	// If the CallAnalyticsJobStatus is FAILED, a description of the error.
  4656  	FailureReason *string `type:"string"`
  4657  
  4658  	// The language of the transcript in the source audio file.
  4659  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  4660  
  4661  	// A timestamp that shows when the job began processing.
  4662  	StartTime *time.Time `type:"timestamp"`
  4663  }
  4664  
  4665  // String returns the string representation.
  4666  //
  4667  // API parameter values that are decorated as "sensitive" in the API will not
  4668  // be included in the string output. The member name will be present, but the
  4669  // value will be replaced with "sensitive".
  4670  func (s CallAnalyticsJobSummary) String() string {
  4671  	return awsutil.Prettify(s)
  4672  }
  4673  
  4674  // GoString returns the string representation.
  4675  //
  4676  // API parameter values that are decorated as "sensitive" in the API will not
  4677  // be included in the string output. The member name will be present, but the
  4678  // value will be replaced with "sensitive".
  4679  func (s CallAnalyticsJobSummary) GoString() string {
  4680  	return s.String()
  4681  }
  4682  
  4683  // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value.
  4684  func (s *CallAnalyticsJobSummary) SetCallAnalyticsJobName(v string) *CallAnalyticsJobSummary {
  4685  	s.CallAnalyticsJobName = &v
  4686  	return s
  4687  }
  4688  
  4689  // SetCallAnalyticsJobStatus sets the CallAnalyticsJobStatus field's value.
  4690  func (s *CallAnalyticsJobSummary) SetCallAnalyticsJobStatus(v string) *CallAnalyticsJobSummary {
  4691  	s.CallAnalyticsJobStatus = &v
  4692  	return s
  4693  }
  4694  
  4695  // SetCompletionTime sets the CompletionTime field's value.
  4696  func (s *CallAnalyticsJobSummary) SetCompletionTime(v time.Time) *CallAnalyticsJobSummary {
  4697  	s.CompletionTime = &v
  4698  	return s
  4699  }
  4700  
  4701  // SetCreationTime sets the CreationTime field's value.
  4702  func (s *CallAnalyticsJobSummary) SetCreationTime(v time.Time) *CallAnalyticsJobSummary {
  4703  	s.CreationTime = &v
  4704  	return s
  4705  }
  4706  
  4707  // SetFailureReason sets the FailureReason field's value.
  4708  func (s *CallAnalyticsJobSummary) SetFailureReason(v string) *CallAnalyticsJobSummary {
  4709  	s.FailureReason = &v
  4710  	return s
  4711  }
  4712  
  4713  // SetLanguageCode sets the LanguageCode field's value.
  4714  func (s *CallAnalyticsJobSummary) SetLanguageCode(v string) *CallAnalyticsJobSummary {
  4715  	s.LanguageCode = &v
  4716  	return s
  4717  }
  4718  
  4719  // SetStartTime sets the StartTime field's value.
  4720  func (s *CallAnalyticsJobSummary) SetStartTime(v time.Time) *CallAnalyticsJobSummary {
  4721  	s.StartTime = &v
  4722  	return s
  4723  }
  4724  
  4725  // An object that contains the rules and additional information about a call
  4726  // analytics category.
  4727  type CategoryProperties struct {
  4728  	_ struct{} `type:"structure"`
  4729  
  4730  	// The name of the call analytics category.
  4731  	CategoryName *string `min:"1" type:"string"`
  4732  
  4733  	// A timestamp that shows when the call analytics category was created.
  4734  	CreateTime *time.Time `type:"timestamp"`
  4735  
  4736  	// A timestamp that shows when the call analytics category was most recently
  4737  	// updated.
  4738  	LastUpdateTime *time.Time `type:"timestamp"`
  4739  
  4740  	// The rules used to create a call analytics category.
  4741  	Rules []*Rule `min:"1" type:"list"`
  4742  }
  4743  
  4744  // String returns the string representation.
  4745  //
  4746  // API parameter values that are decorated as "sensitive" in the API will not
  4747  // be included in the string output. The member name will be present, but the
  4748  // value will be replaced with "sensitive".
  4749  func (s CategoryProperties) String() string {
  4750  	return awsutil.Prettify(s)
  4751  }
  4752  
  4753  // GoString returns the string representation.
  4754  //
  4755  // API parameter values that are decorated as "sensitive" in the API will not
  4756  // be included in the string output. The member name will be present, but the
  4757  // value will be replaced with "sensitive".
  4758  func (s CategoryProperties) GoString() string {
  4759  	return s.String()
  4760  }
  4761  
  4762  // SetCategoryName sets the CategoryName field's value.
  4763  func (s *CategoryProperties) SetCategoryName(v string) *CategoryProperties {
  4764  	s.CategoryName = &v
  4765  	return s
  4766  }
  4767  
  4768  // SetCreateTime sets the CreateTime field's value.
  4769  func (s *CategoryProperties) SetCreateTime(v time.Time) *CategoryProperties {
  4770  	s.CreateTime = &v
  4771  	return s
  4772  }
  4773  
  4774  // SetLastUpdateTime sets the LastUpdateTime field's value.
  4775  func (s *CategoryProperties) SetLastUpdateTime(v time.Time) *CategoryProperties {
  4776  	s.LastUpdateTime = &v
  4777  	return s
  4778  }
  4779  
  4780  // SetRules sets the Rules field's value.
  4781  func (s *CategoryProperties) SetRules(v []*Rule) *CategoryProperties {
  4782  	s.Rules = v
  4783  	return s
  4784  }
  4785  
  4786  // For a call analytics job, an object that indicates the audio channel that
  4787  // belongs to the agent and the audio channel that belongs to the customer.
  4788  type ChannelDefinition struct {
  4789  	_ struct{} `type:"structure"`
  4790  
  4791  	// A value that indicates the audio channel.
  4792  	ChannelId *int64 `type:"integer"`
  4793  
  4794  	// Indicates whether the person speaking on the audio channel is the agent or
  4795  	// customer.
  4796  	ParticipantRole *string `type:"string" enum:"ParticipantRole"`
  4797  }
  4798  
  4799  // String returns the string representation.
  4800  //
  4801  // API parameter values that are decorated as "sensitive" in the API will not
  4802  // be included in the string output. The member name will be present, but the
  4803  // value will be replaced with "sensitive".
  4804  func (s ChannelDefinition) String() string {
  4805  	return awsutil.Prettify(s)
  4806  }
  4807  
  4808  // GoString returns the string representation.
  4809  //
  4810  // API parameter values that are decorated as "sensitive" in the API will not
  4811  // be included in the string output. The member name will be present, but the
  4812  // value will be replaced with "sensitive".
  4813  func (s ChannelDefinition) GoString() string {
  4814  	return s.String()
  4815  }
  4816  
  4817  // SetChannelId sets the ChannelId field's value.
  4818  func (s *ChannelDefinition) SetChannelId(v int64) *ChannelDefinition {
  4819  	s.ChannelId = &v
  4820  	return s
  4821  }
  4822  
  4823  // SetParticipantRole sets the ParticipantRole field's value.
  4824  func (s *ChannelDefinition) SetParticipantRole(v string) *ChannelDefinition {
  4825  	s.ParticipantRole = &v
  4826  	return s
  4827  }
  4828  
  4829  // There is already a resource with that name.
  4830  type ConflictException struct {
  4831  	_            struct{}                  `type:"structure"`
  4832  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  4833  
  4834  	Message_ *string `locationName:"Message" type:"string"`
  4835  }
  4836  
  4837  // String returns the string representation.
  4838  //
  4839  // API parameter values that are decorated as "sensitive" in the API will not
  4840  // be included in the string output. The member name will be present, but the
  4841  // value will be replaced with "sensitive".
  4842  func (s ConflictException) String() string {
  4843  	return awsutil.Prettify(s)
  4844  }
  4845  
  4846  // GoString returns the string representation.
  4847  //
  4848  // API parameter values that are decorated as "sensitive" in the API will not
  4849  // be included in the string output. The member name will be present, but the
  4850  // value will be replaced with "sensitive".
  4851  func (s ConflictException) GoString() string {
  4852  	return s.String()
  4853  }
  4854  
  4855  func newErrorConflictException(v protocol.ResponseMetadata) error {
  4856  	return &ConflictException{
  4857  		RespMetadata: v,
  4858  	}
  4859  }
  4860  
  4861  // Code returns the exception type name.
  4862  func (s *ConflictException) Code() string {
  4863  	return "ConflictException"
  4864  }
  4865  
  4866  // Message returns the exception's message.
  4867  func (s *ConflictException) Message() string {
  4868  	if s.Message_ != nil {
  4869  		return *s.Message_
  4870  	}
  4871  	return ""
  4872  }
  4873  
  4874  // OrigErr always returns nil, satisfies awserr.Error interface.
  4875  func (s *ConflictException) OrigErr() error {
  4876  	return nil
  4877  }
  4878  
  4879  func (s *ConflictException) Error() string {
  4880  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  4881  }
  4882  
  4883  // Status code returns the HTTP status code for the request's response error.
  4884  func (s *ConflictException) StatusCode() int {
  4885  	return s.RespMetadata.StatusCode
  4886  }
  4887  
  4888  // RequestID returns the service's response RequestID for request.
  4889  func (s *ConflictException) RequestID() string {
  4890  	return s.RespMetadata.RequestID
  4891  }
  4892  
  4893  // Settings for content redaction within a transcription job.
  4894  type ContentRedaction struct {
  4895  	_ struct{} `type:"structure"`
  4896  
  4897  	// The output transcript file stored in either the default S3 bucket or in a
  4898  	// bucket you specify.
  4899  	//
  4900  	// When you choose redacted Amazon Transcribe outputs only the redacted transcript.
  4901  	//
  4902  	// When you choose redacted_and_unredacted Amazon Transcribe outputs both the
  4903  	// redacted and unredacted transcripts.
  4904  	//
  4905  	// RedactionOutput is a required field
  4906  	RedactionOutput *string `type:"string" required:"true" enum:"RedactionOutput"`
  4907  
  4908  	// Request parameter that defines the entities to be redacted. The only accepted
  4909  	// value is PII.
  4910  	//
  4911  	// RedactionType is a required field
  4912  	RedactionType *string `type:"string" required:"true" enum:"RedactionType"`
  4913  }
  4914  
  4915  // String returns the string representation.
  4916  //
  4917  // API parameter values that are decorated as "sensitive" in the API will not
  4918  // be included in the string output. The member name will be present, but the
  4919  // value will be replaced with "sensitive".
  4920  func (s ContentRedaction) String() string {
  4921  	return awsutil.Prettify(s)
  4922  }
  4923  
  4924  // GoString returns the string representation.
  4925  //
  4926  // API parameter values that are decorated as "sensitive" in the API will not
  4927  // be included in the string output. The member name will be present, but the
  4928  // value will be replaced with "sensitive".
  4929  func (s ContentRedaction) GoString() string {
  4930  	return s.String()
  4931  }
  4932  
  4933  // Validate inspects the fields of the type to determine if they are valid.
  4934  func (s *ContentRedaction) Validate() error {
  4935  	invalidParams := request.ErrInvalidParams{Context: "ContentRedaction"}
  4936  	if s.RedactionOutput == nil {
  4937  		invalidParams.Add(request.NewErrParamRequired("RedactionOutput"))
  4938  	}
  4939  	if s.RedactionType == nil {
  4940  		invalidParams.Add(request.NewErrParamRequired("RedactionType"))
  4941  	}
  4942  
  4943  	if invalidParams.Len() > 0 {
  4944  		return invalidParams
  4945  	}
  4946  	return nil
  4947  }
  4948  
  4949  // SetRedactionOutput sets the RedactionOutput field's value.
  4950  func (s *ContentRedaction) SetRedactionOutput(v string) *ContentRedaction {
  4951  	s.RedactionOutput = &v
  4952  	return s
  4953  }
  4954  
  4955  // SetRedactionType sets the RedactionType field's value.
  4956  func (s *ContentRedaction) SetRedactionType(v string) *ContentRedaction {
  4957  	s.RedactionType = &v
  4958  	return s
  4959  }
  4960  
  4961  type CreateCallAnalyticsCategoryInput struct {
  4962  	_ struct{} `type:"structure"`
  4963  
  4964  	// The name that you choose for your category when you create it.
  4965  	//
  4966  	// CategoryName is a required field
  4967  	CategoryName *string `min:"1" type:"string" required:"true"`
  4968  
  4969  	// To create a category, you must specify between 1 and 20 rules. For each rule,
  4970  	// you specify a filter to be applied to the attributes of the call. For example,
  4971  	// you can specify a sentiment filter to detect if the customer's sentiment
  4972  	// was negative or neutral.
  4973  	//
  4974  	// Rules is a required field
  4975  	Rules []*Rule `min:"1" type:"list" required:"true"`
  4976  }
  4977  
  4978  // String returns the string representation.
  4979  //
  4980  // API parameter values that are decorated as "sensitive" in the API will not
  4981  // be included in the string output. The member name will be present, but the
  4982  // value will be replaced with "sensitive".
  4983  func (s CreateCallAnalyticsCategoryInput) String() string {
  4984  	return awsutil.Prettify(s)
  4985  }
  4986  
  4987  // GoString returns the string representation.
  4988  //
  4989  // API parameter values that are decorated as "sensitive" in the API will not
  4990  // be included in the string output. The member name will be present, but the
  4991  // value will be replaced with "sensitive".
  4992  func (s CreateCallAnalyticsCategoryInput) GoString() string {
  4993  	return s.String()
  4994  }
  4995  
  4996  // Validate inspects the fields of the type to determine if they are valid.
  4997  func (s *CreateCallAnalyticsCategoryInput) Validate() error {
  4998  	invalidParams := request.ErrInvalidParams{Context: "CreateCallAnalyticsCategoryInput"}
  4999  	if s.CategoryName == nil {
  5000  		invalidParams.Add(request.NewErrParamRequired("CategoryName"))
  5001  	}
  5002  	if s.CategoryName != nil && len(*s.CategoryName) < 1 {
  5003  		invalidParams.Add(request.NewErrParamMinLen("CategoryName", 1))
  5004  	}
  5005  	if s.Rules == nil {
  5006  		invalidParams.Add(request.NewErrParamRequired("Rules"))
  5007  	}
  5008  	if s.Rules != nil && len(s.Rules) < 1 {
  5009  		invalidParams.Add(request.NewErrParamMinLen("Rules", 1))
  5010  	}
  5011  	if s.Rules != nil {
  5012  		for i, v := range s.Rules {
  5013  			if v == nil {
  5014  				continue
  5015  			}
  5016  			if err := v.Validate(); err != nil {
  5017  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
  5018  			}
  5019  		}
  5020  	}
  5021  
  5022  	if invalidParams.Len() > 0 {
  5023  		return invalidParams
  5024  	}
  5025  	return nil
  5026  }
  5027  
  5028  // SetCategoryName sets the CategoryName field's value.
  5029  func (s *CreateCallAnalyticsCategoryInput) SetCategoryName(v string) *CreateCallAnalyticsCategoryInput {
  5030  	s.CategoryName = &v
  5031  	return s
  5032  }
  5033  
  5034  // SetRules sets the Rules field's value.
  5035  func (s *CreateCallAnalyticsCategoryInput) SetRules(v []*Rule) *CreateCallAnalyticsCategoryInput {
  5036  	s.Rules = v
  5037  	return s
  5038  }
  5039  
  5040  type CreateCallAnalyticsCategoryOutput struct {
  5041  	_ struct{} `type:"structure"`
  5042  
  5043  	// The rules and associated metadata used to create a category.
  5044  	CategoryProperties *CategoryProperties `type:"structure"`
  5045  }
  5046  
  5047  // String 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 CreateCallAnalyticsCategoryOutput) String() string {
  5053  	return awsutil.Prettify(s)
  5054  }
  5055  
  5056  // GoString returns the string representation.
  5057  //
  5058  // API parameter values that are decorated as "sensitive" in the API will not
  5059  // be included in the string output. The member name will be present, but the
  5060  // value will be replaced with "sensitive".
  5061  func (s CreateCallAnalyticsCategoryOutput) GoString() string {
  5062  	return s.String()
  5063  }
  5064  
  5065  // SetCategoryProperties sets the CategoryProperties field's value.
  5066  func (s *CreateCallAnalyticsCategoryOutput) SetCategoryProperties(v *CategoryProperties) *CreateCallAnalyticsCategoryOutput {
  5067  	s.CategoryProperties = v
  5068  	return s
  5069  }
  5070  
  5071  type CreateLanguageModelInput struct {
  5072  	_ struct{} `type:"structure"`
  5073  
  5074  	// The Amazon Transcribe standard language model, or base model used to create
  5075  	// your custom language model.
  5076  	//
  5077  	// If you want to use your custom language model to transcribe audio with a
  5078  	// sample rate of 16,000 Hz or greater, choose Wideband.
  5079  	//
  5080  	// If you want to use your custom language model to transcribe audio with a
  5081  	// sample rate that is less than 16,000 Hz, choose Narrowband.
  5082  	//
  5083  	// BaseModelName is a required field
  5084  	BaseModelName *string `type:"string" required:"true" enum:"BaseModelName"`
  5085  
  5086  	// Contains the data access role and the Amazon S3 prefixes to read the required
  5087  	// input files to create a custom language model.
  5088  	//
  5089  	// InputDataConfig is a required field
  5090  	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
  5091  
  5092  	// The language of the input text you're using to train your custom language
  5093  	// model.
  5094  	//
  5095  	// LanguageCode is a required field
  5096  	LanguageCode *string `type:"string" required:"true" enum:"CLMLanguageCode"`
  5097  
  5098  	// The name you choose for your custom language model when you create it.
  5099  	//
  5100  	// ModelName is a required field
  5101  	ModelName *string `min:"1" type:"string" required:"true"`
  5102  
  5103  	// Adds one or more tags, each in the form of a key:value pair, to a new language
  5104  	// model at the time you create this new model.
  5105  	Tags []*Tag `min:"1" type:"list"`
  5106  }
  5107  
  5108  // String returns the string representation.
  5109  //
  5110  // API parameter values that are decorated as "sensitive" in the API will not
  5111  // be included in the string output. The member name will be present, but the
  5112  // value will be replaced with "sensitive".
  5113  func (s CreateLanguageModelInput) String() string {
  5114  	return awsutil.Prettify(s)
  5115  }
  5116  
  5117  // GoString returns the string representation.
  5118  //
  5119  // API parameter values that are decorated as "sensitive" in the API will not
  5120  // be included in the string output. The member name will be present, but the
  5121  // value will be replaced with "sensitive".
  5122  func (s CreateLanguageModelInput) GoString() string {
  5123  	return s.String()
  5124  }
  5125  
  5126  // Validate inspects the fields of the type to determine if they are valid.
  5127  func (s *CreateLanguageModelInput) Validate() error {
  5128  	invalidParams := request.ErrInvalidParams{Context: "CreateLanguageModelInput"}
  5129  	if s.BaseModelName == nil {
  5130  		invalidParams.Add(request.NewErrParamRequired("BaseModelName"))
  5131  	}
  5132  	if s.InputDataConfig == nil {
  5133  		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
  5134  	}
  5135  	if s.LanguageCode == nil {
  5136  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
  5137  	}
  5138  	if s.ModelName == nil {
  5139  		invalidParams.Add(request.NewErrParamRequired("ModelName"))
  5140  	}
  5141  	if s.ModelName != nil && len(*s.ModelName) < 1 {
  5142  		invalidParams.Add(request.NewErrParamMinLen("ModelName", 1))
  5143  	}
  5144  	if s.Tags != nil && len(s.Tags) < 1 {
  5145  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  5146  	}
  5147  	if s.InputDataConfig != nil {
  5148  		if err := s.InputDataConfig.Validate(); err != nil {
  5149  			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
  5150  		}
  5151  	}
  5152  	if s.Tags != nil {
  5153  		for i, v := range s.Tags {
  5154  			if v == nil {
  5155  				continue
  5156  			}
  5157  			if err := v.Validate(); err != nil {
  5158  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  5159  			}
  5160  		}
  5161  	}
  5162  
  5163  	if invalidParams.Len() > 0 {
  5164  		return invalidParams
  5165  	}
  5166  	return nil
  5167  }
  5168  
  5169  // SetBaseModelName sets the BaseModelName field's value.
  5170  func (s *CreateLanguageModelInput) SetBaseModelName(v string) *CreateLanguageModelInput {
  5171  	s.BaseModelName = &v
  5172  	return s
  5173  }
  5174  
  5175  // SetInputDataConfig sets the InputDataConfig field's value.
  5176  func (s *CreateLanguageModelInput) SetInputDataConfig(v *InputDataConfig) *CreateLanguageModelInput {
  5177  	s.InputDataConfig = v
  5178  	return s
  5179  }
  5180  
  5181  // SetLanguageCode sets the LanguageCode field's value.
  5182  func (s *CreateLanguageModelInput) SetLanguageCode(v string) *CreateLanguageModelInput {
  5183  	s.LanguageCode = &v
  5184  	return s
  5185  }
  5186  
  5187  // SetModelName sets the ModelName field's value.
  5188  func (s *CreateLanguageModelInput) SetModelName(v string) *CreateLanguageModelInput {
  5189  	s.ModelName = &v
  5190  	return s
  5191  }
  5192  
  5193  // SetTags sets the Tags field's value.
  5194  func (s *CreateLanguageModelInput) SetTags(v []*Tag) *CreateLanguageModelInput {
  5195  	s.Tags = v
  5196  	return s
  5197  }
  5198  
  5199  type CreateLanguageModelOutput struct {
  5200  	_ struct{} `type:"structure"`
  5201  
  5202  	// The Amazon Transcribe standard language model, or base model you've used
  5203  	// to create a custom language model.
  5204  	BaseModelName *string `type:"string" enum:"BaseModelName"`
  5205  
  5206  	// The data access role and Amazon S3 prefixes you've chosen to create your
  5207  	// custom language model.
  5208  	InputDataConfig *InputDataConfig `type:"structure"`
  5209  
  5210  	// The language code of the text you've used to create a custom language model.
  5211  	LanguageCode *string `type:"string" enum:"CLMLanguageCode"`
  5212  
  5213  	// The name you've chosen for your custom language model.
  5214  	ModelName *string `min:"1" type:"string"`
  5215  
  5216  	// The status of the custom language model. When the status is COMPLETED the
  5217  	// model is ready to use.
  5218  	ModelStatus *string `type:"string" enum:"ModelStatus"`
  5219  }
  5220  
  5221  // String returns the string representation.
  5222  //
  5223  // API parameter values that are decorated as "sensitive" in the API will not
  5224  // be included in the string output. The member name will be present, but the
  5225  // value will be replaced with "sensitive".
  5226  func (s CreateLanguageModelOutput) String() string {
  5227  	return awsutil.Prettify(s)
  5228  }
  5229  
  5230  // GoString returns the string representation.
  5231  //
  5232  // API parameter values that are decorated as "sensitive" in the API will not
  5233  // be included in the string output. The member name will be present, but the
  5234  // value will be replaced with "sensitive".
  5235  func (s CreateLanguageModelOutput) GoString() string {
  5236  	return s.String()
  5237  }
  5238  
  5239  // SetBaseModelName sets the BaseModelName field's value.
  5240  func (s *CreateLanguageModelOutput) SetBaseModelName(v string) *CreateLanguageModelOutput {
  5241  	s.BaseModelName = &v
  5242  	return s
  5243  }
  5244  
  5245  // SetInputDataConfig sets the InputDataConfig field's value.
  5246  func (s *CreateLanguageModelOutput) SetInputDataConfig(v *InputDataConfig) *CreateLanguageModelOutput {
  5247  	s.InputDataConfig = v
  5248  	return s
  5249  }
  5250  
  5251  // SetLanguageCode sets the LanguageCode field's value.
  5252  func (s *CreateLanguageModelOutput) SetLanguageCode(v string) *CreateLanguageModelOutput {
  5253  	s.LanguageCode = &v
  5254  	return s
  5255  }
  5256  
  5257  // SetModelName sets the ModelName field's value.
  5258  func (s *CreateLanguageModelOutput) SetModelName(v string) *CreateLanguageModelOutput {
  5259  	s.ModelName = &v
  5260  	return s
  5261  }
  5262  
  5263  // SetModelStatus sets the ModelStatus field's value.
  5264  func (s *CreateLanguageModelOutput) SetModelStatus(v string) *CreateLanguageModelOutput {
  5265  	s.ModelStatus = &v
  5266  	return s
  5267  }
  5268  
  5269  type CreateMedicalVocabularyInput struct {
  5270  	_ struct{} `type:"structure"`
  5271  
  5272  	// The language code for the language used for the entries in your custom vocabulary.
  5273  	// The language code of your custom vocabulary must match the language code
  5274  	// of your transcription job. US English (en-US) is the only language code available
  5275  	// for Amazon Transcribe Medical.
  5276  	//
  5277  	// LanguageCode is a required field
  5278  	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
  5279  
  5280  	// Adds one or more tags, each in the form of a key:value pair, to a new medical
  5281  	// vocabulary at the time you create this new vocabulary.
  5282  	Tags []*Tag `min:"1" type:"list"`
  5283  
  5284  	// The location in Amazon S3 of the text file you use to define your custom
  5285  	// vocabulary. The URI must be in the same Amazon Web Services Region as the
  5286  	// resource that you're calling. Enter information about your VocabularyFileUri
  5287  	// in the following format:
  5288  	//
  5289  	// https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
  5290  	//
  5291  	// The following is an example URI for a vocabulary file that is stored in Amazon
  5292  	// S3:
  5293  	//
  5294  	// https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt
  5295  	//
  5296  	// For more information about Amazon S3 object names, see Object Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys)
  5297  	// in the Amazon S3 Developer Guide.
  5298  	//
  5299  	// For more information about custom vocabularies, see Medical Custom Vocabularies
  5300  	// (https://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary-med).
  5301  	//
  5302  	// VocabularyFileUri is a required field
  5303  	VocabularyFileUri *string `min:"1" type:"string" required:"true"`
  5304  
  5305  	// The name of the custom vocabulary. This case-sensitive name must be unique
  5306  	// within an Amazon Web Services account. If you try to create a vocabulary
  5307  	// with the same name as a previous vocabulary, you get a ConflictException
  5308  	// error.
  5309  	//
  5310  	// VocabularyName is a required field
  5311  	VocabularyName *string `min:"1" type:"string" required:"true"`
  5312  }
  5313  
  5314  // String returns the string representation.
  5315  //
  5316  // API parameter values that are decorated as "sensitive" in the API will not
  5317  // be included in the string output. The member name will be present, but the
  5318  // value will be replaced with "sensitive".
  5319  func (s CreateMedicalVocabularyInput) String() string {
  5320  	return awsutil.Prettify(s)
  5321  }
  5322  
  5323  // GoString returns the string representation.
  5324  //
  5325  // API parameter values that are decorated as "sensitive" in the API will not
  5326  // be included in the string output. The member name will be present, but the
  5327  // value will be replaced with "sensitive".
  5328  func (s CreateMedicalVocabularyInput) GoString() string {
  5329  	return s.String()
  5330  }
  5331  
  5332  // Validate inspects the fields of the type to determine if they are valid.
  5333  func (s *CreateMedicalVocabularyInput) Validate() error {
  5334  	invalidParams := request.ErrInvalidParams{Context: "CreateMedicalVocabularyInput"}
  5335  	if s.LanguageCode == nil {
  5336  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
  5337  	}
  5338  	if s.Tags != nil && len(s.Tags) < 1 {
  5339  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  5340  	}
  5341  	if s.VocabularyFileUri == nil {
  5342  		invalidParams.Add(request.NewErrParamRequired("VocabularyFileUri"))
  5343  	}
  5344  	if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 {
  5345  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1))
  5346  	}
  5347  	if s.VocabularyName == nil {
  5348  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
  5349  	}
  5350  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  5351  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  5352  	}
  5353  	if s.Tags != nil {
  5354  		for i, v := range s.Tags {
  5355  			if v == nil {
  5356  				continue
  5357  			}
  5358  			if err := v.Validate(); err != nil {
  5359  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  5360  			}
  5361  		}
  5362  	}
  5363  
  5364  	if invalidParams.Len() > 0 {
  5365  		return invalidParams
  5366  	}
  5367  	return nil
  5368  }
  5369  
  5370  // SetLanguageCode sets the LanguageCode field's value.
  5371  func (s *CreateMedicalVocabularyInput) SetLanguageCode(v string) *CreateMedicalVocabularyInput {
  5372  	s.LanguageCode = &v
  5373  	return s
  5374  }
  5375  
  5376  // SetTags sets the Tags field's value.
  5377  func (s *CreateMedicalVocabularyInput) SetTags(v []*Tag) *CreateMedicalVocabularyInput {
  5378  	s.Tags = v
  5379  	return s
  5380  }
  5381  
  5382  // SetVocabularyFileUri sets the VocabularyFileUri field's value.
  5383  func (s *CreateMedicalVocabularyInput) SetVocabularyFileUri(v string) *CreateMedicalVocabularyInput {
  5384  	s.VocabularyFileUri = &v
  5385  	return s
  5386  }
  5387  
  5388  // SetVocabularyName sets the VocabularyName field's value.
  5389  func (s *CreateMedicalVocabularyInput) SetVocabularyName(v string) *CreateMedicalVocabularyInput {
  5390  	s.VocabularyName = &v
  5391  	return s
  5392  }
  5393  
  5394  type CreateMedicalVocabularyOutput struct {
  5395  	_ struct{} `type:"structure"`
  5396  
  5397  	// If the VocabularyState field is FAILED, this field contains information about
  5398  	// why the job failed.
  5399  	FailureReason *string `type:"string"`
  5400  
  5401  	// The language code for the entries in your custom vocabulary. US English (en-US)
  5402  	// is the only valid language code for Amazon Transcribe Medical.
  5403  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  5404  
  5405  	// The date and time that you created the vocabulary.
  5406  	LastModifiedTime *time.Time `type:"timestamp"`
  5407  
  5408  	// The name of the vocabulary. The name must be unique within an Amazon Web
  5409  	// Services account and is case sensitive.
  5410  	VocabularyName *string `min:"1" type:"string"`
  5411  
  5412  	// The processing state of your custom vocabulary in Amazon Transcribe Medical.
  5413  	// If the state is READY, you can use the vocabulary in a StartMedicalTranscriptionJob
  5414  	// request.
  5415  	VocabularyState *string `type:"string" enum:"VocabularyState"`
  5416  }
  5417  
  5418  // String returns the string representation.
  5419  //
  5420  // API parameter values that are decorated as "sensitive" in the API will not
  5421  // be included in the string output. The member name will be present, but the
  5422  // value will be replaced with "sensitive".
  5423  func (s CreateMedicalVocabularyOutput) String() string {
  5424  	return awsutil.Prettify(s)
  5425  }
  5426  
  5427  // GoString returns the string representation.
  5428  //
  5429  // API parameter values that are decorated as "sensitive" in the API will not
  5430  // be included in the string output. The member name will be present, but the
  5431  // value will be replaced with "sensitive".
  5432  func (s CreateMedicalVocabularyOutput) GoString() string {
  5433  	return s.String()
  5434  }
  5435  
  5436  // SetFailureReason sets the FailureReason field's value.
  5437  func (s *CreateMedicalVocabularyOutput) SetFailureReason(v string) *CreateMedicalVocabularyOutput {
  5438  	s.FailureReason = &v
  5439  	return s
  5440  }
  5441  
  5442  // SetLanguageCode sets the LanguageCode field's value.
  5443  func (s *CreateMedicalVocabularyOutput) SetLanguageCode(v string) *CreateMedicalVocabularyOutput {
  5444  	s.LanguageCode = &v
  5445  	return s
  5446  }
  5447  
  5448  // SetLastModifiedTime sets the LastModifiedTime field's value.
  5449  func (s *CreateMedicalVocabularyOutput) SetLastModifiedTime(v time.Time) *CreateMedicalVocabularyOutput {
  5450  	s.LastModifiedTime = &v
  5451  	return s
  5452  }
  5453  
  5454  // SetVocabularyName sets the VocabularyName field's value.
  5455  func (s *CreateMedicalVocabularyOutput) SetVocabularyName(v string) *CreateMedicalVocabularyOutput {
  5456  	s.VocabularyName = &v
  5457  	return s
  5458  }
  5459  
  5460  // SetVocabularyState sets the VocabularyState field's value.
  5461  func (s *CreateMedicalVocabularyOutput) SetVocabularyState(v string) *CreateMedicalVocabularyOutput {
  5462  	s.VocabularyState = &v
  5463  	return s
  5464  }
  5465  
  5466  type CreateVocabularyFilterInput struct {
  5467  	_ struct{} `type:"structure"`
  5468  
  5469  	// The language code of the words in the vocabulary filter. All words in the
  5470  	// filter must be in the same language. The vocabulary filter can only be used
  5471  	// with transcription jobs in the specified language.
  5472  	//
  5473  	// LanguageCode is a required field
  5474  	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
  5475  
  5476  	// Adds one or more tags, each in the form of a key:value pair, to a new Amazon
  5477  	// Transcribe vocabulary filter at the time you create this new vocabulary filter.
  5478  	Tags []*Tag `min:"1" type:"list"`
  5479  
  5480  	// The Amazon S3 location of a text file used as input to create the vocabulary
  5481  	// filter. Only use characters from the character set defined for custom vocabularies.
  5482  	// For a list of character sets, see Character Sets for Custom Vocabularies
  5483  	// (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets).
  5484  	//
  5485  	// The specified file must be less than 50 KB of UTF-8 characters.
  5486  	//
  5487  	// If you provide the location of a list of words in the VocabularyFilterFileUri
  5488  	// parameter, you can't use the Words parameter.
  5489  	VocabularyFilterFileUri *string `min:"1" type:"string"`
  5490  
  5491  	// The vocabulary filter name. The name must be unique within the account that
  5492  	// contains it. If you try to create a vocabulary filter with the same name
  5493  	// as another vocabulary filter, you get a ConflictException error.
  5494  	//
  5495  	// VocabularyFilterName is a required field
  5496  	VocabularyFilterName *string `min:"1" type:"string" required:"true"`
  5497  
  5498  	// The words to use in the vocabulary filter. Only use characters from the character
  5499  	// set defined for custom vocabularies. For a list of character sets, see Character
  5500  	// Sets for Custom Vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets).
  5501  	//
  5502  	// If you provide a list of words in the Words parameter, you can't use the
  5503  	// VocabularyFilterFileUri parameter.
  5504  	Words []*string `min:"1" type:"list"`
  5505  }
  5506  
  5507  // String returns the string representation.
  5508  //
  5509  // API parameter values that are decorated as "sensitive" in the API will not
  5510  // be included in the string output. The member name will be present, but the
  5511  // value will be replaced with "sensitive".
  5512  func (s CreateVocabularyFilterInput) String() string {
  5513  	return awsutil.Prettify(s)
  5514  }
  5515  
  5516  // GoString returns the string representation.
  5517  //
  5518  // API parameter values that are decorated as "sensitive" in the API will not
  5519  // be included in the string output. The member name will be present, but the
  5520  // value will be replaced with "sensitive".
  5521  func (s CreateVocabularyFilterInput) GoString() string {
  5522  	return s.String()
  5523  }
  5524  
  5525  // Validate inspects the fields of the type to determine if they are valid.
  5526  func (s *CreateVocabularyFilterInput) Validate() error {
  5527  	invalidParams := request.ErrInvalidParams{Context: "CreateVocabularyFilterInput"}
  5528  	if s.LanguageCode == nil {
  5529  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
  5530  	}
  5531  	if s.Tags != nil && len(s.Tags) < 1 {
  5532  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  5533  	}
  5534  	if s.VocabularyFilterFileUri != nil && len(*s.VocabularyFilterFileUri) < 1 {
  5535  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterFileUri", 1))
  5536  	}
  5537  	if s.VocabularyFilterName == nil {
  5538  		invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName"))
  5539  	}
  5540  	if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 {
  5541  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1))
  5542  	}
  5543  	if s.Words != nil && len(s.Words) < 1 {
  5544  		invalidParams.Add(request.NewErrParamMinLen("Words", 1))
  5545  	}
  5546  	if s.Tags != nil {
  5547  		for i, v := range s.Tags {
  5548  			if v == nil {
  5549  				continue
  5550  			}
  5551  			if err := v.Validate(); err != nil {
  5552  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  5553  			}
  5554  		}
  5555  	}
  5556  
  5557  	if invalidParams.Len() > 0 {
  5558  		return invalidParams
  5559  	}
  5560  	return nil
  5561  }
  5562  
  5563  // SetLanguageCode sets the LanguageCode field's value.
  5564  func (s *CreateVocabularyFilterInput) SetLanguageCode(v string) *CreateVocabularyFilterInput {
  5565  	s.LanguageCode = &v
  5566  	return s
  5567  }
  5568  
  5569  // SetTags sets the Tags field's value.
  5570  func (s *CreateVocabularyFilterInput) SetTags(v []*Tag) *CreateVocabularyFilterInput {
  5571  	s.Tags = v
  5572  	return s
  5573  }
  5574  
  5575  // SetVocabularyFilterFileUri sets the VocabularyFilterFileUri field's value.
  5576  func (s *CreateVocabularyFilterInput) SetVocabularyFilterFileUri(v string) *CreateVocabularyFilterInput {
  5577  	s.VocabularyFilterFileUri = &v
  5578  	return s
  5579  }
  5580  
  5581  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  5582  func (s *CreateVocabularyFilterInput) SetVocabularyFilterName(v string) *CreateVocabularyFilterInput {
  5583  	s.VocabularyFilterName = &v
  5584  	return s
  5585  }
  5586  
  5587  // SetWords sets the Words field's value.
  5588  func (s *CreateVocabularyFilterInput) SetWords(v []*string) *CreateVocabularyFilterInput {
  5589  	s.Words = v
  5590  	return s
  5591  }
  5592  
  5593  type CreateVocabularyFilterOutput struct {
  5594  	_ struct{} `type:"structure"`
  5595  
  5596  	// The language code of the words in the collection.
  5597  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  5598  
  5599  	// The date and time that the vocabulary filter was modified.
  5600  	LastModifiedTime *time.Time `type:"timestamp"`
  5601  
  5602  	// The name of the vocabulary filter.
  5603  	VocabularyFilterName *string `min:"1" type:"string"`
  5604  }
  5605  
  5606  // String returns the string representation.
  5607  //
  5608  // API parameter values that are decorated as "sensitive" in the API will not
  5609  // be included in the string output. The member name will be present, but the
  5610  // value will be replaced with "sensitive".
  5611  func (s CreateVocabularyFilterOutput) String() string {
  5612  	return awsutil.Prettify(s)
  5613  }
  5614  
  5615  // GoString returns the string representation.
  5616  //
  5617  // API parameter values that are decorated as "sensitive" in the API will not
  5618  // be included in the string output. The member name will be present, but the
  5619  // value will be replaced with "sensitive".
  5620  func (s CreateVocabularyFilterOutput) GoString() string {
  5621  	return s.String()
  5622  }
  5623  
  5624  // SetLanguageCode sets the LanguageCode field's value.
  5625  func (s *CreateVocabularyFilterOutput) SetLanguageCode(v string) *CreateVocabularyFilterOutput {
  5626  	s.LanguageCode = &v
  5627  	return s
  5628  }
  5629  
  5630  // SetLastModifiedTime sets the LastModifiedTime field's value.
  5631  func (s *CreateVocabularyFilterOutput) SetLastModifiedTime(v time.Time) *CreateVocabularyFilterOutput {
  5632  	s.LastModifiedTime = &v
  5633  	return s
  5634  }
  5635  
  5636  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  5637  func (s *CreateVocabularyFilterOutput) SetVocabularyFilterName(v string) *CreateVocabularyFilterOutput {
  5638  	s.VocabularyFilterName = &v
  5639  	return s
  5640  }
  5641  
  5642  type CreateVocabularyInput struct {
  5643  	_ struct{} `type:"structure"`
  5644  
  5645  	// The language code of the vocabulary entries. For a list of languages and
  5646  	// their corresponding language codes, see transcribe-whatis.
  5647  	//
  5648  	// LanguageCode is a required field
  5649  	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
  5650  
  5651  	// An array of strings that contains the vocabulary entries.
  5652  	Phrases []*string `type:"list"`
  5653  
  5654  	// Adds one or more tags, each in the form of a key:value pair, to a new Amazon
  5655  	// Transcribe vocabulary at the time you create this new vocabulary.
  5656  	Tags []*Tag `min:"1" type:"list"`
  5657  
  5658  	// The S3 location of the text file that contains the definition of the custom
  5659  	// vocabulary. The URI must be in the same region as the API endpoint that you
  5660  	// are calling. The general form is:
  5661  	//
  5662  	// For more information about S3 object names, see Object Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys)
  5663  	// in the Amazon S3 Developer Guide.
  5664  	//
  5665  	// For more information about custom vocabularies, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary).
  5666  	VocabularyFileUri *string `min:"1" type:"string"`
  5667  
  5668  	// The name of the vocabulary. The name must be unique within an Amazon Web
  5669  	// Services account. The name is case sensitive. If you try to create a vocabulary
  5670  	// with the same name as a previous vocabulary you will receive a ConflictException
  5671  	// error.
  5672  	//
  5673  	// VocabularyName is a required field
  5674  	VocabularyName *string `min:"1" type:"string" required:"true"`
  5675  }
  5676  
  5677  // String returns the string representation.
  5678  //
  5679  // API parameter values that are decorated as "sensitive" in the API will not
  5680  // be included in the string output. The member name will be present, but the
  5681  // value will be replaced with "sensitive".
  5682  func (s CreateVocabularyInput) String() string {
  5683  	return awsutil.Prettify(s)
  5684  }
  5685  
  5686  // GoString returns the string representation.
  5687  //
  5688  // API parameter values that are decorated as "sensitive" in the API will not
  5689  // be included in the string output. The member name will be present, but the
  5690  // value will be replaced with "sensitive".
  5691  func (s CreateVocabularyInput) GoString() string {
  5692  	return s.String()
  5693  }
  5694  
  5695  // Validate inspects the fields of the type to determine if they are valid.
  5696  func (s *CreateVocabularyInput) Validate() error {
  5697  	invalidParams := request.ErrInvalidParams{Context: "CreateVocabularyInput"}
  5698  	if s.LanguageCode == nil {
  5699  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
  5700  	}
  5701  	if s.Tags != nil && len(s.Tags) < 1 {
  5702  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  5703  	}
  5704  	if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 {
  5705  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1))
  5706  	}
  5707  	if s.VocabularyName == nil {
  5708  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
  5709  	}
  5710  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  5711  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  5712  	}
  5713  	if s.Tags != nil {
  5714  		for i, v := range s.Tags {
  5715  			if v == nil {
  5716  				continue
  5717  			}
  5718  			if err := v.Validate(); err != nil {
  5719  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  5720  			}
  5721  		}
  5722  	}
  5723  
  5724  	if invalidParams.Len() > 0 {
  5725  		return invalidParams
  5726  	}
  5727  	return nil
  5728  }
  5729  
  5730  // SetLanguageCode sets the LanguageCode field's value.
  5731  func (s *CreateVocabularyInput) SetLanguageCode(v string) *CreateVocabularyInput {
  5732  	s.LanguageCode = &v
  5733  	return s
  5734  }
  5735  
  5736  // SetPhrases sets the Phrases field's value.
  5737  func (s *CreateVocabularyInput) SetPhrases(v []*string) *CreateVocabularyInput {
  5738  	s.Phrases = v
  5739  	return s
  5740  }
  5741  
  5742  // SetTags sets the Tags field's value.
  5743  func (s *CreateVocabularyInput) SetTags(v []*Tag) *CreateVocabularyInput {
  5744  	s.Tags = v
  5745  	return s
  5746  }
  5747  
  5748  // SetVocabularyFileUri sets the VocabularyFileUri field's value.
  5749  func (s *CreateVocabularyInput) SetVocabularyFileUri(v string) *CreateVocabularyInput {
  5750  	s.VocabularyFileUri = &v
  5751  	return s
  5752  }
  5753  
  5754  // SetVocabularyName sets the VocabularyName field's value.
  5755  func (s *CreateVocabularyInput) SetVocabularyName(v string) *CreateVocabularyInput {
  5756  	s.VocabularyName = &v
  5757  	return s
  5758  }
  5759  
  5760  type CreateVocabularyOutput struct {
  5761  	_ struct{} `type:"structure"`
  5762  
  5763  	// If the VocabularyState field is FAILED, this field contains information about
  5764  	// why the job failed.
  5765  	FailureReason *string `type:"string"`
  5766  
  5767  	// The language code of the vocabulary entries.
  5768  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  5769  
  5770  	// The date and time that the vocabulary was created.
  5771  	LastModifiedTime *time.Time `type:"timestamp"`
  5772  
  5773  	// The name of the vocabulary.
  5774  	VocabularyName *string `min:"1" type:"string"`
  5775  
  5776  	// The processing state of the vocabulary. When the VocabularyState field contains
  5777  	// READY the vocabulary is ready to be used in a StartTranscriptionJob request.
  5778  	VocabularyState *string `type:"string" enum:"VocabularyState"`
  5779  }
  5780  
  5781  // String returns the string representation.
  5782  //
  5783  // API parameter values that are decorated as "sensitive" in the API will not
  5784  // be included in the string output. The member name will be present, but the
  5785  // value will be replaced with "sensitive".
  5786  func (s CreateVocabularyOutput) String() string {
  5787  	return awsutil.Prettify(s)
  5788  }
  5789  
  5790  // GoString returns the string representation.
  5791  //
  5792  // API parameter values that are decorated as "sensitive" in the API will not
  5793  // be included in the string output. The member name will be present, but the
  5794  // value will be replaced with "sensitive".
  5795  func (s CreateVocabularyOutput) GoString() string {
  5796  	return s.String()
  5797  }
  5798  
  5799  // SetFailureReason sets the FailureReason field's value.
  5800  func (s *CreateVocabularyOutput) SetFailureReason(v string) *CreateVocabularyOutput {
  5801  	s.FailureReason = &v
  5802  	return s
  5803  }
  5804  
  5805  // SetLanguageCode sets the LanguageCode field's value.
  5806  func (s *CreateVocabularyOutput) SetLanguageCode(v string) *CreateVocabularyOutput {
  5807  	s.LanguageCode = &v
  5808  	return s
  5809  }
  5810  
  5811  // SetLastModifiedTime sets the LastModifiedTime field's value.
  5812  func (s *CreateVocabularyOutput) SetLastModifiedTime(v time.Time) *CreateVocabularyOutput {
  5813  	s.LastModifiedTime = &v
  5814  	return s
  5815  }
  5816  
  5817  // SetVocabularyName sets the VocabularyName field's value.
  5818  func (s *CreateVocabularyOutput) SetVocabularyName(v string) *CreateVocabularyOutput {
  5819  	s.VocabularyName = &v
  5820  	return s
  5821  }
  5822  
  5823  // SetVocabularyState sets the VocabularyState field's value.
  5824  func (s *CreateVocabularyOutput) SetVocabularyState(v string) *CreateVocabularyOutput {
  5825  	s.VocabularyState = &v
  5826  	return s
  5827  }
  5828  
  5829  type DeleteCallAnalyticsCategoryInput struct {
  5830  	_ struct{} `type:"structure"`
  5831  
  5832  	// The name of the call analytics category that you're choosing to delete. The
  5833  	// value is case sensitive.
  5834  	//
  5835  	// CategoryName is a required field
  5836  	CategoryName *string `min:"1" type:"string" required:"true"`
  5837  }
  5838  
  5839  // String returns the string representation.
  5840  //
  5841  // API parameter values that are decorated as "sensitive" in the API will not
  5842  // be included in the string output. The member name will be present, but the
  5843  // value will be replaced with "sensitive".
  5844  func (s DeleteCallAnalyticsCategoryInput) String() string {
  5845  	return awsutil.Prettify(s)
  5846  }
  5847  
  5848  // GoString returns the string representation.
  5849  //
  5850  // API parameter values that are decorated as "sensitive" in the API will not
  5851  // be included in the string output. The member name will be present, but the
  5852  // value will be replaced with "sensitive".
  5853  func (s DeleteCallAnalyticsCategoryInput) GoString() string {
  5854  	return s.String()
  5855  }
  5856  
  5857  // Validate inspects the fields of the type to determine if they are valid.
  5858  func (s *DeleteCallAnalyticsCategoryInput) Validate() error {
  5859  	invalidParams := request.ErrInvalidParams{Context: "DeleteCallAnalyticsCategoryInput"}
  5860  	if s.CategoryName == nil {
  5861  		invalidParams.Add(request.NewErrParamRequired("CategoryName"))
  5862  	}
  5863  	if s.CategoryName != nil && len(*s.CategoryName) < 1 {
  5864  		invalidParams.Add(request.NewErrParamMinLen("CategoryName", 1))
  5865  	}
  5866  
  5867  	if invalidParams.Len() > 0 {
  5868  		return invalidParams
  5869  	}
  5870  	return nil
  5871  }
  5872  
  5873  // SetCategoryName sets the CategoryName field's value.
  5874  func (s *DeleteCallAnalyticsCategoryInput) SetCategoryName(v string) *DeleteCallAnalyticsCategoryInput {
  5875  	s.CategoryName = &v
  5876  	return s
  5877  }
  5878  
  5879  type DeleteCallAnalyticsCategoryOutput struct {
  5880  	_ struct{} `type:"structure"`
  5881  }
  5882  
  5883  // String returns the string representation.
  5884  //
  5885  // API parameter values that are decorated as "sensitive" in the API will not
  5886  // be included in the string output. The member name will be present, but the
  5887  // value will be replaced with "sensitive".
  5888  func (s DeleteCallAnalyticsCategoryOutput) String() string {
  5889  	return awsutil.Prettify(s)
  5890  }
  5891  
  5892  // GoString returns the string representation.
  5893  //
  5894  // API parameter values that are decorated as "sensitive" in the API will not
  5895  // be included in the string output. The member name will be present, but the
  5896  // value will be replaced with "sensitive".
  5897  func (s DeleteCallAnalyticsCategoryOutput) GoString() string {
  5898  	return s.String()
  5899  }
  5900  
  5901  type DeleteCallAnalyticsJobInput struct {
  5902  	_ struct{} `type:"structure"`
  5903  
  5904  	// The name of the call analytics job you want to delete.
  5905  	//
  5906  	// CallAnalyticsJobName is a required field
  5907  	CallAnalyticsJobName *string `min:"1" type:"string" required:"true"`
  5908  }
  5909  
  5910  // String returns the string representation.
  5911  //
  5912  // API parameter values that are decorated as "sensitive" in the API will not
  5913  // be included in the string output. The member name will be present, but the
  5914  // value will be replaced with "sensitive".
  5915  func (s DeleteCallAnalyticsJobInput) String() string {
  5916  	return awsutil.Prettify(s)
  5917  }
  5918  
  5919  // GoString returns the string representation.
  5920  //
  5921  // API parameter values that are decorated as "sensitive" in the API will not
  5922  // be included in the string output. The member name will be present, but the
  5923  // value will be replaced with "sensitive".
  5924  func (s DeleteCallAnalyticsJobInput) GoString() string {
  5925  	return s.String()
  5926  }
  5927  
  5928  // Validate inspects the fields of the type to determine if they are valid.
  5929  func (s *DeleteCallAnalyticsJobInput) Validate() error {
  5930  	invalidParams := request.ErrInvalidParams{Context: "DeleteCallAnalyticsJobInput"}
  5931  	if s.CallAnalyticsJobName == nil {
  5932  		invalidParams.Add(request.NewErrParamRequired("CallAnalyticsJobName"))
  5933  	}
  5934  	if s.CallAnalyticsJobName != nil && len(*s.CallAnalyticsJobName) < 1 {
  5935  		invalidParams.Add(request.NewErrParamMinLen("CallAnalyticsJobName", 1))
  5936  	}
  5937  
  5938  	if invalidParams.Len() > 0 {
  5939  		return invalidParams
  5940  	}
  5941  	return nil
  5942  }
  5943  
  5944  // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value.
  5945  func (s *DeleteCallAnalyticsJobInput) SetCallAnalyticsJobName(v string) *DeleteCallAnalyticsJobInput {
  5946  	s.CallAnalyticsJobName = &v
  5947  	return s
  5948  }
  5949  
  5950  type DeleteCallAnalyticsJobOutput struct {
  5951  	_ struct{} `type:"structure"`
  5952  }
  5953  
  5954  // String returns the string representation.
  5955  //
  5956  // API parameter values that are decorated as "sensitive" in the API will not
  5957  // be included in the string output. The member name will be present, but the
  5958  // value will be replaced with "sensitive".
  5959  func (s DeleteCallAnalyticsJobOutput) String() string {
  5960  	return awsutil.Prettify(s)
  5961  }
  5962  
  5963  // GoString returns the string representation.
  5964  //
  5965  // API parameter values that are decorated as "sensitive" in the API will not
  5966  // be included in the string output. The member name will be present, but the
  5967  // value will be replaced with "sensitive".
  5968  func (s DeleteCallAnalyticsJobOutput) GoString() string {
  5969  	return s.String()
  5970  }
  5971  
  5972  type DeleteLanguageModelInput struct {
  5973  	_ struct{} `type:"structure"`
  5974  
  5975  	// The name of the model you're choosing to delete.
  5976  	//
  5977  	// ModelName is a required field
  5978  	ModelName *string `min:"1" type:"string" required:"true"`
  5979  }
  5980  
  5981  // String returns the string representation.
  5982  //
  5983  // API parameter values that are decorated as "sensitive" in the API will not
  5984  // be included in the string output. The member name will be present, but the
  5985  // value will be replaced with "sensitive".
  5986  func (s DeleteLanguageModelInput) String() string {
  5987  	return awsutil.Prettify(s)
  5988  }
  5989  
  5990  // GoString returns the string representation.
  5991  //
  5992  // API parameter values that are decorated as "sensitive" in the API will not
  5993  // be included in the string output. The member name will be present, but the
  5994  // value will be replaced with "sensitive".
  5995  func (s DeleteLanguageModelInput) GoString() string {
  5996  	return s.String()
  5997  }
  5998  
  5999  // Validate inspects the fields of the type to determine if they are valid.
  6000  func (s *DeleteLanguageModelInput) Validate() error {
  6001  	invalidParams := request.ErrInvalidParams{Context: "DeleteLanguageModelInput"}
  6002  	if s.ModelName == nil {
  6003  		invalidParams.Add(request.NewErrParamRequired("ModelName"))
  6004  	}
  6005  	if s.ModelName != nil && len(*s.ModelName) < 1 {
  6006  		invalidParams.Add(request.NewErrParamMinLen("ModelName", 1))
  6007  	}
  6008  
  6009  	if invalidParams.Len() > 0 {
  6010  		return invalidParams
  6011  	}
  6012  	return nil
  6013  }
  6014  
  6015  // SetModelName sets the ModelName field's value.
  6016  func (s *DeleteLanguageModelInput) SetModelName(v string) *DeleteLanguageModelInput {
  6017  	s.ModelName = &v
  6018  	return s
  6019  }
  6020  
  6021  type DeleteLanguageModelOutput struct {
  6022  	_ struct{} `type:"structure"`
  6023  }
  6024  
  6025  // String returns the string representation.
  6026  //
  6027  // API parameter values that are decorated as "sensitive" in the API will not
  6028  // be included in the string output. The member name will be present, but the
  6029  // value will be replaced with "sensitive".
  6030  func (s DeleteLanguageModelOutput) String() string {
  6031  	return awsutil.Prettify(s)
  6032  }
  6033  
  6034  // GoString returns the string representation.
  6035  //
  6036  // API parameter values that are decorated as "sensitive" in the API will not
  6037  // be included in the string output. The member name will be present, but the
  6038  // value will be replaced with "sensitive".
  6039  func (s DeleteLanguageModelOutput) GoString() string {
  6040  	return s.String()
  6041  }
  6042  
  6043  type DeleteMedicalTranscriptionJobInput struct {
  6044  	_ struct{} `type:"structure"`
  6045  
  6046  	// The name you provide to the DeleteMedicalTranscriptionJob object to delete
  6047  	// a transcription job.
  6048  	//
  6049  	// MedicalTranscriptionJobName is a required field
  6050  	MedicalTranscriptionJobName *string `min:"1" type:"string" required:"true"`
  6051  }
  6052  
  6053  // String returns the string representation.
  6054  //
  6055  // API parameter values that are decorated as "sensitive" in the API will not
  6056  // be included in the string output. The member name will be present, but the
  6057  // value will be replaced with "sensitive".
  6058  func (s DeleteMedicalTranscriptionJobInput) String() string {
  6059  	return awsutil.Prettify(s)
  6060  }
  6061  
  6062  // GoString returns the string representation.
  6063  //
  6064  // API parameter values that are decorated as "sensitive" in the API will not
  6065  // be included in the string output. The member name will be present, but the
  6066  // value will be replaced with "sensitive".
  6067  func (s DeleteMedicalTranscriptionJobInput) GoString() string {
  6068  	return s.String()
  6069  }
  6070  
  6071  // Validate inspects the fields of the type to determine if they are valid.
  6072  func (s *DeleteMedicalTranscriptionJobInput) Validate() error {
  6073  	invalidParams := request.ErrInvalidParams{Context: "DeleteMedicalTranscriptionJobInput"}
  6074  	if s.MedicalTranscriptionJobName == nil {
  6075  		invalidParams.Add(request.NewErrParamRequired("MedicalTranscriptionJobName"))
  6076  	}
  6077  	if s.MedicalTranscriptionJobName != nil && len(*s.MedicalTranscriptionJobName) < 1 {
  6078  		invalidParams.Add(request.NewErrParamMinLen("MedicalTranscriptionJobName", 1))
  6079  	}
  6080  
  6081  	if invalidParams.Len() > 0 {
  6082  		return invalidParams
  6083  	}
  6084  	return nil
  6085  }
  6086  
  6087  // SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value.
  6088  func (s *DeleteMedicalTranscriptionJobInput) SetMedicalTranscriptionJobName(v string) *DeleteMedicalTranscriptionJobInput {
  6089  	s.MedicalTranscriptionJobName = &v
  6090  	return s
  6091  }
  6092  
  6093  type DeleteMedicalTranscriptionJobOutput struct {
  6094  	_ struct{} `type:"structure"`
  6095  }
  6096  
  6097  // String returns the string representation.
  6098  //
  6099  // API parameter values that are decorated as "sensitive" in the API will not
  6100  // be included in the string output. The member name will be present, but the
  6101  // value will be replaced with "sensitive".
  6102  func (s DeleteMedicalTranscriptionJobOutput) String() string {
  6103  	return awsutil.Prettify(s)
  6104  }
  6105  
  6106  // GoString returns the string representation.
  6107  //
  6108  // API parameter values that are decorated as "sensitive" in the API will not
  6109  // be included in the string output. The member name will be present, but the
  6110  // value will be replaced with "sensitive".
  6111  func (s DeleteMedicalTranscriptionJobOutput) GoString() string {
  6112  	return s.String()
  6113  }
  6114  
  6115  type DeleteMedicalVocabularyInput struct {
  6116  	_ struct{} `type:"structure"`
  6117  
  6118  	// The name of the vocabulary that you want to delete.
  6119  	//
  6120  	// VocabularyName is a required field
  6121  	VocabularyName *string `min:"1" type:"string" required:"true"`
  6122  }
  6123  
  6124  // String returns the string representation.
  6125  //
  6126  // API parameter values that are decorated as "sensitive" in the API will not
  6127  // be included in the string output. The member name will be present, but the
  6128  // value will be replaced with "sensitive".
  6129  func (s DeleteMedicalVocabularyInput) String() string {
  6130  	return awsutil.Prettify(s)
  6131  }
  6132  
  6133  // GoString returns the string representation.
  6134  //
  6135  // API parameter values that are decorated as "sensitive" in the API will not
  6136  // be included in the string output. The member name will be present, but the
  6137  // value will be replaced with "sensitive".
  6138  func (s DeleteMedicalVocabularyInput) GoString() string {
  6139  	return s.String()
  6140  }
  6141  
  6142  // Validate inspects the fields of the type to determine if they are valid.
  6143  func (s *DeleteMedicalVocabularyInput) Validate() error {
  6144  	invalidParams := request.ErrInvalidParams{Context: "DeleteMedicalVocabularyInput"}
  6145  	if s.VocabularyName == nil {
  6146  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
  6147  	}
  6148  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  6149  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  6150  	}
  6151  
  6152  	if invalidParams.Len() > 0 {
  6153  		return invalidParams
  6154  	}
  6155  	return nil
  6156  }
  6157  
  6158  // SetVocabularyName sets the VocabularyName field's value.
  6159  func (s *DeleteMedicalVocabularyInput) SetVocabularyName(v string) *DeleteMedicalVocabularyInput {
  6160  	s.VocabularyName = &v
  6161  	return s
  6162  }
  6163  
  6164  type DeleteMedicalVocabularyOutput struct {
  6165  	_ struct{} `type:"structure"`
  6166  }
  6167  
  6168  // String returns the string representation.
  6169  //
  6170  // API parameter values that are decorated as "sensitive" in the API will not
  6171  // be included in the string output. The member name will be present, but the
  6172  // value will be replaced with "sensitive".
  6173  func (s DeleteMedicalVocabularyOutput) String() string {
  6174  	return awsutil.Prettify(s)
  6175  }
  6176  
  6177  // GoString returns the string representation.
  6178  //
  6179  // API parameter values that are decorated as "sensitive" in the API will not
  6180  // be included in the string output. The member name will be present, but the
  6181  // value will be replaced with "sensitive".
  6182  func (s DeleteMedicalVocabularyOutput) GoString() string {
  6183  	return s.String()
  6184  }
  6185  
  6186  type DeleteTranscriptionJobInput struct {
  6187  	_ struct{} `type:"structure"`
  6188  
  6189  	// The name of the transcription job to be deleted.
  6190  	//
  6191  	// TranscriptionJobName is a required field
  6192  	TranscriptionJobName *string `min:"1" type:"string" required:"true"`
  6193  }
  6194  
  6195  // String returns the string representation.
  6196  //
  6197  // API parameter values that are decorated as "sensitive" in the API will not
  6198  // be included in the string output. The member name will be present, but the
  6199  // value will be replaced with "sensitive".
  6200  func (s DeleteTranscriptionJobInput) String() string {
  6201  	return awsutil.Prettify(s)
  6202  }
  6203  
  6204  // GoString returns the string representation.
  6205  //
  6206  // API parameter values that are decorated as "sensitive" in the API will not
  6207  // be included in the string output. The member name will be present, but the
  6208  // value will be replaced with "sensitive".
  6209  func (s DeleteTranscriptionJobInput) GoString() string {
  6210  	return s.String()
  6211  }
  6212  
  6213  // Validate inspects the fields of the type to determine if they are valid.
  6214  func (s *DeleteTranscriptionJobInput) Validate() error {
  6215  	invalidParams := request.ErrInvalidParams{Context: "DeleteTranscriptionJobInput"}
  6216  	if s.TranscriptionJobName == nil {
  6217  		invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName"))
  6218  	}
  6219  	if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 {
  6220  		invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1))
  6221  	}
  6222  
  6223  	if invalidParams.Len() > 0 {
  6224  		return invalidParams
  6225  	}
  6226  	return nil
  6227  }
  6228  
  6229  // SetTranscriptionJobName sets the TranscriptionJobName field's value.
  6230  func (s *DeleteTranscriptionJobInput) SetTranscriptionJobName(v string) *DeleteTranscriptionJobInput {
  6231  	s.TranscriptionJobName = &v
  6232  	return s
  6233  }
  6234  
  6235  type DeleteTranscriptionJobOutput struct {
  6236  	_ struct{} `type:"structure"`
  6237  }
  6238  
  6239  // String returns the string representation.
  6240  //
  6241  // API parameter values that are decorated as "sensitive" in the API will not
  6242  // be included in the string output. The member name will be present, but the
  6243  // value will be replaced with "sensitive".
  6244  func (s DeleteTranscriptionJobOutput) String() string {
  6245  	return awsutil.Prettify(s)
  6246  }
  6247  
  6248  // GoString returns the string representation.
  6249  //
  6250  // API parameter values that are decorated as "sensitive" in the API will not
  6251  // be included in the string output. The member name will be present, but the
  6252  // value will be replaced with "sensitive".
  6253  func (s DeleteTranscriptionJobOutput) GoString() string {
  6254  	return s.String()
  6255  }
  6256  
  6257  type DeleteVocabularyFilterInput struct {
  6258  	_ struct{} `type:"structure"`
  6259  
  6260  	// The name of the vocabulary filter to remove.
  6261  	//
  6262  	// VocabularyFilterName is a required field
  6263  	VocabularyFilterName *string `min:"1" type:"string" required:"true"`
  6264  }
  6265  
  6266  // String returns the string representation.
  6267  //
  6268  // API parameter values that are decorated as "sensitive" in the API will not
  6269  // be included in the string output. The member name will be present, but the
  6270  // value will be replaced with "sensitive".
  6271  func (s DeleteVocabularyFilterInput) String() string {
  6272  	return awsutil.Prettify(s)
  6273  }
  6274  
  6275  // GoString returns the string representation.
  6276  //
  6277  // API parameter values that are decorated as "sensitive" in the API will not
  6278  // be included in the string output. The member name will be present, but the
  6279  // value will be replaced with "sensitive".
  6280  func (s DeleteVocabularyFilterInput) GoString() string {
  6281  	return s.String()
  6282  }
  6283  
  6284  // Validate inspects the fields of the type to determine if they are valid.
  6285  func (s *DeleteVocabularyFilterInput) Validate() error {
  6286  	invalidParams := request.ErrInvalidParams{Context: "DeleteVocabularyFilterInput"}
  6287  	if s.VocabularyFilterName == nil {
  6288  		invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName"))
  6289  	}
  6290  	if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 {
  6291  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1))
  6292  	}
  6293  
  6294  	if invalidParams.Len() > 0 {
  6295  		return invalidParams
  6296  	}
  6297  	return nil
  6298  }
  6299  
  6300  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  6301  func (s *DeleteVocabularyFilterInput) SetVocabularyFilterName(v string) *DeleteVocabularyFilterInput {
  6302  	s.VocabularyFilterName = &v
  6303  	return s
  6304  }
  6305  
  6306  type DeleteVocabularyFilterOutput struct {
  6307  	_ struct{} `type:"structure"`
  6308  }
  6309  
  6310  // String returns the string representation.
  6311  //
  6312  // API parameter values that are decorated as "sensitive" in the API will not
  6313  // be included in the string output. The member name will be present, but the
  6314  // value will be replaced with "sensitive".
  6315  func (s DeleteVocabularyFilterOutput) String() string {
  6316  	return awsutil.Prettify(s)
  6317  }
  6318  
  6319  // GoString returns the string representation.
  6320  //
  6321  // API parameter values that are decorated as "sensitive" in the API will not
  6322  // be included in the string output. The member name will be present, but the
  6323  // value will be replaced with "sensitive".
  6324  func (s DeleteVocabularyFilterOutput) GoString() string {
  6325  	return s.String()
  6326  }
  6327  
  6328  type DeleteVocabularyInput struct {
  6329  	_ struct{} `type:"structure"`
  6330  
  6331  	// The name of the vocabulary to delete.
  6332  	//
  6333  	// VocabularyName is a required field
  6334  	VocabularyName *string `min:"1" type:"string" required:"true"`
  6335  }
  6336  
  6337  // String returns the string representation.
  6338  //
  6339  // API parameter values that are decorated as "sensitive" in the API will not
  6340  // be included in the string output. The member name will be present, but the
  6341  // value will be replaced with "sensitive".
  6342  func (s DeleteVocabularyInput) String() string {
  6343  	return awsutil.Prettify(s)
  6344  }
  6345  
  6346  // GoString returns the string representation.
  6347  //
  6348  // API parameter values that are decorated as "sensitive" in the API will not
  6349  // be included in the string output. The member name will be present, but the
  6350  // value will be replaced with "sensitive".
  6351  func (s DeleteVocabularyInput) GoString() string {
  6352  	return s.String()
  6353  }
  6354  
  6355  // Validate inspects the fields of the type to determine if they are valid.
  6356  func (s *DeleteVocabularyInput) Validate() error {
  6357  	invalidParams := request.ErrInvalidParams{Context: "DeleteVocabularyInput"}
  6358  	if s.VocabularyName == nil {
  6359  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
  6360  	}
  6361  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  6362  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  6363  	}
  6364  
  6365  	if invalidParams.Len() > 0 {
  6366  		return invalidParams
  6367  	}
  6368  	return nil
  6369  }
  6370  
  6371  // SetVocabularyName sets the VocabularyName field's value.
  6372  func (s *DeleteVocabularyInput) SetVocabularyName(v string) *DeleteVocabularyInput {
  6373  	s.VocabularyName = &v
  6374  	return s
  6375  }
  6376  
  6377  type DeleteVocabularyOutput struct {
  6378  	_ struct{} `type:"structure"`
  6379  }
  6380  
  6381  // String returns the string representation.
  6382  //
  6383  // API parameter values that are decorated as "sensitive" in the API will not
  6384  // be included in the string output. The member name will be present, but the
  6385  // value will be replaced with "sensitive".
  6386  func (s DeleteVocabularyOutput) String() string {
  6387  	return awsutil.Prettify(s)
  6388  }
  6389  
  6390  // GoString returns the string representation.
  6391  //
  6392  // API parameter values that are decorated as "sensitive" in the API will not
  6393  // be included in the string output. The member name will be present, but the
  6394  // value will be replaced with "sensitive".
  6395  func (s DeleteVocabularyOutput) GoString() string {
  6396  	return s.String()
  6397  }
  6398  
  6399  type DescribeLanguageModelInput struct {
  6400  	_ struct{} `type:"structure"`
  6401  
  6402  	// The name of the custom language model you submit to get more information.
  6403  	//
  6404  	// ModelName is a required field
  6405  	ModelName *string `min:"1" type:"string" required:"true"`
  6406  }
  6407  
  6408  // String returns the string representation.
  6409  //
  6410  // API parameter values that are decorated as "sensitive" in the API will not
  6411  // be included in the string output. The member name will be present, but the
  6412  // value will be replaced with "sensitive".
  6413  func (s DescribeLanguageModelInput) String() string {
  6414  	return awsutil.Prettify(s)
  6415  }
  6416  
  6417  // GoString returns the string representation.
  6418  //
  6419  // API parameter values that are decorated as "sensitive" in the API will not
  6420  // be included in the string output. The member name will be present, but the
  6421  // value will be replaced with "sensitive".
  6422  func (s DescribeLanguageModelInput) GoString() string {
  6423  	return s.String()
  6424  }
  6425  
  6426  // Validate inspects the fields of the type to determine if they are valid.
  6427  func (s *DescribeLanguageModelInput) Validate() error {
  6428  	invalidParams := request.ErrInvalidParams{Context: "DescribeLanguageModelInput"}
  6429  	if s.ModelName == nil {
  6430  		invalidParams.Add(request.NewErrParamRequired("ModelName"))
  6431  	}
  6432  	if s.ModelName != nil && len(*s.ModelName) < 1 {
  6433  		invalidParams.Add(request.NewErrParamMinLen("ModelName", 1))
  6434  	}
  6435  
  6436  	if invalidParams.Len() > 0 {
  6437  		return invalidParams
  6438  	}
  6439  	return nil
  6440  }
  6441  
  6442  // SetModelName sets the ModelName field's value.
  6443  func (s *DescribeLanguageModelInput) SetModelName(v string) *DescribeLanguageModelInput {
  6444  	s.ModelName = &v
  6445  	return s
  6446  }
  6447  
  6448  type DescribeLanguageModelOutput struct {
  6449  	_ struct{} `type:"structure"`
  6450  
  6451  	// The name of the custom language model you requested more information about.
  6452  	LanguageModel *LanguageModel `type:"structure"`
  6453  }
  6454  
  6455  // String returns the string representation.
  6456  //
  6457  // API parameter values that are decorated as "sensitive" in the API will not
  6458  // be included in the string output. The member name will be present, but the
  6459  // value will be replaced with "sensitive".
  6460  func (s DescribeLanguageModelOutput) String() string {
  6461  	return awsutil.Prettify(s)
  6462  }
  6463  
  6464  // GoString returns the string representation.
  6465  //
  6466  // API parameter values that are decorated as "sensitive" in the API will not
  6467  // be included in the string output. The member name will be present, but the
  6468  // value will be replaced with "sensitive".
  6469  func (s DescribeLanguageModelOutput) GoString() string {
  6470  	return s.String()
  6471  }
  6472  
  6473  // SetLanguageModel sets the LanguageModel field's value.
  6474  func (s *DescribeLanguageModelOutput) SetLanguageModel(v *LanguageModel) *DescribeLanguageModelOutput {
  6475  	s.LanguageModel = v
  6476  	return s
  6477  }
  6478  
  6479  type GetCallAnalyticsCategoryInput struct {
  6480  	_ struct{} `type:"structure"`
  6481  
  6482  	// The name of the category you want information about. This value is case sensitive.
  6483  	//
  6484  	// CategoryName is a required field
  6485  	CategoryName *string `min:"1" type:"string" required:"true"`
  6486  }
  6487  
  6488  // String returns the string representation.
  6489  //
  6490  // API parameter values that are decorated as "sensitive" in the API will not
  6491  // be included in the string output. The member name will be present, but the
  6492  // value will be replaced with "sensitive".
  6493  func (s GetCallAnalyticsCategoryInput) String() string {
  6494  	return awsutil.Prettify(s)
  6495  }
  6496  
  6497  // GoString returns the string representation.
  6498  //
  6499  // API parameter values that are decorated as "sensitive" in the API will not
  6500  // be included in the string output. The member name will be present, but the
  6501  // value will be replaced with "sensitive".
  6502  func (s GetCallAnalyticsCategoryInput) GoString() string {
  6503  	return s.String()
  6504  }
  6505  
  6506  // Validate inspects the fields of the type to determine if they are valid.
  6507  func (s *GetCallAnalyticsCategoryInput) Validate() error {
  6508  	invalidParams := request.ErrInvalidParams{Context: "GetCallAnalyticsCategoryInput"}
  6509  	if s.CategoryName == nil {
  6510  		invalidParams.Add(request.NewErrParamRequired("CategoryName"))
  6511  	}
  6512  	if s.CategoryName != nil && len(*s.CategoryName) < 1 {
  6513  		invalidParams.Add(request.NewErrParamMinLen("CategoryName", 1))
  6514  	}
  6515  
  6516  	if invalidParams.Len() > 0 {
  6517  		return invalidParams
  6518  	}
  6519  	return nil
  6520  }
  6521  
  6522  // SetCategoryName sets the CategoryName field's value.
  6523  func (s *GetCallAnalyticsCategoryInput) SetCategoryName(v string) *GetCallAnalyticsCategoryInput {
  6524  	s.CategoryName = &v
  6525  	return s
  6526  }
  6527  
  6528  type GetCallAnalyticsCategoryOutput struct {
  6529  	_ struct{} `type:"structure"`
  6530  
  6531  	// The rules you've defined for a category.
  6532  	CategoryProperties *CategoryProperties `type:"structure"`
  6533  }
  6534  
  6535  // String returns the string representation.
  6536  //
  6537  // API parameter values that are decorated as "sensitive" in the API will not
  6538  // be included in the string output. The member name will be present, but the
  6539  // value will be replaced with "sensitive".
  6540  func (s GetCallAnalyticsCategoryOutput) String() string {
  6541  	return awsutil.Prettify(s)
  6542  }
  6543  
  6544  // GoString returns the string representation.
  6545  //
  6546  // API parameter values that are decorated as "sensitive" in the API will not
  6547  // be included in the string output. The member name will be present, but the
  6548  // value will be replaced with "sensitive".
  6549  func (s GetCallAnalyticsCategoryOutput) GoString() string {
  6550  	return s.String()
  6551  }
  6552  
  6553  // SetCategoryProperties sets the CategoryProperties field's value.
  6554  func (s *GetCallAnalyticsCategoryOutput) SetCategoryProperties(v *CategoryProperties) *GetCallAnalyticsCategoryOutput {
  6555  	s.CategoryProperties = v
  6556  	return s
  6557  }
  6558  
  6559  type GetCallAnalyticsJobInput struct {
  6560  	_ struct{} `type:"structure"`
  6561  
  6562  	// The name of the analytics job you want information about. This value is case
  6563  	// sensitive.
  6564  	//
  6565  	// CallAnalyticsJobName is a required field
  6566  	CallAnalyticsJobName *string `min:"1" type:"string" required:"true"`
  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 GetCallAnalyticsJobInput) 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 GetCallAnalyticsJobInput) GoString() string {
  6584  	return s.String()
  6585  }
  6586  
  6587  // Validate inspects the fields of the type to determine if they are valid.
  6588  func (s *GetCallAnalyticsJobInput) Validate() error {
  6589  	invalidParams := request.ErrInvalidParams{Context: "GetCallAnalyticsJobInput"}
  6590  	if s.CallAnalyticsJobName == nil {
  6591  		invalidParams.Add(request.NewErrParamRequired("CallAnalyticsJobName"))
  6592  	}
  6593  	if s.CallAnalyticsJobName != nil && len(*s.CallAnalyticsJobName) < 1 {
  6594  		invalidParams.Add(request.NewErrParamMinLen("CallAnalyticsJobName", 1))
  6595  	}
  6596  
  6597  	if invalidParams.Len() > 0 {
  6598  		return invalidParams
  6599  	}
  6600  	return nil
  6601  }
  6602  
  6603  // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value.
  6604  func (s *GetCallAnalyticsJobInput) SetCallAnalyticsJobName(v string) *GetCallAnalyticsJobInput {
  6605  	s.CallAnalyticsJobName = &v
  6606  	return s
  6607  }
  6608  
  6609  type GetCallAnalyticsJobOutput struct {
  6610  	_ struct{} `type:"structure"`
  6611  
  6612  	// An object that contains the results of your call analytics job.
  6613  	CallAnalyticsJob *CallAnalyticsJob `type:"structure"`
  6614  }
  6615  
  6616  // String returns the string representation.
  6617  //
  6618  // API parameter values that are decorated as "sensitive" in the API will not
  6619  // be included in the string output. The member name will be present, but the
  6620  // value will be replaced with "sensitive".
  6621  func (s GetCallAnalyticsJobOutput) String() string {
  6622  	return awsutil.Prettify(s)
  6623  }
  6624  
  6625  // GoString returns the string representation.
  6626  //
  6627  // API parameter values that are decorated as "sensitive" in the API will not
  6628  // be included in the string output. The member name will be present, but the
  6629  // value will be replaced with "sensitive".
  6630  func (s GetCallAnalyticsJobOutput) GoString() string {
  6631  	return s.String()
  6632  }
  6633  
  6634  // SetCallAnalyticsJob sets the CallAnalyticsJob field's value.
  6635  func (s *GetCallAnalyticsJobOutput) SetCallAnalyticsJob(v *CallAnalyticsJob) *GetCallAnalyticsJobOutput {
  6636  	s.CallAnalyticsJob = v
  6637  	return s
  6638  }
  6639  
  6640  type GetMedicalTranscriptionJobInput struct {
  6641  	_ struct{} `type:"structure"`
  6642  
  6643  	// The name of the medical transcription job.
  6644  	//
  6645  	// MedicalTranscriptionJobName is a required field
  6646  	MedicalTranscriptionJobName *string `min:"1" type:"string" required:"true"`
  6647  }
  6648  
  6649  // String 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 GetMedicalTranscriptionJobInput) String() string {
  6655  	return awsutil.Prettify(s)
  6656  }
  6657  
  6658  // GoString returns the string representation.
  6659  //
  6660  // API parameter values that are decorated as "sensitive" in the API will not
  6661  // be included in the string output. The member name will be present, but the
  6662  // value will be replaced with "sensitive".
  6663  func (s GetMedicalTranscriptionJobInput) GoString() string {
  6664  	return s.String()
  6665  }
  6666  
  6667  // Validate inspects the fields of the type to determine if they are valid.
  6668  func (s *GetMedicalTranscriptionJobInput) Validate() error {
  6669  	invalidParams := request.ErrInvalidParams{Context: "GetMedicalTranscriptionJobInput"}
  6670  	if s.MedicalTranscriptionJobName == nil {
  6671  		invalidParams.Add(request.NewErrParamRequired("MedicalTranscriptionJobName"))
  6672  	}
  6673  	if s.MedicalTranscriptionJobName != nil && len(*s.MedicalTranscriptionJobName) < 1 {
  6674  		invalidParams.Add(request.NewErrParamMinLen("MedicalTranscriptionJobName", 1))
  6675  	}
  6676  
  6677  	if invalidParams.Len() > 0 {
  6678  		return invalidParams
  6679  	}
  6680  	return nil
  6681  }
  6682  
  6683  // SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value.
  6684  func (s *GetMedicalTranscriptionJobInput) SetMedicalTranscriptionJobName(v string) *GetMedicalTranscriptionJobInput {
  6685  	s.MedicalTranscriptionJobName = &v
  6686  	return s
  6687  }
  6688  
  6689  type GetMedicalTranscriptionJobOutput struct {
  6690  	_ struct{} `type:"structure"`
  6691  
  6692  	// An object that contains the results of the medical transcription job.
  6693  	MedicalTranscriptionJob *MedicalTranscriptionJob `type:"structure"`
  6694  }
  6695  
  6696  // String returns the string representation.
  6697  //
  6698  // API parameter values that are decorated as "sensitive" in the API will not
  6699  // be included in the string output. The member name will be present, but the
  6700  // value will be replaced with "sensitive".
  6701  func (s GetMedicalTranscriptionJobOutput) String() string {
  6702  	return awsutil.Prettify(s)
  6703  }
  6704  
  6705  // GoString returns the string representation.
  6706  //
  6707  // API parameter values that are decorated as "sensitive" in the API will not
  6708  // be included in the string output. The member name will be present, but the
  6709  // value will be replaced with "sensitive".
  6710  func (s GetMedicalTranscriptionJobOutput) GoString() string {
  6711  	return s.String()
  6712  }
  6713  
  6714  // SetMedicalTranscriptionJob sets the MedicalTranscriptionJob field's value.
  6715  func (s *GetMedicalTranscriptionJobOutput) SetMedicalTranscriptionJob(v *MedicalTranscriptionJob) *GetMedicalTranscriptionJobOutput {
  6716  	s.MedicalTranscriptionJob = v
  6717  	return s
  6718  }
  6719  
  6720  type GetMedicalVocabularyInput struct {
  6721  	_ struct{} `type:"structure"`
  6722  
  6723  	// The name of the vocabulary that you want information about. The value is
  6724  	// case sensitive.
  6725  	//
  6726  	// VocabularyName is a required field
  6727  	VocabularyName *string `min:"1" type:"string" required:"true"`
  6728  }
  6729  
  6730  // String returns the string representation.
  6731  //
  6732  // API parameter values that are decorated as "sensitive" in the API will not
  6733  // be included in the string output. The member name will be present, but the
  6734  // value will be replaced with "sensitive".
  6735  func (s GetMedicalVocabularyInput) String() string {
  6736  	return awsutil.Prettify(s)
  6737  }
  6738  
  6739  // GoString returns the string representation.
  6740  //
  6741  // API parameter values that are decorated as "sensitive" in the API will not
  6742  // be included in the string output. The member name will be present, but the
  6743  // value will be replaced with "sensitive".
  6744  func (s GetMedicalVocabularyInput) GoString() string {
  6745  	return s.String()
  6746  }
  6747  
  6748  // Validate inspects the fields of the type to determine if they are valid.
  6749  func (s *GetMedicalVocabularyInput) Validate() error {
  6750  	invalidParams := request.ErrInvalidParams{Context: "GetMedicalVocabularyInput"}
  6751  	if s.VocabularyName == nil {
  6752  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
  6753  	}
  6754  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  6755  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  6756  	}
  6757  
  6758  	if invalidParams.Len() > 0 {
  6759  		return invalidParams
  6760  	}
  6761  	return nil
  6762  }
  6763  
  6764  // SetVocabularyName sets the VocabularyName field's value.
  6765  func (s *GetMedicalVocabularyInput) SetVocabularyName(v string) *GetMedicalVocabularyInput {
  6766  	s.VocabularyName = &v
  6767  	return s
  6768  }
  6769  
  6770  type GetMedicalVocabularyOutput struct {
  6771  	_ struct{} `type:"structure"`
  6772  
  6773  	// The location in Amazon S3 where the vocabulary is stored. Use this URI to
  6774  	// get the contents of the vocabulary. You can download your vocabulary from
  6775  	// the URI for a limited time.
  6776  	DownloadUri *string `min:"1" type:"string"`
  6777  
  6778  	// If the VocabularyState is FAILED, this field contains information about why
  6779  	// the job failed.
  6780  	FailureReason *string `type:"string"`
  6781  
  6782  	// The valid language code for your vocabulary entries.
  6783  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  6784  
  6785  	// The date and time that the vocabulary was last modified with a text file
  6786  	// different from the one that was previously used.
  6787  	LastModifiedTime *time.Time `type:"timestamp"`
  6788  
  6789  	// The name of the vocabulary returned by Amazon Transcribe Medical.
  6790  	VocabularyName *string `min:"1" type:"string"`
  6791  
  6792  	// The processing state of the vocabulary. If the VocabularyState is READY then
  6793  	// you can use it in the StartMedicalTranscriptionJob operation.
  6794  	VocabularyState *string `type:"string" enum:"VocabularyState"`
  6795  }
  6796  
  6797  // String returns the string representation.
  6798  //
  6799  // API parameter values that are decorated as "sensitive" in the API will not
  6800  // be included in the string output. The member name will be present, but the
  6801  // value will be replaced with "sensitive".
  6802  func (s GetMedicalVocabularyOutput) String() string {
  6803  	return awsutil.Prettify(s)
  6804  }
  6805  
  6806  // GoString returns the string representation.
  6807  //
  6808  // API parameter values that are decorated as "sensitive" in the API will not
  6809  // be included in the string output. The member name will be present, but the
  6810  // value will be replaced with "sensitive".
  6811  func (s GetMedicalVocabularyOutput) GoString() string {
  6812  	return s.String()
  6813  }
  6814  
  6815  // SetDownloadUri sets the DownloadUri field's value.
  6816  func (s *GetMedicalVocabularyOutput) SetDownloadUri(v string) *GetMedicalVocabularyOutput {
  6817  	s.DownloadUri = &v
  6818  	return s
  6819  }
  6820  
  6821  // SetFailureReason sets the FailureReason field's value.
  6822  func (s *GetMedicalVocabularyOutput) SetFailureReason(v string) *GetMedicalVocabularyOutput {
  6823  	s.FailureReason = &v
  6824  	return s
  6825  }
  6826  
  6827  // SetLanguageCode sets the LanguageCode field's value.
  6828  func (s *GetMedicalVocabularyOutput) SetLanguageCode(v string) *GetMedicalVocabularyOutput {
  6829  	s.LanguageCode = &v
  6830  	return s
  6831  }
  6832  
  6833  // SetLastModifiedTime sets the LastModifiedTime field's value.
  6834  func (s *GetMedicalVocabularyOutput) SetLastModifiedTime(v time.Time) *GetMedicalVocabularyOutput {
  6835  	s.LastModifiedTime = &v
  6836  	return s
  6837  }
  6838  
  6839  // SetVocabularyName sets the VocabularyName field's value.
  6840  func (s *GetMedicalVocabularyOutput) SetVocabularyName(v string) *GetMedicalVocabularyOutput {
  6841  	s.VocabularyName = &v
  6842  	return s
  6843  }
  6844  
  6845  // SetVocabularyState sets the VocabularyState field's value.
  6846  func (s *GetMedicalVocabularyOutput) SetVocabularyState(v string) *GetMedicalVocabularyOutput {
  6847  	s.VocabularyState = &v
  6848  	return s
  6849  }
  6850  
  6851  type GetTranscriptionJobInput struct {
  6852  	_ struct{} `type:"structure"`
  6853  
  6854  	// The name of the job.
  6855  	//
  6856  	// TranscriptionJobName is a required field
  6857  	TranscriptionJobName *string `min:"1" type:"string" required:"true"`
  6858  }
  6859  
  6860  // String returns the string representation.
  6861  //
  6862  // API parameter values that are decorated as "sensitive" in the API will not
  6863  // be included in the string output. The member name will be present, but the
  6864  // value will be replaced with "sensitive".
  6865  func (s GetTranscriptionJobInput) String() string {
  6866  	return awsutil.Prettify(s)
  6867  }
  6868  
  6869  // GoString returns the string representation.
  6870  //
  6871  // API parameter values that are decorated as "sensitive" in the API will not
  6872  // be included in the string output. The member name will be present, but the
  6873  // value will be replaced with "sensitive".
  6874  func (s GetTranscriptionJobInput) GoString() string {
  6875  	return s.String()
  6876  }
  6877  
  6878  // Validate inspects the fields of the type to determine if they are valid.
  6879  func (s *GetTranscriptionJobInput) Validate() error {
  6880  	invalidParams := request.ErrInvalidParams{Context: "GetTranscriptionJobInput"}
  6881  	if s.TranscriptionJobName == nil {
  6882  		invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName"))
  6883  	}
  6884  	if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 {
  6885  		invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1))
  6886  	}
  6887  
  6888  	if invalidParams.Len() > 0 {
  6889  		return invalidParams
  6890  	}
  6891  	return nil
  6892  }
  6893  
  6894  // SetTranscriptionJobName sets the TranscriptionJobName field's value.
  6895  func (s *GetTranscriptionJobInput) SetTranscriptionJobName(v string) *GetTranscriptionJobInput {
  6896  	s.TranscriptionJobName = &v
  6897  	return s
  6898  }
  6899  
  6900  type GetTranscriptionJobOutput struct {
  6901  	_ struct{} `type:"structure"`
  6902  
  6903  	// An object that contains the results of the transcription job.
  6904  	TranscriptionJob *TranscriptionJob `type:"structure"`
  6905  }
  6906  
  6907  // String returns the string representation.
  6908  //
  6909  // API parameter values that are decorated as "sensitive" in the API will not
  6910  // be included in the string output. The member name will be present, but the
  6911  // value will be replaced with "sensitive".
  6912  func (s GetTranscriptionJobOutput) String() string {
  6913  	return awsutil.Prettify(s)
  6914  }
  6915  
  6916  // GoString returns the string representation.
  6917  //
  6918  // API parameter values that are decorated as "sensitive" in the API will not
  6919  // be included in the string output. The member name will be present, but the
  6920  // value will be replaced with "sensitive".
  6921  func (s GetTranscriptionJobOutput) GoString() string {
  6922  	return s.String()
  6923  }
  6924  
  6925  // SetTranscriptionJob sets the TranscriptionJob field's value.
  6926  func (s *GetTranscriptionJobOutput) SetTranscriptionJob(v *TranscriptionJob) *GetTranscriptionJobOutput {
  6927  	s.TranscriptionJob = v
  6928  	return s
  6929  }
  6930  
  6931  type GetVocabularyFilterInput struct {
  6932  	_ struct{} `type:"structure"`
  6933  
  6934  	// The name of the vocabulary filter for which to return information.
  6935  	//
  6936  	// VocabularyFilterName is a required field
  6937  	VocabularyFilterName *string `min:"1" type:"string" required:"true"`
  6938  }
  6939  
  6940  // String returns the string representation.
  6941  //
  6942  // API parameter values that are decorated as "sensitive" in the API will not
  6943  // be included in the string output. The member name will be present, but the
  6944  // value will be replaced with "sensitive".
  6945  func (s GetVocabularyFilterInput) String() string {
  6946  	return awsutil.Prettify(s)
  6947  }
  6948  
  6949  // GoString returns the string representation.
  6950  //
  6951  // API parameter values that are decorated as "sensitive" in the API will not
  6952  // be included in the string output. The member name will be present, but the
  6953  // value will be replaced with "sensitive".
  6954  func (s GetVocabularyFilterInput) GoString() string {
  6955  	return s.String()
  6956  }
  6957  
  6958  // Validate inspects the fields of the type to determine if they are valid.
  6959  func (s *GetVocabularyFilterInput) Validate() error {
  6960  	invalidParams := request.ErrInvalidParams{Context: "GetVocabularyFilterInput"}
  6961  	if s.VocabularyFilterName == nil {
  6962  		invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName"))
  6963  	}
  6964  	if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 {
  6965  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1))
  6966  	}
  6967  
  6968  	if invalidParams.Len() > 0 {
  6969  		return invalidParams
  6970  	}
  6971  	return nil
  6972  }
  6973  
  6974  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  6975  func (s *GetVocabularyFilterInput) SetVocabularyFilterName(v string) *GetVocabularyFilterInput {
  6976  	s.VocabularyFilterName = &v
  6977  	return s
  6978  }
  6979  
  6980  type GetVocabularyFilterOutput struct {
  6981  	_ struct{} `type:"structure"`
  6982  
  6983  	// The URI of the list of words in the vocabulary filter. You can use this URI
  6984  	// to get the list of words.
  6985  	DownloadUri *string `min:"1" type:"string"`
  6986  
  6987  	// The language code of the words in the vocabulary filter.
  6988  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  6989  
  6990  	// The date and time that the contents of the vocabulary filter were updated.
  6991  	LastModifiedTime *time.Time `type:"timestamp"`
  6992  
  6993  	// The name of the vocabulary filter.
  6994  	VocabularyFilterName *string `min:"1" type:"string"`
  6995  }
  6996  
  6997  // String returns the string representation.
  6998  //
  6999  // API parameter values that are decorated as "sensitive" in the API will not
  7000  // be included in the string output. The member name will be present, but the
  7001  // value will be replaced with "sensitive".
  7002  func (s GetVocabularyFilterOutput) String() string {
  7003  	return awsutil.Prettify(s)
  7004  }
  7005  
  7006  // GoString returns the string representation.
  7007  //
  7008  // API parameter values that are decorated as "sensitive" in the API will not
  7009  // be included in the string output. The member name will be present, but the
  7010  // value will be replaced with "sensitive".
  7011  func (s GetVocabularyFilterOutput) GoString() string {
  7012  	return s.String()
  7013  }
  7014  
  7015  // SetDownloadUri sets the DownloadUri field's value.
  7016  func (s *GetVocabularyFilterOutput) SetDownloadUri(v string) *GetVocabularyFilterOutput {
  7017  	s.DownloadUri = &v
  7018  	return s
  7019  }
  7020  
  7021  // SetLanguageCode sets the LanguageCode field's value.
  7022  func (s *GetVocabularyFilterOutput) SetLanguageCode(v string) *GetVocabularyFilterOutput {
  7023  	s.LanguageCode = &v
  7024  	return s
  7025  }
  7026  
  7027  // SetLastModifiedTime sets the LastModifiedTime field's value.
  7028  func (s *GetVocabularyFilterOutput) SetLastModifiedTime(v time.Time) *GetVocabularyFilterOutput {
  7029  	s.LastModifiedTime = &v
  7030  	return s
  7031  }
  7032  
  7033  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  7034  func (s *GetVocabularyFilterOutput) SetVocabularyFilterName(v string) *GetVocabularyFilterOutput {
  7035  	s.VocabularyFilterName = &v
  7036  	return s
  7037  }
  7038  
  7039  type GetVocabularyInput struct {
  7040  	_ struct{} `type:"structure"`
  7041  
  7042  	// The name of the vocabulary to return information about. The name is case
  7043  	// sensitive.
  7044  	//
  7045  	// VocabularyName is a required field
  7046  	VocabularyName *string `min:"1" type:"string" required:"true"`
  7047  }
  7048  
  7049  // String returns the string representation.
  7050  //
  7051  // API parameter values that are decorated as "sensitive" in the API will not
  7052  // be included in the string output. The member name will be present, but the
  7053  // value will be replaced with "sensitive".
  7054  func (s GetVocabularyInput) String() string {
  7055  	return awsutil.Prettify(s)
  7056  }
  7057  
  7058  // GoString returns the string representation.
  7059  //
  7060  // API parameter values that are decorated as "sensitive" in the API will not
  7061  // be included in the string output. The member name will be present, but the
  7062  // value will be replaced with "sensitive".
  7063  func (s GetVocabularyInput) GoString() string {
  7064  	return s.String()
  7065  }
  7066  
  7067  // Validate inspects the fields of the type to determine if they are valid.
  7068  func (s *GetVocabularyInput) Validate() error {
  7069  	invalidParams := request.ErrInvalidParams{Context: "GetVocabularyInput"}
  7070  	if s.VocabularyName == nil {
  7071  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
  7072  	}
  7073  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  7074  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  7075  	}
  7076  
  7077  	if invalidParams.Len() > 0 {
  7078  		return invalidParams
  7079  	}
  7080  	return nil
  7081  }
  7082  
  7083  // SetVocabularyName sets the VocabularyName field's value.
  7084  func (s *GetVocabularyInput) SetVocabularyName(v string) *GetVocabularyInput {
  7085  	s.VocabularyName = &v
  7086  	return s
  7087  }
  7088  
  7089  type GetVocabularyOutput struct {
  7090  	_ struct{} `type:"structure"`
  7091  
  7092  	// The S3 location where the vocabulary is stored. Use this URI to get the contents
  7093  	// of the vocabulary. The URI is available for a limited time.
  7094  	DownloadUri *string `min:"1" type:"string"`
  7095  
  7096  	// If the VocabularyState field is FAILED, this field contains information about
  7097  	// why the job failed.
  7098  	FailureReason *string `type:"string"`
  7099  
  7100  	// The language code of the vocabulary entries.
  7101  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  7102  
  7103  	// The date and time that the vocabulary was last modified.
  7104  	LastModifiedTime *time.Time `type:"timestamp"`
  7105  
  7106  	// The name of the vocabulary to return.
  7107  	VocabularyName *string `min:"1" type:"string"`
  7108  
  7109  	// The processing state of the vocabulary.
  7110  	VocabularyState *string `type:"string" enum:"VocabularyState"`
  7111  }
  7112  
  7113  // String returns the string representation.
  7114  //
  7115  // API parameter values that are decorated as "sensitive" in the API will not
  7116  // be included in the string output. The member name will be present, but the
  7117  // value will be replaced with "sensitive".
  7118  func (s GetVocabularyOutput) String() string {
  7119  	return awsutil.Prettify(s)
  7120  }
  7121  
  7122  // GoString returns the string representation.
  7123  //
  7124  // API parameter values that are decorated as "sensitive" in the API will not
  7125  // be included in the string output. The member name will be present, but the
  7126  // value will be replaced with "sensitive".
  7127  func (s GetVocabularyOutput) GoString() string {
  7128  	return s.String()
  7129  }
  7130  
  7131  // SetDownloadUri sets the DownloadUri field's value.
  7132  func (s *GetVocabularyOutput) SetDownloadUri(v string) *GetVocabularyOutput {
  7133  	s.DownloadUri = &v
  7134  	return s
  7135  }
  7136  
  7137  // SetFailureReason sets the FailureReason field's value.
  7138  func (s *GetVocabularyOutput) SetFailureReason(v string) *GetVocabularyOutput {
  7139  	s.FailureReason = &v
  7140  	return s
  7141  }
  7142  
  7143  // SetLanguageCode sets the LanguageCode field's value.
  7144  func (s *GetVocabularyOutput) SetLanguageCode(v string) *GetVocabularyOutput {
  7145  	s.LanguageCode = &v
  7146  	return s
  7147  }
  7148  
  7149  // SetLastModifiedTime sets the LastModifiedTime field's value.
  7150  func (s *GetVocabularyOutput) SetLastModifiedTime(v time.Time) *GetVocabularyOutput {
  7151  	s.LastModifiedTime = &v
  7152  	return s
  7153  }
  7154  
  7155  // SetVocabularyName sets the VocabularyName field's value.
  7156  func (s *GetVocabularyOutput) SetVocabularyName(v string) *GetVocabularyOutput {
  7157  	s.VocabularyName = &v
  7158  	return s
  7159  }
  7160  
  7161  // SetVocabularyState sets the VocabularyState field's value.
  7162  func (s *GetVocabularyOutput) SetVocabularyState(v string) *GetVocabularyOutput {
  7163  	s.VocabularyState = &v
  7164  	return s
  7165  }
  7166  
  7167  // The object that contains the Amazon S3 object location and access role required
  7168  // to train and tune your custom language model.
  7169  type InputDataConfig struct {
  7170  	_ struct{} `type:"structure"`
  7171  
  7172  	// The Amazon Resource Name (ARN) that uniquely identifies the permissions you've
  7173  	// given Amazon Transcribe to access your Amazon S3 buckets containing your
  7174  	// media files or text data.
  7175  	//
  7176  	// DataAccessRoleArn is a required field
  7177  	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
  7178  
  7179  	// The Amazon S3 prefix you specify to access the plain text files that you
  7180  	// use to train your custom language model.
  7181  	//
  7182  	// S3Uri is a required field
  7183  	S3Uri *string `min:"1" type:"string" required:"true"`
  7184  
  7185  	// The Amazon S3 prefix you specify to access the plain text files that you
  7186  	// use to tune your custom language model.
  7187  	TuningDataS3Uri *string `min:"1" type:"string"`
  7188  }
  7189  
  7190  // String returns the string representation.
  7191  //
  7192  // API parameter values that are decorated as "sensitive" in the API will not
  7193  // be included in the string output. The member name will be present, but the
  7194  // value will be replaced with "sensitive".
  7195  func (s InputDataConfig) String() string {
  7196  	return awsutil.Prettify(s)
  7197  }
  7198  
  7199  // GoString returns the string representation.
  7200  //
  7201  // API parameter values that are decorated as "sensitive" in the API will not
  7202  // be included in the string output. The member name will be present, but the
  7203  // value will be replaced with "sensitive".
  7204  func (s InputDataConfig) GoString() string {
  7205  	return s.String()
  7206  }
  7207  
  7208  // Validate inspects the fields of the type to determine if they are valid.
  7209  func (s *InputDataConfig) Validate() error {
  7210  	invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"}
  7211  	if s.DataAccessRoleArn == nil {
  7212  		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
  7213  	}
  7214  	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
  7215  		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
  7216  	}
  7217  	if s.S3Uri == nil {
  7218  		invalidParams.Add(request.NewErrParamRequired("S3Uri"))
  7219  	}
  7220  	if s.S3Uri != nil && len(*s.S3Uri) < 1 {
  7221  		invalidParams.Add(request.NewErrParamMinLen("S3Uri", 1))
  7222  	}
  7223  	if s.TuningDataS3Uri != nil && len(*s.TuningDataS3Uri) < 1 {
  7224  		invalidParams.Add(request.NewErrParamMinLen("TuningDataS3Uri", 1))
  7225  	}
  7226  
  7227  	if invalidParams.Len() > 0 {
  7228  		return invalidParams
  7229  	}
  7230  	return nil
  7231  }
  7232  
  7233  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  7234  func (s *InputDataConfig) SetDataAccessRoleArn(v string) *InputDataConfig {
  7235  	s.DataAccessRoleArn = &v
  7236  	return s
  7237  }
  7238  
  7239  // SetS3Uri sets the S3Uri field's value.
  7240  func (s *InputDataConfig) SetS3Uri(v string) *InputDataConfig {
  7241  	s.S3Uri = &v
  7242  	return s
  7243  }
  7244  
  7245  // SetTuningDataS3Uri sets the TuningDataS3Uri field's value.
  7246  func (s *InputDataConfig) SetTuningDataS3Uri(v string) *InputDataConfig {
  7247  	s.TuningDataS3Uri = &v
  7248  	return s
  7249  }
  7250  
  7251  // There was an internal error. Check the error message and try your request
  7252  // again.
  7253  type InternalFailureException struct {
  7254  	_            struct{}                  `type:"structure"`
  7255  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  7256  
  7257  	Message_ *string `locationName:"Message" type:"string"`
  7258  }
  7259  
  7260  // String returns the string representation.
  7261  //
  7262  // API parameter values that are decorated as "sensitive" in the API will not
  7263  // be included in the string output. The member name will be present, but the
  7264  // value will be replaced with "sensitive".
  7265  func (s InternalFailureException) String() string {
  7266  	return awsutil.Prettify(s)
  7267  }
  7268  
  7269  // GoString returns the string representation.
  7270  //
  7271  // API parameter values that are decorated as "sensitive" in the API will not
  7272  // be included in the string output. The member name will be present, but the
  7273  // value will be replaced with "sensitive".
  7274  func (s InternalFailureException) GoString() string {
  7275  	return s.String()
  7276  }
  7277  
  7278  func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
  7279  	return &InternalFailureException{
  7280  		RespMetadata: v,
  7281  	}
  7282  }
  7283  
  7284  // Code returns the exception type name.
  7285  func (s *InternalFailureException) Code() string {
  7286  	return "InternalFailureException"
  7287  }
  7288  
  7289  // Message returns the exception's message.
  7290  func (s *InternalFailureException) Message() string {
  7291  	if s.Message_ != nil {
  7292  		return *s.Message_
  7293  	}
  7294  	return ""
  7295  }
  7296  
  7297  // OrigErr always returns nil, satisfies awserr.Error interface.
  7298  func (s *InternalFailureException) OrigErr() error {
  7299  	return nil
  7300  }
  7301  
  7302  func (s *InternalFailureException) Error() string {
  7303  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  7304  }
  7305  
  7306  // Status code returns the HTTP status code for the request's response error.
  7307  func (s *InternalFailureException) StatusCode() int {
  7308  	return s.RespMetadata.StatusCode
  7309  }
  7310  
  7311  // RequestID returns the service's response RequestID for request.
  7312  func (s *InternalFailureException) RequestID() string {
  7313  	return s.RespMetadata.RequestID
  7314  }
  7315  
  7316  // An object that enables you to configure your category to be applied to call
  7317  // analytics jobs where either the customer or agent was interrupted.
  7318  type InterruptionFilter struct {
  7319  	_ struct{} `type:"structure"`
  7320  
  7321  	// An object you can use to specify a time range (in milliseconds) for when
  7322  	// you'd want to find the interruption. For example, you could search for an
  7323  	// interruption between the 30,000 millisecond mark and the 45,000 millisecond
  7324  	// mark. You could also specify the time period as the first 15,000 milliseconds
  7325  	// or the last 15,000 milliseconds.
  7326  	AbsoluteTimeRange *AbsoluteTimeRange `type:"structure"`
  7327  
  7328  	// Set to TRUE to look for a time period where there was no interruption.
  7329  	Negate *bool `type:"boolean"`
  7330  
  7331  	// Indicates whether the caller or customer was interrupting.
  7332  	ParticipantRole *string `type:"string" enum:"ParticipantRole"`
  7333  
  7334  	// An object that allows percentages to specify the proportion of the call where
  7335  	// there was a interruption. For example, you can specify the first half of
  7336  	// the call. You can also specify the period of time between halfway through
  7337  	// to three-quarters of the way through the call. Because the length of conversation
  7338  	// can vary between calls, you can apply relative time ranges across all calls.
  7339  	RelativeTimeRange *RelativeTimeRange `type:"structure"`
  7340  
  7341  	// The duration of the interruption.
  7342  	Threshold *int64 `type:"long"`
  7343  }
  7344  
  7345  // String returns the string representation.
  7346  //
  7347  // API parameter values that are decorated as "sensitive" in the API will not
  7348  // be included in the string output. The member name will be present, but the
  7349  // value will be replaced with "sensitive".
  7350  func (s InterruptionFilter) String() string {
  7351  	return awsutil.Prettify(s)
  7352  }
  7353  
  7354  // GoString returns the string representation.
  7355  //
  7356  // API parameter values that are decorated as "sensitive" in the API will not
  7357  // be included in the string output. The member name will be present, but the
  7358  // value will be replaced with "sensitive".
  7359  func (s InterruptionFilter) GoString() string {
  7360  	return s.String()
  7361  }
  7362  
  7363  // SetAbsoluteTimeRange sets the AbsoluteTimeRange field's value.
  7364  func (s *InterruptionFilter) SetAbsoluteTimeRange(v *AbsoluteTimeRange) *InterruptionFilter {
  7365  	s.AbsoluteTimeRange = v
  7366  	return s
  7367  }
  7368  
  7369  // SetNegate sets the Negate field's value.
  7370  func (s *InterruptionFilter) SetNegate(v bool) *InterruptionFilter {
  7371  	s.Negate = &v
  7372  	return s
  7373  }
  7374  
  7375  // SetParticipantRole sets the ParticipantRole field's value.
  7376  func (s *InterruptionFilter) SetParticipantRole(v string) *InterruptionFilter {
  7377  	s.ParticipantRole = &v
  7378  	return s
  7379  }
  7380  
  7381  // SetRelativeTimeRange sets the RelativeTimeRange field's value.
  7382  func (s *InterruptionFilter) SetRelativeTimeRange(v *RelativeTimeRange) *InterruptionFilter {
  7383  	s.RelativeTimeRange = v
  7384  	return s
  7385  }
  7386  
  7387  // SetThreshold sets the Threshold field's value.
  7388  func (s *InterruptionFilter) SetThreshold(v int64) *InterruptionFilter {
  7389  	s.Threshold = &v
  7390  	return s
  7391  }
  7392  
  7393  // Provides information about when a transcription job should be executed.
  7394  type JobExecutionSettings struct {
  7395  	_ struct{} `type:"structure"`
  7396  
  7397  	// Indicates whether a job should be queued by Amazon Transcribe when the concurrent
  7398  	// execution limit is exceeded. When the AllowDeferredExecution field is true,
  7399  	// jobs are queued and executed when the number of executing jobs falls below
  7400  	// the concurrent execution limit. If the field is false, Amazon Transcribe
  7401  	// returns a LimitExceededException exception.
  7402  	//
  7403  	// Note that job queuing is enabled by default for call analytics jobs.
  7404  	//
  7405  	// If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn
  7406  	// field.
  7407  	AllowDeferredExecution *bool `type:"boolean"`
  7408  
  7409  	// The Amazon Resource Name (ARN) of a role that has access to the S3 bucket
  7410  	// that contains the input files. Amazon Transcribe assumes this role to read
  7411  	// queued media files. If you have specified an output S3 bucket for the transcription
  7412  	// results, this role should have access to the output bucket as well.
  7413  	//
  7414  	// If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn
  7415  	// field.
  7416  	DataAccessRoleArn *string `min:"20" type:"string"`
  7417  }
  7418  
  7419  // String returns the string representation.
  7420  //
  7421  // API parameter values that are decorated as "sensitive" in the API will not
  7422  // be included in the string output. The member name will be present, but the
  7423  // value will be replaced with "sensitive".
  7424  func (s JobExecutionSettings) String() string {
  7425  	return awsutil.Prettify(s)
  7426  }
  7427  
  7428  // GoString returns the string representation.
  7429  //
  7430  // API parameter values that are decorated as "sensitive" in the API will not
  7431  // be included in the string output. The member name will be present, but the
  7432  // value will be replaced with "sensitive".
  7433  func (s JobExecutionSettings) GoString() string {
  7434  	return s.String()
  7435  }
  7436  
  7437  // Validate inspects the fields of the type to determine if they are valid.
  7438  func (s *JobExecutionSettings) Validate() error {
  7439  	invalidParams := request.ErrInvalidParams{Context: "JobExecutionSettings"}
  7440  	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
  7441  		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
  7442  	}
  7443  
  7444  	if invalidParams.Len() > 0 {
  7445  		return invalidParams
  7446  	}
  7447  	return nil
  7448  }
  7449  
  7450  // SetAllowDeferredExecution sets the AllowDeferredExecution field's value.
  7451  func (s *JobExecutionSettings) SetAllowDeferredExecution(v bool) *JobExecutionSettings {
  7452  	s.AllowDeferredExecution = &v
  7453  	return s
  7454  }
  7455  
  7456  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
  7457  func (s *JobExecutionSettings) SetDataAccessRoleArn(v string) *JobExecutionSettings {
  7458  	s.DataAccessRoleArn = &v
  7459  	return s
  7460  }
  7461  
  7462  // The structure used to describe a custom language model.
  7463  type LanguageModel struct {
  7464  	_ struct{} `type:"structure"`
  7465  
  7466  	// The Amazon Transcribe standard language model, or base model used to create
  7467  	// the custom language model.
  7468  	BaseModelName *string `type:"string" enum:"BaseModelName"`
  7469  
  7470  	// The time the custom language model was created.
  7471  	CreateTime *time.Time `type:"timestamp"`
  7472  
  7473  	// The reason why the custom language model couldn't be created.
  7474  	FailureReason *string `type:"string"`
  7475  
  7476  	// The data access role and Amazon S3 prefixes for the input files used to train
  7477  	// the custom language model.
  7478  	InputDataConfig *InputDataConfig `type:"structure"`
  7479  
  7480  	// The language code you used to create your custom language model.
  7481  	LanguageCode *string `type:"string" enum:"CLMLanguageCode"`
  7482  
  7483  	// The most recent time the custom language model was modified.
  7484  	LastModifiedTime *time.Time `type:"timestamp"`
  7485  
  7486  	// The name of the custom language model.
  7487  	ModelName *string `min:"1" type:"string"`
  7488  
  7489  	// The creation status of a custom language model. When the status is COMPLETED
  7490  	// the model is ready for use.
  7491  	ModelStatus *string `type:"string" enum:"ModelStatus"`
  7492  
  7493  	// Whether the base model used for the custom language model is up to date.
  7494  	// If this field is true then you are running the most up-to-date version of
  7495  	// the base model in your custom language model.
  7496  	UpgradeAvailability *bool `type:"boolean"`
  7497  }
  7498  
  7499  // String returns the string representation.
  7500  //
  7501  // API parameter values that are decorated as "sensitive" in the API will not
  7502  // be included in the string output. The member name will be present, but the
  7503  // value will be replaced with "sensitive".
  7504  func (s LanguageModel) String() string {
  7505  	return awsutil.Prettify(s)
  7506  }
  7507  
  7508  // GoString returns the string representation.
  7509  //
  7510  // API parameter values that are decorated as "sensitive" in the API will not
  7511  // be included in the string output. The member name will be present, but the
  7512  // value will be replaced with "sensitive".
  7513  func (s LanguageModel) GoString() string {
  7514  	return s.String()
  7515  }
  7516  
  7517  // SetBaseModelName sets the BaseModelName field's value.
  7518  func (s *LanguageModel) SetBaseModelName(v string) *LanguageModel {
  7519  	s.BaseModelName = &v
  7520  	return s
  7521  }
  7522  
  7523  // SetCreateTime sets the CreateTime field's value.
  7524  func (s *LanguageModel) SetCreateTime(v time.Time) *LanguageModel {
  7525  	s.CreateTime = &v
  7526  	return s
  7527  }
  7528  
  7529  // SetFailureReason sets the FailureReason field's value.
  7530  func (s *LanguageModel) SetFailureReason(v string) *LanguageModel {
  7531  	s.FailureReason = &v
  7532  	return s
  7533  }
  7534  
  7535  // SetInputDataConfig sets the InputDataConfig field's value.
  7536  func (s *LanguageModel) SetInputDataConfig(v *InputDataConfig) *LanguageModel {
  7537  	s.InputDataConfig = v
  7538  	return s
  7539  }
  7540  
  7541  // SetLanguageCode sets the LanguageCode field's value.
  7542  func (s *LanguageModel) SetLanguageCode(v string) *LanguageModel {
  7543  	s.LanguageCode = &v
  7544  	return s
  7545  }
  7546  
  7547  // SetLastModifiedTime sets the LastModifiedTime field's value.
  7548  func (s *LanguageModel) SetLastModifiedTime(v time.Time) *LanguageModel {
  7549  	s.LastModifiedTime = &v
  7550  	return s
  7551  }
  7552  
  7553  // SetModelName sets the ModelName field's value.
  7554  func (s *LanguageModel) SetModelName(v string) *LanguageModel {
  7555  	s.ModelName = &v
  7556  	return s
  7557  }
  7558  
  7559  // SetModelStatus sets the ModelStatus field's value.
  7560  func (s *LanguageModel) SetModelStatus(v string) *LanguageModel {
  7561  	s.ModelStatus = &v
  7562  	return s
  7563  }
  7564  
  7565  // SetUpgradeAvailability sets the UpgradeAvailability field's value.
  7566  func (s *LanguageModel) SetUpgradeAvailability(v bool) *LanguageModel {
  7567  	s.UpgradeAvailability = &v
  7568  	return s
  7569  }
  7570  
  7571  // Either you have sent too many requests or your input file is too long. Wait
  7572  // before you resend your request, or use a smaller file and resend the request.
  7573  type LimitExceededException struct {
  7574  	_            struct{}                  `type:"structure"`
  7575  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  7576  
  7577  	Message_ *string `locationName:"Message" type:"string"`
  7578  }
  7579  
  7580  // String returns the string representation.
  7581  //
  7582  // API parameter values that are decorated as "sensitive" in the API will not
  7583  // be included in the string output. The member name will be present, but the
  7584  // value will be replaced with "sensitive".
  7585  func (s LimitExceededException) String() string {
  7586  	return awsutil.Prettify(s)
  7587  }
  7588  
  7589  // GoString returns the string representation.
  7590  //
  7591  // API parameter values that are decorated as "sensitive" in the API will not
  7592  // be included in the string output. The member name will be present, but the
  7593  // value will be replaced with "sensitive".
  7594  func (s LimitExceededException) GoString() string {
  7595  	return s.String()
  7596  }
  7597  
  7598  func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
  7599  	return &LimitExceededException{
  7600  		RespMetadata: v,
  7601  	}
  7602  }
  7603  
  7604  // Code returns the exception type name.
  7605  func (s *LimitExceededException) Code() string {
  7606  	return "LimitExceededException"
  7607  }
  7608  
  7609  // Message returns the exception's message.
  7610  func (s *LimitExceededException) Message() string {
  7611  	if s.Message_ != nil {
  7612  		return *s.Message_
  7613  	}
  7614  	return ""
  7615  }
  7616  
  7617  // OrigErr always returns nil, satisfies awserr.Error interface.
  7618  func (s *LimitExceededException) OrigErr() error {
  7619  	return nil
  7620  }
  7621  
  7622  func (s *LimitExceededException) Error() string {
  7623  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  7624  }
  7625  
  7626  // Status code returns the HTTP status code for the request's response error.
  7627  func (s *LimitExceededException) StatusCode() int {
  7628  	return s.RespMetadata.StatusCode
  7629  }
  7630  
  7631  // RequestID returns the service's response RequestID for request.
  7632  func (s *LimitExceededException) RequestID() string {
  7633  	return s.RespMetadata.RequestID
  7634  }
  7635  
  7636  type ListCallAnalyticsCategoriesInput struct {
  7637  	_ struct{} `type:"structure"`
  7638  
  7639  	// The maximum number of categories to return in each page of results. If there
  7640  	// are fewer results than the value you specify, only the actual results are
  7641  	// returned. If you do not specify a value, the default of 5 is used.
  7642  	MaxResults *int64 `min:"1" type:"integer"`
  7643  
  7644  	// When included, NextTokenfetches the next set of categories if the result
  7645  	// of the previous request was truncated.
  7646  	NextToken *string `type:"string"`
  7647  }
  7648  
  7649  // String returns the string representation.
  7650  //
  7651  // API parameter values that are decorated as "sensitive" in the API will not
  7652  // be included in the string output. The member name will be present, but the
  7653  // value will be replaced with "sensitive".
  7654  func (s ListCallAnalyticsCategoriesInput) String() string {
  7655  	return awsutil.Prettify(s)
  7656  }
  7657  
  7658  // GoString returns the string representation.
  7659  //
  7660  // API parameter values that are decorated as "sensitive" in the API will not
  7661  // be included in the string output. The member name will be present, but the
  7662  // value will be replaced with "sensitive".
  7663  func (s ListCallAnalyticsCategoriesInput) GoString() string {
  7664  	return s.String()
  7665  }
  7666  
  7667  // Validate inspects the fields of the type to determine if they are valid.
  7668  func (s *ListCallAnalyticsCategoriesInput) Validate() error {
  7669  	invalidParams := request.ErrInvalidParams{Context: "ListCallAnalyticsCategoriesInput"}
  7670  	if s.MaxResults != nil && *s.MaxResults < 1 {
  7671  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  7672  	}
  7673  
  7674  	if invalidParams.Len() > 0 {
  7675  		return invalidParams
  7676  	}
  7677  	return nil
  7678  }
  7679  
  7680  // SetMaxResults sets the MaxResults field's value.
  7681  func (s *ListCallAnalyticsCategoriesInput) SetMaxResults(v int64) *ListCallAnalyticsCategoriesInput {
  7682  	s.MaxResults = &v
  7683  	return s
  7684  }
  7685  
  7686  // SetNextToken sets the NextToken field's value.
  7687  func (s *ListCallAnalyticsCategoriesInput) SetNextToken(v string) *ListCallAnalyticsCategoriesInput {
  7688  	s.NextToken = &v
  7689  	return s
  7690  }
  7691  
  7692  type ListCallAnalyticsCategoriesOutput struct {
  7693  	_ struct{} `type:"structure"`
  7694  
  7695  	// A list of objects containing information about analytics categories.
  7696  	Categories []*CategoryProperties `type:"list"`
  7697  
  7698  	// The operation returns a page of jobs at a time. The maximum size of the list
  7699  	// is set by the MaxResults parameter. If there are more categories in the list
  7700  	// than the page size, Amazon Transcribe returns the NextPage token. Include
  7701  	// the token in the next request to the operation to return the next page of
  7702  	// analytics categories.
  7703  	NextToken *string `type:"string"`
  7704  }
  7705  
  7706  // String returns the string representation.
  7707  //
  7708  // API parameter values that are decorated as "sensitive" in the API will not
  7709  // be included in the string output. The member name will be present, but the
  7710  // value will be replaced with "sensitive".
  7711  func (s ListCallAnalyticsCategoriesOutput) String() string {
  7712  	return awsutil.Prettify(s)
  7713  }
  7714  
  7715  // GoString returns the string representation.
  7716  //
  7717  // API parameter values that are decorated as "sensitive" in the API will not
  7718  // be included in the string output. The member name will be present, but the
  7719  // value will be replaced with "sensitive".
  7720  func (s ListCallAnalyticsCategoriesOutput) GoString() string {
  7721  	return s.String()
  7722  }
  7723  
  7724  // SetCategories sets the Categories field's value.
  7725  func (s *ListCallAnalyticsCategoriesOutput) SetCategories(v []*CategoryProperties) *ListCallAnalyticsCategoriesOutput {
  7726  	s.Categories = v
  7727  	return s
  7728  }
  7729  
  7730  // SetNextToken sets the NextToken field's value.
  7731  func (s *ListCallAnalyticsCategoriesOutput) SetNextToken(v string) *ListCallAnalyticsCategoriesOutput {
  7732  	s.NextToken = &v
  7733  	return s
  7734  }
  7735  
  7736  type ListCallAnalyticsJobsInput struct {
  7737  	_ struct{} `type:"structure"`
  7738  
  7739  	// When specified, the jobs returned in the list are limited to jobs whose name
  7740  	// contains the specified string.
  7741  	JobNameContains *string `min:"1" type:"string"`
  7742  
  7743  	// The maximum number of call analytics jobs to return in each page of results.
  7744  	// If there are fewer results than the value you specify, only the actual results
  7745  	// are returned. If you do not specify a value, the default of 5 is used.
  7746  	MaxResults *int64 `min:"1" type:"integer"`
  7747  
  7748  	// If you receive a truncated result in the previous request of , include NextToken
  7749  	// to fetch the next set of jobs.
  7750  	NextToken *string `type:"string"`
  7751  
  7752  	// When specified, returns only call analytics jobs with the specified status.
  7753  	// Jobs are ordered by creation date, with the most recent jobs returned first.
  7754  	// If you don't specify a status, Amazon Transcribe returns all analytics jobs
  7755  	// ordered by creation date.
  7756  	Status *string `type:"string" enum:"CallAnalyticsJobStatus"`
  7757  }
  7758  
  7759  // String returns the string representation.
  7760  //
  7761  // API parameter values that are decorated as "sensitive" in the API will not
  7762  // be included in the string output. The member name will be present, but the
  7763  // value will be replaced with "sensitive".
  7764  func (s ListCallAnalyticsJobsInput) String() string {
  7765  	return awsutil.Prettify(s)
  7766  }
  7767  
  7768  // GoString returns the string representation.
  7769  //
  7770  // API parameter values that are decorated as "sensitive" in the API will not
  7771  // be included in the string output. The member name will be present, but the
  7772  // value will be replaced with "sensitive".
  7773  func (s ListCallAnalyticsJobsInput) GoString() string {
  7774  	return s.String()
  7775  }
  7776  
  7777  // Validate inspects the fields of the type to determine if they are valid.
  7778  func (s *ListCallAnalyticsJobsInput) Validate() error {
  7779  	invalidParams := request.ErrInvalidParams{Context: "ListCallAnalyticsJobsInput"}
  7780  	if s.JobNameContains != nil && len(*s.JobNameContains) < 1 {
  7781  		invalidParams.Add(request.NewErrParamMinLen("JobNameContains", 1))
  7782  	}
  7783  	if s.MaxResults != nil && *s.MaxResults < 1 {
  7784  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  7785  	}
  7786  
  7787  	if invalidParams.Len() > 0 {
  7788  		return invalidParams
  7789  	}
  7790  	return nil
  7791  }
  7792  
  7793  // SetJobNameContains sets the JobNameContains field's value.
  7794  func (s *ListCallAnalyticsJobsInput) SetJobNameContains(v string) *ListCallAnalyticsJobsInput {
  7795  	s.JobNameContains = &v
  7796  	return s
  7797  }
  7798  
  7799  // SetMaxResults sets the MaxResults field's value.
  7800  func (s *ListCallAnalyticsJobsInput) SetMaxResults(v int64) *ListCallAnalyticsJobsInput {
  7801  	s.MaxResults = &v
  7802  	return s
  7803  }
  7804  
  7805  // SetNextToken sets the NextToken field's value.
  7806  func (s *ListCallAnalyticsJobsInput) SetNextToken(v string) *ListCallAnalyticsJobsInput {
  7807  	s.NextToken = &v
  7808  	return s
  7809  }
  7810  
  7811  // SetStatus sets the Status field's value.
  7812  func (s *ListCallAnalyticsJobsInput) SetStatus(v string) *ListCallAnalyticsJobsInput {
  7813  	s.Status = &v
  7814  	return s
  7815  }
  7816  
  7817  type ListCallAnalyticsJobsOutput struct {
  7818  	_ struct{} `type:"structure"`
  7819  
  7820  	// A list of objects containing summary information for a transcription job.
  7821  	CallAnalyticsJobSummaries []*CallAnalyticsJobSummary `type:"list"`
  7822  
  7823  	// The operation returns a page of jobs at a time. The maximum size of the page
  7824  	// is set by the MaxResults parameter. If there are more jobs in the list than
  7825  	// the page size, Amazon Transcribe returns the NextPage token. Include the
  7826  	// token in your next request to the operation to return next page of jobs.
  7827  	NextToken *string `type:"string"`
  7828  
  7829  	// When specified, returns only call analytics jobs with that status. Jobs are
  7830  	// ordered by creation date, with the most recent jobs returned first. If you
  7831  	// don't specify a status, Amazon Transcribe returns all transcription jobs
  7832  	// ordered by creation date.
  7833  	Status *string `type:"string" enum:"CallAnalyticsJobStatus"`
  7834  }
  7835  
  7836  // String returns the string representation.
  7837  //
  7838  // API parameter values that are decorated as "sensitive" in the API will not
  7839  // be included in the string output. The member name will be present, but the
  7840  // value will be replaced with "sensitive".
  7841  func (s ListCallAnalyticsJobsOutput) String() string {
  7842  	return awsutil.Prettify(s)
  7843  }
  7844  
  7845  // GoString returns the string representation.
  7846  //
  7847  // API parameter values that are decorated as "sensitive" in the API will not
  7848  // be included in the string output. The member name will be present, but the
  7849  // value will be replaced with "sensitive".
  7850  func (s ListCallAnalyticsJobsOutput) GoString() string {
  7851  	return s.String()
  7852  }
  7853  
  7854  // SetCallAnalyticsJobSummaries sets the CallAnalyticsJobSummaries field's value.
  7855  func (s *ListCallAnalyticsJobsOutput) SetCallAnalyticsJobSummaries(v []*CallAnalyticsJobSummary) *ListCallAnalyticsJobsOutput {
  7856  	s.CallAnalyticsJobSummaries = v
  7857  	return s
  7858  }
  7859  
  7860  // SetNextToken sets the NextToken field's value.
  7861  func (s *ListCallAnalyticsJobsOutput) SetNextToken(v string) *ListCallAnalyticsJobsOutput {
  7862  	s.NextToken = &v
  7863  	return s
  7864  }
  7865  
  7866  // SetStatus sets the Status field's value.
  7867  func (s *ListCallAnalyticsJobsOutput) SetStatus(v string) *ListCallAnalyticsJobsOutput {
  7868  	s.Status = &v
  7869  	return s
  7870  }
  7871  
  7872  type ListLanguageModelsInput struct {
  7873  	_ struct{} `type:"structure"`
  7874  
  7875  	// The maximum number of language models to return in each page of results.
  7876  	// If there are fewer results than the value you specify, only the actual results
  7877  	// are returned. If you do not specify a value, the default of 5 is used.
  7878  	MaxResults *int64 `min:"1" type:"integer"`
  7879  
  7880  	// When specified, the custom language model names returned contain the substring
  7881  	// you've specified.
  7882  	NameContains *string `min:"1" type:"string"`
  7883  
  7884  	// When included, fetches the next set of jobs if the result of the previous
  7885  	// request was truncated.
  7886  	NextToken *string `type:"string"`
  7887  
  7888  	// When specified, returns only custom language models with the specified status.
  7889  	// Language models are ordered by creation date, with the newest models first.
  7890  	// If you don't specify a status, Amazon Transcribe returns all custom language
  7891  	// models ordered by date.
  7892  	StatusEquals *string `type:"string" enum:"ModelStatus"`
  7893  }
  7894  
  7895  // String returns the string representation.
  7896  //
  7897  // API parameter values that are decorated as "sensitive" in the API will not
  7898  // be included in the string output. The member name will be present, but the
  7899  // value will be replaced with "sensitive".
  7900  func (s ListLanguageModelsInput) String() string {
  7901  	return awsutil.Prettify(s)
  7902  }
  7903  
  7904  // GoString returns the string representation.
  7905  //
  7906  // API parameter values that are decorated as "sensitive" in the API will not
  7907  // be included in the string output. The member name will be present, but the
  7908  // value will be replaced with "sensitive".
  7909  func (s ListLanguageModelsInput) GoString() string {
  7910  	return s.String()
  7911  }
  7912  
  7913  // Validate inspects the fields of the type to determine if they are valid.
  7914  func (s *ListLanguageModelsInput) Validate() error {
  7915  	invalidParams := request.ErrInvalidParams{Context: "ListLanguageModelsInput"}
  7916  	if s.MaxResults != nil && *s.MaxResults < 1 {
  7917  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  7918  	}
  7919  	if s.NameContains != nil && len(*s.NameContains) < 1 {
  7920  		invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
  7921  	}
  7922  
  7923  	if invalidParams.Len() > 0 {
  7924  		return invalidParams
  7925  	}
  7926  	return nil
  7927  }
  7928  
  7929  // SetMaxResults sets the MaxResults field's value.
  7930  func (s *ListLanguageModelsInput) SetMaxResults(v int64) *ListLanguageModelsInput {
  7931  	s.MaxResults = &v
  7932  	return s
  7933  }
  7934  
  7935  // SetNameContains sets the NameContains field's value.
  7936  func (s *ListLanguageModelsInput) SetNameContains(v string) *ListLanguageModelsInput {
  7937  	s.NameContains = &v
  7938  	return s
  7939  }
  7940  
  7941  // SetNextToken sets the NextToken field's value.
  7942  func (s *ListLanguageModelsInput) SetNextToken(v string) *ListLanguageModelsInput {
  7943  	s.NextToken = &v
  7944  	return s
  7945  }
  7946  
  7947  // SetStatusEquals sets the StatusEquals field's value.
  7948  func (s *ListLanguageModelsInput) SetStatusEquals(v string) *ListLanguageModelsInput {
  7949  	s.StatusEquals = &v
  7950  	return s
  7951  }
  7952  
  7953  type ListLanguageModelsOutput struct {
  7954  	_ struct{} `type:"structure"`
  7955  
  7956  	// A list of objects containing information about custom language models.
  7957  	Models []*LanguageModel `type:"list"`
  7958  
  7959  	// The operation returns a page of jobs at a time. The maximum size of the list
  7960  	// is set by the MaxResults parameter. If there are more language models in
  7961  	// the list than the page size, Amazon Transcribe returns the NextPage token.
  7962  	// Include the token in the next request to the operation to return the next
  7963  	// page of language models.
  7964  	NextToken *string `type:"string"`
  7965  }
  7966  
  7967  // String returns the string representation.
  7968  //
  7969  // API parameter values that are decorated as "sensitive" in the API will not
  7970  // be included in the string output. The member name will be present, but the
  7971  // value will be replaced with "sensitive".
  7972  func (s ListLanguageModelsOutput) String() string {
  7973  	return awsutil.Prettify(s)
  7974  }
  7975  
  7976  // GoString returns the string representation.
  7977  //
  7978  // API parameter values that are decorated as "sensitive" in the API will not
  7979  // be included in the string output. The member name will be present, but the
  7980  // value will be replaced with "sensitive".
  7981  func (s ListLanguageModelsOutput) GoString() string {
  7982  	return s.String()
  7983  }
  7984  
  7985  // SetModels sets the Models field's value.
  7986  func (s *ListLanguageModelsOutput) SetModels(v []*LanguageModel) *ListLanguageModelsOutput {
  7987  	s.Models = v
  7988  	return s
  7989  }
  7990  
  7991  // SetNextToken sets the NextToken field's value.
  7992  func (s *ListLanguageModelsOutput) SetNextToken(v string) *ListLanguageModelsOutput {
  7993  	s.NextToken = &v
  7994  	return s
  7995  }
  7996  
  7997  type ListMedicalTranscriptionJobsInput struct {
  7998  	_ struct{} `type:"structure"`
  7999  
  8000  	// When specified, the jobs returned in the list are limited to jobs whose name
  8001  	// contains the specified string.
  8002  	JobNameContains *string `min:"1" type:"string"`
  8003  
  8004  	// The maximum number of medical transcription jobs to return in each page of
  8005  	// results. If there are fewer results than the value you specify, only the
  8006  	// actual results are returned. If you do not specify a value, the default of
  8007  	// 5 is used.
  8008  	MaxResults *int64 `min:"1" type:"integer"`
  8009  
  8010  	// If you a receive a truncated result in the previous request of ListMedicalTranscriptionJobs,
  8011  	// include NextToken to fetch the next set of jobs.
  8012  	NextToken *string `type:"string"`
  8013  
  8014  	// When specified, returns only medical transcription jobs with the specified
  8015  	// status. Jobs are ordered by creation date, with the newest jobs returned
  8016  	// first. If you don't specify a status, Amazon Transcribe Medical returns all
  8017  	// transcription jobs ordered by creation date.
  8018  	Status *string `type:"string" enum:"TranscriptionJobStatus"`
  8019  }
  8020  
  8021  // String returns the string representation.
  8022  //
  8023  // API parameter values that are decorated as "sensitive" in the API will not
  8024  // be included in the string output. The member name will be present, but the
  8025  // value will be replaced with "sensitive".
  8026  func (s ListMedicalTranscriptionJobsInput) String() string {
  8027  	return awsutil.Prettify(s)
  8028  }
  8029  
  8030  // GoString returns the string representation.
  8031  //
  8032  // API parameter values that are decorated as "sensitive" in the API will not
  8033  // be included in the string output. The member name will be present, but the
  8034  // value will be replaced with "sensitive".
  8035  func (s ListMedicalTranscriptionJobsInput) GoString() string {
  8036  	return s.String()
  8037  }
  8038  
  8039  // Validate inspects the fields of the type to determine if they are valid.
  8040  func (s *ListMedicalTranscriptionJobsInput) Validate() error {
  8041  	invalidParams := request.ErrInvalidParams{Context: "ListMedicalTranscriptionJobsInput"}
  8042  	if s.JobNameContains != nil && len(*s.JobNameContains) < 1 {
  8043  		invalidParams.Add(request.NewErrParamMinLen("JobNameContains", 1))
  8044  	}
  8045  	if s.MaxResults != nil && *s.MaxResults < 1 {
  8046  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  8047  	}
  8048  
  8049  	if invalidParams.Len() > 0 {
  8050  		return invalidParams
  8051  	}
  8052  	return nil
  8053  }
  8054  
  8055  // SetJobNameContains sets the JobNameContains field's value.
  8056  func (s *ListMedicalTranscriptionJobsInput) SetJobNameContains(v string) *ListMedicalTranscriptionJobsInput {
  8057  	s.JobNameContains = &v
  8058  	return s
  8059  }
  8060  
  8061  // SetMaxResults sets the MaxResults field's value.
  8062  func (s *ListMedicalTranscriptionJobsInput) SetMaxResults(v int64) *ListMedicalTranscriptionJobsInput {
  8063  	s.MaxResults = &v
  8064  	return s
  8065  }
  8066  
  8067  // SetNextToken sets the NextToken field's value.
  8068  func (s *ListMedicalTranscriptionJobsInput) SetNextToken(v string) *ListMedicalTranscriptionJobsInput {
  8069  	s.NextToken = &v
  8070  	return s
  8071  }
  8072  
  8073  // SetStatus sets the Status field's value.
  8074  func (s *ListMedicalTranscriptionJobsInput) SetStatus(v string) *ListMedicalTranscriptionJobsInput {
  8075  	s.Status = &v
  8076  	return s
  8077  }
  8078  
  8079  type ListMedicalTranscriptionJobsOutput struct {
  8080  	_ struct{} `type:"structure"`
  8081  
  8082  	// A list of objects containing summary information for a transcription job.
  8083  	MedicalTranscriptionJobSummaries []*MedicalTranscriptionJobSummary `type:"list"`
  8084  
  8085  	// The ListMedicalTranscriptionJobs operation returns a page of jobs at a time.
  8086  	// The maximum size of the page is set by the MaxResults parameter. If the number
  8087  	// of jobs exceeds what can fit on a page, Amazon Transcribe Medical returns
  8088  	// the NextPage token. Include the token in the next request to the ListMedicalTranscriptionJobs
  8089  	// operation to return in the next page of jobs.
  8090  	NextToken *string `type:"string"`
  8091  
  8092  	// The requested status of the medical transcription jobs returned.
  8093  	Status *string `type:"string" enum:"TranscriptionJobStatus"`
  8094  }
  8095  
  8096  // String returns the string representation.
  8097  //
  8098  // API parameter values that are decorated as "sensitive" in the API will not
  8099  // be included in the string output. The member name will be present, but the
  8100  // value will be replaced with "sensitive".
  8101  func (s ListMedicalTranscriptionJobsOutput) String() string {
  8102  	return awsutil.Prettify(s)
  8103  }
  8104  
  8105  // GoString returns the string representation.
  8106  //
  8107  // API parameter values that are decorated as "sensitive" in the API will not
  8108  // be included in the string output. The member name will be present, but the
  8109  // value will be replaced with "sensitive".
  8110  func (s ListMedicalTranscriptionJobsOutput) GoString() string {
  8111  	return s.String()
  8112  }
  8113  
  8114  // SetMedicalTranscriptionJobSummaries sets the MedicalTranscriptionJobSummaries field's value.
  8115  func (s *ListMedicalTranscriptionJobsOutput) SetMedicalTranscriptionJobSummaries(v []*MedicalTranscriptionJobSummary) *ListMedicalTranscriptionJobsOutput {
  8116  	s.MedicalTranscriptionJobSummaries = v
  8117  	return s
  8118  }
  8119  
  8120  // SetNextToken sets the NextToken field's value.
  8121  func (s *ListMedicalTranscriptionJobsOutput) SetNextToken(v string) *ListMedicalTranscriptionJobsOutput {
  8122  	s.NextToken = &v
  8123  	return s
  8124  }
  8125  
  8126  // SetStatus sets the Status field's value.
  8127  func (s *ListMedicalTranscriptionJobsOutput) SetStatus(v string) *ListMedicalTranscriptionJobsOutput {
  8128  	s.Status = &v
  8129  	return s
  8130  }
  8131  
  8132  type ListMedicalVocabulariesInput struct {
  8133  	_ struct{} `type:"structure"`
  8134  
  8135  	// The maximum number of vocabularies to return in each page of results. If
  8136  	// there are fewer results than the value you specify, only the actual results
  8137  	// are returned. If you do not specify a value, the default of 5 is used.
  8138  	MaxResults *int64 `min:"1" type:"integer"`
  8139  
  8140  	// Returns vocabularies whose names contain the specified string. The search
  8141  	// is not case sensitive. ListMedicalVocabularies returns both "vocabularyname"
  8142  	// and "VocabularyName".
  8143  	NameContains *string `min:"1" type:"string"`
  8144  
  8145  	// If the result of your previous request to ListMedicalVocabularies was truncated,
  8146  	// include the NextToken to fetch the next set of vocabularies.
  8147  	NextToken *string `type:"string"`
  8148  
  8149  	// When specified, returns only vocabularies with the VocabularyState equal
  8150  	// to the specified vocabulary state. Use this field to see which vocabularies
  8151  	// are ready for your medical transcription jobs.
  8152  	StateEquals *string `type:"string" enum:"VocabularyState"`
  8153  }
  8154  
  8155  // String returns the string representation.
  8156  //
  8157  // API parameter values that are decorated as "sensitive" in the API will not
  8158  // be included in the string output. The member name will be present, but the
  8159  // value will be replaced with "sensitive".
  8160  func (s ListMedicalVocabulariesInput) String() string {
  8161  	return awsutil.Prettify(s)
  8162  }
  8163  
  8164  // GoString returns the string representation.
  8165  //
  8166  // API parameter values that are decorated as "sensitive" in the API will not
  8167  // be included in the string output. The member name will be present, but the
  8168  // value will be replaced with "sensitive".
  8169  func (s ListMedicalVocabulariesInput) GoString() string {
  8170  	return s.String()
  8171  }
  8172  
  8173  // Validate inspects the fields of the type to determine if they are valid.
  8174  func (s *ListMedicalVocabulariesInput) Validate() error {
  8175  	invalidParams := request.ErrInvalidParams{Context: "ListMedicalVocabulariesInput"}
  8176  	if s.MaxResults != nil && *s.MaxResults < 1 {
  8177  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  8178  	}
  8179  	if s.NameContains != nil && len(*s.NameContains) < 1 {
  8180  		invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
  8181  	}
  8182  
  8183  	if invalidParams.Len() > 0 {
  8184  		return invalidParams
  8185  	}
  8186  	return nil
  8187  }
  8188  
  8189  // SetMaxResults sets the MaxResults field's value.
  8190  func (s *ListMedicalVocabulariesInput) SetMaxResults(v int64) *ListMedicalVocabulariesInput {
  8191  	s.MaxResults = &v
  8192  	return s
  8193  }
  8194  
  8195  // SetNameContains sets the NameContains field's value.
  8196  func (s *ListMedicalVocabulariesInput) SetNameContains(v string) *ListMedicalVocabulariesInput {
  8197  	s.NameContains = &v
  8198  	return s
  8199  }
  8200  
  8201  // SetNextToken sets the NextToken field's value.
  8202  func (s *ListMedicalVocabulariesInput) SetNextToken(v string) *ListMedicalVocabulariesInput {
  8203  	s.NextToken = &v
  8204  	return s
  8205  }
  8206  
  8207  // SetStateEquals sets the StateEquals field's value.
  8208  func (s *ListMedicalVocabulariesInput) SetStateEquals(v string) *ListMedicalVocabulariesInput {
  8209  	s.StateEquals = &v
  8210  	return s
  8211  }
  8212  
  8213  type ListMedicalVocabulariesOutput struct {
  8214  	_ struct{} `type:"structure"`
  8215  
  8216  	// The ListMedicalVocabularies operation returns a page of vocabularies at a
  8217  	// time. You set the maximum number of vocabularies to return on a page with
  8218  	// the MaxResults parameter. If there are more jobs in the list will fit on
  8219  	// a page, Amazon Transcribe Medical returns the NextPage token. To return the
  8220  	// next page of vocabularies, include the token in the next request to the ListMedicalVocabularies
  8221  	// operation .
  8222  	NextToken *string `type:"string"`
  8223  
  8224  	// The requested vocabulary state.
  8225  	Status *string `type:"string" enum:"VocabularyState"`
  8226  
  8227  	// A list of objects that describe the vocabularies that match your search criteria.
  8228  	Vocabularies []*VocabularyInfo `type:"list"`
  8229  }
  8230  
  8231  // String returns the string representation.
  8232  //
  8233  // API parameter values that are decorated as "sensitive" in the API will not
  8234  // be included in the string output. The member name will be present, but the
  8235  // value will be replaced with "sensitive".
  8236  func (s ListMedicalVocabulariesOutput) String() string {
  8237  	return awsutil.Prettify(s)
  8238  }
  8239  
  8240  // GoString returns the string representation.
  8241  //
  8242  // API parameter values that are decorated as "sensitive" in the API will not
  8243  // be included in the string output. The member name will be present, but the
  8244  // value will be replaced with "sensitive".
  8245  func (s ListMedicalVocabulariesOutput) GoString() string {
  8246  	return s.String()
  8247  }
  8248  
  8249  // SetNextToken sets the NextToken field's value.
  8250  func (s *ListMedicalVocabulariesOutput) SetNextToken(v string) *ListMedicalVocabulariesOutput {
  8251  	s.NextToken = &v
  8252  	return s
  8253  }
  8254  
  8255  // SetStatus sets the Status field's value.
  8256  func (s *ListMedicalVocabulariesOutput) SetStatus(v string) *ListMedicalVocabulariesOutput {
  8257  	s.Status = &v
  8258  	return s
  8259  }
  8260  
  8261  // SetVocabularies sets the Vocabularies field's value.
  8262  func (s *ListMedicalVocabulariesOutput) SetVocabularies(v []*VocabularyInfo) *ListMedicalVocabulariesOutput {
  8263  	s.Vocabularies = v
  8264  	return s
  8265  }
  8266  
  8267  type ListTagsForResourceInput struct {
  8268  	_ struct{} `type:"structure"`
  8269  
  8270  	// Lists all tags associated with a given Amazon Resource Name (ARN).
  8271  	//
  8272  	// ResourceArn is a required field
  8273  	ResourceArn *string `min:"1" type:"string" required:"true"`
  8274  }
  8275  
  8276  // String returns the string representation.
  8277  //
  8278  // API parameter values that are decorated as "sensitive" in the API will not
  8279  // be included in the string output. The member name will be present, but the
  8280  // value will be replaced with "sensitive".
  8281  func (s ListTagsForResourceInput) String() string {
  8282  	return awsutil.Prettify(s)
  8283  }
  8284  
  8285  // GoString returns the string representation.
  8286  //
  8287  // API parameter values that are decorated as "sensitive" in the API will not
  8288  // be included in the string output. The member name will be present, but the
  8289  // value will be replaced with "sensitive".
  8290  func (s ListTagsForResourceInput) GoString() string {
  8291  	return s.String()
  8292  }
  8293  
  8294  // Validate inspects the fields of the type to determine if they are valid.
  8295  func (s *ListTagsForResourceInput) Validate() error {
  8296  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  8297  	if s.ResourceArn == nil {
  8298  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  8299  	}
  8300  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  8301  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  8302  	}
  8303  
  8304  	if invalidParams.Len() > 0 {
  8305  		return invalidParams
  8306  	}
  8307  	return nil
  8308  }
  8309  
  8310  // SetResourceArn sets the ResourceArn field's value.
  8311  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  8312  	s.ResourceArn = &v
  8313  	return s
  8314  }
  8315  
  8316  type ListTagsForResourceOutput struct {
  8317  	_ struct{} `type:"structure"`
  8318  
  8319  	// Lists all tags associated with the given Amazon Resource Name (ARN).
  8320  	ResourceArn *string `min:"1" type:"string"`
  8321  
  8322  	// Lists all tags associated with the given transcription job, vocabulary, or
  8323  	// resource.
  8324  	Tags []*Tag `min:"1" type:"list"`
  8325  }
  8326  
  8327  // String returns the string representation.
  8328  //
  8329  // API parameter values that are decorated as "sensitive" in the API will not
  8330  // be included in the string output. The member name will be present, but the
  8331  // value will be replaced with "sensitive".
  8332  func (s ListTagsForResourceOutput) String() string {
  8333  	return awsutil.Prettify(s)
  8334  }
  8335  
  8336  // GoString returns the string representation.
  8337  //
  8338  // API parameter values that are decorated as "sensitive" in the API will not
  8339  // be included in the string output. The member name will be present, but the
  8340  // value will be replaced with "sensitive".
  8341  func (s ListTagsForResourceOutput) GoString() string {
  8342  	return s.String()
  8343  }
  8344  
  8345  // SetResourceArn sets the ResourceArn field's value.
  8346  func (s *ListTagsForResourceOutput) SetResourceArn(v string) *ListTagsForResourceOutput {
  8347  	s.ResourceArn = &v
  8348  	return s
  8349  }
  8350  
  8351  // SetTags sets the Tags field's value.
  8352  func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
  8353  	s.Tags = v
  8354  	return s
  8355  }
  8356  
  8357  type ListTranscriptionJobsInput struct {
  8358  	_ struct{} `type:"structure"`
  8359  
  8360  	// When specified, the jobs returned in the list are limited to jobs whose name
  8361  	// contains the specified string.
  8362  	JobNameContains *string `min:"1" type:"string"`
  8363  
  8364  	// The maximum number of jobs to return in each page of results. If there are
  8365  	// fewer results than the value you specify, only the actual results are returned.
  8366  	// If you do not specify a value, the default of 5 is used.
  8367  	MaxResults *int64 `min:"1" type:"integer"`
  8368  
  8369  	// If the result of the previous request to ListTranscriptionJobs is truncated,
  8370  	// include the NextToken to fetch the next set of jobs.
  8371  	NextToken *string `type:"string"`
  8372  
  8373  	// When specified, returns only transcription jobs with the specified status.
  8374  	// Jobs are ordered by creation date, with the newest jobs returned first. If
  8375  	// you don’t specify a status, Amazon Transcribe returns all transcription
  8376  	// jobs ordered by creation date.
  8377  	Status *string `type:"string" enum:"TranscriptionJobStatus"`
  8378  }
  8379  
  8380  // String returns the string representation.
  8381  //
  8382  // API parameter values that are decorated as "sensitive" in the API will not
  8383  // be included in the string output. The member name will be present, but the
  8384  // value will be replaced with "sensitive".
  8385  func (s ListTranscriptionJobsInput) String() string {
  8386  	return awsutil.Prettify(s)
  8387  }
  8388  
  8389  // GoString returns the string representation.
  8390  //
  8391  // API parameter values that are decorated as "sensitive" in the API will not
  8392  // be included in the string output. The member name will be present, but the
  8393  // value will be replaced with "sensitive".
  8394  func (s ListTranscriptionJobsInput) GoString() string {
  8395  	return s.String()
  8396  }
  8397  
  8398  // Validate inspects the fields of the type to determine if they are valid.
  8399  func (s *ListTranscriptionJobsInput) Validate() error {
  8400  	invalidParams := request.ErrInvalidParams{Context: "ListTranscriptionJobsInput"}
  8401  	if s.JobNameContains != nil && len(*s.JobNameContains) < 1 {
  8402  		invalidParams.Add(request.NewErrParamMinLen("JobNameContains", 1))
  8403  	}
  8404  	if s.MaxResults != nil && *s.MaxResults < 1 {
  8405  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  8406  	}
  8407  
  8408  	if invalidParams.Len() > 0 {
  8409  		return invalidParams
  8410  	}
  8411  	return nil
  8412  }
  8413  
  8414  // SetJobNameContains sets the JobNameContains field's value.
  8415  func (s *ListTranscriptionJobsInput) SetJobNameContains(v string) *ListTranscriptionJobsInput {
  8416  	s.JobNameContains = &v
  8417  	return s
  8418  }
  8419  
  8420  // SetMaxResults sets the MaxResults field's value.
  8421  func (s *ListTranscriptionJobsInput) SetMaxResults(v int64) *ListTranscriptionJobsInput {
  8422  	s.MaxResults = &v
  8423  	return s
  8424  }
  8425  
  8426  // SetNextToken sets the NextToken field's value.
  8427  func (s *ListTranscriptionJobsInput) SetNextToken(v string) *ListTranscriptionJobsInput {
  8428  	s.NextToken = &v
  8429  	return s
  8430  }
  8431  
  8432  // SetStatus sets the Status field's value.
  8433  func (s *ListTranscriptionJobsInput) SetStatus(v string) *ListTranscriptionJobsInput {
  8434  	s.Status = &v
  8435  	return s
  8436  }
  8437  
  8438  type ListTranscriptionJobsOutput struct {
  8439  	_ struct{} `type:"structure"`
  8440  
  8441  	// The ListTranscriptionJobs operation returns a page of jobs at a time. The
  8442  	// maximum size of the page is set by the MaxResults parameter. If there are
  8443  	// more jobs in the list than the page size, Amazon Transcribe returns the NextPage
  8444  	// token. Include the token in the next request to the ListTranscriptionJobs
  8445  	// operation to return in the next page of jobs.
  8446  	NextToken *string `type:"string"`
  8447  
  8448  	// The requested status of the jobs returned.
  8449  	Status *string `type:"string" enum:"TranscriptionJobStatus"`
  8450  
  8451  	// A list of objects containing summary information for a transcription job.
  8452  	TranscriptionJobSummaries []*TranscriptionJobSummary `type:"list"`
  8453  }
  8454  
  8455  // String returns the string representation.
  8456  //
  8457  // API parameter values that are decorated as "sensitive" in the API will not
  8458  // be included in the string output. The member name will be present, but the
  8459  // value will be replaced with "sensitive".
  8460  func (s ListTranscriptionJobsOutput) String() string {
  8461  	return awsutil.Prettify(s)
  8462  }
  8463  
  8464  // GoString returns the string representation.
  8465  //
  8466  // API parameter values that are decorated as "sensitive" in the API will not
  8467  // be included in the string output. The member name will be present, but the
  8468  // value will be replaced with "sensitive".
  8469  func (s ListTranscriptionJobsOutput) GoString() string {
  8470  	return s.String()
  8471  }
  8472  
  8473  // SetNextToken sets the NextToken field's value.
  8474  func (s *ListTranscriptionJobsOutput) SetNextToken(v string) *ListTranscriptionJobsOutput {
  8475  	s.NextToken = &v
  8476  	return s
  8477  }
  8478  
  8479  // SetStatus sets the Status field's value.
  8480  func (s *ListTranscriptionJobsOutput) SetStatus(v string) *ListTranscriptionJobsOutput {
  8481  	s.Status = &v
  8482  	return s
  8483  }
  8484  
  8485  // SetTranscriptionJobSummaries sets the TranscriptionJobSummaries field's value.
  8486  func (s *ListTranscriptionJobsOutput) SetTranscriptionJobSummaries(v []*TranscriptionJobSummary) *ListTranscriptionJobsOutput {
  8487  	s.TranscriptionJobSummaries = v
  8488  	return s
  8489  }
  8490  
  8491  type ListVocabulariesInput struct {
  8492  	_ struct{} `type:"structure"`
  8493  
  8494  	// The maximum number of vocabularies to return in each page of results. If
  8495  	// there are fewer results than the value you specify, only the actual results
  8496  	// are returned. If you do not specify a value, the default of 5 is used.
  8497  	MaxResults *int64 `min:"1" type:"integer"`
  8498  
  8499  	// When specified, the vocabularies returned in the list are limited to vocabularies
  8500  	// whose name contains the specified string. The search is not case sensitive,
  8501  	// ListVocabularies returns both "vocabularyname" and "VocabularyName" in the
  8502  	// response list.
  8503  	NameContains *string `min:"1" type:"string"`
  8504  
  8505  	// If the result of the previous request to ListVocabularies was truncated,
  8506  	// include the NextToken to fetch the next set of jobs.
  8507  	NextToken *string `type:"string"`
  8508  
  8509  	// When specified, only returns vocabularies with the VocabularyState field
  8510  	// equal to the specified state.
  8511  	StateEquals *string `type:"string" enum:"VocabularyState"`
  8512  }
  8513  
  8514  // String returns the string representation.
  8515  //
  8516  // API parameter values that are decorated as "sensitive" in the API will not
  8517  // be included in the string output. The member name will be present, but the
  8518  // value will be replaced with "sensitive".
  8519  func (s ListVocabulariesInput) String() string {
  8520  	return awsutil.Prettify(s)
  8521  }
  8522  
  8523  // GoString returns the string representation.
  8524  //
  8525  // API parameter values that are decorated as "sensitive" in the API will not
  8526  // be included in the string output. The member name will be present, but the
  8527  // value will be replaced with "sensitive".
  8528  func (s ListVocabulariesInput) GoString() string {
  8529  	return s.String()
  8530  }
  8531  
  8532  // Validate inspects the fields of the type to determine if they are valid.
  8533  func (s *ListVocabulariesInput) Validate() error {
  8534  	invalidParams := request.ErrInvalidParams{Context: "ListVocabulariesInput"}
  8535  	if s.MaxResults != nil && *s.MaxResults < 1 {
  8536  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  8537  	}
  8538  	if s.NameContains != nil && len(*s.NameContains) < 1 {
  8539  		invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
  8540  	}
  8541  
  8542  	if invalidParams.Len() > 0 {
  8543  		return invalidParams
  8544  	}
  8545  	return nil
  8546  }
  8547  
  8548  // SetMaxResults sets the MaxResults field's value.
  8549  func (s *ListVocabulariesInput) SetMaxResults(v int64) *ListVocabulariesInput {
  8550  	s.MaxResults = &v
  8551  	return s
  8552  }
  8553  
  8554  // SetNameContains sets the NameContains field's value.
  8555  func (s *ListVocabulariesInput) SetNameContains(v string) *ListVocabulariesInput {
  8556  	s.NameContains = &v
  8557  	return s
  8558  }
  8559  
  8560  // SetNextToken sets the NextToken field's value.
  8561  func (s *ListVocabulariesInput) SetNextToken(v string) *ListVocabulariesInput {
  8562  	s.NextToken = &v
  8563  	return s
  8564  }
  8565  
  8566  // SetStateEquals sets the StateEquals field's value.
  8567  func (s *ListVocabulariesInput) SetStateEquals(v string) *ListVocabulariesInput {
  8568  	s.StateEquals = &v
  8569  	return s
  8570  }
  8571  
  8572  type ListVocabulariesOutput struct {
  8573  	_ struct{} `type:"structure"`
  8574  
  8575  	// The ListVocabularies operation returns a page of vocabularies at a time.
  8576  	// The maximum size of the page is set in the MaxResults parameter. If there
  8577  	// are more jobs in the list than will fit on the page, Amazon Transcribe returns
  8578  	// the NextPage token. To return in the next page of jobs, include the token
  8579  	// in the next request to the ListVocabularies operation.
  8580  	NextToken *string `type:"string"`
  8581  
  8582  	// The requested vocabulary state.
  8583  	Status *string `type:"string" enum:"VocabularyState"`
  8584  
  8585  	// A list of objects that describe the vocabularies that match the search criteria
  8586  	// in the request.
  8587  	Vocabularies []*VocabularyInfo `type:"list"`
  8588  }
  8589  
  8590  // String returns the string representation.
  8591  //
  8592  // API parameter values that are decorated as "sensitive" in the API will not
  8593  // be included in the string output. The member name will be present, but the
  8594  // value will be replaced with "sensitive".
  8595  func (s ListVocabulariesOutput) String() string {
  8596  	return awsutil.Prettify(s)
  8597  }
  8598  
  8599  // GoString returns the string representation.
  8600  //
  8601  // API parameter values that are decorated as "sensitive" in the API will not
  8602  // be included in the string output. The member name will be present, but the
  8603  // value will be replaced with "sensitive".
  8604  func (s ListVocabulariesOutput) GoString() string {
  8605  	return s.String()
  8606  }
  8607  
  8608  // SetNextToken sets the NextToken field's value.
  8609  func (s *ListVocabulariesOutput) SetNextToken(v string) *ListVocabulariesOutput {
  8610  	s.NextToken = &v
  8611  	return s
  8612  }
  8613  
  8614  // SetStatus sets the Status field's value.
  8615  func (s *ListVocabulariesOutput) SetStatus(v string) *ListVocabulariesOutput {
  8616  	s.Status = &v
  8617  	return s
  8618  }
  8619  
  8620  // SetVocabularies sets the Vocabularies field's value.
  8621  func (s *ListVocabulariesOutput) SetVocabularies(v []*VocabularyInfo) *ListVocabulariesOutput {
  8622  	s.Vocabularies = v
  8623  	return s
  8624  }
  8625  
  8626  type ListVocabularyFiltersInput struct {
  8627  	_ struct{} `type:"structure"`
  8628  
  8629  	// The maximum number of filters to return in each page of results. If there
  8630  	// are fewer results than the value you specify, only the actual results are
  8631  	// returned. If you do not specify a value, the default of 5 is used.
  8632  	MaxResults *int64 `min:"1" type:"integer"`
  8633  
  8634  	// Filters the response so that it only contains vocabulary filters whose name
  8635  	// contains the specified string.
  8636  	NameContains *string `min:"1" type:"string"`
  8637  
  8638  	// If the result of the previous request to ListVocabularyFilters was truncated,
  8639  	// include the NextToken to fetch the next set of collections.
  8640  	NextToken *string `type:"string"`
  8641  }
  8642  
  8643  // String returns the string representation.
  8644  //
  8645  // API parameter values that are decorated as "sensitive" in the API will not
  8646  // be included in the string output. The member name will be present, but the
  8647  // value will be replaced with "sensitive".
  8648  func (s ListVocabularyFiltersInput) String() string {
  8649  	return awsutil.Prettify(s)
  8650  }
  8651  
  8652  // GoString returns the string representation.
  8653  //
  8654  // API parameter values that are decorated as "sensitive" in the API will not
  8655  // be included in the string output. The member name will be present, but the
  8656  // value will be replaced with "sensitive".
  8657  func (s ListVocabularyFiltersInput) GoString() string {
  8658  	return s.String()
  8659  }
  8660  
  8661  // Validate inspects the fields of the type to determine if they are valid.
  8662  func (s *ListVocabularyFiltersInput) Validate() error {
  8663  	invalidParams := request.ErrInvalidParams{Context: "ListVocabularyFiltersInput"}
  8664  	if s.MaxResults != nil && *s.MaxResults < 1 {
  8665  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  8666  	}
  8667  	if s.NameContains != nil && len(*s.NameContains) < 1 {
  8668  		invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
  8669  	}
  8670  
  8671  	if invalidParams.Len() > 0 {
  8672  		return invalidParams
  8673  	}
  8674  	return nil
  8675  }
  8676  
  8677  // SetMaxResults sets the MaxResults field's value.
  8678  func (s *ListVocabularyFiltersInput) SetMaxResults(v int64) *ListVocabularyFiltersInput {
  8679  	s.MaxResults = &v
  8680  	return s
  8681  }
  8682  
  8683  // SetNameContains sets the NameContains field's value.
  8684  func (s *ListVocabularyFiltersInput) SetNameContains(v string) *ListVocabularyFiltersInput {
  8685  	s.NameContains = &v
  8686  	return s
  8687  }
  8688  
  8689  // SetNextToken sets the NextToken field's value.
  8690  func (s *ListVocabularyFiltersInput) SetNextToken(v string) *ListVocabularyFiltersInput {
  8691  	s.NextToken = &v
  8692  	return s
  8693  }
  8694  
  8695  type ListVocabularyFiltersOutput struct {
  8696  	_ struct{} `type:"structure"`
  8697  
  8698  	// The ListVocabularyFilters operation returns a page of collections at a time.
  8699  	// The maximum size of the page is set by the MaxResults parameter. If there
  8700  	// are more jobs in the list than the page size, Amazon Transcribe returns the
  8701  	// NextPage token. Include the token in the next request to the ListVocabularyFilters
  8702  	// operation to return in the next page of jobs.
  8703  	NextToken *string `type:"string"`
  8704  
  8705  	// The list of vocabulary filters. It contains at most MaxResults number of
  8706  	// filters. If there are more filters, call the ListVocabularyFilters operation
  8707  	// again with the NextToken parameter in the request set to the value of the
  8708  	// NextToken field in the response.
  8709  	VocabularyFilters []*VocabularyFilterInfo `type:"list"`
  8710  }
  8711  
  8712  // String returns the string representation.
  8713  //
  8714  // API parameter values that are decorated as "sensitive" in the API will not
  8715  // be included in the string output. The member name will be present, but the
  8716  // value will be replaced with "sensitive".
  8717  func (s ListVocabularyFiltersOutput) String() string {
  8718  	return awsutil.Prettify(s)
  8719  }
  8720  
  8721  // GoString returns the string representation.
  8722  //
  8723  // API parameter values that are decorated as "sensitive" in the API will not
  8724  // be included in the string output. The member name will be present, but the
  8725  // value will be replaced with "sensitive".
  8726  func (s ListVocabularyFiltersOutput) GoString() string {
  8727  	return s.String()
  8728  }
  8729  
  8730  // SetNextToken sets the NextToken field's value.
  8731  func (s *ListVocabularyFiltersOutput) SetNextToken(v string) *ListVocabularyFiltersOutput {
  8732  	s.NextToken = &v
  8733  	return s
  8734  }
  8735  
  8736  // SetVocabularyFilters sets the VocabularyFilters field's value.
  8737  func (s *ListVocabularyFiltersOutput) SetVocabularyFilters(v []*VocabularyFilterInfo) *ListVocabularyFiltersOutput {
  8738  	s.VocabularyFilters = v
  8739  	return s
  8740  }
  8741  
  8742  // Describes the input media file in a transcription request.
  8743  type Media struct {
  8744  	_ struct{} `type:"structure"`
  8745  
  8746  	// The S3 object location of the input media file. The URI must be in the same
  8747  	// region as the API endpoint that you are calling. The general form is:
  8748  	//
  8749  	// For example:
  8750  	//
  8751  	// For more information about S3 object names, see Object Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys)
  8752  	// in the Amazon S3 Developer Guide.
  8753  	MediaFileUri *string `min:"1" type:"string"`
  8754  
  8755  	// The S3 object location for your redacted output media file. This is only
  8756  	// supported for call analytics jobs.
  8757  	RedactedMediaFileUri *string `min:"1" type:"string"`
  8758  }
  8759  
  8760  // String returns the string representation.
  8761  //
  8762  // API parameter values that are decorated as "sensitive" in the API will not
  8763  // be included in the string output. The member name will be present, but the
  8764  // value will be replaced with "sensitive".
  8765  func (s Media) String() string {
  8766  	return awsutil.Prettify(s)
  8767  }
  8768  
  8769  // GoString returns the string representation.
  8770  //
  8771  // API parameter values that are decorated as "sensitive" in the API will not
  8772  // be included in the string output. The member name will be present, but the
  8773  // value will be replaced with "sensitive".
  8774  func (s Media) GoString() string {
  8775  	return s.String()
  8776  }
  8777  
  8778  // Validate inspects the fields of the type to determine if they are valid.
  8779  func (s *Media) Validate() error {
  8780  	invalidParams := request.ErrInvalidParams{Context: "Media"}
  8781  	if s.MediaFileUri != nil && len(*s.MediaFileUri) < 1 {
  8782  		invalidParams.Add(request.NewErrParamMinLen("MediaFileUri", 1))
  8783  	}
  8784  	if s.RedactedMediaFileUri != nil && len(*s.RedactedMediaFileUri) < 1 {
  8785  		invalidParams.Add(request.NewErrParamMinLen("RedactedMediaFileUri", 1))
  8786  	}
  8787  
  8788  	if invalidParams.Len() > 0 {
  8789  		return invalidParams
  8790  	}
  8791  	return nil
  8792  }
  8793  
  8794  // SetMediaFileUri sets the MediaFileUri field's value.
  8795  func (s *Media) SetMediaFileUri(v string) *Media {
  8796  	s.MediaFileUri = &v
  8797  	return s
  8798  }
  8799  
  8800  // SetRedactedMediaFileUri sets the RedactedMediaFileUri field's value.
  8801  func (s *Media) SetRedactedMediaFileUri(v string) *Media {
  8802  	s.RedactedMediaFileUri = &v
  8803  	return s
  8804  }
  8805  
  8806  // Identifies the location of a medical transcript.
  8807  type MedicalTranscript struct {
  8808  	_ struct{} `type:"structure"`
  8809  
  8810  	// The S3 object location of the medical transcript.
  8811  	//
  8812  	// Use this URI to access the medical transcript. This URI points to the S3
  8813  	// bucket you created to store the medical transcript.
  8814  	TranscriptFileUri *string `min:"1" type:"string"`
  8815  }
  8816  
  8817  // String returns the string representation.
  8818  //
  8819  // API parameter values that are decorated as "sensitive" in the API will not
  8820  // be included in the string output. The member name will be present, but the
  8821  // value will be replaced with "sensitive".
  8822  func (s MedicalTranscript) String() string {
  8823  	return awsutil.Prettify(s)
  8824  }
  8825  
  8826  // GoString returns the string representation.
  8827  //
  8828  // API parameter values that are decorated as "sensitive" in the API will not
  8829  // be included in the string output. The member name will be present, but the
  8830  // value will be replaced with "sensitive".
  8831  func (s MedicalTranscript) GoString() string {
  8832  	return s.String()
  8833  }
  8834  
  8835  // SetTranscriptFileUri sets the TranscriptFileUri field's value.
  8836  func (s *MedicalTranscript) SetTranscriptFileUri(v string) *MedicalTranscript {
  8837  	s.TranscriptFileUri = &v
  8838  	return s
  8839  }
  8840  
  8841  // The data structure that contains the information for a medical transcription
  8842  // job.
  8843  type MedicalTranscriptionJob struct {
  8844  	_ struct{} `type:"structure"`
  8845  
  8846  	// A timestamp that shows when the job was completed.
  8847  	CompletionTime *time.Time `type:"timestamp"`
  8848  
  8849  	// Shows the type of content that you've configured Amazon Transcribe Medical
  8850  	// to identify in a transcription job. If the value is PHI, you've configured
  8851  	// the job to identify personal health information (PHI) in the transcription
  8852  	// output.
  8853  	ContentIdentificationType *string `type:"string" enum:"MedicalContentIdentificationType"`
  8854  
  8855  	// A timestamp that shows when the job was created.
  8856  	CreationTime *time.Time `type:"timestamp"`
  8857  
  8858  	// If the TranscriptionJobStatus field is FAILED, this field contains information
  8859  	// about why the job failed.
  8860  	//
  8861  	// The FailureReason field contains one of the following values:
  8862  	//
  8863  	//    * Unsupported media format- The media format specified in the MediaFormat
  8864  	//    field of the request isn't valid. See the description of the MediaFormat
  8865  	//    field for a list of valid values.
  8866  	//
  8867  	//    * The media format provided does not match the detected media format-
  8868  	//    The media format of the audio file doesn't match the format specified
  8869  	//    in the MediaFormat field in the request. Check the media format of your
  8870  	//    media file and make sure the two values match.
  8871  	//
  8872  	//    * Invalid sample rate for audio file- The sample rate specified in the
  8873  	//    MediaSampleRateHertz of the request isn't valid. The sample rate must
  8874  	//    be between 8,000 and 48,000 Hertz.
  8875  	//
  8876  	//    * The sample rate provided does not match the detected sample rate- The
  8877  	//    sample rate in the audio file doesn't match the sample rate specified
  8878  	//    in the MediaSampleRateHertz field in the request. Check the sample rate
  8879  	//    of your media file and make sure that the two values match.
  8880  	//
  8881  	//    * Invalid file size: file size too large- The size of your audio file
  8882  	//    is larger than what Amazon Transcribe Medical can process. For more information,
  8883  	//    see Guidelines and Quotas (https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits)
  8884  	//    in the Amazon Transcribe Medical Guide
  8885  	//
  8886  	//    * Invalid number of channels: number of channels too large- Your audio
  8887  	//    contains more channels than Amazon Transcribe Medical is configured to
  8888  	//    process. To request additional channels, see Amazon Transcribe Medical
  8889  	//    Endpoints and Quotas (https://docs.aws.amazon.com/general/latest/gr/transcribe-medical.html)
  8890  	//    in the Amazon Web Services General Reference
  8891  	FailureReason *string `type:"string"`
  8892  
  8893  	// The language code for the language spoken in the source audio file. US English
  8894  	// (en-US) is the only supported language for medical transcriptions. Any other
  8895  	// value you enter for language code results in a BadRequestException error.
  8896  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  8897  
  8898  	// Describes the input media file in a transcription request.
  8899  	Media *Media `type:"structure"`
  8900  
  8901  	// The format of the input media file.
  8902  	MediaFormat *string `type:"string" enum:"MediaFormat"`
  8903  
  8904  	// The sample rate, in Hertz, of the source audio containing medical information.
  8905  	//
  8906  	// If you don't specify the sample rate, Amazon Transcribe Medical determines
  8907  	// it for you. If you choose to specify the sample rate, it must match the rate
  8908  	// detected by Amazon Transcribe Medical. In most cases, you should leave the
  8909  	// MedicalMediaSampleHertz blank and let Amazon Transcribe Medical determine
  8910  	// the sample rate.
  8911  	MediaSampleRateHertz *int64 `min:"8000" type:"integer"`
  8912  
  8913  	// The name for a given medical transcription job.
  8914  	MedicalTranscriptionJobName *string `min:"1" type:"string"`
  8915  
  8916  	// Object that contains object.
  8917  	Settings *MedicalTranscriptionSetting `type:"structure"`
  8918  
  8919  	// The medical specialty of any clinicians providing a dictation or having a
  8920  	// conversation. Refer to Transcribing a medical conversation (https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-medical-conversation.html)for
  8921  	// a list of supported specialties.
  8922  	Specialty *string `type:"string" enum:"Specialty"`
  8923  
  8924  	// A timestamp that shows when the job started processing.
  8925  	StartTime *time.Time `type:"timestamp"`
  8926  
  8927  	// A key:value pair assigned to a given medical transcription job.
  8928  	Tags []*Tag `min:"1" type:"list"`
  8929  
  8930  	// An object that contains the MedicalTranscript. The MedicalTranscript contains
  8931  	// the TranscriptFileUri.
  8932  	Transcript *MedicalTranscript `type:"structure"`
  8933  
  8934  	// The completion status of a medical transcription job.
  8935  	TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"`
  8936  
  8937  	// The type of speech in the transcription job. CONVERSATION is generally used
  8938  	// for patient-physician dialogues. DICTATION is the setting for physicians
  8939  	// speaking their notes after seeing a patient. For more information, see What
  8940  	// is Amazon Transcribe Medical? (https://docs.aws.amazon.com/transcribe/latest/dg/what-is-transcribe-med.html).
  8941  	Type *string `type:"string" enum:"Type"`
  8942  }
  8943  
  8944  // String returns the string representation.
  8945  //
  8946  // API parameter values that are decorated as "sensitive" in the API will not
  8947  // be included in the string output. The member name will be present, but the
  8948  // value will be replaced with "sensitive".
  8949  func (s MedicalTranscriptionJob) String() string {
  8950  	return awsutil.Prettify(s)
  8951  }
  8952  
  8953  // GoString returns the string representation.
  8954  //
  8955  // API parameter values that are decorated as "sensitive" in the API will not
  8956  // be included in the string output. The member name will be present, but the
  8957  // value will be replaced with "sensitive".
  8958  func (s MedicalTranscriptionJob) GoString() string {
  8959  	return s.String()
  8960  }
  8961  
  8962  // SetCompletionTime sets the CompletionTime field's value.
  8963  func (s *MedicalTranscriptionJob) SetCompletionTime(v time.Time) *MedicalTranscriptionJob {
  8964  	s.CompletionTime = &v
  8965  	return s
  8966  }
  8967  
  8968  // SetContentIdentificationType sets the ContentIdentificationType field's value.
  8969  func (s *MedicalTranscriptionJob) SetContentIdentificationType(v string) *MedicalTranscriptionJob {
  8970  	s.ContentIdentificationType = &v
  8971  	return s
  8972  }
  8973  
  8974  // SetCreationTime sets the CreationTime field's value.
  8975  func (s *MedicalTranscriptionJob) SetCreationTime(v time.Time) *MedicalTranscriptionJob {
  8976  	s.CreationTime = &v
  8977  	return s
  8978  }
  8979  
  8980  // SetFailureReason sets the FailureReason field's value.
  8981  func (s *MedicalTranscriptionJob) SetFailureReason(v string) *MedicalTranscriptionJob {
  8982  	s.FailureReason = &v
  8983  	return s
  8984  }
  8985  
  8986  // SetLanguageCode sets the LanguageCode field's value.
  8987  func (s *MedicalTranscriptionJob) SetLanguageCode(v string) *MedicalTranscriptionJob {
  8988  	s.LanguageCode = &v
  8989  	return s
  8990  }
  8991  
  8992  // SetMedia sets the Media field's value.
  8993  func (s *MedicalTranscriptionJob) SetMedia(v *Media) *MedicalTranscriptionJob {
  8994  	s.Media = v
  8995  	return s
  8996  }
  8997  
  8998  // SetMediaFormat sets the MediaFormat field's value.
  8999  func (s *MedicalTranscriptionJob) SetMediaFormat(v string) *MedicalTranscriptionJob {
  9000  	s.MediaFormat = &v
  9001  	return s
  9002  }
  9003  
  9004  // SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
  9005  func (s *MedicalTranscriptionJob) SetMediaSampleRateHertz(v int64) *MedicalTranscriptionJob {
  9006  	s.MediaSampleRateHertz = &v
  9007  	return s
  9008  }
  9009  
  9010  // SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value.
  9011  func (s *MedicalTranscriptionJob) SetMedicalTranscriptionJobName(v string) *MedicalTranscriptionJob {
  9012  	s.MedicalTranscriptionJobName = &v
  9013  	return s
  9014  }
  9015  
  9016  // SetSettings sets the Settings field's value.
  9017  func (s *MedicalTranscriptionJob) SetSettings(v *MedicalTranscriptionSetting) *MedicalTranscriptionJob {
  9018  	s.Settings = v
  9019  	return s
  9020  }
  9021  
  9022  // SetSpecialty sets the Specialty field's value.
  9023  func (s *MedicalTranscriptionJob) SetSpecialty(v string) *MedicalTranscriptionJob {
  9024  	s.Specialty = &v
  9025  	return s
  9026  }
  9027  
  9028  // SetStartTime sets the StartTime field's value.
  9029  func (s *MedicalTranscriptionJob) SetStartTime(v time.Time) *MedicalTranscriptionJob {
  9030  	s.StartTime = &v
  9031  	return s
  9032  }
  9033  
  9034  // SetTags sets the Tags field's value.
  9035  func (s *MedicalTranscriptionJob) SetTags(v []*Tag) *MedicalTranscriptionJob {
  9036  	s.Tags = v
  9037  	return s
  9038  }
  9039  
  9040  // SetTranscript sets the Transcript field's value.
  9041  func (s *MedicalTranscriptionJob) SetTranscript(v *MedicalTranscript) *MedicalTranscriptionJob {
  9042  	s.Transcript = v
  9043  	return s
  9044  }
  9045  
  9046  // SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value.
  9047  func (s *MedicalTranscriptionJob) SetTranscriptionJobStatus(v string) *MedicalTranscriptionJob {
  9048  	s.TranscriptionJobStatus = &v
  9049  	return s
  9050  }
  9051  
  9052  // SetType sets the Type field's value.
  9053  func (s *MedicalTranscriptionJob) SetType(v string) *MedicalTranscriptionJob {
  9054  	s.Type = &v
  9055  	return s
  9056  }
  9057  
  9058  // Provides summary information about a transcription job.
  9059  type MedicalTranscriptionJobSummary struct {
  9060  	_ struct{} `type:"structure"`
  9061  
  9062  	// A timestamp that shows when the job was completed.
  9063  	CompletionTime *time.Time `type:"timestamp"`
  9064  
  9065  	// Shows the type of information you've configured Amazon Transcribe Medical
  9066  	// to identify in a transcription job. If the value is PHI, you've configured
  9067  	// the transcription job to identify personal health information (PHI).
  9068  	ContentIdentificationType *string `type:"string" enum:"MedicalContentIdentificationType"`
  9069  
  9070  	// A timestamp that shows when the medical transcription job was created.
  9071  	CreationTime *time.Time `type:"timestamp"`
  9072  
  9073  	// If the TranscriptionJobStatus field is FAILED, a description of the error.
  9074  	FailureReason *string `type:"string"`
  9075  
  9076  	// The language of the transcript in the source audio file.
  9077  	LanguageCode *string `type:"string" enum:"LanguageCode"`
  9078  
  9079  	// The name of a medical transcription job.
  9080  	MedicalTranscriptionJobName *string `min:"1" type:"string"`
  9081  
  9082  	// Indicates the location of the transcription job's output. This field must
  9083  	// be the path of an S3 bucket; if you don't already have an S3 bucket, one
  9084  	// is created based on the path you add.
  9085  	OutputLocationType *string `type:"string" enum:"OutputLocationType"`
  9086  
  9087  	// The medical specialty of the transcription job. Refer to Transcribing a medical
  9088  	// conversation (https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-medical-conversation.html)for
  9089  	// a list of supported specialties.
  9090  	Specialty *string `type:"string" enum:"Specialty"`
  9091  
  9092  	// A timestamp that shows when the job began processing.
  9093  	StartTime *time.Time `type:"timestamp"`
  9094  
  9095  	// The status of the medical transcription job.
  9096  	TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"`
  9097  
  9098  	// The speech of the clinician in the input audio.
  9099  	Type *string `type:"string" enum:"Type"`
  9100  }
  9101  
  9102  // String returns the string representation.
  9103  //
  9104  // API parameter values that are decorated as "sensitive" in the API will not
  9105  // be included in the string output. The member name will be present, but the
  9106  // value will be replaced with "sensitive".
  9107  func (s MedicalTranscriptionJobSummary) String() string {
  9108  	return awsutil.Prettify(s)
  9109  }
  9110  
  9111  // GoString returns the string representation.
  9112  //
  9113  // API parameter values that are decorated as "sensitive" in the API will not
  9114  // be included in the string output. The member name will be present, but the
  9115  // value will be replaced with "sensitive".
  9116  func (s MedicalTranscriptionJobSummary) GoString() string {
  9117  	return s.String()
  9118  }
  9119  
  9120  // SetCompletionTime sets the CompletionTime field's value.
  9121  func (s *MedicalTranscriptionJobSummary) SetCompletionTime(v time.Time) *MedicalTranscriptionJobSummary {
  9122  	s.CompletionTime = &v
  9123  	return s
  9124  }
  9125  
  9126  // SetContentIdentificationType sets the ContentIdentificationType field's value.
  9127  func (s *MedicalTranscriptionJobSummary) SetContentIdentificationType(v string) *MedicalTranscriptionJobSummary {
  9128  	s.ContentIdentificationType = &v
  9129  	return s
  9130  }
  9131  
  9132  // SetCreationTime sets the CreationTime field's value.
  9133  func (s *MedicalTranscriptionJobSummary) SetCreationTime(v time.Time) *MedicalTranscriptionJobSummary {
  9134  	s.CreationTime = &v
  9135  	return s
  9136  }
  9137  
  9138  // SetFailureReason sets the FailureReason field's value.
  9139  func (s *MedicalTranscriptionJobSummary) SetFailureReason(v string) *MedicalTranscriptionJobSummary {
  9140  	s.FailureReason = &v
  9141  	return s
  9142  }
  9143  
  9144  // SetLanguageCode sets the LanguageCode field's value.
  9145  func (s *MedicalTranscriptionJobSummary) SetLanguageCode(v string) *MedicalTranscriptionJobSummary {
  9146  	s.LanguageCode = &v
  9147  	return s
  9148  }
  9149  
  9150  // SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value.
  9151  func (s *MedicalTranscriptionJobSummary) SetMedicalTranscriptionJobName(v string) *MedicalTranscriptionJobSummary {
  9152  	s.MedicalTranscriptionJobName = &v
  9153  	return s
  9154  }
  9155  
  9156  // SetOutputLocationType sets the OutputLocationType field's value.
  9157  func (s *MedicalTranscriptionJobSummary) SetOutputLocationType(v string) *MedicalTranscriptionJobSummary {
  9158  	s.OutputLocationType = &v
  9159  	return s
  9160  }
  9161  
  9162  // SetSpecialty sets the Specialty field's value.
  9163  func (s *MedicalTranscriptionJobSummary) SetSpecialty(v string) *MedicalTranscriptionJobSummary {
  9164  	s.Specialty = &v
  9165  	return s
  9166  }
  9167  
  9168  // SetStartTime sets the StartTime field's value.
  9169  func (s *MedicalTranscriptionJobSummary) SetStartTime(v time.Time) *MedicalTranscriptionJobSummary {
  9170  	s.StartTime = &v
  9171  	return s
  9172  }
  9173  
  9174  // SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value.
  9175  func (s *MedicalTranscriptionJobSummary) SetTranscriptionJobStatus(v string) *MedicalTranscriptionJobSummary {
  9176  	s.TranscriptionJobStatus = &v
  9177  	return s
  9178  }
  9179  
  9180  // SetType sets the Type field's value.
  9181  func (s *MedicalTranscriptionJobSummary) SetType(v string) *MedicalTranscriptionJobSummary {
  9182  	s.Type = &v
  9183  	return s
  9184  }
  9185  
  9186  // Optional settings for the StartMedicalTranscriptionJob operation.
  9187  type MedicalTranscriptionSetting struct {
  9188  	_ struct{} `type:"structure"`
  9189  
  9190  	// Instructs Amazon Transcribe Medical to process each audio channel separately
  9191  	// and then merge the transcription output of each channel into a single transcription.
  9192  	//
  9193  	// Amazon Transcribe Medical also produces a transcription of each item detected
  9194  	// on an audio channel, including the start time and end time of the item and
  9195  	// alternative transcriptions of item. The alternative transcriptions also come
  9196  	// with confidence scores provided by Amazon Transcribe Medical.
  9197  	//
  9198  	// You can't set both ShowSpeakerLabels and ChannelIdentification in the same
  9199  	// request. If you set both, your request returns a BadRequestException
  9200  	ChannelIdentification *bool `type:"boolean"`
  9201  
  9202  	// The maximum number of alternatives that you tell the service to return. If
  9203  	// you specify the MaxAlternatives field, you must set the ShowAlternatives
  9204  	// field to true.
  9205  	MaxAlternatives *int64 `min:"2" type:"integer"`
  9206  
  9207  	// The maximum number of speakers to identify in the input audio. If there are
  9208  	// more speakers in the audio than this number, multiple speakers are identified
  9209  	// as a single speaker. If you specify the MaxSpeakerLabels field, you must
  9210  	// set the ShowSpeakerLabels field to true.
  9211  	MaxSpeakerLabels *int64 `min:"2" type:"integer"`
  9212  
  9213  	// Determines whether alternative transcripts are generated along with the transcript
  9214  	// that has the highest confidence. If you set ShowAlternatives field to true,
  9215  	// you must also set the maximum number of alternatives to return in the MaxAlternatives
  9216  	// field.
  9217  	ShowAlternatives *bool `type:"boolean"`
  9218  
  9219  	// Determines whether the transcription job uses speaker recognition to identify
  9220  	// different speakers in the input audio. Speaker recognition labels individual
  9221  	// speakers in the audio file. If you set the ShowSpeakerLabels field to true,
  9222  	// you must also set the maximum number of speaker labels in the MaxSpeakerLabels
  9223  	// field.
  9224  	//
  9225  	// You can't set both ShowSpeakerLabels and ChannelIdentification in the same
  9226  	// request. If you set both, your request returns a BadRequestException.
  9227  	ShowSpeakerLabels *bool `type:"boolean"`
  9228  
  9229  	// The name of the vocabulary to use when processing a medical transcription
  9230  	// job.
  9231  	VocabularyName *string `min:"1" type:"string"`
  9232  }
  9233  
  9234  // String returns the string representation.
  9235  //
  9236  // API parameter values that are decorated as "sensitive" in the API will not
  9237  // be included in the string output. The member name will be present, but the
  9238  // value will be replaced with "sensitive".
  9239  func (s MedicalTranscriptionSetting) String() string {
  9240  	return awsutil.Prettify(s)
  9241  }
  9242  
  9243  // GoString returns the string representation.
  9244  //
  9245  // API parameter values that are decorated as "sensitive" in the API will not
  9246  // be included in the string output. The member name will be present, but the
  9247  // value will be replaced with "sensitive".
  9248  func (s MedicalTranscriptionSetting) GoString() string {
  9249  	return s.String()
  9250  }
  9251  
  9252  // Validate inspects the fields of the type to determine if they are valid.
  9253  func (s *MedicalTranscriptionSetting) Validate() error {
  9254  	invalidParams := request.ErrInvalidParams{Context: "MedicalTranscriptionSetting"}
  9255  	if s.MaxAlternatives != nil && *s.MaxAlternatives < 2 {
  9256  		invalidParams.Add(request.NewErrParamMinValue("MaxAlternatives", 2))
  9257  	}
  9258  	if s.MaxSpeakerLabels != nil && *s.MaxSpeakerLabels < 2 {
  9259  		invalidParams.Add(request.NewErrParamMinValue("MaxSpeakerLabels", 2))
  9260  	}
  9261  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  9262  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  9263  	}
  9264  
  9265  	if invalidParams.Len() > 0 {
  9266  		return invalidParams
  9267  	}
  9268  	return nil
  9269  }
  9270  
  9271  // SetChannelIdentification sets the ChannelIdentification field's value.
  9272  func (s *MedicalTranscriptionSetting) SetChannelIdentification(v bool) *MedicalTranscriptionSetting {
  9273  	s.ChannelIdentification = &v
  9274  	return s
  9275  }
  9276  
  9277  // SetMaxAlternatives sets the MaxAlternatives field's value.
  9278  func (s *MedicalTranscriptionSetting) SetMaxAlternatives(v int64) *MedicalTranscriptionSetting {
  9279  	s.MaxAlternatives = &v
  9280  	return s
  9281  }
  9282  
  9283  // SetMaxSpeakerLabels sets the MaxSpeakerLabels field's value.
  9284  func (s *MedicalTranscriptionSetting) SetMaxSpeakerLabels(v int64) *MedicalTranscriptionSetting {
  9285  	s.MaxSpeakerLabels = &v
  9286  	return s
  9287  }
  9288  
  9289  // SetShowAlternatives sets the ShowAlternatives field's value.
  9290  func (s *MedicalTranscriptionSetting) SetShowAlternatives(v bool) *MedicalTranscriptionSetting {
  9291  	s.ShowAlternatives = &v
  9292  	return s
  9293  }
  9294  
  9295  // SetShowSpeakerLabels sets the ShowSpeakerLabels field's value.
  9296  func (s *MedicalTranscriptionSetting) SetShowSpeakerLabels(v bool) *MedicalTranscriptionSetting {
  9297  	s.ShowSpeakerLabels = &v
  9298  	return s
  9299  }
  9300  
  9301  // SetVocabularyName sets the VocabularyName field's value.
  9302  func (s *MedicalTranscriptionSetting) SetVocabularyName(v string) *MedicalTranscriptionSetting {
  9303  	s.VocabularyName = &v
  9304  	return s
  9305  }
  9306  
  9307  // The object used to call your custom language model to your transcription
  9308  // job.
  9309  type ModelSettings struct {
  9310  	_ struct{} `type:"structure"`
  9311  
  9312  	// The name of your custom language model.
  9313  	LanguageModelName *string `min:"1" type:"string"`
  9314  }
  9315  
  9316  // String returns the string representation.
  9317  //
  9318  // API parameter values that are decorated as "sensitive" in the API will not
  9319  // be included in the string output. The member name will be present, but the
  9320  // value will be replaced with "sensitive".
  9321  func (s ModelSettings) String() string {
  9322  	return awsutil.Prettify(s)
  9323  }
  9324  
  9325  // GoString returns the string representation.
  9326  //
  9327  // API parameter values that are decorated as "sensitive" in the API will not
  9328  // be included in the string output. The member name will be present, but the
  9329  // value will be replaced with "sensitive".
  9330  func (s ModelSettings) GoString() string {
  9331  	return s.String()
  9332  }
  9333  
  9334  // Validate inspects the fields of the type to determine if they are valid.
  9335  func (s *ModelSettings) Validate() error {
  9336  	invalidParams := request.ErrInvalidParams{Context: "ModelSettings"}
  9337  	if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 {
  9338  		invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1))
  9339  	}
  9340  
  9341  	if invalidParams.Len() > 0 {
  9342  		return invalidParams
  9343  	}
  9344  	return nil
  9345  }
  9346  
  9347  // SetLanguageModelName sets the LanguageModelName field's value.
  9348  func (s *ModelSettings) SetLanguageModelName(v string) *ModelSettings {
  9349  	s.LanguageModelName = &v
  9350  	return s
  9351  }
  9352  
  9353  // An object that enables you to configure your category to be applied to call
  9354  // analytics jobs where either the customer or agent was interrupted.
  9355  type NonTalkTimeFilter struct {
  9356  	_ struct{} `type:"structure"`
  9357  
  9358  	// An object you can use to specify a time range (in milliseconds) for when
  9359  	// no one is talking. For example, you could specify a time period between the
  9360  	// 30,000 millisecond mark and the 45,000 millisecond mark. You could also specify
  9361  	// the time period as the first 15,000 milliseconds or the last 15,000 milliseconds.
  9362  	AbsoluteTimeRange *AbsoluteTimeRange `type:"structure"`
  9363  
  9364  	// Set to TRUE to look for a time period when people were talking.
  9365  	Negate *bool `type:"boolean"`
  9366  
  9367  	// An object that allows percentages to specify the proportion of the call where
  9368  	// there was silence. For example, you can specify the first half of the call.
  9369  	// You can also specify the period of time between halfway through to three-quarters
  9370  	// of the way through the call. Because the length of conversation can vary
  9371  	// between calls, you can apply relative time ranges across all calls.
  9372  	RelativeTimeRange *RelativeTimeRange `type:"structure"`
  9373  
  9374  	// The duration of the period when neither the customer nor agent was talking.
  9375  	Threshold *int64 `type:"long"`
  9376  }
  9377  
  9378  // String returns the string representation.
  9379  //
  9380  // API parameter values that are decorated as "sensitive" in the API will not
  9381  // be included in the string output. The member name will be present, but the
  9382  // value will be replaced with "sensitive".
  9383  func (s NonTalkTimeFilter) String() string {
  9384  	return awsutil.Prettify(s)
  9385  }
  9386  
  9387  // GoString returns the string representation.
  9388  //
  9389  // API parameter values that are decorated as "sensitive" in the API will not
  9390  // be included in the string output. The member name will be present, but the
  9391  // value will be replaced with "sensitive".
  9392  func (s NonTalkTimeFilter) GoString() string {
  9393  	return s.String()
  9394  }
  9395  
  9396  // SetAbsoluteTimeRange sets the AbsoluteTimeRange field's value.
  9397  func (s *NonTalkTimeFilter) SetAbsoluteTimeRange(v *AbsoluteTimeRange) *NonTalkTimeFilter {
  9398  	s.AbsoluteTimeRange = v
  9399  	return s
  9400  }
  9401  
  9402  // SetNegate sets the Negate field's value.
  9403  func (s *NonTalkTimeFilter) SetNegate(v bool) *NonTalkTimeFilter {
  9404  	s.Negate = &v
  9405  	return s
  9406  }
  9407  
  9408  // SetRelativeTimeRange sets the RelativeTimeRange field's value.
  9409  func (s *NonTalkTimeFilter) SetRelativeTimeRange(v *RelativeTimeRange) *NonTalkTimeFilter {
  9410  	s.RelativeTimeRange = v
  9411  	return s
  9412  }
  9413  
  9414  // SetThreshold sets the Threshold field's value.
  9415  func (s *NonTalkTimeFilter) SetThreshold(v int64) *NonTalkTimeFilter {
  9416  	s.Threshold = &v
  9417  	return s
  9418  }
  9419  
  9420  // We can't find the requested resource. Check the name and try your request
  9421  // again.
  9422  type NotFoundException struct {
  9423  	_            struct{}                  `type:"structure"`
  9424  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  9425  
  9426  	Message_ *string `locationName:"Message" type:"string"`
  9427  }
  9428  
  9429  // String returns the string representation.
  9430  //
  9431  // API parameter values that are decorated as "sensitive" in the API will not
  9432  // be included in the string output. The member name will be present, but the
  9433  // value will be replaced with "sensitive".
  9434  func (s NotFoundException) String() string {
  9435  	return awsutil.Prettify(s)
  9436  }
  9437  
  9438  // GoString returns the string representation.
  9439  //
  9440  // API parameter values that are decorated as "sensitive" in the API will not
  9441  // be included in the string output. The member name will be present, but the
  9442  // value will be replaced with "sensitive".
  9443  func (s NotFoundException) GoString() string {
  9444  	return s.String()
  9445  }
  9446  
  9447  func newErrorNotFoundException(v protocol.ResponseMetadata) error {
  9448  	return &NotFoundException{
  9449  		RespMetadata: v,
  9450  	}
  9451  }
  9452  
  9453  // Code returns the exception type name.
  9454  func (s *NotFoundException) Code() string {
  9455  	return "NotFoundException"
  9456  }
  9457  
  9458  // Message returns the exception's message.
  9459  func (s *NotFoundException) Message() string {
  9460  	if s.Message_ != nil {
  9461  		return *s.Message_
  9462  	}
  9463  	return ""
  9464  }
  9465  
  9466  // OrigErr always returns nil, satisfies awserr.Error interface.
  9467  func (s *NotFoundException) OrigErr() error {
  9468  	return nil
  9469  }
  9470  
  9471  func (s *NotFoundException) Error() string {
  9472  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  9473  }
  9474  
  9475  // Status code returns the HTTP status code for the request's response error.
  9476  func (s *NotFoundException) StatusCode() int {
  9477  	return s.RespMetadata.StatusCode
  9478  }
  9479  
  9480  // RequestID returns the service's response RequestID for request.
  9481  func (s *NotFoundException) RequestID() string {
  9482  	return s.RespMetadata.RequestID
  9483  }
  9484  
  9485  // An object that allows percentages to specify the proportion of the call where
  9486  // you would like to apply a filter. For example, you can specify the first
  9487  // half of the call. You can also specify the period of time between halfway
  9488  // through to three-quarters of the way through the call. Because the length
  9489  // of conversation can vary between calls, you can apply relative time ranges
  9490  // across all calls.
  9491  type RelativeTimeRange struct {
  9492  	_ struct{} `type:"structure"`
  9493  
  9494  	// A value that indicates the percentage of the end of the time range. To set
  9495  	// a relative time range, you must specify a start percentage and an end percentage.
  9496  	// For example, if you specify the following values:
  9497  	//
  9498  	//    * StartPercentage - 10
  9499  	//
  9500  	//    * EndPercentage - 50
  9501  	//
  9502  	// This looks at the time range starting from 10% of the way into the call to
  9503  	// 50% of the way through the call. For a call that lasts 100,000 milliseconds,
  9504  	// this example range would apply from the 10,000 millisecond mark to the 50,000
  9505  	// millisecond mark.
  9506  	EndPercentage *int64 `type:"integer"`
  9507  
  9508  	// A range that takes the portion of the call up to the time in milliseconds
  9509  	// set by the value that you've specified. For example, if you specify 120000,
  9510  	// the time range is set for the first 120,000 milliseconds of the call.
  9511  	First *int64 `type:"integer"`
  9512  
  9513  	// A range that takes the portion of the call from the time in milliseconds
  9514  	// set by the value that you've specified to the end of the call. For example,
  9515  	// if you specify 120000, the time range is set for the last 120,000 milliseconds
  9516  	// of the call.
  9517  	Last *int64 `type:"integer"`
  9518  
  9519  	// A value that indicates the percentage of the beginning of the time range.
  9520  	// To set a relative time range, you must specify a start percentage and an
  9521  	// end percentage. For example, if you specify the following values:
  9522  	//
  9523  	//    * StartPercentage - 10
  9524  	//
  9525  	//    * EndPercentage - 50
  9526  	//
  9527  	// This looks at the time range starting from 10% of the way into the call to
  9528  	// 50% of the way through the call. For a call that lasts 100,000 milliseconds,
  9529  	// this example range would apply from the 10,000 millisecond mark to the 50,000
  9530  	// millisecond mark.
  9531  	StartPercentage *int64 `type:"integer"`
  9532  }
  9533  
  9534  // String returns the string representation.
  9535  //
  9536  // API parameter values that are decorated as "sensitive" in the API will not
  9537  // be included in the string output. The member name will be present, but the
  9538  // value will be replaced with "sensitive".
  9539  func (s RelativeTimeRange) String() string {
  9540  	return awsutil.Prettify(s)
  9541  }
  9542  
  9543  // GoString returns the string representation.
  9544  //
  9545  // API parameter values that are decorated as "sensitive" in the API will not
  9546  // be included in the string output. The member name will be present, but the
  9547  // value will be replaced with "sensitive".
  9548  func (s RelativeTimeRange) GoString() string {
  9549  	return s.String()
  9550  }
  9551  
  9552  // SetEndPercentage sets the EndPercentage field's value.
  9553  func (s *RelativeTimeRange) SetEndPercentage(v int64) *RelativeTimeRange {
  9554  	s.EndPercentage = &v
  9555  	return s
  9556  }
  9557  
  9558  // SetFirst sets the First field's value.
  9559  func (s *RelativeTimeRange) SetFirst(v int64) *RelativeTimeRange {
  9560  	s.First = &v
  9561  	return s
  9562  }
  9563  
  9564  // SetLast sets the Last field's value.
  9565  func (s *RelativeTimeRange) SetLast(v int64) *RelativeTimeRange {
  9566  	s.Last = &v
  9567  	return s
  9568  }
  9569  
  9570  // SetStartPercentage sets the StartPercentage field's value.
  9571  func (s *RelativeTimeRange) SetStartPercentage(v int64) *RelativeTimeRange {
  9572  	s.StartPercentage = &v
  9573  	return s
  9574  }
  9575  
  9576  // A condition in the call between the customer and the agent that you want
  9577  // to filter for.
  9578  type Rule struct {
  9579  	_ struct{} `type:"structure"`
  9580  
  9581  	// A condition for a time period when either the customer or agent was interrupting
  9582  	// the other person.
  9583  	InterruptionFilter *InterruptionFilter `type:"structure"`
  9584  
  9585  	// A condition for a time period when neither the customer nor the agent was
  9586  	// talking.
  9587  	NonTalkTimeFilter *NonTalkTimeFilter `type:"structure"`
  9588  
  9589  	// A condition that is applied to a particular customer sentiment.
  9590  	SentimentFilter *SentimentFilter `type:"structure"`
  9591  
  9592  	// A condition that catches particular words or phrases based on a exact match.
  9593  	// For example, if you set the phrase "I want to speak to the manager", only
  9594  	// that exact phrase will be returned.
  9595  	TranscriptFilter *TranscriptFilter `type:"structure"`
  9596  }
  9597  
  9598  // String returns the string representation.
  9599  //
  9600  // API parameter values that are decorated as "sensitive" in the API will not
  9601  // be included in the string output. The member name will be present, but the
  9602  // value will be replaced with "sensitive".
  9603  func (s Rule) String() string {
  9604  	return awsutil.Prettify(s)
  9605  }
  9606  
  9607  // GoString returns the string representation.
  9608  //
  9609  // API parameter values that are decorated as "sensitive" in the API will not
  9610  // be included in the string output. The member name will be present, but the
  9611  // value will be replaced with "sensitive".
  9612  func (s Rule) GoString() string {
  9613  	return s.String()
  9614  }
  9615  
  9616  // Validate inspects the fields of the type to determine if they are valid.
  9617  func (s *Rule) Validate() error {
  9618  	invalidParams := request.ErrInvalidParams{Context: "Rule"}
  9619  	if s.SentimentFilter != nil {
  9620  		if err := s.SentimentFilter.Validate(); err != nil {
  9621  			invalidParams.AddNested("SentimentFilter", err.(request.ErrInvalidParams))
  9622  		}
  9623  	}
  9624  	if s.TranscriptFilter != nil {
  9625  		if err := s.TranscriptFilter.Validate(); err != nil {
  9626  			invalidParams.AddNested("TranscriptFilter", err.(request.ErrInvalidParams))
  9627  		}
  9628  	}
  9629  
  9630  	if invalidParams.Len() > 0 {
  9631  		return invalidParams
  9632  	}
  9633  	return nil
  9634  }
  9635  
  9636  // SetInterruptionFilter sets the InterruptionFilter field's value.
  9637  func (s *Rule) SetInterruptionFilter(v *InterruptionFilter) *Rule {
  9638  	s.InterruptionFilter = v
  9639  	return s
  9640  }
  9641  
  9642  // SetNonTalkTimeFilter sets the NonTalkTimeFilter field's value.
  9643  func (s *Rule) SetNonTalkTimeFilter(v *NonTalkTimeFilter) *Rule {
  9644  	s.NonTalkTimeFilter = v
  9645  	return s
  9646  }
  9647  
  9648  // SetSentimentFilter sets the SentimentFilter field's value.
  9649  func (s *Rule) SetSentimentFilter(v *SentimentFilter) *Rule {
  9650  	s.SentimentFilter = v
  9651  	return s
  9652  }
  9653  
  9654  // SetTranscriptFilter sets the TranscriptFilter field's value.
  9655  func (s *Rule) SetTranscriptFilter(v *TranscriptFilter) *Rule {
  9656  	s.TranscriptFilter = v
  9657  	return s
  9658  }
  9659  
  9660  // An object that enables you to specify a particular customer or agent sentiment.
  9661  // If at least 50 percent of the conversation turns (the back-and-forth between
  9662  // two speakers) in a specified time period match the specified sentiment, Amazon
  9663  // Transcribe will consider the sentiment a match.
  9664  type SentimentFilter struct {
  9665  	_ struct{} `type:"structure"`
  9666  
  9667  	// The time range, measured in seconds, of the sentiment.
  9668  	AbsoluteTimeRange *AbsoluteTimeRange `type:"structure"`
  9669  
  9670  	// Set to TRUE to look for sentiments that weren't specified in the request.
  9671  	Negate *bool `type:"boolean"`
  9672  
  9673  	// A value that determines whether the sentiment belongs to the customer or
  9674  	// the agent.
  9675  	ParticipantRole *string `type:"string" enum:"ParticipantRole"`
  9676  
  9677  	// The time range, set in percentages, that correspond to proportion of the
  9678  	// call.
  9679  	RelativeTimeRange *RelativeTimeRange `type:"structure"`
  9680  
  9681  	// An array that enables you to specify sentiments for the customer or agent.
  9682  	// You can specify one or more values.
  9683  	//
  9684  	// Sentiments is a required field
  9685  	Sentiments []*string `min:"1" type:"list" required:"true"`
  9686  }
  9687  
  9688  // String returns the string representation.
  9689  //
  9690  // API parameter values that are decorated as "sensitive" in the API will not
  9691  // be included in the string output. The member name will be present, but the
  9692  // value will be replaced with "sensitive".
  9693  func (s SentimentFilter) String() string {
  9694  	return awsutil.Prettify(s)
  9695  }
  9696  
  9697  // GoString returns the string representation.
  9698  //
  9699  // API parameter values that are decorated as "sensitive" in the API will not
  9700  // be included in the string output. The member name will be present, but the
  9701  // value will be replaced with "sensitive".
  9702  func (s SentimentFilter) GoString() string {
  9703  	return s.String()
  9704  }
  9705  
  9706  // Validate inspects the fields of the type to determine if they are valid.
  9707  func (s *SentimentFilter) Validate() error {
  9708  	invalidParams := request.ErrInvalidParams{Context: "SentimentFilter"}
  9709  	if s.Sentiments == nil {
  9710  		invalidParams.Add(request.NewErrParamRequired("Sentiments"))
  9711  	}
  9712  	if s.Sentiments != nil && len(s.Sentiments) < 1 {
  9713  		invalidParams.Add(request.NewErrParamMinLen("Sentiments", 1))
  9714  	}
  9715  
  9716  	if invalidParams.Len() > 0 {
  9717  		return invalidParams
  9718  	}
  9719  	return nil
  9720  }
  9721  
  9722  // SetAbsoluteTimeRange sets the AbsoluteTimeRange field's value.
  9723  func (s *SentimentFilter) SetAbsoluteTimeRange(v *AbsoluteTimeRange) *SentimentFilter {
  9724  	s.AbsoluteTimeRange = v
  9725  	return s
  9726  }
  9727  
  9728  // SetNegate sets the Negate field's value.
  9729  func (s *SentimentFilter) SetNegate(v bool) *SentimentFilter {
  9730  	s.Negate = &v
  9731  	return s
  9732  }
  9733  
  9734  // SetParticipantRole sets the ParticipantRole field's value.
  9735  func (s *SentimentFilter) SetParticipantRole(v string) *SentimentFilter {
  9736  	s.ParticipantRole = &v
  9737  	return s
  9738  }
  9739  
  9740  // SetRelativeTimeRange sets the RelativeTimeRange field's value.
  9741  func (s *SentimentFilter) SetRelativeTimeRange(v *RelativeTimeRange) *SentimentFilter {
  9742  	s.RelativeTimeRange = v
  9743  	return s
  9744  }
  9745  
  9746  // SetSentiments sets the Sentiments field's value.
  9747  func (s *SentimentFilter) SetSentiments(v []*string) *SentimentFilter {
  9748  	s.Sentiments = v
  9749  	return s
  9750  }
  9751  
  9752  // Provides optional settings for the StartTranscriptionJob operation.
  9753  type Settings struct {
  9754  	_ struct{} `type:"structure"`
  9755  
  9756  	// Instructs Amazon Transcribe to process each audio channel separately and
  9757  	// then merge the transcription output of each channel into a single transcription.
  9758  	//
  9759  	// Amazon Transcribe also produces a transcription of each item detected on
  9760  	// an audio channel, including the start time and end time of the item and alternative
  9761  	// transcriptions of the item including the confidence that Amazon Transcribe
  9762  	// has in the transcription.
  9763  	//
  9764  	// You can't set both ShowSpeakerLabels and ChannelIdentification in the same
  9765  	// request. If you set both, your request returns a BadRequestException.
  9766  	ChannelIdentification *bool `type:"boolean"`
  9767  
  9768  	// The number of alternative transcriptions that the service should return.
  9769  	// If you specify the MaxAlternatives field, you must set the ShowAlternatives
  9770  	// field to true.
  9771  	MaxAlternatives *int64 `min:"2" type:"integer"`
  9772  
  9773  	// The maximum number of speakers to identify in the input audio. If there are
  9774  	// more speakers in the audio than this number, multiple speakers are identified
  9775  	// as a single speaker. If you specify the MaxSpeakerLabels field, you must
  9776  	// set the ShowSpeakerLabels field to true.
  9777  	MaxSpeakerLabels *int64 `min:"2" type:"integer"`
  9778  
  9779  	// Determines whether the transcription contains alternative transcriptions.
  9780  	// If you set the ShowAlternatives field to true, you must also set the maximum
  9781  	// number of alternatives to return in the MaxAlternatives field.
  9782  	ShowAlternatives *bool `type:"boolean"`
  9783  
  9784  	// Determines whether the transcription job uses speaker recognition to identify
  9785  	// different speakers in the input audio. Speaker recognition labels individual
  9786  	// speakers in the audio file. If you set the ShowSpeakerLabels field to true,
  9787  	// you must also set the maximum number of speaker labels MaxSpeakerLabels field.
  9788  	//
  9789  	// You can't set both ShowSpeakerLabels and ChannelIdentification in the same
  9790  	// request. If you set both, your request returns a BadRequestException.
  9791  	ShowSpeakerLabels *bool `type:"boolean"`
  9792  
  9793  	// Set to mask to remove filtered text from the transcript and replace it with
  9794  	// three asterisks ("***") as placeholder text. Set to remove to remove filtered
  9795  	// text from the transcript without using placeholder text. Set to tag to mark
  9796  	// the word in the transcription output that matches the vocabulary filter.
  9797  	// When you set the filter method to tag, the words matching your vocabulary
  9798  	// filter are not masked or removed.
  9799  	VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"`
  9800  
  9801  	// The name of the vocabulary filter to use when transcribing the audio. The
  9802  	// filter that you specify must have the same language code as the transcription
  9803  	// job.
  9804  	VocabularyFilterName *string `min:"1" type:"string"`
  9805  
  9806  	// The name of a vocabulary to use when processing the transcription job.
  9807  	VocabularyName *string `min:"1" type:"string"`
  9808  }
  9809  
  9810  // String returns the string representation.
  9811  //
  9812  // API parameter values that are decorated as "sensitive" in the API will not
  9813  // be included in the string output. The member name will be present, but the
  9814  // value will be replaced with "sensitive".
  9815  func (s Settings) String() string {
  9816  	return awsutil.Prettify(s)
  9817  }
  9818  
  9819  // GoString returns the string representation.
  9820  //
  9821  // API parameter values that are decorated as "sensitive" in the API will not
  9822  // be included in the string output. The member name will be present, but the
  9823  // value will be replaced with "sensitive".
  9824  func (s Settings) GoString() string {
  9825  	return s.String()
  9826  }
  9827  
  9828  // Validate inspects the fields of the type to determine if they are valid.
  9829  func (s *Settings) Validate() error {
  9830  	invalidParams := request.ErrInvalidParams{Context: "Settings"}
  9831  	if s.MaxAlternatives != nil && *s.MaxAlternatives < 2 {
  9832  		invalidParams.Add(request.NewErrParamMinValue("MaxAlternatives", 2))
  9833  	}
  9834  	if s.MaxSpeakerLabels != nil && *s.MaxSpeakerLabels < 2 {
  9835  		invalidParams.Add(request.NewErrParamMinValue("MaxSpeakerLabels", 2))
  9836  	}
  9837  	if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 {
  9838  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1))
  9839  	}
  9840  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
  9841  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
  9842  	}
  9843  
  9844  	if invalidParams.Len() > 0 {
  9845  		return invalidParams
  9846  	}
  9847  	return nil
  9848  }
  9849  
  9850  // SetChannelIdentification sets the ChannelIdentification field's value.
  9851  func (s *Settings) SetChannelIdentification(v bool) *Settings {
  9852  	s.ChannelIdentification = &v
  9853  	return s
  9854  }
  9855  
  9856  // SetMaxAlternatives sets the MaxAlternatives field's value.
  9857  func (s *Settings) SetMaxAlternatives(v int64) *Settings {
  9858  	s.MaxAlternatives = &v
  9859  	return s
  9860  }
  9861  
  9862  // SetMaxSpeakerLabels sets the MaxSpeakerLabels field's value.
  9863  func (s *Settings) SetMaxSpeakerLabels(v int64) *Settings {
  9864  	s.MaxSpeakerLabels = &v
  9865  	return s
  9866  }
  9867  
  9868  // SetShowAlternatives sets the ShowAlternatives field's value.
  9869  func (s *Settings) SetShowAlternatives(v bool) *Settings {
  9870  	s.ShowAlternatives = &v
  9871  	return s
  9872  }
  9873  
  9874  // SetShowSpeakerLabels sets the ShowSpeakerLabels field's value.
  9875  func (s *Settings) SetShowSpeakerLabels(v bool) *Settings {
  9876  	s.ShowSpeakerLabels = &v
  9877  	return s
  9878  }
  9879  
  9880  // SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value.
  9881  func (s *Settings) SetVocabularyFilterMethod(v string) *Settings {
  9882  	s.VocabularyFilterMethod = &v
  9883  	return s
  9884  }
  9885  
  9886  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
  9887  func (s *Settings) SetVocabularyFilterName(v string) *Settings {
  9888  	s.VocabularyFilterName = &v
  9889  	return s
  9890  }
  9891  
  9892  // SetVocabularyName sets the VocabularyName field's value.
  9893  func (s *Settings) SetVocabularyName(v string) *Settings {
  9894  	s.VocabularyName = &v
  9895  	return s
  9896  }
  9897  
  9898  type StartCallAnalyticsJobInput struct {
  9899  	_ struct{} `type:"structure"`
  9900  
  9901  	// The name of the call analytics job. You can't use the string "." or ".."
  9902  	// by themselves as the job name. The name must also be unique within an Amazon
  9903  	// Web Services account. If you try to create a call analytics job with the
  9904  	// same name as a previous call analytics job, you get a ConflictException error.
  9905  	//
  9906  	// CallAnalyticsJobName is a required field
  9907  	CallAnalyticsJobName *string `min:"1" type:"string" required:"true"`
  9908  
  9909  	// When you start a call analytics job, you must pass an array that maps the
  9910  	// agent and the customer to specific audio channels. The values you can assign
  9911  	// to a channel are 0 and 1. The agent and the customer must each have their
  9912  	// own channel. You can't assign more than one channel to an agent or customer.
  9913  	ChannelDefinitions []*ChannelDefinition `min:"2" type:"list"`
  9914  
  9915  	// The Amazon Resource Name (ARN) of a role that has access to the S3 bucket
  9916  	// that contains your input files. Amazon Transcribe assumes this role to read
  9917  	// queued audio files. If you have specified an output S3 bucket for your transcription
  9918  	// results, this role should have access to the output bucket as well.
  9919  	//
  9920  	// DataAccessRoleArn is a required field
  9921  	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
  9922  
  9923  	// Describes the input media file in a transcription request.
  9924  	//
  9925  	// Media is a required field
  9926  	Media *Media `type:"structure" required:"true"`
  9927  
  9928  	// The Amazon Resource Name (ARN) of the Amazon Web Services Key Management
  9929  	// Service key used to encrypt the output of the call analytics job. The user
  9930  	// calling the operation must have permission to use the specified KMS key.
  9931  	//
  9932  	// You use either of the following to identify an Amazon Web Services KMS key
  9933  	// in the current account:
  9934  	//
  9935  	//    * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  9936  	//
  9937  	//    * KMS Key Alias: "alias/ExampleAlias"
  9938  	//
  9939  	// You can use either of the following to identify a KMS key in the current
  9940  	// account or another account:
  9941  	//
  9942  	//    * Amazon Resource Name (ARN) of a KMS key in the current account or another
  9943  	//    account: "arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef1234567890ab"
  9944  	//
  9945  	//    * ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias"
  9946  	//
  9947  	// If you don't specify an encryption key, the output of the call analytics
  9948  	// job is encrypted with the default Amazon S3 key (SSE-S3).
  9949  	//
  9950  	// If you specify a KMS key to encrypt your output, you must also specify an
  9951  	// output location in the OutputLocation parameter.
  9952  	OutputEncryptionKMSKeyId *string `min:"1" type:"string"`
  9953  
  9954  	// The Amazon S3 location where the output of the call analytics job is stored.
  9955  	// You can provide the following location types to store the output of call
  9956  	// analytics job:
  9957  	//
  9958  	//    * s3://DOC-EXAMPLE-BUCKET1 If you specify a bucket, Amazon Transcribe
  9959  	//    saves the output of the analytics job as a JSON file at the root level
  9960  	//    of the bucket.
  9961  	//
  9962  	//    * s3://DOC-EXAMPLE-BUCKET1/folder/ f you specify a path, Amazon Transcribe
  9963  	//    saves the output of the analytics job as s3://DOC-EXAMPLE-BUCKET1/folder/your-transcription-job-name.json
  9964  	//    If you specify a folder, you must provide a trailing slash.
  9965  	//
  9966  	//    * s3://DOC-EXAMPLE-BUCKET1/folder/filename.json If you provide a path
  9967  	//    that has the filename specified, Amazon Transcribe saves the output of
  9968  	//    the analytics job as s3://DOC-EXAMPLEBUCKET1/folder/filename.json
  9969  	//
  9970  	// You can specify an Amazon Web Services Key Management Service (KMS) key to
  9971  	// encrypt the output of our analytics job using the OutputEncryptionKMSKeyId
  9972  	// parameter. If you don't specify a KMS key, Amazon Transcribe uses the default
  9973  	// Amazon S3 key for server-side encryption of the analytics job output that
  9974  	// is placed in your S3 bucket.
  9975  	OutputLocation *string `min:"1" type:"string"`
  9976  
  9977  	// A Settings object that provides optional settings for a call analytics job.
  9978  	Settings *CallAnalyticsJobSettings `type:"structure"`
  9979  }
  9980  
  9981  // String returns the string representation.
  9982  //
  9983  // API parameter values that are decorated as "sensitive" in the API will not
  9984  // be included in the string output. The member name will be present, but the
  9985  // value will be replaced with "sensitive".
  9986  func (s StartCallAnalyticsJobInput) String() string {
  9987  	return awsutil.Prettify(s)
  9988  }
  9989  
  9990  // GoString returns the string representation.
  9991  //
  9992  // API parameter values that are decorated as "sensitive" in the API will not
  9993  // be included in the string output. The member name will be present, but the
  9994  // value will be replaced with "sensitive".
  9995  func (s StartCallAnalyticsJobInput) GoString() string {
  9996  	return s.String()
  9997  }
  9998  
  9999  // Validate inspects the fields of the type to determine if they are valid.
 10000  func (s *StartCallAnalyticsJobInput) Validate() error {
 10001  	invalidParams := request.ErrInvalidParams{Context: "StartCallAnalyticsJobInput"}
 10002  	if s.CallAnalyticsJobName == nil {
 10003  		invalidParams.Add(request.NewErrParamRequired("CallAnalyticsJobName"))
 10004  	}
 10005  	if s.CallAnalyticsJobName != nil && len(*s.CallAnalyticsJobName) < 1 {
 10006  		invalidParams.Add(request.NewErrParamMinLen("CallAnalyticsJobName", 1))
 10007  	}
 10008  	if s.ChannelDefinitions != nil && len(s.ChannelDefinitions) < 2 {
 10009  		invalidParams.Add(request.NewErrParamMinLen("ChannelDefinitions", 2))
 10010  	}
 10011  	if s.DataAccessRoleArn == nil {
 10012  		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
 10013  	}
 10014  	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
 10015  		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
 10016  	}
 10017  	if s.Media == nil {
 10018  		invalidParams.Add(request.NewErrParamRequired("Media"))
 10019  	}
 10020  	if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 {
 10021  		invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1))
 10022  	}
 10023  	if s.OutputLocation != nil && len(*s.OutputLocation) < 1 {
 10024  		invalidParams.Add(request.NewErrParamMinLen("OutputLocation", 1))
 10025  	}
 10026  	if s.Media != nil {
 10027  		if err := s.Media.Validate(); err != nil {
 10028  			invalidParams.AddNested("Media", err.(request.ErrInvalidParams))
 10029  		}
 10030  	}
 10031  	if s.Settings != nil {
 10032  		if err := s.Settings.Validate(); err != nil {
 10033  			invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
 10034  		}
 10035  	}
 10036  
 10037  	if invalidParams.Len() > 0 {
 10038  		return invalidParams
 10039  	}
 10040  	return nil
 10041  }
 10042  
 10043  // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value.
 10044  func (s *StartCallAnalyticsJobInput) SetCallAnalyticsJobName(v string) *StartCallAnalyticsJobInput {
 10045  	s.CallAnalyticsJobName = &v
 10046  	return s
 10047  }
 10048  
 10049  // SetChannelDefinitions sets the ChannelDefinitions field's value.
 10050  func (s *StartCallAnalyticsJobInput) SetChannelDefinitions(v []*ChannelDefinition) *StartCallAnalyticsJobInput {
 10051  	s.ChannelDefinitions = v
 10052  	return s
 10053  }
 10054  
 10055  // SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
 10056  func (s *StartCallAnalyticsJobInput) SetDataAccessRoleArn(v string) *StartCallAnalyticsJobInput {
 10057  	s.DataAccessRoleArn = &v
 10058  	return s
 10059  }
 10060  
 10061  // SetMedia sets the Media field's value.
 10062  func (s *StartCallAnalyticsJobInput) SetMedia(v *Media) *StartCallAnalyticsJobInput {
 10063  	s.Media = v
 10064  	return s
 10065  }
 10066  
 10067  // SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value.
 10068  func (s *StartCallAnalyticsJobInput) SetOutputEncryptionKMSKeyId(v string) *StartCallAnalyticsJobInput {
 10069  	s.OutputEncryptionKMSKeyId = &v
 10070  	return s
 10071  }
 10072  
 10073  // SetOutputLocation sets the OutputLocation field's value.
 10074  func (s *StartCallAnalyticsJobInput) SetOutputLocation(v string) *StartCallAnalyticsJobInput {
 10075  	s.OutputLocation = &v
 10076  	return s
 10077  }
 10078  
 10079  // SetSettings sets the Settings field's value.
 10080  func (s *StartCallAnalyticsJobInput) SetSettings(v *CallAnalyticsJobSettings) *StartCallAnalyticsJobInput {
 10081  	s.Settings = v
 10082  	return s
 10083  }
 10084  
 10085  type StartCallAnalyticsJobOutput struct {
 10086  	_ struct{} `type:"structure"`
 10087  
 10088  	// An object containing the details of the asynchronous call analytics job.
 10089  	CallAnalyticsJob *CallAnalyticsJob `type:"structure"`
 10090  }
 10091  
 10092  // String returns the string representation.
 10093  //
 10094  // API parameter values that are decorated as "sensitive" in the API will not
 10095  // be included in the string output. The member name will be present, but the
 10096  // value will be replaced with "sensitive".
 10097  func (s StartCallAnalyticsJobOutput) String() string {
 10098  	return awsutil.Prettify(s)
 10099  }
 10100  
 10101  // GoString returns the string representation.
 10102  //
 10103  // API parameter values that are decorated as "sensitive" in the API will not
 10104  // be included in the string output. The member name will be present, but the
 10105  // value will be replaced with "sensitive".
 10106  func (s StartCallAnalyticsJobOutput) GoString() string {
 10107  	return s.String()
 10108  }
 10109  
 10110  // SetCallAnalyticsJob sets the CallAnalyticsJob field's value.
 10111  func (s *StartCallAnalyticsJobOutput) SetCallAnalyticsJob(v *CallAnalyticsJob) *StartCallAnalyticsJobOutput {
 10112  	s.CallAnalyticsJob = v
 10113  	return s
 10114  }
 10115  
 10116  type StartMedicalTranscriptionJobInput struct {
 10117  	_ struct{} `type:"structure"`
 10118  
 10119  	// You can configure Amazon Transcribe Medical to label content in the transcription
 10120  	// output. If you specify PHI, Amazon Transcribe Medical labels the personal
 10121  	// health information (PHI) that it identifies in the transcription output.
 10122  	ContentIdentificationType *string `type:"string" enum:"MedicalContentIdentificationType"`
 10123  
 10124  	// A map of plain text, non-secret key:value pairs, known as encryption context
 10125  	// pairs, that provide an added layer of security for your data.
 10126  	KMSEncryptionContext map[string]*string `min:"1" type:"map"`
 10127  
 10128  	// The language code for the language spoken in the input media file. US English
 10129  	// (en-US) is the valid value for medical transcription jobs. Any other value
 10130  	// you enter for language code results in a BadRequestException error.
 10131  	//
 10132  	// LanguageCode is a required field
 10133  	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
 10134  
 10135  	// Describes the input media file in a transcription request.
 10136  	//
 10137  	// Media is a required field
 10138  	Media *Media `type:"structure" required:"true"`
 10139  
 10140  	// The audio format of the input media file.
 10141  	MediaFormat *string `type:"string" enum:"MediaFormat"`
 10142  
 10143  	// The sample rate, in Hertz, of the audio track in the input media file.
 10144  	//
 10145  	// If you do not specify the media sample rate, Amazon Transcribe Medical determines
 10146  	// the sample rate. If you specify the sample rate, it must match the rate detected
 10147  	// by Amazon Transcribe Medical. In most cases, you should leave the MediaSampleRateHertz
 10148  	// field blank and let Amazon Transcribe Medical determine the sample rate.
 10149  	MediaSampleRateHertz *int64 `min:"8000" type:"integer"`
 10150  
 10151  	// The name of the medical transcription job. You can't use the strings "."
 10152  	// or ".." by themselves as the job name. The name must also be unique within
 10153  	// an Amazon Web Services account. If you try to create a medical transcription
 10154  	// job with the same name as a previous medical transcription job, you get a
 10155  	// ConflictException error.
 10156  	//
 10157  	// MedicalTranscriptionJobName is a required field
 10158  	MedicalTranscriptionJobName *string `min:"1" type:"string" required:"true"`
 10159  
 10160  	// The Amazon S3 location where the transcription is stored.
 10161  	//
 10162  	// You must set OutputBucketName for Amazon Transcribe Medical to store the
 10163  	// transcription results. Your transcript appears in the S3 location you specify.
 10164  	// When you call the GetMedicalTranscriptionJob, the operation returns this
 10165  	// location in the TranscriptFileUri field. The S3 bucket must have permissions
 10166  	// that allow Amazon Transcribe Medical to put files in the bucket. For more
 10167  	// information, see Permissions Required for IAM User Roles (https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user).
 10168  	//
 10169  	// You can specify an Amazon Web Services Key Management Service (KMS) key to
 10170  	// encrypt the output of your transcription using the OutputEncryptionKMSKeyId
 10171  	// parameter. If you don't specify a KMS key, Amazon Transcribe Medical uses
 10172  	// the default Amazon S3 key for server-side encryption of transcripts that
 10173  	// are placed in your S3 bucket.
 10174  	//
 10175  	// OutputBucketName is a required field
 10176  	OutputBucketName *string `type:"string" required:"true"`
 10177  
 10178  	// The Amazon Resource Name (ARN) of the Amazon Web Services Key Management
 10179  	// Service (KMS) key used to encrypt the output of the transcription job. The
 10180  	// user calling the StartMedicalTranscriptionJob operation must have permission
 10181  	// to use the specified KMS key.
 10182  	//
 10183  	// You use either of the following to identify a KMS key in the current account:
 10184  	//
 10185  	//    * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
 10186  	//
 10187  	//    * KMS Key Alias: "alias/ExampleAlias"
 10188  	//
 10189  	// You can use either of the following to identify a KMS key in the current
 10190  	// account or another account:
 10191  	//
 10192  	//    * Amazon Resource Name (ARN) of a KMS key in the current account or another
 10193  	//    account: "arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef-1234567890ab"
 10194  	//
 10195  	//    * ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias"
 10196  	//
 10197  	// If you don't specify an encryption key, the output of the medical transcription
 10198  	// job is encrypted with the default Amazon S3 key (SSE-S3).
 10199  	//
 10200  	// If you specify a KMS key to encrypt your output, you must also specify an
 10201  	// output location in the OutputBucketName parameter.
 10202  	OutputEncryptionKMSKeyId *string `min:"1" type:"string"`
 10203  
 10204  	// You can specify a location in an Amazon S3 bucket to store the output of
 10205  	// your medical transcription job.
 10206  	//
 10207  	// If you don't specify an output key, Amazon Transcribe Medical stores the
 10208  	// output of your transcription job in the Amazon S3 bucket you specified. By
 10209  	// default, the object key is "your-transcription-job-name.json".
 10210  	//
 10211  	// You can use output keys to specify the Amazon S3 prefix and file name of
 10212  	// the transcription output. For example, specifying the Amazon S3 prefix, "folder1/folder2/",
 10213  	// as an output key would lead to the output being stored as "folder1/folder2/your-transcription-job-name.json".
 10214  	// If you specify "my-other-job-name.json" as the output key, the object key
 10215  	// is changed to "my-other-job-name.json". You can use an output key to change
 10216  	// both the prefix and the file name, for example "folder/my-other-job-name.json".
 10217  	//
 10218  	// If you specify an output key, you must also specify an S3 bucket in the OutputBucketName
 10219  	// parameter.
 10220  	OutputKey *string `min:"1" type:"string"`
 10221  
 10222  	// Optional settings for the medical transcription job.
 10223  	Settings *MedicalTranscriptionSetting `type:"structure"`
 10224  
 10225  	// The medical specialty of any clinician speaking in the input media.
 10226  	//
 10227  	// Specialty is a required field
 10228  	Specialty *string `type:"string" required:"true" enum:"Specialty"`
 10229  
 10230  	// Add tags to an Amazon Transcribe medical transcription job.
 10231  	Tags []*Tag `min:"1" type:"list"`
 10232  
 10233  	// The type of speech in the input audio. CONVERSATION refers to conversations
 10234  	// between two or more speakers, e.g., a conversations between doctors and patients.
 10235  	// DICTATION refers to single-speaker dictated speech, such as clinical notes.
 10236  	//
 10237  	// Type is a required field
 10238  	Type *string `type:"string" required:"true" enum:"Type"`
 10239  }
 10240  
 10241  // String returns the string representation.
 10242  //
 10243  // API parameter values that are decorated as "sensitive" in the API will not
 10244  // be included in the string output. The member name will be present, but the
 10245  // value will be replaced with "sensitive".
 10246  func (s StartMedicalTranscriptionJobInput) String() string {
 10247  	return awsutil.Prettify(s)
 10248  }
 10249  
 10250  // GoString returns the string representation.
 10251  //
 10252  // API parameter values that are decorated as "sensitive" in the API will not
 10253  // be included in the string output. The member name will be present, but the
 10254  // value will be replaced with "sensitive".
 10255  func (s StartMedicalTranscriptionJobInput) GoString() string {
 10256  	return s.String()
 10257  }
 10258  
 10259  // Validate inspects the fields of the type to determine if they are valid.
 10260  func (s *StartMedicalTranscriptionJobInput) Validate() error {
 10261  	invalidParams := request.ErrInvalidParams{Context: "StartMedicalTranscriptionJobInput"}
 10262  	if s.KMSEncryptionContext != nil && len(s.KMSEncryptionContext) < 1 {
 10263  		invalidParams.Add(request.NewErrParamMinLen("KMSEncryptionContext", 1))
 10264  	}
 10265  	if s.LanguageCode == nil {
 10266  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
 10267  	}
 10268  	if s.Media == nil {
 10269  		invalidParams.Add(request.NewErrParamRequired("Media"))
 10270  	}
 10271  	if s.MediaSampleRateHertz != nil && *s.MediaSampleRateHertz < 8000 {
 10272  		invalidParams.Add(request.NewErrParamMinValue("MediaSampleRateHertz", 8000))
 10273  	}
 10274  	if s.MedicalTranscriptionJobName == nil {
 10275  		invalidParams.Add(request.NewErrParamRequired("MedicalTranscriptionJobName"))
 10276  	}
 10277  	if s.MedicalTranscriptionJobName != nil && len(*s.MedicalTranscriptionJobName) < 1 {
 10278  		invalidParams.Add(request.NewErrParamMinLen("MedicalTranscriptionJobName", 1))
 10279  	}
 10280  	if s.OutputBucketName == nil {
 10281  		invalidParams.Add(request.NewErrParamRequired("OutputBucketName"))
 10282  	}
 10283  	if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 {
 10284  		invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1))
 10285  	}
 10286  	if s.OutputKey != nil && len(*s.OutputKey) < 1 {
 10287  		invalidParams.Add(request.NewErrParamMinLen("OutputKey", 1))
 10288  	}
 10289  	if s.Specialty == nil {
 10290  		invalidParams.Add(request.NewErrParamRequired("Specialty"))
 10291  	}
 10292  	if s.Tags != nil && len(s.Tags) < 1 {
 10293  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
 10294  	}
 10295  	if s.Type == nil {
 10296  		invalidParams.Add(request.NewErrParamRequired("Type"))
 10297  	}
 10298  	if s.Media != nil {
 10299  		if err := s.Media.Validate(); err != nil {
 10300  			invalidParams.AddNested("Media", err.(request.ErrInvalidParams))
 10301  		}
 10302  	}
 10303  	if s.Settings != nil {
 10304  		if err := s.Settings.Validate(); err != nil {
 10305  			invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
 10306  		}
 10307  	}
 10308  	if s.Tags != nil {
 10309  		for i, v := range s.Tags {
 10310  			if v == nil {
 10311  				continue
 10312  			}
 10313  			if err := v.Validate(); err != nil {
 10314  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
 10315  			}
 10316  		}
 10317  	}
 10318  
 10319  	if invalidParams.Len() > 0 {
 10320  		return invalidParams
 10321  	}
 10322  	return nil
 10323  }
 10324  
 10325  // SetContentIdentificationType sets the ContentIdentificationType field's value.
 10326  func (s *StartMedicalTranscriptionJobInput) SetContentIdentificationType(v string) *StartMedicalTranscriptionJobInput {
 10327  	s.ContentIdentificationType = &v
 10328  	return s
 10329  }
 10330  
 10331  // SetKMSEncryptionContext sets the KMSEncryptionContext field's value.
 10332  func (s *StartMedicalTranscriptionJobInput) SetKMSEncryptionContext(v map[string]*string) *StartMedicalTranscriptionJobInput {
 10333  	s.KMSEncryptionContext = v
 10334  	return s
 10335  }
 10336  
 10337  // SetLanguageCode sets the LanguageCode field's value.
 10338  func (s *StartMedicalTranscriptionJobInput) SetLanguageCode(v string) *StartMedicalTranscriptionJobInput {
 10339  	s.LanguageCode = &v
 10340  	return s
 10341  }
 10342  
 10343  // SetMedia sets the Media field's value.
 10344  func (s *StartMedicalTranscriptionJobInput) SetMedia(v *Media) *StartMedicalTranscriptionJobInput {
 10345  	s.Media = v
 10346  	return s
 10347  }
 10348  
 10349  // SetMediaFormat sets the MediaFormat field's value.
 10350  func (s *StartMedicalTranscriptionJobInput) SetMediaFormat(v string) *StartMedicalTranscriptionJobInput {
 10351  	s.MediaFormat = &v
 10352  	return s
 10353  }
 10354  
 10355  // SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
 10356  func (s *StartMedicalTranscriptionJobInput) SetMediaSampleRateHertz(v int64) *StartMedicalTranscriptionJobInput {
 10357  	s.MediaSampleRateHertz = &v
 10358  	return s
 10359  }
 10360  
 10361  // SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value.
 10362  func (s *StartMedicalTranscriptionJobInput) SetMedicalTranscriptionJobName(v string) *StartMedicalTranscriptionJobInput {
 10363  	s.MedicalTranscriptionJobName = &v
 10364  	return s
 10365  }
 10366  
 10367  // SetOutputBucketName sets the OutputBucketName field's value.
 10368  func (s *StartMedicalTranscriptionJobInput) SetOutputBucketName(v string) *StartMedicalTranscriptionJobInput {
 10369  	s.OutputBucketName = &v
 10370  	return s
 10371  }
 10372  
 10373  // SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value.
 10374  func (s *StartMedicalTranscriptionJobInput) SetOutputEncryptionKMSKeyId(v string) *StartMedicalTranscriptionJobInput {
 10375  	s.OutputEncryptionKMSKeyId = &v
 10376  	return s
 10377  }
 10378  
 10379  // SetOutputKey sets the OutputKey field's value.
 10380  func (s *StartMedicalTranscriptionJobInput) SetOutputKey(v string) *StartMedicalTranscriptionJobInput {
 10381  	s.OutputKey = &v
 10382  	return s
 10383  }
 10384  
 10385  // SetSettings sets the Settings field's value.
 10386  func (s *StartMedicalTranscriptionJobInput) SetSettings(v *MedicalTranscriptionSetting) *StartMedicalTranscriptionJobInput {
 10387  	s.Settings = v
 10388  	return s
 10389  }
 10390  
 10391  // SetSpecialty sets the Specialty field's value.
 10392  func (s *StartMedicalTranscriptionJobInput) SetSpecialty(v string) *StartMedicalTranscriptionJobInput {
 10393  	s.Specialty = &v
 10394  	return s
 10395  }
 10396  
 10397  // SetTags sets the Tags field's value.
 10398  func (s *StartMedicalTranscriptionJobInput) SetTags(v []*Tag) *StartMedicalTranscriptionJobInput {
 10399  	s.Tags = v
 10400  	return s
 10401  }
 10402  
 10403  // SetType sets the Type field's value.
 10404  func (s *StartMedicalTranscriptionJobInput) SetType(v string) *StartMedicalTranscriptionJobInput {
 10405  	s.Type = &v
 10406  	return s
 10407  }
 10408  
 10409  type StartMedicalTranscriptionJobOutput struct {
 10410  	_ struct{} `type:"structure"`
 10411  
 10412  	// A batch job submitted to transcribe medical speech to text.
 10413  	MedicalTranscriptionJob *MedicalTranscriptionJob `type:"structure"`
 10414  }
 10415  
 10416  // String returns the string representation.
 10417  //
 10418  // API parameter values that are decorated as "sensitive" in the API will not
 10419  // be included in the string output. The member name will be present, but the
 10420  // value will be replaced with "sensitive".
 10421  func (s StartMedicalTranscriptionJobOutput) String() string {
 10422  	return awsutil.Prettify(s)
 10423  }
 10424  
 10425  // GoString returns the string representation.
 10426  //
 10427  // API parameter values that are decorated as "sensitive" in the API will not
 10428  // be included in the string output. The member name will be present, but the
 10429  // value will be replaced with "sensitive".
 10430  func (s StartMedicalTranscriptionJobOutput) GoString() string {
 10431  	return s.String()
 10432  }
 10433  
 10434  // SetMedicalTranscriptionJob sets the MedicalTranscriptionJob field's value.
 10435  func (s *StartMedicalTranscriptionJobOutput) SetMedicalTranscriptionJob(v *MedicalTranscriptionJob) *StartMedicalTranscriptionJobOutput {
 10436  	s.MedicalTranscriptionJob = v
 10437  	return s
 10438  }
 10439  
 10440  type StartTranscriptionJobInput struct {
 10441  	_ struct{} `type:"structure"`
 10442  
 10443  	// An object that contains the request parameters for content redaction.
 10444  	ContentRedaction *ContentRedaction `type:"structure"`
 10445  
 10446  	// Set this field to true to enable automatic language identification. Automatic
 10447  	// language identification is disabled by default. You receive a BadRequestException
 10448  	// error if you enter a value for a LanguageCode.
 10449  	IdentifyLanguage *bool `type:"boolean"`
 10450  
 10451  	// Provides information about how a transcription job is executed. Use this
 10452  	// field to indicate that the job can be queued for deferred execution if the
 10453  	// concurrency limit is reached and there are no slots available to immediately
 10454  	// run the job.
 10455  	JobExecutionSettings *JobExecutionSettings `type:"structure"`
 10456  
 10457  	// A map of plain text, non-secret key:value pairs, known as encryption context
 10458  	// pairs, that provide an added layer of security for your data.
 10459  	KMSEncryptionContext map[string]*string `min:"1" type:"map"`
 10460  
 10461  	// The language code for the language used in the input media file.
 10462  	//
 10463  	// To transcribe speech in Modern Standard Arabic (ar-SA), your audio or video
 10464  	// file must be encoded at a sample rate of 16,000 Hz or higher.
 10465  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 10466  
 10467  	// An object containing a list of languages that might be present in your collection
 10468  	// of audio files. Automatic language identification chooses a language that
 10469  	// best matches the source audio from that list.
 10470  	//
 10471  	// To transcribe speech in Modern Standard Arabic (ar-SA), your audio or video
 10472  	// file must be encoded at a sample rate of 16,000 Hz or higher.
 10473  	LanguageOptions []*string `min:"1" type:"list"`
 10474  
 10475  	// An object that describes the input media for a transcription job.
 10476  	//
 10477  	// Media is a required field
 10478  	Media *Media `type:"structure" required:"true"`
 10479  
 10480  	// The format of the input media file.
 10481  	MediaFormat *string `type:"string" enum:"MediaFormat"`
 10482  
 10483  	// The sample rate, in Hertz, of the audio track in the input media file.
 10484  	//
 10485  	// If you do not specify the media sample rate, Amazon Transcribe determines
 10486  	// the sample rate. If you specify the sample rate, it must match the sample
 10487  	// rate detected by Amazon Transcribe. In most cases, you should leave the MediaSampleRateHertz
 10488  	// field blank and let Amazon Transcribe determine the sample rate.
 10489  	MediaSampleRateHertz *int64 `min:"8000" type:"integer"`
 10490  
 10491  	// Choose the custom language model you use for your transcription job in this
 10492  	// parameter.
 10493  	ModelSettings *ModelSettings `type:"structure"`
 10494  
 10495  	// The location where the transcription is stored.
 10496  	//
 10497  	// If you set the OutputBucketName, Amazon Transcribe puts the transcript in
 10498  	// the specified S3 bucket. When you call the GetTranscriptionJob operation,
 10499  	// the operation returns this location in the TranscriptFileUri field. If you
 10500  	// enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri.
 10501  	// If you enable content redaction and choose to output an unredacted transcript,
 10502  	// that transcript's location still appears in the TranscriptFileUri. The S3
 10503  	// bucket must have permissions that allow Amazon Transcribe to put files in
 10504  	// the bucket. For more information, see Permissions Required for IAM User Roles
 10505  	// (https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user).
 10506  	//
 10507  	// You can specify an Amazon Web Services Key Management Service (KMS) key to
 10508  	// encrypt the output of your transcription using the OutputEncryptionKMSKeyId
 10509  	// parameter. If you don't specify a KMS key, Amazon Transcribe uses the default
 10510  	// Amazon S3 key for server-side encryption of transcripts that are placed in
 10511  	// your S3 bucket.
 10512  	//
 10513  	// If you don't set the OutputBucketName, Amazon Transcribe generates a pre-signed
 10514  	// URL, a shareable URL that provides secure access to your transcription, and
 10515  	// returns it in the TranscriptFileUri field. Use this URL to download the transcription.
 10516  	OutputBucketName *string `type:"string"`
 10517  
 10518  	// The Amazon Resource Name (ARN) of the Amazon Web Services Key Management
 10519  	// Service (KMS) key used to encrypt the output of the transcription job. The
 10520  	// user calling the StartTranscriptionJob operation must have permission to
 10521  	// use the specified KMS key.
 10522  	//
 10523  	// You can use either of the following to identify a KMS key in the current
 10524  	// account:
 10525  	//
 10526  	//    * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
 10527  	//
 10528  	//    * KMS Key Alias: "alias/ExampleAlias"
 10529  	//
 10530  	// You can use either of the following to identify a KMS key in the current
 10531  	// account or another account:
 10532  	//
 10533  	//    * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:region:account
 10534  	//    ID:key/1234abcd-12ab-34cd-56ef-1234567890ab"
 10535  	//
 10536  	//    * ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias"
 10537  	//
 10538  	// If you don't specify an encryption key, the output of the transcription job
 10539  	// is encrypted with the default Amazon S3 key (SSE-S3).
 10540  	//
 10541  	// If you specify a KMS key to encrypt your output, you must also specify an
 10542  	// output location in the OutputBucketName parameter.
 10543  	OutputEncryptionKMSKeyId *string `min:"1" type:"string"`
 10544  
 10545  	// You can specify a location in an Amazon S3 bucket to store the output of
 10546  	// your transcription job.
 10547  	//
 10548  	// If you don't specify an output key, Amazon Transcribe stores the output of
 10549  	// your transcription job in the Amazon S3 bucket you specified. By default,
 10550  	// the object key is "your-transcription-job-name.json".
 10551  	//
 10552  	// You can use output keys to specify the Amazon S3 prefix and file name of
 10553  	// the transcription output. For example, specifying the Amazon S3 prefix, "folder1/folder2/",
 10554  	// as an output key would lead to the output being stored as "folder1/folder2/your-transcription-job-name.json".
 10555  	// If you specify "my-other-job-name.json" as the output key, the object key
 10556  	// is changed to "my-other-job-name.json". You can use an output key to change
 10557  	// both the prefix and the file name, for example "folder/my-other-job-name.json".
 10558  	//
 10559  	// If you specify an output key, you must also specify an S3 bucket in the OutputBucketName
 10560  	// parameter.
 10561  	OutputKey *string `min:"1" type:"string"`
 10562  
 10563  	// A Settings object that provides optional settings for a transcription job.
 10564  	Settings *Settings `type:"structure"`
 10565  
 10566  	// Add subtitles to your batch transcription job.
 10567  	Subtitles *Subtitles `type:"structure"`
 10568  
 10569  	// Add tags to an Amazon Transcribe transcription job.
 10570  	Tags []*Tag `min:"1" type:"list"`
 10571  
 10572  	// The name of the job. You can't use the strings "." or ".." by themselves
 10573  	// as the job name. The name must also be unique within an Amazon Web Services
 10574  	// account. If you try to create a transcription job with the same name as a
 10575  	// previous transcription job, you get a ConflictException error.
 10576  	//
 10577  	// TranscriptionJobName is a required field
 10578  	TranscriptionJobName *string `min:"1" type:"string" required:"true"`
 10579  }
 10580  
 10581  // String returns the string representation.
 10582  //
 10583  // API parameter values that are decorated as "sensitive" in the API will not
 10584  // be included in the string output. The member name will be present, but the
 10585  // value will be replaced with "sensitive".
 10586  func (s StartTranscriptionJobInput) String() string {
 10587  	return awsutil.Prettify(s)
 10588  }
 10589  
 10590  // GoString returns the string representation.
 10591  //
 10592  // API parameter values that are decorated as "sensitive" in the API will not
 10593  // be included in the string output. The member name will be present, but the
 10594  // value will be replaced with "sensitive".
 10595  func (s StartTranscriptionJobInput) GoString() string {
 10596  	return s.String()
 10597  }
 10598  
 10599  // Validate inspects the fields of the type to determine if they are valid.
 10600  func (s *StartTranscriptionJobInput) Validate() error {
 10601  	invalidParams := request.ErrInvalidParams{Context: "StartTranscriptionJobInput"}
 10602  	if s.KMSEncryptionContext != nil && len(s.KMSEncryptionContext) < 1 {
 10603  		invalidParams.Add(request.NewErrParamMinLen("KMSEncryptionContext", 1))
 10604  	}
 10605  	if s.LanguageOptions != nil && len(s.LanguageOptions) < 1 {
 10606  		invalidParams.Add(request.NewErrParamMinLen("LanguageOptions", 1))
 10607  	}
 10608  	if s.Media == nil {
 10609  		invalidParams.Add(request.NewErrParamRequired("Media"))
 10610  	}
 10611  	if s.MediaSampleRateHertz != nil && *s.MediaSampleRateHertz < 8000 {
 10612  		invalidParams.Add(request.NewErrParamMinValue("MediaSampleRateHertz", 8000))
 10613  	}
 10614  	if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 {
 10615  		invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1))
 10616  	}
 10617  	if s.OutputKey != nil && len(*s.OutputKey) < 1 {
 10618  		invalidParams.Add(request.NewErrParamMinLen("OutputKey", 1))
 10619  	}
 10620  	if s.Tags != nil && len(s.Tags) < 1 {
 10621  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
 10622  	}
 10623  	if s.TranscriptionJobName == nil {
 10624  		invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName"))
 10625  	}
 10626  	if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 {
 10627  		invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1))
 10628  	}
 10629  	if s.ContentRedaction != nil {
 10630  		if err := s.ContentRedaction.Validate(); err != nil {
 10631  			invalidParams.AddNested("ContentRedaction", err.(request.ErrInvalidParams))
 10632  		}
 10633  	}
 10634  	if s.JobExecutionSettings != nil {
 10635  		if err := s.JobExecutionSettings.Validate(); err != nil {
 10636  			invalidParams.AddNested("JobExecutionSettings", err.(request.ErrInvalidParams))
 10637  		}
 10638  	}
 10639  	if s.Media != nil {
 10640  		if err := s.Media.Validate(); err != nil {
 10641  			invalidParams.AddNested("Media", err.(request.ErrInvalidParams))
 10642  		}
 10643  	}
 10644  	if s.ModelSettings != nil {
 10645  		if err := s.ModelSettings.Validate(); err != nil {
 10646  			invalidParams.AddNested("ModelSettings", err.(request.ErrInvalidParams))
 10647  		}
 10648  	}
 10649  	if s.Settings != nil {
 10650  		if err := s.Settings.Validate(); err != nil {
 10651  			invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
 10652  		}
 10653  	}
 10654  	if s.Tags != nil {
 10655  		for i, v := range s.Tags {
 10656  			if v == nil {
 10657  				continue
 10658  			}
 10659  			if err := v.Validate(); err != nil {
 10660  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
 10661  			}
 10662  		}
 10663  	}
 10664  
 10665  	if invalidParams.Len() > 0 {
 10666  		return invalidParams
 10667  	}
 10668  	return nil
 10669  }
 10670  
 10671  // SetContentRedaction sets the ContentRedaction field's value.
 10672  func (s *StartTranscriptionJobInput) SetContentRedaction(v *ContentRedaction) *StartTranscriptionJobInput {
 10673  	s.ContentRedaction = v
 10674  	return s
 10675  }
 10676  
 10677  // SetIdentifyLanguage sets the IdentifyLanguage field's value.
 10678  func (s *StartTranscriptionJobInput) SetIdentifyLanguage(v bool) *StartTranscriptionJobInput {
 10679  	s.IdentifyLanguage = &v
 10680  	return s
 10681  }
 10682  
 10683  // SetJobExecutionSettings sets the JobExecutionSettings field's value.
 10684  func (s *StartTranscriptionJobInput) SetJobExecutionSettings(v *JobExecutionSettings) *StartTranscriptionJobInput {
 10685  	s.JobExecutionSettings = v
 10686  	return s
 10687  }
 10688  
 10689  // SetKMSEncryptionContext sets the KMSEncryptionContext field's value.
 10690  func (s *StartTranscriptionJobInput) SetKMSEncryptionContext(v map[string]*string) *StartTranscriptionJobInput {
 10691  	s.KMSEncryptionContext = v
 10692  	return s
 10693  }
 10694  
 10695  // SetLanguageCode sets the LanguageCode field's value.
 10696  func (s *StartTranscriptionJobInput) SetLanguageCode(v string) *StartTranscriptionJobInput {
 10697  	s.LanguageCode = &v
 10698  	return s
 10699  }
 10700  
 10701  // SetLanguageOptions sets the LanguageOptions field's value.
 10702  func (s *StartTranscriptionJobInput) SetLanguageOptions(v []*string) *StartTranscriptionJobInput {
 10703  	s.LanguageOptions = v
 10704  	return s
 10705  }
 10706  
 10707  // SetMedia sets the Media field's value.
 10708  func (s *StartTranscriptionJobInput) SetMedia(v *Media) *StartTranscriptionJobInput {
 10709  	s.Media = v
 10710  	return s
 10711  }
 10712  
 10713  // SetMediaFormat sets the MediaFormat field's value.
 10714  func (s *StartTranscriptionJobInput) SetMediaFormat(v string) *StartTranscriptionJobInput {
 10715  	s.MediaFormat = &v
 10716  	return s
 10717  }
 10718  
 10719  // SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
 10720  func (s *StartTranscriptionJobInput) SetMediaSampleRateHertz(v int64) *StartTranscriptionJobInput {
 10721  	s.MediaSampleRateHertz = &v
 10722  	return s
 10723  }
 10724  
 10725  // SetModelSettings sets the ModelSettings field's value.
 10726  func (s *StartTranscriptionJobInput) SetModelSettings(v *ModelSettings) *StartTranscriptionJobInput {
 10727  	s.ModelSettings = v
 10728  	return s
 10729  }
 10730  
 10731  // SetOutputBucketName sets the OutputBucketName field's value.
 10732  func (s *StartTranscriptionJobInput) SetOutputBucketName(v string) *StartTranscriptionJobInput {
 10733  	s.OutputBucketName = &v
 10734  	return s
 10735  }
 10736  
 10737  // SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value.
 10738  func (s *StartTranscriptionJobInput) SetOutputEncryptionKMSKeyId(v string) *StartTranscriptionJobInput {
 10739  	s.OutputEncryptionKMSKeyId = &v
 10740  	return s
 10741  }
 10742  
 10743  // SetOutputKey sets the OutputKey field's value.
 10744  func (s *StartTranscriptionJobInput) SetOutputKey(v string) *StartTranscriptionJobInput {
 10745  	s.OutputKey = &v
 10746  	return s
 10747  }
 10748  
 10749  // SetSettings sets the Settings field's value.
 10750  func (s *StartTranscriptionJobInput) SetSettings(v *Settings) *StartTranscriptionJobInput {
 10751  	s.Settings = v
 10752  	return s
 10753  }
 10754  
 10755  // SetSubtitles sets the Subtitles field's value.
 10756  func (s *StartTranscriptionJobInput) SetSubtitles(v *Subtitles) *StartTranscriptionJobInput {
 10757  	s.Subtitles = v
 10758  	return s
 10759  }
 10760  
 10761  // SetTags sets the Tags field's value.
 10762  func (s *StartTranscriptionJobInput) SetTags(v []*Tag) *StartTranscriptionJobInput {
 10763  	s.Tags = v
 10764  	return s
 10765  }
 10766  
 10767  // SetTranscriptionJobName sets the TranscriptionJobName field's value.
 10768  func (s *StartTranscriptionJobInput) SetTranscriptionJobName(v string) *StartTranscriptionJobInput {
 10769  	s.TranscriptionJobName = &v
 10770  	return s
 10771  }
 10772  
 10773  type StartTranscriptionJobOutput struct {
 10774  	_ struct{} `type:"structure"`
 10775  
 10776  	// An object containing details of the asynchronous transcription job.
 10777  	TranscriptionJob *TranscriptionJob `type:"structure"`
 10778  }
 10779  
 10780  // String returns the string representation.
 10781  //
 10782  // API parameter values that are decorated as "sensitive" in the API will not
 10783  // be included in the string output. The member name will be present, but the
 10784  // value will be replaced with "sensitive".
 10785  func (s StartTranscriptionJobOutput) String() string {
 10786  	return awsutil.Prettify(s)
 10787  }
 10788  
 10789  // GoString returns the string representation.
 10790  //
 10791  // API parameter values that are decorated as "sensitive" in the API will not
 10792  // be included in the string output. The member name will be present, but the
 10793  // value will be replaced with "sensitive".
 10794  func (s StartTranscriptionJobOutput) GoString() string {
 10795  	return s.String()
 10796  }
 10797  
 10798  // SetTranscriptionJob sets the TranscriptionJob field's value.
 10799  func (s *StartTranscriptionJobOutput) SetTranscriptionJob(v *TranscriptionJob) *StartTranscriptionJobOutput {
 10800  	s.TranscriptionJob = v
 10801  	return s
 10802  }
 10803  
 10804  // Generate subtitles for your batch transcription job.
 10805  type Subtitles struct {
 10806  	_ struct{} `type:"structure"`
 10807  
 10808  	// Specify the output format for your subtitle file.
 10809  	Formats []*string `type:"list"`
 10810  }
 10811  
 10812  // String returns the string representation.
 10813  //
 10814  // API parameter values that are decorated as "sensitive" in the API will not
 10815  // be included in the string output. The member name will be present, but the
 10816  // value will be replaced with "sensitive".
 10817  func (s Subtitles) String() string {
 10818  	return awsutil.Prettify(s)
 10819  }
 10820  
 10821  // GoString returns the string representation.
 10822  //
 10823  // API parameter values that are decorated as "sensitive" in the API will not
 10824  // be included in the string output. The member name will be present, but the
 10825  // value will be replaced with "sensitive".
 10826  func (s Subtitles) GoString() string {
 10827  	return s.String()
 10828  }
 10829  
 10830  // SetFormats sets the Formats field's value.
 10831  func (s *Subtitles) SetFormats(v []*string) *Subtitles {
 10832  	s.Formats = v
 10833  	return s
 10834  }
 10835  
 10836  // Specify the output format for your subtitle file.
 10837  type SubtitlesOutput_ struct {
 10838  	_ struct{} `type:"structure"`
 10839  
 10840  	// Specify the output format for your subtitle file; if you select both SRT
 10841  	// and VTT formats, two output files are genereated.
 10842  	Formats []*string `type:"list"`
 10843  
 10844  	// Choose the output location for your subtitle file. This location must be
 10845  	// an S3 bucket.
 10846  	SubtitleFileUris []*string `type:"list"`
 10847  }
 10848  
 10849  // String returns the string representation.
 10850  //
 10851  // API parameter values that are decorated as "sensitive" in the API will not
 10852  // be included in the string output. The member name will be present, but the
 10853  // value will be replaced with "sensitive".
 10854  func (s SubtitlesOutput_) String() string {
 10855  	return awsutil.Prettify(s)
 10856  }
 10857  
 10858  // GoString returns the string representation.
 10859  //
 10860  // API parameter values that are decorated as "sensitive" in the API will not
 10861  // be included in the string output. The member name will be present, but the
 10862  // value will be replaced with "sensitive".
 10863  func (s SubtitlesOutput_) GoString() string {
 10864  	return s.String()
 10865  }
 10866  
 10867  // SetFormats sets the Formats field's value.
 10868  func (s *SubtitlesOutput_) SetFormats(v []*string) *SubtitlesOutput_ {
 10869  	s.Formats = v
 10870  	return s
 10871  }
 10872  
 10873  // SetSubtitleFileUris sets the SubtitleFileUris field's value.
 10874  func (s *SubtitlesOutput_) SetSubtitleFileUris(v []*string) *SubtitlesOutput_ {
 10875  	s.SubtitleFileUris = v
 10876  	return s
 10877  }
 10878  
 10879  // A key:value pair that adds metadata to a resource used by Amazon Transcribe.
 10880  // For example, a tag with the key:value pair ‘Department’:’Sales’ might
 10881  // be added to a resource to indicate its use by your organization's sales department.
 10882  type Tag struct {
 10883  	_ struct{} `type:"structure"`
 10884  
 10885  	// The first part of a key:value pair that forms a tag associated with a given
 10886  	// resource. For example, in the tag ‘Department’:’Sales’, the key is
 10887  	// 'Department'.
 10888  	//
 10889  	// Key is a required field
 10890  	Key *string `min:"1" type:"string" required:"true"`
 10891  
 10892  	// The second part of a key:value pair that forms a tag associated with a given
 10893  	// resource. For example, in the tag ‘Department’:’Sales’, the value
 10894  	// is 'Sales'.
 10895  	//
 10896  	// Value is a required field
 10897  	Value *string `type:"string" required:"true"`
 10898  }
 10899  
 10900  // String returns the string representation.
 10901  //
 10902  // API parameter values that are decorated as "sensitive" in the API will not
 10903  // be included in the string output. The member name will be present, but the
 10904  // value will be replaced with "sensitive".
 10905  func (s Tag) String() string {
 10906  	return awsutil.Prettify(s)
 10907  }
 10908  
 10909  // GoString returns the string representation.
 10910  //
 10911  // API parameter values that are decorated as "sensitive" in the API will not
 10912  // be included in the string output. The member name will be present, but the
 10913  // value will be replaced with "sensitive".
 10914  func (s Tag) GoString() string {
 10915  	return s.String()
 10916  }
 10917  
 10918  // Validate inspects the fields of the type to determine if they are valid.
 10919  func (s *Tag) Validate() error {
 10920  	invalidParams := request.ErrInvalidParams{Context: "Tag"}
 10921  	if s.Key == nil {
 10922  		invalidParams.Add(request.NewErrParamRequired("Key"))
 10923  	}
 10924  	if s.Key != nil && len(*s.Key) < 1 {
 10925  		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
 10926  	}
 10927  	if s.Value == nil {
 10928  		invalidParams.Add(request.NewErrParamRequired("Value"))
 10929  	}
 10930  
 10931  	if invalidParams.Len() > 0 {
 10932  		return invalidParams
 10933  	}
 10934  	return nil
 10935  }
 10936  
 10937  // SetKey sets the Key field's value.
 10938  func (s *Tag) SetKey(v string) *Tag {
 10939  	s.Key = &v
 10940  	return s
 10941  }
 10942  
 10943  // SetValue sets the Value field's value.
 10944  func (s *Tag) SetValue(v string) *Tag {
 10945  	s.Value = &v
 10946  	return s
 10947  }
 10948  
 10949  type TagResourceInput struct {
 10950  	_ struct{} `type:"structure"`
 10951  
 10952  	// The Amazon Resource Name (ARN) of the Amazon Transcribe resource you want
 10953  	// to tag.
 10954  	//
 10955  	// ResourceArn is a required field
 10956  	ResourceArn *string `min:"1" type:"string" required:"true"`
 10957  
 10958  	// The tags you are assigning to a given Amazon Transcribe resource.
 10959  	//
 10960  	// Tags is a required field
 10961  	Tags []*Tag `min:"1" type:"list" required:"true"`
 10962  }
 10963  
 10964  // String returns the string representation.
 10965  //
 10966  // API parameter values that are decorated as "sensitive" in the API will not
 10967  // be included in the string output. The member name will be present, but the
 10968  // value will be replaced with "sensitive".
 10969  func (s TagResourceInput) String() string {
 10970  	return awsutil.Prettify(s)
 10971  }
 10972  
 10973  // GoString returns the string representation.
 10974  //
 10975  // API parameter values that are decorated as "sensitive" in the API will not
 10976  // be included in the string output. The member name will be present, but the
 10977  // value will be replaced with "sensitive".
 10978  func (s TagResourceInput) GoString() string {
 10979  	return s.String()
 10980  }
 10981  
 10982  // Validate inspects the fields of the type to determine if they are valid.
 10983  func (s *TagResourceInput) Validate() error {
 10984  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
 10985  	if s.ResourceArn == nil {
 10986  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
 10987  	}
 10988  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
 10989  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
 10990  	}
 10991  	if s.Tags == nil {
 10992  		invalidParams.Add(request.NewErrParamRequired("Tags"))
 10993  	}
 10994  	if s.Tags != nil && len(s.Tags) < 1 {
 10995  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
 10996  	}
 10997  	if s.Tags != nil {
 10998  		for i, v := range s.Tags {
 10999  			if v == nil {
 11000  				continue
 11001  			}
 11002  			if err := v.Validate(); err != nil {
 11003  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
 11004  			}
 11005  		}
 11006  	}
 11007  
 11008  	if invalidParams.Len() > 0 {
 11009  		return invalidParams
 11010  	}
 11011  	return nil
 11012  }
 11013  
 11014  // SetResourceArn sets the ResourceArn field's value.
 11015  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
 11016  	s.ResourceArn = &v
 11017  	return s
 11018  }
 11019  
 11020  // SetTags sets the Tags field's value.
 11021  func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
 11022  	s.Tags = v
 11023  	return s
 11024  }
 11025  
 11026  type TagResourceOutput struct {
 11027  	_ struct{} `type:"structure"`
 11028  }
 11029  
 11030  // String returns the string representation.
 11031  //
 11032  // API parameter values that are decorated as "sensitive" in the API will not
 11033  // be included in the string output. The member name will be present, but the
 11034  // value will be replaced with "sensitive".
 11035  func (s TagResourceOutput) String() string {
 11036  	return awsutil.Prettify(s)
 11037  }
 11038  
 11039  // GoString returns the string representation.
 11040  //
 11041  // API parameter values that are decorated as "sensitive" in the API will not
 11042  // be included in the string output. The member name will be present, but the
 11043  // value will be replaced with "sensitive".
 11044  func (s TagResourceOutput) GoString() string {
 11045  	return s.String()
 11046  }
 11047  
 11048  // Identifies the location of a transcription.
 11049  type Transcript struct {
 11050  	_ struct{} `type:"structure"`
 11051  
 11052  	// The S3 object location of the redacted transcript.
 11053  	//
 11054  	// Use this URI to access the redacted transcript. If you specified an S3 bucket
 11055  	// in the OutputBucketName field when you created the job, this is the URI of
 11056  	// that bucket. If you chose to store the transcript in Amazon Transcribe, this
 11057  	// is a shareable URL that provides secure access to that location.
 11058  	RedactedTranscriptFileUri *string `min:"1" type:"string"`
 11059  
 11060  	// The S3 object location of the transcript.
 11061  	//
 11062  	// Use this URI to access the transcript. If you specified an S3 bucket in the
 11063  	// OutputBucketName field when you created the job, this is the URI of that
 11064  	// bucket. If you chose to store the transcript in Amazon Transcribe, this is
 11065  	// a shareable URL that provides secure access to that location.
 11066  	TranscriptFileUri *string `min:"1" type:"string"`
 11067  }
 11068  
 11069  // String returns the string representation.
 11070  //
 11071  // API parameter values that are decorated as "sensitive" in the API will not
 11072  // be included in the string output. The member name will be present, but the
 11073  // value will be replaced with "sensitive".
 11074  func (s Transcript) String() string {
 11075  	return awsutil.Prettify(s)
 11076  }
 11077  
 11078  // GoString returns the string representation.
 11079  //
 11080  // API parameter values that are decorated as "sensitive" in the API will not
 11081  // be included in the string output. The member name will be present, but the
 11082  // value will be replaced with "sensitive".
 11083  func (s Transcript) GoString() string {
 11084  	return s.String()
 11085  }
 11086  
 11087  // SetRedactedTranscriptFileUri sets the RedactedTranscriptFileUri field's value.
 11088  func (s *Transcript) SetRedactedTranscriptFileUri(v string) *Transcript {
 11089  	s.RedactedTranscriptFileUri = &v
 11090  	return s
 11091  }
 11092  
 11093  // SetTranscriptFileUri sets the TranscriptFileUri field's value.
 11094  func (s *Transcript) SetTranscriptFileUri(v string) *Transcript {
 11095  	s.TranscriptFileUri = &v
 11096  	return s
 11097  }
 11098  
 11099  // Matches the output of the transcription to either the specific phrases that
 11100  // you specify, or the intent of the phrases that you specify.
 11101  type TranscriptFilter struct {
 11102  	_ struct{} `type:"structure"`
 11103  
 11104  	// A time range, set in seconds, between two points in the call.
 11105  	AbsoluteTimeRange *AbsoluteTimeRange `type:"structure"`
 11106  
 11107  	// If TRUE, the rule that you specify is applied to everything except for the
 11108  	// phrases that you specify.
 11109  	Negate *bool `type:"boolean"`
 11110  
 11111  	// Determines whether the customer or the agent is speaking the phrases that
 11112  	// you've specified.
 11113  	ParticipantRole *string `type:"string" enum:"ParticipantRole"`
 11114  
 11115  	// An object that allows percentages to specify the proportion of the call where
 11116  	// you would like to apply a filter. For example, you can specify the first
 11117  	// half of the call. You can also specify the period of time between halfway
 11118  	// through to three-quarters of the way through the call. Because the length
 11119  	// of conversation can vary between calls, you can apply relative time ranges
 11120  	// across all calls.
 11121  	RelativeTimeRange *RelativeTimeRange `type:"structure"`
 11122  
 11123  	// The phrases that you're specifying for the transcript filter to match.
 11124  	//
 11125  	// Targets is a required field
 11126  	Targets []*string `min:"1" type:"list" required:"true"`
 11127  
 11128  	// Matches the phrase to the transcription output in a word for word fashion.
 11129  	// For example, if you specify the phrase "I want to speak to the manager."
 11130  	// Amazon Transcribe attempts to match that specific phrase to the transcription.
 11131  	//
 11132  	// TranscriptFilterType is a required field
 11133  	TranscriptFilterType *string `type:"string" required:"true" enum:"TranscriptFilterType"`
 11134  }
 11135  
 11136  // String returns the string representation.
 11137  //
 11138  // API parameter values that are decorated as "sensitive" in the API will not
 11139  // be included in the string output. The member name will be present, but the
 11140  // value will be replaced with "sensitive".
 11141  func (s TranscriptFilter) String() string {
 11142  	return awsutil.Prettify(s)
 11143  }
 11144  
 11145  // GoString returns the string representation.
 11146  //
 11147  // API parameter values that are decorated as "sensitive" in the API will not
 11148  // be included in the string output. The member name will be present, but the
 11149  // value will be replaced with "sensitive".
 11150  func (s TranscriptFilter) GoString() string {
 11151  	return s.String()
 11152  }
 11153  
 11154  // Validate inspects the fields of the type to determine if they are valid.
 11155  func (s *TranscriptFilter) Validate() error {
 11156  	invalidParams := request.ErrInvalidParams{Context: "TranscriptFilter"}
 11157  	if s.Targets == nil {
 11158  		invalidParams.Add(request.NewErrParamRequired("Targets"))
 11159  	}
 11160  	if s.Targets != nil && len(s.Targets) < 1 {
 11161  		invalidParams.Add(request.NewErrParamMinLen("Targets", 1))
 11162  	}
 11163  	if s.TranscriptFilterType == nil {
 11164  		invalidParams.Add(request.NewErrParamRequired("TranscriptFilterType"))
 11165  	}
 11166  
 11167  	if invalidParams.Len() > 0 {
 11168  		return invalidParams
 11169  	}
 11170  	return nil
 11171  }
 11172  
 11173  // SetAbsoluteTimeRange sets the AbsoluteTimeRange field's value.
 11174  func (s *TranscriptFilter) SetAbsoluteTimeRange(v *AbsoluteTimeRange) *TranscriptFilter {
 11175  	s.AbsoluteTimeRange = v
 11176  	return s
 11177  }
 11178  
 11179  // SetNegate sets the Negate field's value.
 11180  func (s *TranscriptFilter) SetNegate(v bool) *TranscriptFilter {
 11181  	s.Negate = &v
 11182  	return s
 11183  }
 11184  
 11185  // SetParticipantRole sets the ParticipantRole field's value.
 11186  func (s *TranscriptFilter) SetParticipantRole(v string) *TranscriptFilter {
 11187  	s.ParticipantRole = &v
 11188  	return s
 11189  }
 11190  
 11191  // SetRelativeTimeRange sets the RelativeTimeRange field's value.
 11192  func (s *TranscriptFilter) SetRelativeTimeRange(v *RelativeTimeRange) *TranscriptFilter {
 11193  	s.RelativeTimeRange = v
 11194  	return s
 11195  }
 11196  
 11197  // SetTargets sets the Targets field's value.
 11198  func (s *TranscriptFilter) SetTargets(v []*string) *TranscriptFilter {
 11199  	s.Targets = v
 11200  	return s
 11201  }
 11202  
 11203  // SetTranscriptFilterType sets the TranscriptFilterType field's value.
 11204  func (s *TranscriptFilter) SetTranscriptFilterType(v string) *TranscriptFilter {
 11205  	s.TranscriptFilterType = &v
 11206  	return s
 11207  }
 11208  
 11209  // Describes an asynchronous transcription job that was created with the StartTranscriptionJob
 11210  // operation.
 11211  type TranscriptionJob struct {
 11212  	_ struct{} `type:"structure"`
 11213  
 11214  	// A timestamp that shows when the job completed.
 11215  	CompletionTime *time.Time `type:"timestamp"`
 11216  
 11217  	// An object that describes content redaction settings for the transcription
 11218  	// job.
 11219  	ContentRedaction *ContentRedaction `type:"structure"`
 11220  
 11221  	// A timestamp that shows when the job was created.
 11222  	CreationTime *time.Time `type:"timestamp"`
 11223  
 11224  	// If the TranscriptionJobStatus field is FAILED, this field contains information
 11225  	// about why the job failed.
 11226  	//
 11227  	// The FailureReason field can contain one of the following values:
 11228  	//
 11229  	//    * Unsupported media format - The media format specified in the MediaFormat
 11230  	//    field of the request isn't valid. See the description of the MediaFormat
 11231  	//    field for a list of valid values.
 11232  	//
 11233  	//    * The media format provided does not match the detected media format -
 11234  	//    The media format of the audio file doesn't match the format specified
 11235  	//    in the MediaFormat field in the request. Check the media format of your
 11236  	//    media file and make sure that the two values match.
 11237  	//
 11238  	//    * Invalid sample rate for audio file - The sample rate specified in the
 11239  	//    MediaSampleRateHertz of the request isn't valid. The sample rate must
 11240  	//    be between 8,000 and 48,000 Hertz.
 11241  	//
 11242  	//    * The sample rate provided does not match the detected sample rate - The
 11243  	//    sample rate in the audio file doesn't match the sample rate specified
 11244  	//    in the MediaSampleRateHertz field in the request. Check the sample rate
 11245  	//    of your media file and make sure that the two values match.
 11246  	//
 11247  	//    * Invalid file size: file size too large - The size of your audio file
 11248  	//    is larger than Amazon Transcribe can process. For more information, see
 11249  	//    Limits (https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits)
 11250  	//    in the Amazon Transcribe Developer Guide.
 11251  	//
 11252  	//    * Invalid number of channels: number of channels too large - Your audio
 11253  	//    contains more channels than Amazon Transcribe is configured to process.
 11254  	//    To request additional channels, see Amazon Transcribe Limits (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits-amazon-transcribe)
 11255  	//    in the Amazon Web Services General Reference.
 11256  	FailureReason *string `type:"string"`
 11257  
 11258  	// A value between zero and one that Amazon Transcribe assigned to the language
 11259  	// that it identified in the source audio. Larger values indicate that Amazon
 11260  	// Transcribe has higher confidence in the language it identified.
 11261  	IdentifiedLanguageScore *float64 `type:"float"`
 11262  
 11263  	// A value that shows if automatic language identification was enabled for a
 11264  	// transcription job.
 11265  	IdentifyLanguage *bool `type:"boolean"`
 11266  
 11267  	// Provides information about how a transcription job is executed.
 11268  	JobExecutionSettings *JobExecutionSettings `type:"structure"`
 11269  
 11270  	// The language code for the input speech.
 11271  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 11272  
 11273  	// An object that shows the optional array of languages inputted for transcription
 11274  	// jobs with automatic language identification enabled.
 11275  	LanguageOptions []*string `min:"1" type:"list"`
 11276  
 11277  	// An object that describes the input media for the transcription job.
 11278  	Media *Media `type:"structure"`
 11279  
 11280  	// The format of the input media file.
 11281  	MediaFormat *string `type:"string" enum:"MediaFormat"`
 11282  
 11283  	// The sample rate, in Hertz, of the audio track in the input media file.
 11284  	MediaSampleRateHertz *int64 `min:"8000" type:"integer"`
 11285  
 11286  	// An object containing the details of your custom language model.
 11287  	ModelSettings *ModelSettings `type:"structure"`
 11288  
 11289  	// Optional settings for the transcription job. Use these settings to turn on
 11290  	// speaker recognition, to set the maximum number of speakers that should be
 11291  	// identified and to specify a custom vocabulary to use when processing the
 11292  	// transcription job.
 11293  	Settings *Settings `type:"structure"`
 11294  
 11295  	// A timestamp that shows when the job started processing.
 11296  	StartTime *time.Time `type:"timestamp"`
 11297  
 11298  	// Generate subtitles for your batch transcription job.
 11299  	Subtitles *SubtitlesOutput_ `type:"structure"`
 11300  
 11301  	// A key:value pair assigned to a given transcription job.
 11302  	Tags []*Tag `min:"1" type:"list"`
 11303  
 11304  	// An object that describes the output of the transcription job.
 11305  	Transcript *Transcript `type:"structure"`
 11306  
 11307  	// The name of the transcription job.
 11308  	TranscriptionJobName *string `min:"1" type:"string"`
 11309  
 11310  	// The status of the transcription job.
 11311  	TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"`
 11312  }
 11313  
 11314  // String returns the string representation.
 11315  //
 11316  // API parameter values that are decorated as "sensitive" in the API will not
 11317  // be included in the string output. The member name will be present, but the
 11318  // value will be replaced with "sensitive".
 11319  func (s TranscriptionJob) String() string {
 11320  	return awsutil.Prettify(s)
 11321  }
 11322  
 11323  // GoString returns the string representation.
 11324  //
 11325  // API parameter values that are decorated as "sensitive" in the API will not
 11326  // be included in the string output. The member name will be present, but the
 11327  // value will be replaced with "sensitive".
 11328  func (s TranscriptionJob) GoString() string {
 11329  	return s.String()
 11330  }
 11331  
 11332  // SetCompletionTime sets the CompletionTime field's value.
 11333  func (s *TranscriptionJob) SetCompletionTime(v time.Time) *TranscriptionJob {
 11334  	s.CompletionTime = &v
 11335  	return s
 11336  }
 11337  
 11338  // SetContentRedaction sets the ContentRedaction field's value.
 11339  func (s *TranscriptionJob) SetContentRedaction(v *ContentRedaction) *TranscriptionJob {
 11340  	s.ContentRedaction = v
 11341  	return s
 11342  }
 11343  
 11344  // SetCreationTime sets the CreationTime field's value.
 11345  func (s *TranscriptionJob) SetCreationTime(v time.Time) *TranscriptionJob {
 11346  	s.CreationTime = &v
 11347  	return s
 11348  }
 11349  
 11350  // SetFailureReason sets the FailureReason field's value.
 11351  func (s *TranscriptionJob) SetFailureReason(v string) *TranscriptionJob {
 11352  	s.FailureReason = &v
 11353  	return s
 11354  }
 11355  
 11356  // SetIdentifiedLanguageScore sets the IdentifiedLanguageScore field's value.
 11357  func (s *TranscriptionJob) SetIdentifiedLanguageScore(v float64) *TranscriptionJob {
 11358  	s.IdentifiedLanguageScore = &v
 11359  	return s
 11360  }
 11361  
 11362  // SetIdentifyLanguage sets the IdentifyLanguage field's value.
 11363  func (s *TranscriptionJob) SetIdentifyLanguage(v bool) *TranscriptionJob {
 11364  	s.IdentifyLanguage = &v
 11365  	return s
 11366  }
 11367  
 11368  // SetJobExecutionSettings sets the JobExecutionSettings field's value.
 11369  func (s *TranscriptionJob) SetJobExecutionSettings(v *JobExecutionSettings) *TranscriptionJob {
 11370  	s.JobExecutionSettings = v
 11371  	return s
 11372  }
 11373  
 11374  // SetLanguageCode sets the LanguageCode field's value.
 11375  func (s *TranscriptionJob) SetLanguageCode(v string) *TranscriptionJob {
 11376  	s.LanguageCode = &v
 11377  	return s
 11378  }
 11379  
 11380  // SetLanguageOptions sets the LanguageOptions field's value.
 11381  func (s *TranscriptionJob) SetLanguageOptions(v []*string) *TranscriptionJob {
 11382  	s.LanguageOptions = v
 11383  	return s
 11384  }
 11385  
 11386  // SetMedia sets the Media field's value.
 11387  func (s *TranscriptionJob) SetMedia(v *Media) *TranscriptionJob {
 11388  	s.Media = v
 11389  	return s
 11390  }
 11391  
 11392  // SetMediaFormat sets the MediaFormat field's value.
 11393  func (s *TranscriptionJob) SetMediaFormat(v string) *TranscriptionJob {
 11394  	s.MediaFormat = &v
 11395  	return s
 11396  }
 11397  
 11398  // SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
 11399  func (s *TranscriptionJob) SetMediaSampleRateHertz(v int64) *TranscriptionJob {
 11400  	s.MediaSampleRateHertz = &v
 11401  	return s
 11402  }
 11403  
 11404  // SetModelSettings sets the ModelSettings field's value.
 11405  func (s *TranscriptionJob) SetModelSettings(v *ModelSettings) *TranscriptionJob {
 11406  	s.ModelSettings = v
 11407  	return s
 11408  }
 11409  
 11410  // SetSettings sets the Settings field's value.
 11411  func (s *TranscriptionJob) SetSettings(v *Settings) *TranscriptionJob {
 11412  	s.Settings = v
 11413  	return s
 11414  }
 11415  
 11416  // SetStartTime sets the StartTime field's value.
 11417  func (s *TranscriptionJob) SetStartTime(v time.Time) *TranscriptionJob {
 11418  	s.StartTime = &v
 11419  	return s
 11420  }
 11421  
 11422  // SetSubtitles sets the Subtitles field's value.
 11423  func (s *TranscriptionJob) SetSubtitles(v *SubtitlesOutput_) *TranscriptionJob {
 11424  	s.Subtitles = v
 11425  	return s
 11426  }
 11427  
 11428  // SetTags sets the Tags field's value.
 11429  func (s *TranscriptionJob) SetTags(v []*Tag) *TranscriptionJob {
 11430  	s.Tags = v
 11431  	return s
 11432  }
 11433  
 11434  // SetTranscript sets the Transcript field's value.
 11435  func (s *TranscriptionJob) SetTranscript(v *Transcript) *TranscriptionJob {
 11436  	s.Transcript = v
 11437  	return s
 11438  }
 11439  
 11440  // SetTranscriptionJobName sets the TranscriptionJobName field's value.
 11441  func (s *TranscriptionJob) SetTranscriptionJobName(v string) *TranscriptionJob {
 11442  	s.TranscriptionJobName = &v
 11443  	return s
 11444  }
 11445  
 11446  // SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value.
 11447  func (s *TranscriptionJob) SetTranscriptionJobStatus(v string) *TranscriptionJob {
 11448  	s.TranscriptionJobStatus = &v
 11449  	return s
 11450  }
 11451  
 11452  // Provides a summary of information about a transcription job.
 11453  type TranscriptionJobSummary struct {
 11454  	_ struct{} `type:"structure"`
 11455  
 11456  	// A timestamp that shows when the job was completed.
 11457  	CompletionTime *time.Time `type:"timestamp"`
 11458  
 11459  	// The content redaction settings of the transcription job.
 11460  	ContentRedaction *ContentRedaction `type:"structure"`
 11461  
 11462  	// A timestamp that shows when the job was created.
 11463  	CreationTime *time.Time `type:"timestamp"`
 11464  
 11465  	// If the TranscriptionJobStatus field is FAILED, a description of the error.
 11466  	FailureReason *string `type:"string"`
 11467  
 11468  	// A value between zero and one that Amazon Transcribe assigned to the language
 11469  	// it identified in the source audio. A higher score indicates that Amazon Transcribe
 11470  	// is more confident in the language it identified.
 11471  	IdentifiedLanguageScore *float64 `type:"float"`
 11472  
 11473  	// Whether automatic language identification was enabled for a transcription
 11474  	// job.
 11475  	IdentifyLanguage *bool `type:"boolean"`
 11476  
 11477  	// The language code for the input speech.
 11478  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 11479  
 11480  	// The object used to call your custom language model to your transcription
 11481  	// job.
 11482  	ModelSettings *ModelSettings `type:"structure"`
 11483  
 11484  	// Indicates the location of the output of the transcription job.
 11485  	//
 11486  	// If the value is CUSTOMER_BUCKET then the location is the S3 bucket specified
 11487  	// in the outputBucketName field when the transcription job was started with
 11488  	// the StartTranscriptionJob operation.
 11489  	//
 11490  	// If the value is SERVICE_BUCKET then the output is stored by Amazon Transcribe
 11491  	// and can be retrieved using the URI in the GetTranscriptionJob response's
 11492  	// TranscriptFileUri field.
 11493  	OutputLocationType *string `type:"string" enum:"OutputLocationType"`
 11494  
 11495  	// A timestamp that shows when the job started processing.
 11496  	StartTime *time.Time `type:"timestamp"`
 11497  
 11498  	// The name of the transcription job.
 11499  	TranscriptionJobName *string `min:"1" type:"string"`
 11500  
 11501  	// The status of the transcription job. When the status is COMPLETED, use the
 11502  	// GetTranscriptionJob operation to get the results of the transcription.
 11503  	TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"`
 11504  }
 11505  
 11506  // String returns the string representation.
 11507  //
 11508  // API parameter values that are decorated as "sensitive" in the API will not
 11509  // be included in the string output. The member name will be present, but the
 11510  // value will be replaced with "sensitive".
 11511  func (s TranscriptionJobSummary) String() string {
 11512  	return awsutil.Prettify(s)
 11513  }
 11514  
 11515  // GoString returns the string representation.
 11516  //
 11517  // API parameter values that are decorated as "sensitive" in the API will not
 11518  // be included in the string output. The member name will be present, but the
 11519  // value will be replaced with "sensitive".
 11520  func (s TranscriptionJobSummary) GoString() string {
 11521  	return s.String()
 11522  }
 11523  
 11524  // SetCompletionTime sets the CompletionTime field's value.
 11525  func (s *TranscriptionJobSummary) SetCompletionTime(v time.Time) *TranscriptionJobSummary {
 11526  	s.CompletionTime = &v
 11527  	return s
 11528  }
 11529  
 11530  // SetContentRedaction sets the ContentRedaction field's value.
 11531  func (s *TranscriptionJobSummary) SetContentRedaction(v *ContentRedaction) *TranscriptionJobSummary {
 11532  	s.ContentRedaction = v
 11533  	return s
 11534  }
 11535  
 11536  // SetCreationTime sets the CreationTime field's value.
 11537  func (s *TranscriptionJobSummary) SetCreationTime(v time.Time) *TranscriptionJobSummary {
 11538  	s.CreationTime = &v
 11539  	return s
 11540  }
 11541  
 11542  // SetFailureReason sets the FailureReason field's value.
 11543  func (s *TranscriptionJobSummary) SetFailureReason(v string) *TranscriptionJobSummary {
 11544  	s.FailureReason = &v
 11545  	return s
 11546  }
 11547  
 11548  // SetIdentifiedLanguageScore sets the IdentifiedLanguageScore field's value.
 11549  func (s *TranscriptionJobSummary) SetIdentifiedLanguageScore(v float64) *TranscriptionJobSummary {
 11550  	s.IdentifiedLanguageScore = &v
 11551  	return s
 11552  }
 11553  
 11554  // SetIdentifyLanguage sets the IdentifyLanguage field's value.
 11555  func (s *TranscriptionJobSummary) SetIdentifyLanguage(v bool) *TranscriptionJobSummary {
 11556  	s.IdentifyLanguage = &v
 11557  	return s
 11558  }
 11559  
 11560  // SetLanguageCode sets the LanguageCode field's value.
 11561  func (s *TranscriptionJobSummary) SetLanguageCode(v string) *TranscriptionJobSummary {
 11562  	s.LanguageCode = &v
 11563  	return s
 11564  }
 11565  
 11566  // SetModelSettings sets the ModelSettings field's value.
 11567  func (s *TranscriptionJobSummary) SetModelSettings(v *ModelSettings) *TranscriptionJobSummary {
 11568  	s.ModelSettings = v
 11569  	return s
 11570  }
 11571  
 11572  // SetOutputLocationType sets the OutputLocationType field's value.
 11573  func (s *TranscriptionJobSummary) SetOutputLocationType(v string) *TranscriptionJobSummary {
 11574  	s.OutputLocationType = &v
 11575  	return s
 11576  }
 11577  
 11578  // SetStartTime sets the StartTime field's value.
 11579  func (s *TranscriptionJobSummary) SetStartTime(v time.Time) *TranscriptionJobSummary {
 11580  	s.StartTime = &v
 11581  	return s
 11582  }
 11583  
 11584  // SetTranscriptionJobName sets the TranscriptionJobName field's value.
 11585  func (s *TranscriptionJobSummary) SetTranscriptionJobName(v string) *TranscriptionJobSummary {
 11586  	s.TranscriptionJobName = &v
 11587  	return s
 11588  }
 11589  
 11590  // SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value.
 11591  func (s *TranscriptionJobSummary) SetTranscriptionJobStatus(v string) *TranscriptionJobSummary {
 11592  	s.TranscriptionJobStatus = &v
 11593  	return s
 11594  }
 11595  
 11596  type UntagResourceInput struct {
 11597  	_ struct{} `type:"structure"`
 11598  
 11599  	// The Amazon Resource Name (ARN) of the Amazon Transcribe resource you want
 11600  	// to remove tags from.
 11601  	//
 11602  	// ResourceArn is a required field
 11603  	ResourceArn *string `min:"1" type:"string" required:"true"`
 11604  
 11605  	// A list of tag keys you want to remove from a specified Amazon Transcribe
 11606  	// resource.
 11607  	//
 11608  	// TagKeys is a required field
 11609  	TagKeys []*string `min:"1" type:"list" required:"true"`
 11610  }
 11611  
 11612  // String returns the string representation.
 11613  //
 11614  // API parameter values that are decorated as "sensitive" in the API will not
 11615  // be included in the string output. The member name will be present, but the
 11616  // value will be replaced with "sensitive".
 11617  func (s UntagResourceInput) String() string {
 11618  	return awsutil.Prettify(s)
 11619  }
 11620  
 11621  // GoString returns the string representation.
 11622  //
 11623  // API parameter values that are decorated as "sensitive" in the API will not
 11624  // be included in the string output. The member name will be present, but the
 11625  // value will be replaced with "sensitive".
 11626  func (s UntagResourceInput) GoString() string {
 11627  	return s.String()
 11628  }
 11629  
 11630  // Validate inspects the fields of the type to determine if they are valid.
 11631  func (s *UntagResourceInput) Validate() error {
 11632  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
 11633  	if s.ResourceArn == nil {
 11634  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
 11635  	}
 11636  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
 11637  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
 11638  	}
 11639  	if s.TagKeys == nil {
 11640  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
 11641  	}
 11642  	if s.TagKeys != nil && len(s.TagKeys) < 1 {
 11643  		invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
 11644  	}
 11645  
 11646  	if invalidParams.Len() > 0 {
 11647  		return invalidParams
 11648  	}
 11649  	return nil
 11650  }
 11651  
 11652  // SetResourceArn sets the ResourceArn field's value.
 11653  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
 11654  	s.ResourceArn = &v
 11655  	return s
 11656  }
 11657  
 11658  // SetTagKeys sets the TagKeys field's value.
 11659  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
 11660  	s.TagKeys = v
 11661  	return s
 11662  }
 11663  
 11664  type UntagResourceOutput struct {
 11665  	_ struct{} `type:"structure"`
 11666  }
 11667  
 11668  // String returns the string representation.
 11669  //
 11670  // API parameter values that are decorated as "sensitive" in the API will not
 11671  // be included in the string output. The member name will be present, but the
 11672  // value will be replaced with "sensitive".
 11673  func (s UntagResourceOutput) String() string {
 11674  	return awsutil.Prettify(s)
 11675  }
 11676  
 11677  // GoString returns the string representation.
 11678  //
 11679  // API parameter values that are decorated as "sensitive" in the API will not
 11680  // be included in the string output. The member name will be present, but the
 11681  // value will be replaced with "sensitive".
 11682  func (s UntagResourceOutput) GoString() string {
 11683  	return s.String()
 11684  }
 11685  
 11686  type UpdateCallAnalyticsCategoryInput struct {
 11687  	_ struct{} `type:"structure"`
 11688  
 11689  	// The name of the analytics category to update. The name is case sensitive.
 11690  	// If you try to update a call analytics category with the same name as a previous
 11691  	// category you will receive a ConflictException error.
 11692  	//
 11693  	// CategoryName is a required field
 11694  	CategoryName *string `min:"1" type:"string" required:"true"`
 11695  
 11696  	// The rules used for the updated analytics category. The rules that you provide
 11697  	// in this field replace the ones that are currently being used.
 11698  	//
 11699  	// Rules is a required field
 11700  	Rules []*Rule `min:"1" type:"list" required:"true"`
 11701  }
 11702  
 11703  // String returns the string representation.
 11704  //
 11705  // API parameter values that are decorated as "sensitive" in the API will not
 11706  // be included in the string output. The member name will be present, but the
 11707  // value will be replaced with "sensitive".
 11708  func (s UpdateCallAnalyticsCategoryInput) String() string {
 11709  	return awsutil.Prettify(s)
 11710  }
 11711  
 11712  // GoString returns the string representation.
 11713  //
 11714  // API parameter values that are decorated as "sensitive" in the API will not
 11715  // be included in the string output. The member name will be present, but the
 11716  // value will be replaced with "sensitive".
 11717  func (s UpdateCallAnalyticsCategoryInput) GoString() string {
 11718  	return s.String()
 11719  }
 11720  
 11721  // Validate inspects the fields of the type to determine if they are valid.
 11722  func (s *UpdateCallAnalyticsCategoryInput) Validate() error {
 11723  	invalidParams := request.ErrInvalidParams{Context: "UpdateCallAnalyticsCategoryInput"}
 11724  	if s.CategoryName == nil {
 11725  		invalidParams.Add(request.NewErrParamRequired("CategoryName"))
 11726  	}
 11727  	if s.CategoryName != nil && len(*s.CategoryName) < 1 {
 11728  		invalidParams.Add(request.NewErrParamMinLen("CategoryName", 1))
 11729  	}
 11730  	if s.Rules == nil {
 11731  		invalidParams.Add(request.NewErrParamRequired("Rules"))
 11732  	}
 11733  	if s.Rules != nil && len(s.Rules) < 1 {
 11734  		invalidParams.Add(request.NewErrParamMinLen("Rules", 1))
 11735  	}
 11736  	if s.Rules != nil {
 11737  		for i, v := range s.Rules {
 11738  			if v == nil {
 11739  				continue
 11740  			}
 11741  			if err := v.Validate(); err != nil {
 11742  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
 11743  			}
 11744  		}
 11745  	}
 11746  
 11747  	if invalidParams.Len() > 0 {
 11748  		return invalidParams
 11749  	}
 11750  	return nil
 11751  }
 11752  
 11753  // SetCategoryName sets the CategoryName field's value.
 11754  func (s *UpdateCallAnalyticsCategoryInput) SetCategoryName(v string) *UpdateCallAnalyticsCategoryInput {
 11755  	s.CategoryName = &v
 11756  	return s
 11757  }
 11758  
 11759  // SetRules sets the Rules field's value.
 11760  func (s *UpdateCallAnalyticsCategoryInput) SetRules(v []*Rule) *UpdateCallAnalyticsCategoryInput {
 11761  	s.Rules = v
 11762  	return s
 11763  }
 11764  
 11765  type UpdateCallAnalyticsCategoryOutput struct {
 11766  	_ struct{} `type:"structure"`
 11767  
 11768  	// The attributes describing the analytics category. You can see information
 11769  	// such as the rules that you've used to update the category and when the category
 11770  	// was originally created.
 11771  	CategoryProperties *CategoryProperties `type:"structure"`
 11772  }
 11773  
 11774  // String returns the string representation.
 11775  //
 11776  // API parameter values that are decorated as "sensitive" in the API will not
 11777  // be included in the string output. The member name will be present, but the
 11778  // value will be replaced with "sensitive".
 11779  func (s UpdateCallAnalyticsCategoryOutput) String() string {
 11780  	return awsutil.Prettify(s)
 11781  }
 11782  
 11783  // GoString returns the string representation.
 11784  //
 11785  // API parameter values that are decorated as "sensitive" in the API will not
 11786  // be included in the string output. The member name will be present, but the
 11787  // value will be replaced with "sensitive".
 11788  func (s UpdateCallAnalyticsCategoryOutput) GoString() string {
 11789  	return s.String()
 11790  }
 11791  
 11792  // SetCategoryProperties sets the CategoryProperties field's value.
 11793  func (s *UpdateCallAnalyticsCategoryOutput) SetCategoryProperties(v *CategoryProperties) *UpdateCallAnalyticsCategoryOutput {
 11794  	s.CategoryProperties = v
 11795  	return s
 11796  }
 11797  
 11798  type UpdateMedicalVocabularyInput struct {
 11799  	_ struct{} `type:"structure"`
 11800  
 11801  	// The language code of the language used for the entries in the updated vocabulary.
 11802  	// US English (en-US) is the only valid language code in Amazon Transcribe Medical.
 11803  	//
 11804  	// LanguageCode is a required field
 11805  	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
 11806  
 11807  	// The location in Amazon S3 of the text file that contains your custom vocabulary.
 11808  	// The URI must be in the same Amazon Web Services Region as the resource that
 11809  	// you are calling. The following is the format for a URI:
 11810  	//
 11811  	// https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
 11812  	//
 11813  	// For example:
 11814  	//
 11815  	// https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt
 11816  	//
 11817  	// For more information about Amazon S3 object names, see Object Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys)
 11818  	// in the Amazon S3 Developer Guide.
 11819  	//
 11820  	// For more information about custom vocabularies in Amazon Transcribe Medical,
 11821  	// see Medical Custom Vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary).
 11822  	VocabularyFileUri *string `min:"1" type:"string"`
 11823  
 11824  	// The name of the vocabulary to update. The name is case sensitive. If you
 11825  	// try to update a vocabulary with the same name as a vocabulary you've already
 11826  	// made, you get a ConflictException error.
 11827  	//
 11828  	// VocabularyName is a required field
 11829  	VocabularyName *string `min:"1" type:"string" required:"true"`
 11830  }
 11831  
 11832  // String returns the string representation.
 11833  //
 11834  // API parameter values that are decorated as "sensitive" in the API will not
 11835  // be included in the string output. The member name will be present, but the
 11836  // value will be replaced with "sensitive".
 11837  func (s UpdateMedicalVocabularyInput) String() string {
 11838  	return awsutil.Prettify(s)
 11839  }
 11840  
 11841  // GoString returns the string representation.
 11842  //
 11843  // API parameter values that are decorated as "sensitive" in the API will not
 11844  // be included in the string output. The member name will be present, but the
 11845  // value will be replaced with "sensitive".
 11846  func (s UpdateMedicalVocabularyInput) GoString() string {
 11847  	return s.String()
 11848  }
 11849  
 11850  // Validate inspects the fields of the type to determine if they are valid.
 11851  func (s *UpdateMedicalVocabularyInput) Validate() error {
 11852  	invalidParams := request.ErrInvalidParams{Context: "UpdateMedicalVocabularyInput"}
 11853  	if s.LanguageCode == nil {
 11854  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
 11855  	}
 11856  	if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 {
 11857  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1))
 11858  	}
 11859  	if s.VocabularyName == nil {
 11860  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
 11861  	}
 11862  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
 11863  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
 11864  	}
 11865  
 11866  	if invalidParams.Len() > 0 {
 11867  		return invalidParams
 11868  	}
 11869  	return nil
 11870  }
 11871  
 11872  // SetLanguageCode sets the LanguageCode field's value.
 11873  func (s *UpdateMedicalVocabularyInput) SetLanguageCode(v string) *UpdateMedicalVocabularyInput {
 11874  	s.LanguageCode = &v
 11875  	return s
 11876  }
 11877  
 11878  // SetVocabularyFileUri sets the VocabularyFileUri field's value.
 11879  func (s *UpdateMedicalVocabularyInput) SetVocabularyFileUri(v string) *UpdateMedicalVocabularyInput {
 11880  	s.VocabularyFileUri = &v
 11881  	return s
 11882  }
 11883  
 11884  // SetVocabularyName sets the VocabularyName field's value.
 11885  func (s *UpdateMedicalVocabularyInput) SetVocabularyName(v string) *UpdateMedicalVocabularyInput {
 11886  	s.VocabularyName = &v
 11887  	return s
 11888  }
 11889  
 11890  type UpdateMedicalVocabularyOutput struct {
 11891  	_ struct{} `type:"structure"`
 11892  
 11893  	// The language code for the language of the text file used to update the custom
 11894  	// vocabulary. US English (en-US) is the only language supported in Amazon Transcribe
 11895  	// Medical.
 11896  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 11897  
 11898  	// The date and time that the vocabulary was updated.
 11899  	LastModifiedTime *time.Time `type:"timestamp"`
 11900  
 11901  	// The name of the updated vocabulary.
 11902  	VocabularyName *string `min:"1" type:"string"`
 11903  
 11904  	// The processing state of the update to the vocabulary. When the VocabularyState
 11905  	// field is READY, the vocabulary is ready to be used in a StartMedicalTranscriptionJob
 11906  	// request.
 11907  	VocabularyState *string `type:"string" enum:"VocabularyState"`
 11908  }
 11909  
 11910  // String returns the string representation.
 11911  //
 11912  // API parameter values that are decorated as "sensitive" in the API will not
 11913  // be included in the string output. The member name will be present, but the
 11914  // value will be replaced with "sensitive".
 11915  func (s UpdateMedicalVocabularyOutput) String() string {
 11916  	return awsutil.Prettify(s)
 11917  }
 11918  
 11919  // GoString returns the string representation.
 11920  //
 11921  // API parameter values that are decorated as "sensitive" in the API will not
 11922  // be included in the string output. The member name will be present, but the
 11923  // value will be replaced with "sensitive".
 11924  func (s UpdateMedicalVocabularyOutput) GoString() string {
 11925  	return s.String()
 11926  }
 11927  
 11928  // SetLanguageCode sets the LanguageCode field's value.
 11929  func (s *UpdateMedicalVocabularyOutput) SetLanguageCode(v string) *UpdateMedicalVocabularyOutput {
 11930  	s.LanguageCode = &v
 11931  	return s
 11932  }
 11933  
 11934  // SetLastModifiedTime sets the LastModifiedTime field's value.
 11935  func (s *UpdateMedicalVocabularyOutput) SetLastModifiedTime(v time.Time) *UpdateMedicalVocabularyOutput {
 11936  	s.LastModifiedTime = &v
 11937  	return s
 11938  }
 11939  
 11940  // SetVocabularyName sets the VocabularyName field's value.
 11941  func (s *UpdateMedicalVocabularyOutput) SetVocabularyName(v string) *UpdateMedicalVocabularyOutput {
 11942  	s.VocabularyName = &v
 11943  	return s
 11944  }
 11945  
 11946  // SetVocabularyState sets the VocabularyState field's value.
 11947  func (s *UpdateMedicalVocabularyOutput) SetVocabularyState(v string) *UpdateMedicalVocabularyOutput {
 11948  	s.VocabularyState = &v
 11949  	return s
 11950  }
 11951  
 11952  type UpdateVocabularyFilterInput struct {
 11953  	_ struct{} `type:"structure"`
 11954  
 11955  	// The Amazon S3 location of a text file used as input to create the vocabulary
 11956  	// filter. Only use characters from the character set defined for custom vocabularies.
 11957  	// For a list of character sets, see Character Sets for Custom Vocabularies
 11958  	// (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets).
 11959  	//
 11960  	// The specified file must be less than 50 KB of UTF-8 characters.
 11961  	//
 11962  	// If you provide the location of a list of words in the VocabularyFilterFileUri
 11963  	// parameter, you can't use the Words parameter.
 11964  	VocabularyFilterFileUri *string `min:"1" type:"string"`
 11965  
 11966  	// The name of the vocabulary filter to update. If you try to update a vocabulary
 11967  	// filter with the same name as another vocabulary filter, you get a ConflictException
 11968  	// error.
 11969  	//
 11970  	// VocabularyFilterName is a required field
 11971  	VocabularyFilterName *string `min:"1" type:"string" required:"true"`
 11972  
 11973  	// The words to use in the vocabulary filter. Only use characters from the character
 11974  	// set defined for custom vocabularies. For a list of character sets, see Character
 11975  	// Sets for Custom Vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets).
 11976  	//
 11977  	// If you provide a list of words in the Words parameter, you can't use the
 11978  	// VocabularyFilterFileUri parameter.
 11979  	Words []*string `min:"1" type:"list"`
 11980  }
 11981  
 11982  // String returns the string representation.
 11983  //
 11984  // API parameter values that are decorated as "sensitive" in the API will not
 11985  // be included in the string output. The member name will be present, but the
 11986  // value will be replaced with "sensitive".
 11987  func (s UpdateVocabularyFilterInput) String() string {
 11988  	return awsutil.Prettify(s)
 11989  }
 11990  
 11991  // GoString returns the string representation.
 11992  //
 11993  // API parameter values that are decorated as "sensitive" in the API will not
 11994  // be included in the string output. The member name will be present, but the
 11995  // value will be replaced with "sensitive".
 11996  func (s UpdateVocabularyFilterInput) GoString() string {
 11997  	return s.String()
 11998  }
 11999  
 12000  // Validate inspects the fields of the type to determine if they are valid.
 12001  func (s *UpdateVocabularyFilterInput) Validate() error {
 12002  	invalidParams := request.ErrInvalidParams{Context: "UpdateVocabularyFilterInput"}
 12003  	if s.VocabularyFilterFileUri != nil && len(*s.VocabularyFilterFileUri) < 1 {
 12004  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterFileUri", 1))
 12005  	}
 12006  	if s.VocabularyFilterName == nil {
 12007  		invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName"))
 12008  	}
 12009  	if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 {
 12010  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1))
 12011  	}
 12012  	if s.Words != nil && len(s.Words) < 1 {
 12013  		invalidParams.Add(request.NewErrParamMinLen("Words", 1))
 12014  	}
 12015  
 12016  	if invalidParams.Len() > 0 {
 12017  		return invalidParams
 12018  	}
 12019  	return nil
 12020  }
 12021  
 12022  // SetVocabularyFilterFileUri sets the VocabularyFilterFileUri field's value.
 12023  func (s *UpdateVocabularyFilterInput) SetVocabularyFilterFileUri(v string) *UpdateVocabularyFilterInput {
 12024  	s.VocabularyFilterFileUri = &v
 12025  	return s
 12026  }
 12027  
 12028  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
 12029  func (s *UpdateVocabularyFilterInput) SetVocabularyFilterName(v string) *UpdateVocabularyFilterInput {
 12030  	s.VocabularyFilterName = &v
 12031  	return s
 12032  }
 12033  
 12034  // SetWords sets the Words field's value.
 12035  func (s *UpdateVocabularyFilterInput) SetWords(v []*string) *UpdateVocabularyFilterInput {
 12036  	s.Words = v
 12037  	return s
 12038  }
 12039  
 12040  type UpdateVocabularyFilterOutput struct {
 12041  	_ struct{} `type:"structure"`
 12042  
 12043  	// The language code of the words in the vocabulary filter.
 12044  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 12045  
 12046  	// The date and time that the vocabulary filter was updated.
 12047  	LastModifiedTime *time.Time `type:"timestamp"`
 12048  
 12049  	// The name of the updated vocabulary filter.
 12050  	VocabularyFilterName *string `min:"1" type:"string"`
 12051  }
 12052  
 12053  // String returns the string representation.
 12054  //
 12055  // API parameter values that are decorated as "sensitive" in the API will not
 12056  // be included in the string output. The member name will be present, but the
 12057  // value will be replaced with "sensitive".
 12058  func (s UpdateVocabularyFilterOutput) String() string {
 12059  	return awsutil.Prettify(s)
 12060  }
 12061  
 12062  // GoString returns the string representation.
 12063  //
 12064  // API parameter values that are decorated as "sensitive" in the API will not
 12065  // be included in the string output. The member name will be present, but the
 12066  // value will be replaced with "sensitive".
 12067  func (s UpdateVocabularyFilterOutput) GoString() string {
 12068  	return s.String()
 12069  }
 12070  
 12071  // SetLanguageCode sets the LanguageCode field's value.
 12072  func (s *UpdateVocabularyFilterOutput) SetLanguageCode(v string) *UpdateVocabularyFilterOutput {
 12073  	s.LanguageCode = &v
 12074  	return s
 12075  }
 12076  
 12077  // SetLastModifiedTime sets the LastModifiedTime field's value.
 12078  func (s *UpdateVocabularyFilterOutput) SetLastModifiedTime(v time.Time) *UpdateVocabularyFilterOutput {
 12079  	s.LastModifiedTime = &v
 12080  	return s
 12081  }
 12082  
 12083  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
 12084  func (s *UpdateVocabularyFilterOutput) SetVocabularyFilterName(v string) *UpdateVocabularyFilterOutput {
 12085  	s.VocabularyFilterName = &v
 12086  	return s
 12087  }
 12088  
 12089  type UpdateVocabularyInput struct {
 12090  	_ struct{} `type:"structure"`
 12091  
 12092  	// The language code of the vocabulary entries. For a list of languages and
 12093  	// their corresponding language codes, see transcribe-whatis.
 12094  	//
 12095  	// LanguageCode is a required field
 12096  	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
 12097  
 12098  	// An array of strings containing the vocabulary entries.
 12099  	Phrases []*string `type:"list"`
 12100  
 12101  	// The S3 location of the text file that contains the definition of the custom
 12102  	// vocabulary. The URI must be in the same region as the API endpoint that you
 12103  	// are calling. The general form is
 12104  	//
 12105  	// For example:
 12106  	//
 12107  	// For more information about S3 object names, see Object Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys)
 12108  	// in the Amazon S3 Developer Guide.
 12109  	//
 12110  	// For more information about custom vocabularies, see Custom Vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary).
 12111  	VocabularyFileUri *string `min:"1" type:"string"`
 12112  
 12113  	// The name of the vocabulary to update. The name is case sensitive. If you
 12114  	// try to update a vocabulary with the same name as a previous vocabulary you
 12115  	// will receive a ConflictException error.
 12116  	//
 12117  	// VocabularyName is a required field
 12118  	VocabularyName *string `min:"1" type:"string" required:"true"`
 12119  }
 12120  
 12121  // String returns the string representation.
 12122  //
 12123  // API parameter values that are decorated as "sensitive" in the API will not
 12124  // be included in the string output. The member name will be present, but the
 12125  // value will be replaced with "sensitive".
 12126  func (s UpdateVocabularyInput) String() string {
 12127  	return awsutil.Prettify(s)
 12128  }
 12129  
 12130  // GoString returns the string representation.
 12131  //
 12132  // API parameter values that are decorated as "sensitive" in the API will not
 12133  // be included in the string output. The member name will be present, but the
 12134  // value will be replaced with "sensitive".
 12135  func (s UpdateVocabularyInput) GoString() string {
 12136  	return s.String()
 12137  }
 12138  
 12139  // Validate inspects the fields of the type to determine if they are valid.
 12140  func (s *UpdateVocabularyInput) Validate() error {
 12141  	invalidParams := request.ErrInvalidParams{Context: "UpdateVocabularyInput"}
 12142  	if s.LanguageCode == nil {
 12143  		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
 12144  	}
 12145  	if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 {
 12146  		invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1))
 12147  	}
 12148  	if s.VocabularyName == nil {
 12149  		invalidParams.Add(request.NewErrParamRequired("VocabularyName"))
 12150  	}
 12151  	if s.VocabularyName != nil && len(*s.VocabularyName) < 1 {
 12152  		invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1))
 12153  	}
 12154  
 12155  	if invalidParams.Len() > 0 {
 12156  		return invalidParams
 12157  	}
 12158  	return nil
 12159  }
 12160  
 12161  // SetLanguageCode sets the LanguageCode field's value.
 12162  func (s *UpdateVocabularyInput) SetLanguageCode(v string) *UpdateVocabularyInput {
 12163  	s.LanguageCode = &v
 12164  	return s
 12165  }
 12166  
 12167  // SetPhrases sets the Phrases field's value.
 12168  func (s *UpdateVocabularyInput) SetPhrases(v []*string) *UpdateVocabularyInput {
 12169  	s.Phrases = v
 12170  	return s
 12171  }
 12172  
 12173  // SetVocabularyFileUri sets the VocabularyFileUri field's value.
 12174  func (s *UpdateVocabularyInput) SetVocabularyFileUri(v string) *UpdateVocabularyInput {
 12175  	s.VocabularyFileUri = &v
 12176  	return s
 12177  }
 12178  
 12179  // SetVocabularyName sets the VocabularyName field's value.
 12180  func (s *UpdateVocabularyInput) SetVocabularyName(v string) *UpdateVocabularyInput {
 12181  	s.VocabularyName = &v
 12182  	return s
 12183  }
 12184  
 12185  type UpdateVocabularyOutput struct {
 12186  	_ struct{} `type:"structure"`
 12187  
 12188  	// The language code of the vocabulary entries.
 12189  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 12190  
 12191  	// The date and time that the vocabulary was updated.
 12192  	LastModifiedTime *time.Time `type:"timestamp"`
 12193  
 12194  	// The name of the vocabulary that was updated.
 12195  	VocabularyName *string `min:"1" type:"string"`
 12196  
 12197  	// The processing state of the vocabulary. When the VocabularyState field contains
 12198  	// READY the vocabulary is ready to be used in a StartTranscriptionJob request.
 12199  	VocabularyState *string `type:"string" enum:"VocabularyState"`
 12200  }
 12201  
 12202  // String returns the string representation.
 12203  //
 12204  // API parameter values that are decorated as "sensitive" in the API will not
 12205  // be included in the string output. The member name will be present, but the
 12206  // value will be replaced with "sensitive".
 12207  func (s UpdateVocabularyOutput) String() string {
 12208  	return awsutil.Prettify(s)
 12209  }
 12210  
 12211  // GoString returns the string representation.
 12212  //
 12213  // API parameter values that are decorated as "sensitive" in the API will not
 12214  // be included in the string output. The member name will be present, but the
 12215  // value will be replaced with "sensitive".
 12216  func (s UpdateVocabularyOutput) GoString() string {
 12217  	return s.String()
 12218  }
 12219  
 12220  // SetLanguageCode sets the LanguageCode field's value.
 12221  func (s *UpdateVocabularyOutput) SetLanguageCode(v string) *UpdateVocabularyOutput {
 12222  	s.LanguageCode = &v
 12223  	return s
 12224  }
 12225  
 12226  // SetLastModifiedTime sets the LastModifiedTime field's value.
 12227  func (s *UpdateVocabularyOutput) SetLastModifiedTime(v time.Time) *UpdateVocabularyOutput {
 12228  	s.LastModifiedTime = &v
 12229  	return s
 12230  }
 12231  
 12232  // SetVocabularyName sets the VocabularyName field's value.
 12233  func (s *UpdateVocabularyOutput) SetVocabularyName(v string) *UpdateVocabularyOutput {
 12234  	s.VocabularyName = &v
 12235  	return s
 12236  }
 12237  
 12238  // SetVocabularyState sets the VocabularyState field's value.
 12239  func (s *UpdateVocabularyOutput) SetVocabularyState(v string) *UpdateVocabularyOutput {
 12240  	s.VocabularyState = &v
 12241  	return s
 12242  }
 12243  
 12244  // Provides information about a vocabulary filter.
 12245  type VocabularyFilterInfo struct {
 12246  	_ struct{} `type:"structure"`
 12247  
 12248  	// The language code of the words in the vocabulary filter.
 12249  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 12250  
 12251  	// The date and time that the vocabulary was last updated.
 12252  	LastModifiedTime *time.Time `type:"timestamp"`
 12253  
 12254  	// The name of the vocabulary filter. The name must be unique in the account
 12255  	// that holds the filter.
 12256  	VocabularyFilterName *string `min:"1" type:"string"`
 12257  }
 12258  
 12259  // String returns the string representation.
 12260  //
 12261  // API parameter values that are decorated as "sensitive" in the API will not
 12262  // be included in the string output. The member name will be present, but the
 12263  // value will be replaced with "sensitive".
 12264  func (s VocabularyFilterInfo) String() string {
 12265  	return awsutil.Prettify(s)
 12266  }
 12267  
 12268  // GoString returns the string representation.
 12269  //
 12270  // API parameter values that are decorated as "sensitive" in the API will not
 12271  // be included in the string output. The member name will be present, but the
 12272  // value will be replaced with "sensitive".
 12273  func (s VocabularyFilterInfo) GoString() string {
 12274  	return s.String()
 12275  }
 12276  
 12277  // SetLanguageCode sets the LanguageCode field's value.
 12278  func (s *VocabularyFilterInfo) SetLanguageCode(v string) *VocabularyFilterInfo {
 12279  	s.LanguageCode = &v
 12280  	return s
 12281  }
 12282  
 12283  // SetLastModifiedTime sets the LastModifiedTime field's value.
 12284  func (s *VocabularyFilterInfo) SetLastModifiedTime(v time.Time) *VocabularyFilterInfo {
 12285  	s.LastModifiedTime = &v
 12286  	return s
 12287  }
 12288  
 12289  // SetVocabularyFilterName sets the VocabularyFilterName field's value.
 12290  func (s *VocabularyFilterInfo) SetVocabularyFilterName(v string) *VocabularyFilterInfo {
 12291  	s.VocabularyFilterName = &v
 12292  	return s
 12293  }
 12294  
 12295  // Provides information about a custom vocabulary.
 12296  type VocabularyInfo struct {
 12297  	_ struct{} `type:"structure"`
 12298  
 12299  	// The language code of the vocabulary entries.
 12300  	LanguageCode *string `type:"string" enum:"LanguageCode"`
 12301  
 12302  	// The date and time that the vocabulary was last modified.
 12303  	LastModifiedTime *time.Time `type:"timestamp"`
 12304  
 12305  	// The name of the vocabulary.
 12306  	VocabularyName *string `min:"1" type:"string"`
 12307  
 12308  	// The processing state of the vocabulary. If the state is READY you can use
 12309  	// the vocabulary in a StartTranscriptionJob request.
 12310  	VocabularyState *string `type:"string" enum:"VocabularyState"`
 12311  }
 12312  
 12313  // String returns the string representation.
 12314  //
 12315  // API parameter values that are decorated as "sensitive" in the API will not
 12316  // be included in the string output. The member name will be present, but the
 12317  // value will be replaced with "sensitive".
 12318  func (s VocabularyInfo) String() string {
 12319  	return awsutil.Prettify(s)
 12320  }
 12321  
 12322  // GoString returns the string representation.
 12323  //
 12324  // API parameter values that are decorated as "sensitive" in the API will not
 12325  // be included in the string output. The member name will be present, but the
 12326  // value will be replaced with "sensitive".
 12327  func (s VocabularyInfo) GoString() string {
 12328  	return s.String()
 12329  }
 12330  
 12331  // SetLanguageCode sets the LanguageCode field's value.
 12332  func (s *VocabularyInfo) SetLanguageCode(v string) *VocabularyInfo {
 12333  	s.LanguageCode = &v
 12334  	return s
 12335  }
 12336  
 12337  // SetLastModifiedTime sets the LastModifiedTime field's value.
 12338  func (s *VocabularyInfo) SetLastModifiedTime(v time.Time) *VocabularyInfo {
 12339  	s.LastModifiedTime = &v
 12340  	return s
 12341  }
 12342  
 12343  // SetVocabularyName sets the VocabularyName field's value.
 12344  func (s *VocabularyInfo) SetVocabularyName(v string) *VocabularyInfo {
 12345  	s.VocabularyName = &v
 12346  	return s
 12347  }
 12348  
 12349  // SetVocabularyState sets the VocabularyState field's value.
 12350  func (s *VocabularyInfo) SetVocabularyState(v string) *VocabularyInfo {
 12351  	s.VocabularyState = &v
 12352  	return s
 12353  }
 12354  
 12355  const (
 12356  	// BaseModelNameNarrowBand is a BaseModelName enum value
 12357  	BaseModelNameNarrowBand = "NarrowBand"
 12358  
 12359  	// BaseModelNameWideBand is a BaseModelName enum value
 12360  	BaseModelNameWideBand = "WideBand"
 12361  )
 12362  
 12363  // BaseModelName_Values returns all elements of the BaseModelName enum
 12364  func BaseModelName_Values() []string {
 12365  	return []string{
 12366  		BaseModelNameNarrowBand,
 12367  		BaseModelNameWideBand,
 12368  	}
 12369  }
 12370  
 12371  const (
 12372  	// CLMLanguageCodeEnUs is a CLMLanguageCode enum value
 12373  	CLMLanguageCodeEnUs = "en-US"
 12374  
 12375  	// CLMLanguageCodeHiIn is a CLMLanguageCode enum value
 12376  	CLMLanguageCodeHiIn = "hi-IN"
 12377  
 12378  	// CLMLanguageCodeEsUs is a CLMLanguageCode enum value
 12379  	CLMLanguageCodeEsUs = "es-US"
 12380  
 12381  	// CLMLanguageCodeEnGb is a CLMLanguageCode enum value
 12382  	CLMLanguageCodeEnGb = "en-GB"
 12383  
 12384  	// CLMLanguageCodeEnAu is a CLMLanguageCode enum value
 12385  	CLMLanguageCodeEnAu = "en-AU"
 12386  )
 12387  
 12388  // CLMLanguageCode_Values returns all elements of the CLMLanguageCode enum
 12389  func CLMLanguageCode_Values() []string {
 12390  	return []string{
 12391  		CLMLanguageCodeEnUs,
 12392  		CLMLanguageCodeHiIn,
 12393  		CLMLanguageCodeEsUs,
 12394  		CLMLanguageCodeEnGb,
 12395  		CLMLanguageCodeEnAu,
 12396  	}
 12397  }
 12398  
 12399  const (
 12400  	// CallAnalyticsJobStatusQueued is a CallAnalyticsJobStatus enum value
 12401  	CallAnalyticsJobStatusQueued = "QUEUED"
 12402  
 12403  	// CallAnalyticsJobStatusInProgress is a CallAnalyticsJobStatus enum value
 12404  	CallAnalyticsJobStatusInProgress = "IN_PROGRESS"
 12405  
 12406  	// CallAnalyticsJobStatusFailed is a CallAnalyticsJobStatus enum value
 12407  	CallAnalyticsJobStatusFailed = "FAILED"
 12408  
 12409  	// CallAnalyticsJobStatusCompleted is a CallAnalyticsJobStatus enum value
 12410  	CallAnalyticsJobStatusCompleted = "COMPLETED"
 12411  )
 12412  
 12413  // CallAnalyticsJobStatus_Values returns all elements of the CallAnalyticsJobStatus enum
 12414  func CallAnalyticsJobStatus_Values() []string {
 12415  	return []string{
 12416  		CallAnalyticsJobStatusQueued,
 12417  		CallAnalyticsJobStatusInProgress,
 12418  		CallAnalyticsJobStatusFailed,
 12419  		CallAnalyticsJobStatusCompleted,
 12420  	}
 12421  }
 12422  
 12423  const (
 12424  	// LanguageCodeAfZa is a LanguageCode enum value
 12425  	LanguageCodeAfZa = "af-ZA"
 12426  
 12427  	// LanguageCodeArAe is a LanguageCode enum value
 12428  	LanguageCodeArAe = "ar-AE"
 12429  
 12430  	// LanguageCodeArSa is a LanguageCode enum value
 12431  	LanguageCodeArSa = "ar-SA"
 12432  
 12433  	// LanguageCodeCyGb is a LanguageCode enum value
 12434  	LanguageCodeCyGb = "cy-GB"
 12435  
 12436  	// LanguageCodeDaDk is a LanguageCode enum value
 12437  	LanguageCodeDaDk = "da-DK"
 12438  
 12439  	// LanguageCodeDeCh is a LanguageCode enum value
 12440  	LanguageCodeDeCh = "de-CH"
 12441  
 12442  	// LanguageCodeDeDe is a LanguageCode enum value
 12443  	LanguageCodeDeDe = "de-DE"
 12444  
 12445  	// LanguageCodeEnAb is a LanguageCode enum value
 12446  	LanguageCodeEnAb = "en-AB"
 12447  
 12448  	// LanguageCodeEnAu is a LanguageCode enum value
 12449  	LanguageCodeEnAu = "en-AU"
 12450  
 12451  	// LanguageCodeEnGb is a LanguageCode enum value
 12452  	LanguageCodeEnGb = "en-GB"
 12453  
 12454  	// LanguageCodeEnIe is a LanguageCode enum value
 12455  	LanguageCodeEnIe = "en-IE"
 12456  
 12457  	// LanguageCodeEnIn is a LanguageCode enum value
 12458  	LanguageCodeEnIn = "en-IN"
 12459  
 12460  	// LanguageCodeEnUs is a LanguageCode enum value
 12461  	LanguageCodeEnUs = "en-US"
 12462  
 12463  	// LanguageCodeEnWl is a LanguageCode enum value
 12464  	LanguageCodeEnWl = "en-WL"
 12465  
 12466  	// LanguageCodeEsEs is a LanguageCode enum value
 12467  	LanguageCodeEsEs = "es-ES"
 12468  
 12469  	// LanguageCodeEsUs is a LanguageCode enum value
 12470  	LanguageCodeEsUs = "es-US"
 12471  
 12472  	// LanguageCodeFaIr is a LanguageCode enum value
 12473  	LanguageCodeFaIr = "fa-IR"
 12474  
 12475  	// LanguageCodeFrCa is a LanguageCode enum value
 12476  	LanguageCodeFrCa = "fr-CA"
 12477  
 12478  	// LanguageCodeFrFr is a LanguageCode enum value
 12479  	LanguageCodeFrFr = "fr-FR"
 12480  
 12481  	// LanguageCodeGaIe is a LanguageCode enum value
 12482  	LanguageCodeGaIe = "ga-IE"
 12483  
 12484  	// LanguageCodeGdGb is a LanguageCode enum value
 12485  	LanguageCodeGdGb = "gd-GB"
 12486  
 12487  	// LanguageCodeHeIl is a LanguageCode enum value
 12488  	LanguageCodeHeIl = "he-IL"
 12489  
 12490  	// LanguageCodeHiIn is a LanguageCode enum value
 12491  	LanguageCodeHiIn = "hi-IN"
 12492  
 12493  	// LanguageCodeIdId is a LanguageCode enum value
 12494  	LanguageCodeIdId = "id-ID"
 12495  
 12496  	// LanguageCodeItIt is a LanguageCode enum value
 12497  	LanguageCodeItIt = "it-IT"
 12498  
 12499  	// LanguageCodeJaJp is a LanguageCode enum value
 12500  	LanguageCodeJaJp = "ja-JP"
 12501  
 12502  	// LanguageCodeKoKr is a LanguageCode enum value
 12503  	LanguageCodeKoKr = "ko-KR"
 12504  
 12505  	// LanguageCodeMsMy is a LanguageCode enum value
 12506  	LanguageCodeMsMy = "ms-MY"
 12507  
 12508  	// LanguageCodeNlNl is a LanguageCode enum value
 12509  	LanguageCodeNlNl = "nl-NL"
 12510  
 12511  	// LanguageCodePtBr is a LanguageCode enum value
 12512  	LanguageCodePtBr = "pt-BR"
 12513  
 12514  	// LanguageCodePtPt is a LanguageCode enum value
 12515  	LanguageCodePtPt = "pt-PT"
 12516  
 12517  	// LanguageCodeRuRu is a LanguageCode enum value
 12518  	LanguageCodeRuRu = "ru-RU"
 12519  
 12520  	// LanguageCodeTaIn is a LanguageCode enum value
 12521  	LanguageCodeTaIn = "ta-IN"
 12522  
 12523  	// LanguageCodeTeIn is a LanguageCode enum value
 12524  	LanguageCodeTeIn = "te-IN"
 12525  
 12526  	// LanguageCodeTrTr is a LanguageCode enum value
 12527  	LanguageCodeTrTr = "tr-TR"
 12528  
 12529  	// LanguageCodeZhCn is a LanguageCode enum value
 12530  	LanguageCodeZhCn = "zh-CN"
 12531  
 12532  	// LanguageCodeZhTw is a LanguageCode enum value
 12533  	LanguageCodeZhTw = "zh-TW"
 12534  
 12535  	// LanguageCodeThTh is a LanguageCode enum value
 12536  	LanguageCodeThTh = "th-TH"
 12537  
 12538  	// LanguageCodeEnZa is a LanguageCode enum value
 12539  	LanguageCodeEnZa = "en-ZA"
 12540  
 12541  	// LanguageCodeEnNz is a LanguageCode enum value
 12542  	LanguageCodeEnNz = "en-NZ"
 12543  )
 12544  
 12545  // LanguageCode_Values returns all elements of the LanguageCode enum
 12546  func LanguageCode_Values() []string {
 12547  	return []string{
 12548  		LanguageCodeAfZa,
 12549  		LanguageCodeArAe,
 12550  		LanguageCodeArSa,
 12551  		LanguageCodeCyGb,
 12552  		LanguageCodeDaDk,
 12553  		LanguageCodeDeCh,
 12554  		LanguageCodeDeDe,
 12555  		LanguageCodeEnAb,
 12556  		LanguageCodeEnAu,
 12557  		LanguageCodeEnGb,
 12558  		LanguageCodeEnIe,
 12559  		LanguageCodeEnIn,
 12560  		LanguageCodeEnUs,
 12561  		LanguageCodeEnWl,
 12562  		LanguageCodeEsEs,
 12563  		LanguageCodeEsUs,
 12564  		LanguageCodeFaIr,
 12565  		LanguageCodeFrCa,
 12566  		LanguageCodeFrFr,
 12567  		LanguageCodeGaIe,
 12568  		LanguageCodeGdGb,
 12569  		LanguageCodeHeIl,
 12570  		LanguageCodeHiIn,
 12571  		LanguageCodeIdId,
 12572  		LanguageCodeItIt,
 12573  		LanguageCodeJaJp,
 12574  		LanguageCodeKoKr,
 12575  		LanguageCodeMsMy,
 12576  		LanguageCodeNlNl,
 12577  		LanguageCodePtBr,
 12578  		LanguageCodePtPt,
 12579  		LanguageCodeRuRu,
 12580  		LanguageCodeTaIn,
 12581  		LanguageCodeTeIn,
 12582  		LanguageCodeTrTr,
 12583  		LanguageCodeZhCn,
 12584  		LanguageCodeZhTw,
 12585  		LanguageCodeThTh,
 12586  		LanguageCodeEnZa,
 12587  		LanguageCodeEnNz,
 12588  	}
 12589  }
 12590  
 12591  const (
 12592  	// MediaFormatMp3 is a MediaFormat enum value
 12593  	MediaFormatMp3 = "mp3"
 12594  
 12595  	// MediaFormatMp4 is a MediaFormat enum value
 12596  	MediaFormatMp4 = "mp4"
 12597  
 12598  	// MediaFormatWav is a MediaFormat enum value
 12599  	MediaFormatWav = "wav"
 12600  
 12601  	// MediaFormatFlac is a MediaFormat enum value
 12602  	MediaFormatFlac = "flac"
 12603  
 12604  	// MediaFormatOgg is a MediaFormat enum value
 12605  	MediaFormatOgg = "ogg"
 12606  
 12607  	// MediaFormatAmr is a MediaFormat enum value
 12608  	MediaFormatAmr = "amr"
 12609  
 12610  	// MediaFormatWebm is a MediaFormat enum value
 12611  	MediaFormatWebm = "webm"
 12612  )
 12613  
 12614  // MediaFormat_Values returns all elements of the MediaFormat enum
 12615  func MediaFormat_Values() []string {
 12616  	return []string{
 12617  		MediaFormatMp3,
 12618  		MediaFormatMp4,
 12619  		MediaFormatWav,
 12620  		MediaFormatFlac,
 12621  		MediaFormatOgg,
 12622  		MediaFormatAmr,
 12623  		MediaFormatWebm,
 12624  	}
 12625  }
 12626  
 12627  const (
 12628  	// MedicalContentIdentificationTypePhi is a MedicalContentIdentificationType enum value
 12629  	MedicalContentIdentificationTypePhi = "PHI"
 12630  )
 12631  
 12632  // MedicalContentIdentificationType_Values returns all elements of the MedicalContentIdentificationType enum
 12633  func MedicalContentIdentificationType_Values() []string {
 12634  	return []string{
 12635  		MedicalContentIdentificationTypePhi,
 12636  	}
 12637  }
 12638  
 12639  const (
 12640  	// ModelStatusInProgress is a ModelStatus enum value
 12641  	ModelStatusInProgress = "IN_PROGRESS"
 12642  
 12643  	// ModelStatusFailed is a ModelStatus enum value
 12644  	ModelStatusFailed = "FAILED"
 12645  
 12646  	// ModelStatusCompleted is a ModelStatus enum value
 12647  	ModelStatusCompleted = "COMPLETED"
 12648  )
 12649  
 12650  // ModelStatus_Values returns all elements of the ModelStatus enum
 12651  func ModelStatus_Values() []string {
 12652  	return []string{
 12653  		ModelStatusInProgress,
 12654  		ModelStatusFailed,
 12655  		ModelStatusCompleted,
 12656  	}
 12657  }
 12658  
 12659  const (
 12660  	// OutputLocationTypeCustomerBucket is a OutputLocationType enum value
 12661  	OutputLocationTypeCustomerBucket = "CUSTOMER_BUCKET"
 12662  
 12663  	// OutputLocationTypeServiceBucket is a OutputLocationType enum value
 12664  	OutputLocationTypeServiceBucket = "SERVICE_BUCKET"
 12665  )
 12666  
 12667  // OutputLocationType_Values returns all elements of the OutputLocationType enum
 12668  func OutputLocationType_Values() []string {
 12669  	return []string{
 12670  		OutputLocationTypeCustomerBucket,
 12671  		OutputLocationTypeServiceBucket,
 12672  	}
 12673  }
 12674  
 12675  const (
 12676  	// ParticipantRoleAgent is a ParticipantRole enum value
 12677  	ParticipantRoleAgent = "AGENT"
 12678  
 12679  	// ParticipantRoleCustomer is a ParticipantRole enum value
 12680  	ParticipantRoleCustomer = "CUSTOMER"
 12681  )
 12682  
 12683  // ParticipantRole_Values returns all elements of the ParticipantRole enum
 12684  func ParticipantRole_Values() []string {
 12685  	return []string{
 12686  		ParticipantRoleAgent,
 12687  		ParticipantRoleCustomer,
 12688  	}
 12689  }
 12690  
 12691  const (
 12692  	// RedactionOutputRedacted is a RedactionOutput enum value
 12693  	RedactionOutputRedacted = "redacted"
 12694  
 12695  	// RedactionOutputRedactedAndUnredacted is a RedactionOutput enum value
 12696  	RedactionOutputRedactedAndUnredacted = "redacted_and_unredacted"
 12697  )
 12698  
 12699  // RedactionOutput_Values returns all elements of the RedactionOutput enum
 12700  func RedactionOutput_Values() []string {
 12701  	return []string{
 12702  		RedactionOutputRedacted,
 12703  		RedactionOutputRedactedAndUnredacted,
 12704  	}
 12705  }
 12706  
 12707  const (
 12708  	// RedactionTypePii is a RedactionType enum value
 12709  	RedactionTypePii = "PII"
 12710  )
 12711  
 12712  // RedactionType_Values returns all elements of the RedactionType enum
 12713  func RedactionType_Values() []string {
 12714  	return []string{
 12715  		RedactionTypePii,
 12716  	}
 12717  }
 12718  
 12719  const (
 12720  	// SentimentValuePositive is a SentimentValue enum value
 12721  	SentimentValuePositive = "POSITIVE"
 12722  
 12723  	// SentimentValueNegative is a SentimentValue enum value
 12724  	SentimentValueNegative = "NEGATIVE"
 12725  
 12726  	// SentimentValueNeutral is a SentimentValue enum value
 12727  	SentimentValueNeutral = "NEUTRAL"
 12728  
 12729  	// SentimentValueMixed is a SentimentValue enum value
 12730  	SentimentValueMixed = "MIXED"
 12731  )
 12732  
 12733  // SentimentValue_Values returns all elements of the SentimentValue enum
 12734  func SentimentValue_Values() []string {
 12735  	return []string{
 12736  		SentimentValuePositive,
 12737  		SentimentValueNegative,
 12738  		SentimentValueNeutral,
 12739  		SentimentValueMixed,
 12740  	}
 12741  }
 12742  
 12743  const (
 12744  	// SpecialtyPrimarycare is a Specialty enum value
 12745  	SpecialtyPrimarycare = "PRIMARYCARE"
 12746  )
 12747  
 12748  // Specialty_Values returns all elements of the Specialty enum
 12749  func Specialty_Values() []string {
 12750  	return []string{
 12751  		SpecialtyPrimarycare,
 12752  	}
 12753  }
 12754  
 12755  const (
 12756  	// SubtitleFormatVtt is a SubtitleFormat enum value
 12757  	SubtitleFormatVtt = "vtt"
 12758  
 12759  	// SubtitleFormatSrt is a SubtitleFormat enum value
 12760  	SubtitleFormatSrt = "srt"
 12761  )
 12762  
 12763  // SubtitleFormat_Values returns all elements of the SubtitleFormat enum
 12764  func SubtitleFormat_Values() []string {
 12765  	return []string{
 12766  		SubtitleFormatVtt,
 12767  		SubtitleFormatSrt,
 12768  	}
 12769  }
 12770  
 12771  const (
 12772  	// TranscriptFilterTypeExact is a TranscriptFilterType enum value
 12773  	TranscriptFilterTypeExact = "EXACT"
 12774  )
 12775  
 12776  // TranscriptFilterType_Values returns all elements of the TranscriptFilterType enum
 12777  func TranscriptFilterType_Values() []string {
 12778  	return []string{
 12779  		TranscriptFilterTypeExact,
 12780  	}
 12781  }
 12782  
 12783  const (
 12784  	// TranscriptionJobStatusQueued is a TranscriptionJobStatus enum value
 12785  	TranscriptionJobStatusQueued = "QUEUED"
 12786  
 12787  	// TranscriptionJobStatusInProgress is a TranscriptionJobStatus enum value
 12788  	TranscriptionJobStatusInProgress = "IN_PROGRESS"
 12789  
 12790  	// TranscriptionJobStatusFailed is a TranscriptionJobStatus enum value
 12791  	TranscriptionJobStatusFailed = "FAILED"
 12792  
 12793  	// TranscriptionJobStatusCompleted is a TranscriptionJobStatus enum value
 12794  	TranscriptionJobStatusCompleted = "COMPLETED"
 12795  )
 12796  
 12797  // TranscriptionJobStatus_Values returns all elements of the TranscriptionJobStatus enum
 12798  func TranscriptionJobStatus_Values() []string {
 12799  	return []string{
 12800  		TranscriptionJobStatusQueued,
 12801  		TranscriptionJobStatusInProgress,
 12802  		TranscriptionJobStatusFailed,
 12803  		TranscriptionJobStatusCompleted,
 12804  	}
 12805  }
 12806  
 12807  const (
 12808  	// TypeConversation is a Type enum value
 12809  	TypeConversation = "CONVERSATION"
 12810  
 12811  	// TypeDictation is a Type enum value
 12812  	TypeDictation = "DICTATION"
 12813  )
 12814  
 12815  // Type_Values returns all elements of the Type enum
 12816  func Type_Values() []string {
 12817  	return []string{
 12818  		TypeConversation,
 12819  		TypeDictation,
 12820  	}
 12821  }
 12822  
 12823  const (
 12824  	// VocabularyFilterMethodRemove is a VocabularyFilterMethod enum value
 12825  	VocabularyFilterMethodRemove = "remove"
 12826  
 12827  	// VocabularyFilterMethodMask is a VocabularyFilterMethod enum value
 12828  	VocabularyFilterMethodMask = "mask"
 12829  
 12830  	// VocabularyFilterMethodTag is a VocabularyFilterMethod enum value
 12831  	VocabularyFilterMethodTag = "tag"
 12832  )
 12833  
 12834  // VocabularyFilterMethod_Values returns all elements of the VocabularyFilterMethod enum
 12835  func VocabularyFilterMethod_Values() []string {
 12836  	return []string{
 12837  		VocabularyFilterMethodRemove,
 12838  		VocabularyFilterMethodMask,
 12839  		VocabularyFilterMethodTag,
 12840  	}
 12841  }
 12842  
 12843  const (
 12844  	// VocabularyStatePending is a VocabularyState enum value
 12845  	VocabularyStatePending = "PENDING"
 12846  
 12847  	// VocabularyStateReady is a VocabularyState enum value
 12848  	VocabularyStateReady = "READY"
 12849  
 12850  	// VocabularyStateFailed is a VocabularyState enum value
 12851  	VocabularyStateFailed = "FAILED"
 12852  )
 12853  
 12854  // VocabularyState_Values returns all elements of the VocabularyState enum
 12855  func VocabularyState_Values() []string {
 12856  	return []string{
 12857  		VocabularyStatePending,
 12858  		VocabularyStateReady,
 12859  		VocabularyStateFailed,
 12860  	}
 12861  }