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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package connectwisdomservice
     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/restjson"
    14  )
    15  
    16  const opCreateAssistant = "CreateAssistant"
    17  
    18  // CreateAssistantRequest generates a "aws/request.Request" representing the
    19  // client's request for the CreateAssistant 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 CreateAssistant for more information on using the CreateAssistant
    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 CreateAssistantRequest method.
    34  //    req, resp := client.CreateAssistantRequest(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/wisdom-2020-10-19/CreateAssistant
    42  func (c *ConnectWisdomService) CreateAssistantRequest(input *CreateAssistantInput) (req *request.Request, output *CreateAssistantOutput) {
    43  	op := &request.Operation{
    44  		Name:       opCreateAssistant,
    45  		HTTPMethod: "POST",
    46  		HTTPPath:   "/assistants",
    47  	}
    48  
    49  	if input == nil {
    50  		input = &CreateAssistantInput{}
    51  	}
    52  
    53  	output = &CreateAssistantOutput{}
    54  	req = c.newRequest(op, input, output)
    55  	return
    56  }
    57  
    58  // CreateAssistant API operation for Amazon Connect Wisdom Service.
    59  //
    60  // Creates an Amazon Connect Wisdom assistant.
    61  //
    62  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    63  // with awserr.Error's Code and Message methods to get detailed information about
    64  // the error.
    65  //
    66  // See the AWS API reference guide for Amazon Connect Wisdom Service's
    67  // API operation CreateAssistant for usage and error information.
    68  //
    69  // Returned Error Types:
    70  //   * ConflictException
    71  //   The request could not be processed because of conflict in the current state
    72  //   of the resource. For example, if you're using a Create API (such as CreateAssistant)
    73  //   that accepts name, a conflicting resource (usually with the same name) is
    74  //   being created or mutated.
    75  //
    76  //   * ValidationException
    77  //   The input fails to satisfy the constraints specified by an AWS service.
    78  //
    79  //   * ServiceQuotaExceededException
    80  //   You've exceeded your service quota. To perform the requested action, remove
    81  //   some of the relevant resources, or use service quotas to request a service
    82  //   quota increase.
    83  //
    84  //   * AccessDeniedException
    85  //   You do not have sufficient access to perform this action.
    86  //
    87  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateAssistant
    88  func (c *ConnectWisdomService) CreateAssistant(input *CreateAssistantInput) (*CreateAssistantOutput, error) {
    89  	req, out := c.CreateAssistantRequest(input)
    90  	return out, req.Send()
    91  }
    92  
    93  // CreateAssistantWithContext is the same as CreateAssistant with the addition of
    94  // the ability to pass a context and additional request options.
    95  //
    96  // See CreateAssistant for details on how to use this API operation.
    97  //
    98  // The context must be non-nil and will be used for request cancellation. If
    99  // the context is nil a panic will occur. In the future the SDK may create
   100  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   101  // for more information on using Contexts.
   102  func (c *ConnectWisdomService) CreateAssistantWithContext(ctx aws.Context, input *CreateAssistantInput, opts ...request.Option) (*CreateAssistantOutput, error) {
   103  	req, out := c.CreateAssistantRequest(input)
   104  	req.SetContext(ctx)
   105  	req.ApplyOptions(opts...)
   106  	return out, req.Send()
   107  }
   108  
   109  const opCreateAssistantAssociation = "CreateAssistantAssociation"
   110  
   111  // CreateAssistantAssociationRequest generates a "aws/request.Request" representing the
   112  // client's request for the CreateAssistantAssociation operation. The "output" return
   113  // value will be populated with the request's response once the request completes
   114  // successfully.
   115  //
   116  // Use "Send" method on the returned Request to send the API call to the service.
   117  // the "output" return value is not valid until after Send returns without error.
   118  //
   119  // See CreateAssistantAssociation for more information on using the CreateAssistantAssociation
   120  // API call, and error handling.
   121  //
   122  // This method is useful when you want to inject custom logic or configuration
   123  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   124  //
   125  //
   126  //    // Example sending a request using the CreateAssistantAssociationRequest method.
   127  //    req, resp := client.CreateAssistantAssociationRequest(params)
   128  //
   129  //    err := req.Send()
   130  //    if err == nil { // resp is now filled
   131  //        fmt.Println(resp)
   132  //    }
   133  //
   134  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateAssistantAssociation
   135  func (c *ConnectWisdomService) CreateAssistantAssociationRequest(input *CreateAssistantAssociationInput) (req *request.Request, output *CreateAssistantAssociationOutput) {
   136  	op := &request.Operation{
   137  		Name:       opCreateAssistantAssociation,
   138  		HTTPMethod: "POST",
   139  		HTTPPath:   "/assistants/{assistantId}/associations",
   140  	}
   141  
   142  	if input == nil {
   143  		input = &CreateAssistantAssociationInput{}
   144  	}
   145  
   146  	output = &CreateAssistantAssociationOutput{}
   147  	req = c.newRequest(op, input, output)
   148  	return
   149  }
   150  
   151  // CreateAssistantAssociation API operation for Amazon Connect Wisdom Service.
   152  //
   153  // Creates an association between an Amazon Connect Wisdom assistant and another
   154  // resource. Currently, the only supported association is with a knowledge base.
   155  // An assistant can have only a single association.
   156  //
   157  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   158  // with awserr.Error's Code and Message methods to get detailed information about
   159  // the error.
   160  //
   161  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   162  // API operation CreateAssistantAssociation for usage and error information.
   163  //
   164  // Returned Error Types:
   165  //   * ConflictException
   166  //   The request could not be processed because of conflict in the current state
   167  //   of the resource. For example, if you're using a Create API (such as CreateAssistant)
   168  //   that accepts name, a conflicting resource (usually with the same name) is
   169  //   being created or mutated.
   170  //
   171  //   * ValidationException
   172  //   The input fails to satisfy the constraints specified by an AWS service.
   173  //
   174  //   * ServiceQuotaExceededException
   175  //   You've exceeded your service quota. To perform the requested action, remove
   176  //   some of the relevant resources, or use service quotas to request a service
   177  //   quota increase.
   178  //
   179  //   * AccessDeniedException
   180  //   You do not have sufficient access to perform this action.
   181  //
   182  //   * ResourceNotFoundException
   183  //   The specified resource does not exist.
   184  //
   185  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateAssistantAssociation
   186  func (c *ConnectWisdomService) CreateAssistantAssociation(input *CreateAssistantAssociationInput) (*CreateAssistantAssociationOutput, error) {
   187  	req, out := c.CreateAssistantAssociationRequest(input)
   188  	return out, req.Send()
   189  }
   190  
   191  // CreateAssistantAssociationWithContext is the same as CreateAssistantAssociation with the addition of
   192  // the ability to pass a context and additional request options.
   193  //
   194  // See CreateAssistantAssociation for details on how to use this API operation.
   195  //
   196  // The context must be non-nil and will be used for request cancellation. If
   197  // the context is nil a panic will occur. In the future the SDK may create
   198  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   199  // for more information on using Contexts.
   200  func (c *ConnectWisdomService) CreateAssistantAssociationWithContext(ctx aws.Context, input *CreateAssistantAssociationInput, opts ...request.Option) (*CreateAssistantAssociationOutput, error) {
   201  	req, out := c.CreateAssistantAssociationRequest(input)
   202  	req.SetContext(ctx)
   203  	req.ApplyOptions(opts...)
   204  	return out, req.Send()
   205  }
   206  
   207  const opCreateContent = "CreateContent"
   208  
   209  // CreateContentRequest generates a "aws/request.Request" representing the
   210  // client's request for the CreateContent operation. The "output" return
   211  // value will be populated with the request's response once the request completes
   212  // successfully.
   213  //
   214  // Use "Send" method on the returned Request to send the API call to the service.
   215  // the "output" return value is not valid until after Send returns without error.
   216  //
   217  // See CreateContent for more information on using the CreateContent
   218  // API call, and error handling.
   219  //
   220  // This method is useful when you want to inject custom logic or configuration
   221  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   222  //
   223  //
   224  //    // Example sending a request using the CreateContentRequest method.
   225  //    req, resp := client.CreateContentRequest(params)
   226  //
   227  //    err := req.Send()
   228  //    if err == nil { // resp is now filled
   229  //        fmt.Println(resp)
   230  //    }
   231  //
   232  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateContent
   233  func (c *ConnectWisdomService) CreateContentRequest(input *CreateContentInput) (req *request.Request, output *CreateContentOutput) {
   234  	op := &request.Operation{
   235  		Name:       opCreateContent,
   236  		HTTPMethod: "POST",
   237  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/contents",
   238  	}
   239  
   240  	if input == nil {
   241  		input = &CreateContentInput{}
   242  	}
   243  
   244  	output = &CreateContentOutput{}
   245  	req = c.newRequest(op, input, output)
   246  	return
   247  }
   248  
   249  // CreateContent API operation for Amazon Connect Wisdom Service.
   250  //
   251  // Creates Wisdom content. Before to calling this API, use StartContentUpload
   252  // (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html)
   253  // to upload an asset.
   254  //
   255  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   256  // with awserr.Error's Code and Message methods to get detailed information about
   257  // the error.
   258  //
   259  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   260  // API operation CreateContent for usage and error information.
   261  //
   262  // Returned Error Types:
   263  //   * ConflictException
   264  //   The request could not be processed because of conflict in the current state
   265  //   of the resource. For example, if you're using a Create API (such as CreateAssistant)
   266  //   that accepts name, a conflicting resource (usually with the same name) is
   267  //   being created or mutated.
   268  //
   269  //   * ValidationException
   270  //   The input fails to satisfy the constraints specified by an AWS service.
   271  //
   272  //   * ServiceQuotaExceededException
   273  //   You've exceeded your service quota. To perform the requested action, remove
   274  //   some of the relevant resources, or use service quotas to request a service
   275  //   quota increase.
   276  //
   277  //   * AccessDeniedException
   278  //   You do not have sufficient access to perform this action.
   279  //
   280  //   * ResourceNotFoundException
   281  //   The specified resource does not exist.
   282  //
   283  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateContent
   284  func (c *ConnectWisdomService) CreateContent(input *CreateContentInput) (*CreateContentOutput, error) {
   285  	req, out := c.CreateContentRequest(input)
   286  	return out, req.Send()
   287  }
   288  
   289  // CreateContentWithContext is the same as CreateContent with the addition of
   290  // the ability to pass a context and additional request options.
   291  //
   292  // See CreateContent for details on how to use this API operation.
   293  //
   294  // The context must be non-nil and will be used for request cancellation. If
   295  // the context is nil a panic will occur. In the future the SDK may create
   296  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   297  // for more information on using Contexts.
   298  func (c *ConnectWisdomService) CreateContentWithContext(ctx aws.Context, input *CreateContentInput, opts ...request.Option) (*CreateContentOutput, error) {
   299  	req, out := c.CreateContentRequest(input)
   300  	req.SetContext(ctx)
   301  	req.ApplyOptions(opts...)
   302  	return out, req.Send()
   303  }
   304  
   305  const opCreateKnowledgeBase = "CreateKnowledgeBase"
   306  
   307  // CreateKnowledgeBaseRequest generates a "aws/request.Request" representing the
   308  // client's request for the CreateKnowledgeBase operation. The "output" return
   309  // value will be populated with the request's response once the request completes
   310  // successfully.
   311  //
   312  // Use "Send" method on the returned Request to send the API call to the service.
   313  // the "output" return value is not valid until after Send returns without error.
   314  //
   315  // See CreateKnowledgeBase for more information on using the CreateKnowledgeBase
   316  // API call, and error handling.
   317  //
   318  // This method is useful when you want to inject custom logic or configuration
   319  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   320  //
   321  //
   322  //    // Example sending a request using the CreateKnowledgeBaseRequest method.
   323  //    req, resp := client.CreateKnowledgeBaseRequest(params)
   324  //
   325  //    err := req.Send()
   326  //    if err == nil { // resp is now filled
   327  //        fmt.Println(resp)
   328  //    }
   329  //
   330  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateKnowledgeBase
   331  func (c *ConnectWisdomService) CreateKnowledgeBaseRequest(input *CreateKnowledgeBaseInput) (req *request.Request, output *CreateKnowledgeBaseOutput) {
   332  	op := &request.Operation{
   333  		Name:       opCreateKnowledgeBase,
   334  		HTTPMethod: "POST",
   335  		HTTPPath:   "/knowledgeBases",
   336  	}
   337  
   338  	if input == nil {
   339  		input = &CreateKnowledgeBaseInput{}
   340  	}
   341  
   342  	output = &CreateKnowledgeBaseOutput{}
   343  	req = c.newRequest(op, input, output)
   344  	return
   345  }
   346  
   347  // CreateKnowledgeBase API operation for Amazon Connect Wisdom Service.
   348  //
   349  // Creates a knowledge base.
   350  //
   351  // When using this API, you cannot reuse Amazon AppIntegrations (https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html)
   352  // DataIntegrations with external knowledge bases such as Salesforce and ServiceNow.
   353  // If you do, you'll get an InvalidRequestException error.
   354  //
   355  //    <p>For example, you're programmatically managing your external knowledge
   356  //    base, and you want to add or remove one of the fields that is being ingested
   357  //    from Salesforce. Do the following:</p> <ol> <li> <p>Call <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_DeleteKnowledgeBase.html">DeleteKnowledgeBase</a>.</p>
   358  //    </li> <li> <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html">DeleteDataIntegration</a>.</p>
   359  //    </li> <li> <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
   360  //    to recreate the DataIntegration or a create different one.</p> </li> <li>
   361  //    <p>Call CreateKnowledgeBase.</p> </li> </ol> </note>
   362  //
   363  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   364  // with awserr.Error's Code and Message methods to get detailed information about
   365  // the error.
   366  //
   367  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   368  // API operation CreateKnowledgeBase for usage and error information.
   369  //
   370  // Returned Error Types:
   371  //   * ConflictException
   372  //   The request could not be processed because of conflict in the current state
   373  //   of the resource. For example, if you're using a Create API (such as CreateAssistant)
   374  //   that accepts name, a conflicting resource (usually with the same name) is
   375  //   being created or mutated.
   376  //
   377  //   * ValidationException
   378  //   The input fails to satisfy the constraints specified by an AWS service.
   379  //
   380  //   * ServiceQuotaExceededException
   381  //   You've exceeded your service quota. To perform the requested action, remove
   382  //   some of the relevant resources, or use service quotas to request a service
   383  //   quota increase.
   384  //
   385  //   * AccessDeniedException
   386  //   You do not have sufficient access to perform this action.
   387  //
   388  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateKnowledgeBase
   389  func (c *ConnectWisdomService) CreateKnowledgeBase(input *CreateKnowledgeBaseInput) (*CreateKnowledgeBaseOutput, error) {
   390  	req, out := c.CreateKnowledgeBaseRequest(input)
   391  	return out, req.Send()
   392  }
   393  
   394  // CreateKnowledgeBaseWithContext is the same as CreateKnowledgeBase with the addition of
   395  // the ability to pass a context and additional request options.
   396  //
   397  // See CreateKnowledgeBase for details on how to use this API operation.
   398  //
   399  // The context must be non-nil and will be used for request cancellation. If
   400  // the context is nil a panic will occur. In the future the SDK may create
   401  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   402  // for more information on using Contexts.
   403  func (c *ConnectWisdomService) CreateKnowledgeBaseWithContext(ctx aws.Context, input *CreateKnowledgeBaseInput, opts ...request.Option) (*CreateKnowledgeBaseOutput, error) {
   404  	req, out := c.CreateKnowledgeBaseRequest(input)
   405  	req.SetContext(ctx)
   406  	req.ApplyOptions(opts...)
   407  	return out, req.Send()
   408  }
   409  
   410  const opCreateSession = "CreateSession"
   411  
   412  // CreateSessionRequest generates a "aws/request.Request" representing the
   413  // client's request for the CreateSession operation. The "output" return
   414  // value will be populated with the request's response once the request completes
   415  // successfully.
   416  //
   417  // Use "Send" method on the returned Request to send the API call to the service.
   418  // the "output" return value is not valid until after Send returns without error.
   419  //
   420  // See CreateSession for more information on using the CreateSession
   421  // API call, and error handling.
   422  //
   423  // This method is useful when you want to inject custom logic or configuration
   424  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   425  //
   426  //
   427  //    // Example sending a request using the CreateSessionRequest method.
   428  //    req, resp := client.CreateSessionRequest(params)
   429  //
   430  //    err := req.Send()
   431  //    if err == nil { // resp is now filled
   432  //        fmt.Println(resp)
   433  //    }
   434  //
   435  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateSession
   436  func (c *ConnectWisdomService) CreateSessionRequest(input *CreateSessionInput) (req *request.Request, output *CreateSessionOutput) {
   437  	op := &request.Operation{
   438  		Name:       opCreateSession,
   439  		HTTPMethod: "POST",
   440  		HTTPPath:   "/assistants/{assistantId}/sessions",
   441  	}
   442  
   443  	if input == nil {
   444  		input = &CreateSessionInput{}
   445  	}
   446  
   447  	output = &CreateSessionOutput{}
   448  	req = c.newRequest(op, input, output)
   449  	return
   450  }
   451  
   452  // CreateSession API operation for Amazon Connect Wisdom Service.
   453  //
   454  // Creates a session. A session is a contextual container used for generating
   455  // recommendations. Amazon Connect creates a new Wisdom session for each contact
   456  // on which Wisdom is enabled.
   457  //
   458  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   459  // with awserr.Error's Code and Message methods to get detailed information about
   460  // the error.
   461  //
   462  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   463  // API operation CreateSession for usage and error information.
   464  //
   465  // Returned Error Types:
   466  //   * ConflictException
   467  //   The request could not be processed because of conflict in the current state
   468  //   of the resource. For example, if you're using a Create API (such as CreateAssistant)
   469  //   that accepts name, a conflicting resource (usually with the same name) is
   470  //   being created or mutated.
   471  //
   472  //   * ValidationException
   473  //   The input fails to satisfy the constraints specified by an AWS service.
   474  //
   475  //   * ResourceNotFoundException
   476  //   The specified resource does not exist.
   477  //
   478  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/CreateSession
   479  func (c *ConnectWisdomService) CreateSession(input *CreateSessionInput) (*CreateSessionOutput, error) {
   480  	req, out := c.CreateSessionRequest(input)
   481  	return out, req.Send()
   482  }
   483  
   484  // CreateSessionWithContext is the same as CreateSession with the addition of
   485  // the ability to pass a context and additional request options.
   486  //
   487  // See CreateSession for details on how to use this API operation.
   488  //
   489  // The context must be non-nil and will be used for request cancellation. If
   490  // the context is nil a panic will occur. In the future the SDK may create
   491  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   492  // for more information on using Contexts.
   493  func (c *ConnectWisdomService) CreateSessionWithContext(ctx aws.Context, input *CreateSessionInput, opts ...request.Option) (*CreateSessionOutput, error) {
   494  	req, out := c.CreateSessionRequest(input)
   495  	req.SetContext(ctx)
   496  	req.ApplyOptions(opts...)
   497  	return out, req.Send()
   498  }
   499  
   500  const opDeleteAssistant = "DeleteAssistant"
   501  
   502  // DeleteAssistantRequest generates a "aws/request.Request" representing the
   503  // client's request for the DeleteAssistant operation. The "output" return
   504  // value will be populated with the request's response once the request completes
   505  // successfully.
   506  //
   507  // Use "Send" method on the returned Request to send the API call to the service.
   508  // the "output" return value is not valid until after Send returns without error.
   509  //
   510  // See DeleteAssistant for more information on using the DeleteAssistant
   511  // API call, and error handling.
   512  //
   513  // This method is useful when you want to inject custom logic or configuration
   514  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   515  //
   516  //
   517  //    // Example sending a request using the DeleteAssistantRequest method.
   518  //    req, resp := client.DeleteAssistantRequest(params)
   519  //
   520  //    err := req.Send()
   521  //    if err == nil { // resp is now filled
   522  //        fmt.Println(resp)
   523  //    }
   524  //
   525  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteAssistant
   526  func (c *ConnectWisdomService) DeleteAssistantRequest(input *DeleteAssistantInput) (req *request.Request, output *DeleteAssistantOutput) {
   527  	op := &request.Operation{
   528  		Name:       opDeleteAssistant,
   529  		HTTPMethod: "DELETE",
   530  		HTTPPath:   "/assistants/{assistantId}",
   531  	}
   532  
   533  	if input == nil {
   534  		input = &DeleteAssistantInput{}
   535  	}
   536  
   537  	output = &DeleteAssistantOutput{}
   538  	req = c.newRequest(op, input, output)
   539  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   540  	return
   541  }
   542  
   543  // DeleteAssistant API operation for Amazon Connect Wisdom Service.
   544  //
   545  // Deletes an assistant.
   546  //
   547  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   548  // with awserr.Error's Code and Message methods to get detailed information about
   549  // the error.
   550  //
   551  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   552  // API operation DeleteAssistant for usage and error information.
   553  //
   554  // Returned Error Types:
   555  //   * ValidationException
   556  //   The input fails to satisfy the constraints specified by an AWS service.
   557  //
   558  //   * AccessDeniedException
   559  //   You do not have sufficient access to perform this action.
   560  //
   561  //   * ResourceNotFoundException
   562  //   The specified resource does not exist.
   563  //
   564  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteAssistant
   565  func (c *ConnectWisdomService) DeleteAssistant(input *DeleteAssistantInput) (*DeleteAssistantOutput, error) {
   566  	req, out := c.DeleteAssistantRequest(input)
   567  	return out, req.Send()
   568  }
   569  
   570  // DeleteAssistantWithContext is the same as DeleteAssistant with the addition of
   571  // the ability to pass a context and additional request options.
   572  //
   573  // See DeleteAssistant 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 *ConnectWisdomService) DeleteAssistantWithContext(ctx aws.Context, input *DeleteAssistantInput, opts ...request.Option) (*DeleteAssistantOutput, error) {
   580  	req, out := c.DeleteAssistantRequest(input)
   581  	req.SetContext(ctx)
   582  	req.ApplyOptions(opts...)
   583  	return out, req.Send()
   584  }
   585  
   586  const opDeleteAssistantAssociation = "DeleteAssistantAssociation"
   587  
   588  // DeleteAssistantAssociationRequest generates a "aws/request.Request" representing the
   589  // client's request for the DeleteAssistantAssociation 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 DeleteAssistantAssociation for more information on using the DeleteAssistantAssociation
   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 DeleteAssistantAssociationRequest method.
   604  //    req, resp := client.DeleteAssistantAssociationRequest(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/wisdom-2020-10-19/DeleteAssistantAssociation
   612  func (c *ConnectWisdomService) DeleteAssistantAssociationRequest(input *DeleteAssistantAssociationInput) (req *request.Request, output *DeleteAssistantAssociationOutput) {
   613  	op := &request.Operation{
   614  		Name:       opDeleteAssistantAssociation,
   615  		HTTPMethod: "DELETE",
   616  		HTTPPath:   "/assistants/{assistantId}/associations/{assistantAssociationId}",
   617  	}
   618  
   619  	if input == nil {
   620  		input = &DeleteAssistantAssociationInput{}
   621  	}
   622  
   623  	output = &DeleteAssistantAssociationOutput{}
   624  	req = c.newRequest(op, input, output)
   625  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   626  	return
   627  }
   628  
   629  // DeleteAssistantAssociation API operation for Amazon Connect Wisdom Service.
   630  //
   631  // Deletes an assistant association.
   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 Connect Wisdom Service's
   638  // API operation DeleteAssistantAssociation for usage and error information.
   639  //
   640  // Returned Error Types:
   641  //   * ValidationException
   642  //   The input fails to satisfy the constraints specified by an AWS service.
   643  //
   644  //   * AccessDeniedException
   645  //   You do not have sufficient access to perform this action.
   646  //
   647  //   * ResourceNotFoundException
   648  //   The specified resource does not exist.
   649  //
   650  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteAssistantAssociation
   651  func (c *ConnectWisdomService) DeleteAssistantAssociation(input *DeleteAssistantAssociationInput) (*DeleteAssistantAssociationOutput, error) {
   652  	req, out := c.DeleteAssistantAssociationRequest(input)
   653  	return out, req.Send()
   654  }
   655  
   656  // DeleteAssistantAssociationWithContext is the same as DeleteAssistantAssociation with the addition of
   657  // the ability to pass a context and additional request options.
   658  //
   659  // See DeleteAssistantAssociation for details on how to use this API operation.
   660  //
   661  // The context must be non-nil and will be used for request cancellation. If
   662  // the context is nil a panic will occur. In the future the SDK may create
   663  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   664  // for more information on using Contexts.
   665  func (c *ConnectWisdomService) DeleteAssistantAssociationWithContext(ctx aws.Context, input *DeleteAssistantAssociationInput, opts ...request.Option) (*DeleteAssistantAssociationOutput, error) {
   666  	req, out := c.DeleteAssistantAssociationRequest(input)
   667  	req.SetContext(ctx)
   668  	req.ApplyOptions(opts...)
   669  	return out, req.Send()
   670  }
   671  
   672  const opDeleteContent = "DeleteContent"
   673  
   674  // DeleteContentRequest generates a "aws/request.Request" representing the
   675  // client's request for the DeleteContent operation. The "output" return
   676  // value will be populated with the request's response once the request completes
   677  // successfully.
   678  //
   679  // Use "Send" method on the returned Request to send the API call to the service.
   680  // the "output" return value is not valid until after Send returns without error.
   681  //
   682  // See DeleteContent for more information on using the DeleteContent
   683  // API call, and error handling.
   684  //
   685  // This method is useful when you want to inject custom logic or configuration
   686  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   687  //
   688  //
   689  //    // Example sending a request using the DeleteContentRequest method.
   690  //    req, resp := client.DeleteContentRequest(params)
   691  //
   692  //    err := req.Send()
   693  //    if err == nil { // resp is now filled
   694  //        fmt.Println(resp)
   695  //    }
   696  //
   697  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteContent
   698  func (c *ConnectWisdomService) DeleteContentRequest(input *DeleteContentInput) (req *request.Request, output *DeleteContentOutput) {
   699  	op := &request.Operation{
   700  		Name:       opDeleteContent,
   701  		HTTPMethod: "DELETE",
   702  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}",
   703  	}
   704  
   705  	if input == nil {
   706  		input = &DeleteContentInput{}
   707  	}
   708  
   709  	output = &DeleteContentOutput{}
   710  	req = c.newRequest(op, input, output)
   711  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   712  	return
   713  }
   714  
   715  // DeleteContent API operation for Amazon Connect Wisdom Service.
   716  //
   717  // Deletes the content.
   718  //
   719  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   720  // with awserr.Error's Code and Message methods to get detailed information about
   721  // the error.
   722  //
   723  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   724  // API operation DeleteContent for usage and error information.
   725  //
   726  // Returned Error Types:
   727  //   * ValidationException
   728  //   The input fails to satisfy the constraints specified by an AWS service.
   729  //
   730  //   * AccessDeniedException
   731  //   You do not have sufficient access to perform this action.
   732  //
   733  //   * ResourceNotFoundException
   734  //   The specified resource does not exist.
   735  //
   736  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteContent
   737  func (c *ConnectWisdomService) DeleteContent(input *DeleteContentInput) (*DeleteContentOutput, error) {
   738  	req, out := c.DeleteContentRequest(input)
   739  	return out, req.Send()
   740  }
   741  
   742  // DeleteContentWithContext is the same as DeleteContent with the addition of
   743  // the ability to pass a context and additional request options.
   744  //
   745  // See DeleteContent for details on how to use this API operation.
   746  //
   747  // The context must be non-nil and will be used for request cancellation. If
   748  // the context is nil a panic will occur. In the future the SDK may create
   749  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   750  // for more information on using Contexts.
   751  func (c *ConnectWisdomService) DeleteContentWithContext(ctx aws.Context, input *DeleteContentInput, opts ...request.Option) (*DeleteContentOutput, error) {
   752  	req, out := c.DeleteContentRequest(input)
   753  	req.SetContext(ctx)
   754  	req.ApplyOptions(opts...)
   755  	return out, req.Send()
   756  }
   757  
   758  const opDeleteKnowledgeBase = "DeleteKnowledgeBase"
   759  
   760  // DeleteKnowledgeBaseRequest generates a "aws/request.Request" representing the
   761  // client's request for the DeleteKnowledgeBase operation. The "output" return
   762  // value will be populated with the request's response once the request completes
   763  // successfully.
   764  //
   765  // Use "Send" method on the returned Request to send the API call to the service.
   766  // the "output" return value is not valid until after Send returns without error.
   767  //
   768  // See DeleteKnowledgeBase for more information on using the DeleteKnowledgeBase
   769  // API call, and error handling.
   770  //
   771  // This method is useful when you want to inject custom logic or configuration
   772  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   773  //
   774  //
   775  //    // Example sending a request using the DeleteKnowledgeBaseRequest method.
   776  //    req, resp := client.DeleteKnowledgeBaseRequest(params)
   777  //
   778  //    err := req.Send()
   779  //    if err == nil { // resp is now filled
   780  //        fmt.Println(resp)
   781  //    }
   782  //
   783  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteKnowledgeBase
   784  func (c *ConnectWisdomService) DeleteKnowledgeBaseRequest(input *DeleteKnowledgeBaseInput) (req *request.Request, output *DeleteKnowledgeBaseOutput) {
   785  	op := &request.Operation{
   786  		Name:       opDeleteKnowledgeBase,
   787  		HTTPMethod: "DELETE",
   788  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}",
   789  	}
   790  
   791  	if input == nil {
   792  		input = &DeleteKnowledgeBaseInput{}
   793  	}
   794  
   795  	output = &DeleteKnowledgeBaseOutput{}
   796  	req = c.newRequest(op, input, output)
   797  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   798  	return
   799  }
   800  
   801  // DeleteKnowledgeBase API operation for Amazon Connect Wisdom Service.
   802  //
   803  // Deletes the knowledge base.
   804  //
   805  // When you use this API to delete an external knowledge base such as Salesforce
   806  // or ServiceNow, you must also delete the Amazon AppIntegrations (https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html)
   807  // DataIntegration. This is because you can't reuse the DataIntegration after
   808  // it's been associated with an external knowledge base. However, you can delete
   809  // and recreate it. See DeleteDataIntegration (https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html)
   810  // and CreateDataIntegration (https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html)
   811  // in the Amazon AppIntegrations API Reference.
   812  //
   813  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   814  // with awserr.Error's Code and Message methods to get detailed information about
   815  // the error.
   816  //
   817  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   818  // API operation DeleteKnowledgeBase for usage and error information.
   819  //
   820  // Returned Error Types:
   821  //   * ConflictException
   822  //   The request could not be processed because of conflict in the current state
   823  //   of the resource. For example, if you're using a Create API (such as CreateAssistant)
   824  //   that accepts name, a conflicting resource (usually with the same name) is
   825  //   being created or mutated.
   826  //
   827  //   * AccessDeniedException
   828  //   You do not have sufficient access to perform this action.
   829  //
   830  //   * ResourceNotFoundException
   831  //   The specified resource does not exist.
   832  //
   833  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteKnowledgeBase
   834  func (c *ConnectWisdomService) DeleteKnowledgeBase(input *DeleteKnowledgeBaseInput) (*DeleteKnowledgeBaseOutput, error) {
   835  	req, out := c.DeleteKnowledgeBaseRequest(input)
   836  	return out, req.Send()
   837  }
   838  
   839  // DeleteKnowledgeBaseWithContext is the same as DeleteKnowledgeBase with the addition of
   840  // the ability to pass a context and additional request options.
   841  //
   842  // See DeleteKnowledgeBase for details on how to use this API operation.
   843  //
   844  // The context must be non-nil and will be used for request cancellation. If
   845  // the context is nil a panic will occur. In the future the SDK may create
   846  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   847  // for more information on using Contexts.
   848  func (c *ConnectWisdomService) DeleteKnowledgeBaseWithContext(ctx aws.Context, input *DeleteKnowledgeBaseInput, opts ...request.Option) (*DeleteKnowledgeBaseOutput, error) {
   849  	req, out := c.DeleteKnowledgeBaseRequest(input)
   850  	req.SetContext(ctx)
   851  	req.ApplyOptions(opts...)
   852  	return out, req.Send()
   853  }
   854  
   855  const opGetAssistant = "GetAssistant"
   856  
   857  // GetAssistantRequest generates a "aws/request.Request" representing the
   858  // client's request for the GetAssistant operation. The "output" return
   859  // value will be populated with the request's response once the request completes
   860  // successfully.
   861  //
   862  // Use "Send" method on the returned Request to send the API call to the service.
   863  // the "output" return value is not valid until after Send returns without error.
   864  //
   865  // See GetAssistant for more information on using the GetAssistant
   866  // API call, and error handling.
   867  //
   868  // This method is useful when you want to inject custom logic or configuration
   869  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   870  //
   871  //
   872  //    // Example sending a request using the GetAssistantRequest method.
   873  //    req, resp := client.GetAssistantRequest(params)
   874  //
   875  //    err := req.Send()
   876  //    if err == nil { // resp is now filled
   877  //        fmt.Println(resp)
   878  //    }
   879  //
   880  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetAssistant
   881  func (c *ConnectWisdomService) GetAssistantRequest(input *GetAssistantInput) (req *request.Request, output *GetAssistantOutput) {
   882  	op := &request.Operation{
   883  		Name:       opGetAssistant,
   884  		HTTPMethod: "GET",
   885  		HTTPPath:   "/assistants/{assistantId}",
   886  	}
   887  
   888  	if input == nil {
   889  		input = &GetAssistantInput{}
   890  	}
   891  
   892  	output = &GetAssistantOutput{}
   893  	req = c.newRequest(op, input, output)
   894  	return
   895  }
   896  
   897  // GetAssistant API operation for Amazon Connect Wisdom Service.
   898  //
   899  // Retrieves information about an assistant.
   900  //
   901  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   902  // with awserr.Error's Code and Message methods to get detailed information about
   903  // the error.
   904  //
   905  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   906  // API operation GetAssistant for usage and error information.
   907  //
   908  // Returned Error Types:
   909  //   * ValidationException
   910  //   The input fails to satisfy the constraints specified by an AWS service.
   911  //
   912  //   * AccessDeniedException
   913  //   You do not have sufficient access to perform this action.
   914  //
   915  //   * ResourceNotFoundException
   916  //   The specified resource does not exist.
   917  //
   918  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetAssistant
   919  func (c *ConnectWisdomService) GetAssistant(input *GetAssistantInput) (*GetAssistantOutput, error) {
   920  	req, out := c.GetAssistantRequest(input)
   921  	return out, req.Send()
   922  }
   923  
   924  // GetAssistantWithContext is the same as GetAssistant with the addition of
   925  // the ability to pass a context and additional request options.
   926  //
   927  // See GetAssistant for details on how to use this API operation.
   928  //
   929  // The context must be non-nil and will be used for request cancellation. If
   930  // the context is nil a panic will occur. In the future the SDK may create
   931  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   932  // for more information on using Contexts.
   933  func (c *ConnectWisdomService) GetAssistantWithContext(ctx aws.Context, input *GetAssistantInput, opts ...request.Option) (*GetAssistantOutput, error) {
   934  	req, out := c.GetAssistantRequest(input)
   935  	req.SetContext(ctx)
   936  	req.ApplyOptions(opts...)
   937  	return out, req.Send()
   938  }
   939  
   940  const opGetAssistantAssociation = "GetAssistantAssociation"
   941  
   942  // GetAssistantAssociationRequest generates a "aws/request.Request" representing the
   943  // client's request for the GetAssistantAssociation operation. The "output" return
   944  // value will be populated with the request's response once the request completes
   945  // successfully.
   946  //
   947  // Use "Send" method on the returned Request to send the API call to the service.
   948  // the "output" return value is not valid until after Send returns without error.
   949  //
   950  // See GetAssistantAssociation for more information on using the GetAssistantAssociation
   951  // API call, and error handling.
   952  //
   953  // This method is useful when you want to inject custom logic or configuration
   954  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   955  //
   956  //
   957  //    // Example sending a request using the GetAssistantAssociationRequest method.
   958  //    req, resp := client.GetAssistantAssociationRequest(params)
   959  //
   960  //    err := req.Send()
   961  //    if err == nil { // resp is now filled
   962  //        fmt.Println(resp)
   963  //    }
   964  //
   965  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetAssistantAssociation
   966  func (c *ConnectWisdomService) GetAssistantAssociationRequest(input *GetAssistantAssociationInput) (req *request.Request, output *GetAssistantAssociationOutput) {
   967  	op := &request.Operation{
   968  		Name:       opGetAssistantAssociation,
   969  		HTTPMethod: "GET",
   970  		HTTPPath:   "/assistants/{assistantId}/associations/{assistantAssociationId}",
   971  	}
   972  
   973  	if input == nil {
   974  		input = &GetAssistantAssociationInput{}
   975  	}
   976  
   977  	output = &GetAssistantAssociationOutput{}
   978  	req = c.newRequest(op, input, output)
   979  	return
   980  }
   981  
   982  // GetAssistantAssociation API operation for Amazon Connect Wisdom Service.
   983  //
   984  // Retrieves information about an assistant association.
   985  //
   986  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   987  // with awserr.Error's Code and Message methods to get detailed information about
   988  // the error.
   989  //
   990  // See the AWS API reference guide for Amazon Connect Wisdom Service's
   991  // API operation GetAssistantAssociation for usage and error information.
   992  //
   993  // Returned Error Types:
   994  //   * ValidationException
   995  //   The input fails to satisfy the constraints specified by an AWS service.
   996  //
   997  //   * AccessDeniedException
   998  //   You do not have sufficient access to perform this action.
   999  //
  1000  //   * ResourceNotFoundException
  1001  //   The specified resource does not exist.
  1002  //
  1003  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetAssistantAssociation
  1004  func (c *ConnectWisdomService) GetAssistantAssociation(input *GetAssistantAssociationInput) (*GetAssistantAssociationOutput, error) {
  1005  	req, out := c.GetAssistantAssociationRequest(input)
  1006  	return out, req.Send()
  1007  }
  1008  
  1009  // GetAssistantAssociationWithContext is the same as GetAssistantAssociation with the addition of
  1010  // the ability to pass a context and additional request options.
  1011  //
  1012  // See GetAssistantAssociation for details on how to use this API operation.
  1013  //
  1014  // The context must be non-nil and will be used for request cancellation. If
  1015  // the context is nil a panic will occur. In the future the SDK may create
  1016  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1017  // for more information on using Contexts.
  1018  func (c *ConnectWisdomService) GetAssistantAssociationWithContext(ctx aws.Context, input *GetAssistantAssociationInput, opts ...request.Option) (*GetAssistantAssociationOutput, error) {
  1019  	req, out := c.GetAssistantAssociationRequest(input)
  1020  	req.SetContext(ctx)
  1021  	req.ApplyOptions(opts...)
  1022  	return out, req.Send()
  1023  }
  1024  
  1025  const opGetContent = "GetContent"
  1026  
  1027  // GetContentRequest generates a "aws/request.Request" representing the
  1028  // client's request for the GetContent operation. The "output" return
  1029  // value will be populated with the request's response once the request completes
  1030  // successfully.
  1031  //
  1032  // Use "Send" method on the returned Request to send the API call to the service.
  1033  // the "output" return value is not valid until after Send returns without error.
  1034  //
  1035  // See GetContent for more information on using the GetContent
  1036  // API call, and error handling.
  1037  //
  1038  // This method is useful when you want to inject custom logic or configuration
  1039  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1040  //
  1041  //
  1042  //    // Example sending a request using the GetContentRequest method.
  1043  //    req, resp := client.GetContentRequest(params)
  1044  //
  1045  //    err := req.Send()
  1046  //    if err == nil { // resp is now filled
  1047  //        fmt.Println(resp)
  1048  //    }
  1049  //
  1050  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetContent
  1051  func (c *ConnectWisdomService) GetContentRequest(input *GetContentInput) (req *request.Request, output *GetContentOutput) {
  1052  	op := &request.Operation{
  1053  		Name:       opGetContent,
  1054  		HTTPMethod: "GET",
  1055  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}",
  1056  	}
  1057  
  1058  	if input == nil {
  1059  		input = &GetContentInput{}
  1060  	}
  1061  
  1062  	output = &GetContentOutput{}
  1063  	req = c.newRequest(op, input, output)
  1064  	return
  1065  }
  1066  
  1067  // GetContent API operation for Amazon Connect Wisdom Service.
  1068  //
  1069  // Retrieves content, including a pre-signed URL to download the content.
  1070  //
  1071  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1072  // with awserr.Error's Code and Message methods to get detailed information about
  1073  // the error.
  1074  //
  1075  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1076  // API operation GetContent for usage and error information.
  1077  //
  1078  // Returned Error Types:
  1079  //   * ValidationException
  1080  //   The input fails to satisfy the constraints specified by an AWS service.
  1081  //
  1082  //   * AccessDeniedException
  1083  //   You do not have sufficient access to perform this action.
  1084  //
  1085  //   * ResourceNotFoundException
  1086  //   The specified resource does not exist.
  1087  //
  1088  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetContent
  1089  func (c *ConnectWisdomService) GetContent(input *GetContentInput) (*GetContentOutput, error) {
  1090  	req, out := c.GetContentRequest(input)
  1091  	return out, req.Send()
  1092  }
  1093  
  1094  // GetContentWithContext is the same as GetContent with the addition of
  1095  // the ability to pass a context and additional request options.
  1096  //
  1097  // See GetContent for details on how to use this API operation.
  1098  //
  1099  // The context must be non-nil and will be used for request cancellation. If
  1100  // the context is nil a panic will occur. In the future the SDK may create
  1101  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1102  // for more information on using Contexts.
  1103  func (c *ConnectWisdomService) GetContentWithContext(ctx aws.Context, input *GetContentInput, opts ...request.Option) (*GetContentOutput, error) {
  1104  	req, out := c.GetContentRequest(input)
  1105  	req.SetContext(ctx)
  1106  	req.ApplyOptions(opts...)
  1107  	return out, req.Send()
  1108  }
  1109  
  1110  const opGetContentSummary = "GetContentSummary"
  1111  
  1112  // GetContentSummaryRequest generates a "aws/request.Request" representing the
  1113  // client's request for the GetContentSummary operation. The "output" return
  1114  // value will be populated with the request's response once the request completes
  1115  // successfully.
  1116  //
  1117  // Use "Send" method on the returned Request to send the API call to the service.
  1118  // the "output" return value is not valid until after Send returns without error.
  1119  //
  1120  // See GetContentSummary for more information on using the GetContentSummary
  1121  // API call, and error handling.
  1122  //
  1123  // This method is useful when you want to inject custom logic or configuration
  1124  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1125  //
  1126  //
  1127  //    // Example sending a request using the GetContentSummaryRequest method.
  1128  //    req, resp := client.GetContentSummaryRequest(params)
  1129  //
  1130  //    err := req.Send()
  1131  //    if err == nil { // resp is now filled
  1132  //        fmt.Println(resp)
  1133  //    }
  1134  //
  1135  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetContentSummary
  1136  func (c *ConnectWisdomService) GetContentSummaryRequest(input *GetContentSummaryInput) (req *request.Request, output *GetContentSummaryOutput) {
  1137  	op := &request.Operation{
  1138  		Name:       opGetContentSummary,
  1139  		HTTPMethod: "GET",
  1140  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary",
  1141  	}
  1142  
  1143  	if input == nil {
  1144  		input = &GetContentSummaryInput{}
  1145  	}
  1146  
  1147  	output = &GetContentSummaryOutput{}
  1148  	req = c.newRequest(op, input, output)
  1149  	return
  1150  }
  1151  
  1152  // GetContentSummary API operation for Amazon Connect Wisdom Service.
  1153  //
  1154  // Retrieves summary information about the content.
  1155  //
  1156  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1157  // with awserr.Error's Code and Message methods to get detailed information about
  1158  // the error.
  1159  //
  1160  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1161  // API operation GetContentSummary for usage and error information.
  1162  //
  1163  // Returned Error Types:
  1164  //   * ValidationException
  1165  //   The input fails to satisfy the constraints specified by an AWS service.
  1166  //
  1167  //   * AccessDeniedException
  1168  //   You do not have sufficient access to perform this action.
  1169  //
  1170  //   * ResourceNotFoundException
  1171  //   The specified resource does not exist.
  1172  //
  1173  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetContentSummary
  1174  func (c *ConnectWisdomService) GetContentSummary(input *GetContentSummaryInput) (*GetContentSummaryOutput, error) {
  1175  	req, out := c.GetContentSummaryRequest(input)
  1176  	return out, req.Send()
  1177  }
  1178  
  1179  // GetContentSummaryWithContext is the same as GetContentSummary with the addition of
  1180  // the ability to pass a context and additional request options.
  1181  //
  1182  // See GetContentSummary for details on how to use this API operation.
  1183  //
  1184  // The context must be non-nil and will be used for request cancellation. If
  1185  // the context is nil a panic will occur. In the future the SDK may create
  1186  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1187  // for more information on using Contexts.
  1188  func (c *ConnectWisdomService) GetContentSummaryWithContext(ctx aws.Context, input *GetContentSummaryInput, opts ...request.Option) (*GetContentSummaryOutput, error) {
  1189  	req, out := c.GetContentSummaryRequest(input)
  1190  	req.SetContext(ctx)
  1191  	req.ApplyOptions(opts...)
  1192  	return out, req.Send()
  1193  }
  1194  
  1195  const opGetKnowledgeBase = "GetKnowledgeBase"
  1196  
  1197  // GetKnowledgeBaseRequest generates a "aws/request.Request" representing the
  1198  // client's request for the GetKnowledgeBase operation. The "output" return
  1199  // value will be populated with the request's response once the request completes
  1200  // successfully.
  1201  //
  1202  // Use "Send" method on the returned Request to send the API call to the service.
  1203  // the "output" return value is not valid until after Send returns without error.
  1204  //
  1205  // See GetKnowledgeBase for more information on using the GetKnowledgeBase
  1206  // API call, and error handling.
  1207  //
  1208  // This method is useful when you want to inject custom logic or configuration
  1209  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1210  //
  1211  //
  1212  //    // Example sending a request using the GetKnowledgeBaseRequest method.
  1213  //    req, resp := client.GetKnowledgeBaseRequest(params)
  1214  //
  1215  //    err := req.Send()
  1216  //    if err == nil { // resp is now filled
  1217  //        fmt.Println(resp)
  1218  //    }
  1219  //
  1220  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetKnowledgeBase
  1221  func (c *ConnectWisdomService) GetKnowledgeBaseRequest(input *GetKnowledgeBaseInput) (req *request.Request, output *GetKnowledgeBaseOutput) {
  1222  	op := &request.Operation{
  1223  		Name:       opGetKnowledgeBase,
  1224  		HTTPMethod: "GET",
  1225  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}",
  1226  	}
  1227  
  1228  	if input == nil {
  1229  		input = &GetKnowledgeBaseInput{}
  1230  	}
  1231  
  1232  	output = &GetKnowledgeBaseOutput{}
  1233  	req = c.newRequest(op, input, output)
  1234  	return
  1235  }
  1236  
  1237  // GetKnowledgeBase API operation for Amazon Connect Wisdom Service.
  1238  //
  1239  // Retrieves information about the knowledge base.
  1240  //
  1241  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1242  // with awserr.Error's Code and Message methods to get detailed information about
  1243  // the error.
  1244  //
  1245  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1246  // API operation GetKnowledgeBase for usage and error information.
  1247  //
  1248  // Returned Error Types:
  1249  //   * ValidationException
  1250  //   The input fails to satisfy the constraints specified by an AWS service.
  1251  //
  1252  //   * AccessDeniedException
  1253  //   You do not have sufficient access to perform this action.
  1254  //
  1255  //   * ResourceNotFoundException
  1256  //   The specified resource does not exist.
  1257  //
  1258  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetKnowledgeBase
  1259  func (c *ConnectWisdomService) GetKnowledgeBase(input *GetKnowledgeBaseInput) (*GetKnowledgeBaseOutput, error) {
  1260  	req, out := c.GetKnowledgeBaseRequest(input)
  1261  	return out, req.Send()
  1262  }
  1263  
  1264  // GetKnowledgeBaseWithContext is the same as GetKnowledgeBase with the addition of
  1265  // the ability to pass a context and additional request options.
  1266  //
  1267  // See GetKnowledgeBase for details on how to use this API operation.
  1268  //
  1269  // The context must be non-nil and will be used for request cancellation. If
  1270  // the context is nil a panic will occur. In the future the SDK may create
  1271  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1272  // for more information on using Contexts.
  1273  func (c *ConnectWisdomService) GetKnowledgeBaseWithContext(ctx aws.Context, input *GetKnowledgeBaseInput, opts ...request.Option) (*GetKnowledgeBaseOutput, error) {
  1274  	req, out := c.GetKnowledgeBaseRequest(input)
  1275  	req.SetContext(ctx)
  1276  	req.ApplyOptions(opts...)
  1277  	return out, req.Send()
  1278  }
  1279  
  1280  const opGetRecommendations = "GetRecommendations"
  1281  
  1282  // GetRecommendationsRequest generates a "aws/request.Request" representing the
  1283  // client's request for the GetRecommendations operation. The "output" return
  1284  // value will be populated with the request's response once the request completes
  1285  // successfully.
  1286  //
  1287  // Use "Send" method on the returned Request to send the API call to the service.
  1288  // the "output" return value is not valid until after Send returns without error.
  1289  //
  1290  // See GetRecommendations for more information on using the GetRecommendations
  1291  // API call, and error handling.
  1292  //
  1293  // This method is useful when you want to inject custom logic or configuration
  1294  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1295  //
  1296  //
  1297  //    // Example sending a request using the GetRecommendationsRequest method.
  1298  //    req, resp := client.GetRecommendationsRequest(params)
  1299  //
  1300  //    err := req.Send()
  1301  //    if err == nil { // resp is now filled
  1302  //        fmt.Println(resp)
  1303  //    }
  1304  //
  1305  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetRecommendations
  1306  func (c *ConnectWisdomService) GetRecommendationsRequest(input *GetRecommendationsInput) (req *request.Request, output *GetRecommendationsOutput) {
  1307  	op := &request.Operation{
  1308  		Name:       opGetRecommendations,
  1309  		HTTPMethod: "GET",
  1310  		HTTPPath:   "/assistants/{assistantId}/sessions/{sessionId}/recommendations",
  1311  	}
  1312  
  1313  	if input == nil {
  1314  		input = &GetRecommendationsInput{}
  1315  	}
  1316  
  1317  	output = &GetRecommendationsOutput{}
  1318  	req = c.newRequest(op, input, output)
  1319  	return
  1320  }
  1321  
  1322  // GetRecommendations API operation for Amazon Connect Wisdom Service.
  1323  //
  1324  // Retrieves recommendations for the specified session. To avoid retrieving
  1325  // the same recommendations in subsequent calls, use NotifyRecommendationsReceived
  1326  // (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_NotifyRecommendationsReceived.html).
  1327  // This API supports long-polling behavior with the waitTimeSeconds parameter.
  1328  // Short poll is the default behavior and only returns recommendations already
  1329  // available. To perform a manual query against an assistant, use QueryAssistant
  1330  // (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html).
  1331  //
  1332  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1333  // with awserr.Error's Code and Message methods to get detailed information about
  1334  // the error.
  1335  //
  1336  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1337  // API operation GetRecommendations for usage and error information.
  1338  //
  1339  // Returned Error Types:
  1340  //   * ValidationException
  1341  //   The input fails to satisfy the constraints specified by an AWS service.
  1342  //
  1343  //   * AccessDeniedException
  1344  //   You do not have sufficient access to perform this action.
  1345  //
  1346  //   * ResourceNotFoundException
  1347  //   The specified resource does not exist.
  1348  //
  1349  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetRecommendations
  1350  func (c *ConnectWisdomService) GetRecommendations(input *GetRecommendationsInput) (*GetRecommendationsOutput, error) {
  1351  	req, out := c.GetRecommendationsRequest(input)
  1352  	return out, req.Send()
  1353  }
  1354  
  1355  // GetRecommendationsWithContext is the same as GetRecommendations with the addition of
  1356  // the ability to pass a context and additional request options.
  1357  //
  1358  // See GetRecommendations for details on how to use this API operation.
  1359  //
  1360  // The context must be non-nil and will be used for request cancellation. If
  1361  // the context is nil a panic will occur. In the future the SDK may create
  1362  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1363  // for more information on using Contexts.
  1364  func (c *ConnectWisdomService) GetRecommendationsWithContext(ctx aws.Context, input *GetRecommendationsInput, opts ...request.Option) (*GetRecommendationsOutput, error) {
  1365  	req, out := c.GetRecommendationsRequest(input)
  1366  	req.SetContext(ctx)
  1367  	req.ApplyOptions(opts...)
  1368  	return out, req.Send()
  1369  }
  1370  
  1371  const opGetSession = "GetSession"
  1372  
  1373  // GetSessionRequest generates a "aws/request.Request" representing the
  1374  // client's request for the GetSession operation. The "output" return
  1375  // value will be populated with the request's response once the request completes
  1376  // successfully.
  1377  //
  1378  // Use "Send" method on the returned Request to send the API call to the service.
  1379  // the "output" return value is not valid until after Send returns without error.
  1380  //
  1381  // See GetSession for more information on using the GetSession
  1382  // API call, and error handling.
  1383  //
  1384  // This method is useful when you want to inject custom logic or configuration
  1385  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1386  //
  1387  //
  1388  //    // Example sending a request using the GetSessionRequest method.
  1389  //    req, resp := client.GetSessionRequest(params)
  1390  //
  1391  //    err := req.Send()
  1392  //    if err == nil { // resp is now filled
  1393  //        fmt.Println(resp)
  1394  //    }
  1395  //
  1396  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetSession
  1397  func (c *ConnectWisdomService) GetSessionRequest(input *GetSessionInput) (req *request.Request, output *GetSessionOutput) {
  1398  	op := &request.Operation{
  1399  		Name:       opGetSession,
  1400  		HTTPMethod: "GET",
  1401  		HTTPPath:   "/assistants/{assistantId}/sessions/{sessionId}",
  1402  	}
  1403  
  1404  	if input == nil {
  1405  		input = &GetSessionInput{}
  1406  	}
  1407  
  1408  	output = &GetSessionOutput{}
  1409  	req = c.newRequest(op, input, output)
  1410  	return
  1411  }
  1412  
  1413  // GetSession API operation for Amazon Connect Wisdom Service.
  1414  //
  1415  // Retrieves information for a specified session.
  1416  //
  1417  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1418  // with awserr.Error's Code and Message methods to get detailed information about
  1419  // the error.
  1420  //
  1421  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1422  // API operation GetSession for usage and error information.
  1423  //
  1424  // Returned Error Types:
  1425  //   * ValidationException
  1426  //   The input fails to satisfy the constraints specified by an AWS service.
  1427  //
  1428  //   * AccessDeniedException
  1429  //   You do not have sufficient access to perform this action.
  1430  //
  1431  //   * ResourceNotFoundException
  1432  //   The specified resource does not exist.
  1433  //
  1434  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetSession
  1435  func (c *ConnectWisdomService) GetSession(input *GetSessionInput) (*GetSessionOutput, error) {
  1436  	req, out := c.GetSessionRequest(input)
  1437  	return out, req.Send()
  1438  }
  1439  
  1440  // GetSessionWithContext is the same as GetSession with the addition of
  1441  // the ability to pass a context and additional request options.
  1442  //
  1443  // See GetSession for details on how to use this API operation.
  1444  //
  1445  // The context must be non-nil and will be used for request cancellation. If
  1446  // the context is nil a panic will occur. In the future the SDK may create
  1447  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1448  // for more information on using Contexts.
  1449  func (c *ConnectWisdomService) GetSessionWithContext(ctx aws.Context, input *GetSessionInput, opts ...request.Option) (*GetSessionOutput, error) {
  1450  	req, out := c.GetSessionRequest(input)
  1451  	req.SetContext(ctx)
  1452  	req.ApplyOptions(opts...)
  1453  	return out, req.Send()
  1454  }
  1455  
  1456  const opListAssistantAssociations = "ListAssistantAssociations"
  1457  
  1458  // ListAssistantAssociationsRequest generates a "aws/request.Request" representing the
  1459  // client's request for the ListAssistantAssociations operation. The "output" return
  1460  // value will be populated with the request's response once the request completes
  1461  // successfully.
  1462  //
  1463  // Use "Send" method on the returned Request to send the API call to the service.
  1464  // the "output" return value is not valid until after Send returns without error.
  1465  //
  1466  // See ListAssistantAssociations for more information on using the ListAssistantAssociations
  1467  // API call, and error handling.
  1468  //
  1469  // This method is useful when you want to inject custom logic or configuration
  1470  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1471  //
  1472  //
  1473  //    // Example sending a request using the ListAssistantAssociationsRequest method.
  1474  //    req, resp := client.ListAssistantAssociationsRequest(params)
  1475  //
  1476  //    err := req.Send()
  1477  //    if err == nil { // resp is now filled
  1478  //        fmt.Println(resp)
  1479  //    }
  1480  //
  1481  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListAssistantAssociations
  1482  func (c *ConnectWisdomService) ListAssistantAssociationsRequest(input *ListAssistantAssociationsInput) (req *request.Request, output *ListAssistantAssociationsOutput) {
  1483  	op := &request.Operation{
  1484  		Name:       opListAssistantAssociations,
  1485  		HTTPMethod: "GET",
  1486  		HTTPPath:   "/assistants/{assistantId}/associations",
  1487  		Paginator: &request.Paginator{
  1488  			InputTokens:     []string{"nextToken"},
  1489  			OutputTokens:    []string{"nextToken"},
  1490  			LimitToken:      "maxResults",
  1491  			TruncationToken: "",
  1492  		},
  1493  	}
  1494  
  1495  	if input == nil {
  1496  		input = &ListAssistantAssociationsInput{}
  1497  	}
  1498  
  1499  	output = &ListAssistantAssociationsOutput{}
  1500  	req = c.newRequest(op, input, output)
  1501  	return
  1502  }
  1503  
  1504  // ListAssistantAssociations API operation for Amazon Connect Wisdom Service.
  1505  //
  1506  // Lists information about assistant associations.
  1507  //
  1508  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1509  // with awserr.Error's Code and Message methods to get detailed information about
  1510  // the error.
  1511  //
  1512  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1513  // API operation ListAssistantAssociations for usage and error information.
  1514  //
  1515  // Returned Error Types:
  1516  //   * ValidationException
  1517  //   The input fails to satisfy the constraints specified by an AWS service.
  1518  //
  1519  //   * AccessDeniedException
  1520  //   You do not have sufficient access to perform this action.
  1521  //
  1522  //   * ResourceNotFoundException
  1523  //   The specified resource does not exist.
  1524  //
  1525  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListAssistantAssociations
  1526  func (c *ConnectWisdomService) ListAssistantAssociations(input *ListAssistantAssociationsInput) (*ListAssistantAssociationsOutput, error) {
  1527  	req, out := c.ListAssistantAssociationsRequest(input)
  1528  	return out, req.Send()
  1529  }
  1530  
  1531  // ListAssistantAssociationsWithContext is the same as ListAssistantAssociations with the addition of
  1532  // the ability to pass a context and additional request options.
  1533  //
  1534  // See ListAssistantAssociations for details on how to use this API operation.
  1535  //
  1536  // The context must be non-nil and will be used for request cancellation. If
  1537  // the context is nil a panic will occur. In the future the SDK may create
  1538  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1539  // for more information on using Contexts.
  1540  func (c *ConnectWisdomService) ListAssistantAssociationsWithContext(ctx aws.Context, input *ListAssistantAssociationsInput, opts ...request.Option) (*ListAssistantAssociationsOutput, error) {
  1541  	req, out := c.ListAssistantAssociationsRequest(input)
  1542  	req.SetContext(ctx)
  1543  	req.ApplyOptions(opts...)
  1544  	return out, req.Send()
  1545  }
  1546  
  1547  // ListAssistantAssociationsPages iterates over the pages of a ListAssistantAssociations operation,
  1548  // calling the "fn" function with the response data for each page. To stop
  1549  // iterating, return false from the fn function.
  1550  //
  1551  // See ListAssistantAssociations method for more information on how to use this operation.
  1552  //
  1553  // Note: This operation can generate multiple requests to a service.
  1554  //
  1555  //    // Example iterating over at most 3 pages of a ListAssistantAssociations operation.
  1556  //    pageNum := 0
  1557  //    err := client.ListAssistantAssociationsPages(params,
  1558  //        func(page *connectwisdomservice.ListAssistantAssociationsOutput, lastPage bool) bool {
  1559  //            pageNum++
  1560  //            fmt.Println(page)
  1561  //            return pageNum <= 3
  1562  //        })
  1563  //
  1564  func (c *ConnectWisdomService) ListAssistantAssociationsPages(input *ListAssistantAssociationsInput, fn func(*ListAssistantAssociationsOutput, bool) bool) error {
  1565  	return c.ListAssistantAssociationsPagesWithContext(aws.BackgroundContext(), input, fn)
  1566  }
  1567  
  1568  // ListAssistantAssociationsPagesWithContext same as ListAssistantAssociationsPages except
  1569  // it takes a Context and allows setting request options on the pages.
  1570  //
  1571  // The context must be non-nil and will be used for request cancellation. If
  1572  // the context is nil a panic will occur. In the future the SDK may create
  1573  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1574  // for more information on using Contexts.
  1575  func (c *ConnectWisdomService) ListAssistantAssociationsPagesWithContext(ctx aws.Context, input *ListAssistantAssociationsInput, fn func(*ListAssistantAssociationsOutput, bool) bool, opts ...request.Option) error {
  1576  	p := request.Pagination{
  1577  		NewRequest: func() (*request.Request, error) {
  1578  			var inCpy *ListAssistantAssociationsInput
  1579  			if input != nil {
  1580  				tmp := *input
  1581  				inCpy = &tmp
  1582  			}
  1583  			req, _ := c.ListAssistantAssociationsRequest(inCpy)
  1584  			req.SetContext(ctx)
  1585  			req.ApplyOptions(opts...)
  1586  			return req, nil
  1587  		},
  1588  	}
  1589  
  1590  	for p.Next() {
  1591  		if !fn(p.Page().(*ListAssistantAssociationsOutput), !p.HasNextPage()) {
  1592  			break
  1593  		}
  1594  	}
  1595  
  1596  	return p.Err()
  1597  }
  1598  
  1599  const opListAssistants = "ListAssistants"
  1600  
  1601  // ListAssistantsRequest generates a "aws/request.Request" representing the
  1602  // client's request for the ListAssistants operation. The "output" return
  1603  // value will be populated with the request's response once the request completes
  1604  // successfully.
  1605  //
  1606  // Use "Send" method on the returned Request to send the API call to the service.
  1607  // the "output" return value is not valid until after Send returns without error.
  1608  //
  1609  // See ListAssistants for more information on using the ListAssistants
  1610  // API call, and error handling.
  1611  //
  1612  // This method is useful when you want to inject custom logic or configuration
  1613  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1614  //
  1615  //
  1616  //    // Example sending a request using the ListAssistantsRequest method.
  1617  //    req, resp := client.ListAssistantsRequest(params)
  1618  //
  1619  //    err := req.Send()
  1620  //    if err == nil { // resp is now filled
  1621  //        fmt.Println(resp)
  1622  //    }
  1623  //
  1624  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListAssistants
  1625  func (c *ConnectWisdomService) ListAssistantsRequest(input *ListAssistantsInput) (req *request.Request, output *ListAssistantsOutput) {
  1626  	op := &request.Operation{
  1627  		Name:       opListAssistants,
  1628  		HTTPMethod: "GET",
  1629  		HTTPPath:   "/assistants",
  1630  		Paginator: &request.Paginator{
  1631  			InputTokens:     []string{"nextToken"},
  1632  			OutputTokens:    []string{"nextToken"},
  1633  			LimitToken:      "maxResults",
  1634  			TruncationToken: "",
  1635  		},
  1636  	}
  1637  
  1638  	if input == nil {
  1639  		input = &ListAssistantsInput{}
  1640  	}
  1641  
  1642  	output = &ListAssistantsOutput{}
  1643  	req = c.newRequest(op, input, output)
  1644  	return
  1645  }
  1646  
  1647  // ListAssistants API operation for Amazon Connect Wisdom Service.
  1648  //
  1649  // Lists information about assistants.
  1650  //
  1651  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1652  // with awserr.Error's Code and Message methods to get detailed information about
  1653  // the error.
  1654  //
  1655  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1656  // API operation ListAssistants for usage and error information.
  1657  //
  1658  // Returned Error Types:
  1659  //   * ValidationException
  1660  //   The input fails to satisfy the constraints specified by an AWS service.
  1661  //
  1662  //   * AccessDeniedException
  1663  //   You do not have sufficient access to perform this action.
  1664  //
  1665  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListAssistants
  1666  func (c *ConnectWisdomService) ListAssistants(input *ListAssistantsInput) (*ListAssistantsOutput, error) {
  1667  	req, out := c.ListAssistantsRequest(input)
  1668  	return out, req.Send()
  1669  }
  1670  
  1671  // ListAssistantsWithContext is the same as ListAssistants with the addition of
  1672  // the ability to pass a context and additional request options.
  1673  //
  1674  // See ListAssistants for details on how to use this API operation.
  1675  //
  1676  // The context must be non-nil and will be used for request cancellation. If
  1677  // the context is nil a panic will occur. In the future the SDK may create
  1678  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1679  // for more information on using Contexts.
  1680  func (c *ConnectWisdomService) ListAssistantsWithContext(ctx aws.Context, input *ListAssistantsInput, opts ...request.Option) (*ListAssistantsOutput, error) {
  1681  	req, out := c.ListAssistantsRequest(input)
  1682  	req.SetContext(ctx)
  1683  	req.ApplyOptions(opts...)
  1684  	return out, req.Send()
  1685  }
  1686  
  1687  // ListAssistantsPages iterates over the pages of a ListAssistants operation,
  1688  // calling the "fn" function with the response data for each page. To stop
  1689  // iterating, return false from the fn function.
  1690  //
  1691  // See ListAssistants method for more information on how to use this operation.
  1692  //
  1693  // Note: This operation can generate multiple requests to a service.
  1694  //
  1695  //    // Example iterating over at most 3 pages of a ListAssistants operation.
  1696  //    pageNum := 0
  1697  //    err := client.ListAssistantsPages(params,
  1698  //        func(page *connectwisdomservice.ListAssistantsOutput, lastPage bool) bool {
  1699  //            pageNum++
  1700  //            fmt.Println(page)
  1701  //            return pageNum <= 3
  1702  //        })
  1703  //
  1704  func (c *ConnectWisdomService) ListAssistantsPages(input *ListAssistantsInput, fn func(*ListAssistantsOutput, bool) bool) error {
  1705  	return c.ListAssistantsPagesWithContext(aws.BackgroundContext(), input, fn)
  1706  }
  1707  
  1708  // ListAssistantsPagesWithContext same as ListAssistantsPages except
  1709  // it takes a Context and allows setting request options on the pages.
  1710  //
  1711  // The context must be non-nil and will be used for request cancellation. If
  1712  // the context is nil a panic will occur. In the future the SDK may create
  1713  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1714  // for more information on using Contexts.
  1715  func (c *ConnectWisdomService) ListAssistantsPagesWithContext(ctx aws.Context, input *ListAssistantsInput, fn func(*ListAssistantsOutput, bool) bool, opts ...request.Option) error {
  1716  	p := request.Pagination{
  1717  		NewRequest: func() (*request.Request, error) {
  1718  			var inCpy *ListAssistantsInput
  1719  			if input != nil {
  1720  				tmp := *input
  1721  				inCpy = &tmp
  1722  			}
  1723  			req, _ := c.ListAssistantsRequest(inCpy)
  1724  			req.SetContext(ctx)
  1725  			req.ApplyOptions(opts...)
  1726  			return req, nil
  1727  		},
  1728  	}
  1729  
  1730  	for p.Next() {
  1731  		if !fn(p.Page().(*ListAssistantsOutput), !p.HasNextPage()) {
  1732  			break
  1733  		}
  1734  	}
  1735  
  1736  	return p.Err()
  1737  }
  1738  
  1739  const opListContents = "ListContents"
  1740  
  1741  // ListContentsRequest generates a "aws/request.Request" representing the
  1742  // client's request for the ListContents operation. The "output" return
  1743  // value will be populated with the request's response once the request completes
  1744  // successfully.
  1745  //
  1746  // Use "Send" method on the returned Request to send the API call to the service.
  1747  // the "output" return value is not valid until after Send returns without error.
  1748  //
  1749  // See ListContents for more information on using the ListContents
  1750  // API call, and error handling.
  1751  //
  1752  // This method is useful when you want to inject custom logic or configuration
  1753  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1754  //
  1755  //
  1756  //    // Example sending a request using the ListContentsRequest method.
  1757  //    req, resp := client.ListContentsRequest(params)
  1758  //
  1759  //    err := req.Send()
  1760  //    if err == nil { // resp is now filled
  1761  //        fmt.Println(resp)
  1762  //    }
  1763  //
  1764  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListContents
  1765  func (c *ConnectWisdomService) ListContentsRequest(input *ListContentsInput) (req *request.Request, output *ListContentsOutput) {
  1766  	op := &request.Operation{
  1767  		Name:       opListContents,
  1768  		HTTPMethod: "GET",
  1769  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/contents",
  1770  		Paginator: &request.Paginator{
  1771  			InputTokens:     []string{"nextToken"},
  1772  			OutputTokens:    []string{"nextToken"},
  1773  			LimitToken:      "maxResults",
  1774  			TruncationToken: "",
  1775  		},
  1776  	}
  1777  
  1778  	if input == nil {
  1779  		input = &ListContentsInput{}
  1780  	}
  1781  
  1782  	output = &ListContentsOutput{}
  1783  	req = c.newRequest(op, input, output)
  1784  	return
  1785  }
  1786  
  1787  // ListContents API operation for Amazon Connect Wisdom Service.
  1788  //
  1789  // Lists the content.
  1790  //
  1791  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1792  // with awserr.Error's Code and Message methods to get detailed information about
  1793  // the error.
  1794  //
  1795  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1796  // API operation ListContents for usage and error information.
  1797  //
  1798  // Returned Error Types:
  1799  //   * ValidationException
  1800  //   The input fails to satisfy the constraints specified by an AWS service.
  1801  //
  1802  //   * AccessDeniedException
  1803  //   You do not have sufficient access to perform this action.
  1804  //
  1805  //   * ResourceNotFoundException
  1806  //   The specified resource does not exist.
  1807  //
  1808  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListContents
  1809  func (c *ConnectWisdomService) ListContents(input *ListContentsInput) (*ListContentsOutput, error) {
  1810  	req, out := c.ListContentsRequest(input)
  1811  	return out, req.Send()
  1812  }
  1813  
  1814  // ListContentsWithContext is the same as ListContents with the addition of
  1815  // the ability to pass a context and additional request options.
  1816  //
  1817  // See ListContents for details on how to use this API operation.
  1818  //
  1819  // The context must be non-nil and will be used for request cancellation. If
  1820  // the context is nil a panic will occur. In the future the SDK may create
  1821  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1822  // for more information on using Contexts.
  1823  func (c *ConnectWisdomService) ListContentsWithContext(ctx aws.Context, input *ListContentsInput, opts ...request.Option) (*ListContentsOutput, error) {
  1824  	req, out := c.ListContentsRequest(input)
  1825  	req.SetContext(ctx)
  1826  	req.ApplyOptions(opts...)
  1827  	return out, req.Send()
  1828  }
  1829  
  1830  // ListContentsPages iterates over the pages of a ListContents operation,
  1831  // calling the "fn" function with the response data for each page. To stop
  1832  // iterating, return false from the fn function.
  1833  //
  1834  // See ListContents method for more information on how to use this operation.
  1835  //
  1836  // Note: This operation can generate multiple requests to a service.
  1837  //
  1838  //    // Example iterating over at most 3 pages of a ListContents operation.
  1839  //    pageNum := 0
  1840  //    err := client.ListContentsPages(params,
  1841  //        func(page *connectwisdomservice.ListContentsOutput, lastPage bool) bool {
  1842  //            pageNum++
  1843  //            fmt.Println(page)
  1844  //            return pageNum <= 3
  1845  //        })
  1846  //
  1847  func (c *ConnectWisdomService) ListContentsPages(input *ListContentsInput, fn func(*ListContentsOutput, bool) bool) error {
  1848  	return c.ListContentsPagesWithContext(aws.BackgroundContext(), input, fn)
  1849  }
  1850  
  1851  // ListContentsPagesWithContext same as ListContentsPages except
  1852  // it takes a Context and allows setting request options on the pages.
  1853  //
  1854  // The context must be non-nil and will be used for request cancellation. If
  1855  // the context is nil a panic will occur. In the future the SDK may create
  1856  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1857  // for more information on using Contexts.
  1858  func (c *ConnectWisdomService) ListContentsPagesWithContext(ctx aws.Context, input *ListContentsInput, fn func(*ListContentsOutput, bool) bool, opts ...request.Option) error {
  1859  	p := request.Pagination{
  1860  		NewRequest: func() (*request.Request, error) {
  1861  			var inCpy *ListContentsInput
  1862  			if input != nil {
  1863  				tmp := *input
  1864  				inCpy = &tmp
  1865  			}
  1866  			req, _ := c.ListContentsRequest(inCpy)
  1867  			req.SetContext(ctx)
  1868  			req.ApplyOptions(opts...)
  1869  			return req, nil
  1870  		},
  1871  	}
  1872  
  1873  	for p.Next() {
  1874  		if !fn(p.Page().(*ListContentsOutput), !p.HasNextPage()) {
  1875  			break
  1876  		}
  1877  	}
  1878  
  1879  	return p.Err()
  1880  }
  1881  
  1882  const opListKnowledgeBases = "ListKnowledgeBases"
  1883  
  1884  // ListKnowledgeBasesRequest generates a "aws/request.Request" representing the
  1885  // client's request for the ListKnowledgeBases operation. The "output" return
  1886  // value will be populated with the request's response once the request completes
  1887  // successfully.
  1888  //
  1889  // Use "Send" method on the returned Request to send the API call to the service.
  1890  // the "output" return value is not valid until after Send returns without error.
  1891  //
  1892  // See ListKnowledgeBases for more information on using the ListKnowledgeBases
  1893  // API call, and error handling.
  1894  //
  1895  // This method is useful when you want to inject custom logic or configuration
  1896  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1897  //
  1898  //
  1899  //    // Example sending a request using the ListKnowledgeBasesRequest method.
  1900  //    req, resp := client.ListKnowledgeBasesRequest(params)
  1901  //
  1902  //    err := req.Send()
  1903  //    if err == nil { // resp is now filled
  1904  //        fmt.Println(resp)
  1905  //    }
  1906  //
  1907  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListKnowledgeBases
  1908  func (c *ConnectWisdomService) ListKnowledgeBasesRequest(input *ListKnowledgeBasesInput) (req *request.Request, output *ListKnowledgeBasesOutput) {
  1909  	op := &request.Operation{
  1910  		Name:       opListKnowledgeBases,
  1911  		HTTPMethod: "GET",
  1912  		HTTPPath:   "/knowledgeBases",
  1913  		Paginator: &request.Paginator{
  1914  			InputTokens:     []string{"nextToken"},
  1915  			OutputTokens:    []string{"nextToken"},
  1916  			LimitToken:      "maxResults",
  1917  			TruncationToken: "",
  1918  		},
  1919  	}
  1920  
  1921  	if input == nil {
  1922  		input = &ListKnowledgeBasesInput{}
  1923  	}
  1924  
  1925  	output = &ListKnowledgeBasesOutput{}
  1926  	req = c.newRequest(op, input, output)
  1927  	return
  1928  }
  1929  
  1930  // ListKnowledgeBases API operation for Amazon Connect Wisdom Service.
  1931  //
  1932  // Lists the knowledge bases.
  1933  //
  1934  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1935  // with awserr.Error's Code and Message methods to get detailed information about
  1936  // the error.
  1937  //
  1938  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  1939  // API operation ListKnowledgeBases for usage and error information.
  1940  //
  1941  // Returned Error Types:
  1942  //   * ValidationException
  1943  //   The input fails to satisfy the constraints specified by an AWS service.
  1944  //
  1945  //   * AccessDeniedException
  1946  //   You do not have sufficient access to perform this action.
  1947  //
  1948  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListKnowledgeBases
  1949  func (c *ConnectWisdomService) ListKnowledgeBases(input *ListKnowledgeBasesInput) (*ListKnowledgeBasesOutput, error) {
  1950  	req, out := c.ListKnowledgeBasesRequest(input)
  1951  	return out, req.Send()
  1952  }
  1953  
  1954  // ListKnowledgeBasesWithContext is the same as ListKnowledgeBases with the addition of
  1955  // the ability to pass a context and additional request options.
  1956  //
  1957  // See ListKnowledgeBases for details on how to use this API operation.
  1958  //
  1959  // The context must be non-nil and will be used for request cancellation. If
  1960  // the context is nil a panic will occur. In the future the SDK may create
  1961  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1962  // for more information on using Contexts.
  1963  func (c *ConnectWisdomService) ListKnowledgeBasesWithContext(ctx aws.Context, input *ListKnowledgeBasesInput, opts ...request.Option) (*ListKnowledgeBasesOutput, error) {
  1964  	req, out := c.ListKnowledgeBasesRequest(input)
  1965  	req.SetContext(ctx)
  1966  	req.ApplyOptions(opts...)
  1967  	return out, req.Send()
  1968  }
  1969  
  1970  // ListKnowledgeBasesPages iterates over the pages of a ListKnowledgeBases operation,
  1971  // calling the "fn" function with the response data for each page. To stop
  1972  // iterating, return false from the fn function.
  1973  //
  1974  // See ListKnowledgeBases method for more information on how to use this operation.
  1975  //
  1976  // Note: This operation can generate multiple requests to a service.
  1977  //
  1978  //    // Example iterating over at most 3 pages of a ListKnowledgeBases operation.
  1979  //    pageNum := 0
  1980  //    err := client.ListKnowledgeBasesPages(params,
  1981  //        func(page *connectwisdomservice.ListKnowledgeBasesOutput, lastPage bool) bool {
  1982  //            pageNum++
  1983  //            fmt.Println(page)
  1984  //            return pageNum <= 3
  1985  //        })
  1986  //
  1987  func (c *ConnectWisdomService) ListKnowledgeBasesPages(input *ListKnowledgeBasesInput, fn func(*ListKnowledgeBasesOutput, bool) bool) error {
  1988  	return c.ListKnowledgeBasesPagesWithContext(aws.BackgroundContext(), input, fn)
  1989  }
  1990  
  1991  // ListKnowledgeBasesPagesWithContext same as ListKnowledgeBasesPages except
  1992  // it takes a Context and allows setting request options on the pages.
  1993  //
  1994  // The context must be non-nil and will be used for request cancellation. If
  1995  // the context is nil a panic will occur. In the future the SDK may create
  1996  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1997  // for more information on using Contexts.
  1998  func (c *ConnectWisdomService) ListKnowledgeBasesPagesWithContext(ctx aws.Context, input *ListKnowledgeBasesInput, fn func(*ListKnowledgeBasesOutput, bool) bool, opts ...request.Option) error {
  1999  	p := request.Pagination{
  2000  		NewRequest: func() (*request.Request, error) {
  2001  			var inCpy *ListKnowledgeBasesInput
  2002  			if input != nil {
  2003  				tmp := *input
  2004  				inCpy = &tmp
  2005  			}
  2006  			req, _ := c.ListKnowledgeBasesRequest(inCpy)
  2007  			req.SetContext(ctx)
  2008  			req.ApplyOptions(opts...)
  2009  			return req, nil
  2010  		},
  2011  	}
  2012  
  2013  	for p.Next() {
  2014  		if !fn(p.Page().(*ListKnowledgeBasesOutput), !p.HasNextPage()) {
  2015  			break
  2016  		}
  2017  	}
  2018  
  2019  	return p.Err()
  2020  }
  2021  
  2022  const opListTagsForResource = "ListTagsForResource"
  2023  
  2024  // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  2025  // client's request for the ListTagsForResource operation. The "output" return
  2026  // value will be populated with the request's response once the request completes
  2027  // successfully.
  2028  //
  2029  // Use "Send" method on the returned Request to send the API call to the service.
  2030  // the "output" return value is not valid until after Send returns without error.
  2031  //
  2032  // See ListTagsForResource for more information on using the ListTagsForResource
  2033  // API call, and error handling.
  2034  //
  2035  // This method is useful when you want to inject custom logic or configuration
  2036  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2037  //
  2038  //
  2039  //    // Example sending a request using the ListTagsForResourceRequest method.
  2040  //    req, resp := client.ListTagsForResourceRequest(params)
  2041  //
  2042  //    err := req.Send()
  2043  //    if err == nil { // resp is now filled
  2044  //        fmt.Println(resp)
  2045  //    }
  2046  //
  2047  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListTagsForResource
  2048  func (c *ConnectWisdomService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  2049  	op := &request.Operation{
  2050  		Name:       opListTagsForResource,
  2051  		HTTPMethod: "GET",
  2052  		HTTPPath:   "/tags/{resourceArn}",
  2053  	}
  2054  
  2055  	if input == nil {
  2056  		input = &ListTagsForResourceInput{}
  2057  	}
  2058  
  2059  	output = &ListTagsForResourceOutput{}
  2060  	req = c.newRequest(op, input, output)
  2061  	return
  2062  }
  2063  
  2064  // ListTagsForResource API operation for Amazon Connect Wisdom Service.
  2065  //
  2066  // Lists the tags for the specified resource.
  2067  //
  2068  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2069  // with awserr.Error's Code and Message methods to get detailed information about
  2070  // the error.
  2071  //
  2072  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2073  // API operation ListTagsForResource for usage and error information.
  2074  //
  2075  // Returned Error Types:
  2076  //   * ResourceNotFoundException
  2077  //   The specified resource does not exist.
  2078  //
  2079  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ListTagsForResource
  2080  func (c *ConnectWisdomService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  2081  	req, out := c.ListTagsForResourceRequest(input)
  2082  	return out, req.Send()
  2083  }
  2084  
  2085  // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  2086  // the ability to pass a context and additional request options.
  2087  //
  2088  // See ListTagsForResource for details on how to use this API operation.
  2089  //
  2090  // The context must be non-nil and will be used for request cancellation. If
  2091  // the context is nil a panic will occur. In the future the SDK may create
  2092  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2093  // for more information on using Contexts.
  2094  func (c *ConnectWisdomService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  2095  	req, out := c.ListTagsForResourceRequest(input)
  2096  	req.SetContext(ctx)
  2097  	req.ApplyOptions(opts...)
  2098  	return out, req.Send()
  2099  }
  2100  
  2101  const opNotifyRecommendationsReceived = "NotifyRecommendationsReceived"
  2102  
  2103  // NotifyRecommendationsReceivedRequest generates a "aws/request.Request" representing the
  2104  // client's request for the NotifyRecommendationsReceived operation. The "output" return
  2105  // value will be populated with the request's response once the request completes
  2106  // successfully.
  2107  //
  2108  // Use "Send" method on the returned Request to send the API call to the service.
  2109  // the "output" return value is not valid until after Send returns without error.
  2110  //
  2111  // See NotifyRecommendationsReceived for more information on using the NotifyRecommendationsReceived
  2112  // API call, and error handling.
  2113  //
  2114  // This method is useful when you want to inject custom logic or configuration
  2115  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2116  //
  2117  //
  2118  //    // Example sending a request using the NotifyRecommendationsReceivedRequest method.
  2119  //    req, resp := client.NotifyRecommendationsReceivedRequest(params)
  2120  //
  2121  //    err := req.Send()
  2122  //    if err == nil { // resp is now filled
  2123  //        fmt.Println(resp)
  2124  //    }
  2125  //
  2126  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/NotifyRecommendationsReceived
  2127  func (c *ConnectWisdomService) NotifyRecommendationsReceivedRequest(input *NotifyRecommendationsReceivedInput) (req *request.Request, output *NotifyRecommendationsReceivedOutput) {
  2128  	op := &request.Operation{
  2129  		Name:       opNotifyRecommendationsReceived,
  2130  		HTTPMethod: "POST",
  2131  		HTTPPath:   "/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify",
  2132  	}
  2133  
  2134  	if input == nil {
  2135  		input = &NotifyRecommendationsReceivedInput{}
  2136  	}
  2137  
  2138  	output = &NotifyRecommendationsReceivedOutput{}
  2139  	req = c.newRequest(op, input, output)
  2140  	return
  2141  }
  2142  
  2143  // NotifyRecommendationsReceived API operation for Amazon Connect Wisdom Service.
  2144  //
  2145  // Removes the specified recommendations from the specified assistant's queue
  2146  // of newly available recommendations. You can use this API in conjunction with
  2147  // GetRecommendations (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html)
  2148  // and a waitTimeSeconds input for long-polling behavior and avoiding duplicate
  2149  // recommendations.
  2150  //
  2151  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2152  // with awserr.Error's Code and Message methods to get detailed information about
  2153  // the error.
  2154  //
  2155  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2156  // API operation NotifyRecommendationsReceived for usage and error information.
  2157  //
  2158  // Returned Error Types:
  2159  //   * ValidationException
  2160  //   The input fails to satisfy the constraints specified by an AWS service.
  2161  //
  2162  //   * AccessDeniedException
  2163  //   You do not have sufficient access to perform this action.
  2164  //
  2165  //   * ResourceNotFoundException
  2166  //   The specified resource does not exist.
  2167  //
  2168  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/NotifyRecommendationsReceived
  2169  func (c *ConnectWisdomService) NotifyRecommendationsReceived(input *NotifyRecommendationsReceivedInput) (*NotifyRecommendationsReceivedOutput, error) {
  2170  	req, out := c.NotifyRecommendationsReceivedRequest(input)
  2171  	return out, req.Send()
  2172  }
  2173  
  2174  // NotifyRecommendationsReceivedWithContext is the same as NotifyRecommendationsReceived with the addition of
  2175  // the ability to pass a context and additional request options.
  2176  //
  2177  // See NotifyRecommendationsReceived for details on how to use this API operation.
  2178  //
  2179  // The context must be non-nil and will be used for request cancellation. If
  2180  // the context is nil a panic will occur. In the future the SDK may create
  2181  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2182  // for more information on using Contexts.
  2183  func (c *ConnectWisdomService) NotifyRecommendationsReceivedWithContext(ctx aws.Context, input *NotifyRecommendationsReceivedInput, opts ...request.Option) (*NotifyRecommendationsReceivedOutput, error) {
  2184  	req, out := c.NotifyRecommendationsReceivedRequest(input)
  2185  	req.SetContext(ctx)
  2186  	req.ApplyOptions(opts...)
  2187  	return out, req.Send()
  2188  }
  2189  
  2190  const opQueryAssistant = "QueryAssistant"
  2191  
  2192  // QueryAssistantRequest generates a "aws/request.Request" representing the
  2193  // client's request for the QueryAssistant operation. The "output" return
  2194  // value will be populated with the request's response once the request completes
  2195  // successfully.
  2196  //
  2197  // Use "Send" method on the returned Request to send the API call to the service.
  2198  // the "output" return value is not valid until after Send returns without error.
  2199  //
  2200  // See QueryAssistant for more information on using the QueryAssistant
  2201  // API call, and error handling.
  2202  //
  2203  // This method is useful when you want to inject custom logic or configuration
  2204  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2205  //
  2206  //
  2207  //    // Example sending a request using the QueryAssistantRequest method.
  2208  //    req, resp := client.QueryAssistantRequest(params)
  2209  //
  2210  //    err := req.Send()
  2211  //    if err == nil { // resp is now filled
  2212  //        fmt.Println(resp)
  2213  //    }
  2214  //
  2215  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/QueryAssistant
  2216  func (c *ConnectWisdomService) QueryAssistantRequest(input *QueryAssistantInput) (req *request.Request, output *QueryAssistantOutput) {
  2217  	op := &request.Operation{
  2218  		Name:       opQueryAssistant,
  2219  		HTTPMethod: "POST",
  2220  		HTTPPath:   "/assistants/{assistantId}/query",
  2221  		Paginator: &request.Paginator{
  2222  			InputTokens:     []string{"nextToken"},
  2223  			OutputTokens:    []string{"nextToken"},
  2224  			LimitToken:      "maxResults",
  2225  			TruncationToken: "",
  2226  		},
  2227  	}
  2228  
  2229  	if input == nil {
  2230  		input = &QueryAssistantInput{}
  2231  	}
  2232  
  2233  	output = &QueryAssistantOutput{}
  2234  	req = c.newRequest(op, input, output)
  2235  	return
  2236  }
  2237  
  2238  // QueryAssistant API operation for Amazon Connect Wisdom Service.
  2239  //
  2240  // Performs a manual search against the specified assistant. To retrieve recommendations
  2241  // for an assistant, use GetRecommendations (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html).
  2242  //
  2243  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2244  // with awserr.Error's Code and Message methods to get detailed information about
  2245  // the error.
  2246  //
  2247  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2248  // API operation QueryAssistant for usage and error information.
  2249  //
  2250  // Returned Error Types:
  2251  //   * ValidationException
  2252  //   The input fails to satisfy the constraints specified by an AWS service.
  2253  //
  2254  //   * AccessDeniedException
  2255  //   You do not have sufficient access to perform this action.
  2256  //
  2257  //   * ResourceNotFoundException
  2258  //   The specified resource does not exist.
  2259  //
  2260  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/QueryAssistant
  2261  func (c *ConnectWisdomService) QueryAssistant(input *QueryAssistantInput) (*QueryAssistantOutput, error) {
  2262  	req, out := c.QueryAssistantRequest(input)
  2263  	return out, req.Send()
  2264  }
  2265  
  2266  // QueryAssistantWithContext is the same as QueryAssistant with the addition of
  2267  // the ability to pass a context and additional request options.
  2268  //
  2269  // See QueryAssistant for details on how to use this API operation.
  2270  //
  2271  // The context must be non-nil and will be used for request cancellation. If
  2272  // the context is nil a panic will occur. In the future the SDK may create
  2273  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2274  // for more information on using Contexts.
  2275  func (c *ConnectWisdomService) QueryAssistantWithContext(ctx aws.Context, input *QueryAssistantInput, opts ...request.Option) (*QueryAssistantOutput, error) {
  2276  	req, out := c.QueryAssistantRequest(input)
  2277  	req.SetContext(ctx)
  2278  	req.ApplyOptions(opts...)
  2279  	return out, req.Send()
  2280  }
  2281  
  2282  // QueryAssistantPages iterates over the pages of a QueryAssistant operation,
  2283  // calling the "fn" function with the response data for each page. To stop
  2284  // iterating, return false from the fn function.
  2285  //
  2286  // See QueryAssistant method for more information on how to use this operation.
  2287  //
  2288  // Note: This operation can generate multiple requests to a service.
  2289  //
  2290  //    // Example iterating over at most 3 pages of a QueryAssistant operation.
  2291  //    pageNum := 0
  2292  //    err := client.QueryAssistantPages(params,
  2293  //        func(page *connectwisdomservice.QueryAssistantOutput, lastPage bool) bool {
  2294  //            pageNum++
  2295  //            fmt.Println(page)
  2296  //            return pageNum <= 3
  2297  //        })
  2298  //
  2299  func (c *ConnectWisdomService) QueryAssistantPages(input *QueryAssistantInput, fn func(*QueryAssistantOutput, bool) bool) error {
  2300  	return c.QueryAssistantPagesWithContext(aws.BackgroundContext(), input, fn)
  2301  }
  2302  
  2303  // QueryAssistantPagesWithContext same as QueryAssistantPages except
  2304  // it takes a Context and allows setting request options on the pages.
  2305  //
  2306  // The context must be non-nil and will be used for request cancellation. If
  2307  // the context is nil a panic will occur. In the future the SDK may create
  2308  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2309  // for more information on using Contexts.
  2310  func (c *ConnectWisdomService) QueryAssistantPagesWithContext(ctx aws.Context, input *QueryAssistantInput, fn func(*QueryAssistantOutput, bool) bool, opts ...request.Option) error {
  2311  	p := request.Pagination{
  2312  		NewRequest: func() (*request.Request, error) {
  2313  			var inCpy *QueryAssistantInput
  2314  			if input != nil {
  2315  				tmp := *input
  2316  				inCpy = &tmp
  2317  			}
  2318  			req, _ := c.QueryAssistantRequest(inCpy)
  2319  			req.SetContext(ctx)
  2320  			req.ApplyOptions(opts...)
  2321  			return req, nil
  2322  		},
  2323  	}
  2324  
  2325  	for p.Next() {
  2326  		if !fn(p.Page().(*QueryAssistantOutput), !p.HasNextPage()) {
  2327  			break
  2328  		}
  2329  	}
  2330  
  2331  	return p.Err()
  2332  }
  2333  
  2334  const opRemoveKnowledgeBaseTemplateUri = "RemoveKnowledgeBaseTemplateUri"
  2335  
  2336  // RemoveKnowledgeBaseTemplateUriRequest generates a "aws/request.Request" representing the
  2337  // client's request for the RemoveKnowledgeBaseTemplateUri operation. The "output" return
  2338  // value will be populated with the request's response once the request completes
  2339  // successfully.
  2340  //
  2341  // Use "Send" method on the returned Request to send the API call to the service.
  2342  // the "output" return value is not valid until after Send returns without error.
  2343  //
  2344  // See RemoveKnowledgeBaseTemplateUri for more information on using the RemoveKnowledgeBaseTemplateUri
  2345  // API call, and error handling.
  2346  //
  2347  // This method is useful when you want to inject custom logic or configuration
  2348  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2349  //
  2350  //
  2351  //    // Example sending a request using the RemoveKnowledgeBaseTemplateUriRequest method.
  2352  //    req, resp := client.RemoveKnowledgeBaseTemplateUriRequest(params)
  2353  //
  2354  //    err := req.Send()
  2355  //    if err == nil { // resp is now filled
  2356  //        fmt.Println(resp)
  2357  //    }
  2358  //
  2359  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/RemoveKnowledgeBaseTemplateUri
  2360  func (c *ConnectWisdomService) RemoveKnowledgeBaseTemplateUriRequest(input *RemoveKnowledgeBaseTemplateUriInput) (req *request.Request, output *RemoveKnowledgeBaseTemplateUriOutput) {
  2361  	op := &request.Operation{
  2362  		Name:       opRemoveKnowledgeBaseTemplateUri,
  2363  		HTTPMethod: "DELETE",
  2364  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/templateUri",
  2365  	}
  2366  
  2367  	if input == nil {
  2368  		input = &RemoveKnowledgeBaseTemplateUriInput{}
  2369  	}
  2370  
  2371  	output = &RemoveKnowledgeBaseTemplateUriOutput{}
  2372  	req = c.newRequest(op, input, output)
  2373  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2374  	return
  2375  }
  2376  
  2377  // RemoveKnowledgeBaseTemplateUri API operation for Amazon Connect Wisdom Service.
  2378  //
  2379  // Removes a URI template from a knowledge base.
  2380  //
  2381  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2382  // with awserr.Error's Code and Message methods to get detailed information about
  2383  // the error.
  2384  //
  2385  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2386  // API operation RemoveKnowledgeBaseTemplateUri for usage and error information.
  2387  //
  2388  // Returned Error Types:
  2389  //   * ValidationException
  2390  //   The input fails to satisfy the constraints specified by an AWS service.
  2391  //
  2392  //   * AccessDeniedException
  2393  //   You do not have sufficient access to perform this action.
  2394  //
  2395  //   * ResourceNotFoundException
  2396  //   The specified resource does not exist.
  2397  //
  2398  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/RemoveKnowledgeBaseTemplateUri
  2399  func (c *ConnectWisdomService) RemoveKnowledgeBaseTemplateUri(input *RemoveKnowledgeBaseTemplateUriInput) (*RemoveKnowledgeBaseTemplateUriOutput, error) {
  2400  	req, out := c.RemoveKnowledgeBaseTemplateUriRequest(input)
  2401  	return out, req.Send()
  2402  }
  2403  
  2404  // RemoveKnowledgeBaseTemplateUriWithContext is the same as RemoveKnowledgeBaseTemplateUri with the addition of
  2405  // the ability to pass a context and additional request options.
  2406  //
  2407  // See RemoveKnowledgeBaseTemplateUri for details on how to use this API operation.
  2408  //
  2409  // The context must be non-nil and will be used for request cancellation. If
  2410  // the context is nil a panic will occur. In the future the SDK may create
  2411  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2412  // for more information on using Contexts.
  2413  func (c *ConnectWisdomService) RemoveKnowledgeBaseTemplateUriWithContext(ctx aws.Context, input *RemoveKnowledgeBaseTemplateUriInput, opts ...request.Option) (*RemoveKnowledgeBaseTemplateUriOutput, error) {
  2414  	req, out := c.RemoveKnowledgeBaseTemplateUriRequest(input)
  2415  	req.SetContext(ctx)
  2416  	req.ApplyOptions(opts...)
  2417  	return out, req.Send()
  2418  }
  2419  
  2420  const opSearchContent = "SearchContent"
  2421  
  2422  // SearchContentRequest generates a "aws/request.Request" representing the
  2423  // client's request for the SearchContent operation. The "output" return
  2424  // value will be populated with the request's response once the request completes
  2425  // successfully.
  2426  //
  2427  // Use "Send" method on the returned Request to send the API call to the service.
  2428  // the "output" return value is not valid until after Send returns without error.
  2429  //
  2430  // See SearchContent for more information on using the SearchContent
  2431  // API call, and error handling.
  2432  //
  2433  // This method is useful when you want to inject custom logic or configuration
  2434  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2435  //
  2436  //
  2437  //    // Example sending a request using the SearchContentRequest method.
  2438  //    req, resp := client.SearchContentRequest(params)
  2439  //
  2440  //    err := req.Send()
  2441  //    if err == nil { // resp is now filled
  2442  //        fmt.Println(resp)
  2443  //    }
  2444  //
  2445  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/SearchContent
  2446  func (c *ConnectWisdomService) SearchContentRequest(input *SearchContentInput) (req *request.Request, output *SearchContentOutput) {
  2447  	op := &request.Operation{
  2448  		Name:       opSearchContent,
  2449  		HTTPMethod: "POST",
  2450  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/search",
  2451  		Paginator: &request.Paginator{
  2452  			InputTokens:     []string{"nextToken"},
  2453  			OutputTokens:    []string{"nextToken"},
  2454  			LimitToken:      "maxResults",
  2455  			TruncationToken: "",
  2456  		},
  2457  	}
  2458  
  2459  	if input == nil {
  2460  		input = &SearchContentInput{}
  2461  	}
  2462  
  2463  	output = &SearchContentOutput{}
  2464  	req = c.newRequest(op, input, output)
  2465  	return
  2466  }
  2467  
  2468  // SearchContent API operation for Amazon Connect Wisdom Service.
  2469  //
  2470  // Searches for content in a specified knowledge base. Can be used to get a
  2471  // specific content resource by its name.
  2472  //
  2473  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2474  // with awserr.Error's Code and Message methods to get detailed information about
  2475  // the error.
  2476  //
  2477  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2478  // API operation SearchContent for usage and error information.
  2479  //
  2480  // Returned Error Types:
  2481  //   * ValidationException
  2482  //   The input fails to satisfy the constraints specified by an AWS service.
  2483  //
  2484  //   * AccessDeniedException
  2485  //   You do not have sufficient access to perform this action.
  2486  //
  2487  //   * ResourceNotFoundException
  2488  //   The specified resource does not exist.
  2489  //
  2490  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/SearchContent
  2491  func (c *ConnectWisdomService) SearchContent(input *SearchContentInput) (*SearchContentOutput, error) {
  2492  	req, out := c.SearchContentRequest(input)
  2493  	return out, req.Send()
  2494  }
  2495  
  2496  // SearchContentWithContext is the same as SearchContent with the addition of
  2497  // the ability to pass a context and additional request options.
  2498  //
  2499  // See SearchContent for details on how to use this API operation.
  2500  //
  2501  // The context must be non-nil and will be used for request cancellation. If
  2502  // the context is nil a panic will occur. In the future the SDK may create
  2503  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2504  // for more information on using Contexts.
  2505  func (c *ConnectWisdomService) SearchContentWithContext(ctx aws.Context, input *SearchContentInput, opts ...request.Option) (*SearchContentOutput, error) {
  2506  	req, out := c.SearchContentRequest(input)
  2507  	req.SetContext(ctx)
  2508  	req.ApplyOptions(opts...)
  2509  	return out, req.Send()
  2510  }
  2511  
  2512  // SearchContentPages iterates over the pages of a SearchContent operation,
  2513  // calling the "fn" function with the response data for each page. To stop
  2514  // iterating, return false from the fn function.
  2515  //
  2516  // See SearchContent method for more information on how to use this operation.
  2517  //
  2518  // Note: This operation can generate multiple requests to a service.
  2519  //
  2520  //    // Example iterating over at most 3 pages of a SearchContent operation.
  2521  //    pageNum := 0
  2522  //    err := client.SearchContentPages(params,
  2523  //        func(page *connectwisdomservice.SearchContentOutput, lastPage bool) bool {
  2524  //            pageNum++
  2525  //            fmt.Println(page)
  2526  //            return pageNum <= 3
  2527  //        })
  2528  //
  2529  func (c *ConnectWisdomService) SearchContentPages(input *SearchContentInput, fn func(*SearchContentOutput, bool) bool) error {
  2530  	return c.SearchContentPagesWithContext(aws.BackgroundContext(), input, fn)
  2531  }
  2532  
  2533  // SearchContentPagesWithContext same as SearchContentPages except
  2534  // it takes a Context and allows setting request options on the pages.
  2535  //
  2536  // The context must be non-nil and will be used for request cancellation. If
  2537  // the context is nil a panic will occur. In the future the SDK may create
  2538  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2539  // for more information on using Contexts.
  2540  func (c *ConnectWisdomService) SearchContentPagesWithContext(ctx aws.Context, input *SearchContentInput, fn func(*SearchContentOutput, bool) bool, opts ...request.Option) error {
  2541  	p := request.Pagination{
  2542  		NewRequest: func() (*request.Request, error) {
  2543  			var inCpy *SearchContentInput
  2544  			if input != nil {
  2545  				tmp := *input
  2546  				inCpy = &tmp
  2547  			}
  2548  			req, _ := c.SearchContentRequest(inCpy)
  2549  			req.SetContext(ctx)
  2550  			req.ApplyOptions(opts...)
  2551  			return req, nil
  2552  		},
  2553  	}
  2554  
  2555  	for p.Next() {
  2556  		if !fn(p.Page().(*SearchContentOutput), !p.HasNextPage()) {
  2557  			break
  2558  		}
  2559  	}
  2560  
  2561  	return p.Err()
  2562  }
  2563  
  2564  const opSearchSessions = "SearchSessions"
  2565  
  2566  // SearchSessionsRequest generates a "aws/request.Request" representing the
  2567  // client's request for the SearchSessions operation. The "output" return
  2568  // value will be populated with the request's response once the request completes
  2569  // successfully.
  2570  //
  2571  // Use "Send" method on the returned Request to send the API call to the service.
  2572  // the "output" return value is not valid until after Send returns without error.
  2573  //
  2574  // See SearchSessions for more information on using the SearchSessions
  2575  // API call, and error handling.
  2576  //
  2577  // This method is useful when you want to inject custom logic or configuration
  2578  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2579  //
  2580  //
  2581  //    // Example sending a request using the SearchSessionsRequest method.
  2582  //    req, resp := client.SearchSessionsRequest(params)
  2583  //
  2584  //    err := req.Send()
  2585  //    if err == nil { // resp is now filled
  2586  //        fmt.Println(resp)
  2587  //    }
  2588  //
  2589  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/SearchSessions
  2590  func (c *ConnectWisdomService) SearchSessionsRequest(input *SearchSessionsInput) (req *request.Request, output *SearchSessionsOutput) {
  2591  	op := &request.Operation{
  2592  		Name:       opSearchSessions,
  2593  		HTTPMethod: "POST",
  2594  		HTTPPath:   "/assistants/{assistantId}/searchSessions",
  2595  		Paginator: &request.Paginator{
  2596  			InputTokens:     []string{"nextToken"},
  2597  			OutputTokens:    []string{"nextToken"},
  2598  			LimitToken:      "maxResults",
  2599  			TruncationToken: "",
  2600  		},
  2601  	}
  2602  
  2603  	if input == nil {
  2604  		input = &SearchSessionsInput{}
  2605  	}
  2606  
  2607  	output = &SearchSessionsOutput{}
  2608  	req = c.newRequest(op, input, output)
  2609  	return
  2610  }
  2611  
  2612  // SearchSessions API operation for Amazon Connect Wisdom Service.
  2613  //
  2614  // Searches for sessions.
  2615  //
  2616  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2617  // with awserr.Error's Code and Message methods to get detailed information about
  2618  // the error.
  2619  //
  2620  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2621  // API operation SearchSessions for usage and error information.
  2622  //
  2623  // Returned Error Types:
  2624  //   * ValidationException
  2625  //   The input fails to satisfy the constraints specified by an AWS service.
  2626  //
  2627  //   * AccessDeniedException
  2628  //   You do not have sufficient access to perform this action.
  2629  //
  2630  //   * ResourceNotFoundException
  2631  //   The specified resource does not exist.
  2632  //
  2633  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/SearchSessions
  2634  func (c *ConnectWisdomService) SearchSessions(input *SearchSessionsInput) (*SearchSessionsOutput, error) {
  2635  	req, out := c.SearchSessionsRequest(input)
  2636  	return out, req.Send()
  2637  }
  2638  
  2639  // SearchSessionsWithContext is the same as SearchSessions with the addition of
  2640  // the ability to pass a context and additional request options.
  2641  //
  2642  // See SearchSessions for details on how to use this API operation.
  2643  //
  2644  // The context must be non-nil and will be used for request cancellation. If
  2645  // the context is nil a panic will occur. In the future the SDK may create
  2646  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2647  // for more information on using Contexts.
  2648  func (c *ConnectWisdomService) SearchSessionsWithContext(ctx aws.Context, input *SearchSessionsInput, opts ...request.Option) (*SearchSessionsOutput, error) {
  2649  	req, out := c.SearchSessionsRequest(input)
  2650  	req.SetContext(ctx)
  2651  	req.ApplyOptions(opts...)
  2652  	return out, req.Send()
  2653  }
  2654  
  2655  // SearchSessionsPages iterates over the pages of a SearchSessions operation,
  2656  // calling the "fn" function with the response data for each page. To stop
  2657  // iterating, return false from the fn function.
  2658  //
  2659  // See SearchSessions method for more information on how to use this operation.
  2660  //
  2661  // Note: This operation can generate multiple requests to a service.
  2662  //
  2663  //    // Example iterating over at most 3 pages of a SearchSessions operation.
  2664  //    pageNum := 0
  2665  //    err := client.SearchSessionsPages(params,
  2666  //        func(page *connectwisdomservice.SearchSessionsOutput, lastPage bool) bool {
  2667  //            pageNum++
  2668  //            fmt.Println(page)
  2669  //            return pageNum <= 3
  2670  //        })
  2671  //
  2672  func (c *ConnectWisdomService) SearchSessionsPages(input *SearchSessionsInput, fn func(*SearchSessionsOutput, bool) bool) error {
  2673  	return c.SearchSessionsPagesWithContext(aws.BackgroundContext(), input, fn)
  2674  }
  2675  
  2676  // SearchSessionsPagesWithContext same as SearchSessionsPages except
  2677  // it takes a Context and allows setting request options on the pages.
  2678  //
  2679  // The context must be non-nil and will be used for request cancellation. If
  2680  // the context is nil a panic will occur. In the future the SDK may create
  2681  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2682  // for more information on using Contexts.
  2683  func (c *ConnectWisdomService) SearchSessionsPagesWithContext(ctx aws.Context, input *SearchSessionsInput, fn func(*SearchSessionsOutput, bool) bool, opts ...request.Option) error {
  2684  	p := request.Pagination{
  2685  		NewRequest: func() (*request.Request, error) {
  2686  			var inCpy *SearchSessionsInput
  2687  			if input != nil {
  2688  				tmp := *input
  2689  				inCpy = &tmp
  2690  			}
  2691  			req, _ := c.SearchSessionsRequest(inCpy)
  2692  			req.SetContext(ctx)
  2693  			req.ApplyOptions(opts...)
  2694  			return req, nil
  2695  		},
  2696  	}
  2697  
  2698  	for p.Next() {
  2699  		if !fn(p.Page().(*SearchSessionsOutput), !p.HasNextPage()) {
  2700  			break
  2701  		}
  2702  	}
  2703  
  2704  	return p.Err()
  2705  }
  2706  
  2707  const opStartContentUpload = "StartContentUpload"
  2708  
  2709  // StartContentUploadRequest generates a "aws/request.Request" representing the
  2710  // client's request for the StartContentUpload operation. The "output" return
  2711  // value will be populated with the request's response once the request completes
  2712  // successfully.
  2713  //
  2714  // Use "Send" method on the returned Request to send the API call to the service.
  2715  // the "output" return value is not valid until after Send returns without error.
  2716  //
  2717  // See StartContentUpload for more information on using the StartContentUpload
  2718  // API call, and error handling.
  2719  //
  2720  // This method is useful when you want to inject custom logic or configuration
  2721  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2722  //
  2723  //
  2724  //    // Example sending a request using the StartContentUploadRequest method.
  2725  //    req, resp := client.StartContentUploadRequest(params)
  2726  //
  2727  //    err := req.Send()
  2728  //    if err == nil { // resp is now filled
  2729  //        fmt.Println(resp)
  2730  //    }
  2731  //
  2732  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/StartContentUpload
  2733  func (c *ConnectWisdomService) StartContentUploadRequest(input *StartContentUploadInput) (req *request.Request, output *StartContentUploadOutput) {
  2734  	op := &request.Operation{
  2735  		Name:       opStartContentUpload,
  2736  		HTTPMethod: "POST",
  2737  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/upload",
  2738  	}
  2739  
  2740  	if input == nil {
  2741  		input = &StartContentUploadInput{}
  2742  	}
  2743  
  2744  	output = &StartContentUploadOutput{}
  2745  	req = c.newRequest(op, input, output)
  2746  	return
  2747  }
  2748  
  2749  // StartContentUpload API operation for Amazon Connect Wisdom Service.
  2750  //
  2751  // Get a URL to upload content to a knowledge base. To upload content, first
  2752  // make a PUT request to the returned URL with your file, making sure to include
  2753  // the required headers. Then use CreateContent (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_CreateContent.html)
  2754  // to finalize the content creation process or UpdateContent (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_UpdateContent.html)
  2755  // to modify an existing resource. You can only upload content to a knowledge
  2756  // base of type CUSTOM.
  2757  //
  2758  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2759  // with awserr.Error's Code and Message methods to get detailed information about
  2760  // the error.
  2761  //
  2762  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2763  // API operation StartContentUpload for usage and error information.
  2764  //
  2765  // Returned Error Types:
  2766  //   * ValidationException
  2767  //   The input fails to satisfy the constraints specified by an AWS service.
  2768  //
  2769  //   * AccessDeniedException
  2770  //   You do not have sufficient access to perform this action.
  2771  //
  2772  //   * ResourceNotFoundException
  2773  //   The specified resource does not exist.
  2774  //
  2775  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/StartContentUpload
  2776  func (c *ConnectWisdomService) StartContentUpload(input *StartContentUploadInput) (*StartContentUploadOutput, error) {
  2777  	req, out := c.StartContentUploadRequest(input)
  2778  	return out, req.Send()
  2779  }
  2780  
  2781  // StartContentUploadWithContext is the same as StartContentUpload with the addition of
  2782  // the ability to pass a context and additional request options.
  2783  //
  2784  // See StartContentUpload for details on how to use this API operation.
  2785  //
  2786  // The context must be non-nil and will be used for request cancellation. If
  2787  // the context is nil a panic will occur. In the future the SDK may create
  2788  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2789  // for more information on using Contexts.
  2790  func (c *ConnectWisdomService) StartContentUploadWithContext(ctx aws.Context, input *StartContentUploadInput, opts ...request.Option) (*StartContentUploadOutput, error) {
  2791  	req, out := c.StartContentUploadRequest(input)
  2792  	req.SetContext(ctx)
  2793  	req.ApplyOptions(opts...)
  2794  	return out, req.Send()
  2795  }
  2796  
  2797  const opTagResource = "TagResource"
  2798  
  2799  // TagResourceRequest generates a "aws/request.Request" representing the
  2800  // client's request for the TagResource operation. The "output" return
  2801  // value will be populated with the request's response once the request completes
  2802  // successfully.
  2803  //
  2804  // Use "Send" method on the returned Request to send the API call to the service.
  2805  // the "output" return value is not valid until after Send returns without error.
  2806  //
  2807  // See TagResource for more information on using the TagResource
  2808  // API call, and error handling.
  2809  //
  2810  // This method is useful when you want to inject custom logic or configuration
  2811  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2812  //
  2813  //
  2814  //    // Example sending a request using the TagResourceRequest method.
  2815  //    req, resp := client.TagResourceRequest(params)
  2816  //
  2817  //    err := req.Send()
  2818  //    if err == nil { // resp is now filled
  2819  //        fmt.Println(resp)
  2820  //    }
  2821  //
  2822  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/TagResource
  2823  func (c *ConnectWisdomService) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  2824  	op := &request.Operation{
  2825  		Name:       opTagResource,
  2826  		HTTPMethod: "POST",
  2827  		HTTPPath:   "/tags/{resourceArn}",
  2828  	}
  2829  
  2830  	if input == nil {
  2831  		input = &TagResourceInput{}
  2832  	}
  2833  
  2834  	output = &TagResourceOutput{}
  2835  	req = c.newRequest(op, input, output)
  2836  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2837  	return
  2838  }
  2839  
  2840  // TagResource API operation for Amazon Connect Wisdom Service.
  2841  //
  2842  // Adds the specified tags to the specified resource.
  2843  //
  2844  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2845  // with awserr.Error's Code and Message methods to get detailed information about
  2846  // the error.
  2847  //
  2848  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2849  // API operation TagResource for usage and error information.
  2850  //
  2851  // Returned Error Types:
  2852  //   * TooManyTagsException
  2853  //   Amazon Connect Wisdom throws this exception if you have too many tags in
  2854  //   your tag set.
  2855  //
  2856  //   * ResourceNotFoundException
  2857  //   The specified resource does not exist.
  2858  //
  2859  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/TagResource
  2860  func (c *ConnectWisdomService) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  2861  	req, out := c.TagResourceRequest(input)
  2862  	return out, req.Send()
  2863  }
  2864  
  2865  // TagResourceWithContext is the same as TagResource with the addition of
  2866  // the ability to pass a context and additional request options.
  2867  //
  2868  // See TagResource for details on how to use this API operation.
  2869  //
  2870  // The context must be non-nil and will be used for request cancellation. If
  2871  // the context is nil a panic will occur. In the future the SDK may create
  2872  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2873  // for more information on using Contexts.
  2874  func (c *ConnectWisdomService) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  2875  	req, out := c.TagResourceRequest(input)
  2876  	req.SetContext(ctx)
  2877  	req.ApplyOptions(opts...)
  2878  	return out, req.Send()
  2879  }
  2880  
  2881  const opUntagResource = "UntagResource"
  2882  
  2883  // UntagResourceRequest generates a "aws/request.Request" representing the
  2884  // client's request for the UntagResource operation. The "output" return
  2885  // value will be populated with the request's response once the request completes
  2886  // successfully.
  2887  //
  2888  // Use "Send" method on the returned Request to send the API call to the service.
  2889  // the "output" return value is not valid until after Send returns without error.
  2890  //
  2891  // See UntagResource for more information on using the UntagResource
  2892  // API call, and error handling.
  2893  //
  2894  // This method is useful when you want to inject custom logic or configuration
  2895  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2896  //
  2897  //
  2898  //    // Example sending a request using the UntagResourceRequest method.
  2899  //    req, resp := client.UntagResourceRequest(params)
  2900  //
  2901  //    err := req.Send()
  2902  //    if err == nil { // resp is now filled
  2903  //        fmt.Println(resp)
  2904  //    }
  2905  //
  2906  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/UntagResource
  2907  func (c *ConnectWisdomService) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  2908  	op := &request.Operation{
  2909  		Name:       opUntagResource,
  2910  		HTTPMethod: "DELETE",
  2911  		HTTPPath:   "/tags/{resourceArn}",
  2912  	}
  2913  
  2914  	if input == nil {
  2915  		input = &UntagResourceInput{}
  2916  	}
  2917  
  2918  	output = &UntagResourceOutput{}
  2919  	req = c.newRequest(op, input, output)
  2920  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2921  	return
  2922  }
  2923  
  2924  // UntagResource API operation for Amazon Connect Wisdom Service.
  2925  //
  2926  // Removes the specified tags from the specified resource.
  2927  //
  2928  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2929  // with awserr.Error's Code and Message methods to get detailed information about
  2930  // the error.
  2931  //
  2932  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  2933  // API operation UntagResource for usage and error information.
  2934  //
  2935  // Returned Error Types:
  2936  //   * ResourceNotFoundException
  2937  //   The specified resource does not exist.
  2938  //
  2939  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/UntagResource
  2940  func (c *ConnectWisdomService) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  2941  	req, out := c.UntagResourceRequest(input)
  2942  	return out, req.Send()
  2943  }
  2944  
  2945  // UntagResourceWithContext is the same as UntagResource with the addition of
  2946  // the ability to pass a context and additional request options.
  2947  //
  2948  // See UntagResource for details on how to use this API operation.
  2949  //
  2950  // The context must be non-nil and will be used for request cancellation. If
  2951  // the context is nil a panic will occur. In the future the SDK may create
  2952  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2953  // for more information on using Contexts.
  2954  func (c *ConnectWisdomService) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  2955  	req, out := c.UntagResourceRequest(input)
  2956  	req.SetContext(ctx)
  2957  	req.ApplyOptions(opts...)
  2958  	return out, req.Send()
  2959  }
  2960  
  2961  const opUpdateContent = "UpdateContent"
  2962  
  2963  // UpdateContentRequest generates a "aws/request.Request" representing the
  2964  // client's request for the UpdateContent operation. The "output" return
  2965  // value will be populated with the request's response once the request completes
  2966  // successfully.
  2967  //
  2968  // Use "Send" method on the returned Request to send the API call to the service.
  2969  // the "output" return value is not valid until after Send returns without error.
  2970  //
  2971  // See UpdateContent for more information on using the UpdateContent
  2972  // API call, and error handling.
  2973  //
  2974  // This method is useful when you want to inject custom logic or configuration
  2975  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2976  //
  2977  //
  2978  //    // Example sending a request using the UpdateContentRequest method.
  2979  //    req, resp := client.UpdateContentRequest(params)
  2980  //
  2981  //    err := req.Send()
  2982  //    if err == nil { // resp is now filled
  2983  //        fmt.Println(resp)
  2984  //    }
  2985  //
  2986  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/UpdateContent
  2987  func (c *ConnectWisdomService) UpdateContentRequest(input *UpdateContentInput) (req *request.Request, output *UpdateContentOutput) {
  2988  	op := &request.Operation{
  2989  		Name:       opUpdateContent,
  2990  		HTTPMethod: "POST",
  2991  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}",
  2992  	}
  2993  
  2994  	if input == nil {
  2995  		input = &UpdateContentInput{}
  2996  	}
  2997  
  2998  	output = &UpdateContentOutput{}
  2999  	req = c.newRequest(op, input, output)
  3000  	return
  3001  }
  3002  
  3003  // UpdateContent API operation for Amazon Connect Wisdom Service.
  3004  //
  3005  // Updates information about the content.
  3006  //
  3007  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3008  // with awserr.Error's Code and Message methods to get detailed information about
  3009  // the error.
  3010  //
  3011  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  3012  // API operation UpdateContent for usage and error information.
  3013  //
  3014  // Returned Error Types:
  3015  //   * ValidationException
  3016  //   The input fails to satisfy the constraints specified by an AWS service.
  3017  //
  3018  //   * AccessDeniedException
  3019  //   You do not have sufficient access to perform this action.
  3020  //
  3021  //   * PreconditionFailedException
  3022  //   The provided revisionId does not match, indicating the content has been modified
  3023  //   since it was last read.
  3024  //
  3025  //   * ResourceNotFoundException
  3026  //   The specified resource does not exist.
  3027  //
  3028  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/UpdateContent
  3029  func (c *ConnectWisdomService) UpdateContent(input *UpdateContentInput) (*UpdateContentOutput, error) {
  3030  	req, out := c.UpdateContentRequest(input)
  3031  	return out, req.Send()
  3032  }
  3033  
  3034  // UpdateContentWithContext is the same as UpdateContent with the addition of
  3035  // the ability to pass a context and additional request options.
  3036  //
  3037  // See UpdateContent for details on how to use this API operation.
  3038  //
  3039  // The context must be non-nil and will be used for request cancellation. If
  3040  // the context is nil a panic will occur. In the future the SDK may create
  3041  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3042  // for more information on using Contexts.
  3043  func (c *ConnectWisdomService) UpdateContentWithContext(ctx aws.Context, input *UpdateContentInput, opts ...request.Option) (*UpdateContentOutput, error) {
  3044  	req, out := c.UpdateContentRequest(input)
  3045  	req.SetContext(ctx)
  3046  	req.ApplyOptions(opts...)
  3047  	return out, req.Send()
  3048  }
  3049  
  3050  const opUpdateKnowledgeBaseTemplateUri = "UpdateKnowledgeBaseTemplateUri"
  3051  
  3052  // UpdateKnowledgeBaseTemplateUriRequest generates a "aws/request.Request" representing the
  3053  // client's request for the UpdateKnowledgeBaseTemplateUri operation. The "output" return
  3054  // value will be populated with the request's response once the request completes
  3055  // successfully.
  3056  //
  3057  // Use "Send" method on the returned Request to send the API call to the service.
  3058  // the "output" return value is not valid until after Send returns without error.
  3059  //
  3060  // See UpdateKnowledgeBaseTemplateUri for more information on using the UpdateKnowledgeBaseTemplateUri
  3061  // API call, and error handling.
  3062  //
  3063  // This method is useful when you want to inject custom logic or configuration
  3064  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3065  //
  3066  //
  3067  //    // Example sending a request using the UpdateKnowledgeBaseTemplateUriRequest method.
  3068  //    req, resp := client.UpdateKnowledgeBaseTemplateUriRequest(params)
  3069  //
  3070  //    err := req.Send()
  3071  //    if err == nil { // resp is now filled
  3072  //        fmt.Println(resp)
  3073  //    }
  3074  //
  3075  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/UpdateKnowledgeBaseTemplateUri
  3076  func (c *ConnectWisdomService) UpdateKnowledgeBaseTemplateUriRequest(input *UpdateKnowledgeBaseTemplateUriInput) (req *request.Request, output *UpdateKnowledgeBaseTemplateUriOutput) {
  3077  	op := &request.Operation{
  3078  		Name:       opUpdateKnowledgeBaseTemplateUri,
  3079  		HTTPMethod: "POST",
  3080  		HTTPPath:   "/knowledgeBases/{knowledgeBaseId}/templateUri",
  3081  	}
  3082  
  3083  	if input == nil {
  3084  		input = &UpdateKnowledgeBaseTemplateUriInput{}
  3085  	}
  3086  
  3087  	output = &UpdateKnowledgeBaseTemplateUriOutput{}
  3088  	req = c.newRequest(op, input, output)
  3089  	return
  3090  }
  3091  
  3092  // UpdateKnowledgeBaseTemplateUri API operation for Amazon Connect Wisdom Service.
  3093  //
  3094  // Updates the template URI of a knowledge base. This is only supported for
  3095  // knowledge bases of type EXTERNAL. Include a single variable in ${variable}
  3096  // format; this interpolated by Wisdom using ingested content. For example,
  3097  // if you ingest a Salesforce article, it has an Id value, and you can set the
  3098  // template URI to https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*/view.
  3099  //
  3100  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3101  // with awserr.Error's Code and Message methods to get detailed information about
  3102  // the error.
  3103  //
  3104  // See the AWS API reference guide for Amazon Connect Wisdom Service's
  3105  // API operation UpdateKnowledgeBaseTemplateUri for usage and error information.
  3106  //
  3107  // Returned Error Types:
  3108  //   * ValidationException
  3109  //   The input fails to satisfy the constraints specified by an AWS service.
  3110  //
  3111  //   * AccessDeniedException
  3112  //   You do not have sufficient access to perform this action.
  3113  //
  3114  //   * ResourceNotFoundException
  3115  //   The specified resource does not exist.
  3116  //
  3117  // See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/UpdateKnowledgeBaseTemplateUri
  3118  func (c *ConnectWisdomService) UpdateKnowledgeBaseTemplateUri(input *UpdateKnowledgeBaseTemplateUriInput) (*UpdateKnowledgeBaseTemplateUriOutput, error) {
  3119  	req, out := c.UpdateKnowledgeBaseTemplateUriRequest(input)
  3120  	return out, req.Send()
  3121  }
  3122  
  3123  // UpdateKnowledgeBaseTemplateUriWithContext is the same as UpdateKnowledgeBaseTemplateUri with the addition of
  3124  // the ability to pass a context and additional request options.
  3125  //
  3126  // See UpdateKnowledgeBaseTemplateUri for details on how to use this API operation.
  3127  //
  3128  // The context must be non-nil and will be used for request cancellation. If
  3129  // the context is nil a panic will occur. In the future the SDK may create
  3130  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3131  // for more information on using Contexts.
  3132  func (c *ConnectWisdomService) UpdateKnowledgeBaseTemplateUriWithContext(ctx aws.Context, input *UpdateKnowledgeBaseTemplateUriInput, opts ...request.Option) (*UpdateKnowledgeBaseTemplateUriOutput, error) {
  3133  	req, out := c.UpdateKnowledgeBaseTemplateUriRequest(input)
  3134  	req.SetContext(ctx)
  3135  	req.ApplyOptions(opts...)
  3136  	return out, req.Send()
  3137  }
  3138  
  3139  // You do not have sufficient access to perform this action.
  3140  type AccessDeniedException struct {
  3141  	_            struct{}                  `type:"structure"`
  3142  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  3143  
  3144  	Message_ *string `locationName:"message" type:"string"`
  3145  }
  3146  
  3147  // String returns the string representation.
  3148  //
  3149  // API parameter values that are decorated as "sensitive" in the API will not
  3150  // be included in the string output. The member name will be present, but the
  3151  // value will be replaced with "sensitive".
  3152  func (s AccessDeniedException) String() string {
  3153  	return awsutil.Prettify(s)
  3154  }
  3155  
  3156  // GoString returns the string representation.
  3157  //
  3158  // API parameter values that are decorated as "sensitive" in the API will not
  3159  // be included in the string output. The member name will be present, but the
  3160  // value will be replaced with "sensitive".
  3161  func (s AccessDeniedException) GoString() string {
  3162  	return s.String()
  3163  }
  3164  
  3165  func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
  3166  	return &AccessDeniedException{
  3167  		RespMetadata: v,
  3168  	}
  3169  }
  3170  
  3171  // Code returns the exception type name.
  3172  func (s *AccessDeniedException) Code() string {
  3173  	return "AccessDeniedException"
  3174  }
  3175  
  3176  // Message returns the exception's message.
  3177  func (s *AccessDeniedException) Message() string {
  3178  	if s.Message_ != nil {
  3179  		return *s.Message_
  3180  	}
  3181  	return ""
  3182  }
  3183  
  3184  // OrigErr always returns nil, satisfies awserr.Error interface.
  3185  func (s *AccessDeniedException) OrigErr() error {
  3186  	return nil
  3187  }
  3188  
  3189  func (s *AccessDeniedException) Error() string {
  3190  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  3191  }
  3192  
  3193  // Status code returns the HTTP status code for the request's response error.
  3194  func (s *AccessDeniedException) StatusCode() int {
  3195  	return s.RespMetadata.StatusCode
  3196  }
  3197  
  3198  // RequestID returns the service's response RequestID for request.
  3199  func (s *AccessDeniedException) RequestID() string {
  3200  	return s.RespMetadata.RequestID
  3201  }
  3202  
  3203  // Configuration information for Amazon AppIntegrations to automatically ingest
  3204  // content.
  3205  type AppIntegrationsConfiguration struct {
  3206  	_ struct{} `type:"structure"`
  3207  
  3208  	// The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to
  3209  	// use for ingesting content.
  3210  	//
  3211  	// AppIntegrationArn is a required field
  3212  	AppIntegrationArn *string `locationName:"appIntegrationArn" min:"1" type:"string" required:"true"`
  3213  
  3214  	// The fields from the source that are made available to your agents in Wisdom.
  3215  	//
  3216  	//    * For Salesforce (https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_objects_knowledge__kav.htm),
  3217  	//    you must include at least Id, ArticleNumber, VersionNumber, Title, PublishStatus,
  3218  	//    and IsDeleted.
  3219  	//
  3220  	//    * For ServiceNow (https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/knowledge-management-api),
  3221  	//    you must include at least number, short_description, sys_mod_count, workflow_state,
  3222  	//    and active.
  3223  	//
  3224  	// Make sure to include additional field(s); these are indexed and used to source
  3225  	// recommendations.
  3226  	//
  3227  	// ObjectFields is a required field
  3228  	ObjectFields []*string `locationName:"objectFields" min:"1" type:"list" required:"true"`
  3229  }
  3230  
  3231  // String returns the string representation.
  3232  //
  3233  // API parameter values that are decorated as "sensitive" in the API will not
  3234  // be included in the string output. The member name will be present, but the
  3235  // value will be replaced with "sensitive".
  3236  func (s AppIntegrationsConfiguration) String() string {
  3237  	return awsutil.Prettify(s)
  3238  }
  3239  
  3240  // GoString returns the string representation.
  3241  //
  3242  // API parameter values that are decorated as "sensitive" in the API will not
  3243  // be included in the string output. The member name will be present, but the
  3244  // value will be replaced with "sensitive".
  3245  func (s AppIntegrationsConfiguration) GoString() string {
  3246  	return s.String()
  3247  }
  3248  
  3249  // Validate inspects the fields of the type to determine if they are valid.
  3250  func (s *AppIntegrationsConfiguration) Validate() error {
  3251  	invalidParams := request.ErrInvalidParams{Context: "AppIntegrationsConfiguration"}
  3252  	if s.AppIntegrationArn == nil {
  3253  		invalidParams.Add(request.NewErrParamRequired("AppIntegrationArn"))
  3254  	}
  3255  	if s.AppIntegrationArn != nil && len(*s.AppIntegrationArn) < 1 {
  3256  		invalidParams.Add(request.NewErrParamMinLen("AppIntegrationArn", 1))
  3257  	}
  3258  	if s.ObjectFields == nil {
  3259  		invalidParams.Add(request.NewErrParamRequired("ObjectFields"))
  3260  	}
  3261  	if s.ObjectFields != nil && len(s.ObjectFields) < 1 {
  3262  		invalidParams.Add(request.NewErrParamMinLen("ObjectFields", 1))
  3263  	}
  3264  
  3265  	if invalidParams.Len() > 0 {
  3266  		return invalidParams
  3267  	}
  3268  	return nil
  3269  }
  3270  
  3271  // SetAppIntegrationArn sets the AppIntegrationArn field's value.
  3272  func (s *AppIntegrationsConfiguration) SetAppIntegrationArn(v string) *AppIntegrationsConfiguration {
  3273  	s.AppIntegrationArn = &v
  3274  	return s
  3275  }
  3276  
  3277  // SetObjectFields sets the ObjectFields field's value.
  3278  func (s *AppIntegrationsConfiguration) SetObjectFields(v []*string) *AppIntegrationsConfiguration {
  3279  	s.ObjectFields = v
  3280  	return s
  3281  }
  3282  
  3283  // Information about the assistant association.
  3284  type AssistantAssociationData struct {
  3285  	_ struct{} `type:"structure"`
  3286  
  3287  	// The Amazon Resource Name (ARN) of the Wisdom assistant
  3288  	//
  3289  	// AssistantArn is a required field
  3290  	AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"`
  3291  
  3292  	// The Amazon Resource Name (ARN) of the assistant association.
  3293  	//
  3294  	// AssistantAssociationArn is a required field
  3295  	AssistantAssociationArn *string `locationName:"assistantAssociationArn" type:"string" required:"true"`
  3296  
  3297  	// The identifier of the assistant association.
  3298  	//
  3299  	// AssistantAssociationId is a required field
  3300  	AssistantAssociationId *string `locationName:"assistantAssociationId" type:"string" required:"true"`
  3301  
  3302  	// The identifier of the Wisdom assistant.
  3303  	//
  3304  	// AssistantId is a required field
  3305  	AssistantId *string `locationName:"assistantId" type:"string" required:"true"`
  3306  
  3307  	// A union type that currently has a single argument, the knowledge base ID.
  3308  	//
  3309  	// AssociationData is a required field
  3310  	AssociationData *AssistantAssociationOutputData `locationName:"associationData" type:"structure" required:"true"`
  3311  
  3312  	// The type of association.
  3313  	//
  3314  	// AssociationType is a required field
  3315  	AssociationType *string `locationName:"associationType" type:"string" required:"true" enum:"AssociationType"`
  3316  
  3317  	// The tags used to organize, track, or control access for this resource.
  3318  	Tags map[string]*string `locationName:"tags" type:"map"`
  3319  }
  3320  
  3321  // String returns the string representation.
  3322  //
  3323  // API parameter values that are decorated as "sensitive" in the API will not
  3324  // be included in the string output. The member name will be present, but the
  3325  // value will be replaced with "sensitive".
  3326  func (s AssistantAssociationData) String() string {
  3327  	return awsutil.Prettify(s)
  3328  }
  3329  
  3330  // GoString returns the string representation.
  3331  //
  3332  // API parameter values that are decorated as "sensitive" in the API will not
  3333  // be included in the string output. The member name will be present, but the
  3334  // value will be replaced with "sensitive".
  3335  func (s AssistantAssociationData) GoString() string {
  3336  	return s.String()
  3337  }
  3338  
  3339  // SetAssistantArn sets the AssistantArn field's value.
  3340  func (s *AssistantAssociationData) SetAssistantArn(v string) *AssistantAssociationData {
  3341  	s.AssistantArn = &v
  3342  	return s
  3343  }
  3344  
  3345  // SetAssistantAssociationArn sets the AssistantAssociationArn field's value.
  3346  func (s *AssistantAssociationData) SetAssistantAssociationArn(v string) *AssistantAssociationData {
  3347  	s.AssistantAssociationArn = &v
  3348  	return s
  3349  }
  3350  
  3351  // SetAssistantAssociationId sets the AssistantAssociationId field's value.
  3352  func (s *AssistantAssociationData) SetAssistantAssociationId(v string) *AssistantAssociationData {
  3353  	s.AssistantAssociationId = &v
  3354  	return s
  3355  }
  3356  
  3357  // SetAssistantId sets the AssistantId field's value.
  3358  func (s *AssistantAssociationData) SetAssistantId(v string) *AssistantAssociationData {
  3359  	s.AssistantId = &v
  3360  	return s
  3361  }
  3362  
  3363  // SetAssociationData sets the AssociationData field's value.
  3364  func (s *AssistantAssociationData) SetAssociationData(v *AssistantAssociationOutputData) *AssistantAssociationData {
  3365  	s.AssociationData = v
  3366  	return s
  3367  }
  3368  
  3369  // SetAssociationType sets the AssociationType field's value.
  3370  func (s *AssistantAssociationData) SetAssociationType(v string) *AssistantAssociationData {
  3371  	s.AssociationType = &v
  3372  	return s
  3373  }
  3374  
  3375  // SetTags sets the Tags field's value.
  3376  func (s *AssistantAssociationData) SetTags(v map[string]*string) *AssistantAssociationData {
  3377  	s.Tags = v
  3378  	return s
  3379  }
  3380  
  3381  // The data that is input into Wisdom as a result of the assistant association.
  3382  type AssistantAssociationInputData struct {
  3383  	_ struct{} `type:"structure"`
  3384  
  3385  	// The the identifier of the knowledge base.
  3386  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"`
  3387  }
  3388  
  3389  // String returns the string representation.
  3390  //
  3391  // API parameter values that are decorated as "sensitive" in the API will not
  3392  // be included in the string output. The member name will be present, but the
  3393  // value will be replaced with "sensitive".
  3394  func (s AssistantAssociationInputData) String() string {
  3395  	return awsutil.Prettify(s)
  3396  }
  3397  
  3398  // GoString returns the string representation.
  3399  //
  3400  // API parameter values that are decorated as "sensitive" in the API will not
  3401  // be included in the string output. The member name will be present, but the
  3402  // value will be replaced with "sensitive".
  3403  func (s AssistantAssociationInputData) GoString() string {
  3404  	return s.String()
  3405  }
  3406  
  3407  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  3408  func (s *AssistantAssociationInputData) SetKnowledgeBaseId(v string) *AssistantAssociationInputData {
  3409  	s.KnowledgeBaseId = &v
  3410  	return s
  3411  }
  3412  
  3413  // The data that is output as a result of the assistant association.
  3414  type AssistantAssociationOutputData struct {
  3415  	_ struct{} `type:"structure"`
  3416  
  3417  	// The knowledge base where output data is sent.
  3418  	KnowledgeBaseAssociation *KnowledgeBaseAssociationData `locationName:"knowledgeBaseAssociation" type:"structure"`
  3419  }
  3420  
  3421  // String returns the string representation.
  3422  //
  3423  // API parameter values that are decorated as "sensitive" in the API will not
  3424  // be included in the string output. The member name will be present, but the
  3425  // value will be replaced with "sensitive".
  3426  func (s AssistantAssociationOutputData) String() string {
  3427  	return awsutil.Prettify(s)
  3428  }
  3429  
  3430  // GoString returns the string representation.
  3431  //
  3432  // API parameter values that are decorated as "sensitive" in the API will not
  3433  // be included in the string output. The member name will be present, but the
  3434  // value will be replaced with "sensitive".
  3435  func (s AssistantAssociationOutputData) GoString() string {
  3436  	return s.String()
  3437  }
  3438  
  3439  // SetKnowledgeBaseAssociation sets the KnowledgeBaseAssociation field's value.
  3440  func (s *AssistantAssociationOutputData) SetKnowledgeBaseAssociation(v *KnowledgeBaseAssociationData) *AssistantAssociationOutputData {
  3441  	s.KnowledgeBaseAssociation = v
  3442  	return s
  3443  }
  3444  
  3445  // Summary information about the assistant association.
  3446  type AssistantAssociationSummary struct {
  3447  	_ struct{} `type:"structure"`
  3448  
  3449  	// The Amazon Resource Name (ARN) of the Wisdom assistant
  3450  	//
  3451  	// AssistantArn is a required field
  3452  	AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"`
  3453  
  3454  	// The Amazon Resource Name (ARN) of the assistant association.
  3455  	//
  3456  	// AssistantAssociationArn is a required field
  3457  	AssistantAssociationArn *string `locationName:"assistantAssociationArn" type:"string" required:"true"`
  3458  
  3459  	// The identifier of the assistant association.
  3460  	//
  3461  	// AssistantAssociationId is a required field
  3462  	AssistantAssociationId *string `locationName:"assistantAssociationId" type:"string" required:"true"`
  3463  
  3464  	// The identifier of the Wisdom assistant.
  3465  	//
  3466  	// AssistantId is a required field
  3467  	AssistantId *string `locationName:"assistantId" type:"string" required:"true"`
  3468  
  3469  	// The association data.
  3470  	//
  3471  	// AssociationData is a required field
  3472  	AssociationData *AssistantAssociationOutputData `locationName:"associationData" type:"structure" required:"true"`
  3473  
  3474  	// The type of association.
  3475  	//
  3476  	// AssociationType is a required field
  3477  	AssociationType *string `locationName:"associationType" type:"string" required:"true" enum:"AssociationType"`
  3478  
  3479  	// The tags used to organize, track, or control access for this resource.
  3480  	Tags map[string]*string `locationName:"tags" type:"map"`
  3481  }
  3482  
  3483  // String returns the string representation.
  3484  //
  3485  // API parameter values that are decorated as "sensitive" in the API will not
  3486  // be included in the string output. The member name will be present, but the
  3487  // value will be replaced with "sensitive".
  3488  func (s AssistantAssociationSummary) String() string {
  3489  	return awsutil.Prettify(s)
  3490  }
  3491  
  3492  // GoString returns the string representation.
  3493  //
  3494  // API parameter values that are decorated as "sensitive" in the API will not
  3495  // be included in the string output. The member name will be present, but the
  3496  // value will be replaced with "sensitive".
  3497  func (s AssistantAssociationSummary) GoString() string {
  3498  	return s.String()
  3499  }
  3500  
  3501  // SetAssistantArn sets the AssistantArn field's value.
  3502  func (s *AssistantAssociationSummary) SetAssistantArn(v string) *AssistantAssociationSummary {
  3503  	s.AssistantArn = &v
  3504  	return s
  3505  }
  3506  
  3507  // SetAssistantAssociationArn sets the AssistantAssociationArn field's value.
  3508  func (s *AssistantAssociationSummary) SetAssistantAssociationArn(v string) *AssistantAssociationSummary {
  3509  	s.AssistantAssociationArn = &v
  3510  	return s
  3511  }
  3512  
  3513  // SetAssistantAssociationId sets the AssistantAssociationId field's value.
  3514  func (s *AssistantAssociationSummary) SetAssistantAssociationId(v string) *AssistantAssociationSummary {
  3515  	s.AssistantAssociationId = &v
  3516  	return s
  3517  }
  3518  
  3519  // SetAssistantId sets the AssistantId field's value.
  3520  func (s *AssistantAssociationSummary) SetAssistantId(v string) *AssistantAssociationSummary {
  3521  	s.AssistantId = &v
  3522  	return s
  3523  }
  3524  
  3525  // SetAssociationData sets the AssociationData field's value.
  3526  func (s *AssistantAssociationSummary) SetAssociationData(v *AssistantAssociationOutputData) *AssistantAssociationSummary {
  3527  	s.AssociationData = v
  3528  	return s
  3529  }
  3530  
  3531  // SetAssociationType sets the AssociationType field's value.
  3532  func (s *AssistantAssociationSummary) SetAssociationType(v string) *AssistantAssociationSummary {
  3533  	s.AssociationType = &v
  3534  	return s
  3535  }
  3536  
  3537  // SetTags sets the Tags field's value.
  3538  func (s *AssistantAssociationSummary) SetTags(v map[string]*string) *AssistantAssociationSummary {
  3539  	s.Tags = v
  3540  	return s
  3541  }
  3542  
  3543  // The assistant data.
  3544  type AssistantData struct {
  3545  	_ struct{} `type:"structure"`
  3546  
  3547  	// The Amazon Resource Name (ARN) of the Wisdom assistant
  3548  	//
  3549  	// AssistantArn is a required field
  3550  	AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"`
  3551  
  3552  	// The identifier of the Wisdom assistant.
  3553  	//
  3554  	// AssistantId is a required field
  3555  	AssistantId *string `locationName:"assistantId" type:"string" required:"true"`
  3556  
  3557  	// The description.
  3558  	Description *string `locationName:"description" min:"1" type:"string"`
  3559  
  3560  	// The name.
  3561  	//
  3562  	// Name is a required field
  3563  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3564  
  3565  	// The KMS key used for encryption.
  3566  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"`
  3567  
  3568  	// The status of the assistant.
  3569  	//
  3570  	// Status is a required field
  3571  	Status *string `locationName:"status" type:"string" required:"true" enum:"AssistantStatus"`
  3572  
  3573  	// The tags used to organize, track, or control access for this resource.
  3574  	Tags map[string]*string `locationName:"tags" type:"map"`
  3575  
  3576  	// The type of assistant.
  3577  	//
  3578  	// Type is a required field
  3579  	Type *string `locationName:"type" type:"string" required:"true" enum:"AssistantType"`
  3580  }
  3581  
  3582  // String returns the string representation.
  3583  //
  3584  // API parameter values that are decorated as "sensitive" in the API will not
  3585  // be included in the string output. The member name will be present, but the
  3586  // value will be replaced with "sensitive".
  3587  func (s AssistantData) String() string {
  3588  	return awsutil.Prettify(s)
  3589  }
  3590  
  3591  // GoString returns the string representation.
  3592  //
  3593  // API parameter values that are decorated as "sensitive" in the API will not
  3594  // be included in the string output. The member name will be present, but the
  3595  // value will be replaced with "sensitive".
  3596  func (s AssistantData) GoString() string {
  3597  	return s.String()
  3598  }
  3599  
  3600  // SetAssistantArn sets the AssistantArn field's value.
  3601  func (s *AssistantData) SetAssistantArn(v string) *AssistantData {
  3602  	s.AssistantArn = &v
  3603  	return s
  3604  }
  3605  
  3606  // SetAssistantId sets the AssistantId field's value.
  3607  func (s *AssistantData) SetAssistantId(v string) *AssistantData {
  3608  	s.AssistantId = &v
  3609  	return s
  3610  }
  3611  
  3612  // SetDescription sets the Description field's value.
  3613  func (s *AssistantData) SetDescription(v string) *AssistantData {
  3614  	s.Description = &v
  3615  	return s
  3616  }
  3617  
  3618  // SetName sets the Name field's value.
  3619  func (s *AssistantData) SetName(v string) *AssistantData {
  3620  	s.Name = &v
  3621  	return s
  3622  }
  3623  
  3624  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  3625  func (s *AssistantData) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *AssistantData {
  3626  	s.ServerSideEncryptionConfiguration = v
  3627  	return s
  3628  }
  3629  
  3630  // SetStatus sets the Status field's value.
  3631  func (s *AssistantData) SetStatus(v string) *AssistantData {
  3632  	s.Status = &v
  3633  	return s
  3634  }
  3635  
  3636  // SetTags sets the Tags field's value.
  3637  func (s *AssistantData) SetTags(v map[string]*string) *AssistantData {
  3638  	s.Tags = v
  3639  	return s
  3640  }
  3641  
  3642  // SetType sets the Type field's value.
  3643  func (s *AssistantData) SetType(v string) *AssistantData {
  3644  	s.Type = &v
  3645  	return s
  3646  }
  3647  
  3648  // Summary information about the assistant.
  3649  type AssistantSummary struct {
  3650  	_ struct{} `type:"structure"`
  3651  
  3652  	// The Amazon Resource Name (ARN) of the Wisdom assistant
  3653  	//
  3654  	// AssistantArn is a required field
  3655  	AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"`
  3656  
  3657  	// The identifier of the Wisdom assistant.
  3658  	//
  3659  	// AssistantId is a required field
  3660  	AssistantId *string `locationName:"assistantId" type:"string" required:"true"`
  3661  
  3662  	// The description of the assistant.
  3663  	Description *string `locationName:"description" min:"1" type:"string"`
  3664  
  3665  	// The name of the assistant.
  3666  	//
  3667  	// Name is a required field
  3668  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3669  
  3670  	// The KMS key used for encryption.
  3671  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"`
  3672  
  3673  	// The status of the assistant.
  3674  	//
  3675  	// Status is a required field
  3676  	Status *string `locationName:"status" type:"string" required:"true" enum:"AssistantStatus"`
  3677  
  3678  	// The tags used to organize, track, or control access for this resource.
  3679  	Tags map[string]*string `locationName:"tags" type:"map"`
  3680  
  3681  	// The type of the assistant.
  3682  	//
  3683  	// Type is a required field
  3684  	Type *string `locationName:"type" type:"string" required:"true" enum:"AssistantType"`
  3685  }
  3686  
  3687  // String returns the string representation.
  3688  //
  3689  // API parameter values that are decorated as "sensitive" in the API will not
  3690  // be included in the string output. The member name will be present, but the
  3691  // value will be replaced with "sensitive".
  3692  func (s AssistantSummary) String() string {
  3693  	return awsutil.Prettify(s)
  3694  }
  3695  
  3696  // GoString returns the string representation.
  3697  //
  3698  // API parameter values that are decorated as "sensitive" in the API will not
  3699  // be included in the string output. The member name will be present, but the
  3700  // value will be replaced with "sensitive".
  3701  func (s AssistantSummary) GoString() string {
  3702  	return s.String()
  3703  }
  3704  
  3705  // SetAssistantArn sets the AssistantArn field's value.
  3706  func (s *AssistantSummary) SetAssistantArn(v string) *AssistantSummary {
  3707  	s.AssistantArn = &v
  3708  	return s
  3709  }
  3710  
  3711  // SetAssistantId sets the AssistantId field's value.
  3712  func (s *AssistantSummary) SetAssistantId(v string) *AssistantSummary {
  3713  	s.AssistantId = &v
  3714  	return s
  3715  }
  3716  
  3717  // SetDescription sets the Description field's value.
  3718  func (s *AssistantSummary) SetDescription(v string) *AssistantSummary {
  3719  	s.Description = &v
  3720  	return s
  3721  }
  3722  
  3723  // SetName sets the Name field's value.
  3724  func (s *AssistantSummary) SetName(v string) *AssistantSummary {
  3725  	s.Name = &v
  3726  	return s
  3727  }
  3728  
  3729  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  3730  func (s *AssistantSummary) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *AssistantSummary {
  3731  	s.ServerSideEncryptionConfiguration = v
  3732  	return s
  3733  }
  3734  
  3735  // SetStatus sets the Status field's value.
  3736  func (s *AssistantSummary) SetStatus(v string) *AssistantSummary {
  3737  	s.Status = &v
  3738  	return s
  3739  }
  3740  
  3741  // SetTags sets the Tags field's value.
  3742  func (s *AssistantSummary) SetTags(v map[string]*string) *AssistantSummary {
  3743  	s.Tags = v
  3744  	return s
  3745  }
  3746  
  3747  // SetType sets the Type field's value.
  3748  func (s *AssistantSummary) SetType(v string) *AssistantSummary {
  3749  	s.Type = &v
  3750  	return s
  3751  }
  3752  
  3753  // The request could not be processed because of conflict in the current state
  3754  // of the resource. For example, if you're using a Create API (such as CreateAssistant)
  3755  // that accepts name, a conflicting resource (usually with the same name) is
  3756  // being created or mutated.
  3757  type ConflictException struct {
  3758  	_            struct{}                  `type:"structure"`
  3759  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  3760  
  3761  	Message_ *string `locationName:"message" type:"string"`
  3762  }
  3763  
  3764  // String returns the string representation.
  3765  //
  3766  // API parameter values that are decorated as "sensitive" in the API will not
  3767  // be included in the string output. The member name will be present, but the
  3768  // value will be replaced with "sensitive".
  3769  func (s ConflictException) String() string {
  3770  	return awsutil.Prettify(s)
  3771  }
  3772  
  3773  // GoString returns the string representation.
  3774  //
  3775  // API parameter values that are decorated as "sensitive" in the API will not
  3776  // be included in the string output. The member name will be present, but the
  3777  // value will be replaced with "sensitive".
  3778  func (s ConflictException) GoString() string {
  3779  	return s.String()
  3780  }
  3781  
  3782  func newErrorConflictException(v protocol.ResponseMetadata) error {
  3783  	return &ConflictException{
  3784  		RespMetadata: v,
  3785  	}
  3786  }
  3787  
  3788  // Code returns the exception type name.
  3789  func (s *ConflictException) Code() string {
  3790  	return "ConflictException"
  3791  }
  3792  
  3793  // Message returns the exception's message.
  3794  func (s *ConflictException) Message() string {
  3795  	if s.Message_ != nil {
  3796  		return *s.Message_
  3797  	}
  3798  	return ""
  3799  }
  3800  
  3801  // OrigErr always returns nil, satisfies awserr.Error interface.
  3802  func (s *ConflictException) OrigErr() error {
  3803  	return nil
  3804  }
  3805  
  3806  func (s *ConflictException) Error() string {
  3807  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  3808  }
  3809  
  3810  // Status code returns the HTTP status code for the request's response error.
  3811  func (s *ConflictException) StatusCode() int {
  3812  	return s.RespMetadata.StatusCode
  3813  }
  3814  
  3815  // RequestID returns the service's response RequestID for request.
  3816  func (s *ConflictException) RequestID() string {
  3817  	return s.RespMetadata.RequestID
  3818  }
  3819  
  3820  // Information about the content.
  3821  type ContentData struct {
  3822  	_ struct{} `type:"structure"`
  3823  
  3824  	// The Amazon Resource Name (ARN) of the content.
  3825  	//
  3826  	// ContentArn is a required field
  3827  	ContentArn *string `locationName:"contentArn" type:"string" required:"true"`
  3828  
  3829  	// The identifier of the content.
  3830  	//
  3831  	// ContentId is a required field
  3832  	ContentId *string `locationName:"contentId" type:"string" required:"true"`
  3833  
  3834  	// The media type of the content.
  3835  	//
  3836  	// ContentType is a required field
  3837  	ContentType *string `locationName:"contentType" type:"string" required:"true"`
  3838  
  3839  	// The Amazon Resource Name (ARN) of the knowledge base.
  3840  	//
  3841  	// KnowledgeBaseArn is a required field
  3842  	KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"`
  3843  
  3844  	// The the identifier of the knowledge base.
  3845  	//
  3846  	// KnowledgeBaseId is a required field
  3847  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"`
  3848  
  3849  	// The URI of the content.
  3850  	LinkOutUri *string `locationName:"linkOutUri" min:"1" type:"string"`
  3851  
  3852  	// A key/value map to store attributes without affecting tagging or recommendations.
  3853  	// For example, when synchronizing data between an external system and Wisdom,
  3854  	// you can store an external version identifier as metadata to utilize for determining
  3855  	// drift.
  3856  	//
  3857  	// Metadata is a required field
  3858  	Metadata map[string]*string `locationName:"metadata" type:"map" required:"true"`
  3859  
  3860  	// The name of the content.
  3861  	//
  3862  	// Name is a required field
  3863  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3864  
  3865  	// The identifier of the content revision.
  3866  	//
  3867  	// RevisionId is a required field
  3868  	RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"`
  3869  
  3870  	// The status of the content.
  3871  	//
  3872  	// Status is a required field
  3873  	Status *string `locationName:"status" type:"string" required:"true" enum:"ContentStatus"`
  3874  
  3875  	// The tags used to organize, track, or control access for this resource.
  3876  	Tags map[string]*string `locationName:"tags" type:"map"`
  3877  
  3878  	// The title of the content.
  3879  	//
  3880  	// Title is a required field
  3881  	Title *string `locationName:"title" min:"1" type:"string" required:"true"`
  3882  
  3883  	// The URL of the content.
  3884  	//
  3885  	// Url is a sensitive parameter and its value will be
  3886  	// replaced with "sensitive" in string returned by ContentData's
  3887  	// String and GoString methods.
  3888  	//
  3889  	// Url is a required field
  3890  	Url *string `locationName:"url" min:"1" type:"string" required:"true" sensitive:"true"`
  3891  
  3892  	// The expiration time of the URL as an epoch timestamp.
  3893  	//
  3894  	// UrlExpiry is a required field
  3895  	UrlExpiry *time.Time `locationName:"urlExpiry" type:"timestamp" timestampFormat:"unixTimestamp" required:"true"`
  3896  }
  3897  
  3898  // String returns the string representation.
  3899  //
  3900  // API parameter values that are decorated as "sensitive" in the API will not
  3901  // be included in the string output. The member name will be present, but the
  3902  // value will be replaced with "sensitive".
  3903  func (s ContentData) String() string {
  3904  	return awsutil.Prettify(s)
  3905  }
  3906  
  3907  // GoString returns the string representation.
  3908  //
  3909  // API parameter values that are decorated as "sensitive" in the API will not
  3910  // be included in the string output. The member name will be present, but the
  3911  // value will be replaced with "sensitive".
  3912  func (s ContentData) GoString() string {
  3913  	return s.String()
  3914  }
  3915  
  3916  // SetContentArn sets the ContentArn field's value.
  3917  func (s *ContentData) SetContentArn(v string) *ContentData {
  3918  	s.ContentArn = &v
  3919  	return s
  3920  }
  3921  
  3922  // SetContentId sets the ContentId field's value.
  3923  func (s *ContentData) SetContentId(v string) *ContentData {
  3924  	s.ContentId = &v
  3925  	return s
  3926  }
  3927  
  3928  // SetContentType sets the ContentType field's value.
  3929  func (s *ContentData) SetContentType(v string) *ContentData {
  3930  	s.ContentType = &v
  3931  	return s
  3932  }
  3933  
  3934  // SetKnowledgeBaseArn sets the KnowledgeBaseArn field's value.
  3935  func (s *ContentData) SetKnowledgeBaseArn(v string) *ContentData {
  3936  	s.KnowledgeBaseArn = &v
  3937  	return s
  3938  }
  3939  
  3940  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  3941  func (s *ContentData) SetKnowledgeBaseId(v string) *ContentData {
  3942  	s.KnowledgeBaseId = &v
  3943  	return s
  3944  }
  3945  
  3946  // SetLinkOutUri sets the LinkOutUri field's value.
  3947  func (s *ContentData) SetLinkOutUri(v string) *ContentData {
  3948  	s.LinkOutUri = &v
  3949  	return s
  3950  }
  3951  
  3952  // SetMetadata sets the Metadata field's value.
  3953  func (s *ContentData) SetMetadata(v map[string]*string) *ContentData {
  3954  	s.Metadata = v
  3955  	return s
  3956  }
  3957  
  3958  // SetName sets the Name field's value.
  3959  func (s *ContentData) SetName(v string) *ContentData {
  3960  	s.Name = &v
  3961  	return s
  3962  }
  3963  
  3964  // SetRevisionId sets the RevisionId field's value.
  3965  func (s *ContentData) SetRevisionId(v string) *ContentData {
  3966  	s.RevisionId = &v
  3967  	return s
  3968  }
  3969  
  3970  // SetStatus sets the Status field's value.
  3971  func (s *ContentData) SetStatus(v string) *ContentData {
  3972  	s.Status = &v
  3973  	return s
  3974  }
  3975  
  3976  // SetTags sets the Tags field's value.
  3977  func (s *ContentData) SetTags(v map[string]*string) *ContentData {
  3978  	s.Tags = v
  3979  	return s
  3980  }
  3981  
  3982  // SetTitle sets the Title field's value.
  3983  func (s *ContentData) SetTitle(v string) *ContentData {
  3984  	s.Title = &v
  3985  	return s
  3986  }
  3987  
  3988  // SetUrl sets the Url field's value.
  3989  func (s *ContentData) SetUrl(v string) *ContentData {
  3990  	s.Url = &v
  3991  	return s
  3992  }
  3993  
  3994  // SetUrlExpiry sets the UrlExpiry field's value.
  3995  func (s *ContentData) SetUrlExpiry(v time.Time) *ContentData {
  3996  	s.UrlExpiry = &v
  3997  	return s
  3998  }
  3999  
  4000  // Reference information about the content.
  4001  type ContentReference struct {
  4002  	_ struct{} `type:"structure"`
  4003  
  4004  	// The Amazon Resource Name (ARN) of the content.
  4005  	ContentArn *string `locationName:"contentArn" type:"string"`
  4006  
  4007  	// The identifier of the content.
  4008  	ContentId *string `locationName:"contentId" type:"string"`
  4009  
  4010  	// The Amazon Resource Name (ARN) of the knowledge base.
  4011  	KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string"`
  4012  
  4013  	// The the identifier of the knowledge base.
  4014  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"`
  4015  }
  4016  
  4017  // String returns the string representation.
  4018  //
  4019  // API parameter values that are decorated as "sensitive" in the API will not
  4020  // be included in the string output. The member name will be present, but the
  4021  // value will be replaced with "sensitive".
  4022  func (s ContentReference) String() string {
  4023  	return awsutil.Prettify(s)
  4024  }
  4025  
  4026  // GoString returns the string representation.
  4027  //
  4028  // API parameter values that are decorated as "sensitive" in the API will not
  4029  // be included in the string output. The member name will be present, but the
  4030  // value will be replaced with "sensitive".
  4031  func (s ContentReference) GoString() string {
  4032  	return s.String()
  4033  }
  4034  
  4035  // SetContentArn sets the ContentArn field's value.
  4036  func (s *ContentReference) SetContentArn(v string) *ContentReference {
  4037  	s.ContentArn = &v
  4038  	return s
  4039  }
  4040  
  4041  // SetContentId sets the ContentId field's value.
  4042  func (s *ContentReference) SetContentId(v string) *ContentReference {
  4043  	s.ContentId = &v
  4044  	return s
  4045  }
  4046  
  4047  // SetKnowledgeBaseArn sets the KnowledgeBaseArn field's value.
  4048  func (s *ContentReference) SetKnowledgeBaseArn(v string) *ContentReference {
  4049  	s.KnowledgeBaseArn = &v
  4050  	return s
  4051  }
  4052  
  4053  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  4054  func (s *ContentReference) SetKnowledgeBaseId(v string) *ContentReference {
  4055  	s.KnowledgeBaseId = &v
  4056  	return s
  4057  }
  4058  
  4059  // Summary information about the content.
  4060  type ContentSummary struct {
  4061  	_ struct{} `type:"structure"`
  4062  
  4063  	// The Amazon Resource Name (ARN) of the content.
  4064  	//
  4065  	// ContentArn is a required field
  4066  	ContentArn *string `locationName:"contentArn" type:"string" required:"true"`
  4067  
  4068  	// The identifier of the content.
  4069  	//
  4070  	// ContentId is a required field
  4071  	ContentId *string `locationName:"contentId" type:"string" required:"true"`
  4072  
  4073  	// The media type of the content.
  4074  	//
  4075  	// ContentType is a required field
  4076  	ContentType *string `locationName:"contentType" type:"string" required:"true"`
  4077  
  4078  	// The Amazon Resource Name (ARN) of the knowledge base.
  4079  	//
  4080  	// KnowledgeBaseArn is a required field
  4081  	KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"`
  4082  
  4083  	// The the identifier of the knowledge base.
  4084  	//
  4085  	// KnowledgeBaseId is a required field
  4086  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"`
  4087  
  4088  	// A key/value map to store attributes without affecting tagging or recommendations.
  4089  	// For example, when synchronizing data between an external system and Wisdom,
  4090  	// you can store an external version identifier as metadata to utilize for determining
  4091  	// drift.
  4092  	//
  4093  	// Metadata is a required field
  4094  	Metadata map[string]*string `locationName:"metadata" type:"map" required:"true"`
  4095  
  4096  	// The name of the content.
  4097  	//
  4098  	// Name is a required field
  4099  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4100  
  4101  	// The identifier of the revision of the content.
  4102  	//
  4103  	// RevisionId is a required field
  4104  	RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"`
  4105  
  4106  	// The status of the content.
  4107  	//
  4108  	// Status is a required field
  4109  	Status *string `locationName:"status" type:"string" required:"true" enum:"ContentStatus"`
  4110  
  4111  	// The tags used to organize, track, or control access for this resource.
  4112  	Tags map[string]*string `locationName:"tags" type:"map"`
  4113  
  4114  	// The title of the content.
  4115  	//
  4116  	// Title is a required field
  4117  	Title *string `locationName:"title" min:"1" type:"string" required:"true"`
  4118  }
  4119  
  4120  // String returns the string representation.
  4121  //
  4122  // API parameter values that are decorated as "sensitive" in the API will not
  4123  // be included in the string output. The member name will be present, but the
  4124  // value will be replaced with "sensitive".
  4125  func (s ContentSummary) String() string {
  4126  	return awsutil.Prettify(s)
  4127  }
  4128  
  4129  // GoString returns the string representation.
  4130  //
  4131  // API parameter values that are decorated as "sensitive" in the API will not
  4132  // be included in the string output. The member name will be present, but the
  4133  // value will be replaced with "sensitive".
  4134  func (s ContentSummary) GoString() string {
  4135  	return s.String()
  4136  }
  4137  
  4138  // SetContentArn sets the ContentArn field's value.
  4139  func (s *ContentSummary) SetContentArn(v string) *ContentSummary {
  4140  	s.ContentArn = &v
  4141  	return s
  4142  }
  4143  
  4144  // SetContentId sets the ContentId field's value.
  4145  func (s *ContentSummary) SetContentId(v string) *ContentSummary {
  4146  	s.ContentId = &v
  4147  	return s
  4148  }
  4149  
  4150  // SetContentType sets the ContentType field's value.
  4151  func (s *ContentSummary) SetContentType(v string) *ContentSummary {
  4152  	s.ContentType = &v
  4153  	return s
  4154  }
  4155  
  4156  // SetKnowledgeBaseArn sets the KnowledgeBaseArn field's value.
  4157  func (s *ContentSummary) SetKnowledgeBaseArn(v string) *ContentSummary {
  4158  	s.KnowledgeBaseArn = &v
  4159  	return s
  4160  }
  4161  
  4162  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  4163  func (s *ContentSummary) SetKnowledgeBaseId(v string) *ContentSummary {
  4164  	s.KnowledgeBaseId = &v
  4165  	return s
  4166  }
  4167  
  4168  // SetMetadata sets the Metadata field's value.
  4169  func (s *ContentSummary) SetMetadata(v map[string]*string) *ContentSummary {
  4170  	s.Metadata = v
  4171  	return s
  4172  }
  4173  
  4174  // SetName sets the Name field's value.
  4175  func (s *ContentSummary) SetName(v string) *ContentSummary {
  4176  	s.Name = &v
  4177  	return s
  4178  }
  4179  
  4180  // SetRevisionId sets the RevisionId field's value.
  4181  func (s *ContentSummary) SetRevisionId(v string) *ContentSummary {
  4182  	s.RevisionId = &v
  4183  	return s
  4184  }
  4185  
  4186  // SetStatus sets the Status field's value.
  4187  func (s *ContentSummary) SetStatus(v string) *ContentSummary {
  4188  	s.Status = &v
  4189  	return s
  4190  }
  4191  
  4192  // SetTags sets the Tags field's value.
  4193  func (s *ContentSummary) SetTags(v map[string]*string) *ContentSummary {
  4194  	s.Tags = v
  4195  	return s
  4196  }
  4197  
  4198  // SetTitle sets the Title field's value.
  4199  func (s *ContentSummary) SetTitle(v string) *ContentSummary {
  4200  	s.Title = &v
  4201  	return s
  4202  }
  4203  
  4204  type CreateAssistantAssociationInput struct {
  4205  	_ struct{} `type:"structure"`
  4206  
  4207  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  4208  	// URLs cannot contain the ARN.
  4209  	//
  4210  	// AssistantId is a required field
  4211  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  4212  
  4213  	// The identifier of the associated resource.
  4214  	//
  4215  	// Association is a required field
  4216  	Association *AssistantAssociationInputData `locationName:"association" type:"structure" required:"true"`
  4217  
  4218  	// The type of association.
  4219  	//
  4220  	// AssociationType is a required field
  4221  	AssociationType *string `locationName:"associationType" type:"string" required:"true" enum:"AssociationType"`
  4222  
  4223  	// A unique, case-sensitive identifier that you provide to ensure the idempotency
  4224  	// of the request.
  4225  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  4226  
  4227  	// The tags used to organize, track, or control access for this resource.
  4228  	Tags map[string]*string `locationName:"tags" type:"map"`
  4229  }
  4230  
  4231  // String returns the string representation.
  4232  //
  4233  // API parameter values that are decorated as "sensitive" in the API will not
  4234  // be included in the string output. The member name will be present, but the
  4235  // value will be replaced with "sensitive".
  4236  func (s CreateAssistantAssociationInput) String() string {
  4237  	return awsutil.Prettify(s)
  4238  }
  4239  
  4240  // GoString returns the string representation.
  4241  //
  4242  // API parameter values that are decorated as "sensitive" in the API will not
  4243  // be included in the string output. The member name will be present, but the
  4244  // value will be replaced with "sensitive".
  4245  func (s CreateAssistantAssociationInput) GoString() string {
  4246  	return s.String()
  4247  }
  4248  
  4249  // Validate inspects the fields of the type to determine if they are valid.
  4250  func (s *CreateAssistantAssociationInput) Validate() error {
  4251  	invalidParams := request.ErrInvalidParams{Context: "CreateAssistantAssociationInput"}
  4252  	if s.AssistantId == nil {
  4253  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  4254  	}
  4255  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  4256  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  4257  	}
  4258  	if s.Association == nil {
  4259  		invalidParams.Add(request.NewErrParamRequired("Association"))
  4260  	}
  4261  	if s.AssociationType == nil {
  4262  		invalidParams.Add(request.NewErrParamRequired("AssociationType"))
  4263  	}
  4264  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  4265  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  4266  	}
  4267  
  4268  	if invalidParams.Len() > 0 {
  4269  		return invalidParams
  4270  	}
  4271  	return nil
  4272  }
  4273  
  4274  // SetAssistantId sets the AssistantId field's value.
  4275  func (s *CreateAssistantAssociationInput) SetAssistantId(v string) *CreateAssistantAssociationInput {
  4276  	s.AssistantId = &v
  4277  	return s
  4278  }
  4279  
  4280  // SetAssociation sets the Association field's value.
  4281  func (s *CreateAssistantAssociationInput) SetAssociation(v *AssistantAssociationInputData) *CreateAssistantAssociationInput {
  4282  	s.Association = v
  4283  	return s
  4284  }
  4285  
  4286  // SetAssociationType sets the AssociationType field's value.
  4287  func (s *CreateAssistantAssociationInput) SetAssociationType(v string) *CreateAssistantAssociationInput {
  4288  	s.AssociationType = &v
  4289  	return s
  4290  }
  4291  
  4292  // SetClientToken sets the ClientToken field's value.
  4293  func (s *CreateAssistantAssociationInput) SetClientToken(v string) *CreateAssistantAssociationInput {
  4294  	s.ClientToken = &v
  4295  	return s
  4296  }
  4297  
  4298  // SetTags sets the Tags field's value.
  4299  func (s *CreateAssistantAssociationInput) SetTags(v map[string]*string) *CreateAssistantAssociationInput {
  4300  	s.Tags = v
  4301  	return s
  4302  }
  4303  
  4304  type CreateAssistantAssociationOutput struct {
  4305  	_ struct{} `type:"structure"`
  4306  
  4307  	// The assistant association.
  4308  	AssistantAssociation *AssistantAssociationData `locationName:"assistantAssociation" type:"structure"`
  4309  }
  4310  
  4311  // String returns the string representation.
  4312  //
  4313  // API parameter values that are decorated as "sensitive" in the API will not
  4314  // be included in the string output. The member name will be present, but the
  4315  // value will be replaced with "sensitive".
  4316  func (s CreateAssistantAssociationOutput) String() string {
  4317  	return awsutil.Prettify(s)
  4318  }
  4319  
  4320  // GoString returns the string representation.
  4321  //
  4322  // API parameter values that are decorated as "sensitive" in the API will not
  4323  // be included in the string output. The member name will be present, but the
  4324  // value will be replaced with "sensitive".
  4325  func (s CreateAssistantAssociationOutput) GoString() string {
  4326  	return s.String()
  4327  }
  4328  
  4329  // SetAssistantAssociation sets the AssistantAssociation field's value.
  4330  func (s *CreateAssistantAssociationOutput) SetAssistantAssociation(v *AssistantAssociationData) *CreateAssistantAssociationOutput {
  4331  	s.AssistantAssociation = v
  4332  	return s
  4333  }
  4334  
  4335  type CreateAssistantInput struct {
  4336  	_ struct{} `type:"structure"`
  4337  
  4338  	// A unique, case-sensitive identifier that you provide to ensure the idempotency
  4339  	// of the request.
  4340  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  4341  
  4342  	// The description of the assistant.
  4343  	Description *string `locationName:"description" min:"1" type:"string"`
  4344  
  4345  	// The name of the assistant.
  4346  	//
  4347  	// Name is a required field
  4348  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4349  
  4350  	// The KMS key used for encryption.
  4351  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"`
  4352  
  4353  	// The tags used to organize, track, or control access for this resource.
  4354  	Tags map[string]*string `locationName:"tags" type:"map"`
  4355  
  4356  	// The type of assistant.
  4357  	//
  4358  	// Type is a required field
  4359  	Type *string `locationName:"type" type:"string" required:"true" enum:"AssistantType"`
  4360  }
  4361  
  4362  // String returns the string representation.
  4363  //
  4364  // API parameter values that are decorated as "sensitive" in the API will not
  4365  // be included in the string output. The member name will be present, but the
  4366  // value will be replaced with "sensitive".
  4367  func (s CreateAssistantInput) String() string {
  4368  	return awsutil.Prettify(s)
  4369  }
  4370  
  4371  // GoString returns the string representation.
  4372  //
  4373  // API parameter values that are decorated as "sensitive" in the API will not
  4374  // be included in the string output. The member name will be present, but the
  4375  // value will be replaced with "sensitive".
  4376  func (s CreateAssistantInput) GoString() string {
  4377  	return s.String()
  4378  }
  4379  
  4380  // Validate inspects the fields of the type to determine if they are valid.
  4381  func (s *CreateAssistantInput) Validate() error {
  4382  	invalidParams := request.ErrInvalidParams{Context: "CreateAssistantInput"}
  4383  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  4384  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  4385  	}
  4386  	if s.Description != nil && len(*s.Description) < 1 {
  4387  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  4388  	}
  4389  	if s.Name == nil {
  4390  		invalidParams.Add(request.NewErrParamRequired("Name"))
  4391  	}
  4392  	if s.Name != nil && len(*s.Name) < 1 {
  4393  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4394  	}
  4395  	if s.Type == nil {
  4396  		invalidParams.Add(request.NewErrParamRequired("Type"))
  4397  	}
  4398  	if s.ServerSideEncryptionConfiguration != nil {
  4399  		if err := s.ServerSideEncryptionConfiguration.Validate(); err != nil {
  4400  			invalidParams.AddNested("ServerSideEncryptionConfiguration", err.(request.ErrInvalidParams))
  4401  		}
  4402  	}
  4403  
  4404  	if invalidParams.Len() > 0 {
  4405  		return invalidParams
  4406  	}
  4407  	return nil
  4408  }
  4409  
  4410  // SetClientToken sets the ClientToken field's value.
  4411  func (s *CreateAssistantInput) SetClientToken(v string) *CreateAssistantInput {
  4412  	s.ClientToken = &v
  4413  	return s
  4414  }
  4415  
  4416  // SetDescription sets the Description field's value.
  4417  func (s *CreateAssistantInput) SetDescription(v string) *CreateAssistantInput {
  4418  	s.Description = &v
  4419  	return s
  4420  }
  4421  
  4422  // SetName sets the Name field's value.
  4423  func (s *CreateAssistantInput) SetName(v string) *CreateAssistantInput {
  4424  	s.Name = &v
  4425  	return s
  4426  }
  4427  
  4428  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  4429  func (s *CreateAssistantInput) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *CreateAssistantInput {
  4430  	s.ServerSideEncryptionConfiguration = v
  4431  	return s
  4432  }
  4433  
  4434  // SetTags sets the Tags field's value.
  4435  func (s *CreateAssistantInput) SetTags(v map[string]*string) *CreateAssistantInput {
  4436  	s.Tags = v
  4437  	return s
  4438  }
  4439  
  4440  // SetType sets the Type field's value.
  4441  func (s *CreateAssistantInput) SetType(v string) *CreateAssistantInput {
  4442  	s.Type = &v
  4443  	return s
  4444  }
  4445  
  4446  type CreateAssistantOutput struct {
  4447  	_ struct{} `type:"structure"`
  4448  
  4449  	// Information about the assistant.
  4450  	Assistant *AssistantData `locationName:"assistant" type:"structure"`
  4451  }
  4452  
  4453  // String returns the string representation.
  4454  //
  4455  // API parameter values that are decorated as "sensitive" in the API will not
  4456  // be included in the string output. The member name will be present, but the
  4457  // value will be replaced with "sensitive".
  4458  func (s CreateAssistantOutput) String() string {
  4459  	return awsutil.Prettify(s)
  4460  }
  4461  
  4462  // GoString returns the string representation.
  4463  //
  4464  // API parameter values that are decorated as "sensitive" in the API will not
  4465  // be included in the string output. The member name will be present, but the
  4466  // value will be replaced with "sensitive".
  4467  func (s CreateAssistantOutput) GoString() string {
  4468  	return s.String()
  4469  }
  4470  
  4471  // SetAssistant sets the Assistant field's value.
  4472  func (s *CreateAssistantOutput) SetAssistant(v *AssistantData) *CreateAssistantOutput {
  4473  	s.Assistant = v
  4474  	return s
  4475  }
  4476  
  4477  type CreateContentInput struct {
  4478  	_ struct{} `type:"structure"`
  4479  
  4480  	// A unique, case-sensitive identifier that you provide to ensure the idempotency
  4481  	// of the request.
  4482  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  4483  
  4484  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  4485  	// URLs cannot contain the ARN.
  4486  	//
  4487  	// KnowledgeBaseId is a required field
  4488  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  4489  
  4490  	// A key/value map to store attributes without affecting tagging or recommendations.
  4491  	// For example, when synchronizing data between an external system and Wisdom,
  4492  	// you can store an external version identifier as metadata to utilize for determining
  4493  	// drift.
  4494  	Metadata map[string]*string `locationName:"metadata" type:"map"`
  4495  
  4496  	// The name of the content. Each piece of content in a knowledge base must have
  4497  	// a unique name. You can retrieve a piece of content using only its knowledge
  4498  	// base and its name with the SearchContent (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_SearchContent.html)
  4499  	// API.
  4500  	//
  4501  	// Name is a required field
  4502  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4503  
  4504  	// The URI you want to use for the article. If the knowledge base has a templateUri,
  4505  	// setting this argument overrides it for this piece of content.
  4506  	OverrideLinkOutUri *string `locationName:"overrideLinkOutUri" min:"1" type:"string"`
  4507  
  4508  	// The tags used to organize, track, or control access for this resource.
  4509  	Tags map[string]*string `locationName:"tags" type:"map"`
  4510  
  4511  	// The title of the content. If not set, the title is equal to the name.
  4512  	Title *string `locationName:"title" min:"1" type:"string"`
  4513  
  4514  	// A pointer to the uploaded asset. This value is returned by StartContentUpload
  4515  	// (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html).
  4516  	//
  4517  	// UploadId is a required field
  4518  	UploadId *string `locationName:"uploadId" min:"1" type:"string" required:"true"`
  4519  }
  4520  
  4521  // String returns the string representation.
  4522  //
  4523  // API parameter values that are decorated as "sensitive" in the API will not
  4524  // be included in the string output. The member name will be present, but the
  4525  // value will be replaced with "sensitive".
  4526  func (s CreateContentInput) String() string {
  4527  	return awsutil.Prettify(s)
  4528  }
  4529  
  4530  // GoString returns the string representation.
  4531  //
  4532  // API parameter values that are decorated as "sensitive" in the API will not
  4533  // be included in the string output. The member name will be present, but the
  4534  // value will be replaced with "sensitive".
  4535  func (s CreateContentInput) GoString() string {
  4536  	return s.String()
  4537  }
  4538  
  4539  // Validate inspects the fields of the type to determine if they are valid.
  4540  func (s *CreateContentInput) Validate() error {
  4541  	invalidParams := request.ErrInvalidParams{Context: "CreateContentInput"}
  4542  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  4543  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  4544  	}
  4545  	if s.KnowledgeBaseId == nil {
  4546  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  4547  	}
  4548  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  4549  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  4550  	}
  4551  	if s.Name == nil {
  4552  		invalidParams.Add(request.NewErrParamRequired("Name"))
  4553  	}
  4554  	if s.Name != nil && len(*s.Name) < 1 {
  4555  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4556  	}
  4557  	if s.OverrideLinkOutUri != nil && len(*s.OverrideLinkOutUri) < 1 {
  4558  		invalidParams.Add(request.NewErrParamMinLen("OverrideLinkOutUri", 1))
  4559  	}
  4560  	if s.Title != nil && len(*s.Title) < 1 {
  4561  		invalidParams.Add(request.NewErrParamMinLen("Title", 1))
  4562  	}
  4563  	if s.UploadId == nil {
  4564  		invalidParams.Add(request.NewErrParamRequired("UploadId"))
  4565  	}
  4566  	if s.UploadId != nil && len(*s.UploadId) < 1 {
  4567  		invalidParams.Add(request.NewErrParamMinLen("UploadId", 1))
  4568  	}
  4569  
  4570  	if invalidParams.Len() > 0 {
  4571  		return invalidParams
  4572  	}
  4573  	return nil
  4574  }
  4575  
  4576  // SetClientToken sets the ClientToken field's value.
  4577  func (s *CreateContentInput) SetClientToken(v string) *CreateContentInput {
  4578  	s.ClientToken = &v
  4579  	return s
  4580  }
  4581  
  4582  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  4583  func (s *CreateContentInput) SetKnowledgeBaseId(v string) *CreateContentInput {
  4584  	s.KnowledgeBaseId = &v
  4585  	return s
  4586  }
  4587  
  4588  // SetMetadata sets the Metadata field's value.
  4589  func (s *CreateContentInput) SetMetadata(v map[string]*string) *CreateContentInput {
  4590  	s.Metadata = v
  4591  	return s
  4592  }
  4593  
  4594  // SetName sets the Name field's value.
  4595  func (s *CreateContentInput) SetName(v string) *CreateContentInput {
  4596  	s.Name = &v
  4597  	return s
  4598  }
  4599  
  4600  // SetOverrideLinkOutUri sets the OverrideLinkOutUri field's value.
  4601  func (s *CreateContentInput) SetOverrideLinkOutUri(v string) *CreateContentInput {
  4602  	s.OverrideLinkOutUri = &v
  4603  	return s
  4604  }
  4605  
  4606  // SetTags sets the Tags field's value.
  4607  func (s *CreateContentInput) SetTags(v map[string]*string) *CreateContentInput {
  4608  	s.Tags = v
  4609  	return s
  4610  }
  4611  
  4612  // SetTitle sets the Title field's value.
  4613  func (s *CreateContentInput) SetTitle(v string) *CreateContentInput {
  4614  	s.Title = &v
  4615  	return s
  4616  }
  4617  
  4618  // SetUploadId sets the UploadId field's value.
  4619  func (s *CreateContentInput) SetUploadId(v string) *CreateContentInput {
  4620  	s.UploadId = &v
  4621  	return s
  4622  }
  4623  
  4624  type CreateContentOutput struct {
  4625  	_ struct{} `type:"structure"`
  4626  
  4627  	// The content.
  4628  	Content *ContentData `locationName:"content" type:"structure"`
  4629  }
  4630  
  4631  // String returns the string representation.
  4632  //
  4633  // API parameter values that are decorated as "sensitive" in the API will not
  4634  // be included in the string output. The member name will be present, but the
  4635  // value will be replaced with "sensitive".
  4636  func (s CreateContentOutput) String() string {
  4637  	return awsutil.Prettify(s)
  4638  }
  4639  
  4640  // GoString returns the string representation.
  4641  //
  4642  // API parameter values that are decorated as "sensitive" in the API will not
  4643  // be included in the string output. The member name will be present, but the
  4644  // value will be replaced with "sensitive".
  4645  func (s CreateContentOutput) GoString() string {
  4646  	return s.String()
  4647  }
  4648  
  4649  // SetContent sets the Content field's value.
  4650  func (s *CreateContentOutput) SetContent(v *ContentData) *CreateContentOutput {
  4651  	s.Content = v
  4652  	return s
  4653  }
  4654  
  4655  type CreateKnowledgeBaseInput struct {
  4656  	_ struct{} `type:"structure"`
  4657  
  4658  	// A unique, case-sensitive identifier that you provide to ensure the idempotency
  4659  	// of the request.
  4660  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  4661  
  4662  	// The description.
  4663  	Description *string `locationName:"description" min:"1" type:"string"`
  4664  
  4665  	// The type of knowledge base. Only CUSTOM knowledge bases allow you to upload
  4666  	// your own content. EXTERNAL knowledge bases support integrations with third-party
  4667  	// systems whose content is synchronized automatically.
  4668  	//
  4669  	// KnowledgeBaseType is a required field
  4670  	KnowledgeBaseType *string `locationName:"knowledgeBaseType" type:"string" required:"true" enum:"KnowledgeBaseType"`
  4671  
  4672  	// The name of the knowledge base.
  4673  	//
  4674  	// Name is a required field
  4675  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4676  
  4677  	// Information about how to render the content.
  4678  	RenderingConfiguration *RenderingConfiguration `locationName:"renderingConfiguration" type:"structure"`
  4679  
  4680  	// The KMS key used for encryption.
  4681  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"`
  4682  
  4683  	// The source of the knowledge base content. Only set this argument for EXTERNAL
  4684  	// knowledge bases.
  4685  	SourceConfiguration *SourceConfiguration `locationName:"sourceConfiguration" type:"structure"`
  4686  
  4687  	// The tags used to organize, track, or control access for this resource.
  4688  	Tags map[string]*string `locationName:"tags" type:"map"`
  4689  }
  4690  
  4691  // String returns the string representation.
  4692  //
  4693  // API parameter values that are decorated as "sensitive" in the API will not
  4694  // be included in the string output. The member name will be present, but the
  4695  // value will be replaced with "sensitive".
  4696  func (s CreateKnowledgeBaseInput) String() string {
  4697  	return awsutil.Prettify(s)
  4698  }
  4699  
  4700  // GoString returns the string representation.
  4701  //
  4702  // API parameter values that are decorated as "sensitive" in the API will not
  4703  // be included in the string output. The member name will be present, but the
  4704  // value will be replaced with "sensitive".
  4705  func (s CreateKnowledgeBaseInput) GoString() string {
  4706  	return s.String()
  4707  }
  4708  
  4709  // Validate inspects the fields of the type to determine if they are valid.
  4710  func (s *CreateKnowledgeBaseInput) Validate() error {
  4711  	invalidParams := request.ErrInvalidParams{Context: "CreateKnowledgeBaseInput"}
  4712  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  4713  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  4714  	}
  4715  	if s.Description != nil && len(*s.Description) < 1 {
  4716  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  4717  	}
  4718  	if s.KnowledgeBaseType == nil {
  4719  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseType"))
  4720  	}
  4721  	if s.Name == nil {
  4722  		invalidParams.Add(request.NewErrParamRequired("Name"))
  4723  	}
  4724  	if s.Name != nil && len(*s.Name) < 1 {
  4725  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4726  	}
  4727  	if s.RenderingConfiguration != nil {
  4728  		if err := s.RenderingConfiguration.Validate(); err != nil {
  4729  			invalidParams.AddNested("RenderingConfiguration", err.(request.ErrInvalidParams))
  4730  		}
  4731  	}
  4732  	if s.ServerSideEncryptionConfiguration != nil {
  4733  		if err := s.ServerSideEncryptionConfiguration.Validate(); err != nil {
  4734  			invalidParams.AddNested("ServerSideEncryptionConfiguration", err.(request.ErrInvalidParams))
  4735  		}
  4736  	}
  4737  	if s.SourceConfiguration != nil {
  4738  		if err := s.SourceConfiguration.Validate(); err != nil {
  4739  			invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams))
  4740  		}
  4741  	}
  4742  
  4743  	if invalidParams.Len() > 0 {
  4744  		return invalidParams
  4745  	}
  4746  	return nil
  4747  }
  4748  
  4749  // SetClientToken sets the ClientToken field's value.
  4750  func (s *CreateKnowledgeBaseInput) SetClientToken(v string) *CreateKnowledgeBaseInput {
  4751  	s.ClientToken = &v
  4752  	return s
  4753  }
  4754  
  4755  // SetDescription sets the Description field's value.
  4756  func (s *CreateKnowledgeBaseInput) SetDescription(v string) *CreateKnowledgeBaseInput {
  4757  	s.Description = &v
  4758  	return s
  4759  }
  4760  
  4761  // SetKnowledgeBaseType sets the KnowledgeBaseType field's value.
  4762  func (s *CreateKnowledgeBaseInput) SetKnowledgeBaseType(v string) *CreateKnowledgeBaseInput {
  4763  	s.KnowledgeBaseType = &v
  4764  	return s
  4765  }
  4766  
  4767  // SetName sets the Name field's value.
  4768  func (s *CreateKnowledgeBaseInput) SetName(v string) *CreateKnowledgeBaseInput {
  4769  	s.Name = &v
  4770  	return s
  4771  }
  4772  
  4773  // SetRenderingConfiguration sets the RenderingConfiguration field's value.
  4774  func (s *CreateKnowledgeBaseInput) SetRenderingConfiguration(v *RenderingConfiguration) *CreateKnowledgeBaseInput {
  4775  	s.RenderingConfiguration = v
  4776  	return s
  4777  }
  4778  
  4779  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  4780  func (s *CreateKnowledgeBaseInput) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *CreateKnowledgeBaseInput {
  4781  	s.ServerSideEncryptionConfiguration = v
  4782  	return s
  4783  }
  4784  
  4785  // SetSourceConfiguration sets the SourceConfiguration field's value.
  4786  func (s *CreateKnowledgeBaseInput) SetSourceConfiguration(v *SourceConfiguration) *CreateKnowledgeBaseInput {
  4787  	s.SourceConfiguration = v
  4788  	return s
  4789  }
  4790  
  4791  // SetTags sets the Tags field's value.
  4792  func (s *CreateKnowledgeBaseInput) SetTags(v map[string]*string) *CreateKnowledgeBaseInput {
  4793  	s.Tags = v
  4794  	return s
  4795  }
  4796  
  4797  type CreateKnowledgeBaseOutput struct {
  4798  	_ struct{} `type:"structure"`
  4799  
  4800  	// The knowledge base.
  4801  	KnowledgeBase *KnowledgeBaseData `locationName:"knowledgeBase" type:"structure"`
  4802  }
  4803  
  4804  // String returns the string representation.
  4805  //
  4806  // API parameter values that are decorated as "sensitive" in the API will not
  4807  // be included in the string output. The member name will be present, but the
  4808  // value will be replaced with "sensitive".
  4809  func (s CreateKnowledgeBaseOutput) String() string {
  4810  	return awsutil.Prettify(s)
  4811  }
  4812  
  4813  // GoString returns the string representation.
  4814  //
  4815  // API parameter values that are decorated as "sensitive" in the API will not
  4816  // be included in the string output. The member name will be present, but the
  4817  // value will be replaced with "sensitive".
  4818  func (s CreateKnowledgeBaseOutput) GoString() string {
  4819  	return s.String()
  4820  }
  4821  
  4822  // SetKnowledgeBase sets the KnowledgeBase field's value.
  4823  func (s *CreateKnowledgeBaseOutput) SetKnowledgeBase(v *KnowledgeBaseData) *CreateKnowledgeBaseOutput {
  4824  	s.KnowledgeBase = v
  4825  	return s
  4826  }
  4827  
  4828  type CreateSessionInput struct {
  4829  	_ struct{} `type:"structure"`
  4830  
  4831  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  4832  	// URLs cannot contain the ARN.
  4833  	//
  4834  	// AssistantId is a required field
  4835  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  4836  
  4837  	// A unique, case-sensitive identifier that you provide to ensure the idempotency
  4838  	// of the request.
  4839  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  4840  
  4841  	// The description.
  4842  	Description *string `locationName:"description" min:"1" type:"string"`
  4843  
  4844  	// The name of the session.
  4845  	//
  4846  	// Name is a required field
  4847  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4848  
  4849  	// The tags used to organize, track, or control access for this resource.
  4850  	Tags map[string]*string `locationName:"tags" type:"map"`
  4851  }
  4852  
  4853  // String returns the string representation.
  4854  //
  4855  // API parameter values that are decorated as "sensitive" in the API will not
  4856  // be included in the string output. The member name will be present, but the
  4857  // value will be replaced with "sensitive".
  4858  func (s CreateSessionInput) String() string {
  4859  	return awsutil.Prettify(s)
  4860  }
  4861  
  4862  // GoString returns the string representation.
  4863  //
  4864  // API parameter values that are decorated as "sensitive" in the API will not
  4865  // be included in the string output. The member name will be present, but the
  4866  // value will be replaced with "sensitive".
  4867  func (s CreateSessionInput) GoString() string {
  4868  	return s.String()
  4869  }
  4870  
  4871  // Validate inspects the fields of the type to determine if they are valid.
  4872  func (s *CreateSessionInput) Validate() error {
  4873  	invalidParams := request.ErrInvalidParams{Context: "CreateSessionInput"}
  4874  	if s.AssistantId == nil {
  4875  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  4876  	}
  4877  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  4878  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  4879  	}
  4880  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  4881  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  4882  	}
  4883  	if s.Description != nil && len(*s.Description) < 1 {
  4884  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  4885  	}
  4886  	if s.Name == nil {
  4887  		invalidParams.Add(request.NewErrParamRequired("Name"))
  4888  	}
  4889  	if s.Name != nil && len(*s.Name) < 1 {
  4890  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4891  	}
  4892  
  4893  	if invalidParams.Len() > 0 {
  4894  		return invalidParams
  4895  	}
  4896  	return nil
  4897  }
  4898  
  4899  // SetAssistantId sets the AssistantId field's value.
  4900  func (s *CreateSessionInput) SetAssistantId(v string) *CreateSessionInput {
  4901  	s.AssistantId = &v
  4902  	return s
  4903  }
  4904  
  4905  // SetClientToken sets the ClientToken field's value.
  4906  func (s *CreateSessionInput) SetClientToken(v string) *CreateSessionInput {
  4907  	s.ClientToken = &v
  4908  	return s
  4909  }
  4910  
  4911  // SetDescription sets the Description field's value.
  4912  func (s *CreateSessionInput) SetDescription(v string) *CreateSessionInput {
  4913  	s.Description = &v
  4914  	return s
  4915  }
  4916  
  4917  // SetName sets the Name field's value.
  4918  func (s *CreateSessionInput) SetName(v string) *CreateSessionInput {
  4919  	s.Name = &v
  4920  	return s
  4921  }
  4922  
  4923  // SetTags sets the Tags field's value.
  4924  func (s *CreateSessionInput) SetTags(v map[string]*string) *CreateSessionInput {
  4925  	s.Tags = v
  4926  	return s
  4927  }
  4928  
  4929  type CreateSessionOutput struct {
  4930  	_ struct{} `type:"structure"`
  4931  
  4932  	// The session.
  4933  	Session *SessionData `locationName:"session" type:"structure"`
  4934  }
  4935  
  4936  // String returns the string representation.
  4937  //
  4938  // API parameter values that are decorated as "sensitive" in the API will not
  4939  // be included in the string output. The member name will be present, but the
  4940  // value will be replaced with "sensitive".
  4941  func (s CreateSessionOutput) String() string {
  4942  	return awsutil.Prettify(s)
  4943  }
  4944  
  4945  // GoString returns the string representation.
  4946  //
  4947  // API parameter values that are decorated as "sensitive" in the API will not
  4948  // be included in the string output. The member name will be present, but the
  4949  // value will be replaced with "sensitive".
  4950  func (s CreateSessionOutput) GoString() string {
  4951  	return s.String()
  4952  }
  4953  
  4954  // SetSession sets the Session field's value.
  4955  func (s *CreateSessionOutput) SetSession(v *SessionData) *CreateSessionOutput {
  4956  	s.Session = v
  4957  	return s
  4958  }
  4959  
  4960  type DeleteAssistantAssociationInput struct {
  4961  	_ struct{} `type:"structure" nopayload:"true"`
  4962  
  4963  	// The identifier of the assistant association. Can be either the ID or the
  4964  	// ARN. URLs cannot contain the ARN.
  4965  	//
  4966  	// AssistantAssociationId is a required field
  4967  	AssistantAssociationId *string `location:"uri" locationName:"assistantAssociationId" type:"string" required:"true"`
  4968  
  4969  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  4970  	// URLs cannot contain the ARN.
  4971  	//
  4972  	// AssistantId is a required field
  4973  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  4974  }
  4975  
  4976  // String returns the string representation.
  4977  //
  4978  // API parameter values that are decorated as "sensitive" in the API will not
  4979  // be included in the string output. The member name will be present, but the
  4980  // value will be replaced with "sensitive".
  4981  func (s DeleteAssistantAssociationInput) String() string {
  4982  	return awsutil.Prettify(s)
  4983  }
  4984  
  4985  // GoString returns the string representation.
  4986  //
  4987  // API parameter values that are decorated as "sensitive" in the API will not
  4988  // be included in the string output. The member name will be present, but the
  4989  // value will be replaced with "sensitive".
  4990  func (s DeleteAssistantAssociationInput) GoString() string {
  4991  	return s.String()
  4992  }
  4993  
  4994  // Validate inspects the fields of the type to determine if they are valid.
  4995  func (s *DeleteAssistantAssociationInput) Validate() error {
  4996  	invalidParams := request.ErrInvalidParams{Context: "DeleteAssistantAssociationInput"}
  4997  	if s.AssistantAssociationId == nil {
  4998  		invalidParams.Add(request.NewErrParamRequired("AssistantAssociationId"))
  4999  	}
  5000  	if s.AssistantAssociationId != nil && len(*s.AssistantAssociationId) < 1 {
  5001  		invalidParams.Add(request.NewErrParamMinLen("AssistantAssociationId", 1))
  5002  	}
  5003  	if s.AssistantId == nil {
  5004  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  5005  	}
  5006  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  5007  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  5008  	}
  5009  
  5010  	if invalidParams.Len() > 0 {
  5011  		return invalidParams
  5012  	}
  5013  	return nil
  5014  }
  5015  
  5016  // SetAssistantAssociationId sets the AssistantAssociationId field's value.
  5017  func (s *DeleteAssistantAssociationInput) SetAssistantAssociationId(v string) *DeleteAssistantAssociationInput {
  5018  	s.AssistantAssociationId = &v
  5019  	return s
  5020  }
  5021  
  5022  // SetAssistantId sets the AssistantId field's value.
  5023  func (s *DeleteAssistantAssociationInput) SetAssistantId(v string) *DeleteAssistantAssociationInput {
  5024  	s.AssistantId = &v
  5025  	return s
  5026  }
  5027  
  5028  type DeleteAssistantAssociationOutput struct {
  5029  	_ struct{} `type:"structure" nopayload:"true"`
  5030  }
  5031  
  5032  // String returns the string representation.
  5033  //
  5034  // API parameter values that are decorated as "sensitive" in the API will not
  5035  // be included in the string output. The member name will be present, but the
  5036  // value will be replaced with "sensitive".
  5037  func (s DeleteAssistantAssociationOutput) String() string {
  5038  	return awsutil.Prettify(s)
  5039  }
  5040  
  5041  // GoString returns the string representation.
  5042  //
  5043  // API parameter values that are decorated as "sensitive" in the API will not
  5044  // be included in the string output. The member name will be present, but the
  5045  // value will be replaced with "sensitive".
  5046  func (s DeleteAssistantAssociationOutput) GoString() string {
  5047  	return s.String()
  5048  }
  5049  
  5050  type DeleteAssistantInput struct {
  5051  	_ struct{} `type:"structure" nopayload:"true"`
  5052  
  5053  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  5054  	// URLs cannot contain the ARN.
  5055  	//
  5056  	// AssistantId is a required field
  5057  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  5058  }
  5059  
  5060  // String returns the string representation.
  5061  //
  5062  // API parameter values that are decorated as "sensitive" in the API will not
  5063  // be included in the string output. The member name will be present, but the
  5064  // value will be replaced with "sensitive".
  5065  func (s DeleteAssistantInput) String() string {
  5066  	return awsutil.Prettify(s)
  5067  }
  5068  
  5069  // GoString returns the string representation.
  5070  //
  5071  // API parameter values that are decorated as "sensitive" in the API will not
  5072  // be included in the string output. The member name will be present, but the
  5073  // value will be replaced with "sensitive".
  5074  func (s DeleteAssistantInput) GoString() string {
  5075  	return s.String()
  5076  }
  5077  
  5078  // Validate inspects the fields of the type to determine if they are valid.
  5079  func (s *DeleteAssistantInput) Validate() error {
  5080  	invalidParams := request.ErrInvalidParams{Context: "DeleteAssistantInput"}
  5081  	if s.AssistantId == nil {
  5082  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  5083  	}
  5084  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  5085  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  5086  	}
  5087  
  5088  	if invalidParams.Len() > 0 {
  5089  		return invalidParams
  5090  	}
  5091  	return nil
  5092  }
  5093  
  5094  // SetAssistantId sets the AssistantId field's value.
  5095  func (s *DeleteAssistantInput) SetAssistantId(v string) *DeleteAssistantInput {
  5096  	s.AssistantId = &v
  5097  	return s
  5098  }
  5099  
  5100  type DeleteAssistantOutput struct {
  5101  	_ struct{} `type:"structure" nopayload:"true"`
  5102  }
  5103  
  5104  // String returns the string representation.
  5105  //
  5106  // API parameter values that are decorated as "sensitive" in the API will not
  5107  // be included in the string output. The member name will be present, but the
  5108  // value will be replaced with "sensitive".
  5109  func (s DeleteAssistantOutput) String() string {
  5110  	return awsutil.Prettify(s)
  5111  }
  5112  
  5113  // GoString returns the string representation.
  5114  //
  5115  // API parameter values that are decorated as "sensitive" in the API will not
  5116  // be included in the string output. The member name will be present, but the
  5117  // value will be replaced with "sensitive".
  5118  func (s DeleteAssistantOutput) GoString() string {
  5119  	return s.String()
  5120  }
  5121  
  5122  type DeleteContentInput struct {
  5123  	_ struct{} `type:"structure" nopayload:"true"`
  5124  
  5125  	// The identifier of the content. Can be either the ID or the ARN. URLs cannot
  5126  	// contain the ARN.
  5127  	//
  5128  	// ContentId is a required field
  5129  	ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"`
  5130  
  5131  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  5132  	// URLs cannot contain the ARN.
  5133  	//
  5134  	// KnowledgeBaseId is a required field
  5135  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  5136  }
  5137  
  5138  // String returns the string representation.
  5139  //
  5140  // API parameter values that are decorated as "sensitive" in the API will not
  5141  // be included in the string output. The member name will be present, but the
  5142  // value will be replaced with "sensitive".
  5143  func (s DeleteContentInput) String() string {
  5144  	return awsutil.Prettify(s)
  5145  }
  5146  
  5147  // GoString returns the string representation.
  5148  //
  5149  // API parameter values that are decorated as "sensitive" in the API will not
  5150  // be included in the string output. The member name will be present, but the
  5151  // value will be replaced with "sensitive".
  5152  func (s DeleteContentInput) GoString() string {
  5153  	return s.String()
  5154  }
  5155  
  5156  // Validate inspects the fields of the type to determine if they are valid.
  5157  func (s *DeleteContentInput) Validate() error {
  5158  	invalidParams := request.ErrInvalidParams{Context: "DeleteContentInput"}
  5159  	if s.ContentId == nil {
  5160  		invalidParams.Add(request.NewErrParamRequired("ContentId"))
  5161  	}
  5162  	if s.ContentId != nil && len(*s.ContentId) < 1 {
  5163  		invalidParams.Add(request.NewErrParamMinLen("ContentId", 1))
  5164  	}
  5165  	if s.KnowledgeBaseId == nil {
  5166  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  5167  	}
  5168  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  5169  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  5170  	}
  5171  
  5172  	if invalidParams.Len() > 0 {
  5173  		return invalidParams
  5174  	}
  5175  	return nil
  5176  }
  5177  
  5178  // SetContentId sets the ContentId field's value.
  5179  func (s *DeleteContentInput) SetContentId(v string) *DeleteContentInput {
  5180  	s.ContentId = &v
  5181  	return s
  5182  }
  5183  
  5184  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  5185  func (s *DeleteContentInput) SetKnowledgeBaseId(v string) *DeleteContentInput {
  5186  	s.KnowledgeBaseId = &v
  5187  	return s
  5188  }
  5189  
  5190  type DeleteContentOutput struct {
  5191  	_ struct{} `type:"structure" nopayload:"true"`
  5192  }
  5193  
  5194  // String returns the string representation.
  5195  //
  5196  // API parameter values that are decorated as "sensitive" in the API will not
  5197  // be included in the string output. The member name will be present, but the
  5198  // value will be replaced with "sensitive".
  5199  func (s DeleteContentOutput) String() string {
  5200  	return awsutil.Prettify(s)
  5201  }
  5202  
  5203  // GoString returns the string representation.
  5204  //
  5205  // API parameter values that are decorated as "sensitive" in the API will not
  5206  // be included in the string output. The member name will be present, but the
  5207  // value will be replaced with "sensitive".
  5208  func (s DeleteContentOutput) GoString() string {
  5209  	return s.String()
  5210  }
  5211  
  5212  type DeleteKnowledgeBaseInput struct {
  5213  	_ struct{} `type:"structure" nopayload:"true"`
  5214  
  5215  	// The knowledge base to delete content from. Can be either the ID or the ARN.
  5216  	// URLs cannot contain the ARN.
  5217  	//
  5218  	// KnowledgeBaseId is a required field
  5219  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  5220  }
  5221  
  5222  // String returns the string representation.
  5223  //
  5224  // API parameter values that are decorated as "sensitive" in the API will not
  5225  // be included in the string output. The member name will be present, but the
  5226  // value will be replaced with "sensitive".
  5227  func (s DeleteKnowledgeBaseInput) String() string {
  5228  	return awsutil.Prettify(s)
  5229  }
  5230  
  5231  // GoString returns the string representation.
  5232  //
  5233  // API parameter values that are decorated as "sensitive" in the API will not
  5234  // be included in the string output. The member name will be present, but the
  5235  // value will be replaced with "sensitive".
  5236  func (s DeleteKnowledgeBaseInput) GoString() string {
  5237  	return s.String()
  5238  }
  5239  
  5240  // Validate inspects the fields of the type to determine if they are valid.
  5241  func (s *DeleteKnowledgeBaseInput) Validate() error {
  5242  	invalidParams := request.ErrInvalidParams{Context: "DeleteKnowledgeBaseInput"}
  5243  	if s.KnowledgeBaseId == nil {
  5244  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  5245  	}
  5246  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  5247  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  5248  	}
  5249  
  5250  	if invalidParams.Len() > 0 {
  5251  		return invalidParams
  5252  	}
  5253  	return nil
  5254  }
  5255  
  5256  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  5257  func (s *DeleteKnowledgeBaseInput) SetKnowledgeBaseId(v string) *DeleteKnowledgeBaseInput {
  5258  	s.KnowledgeBaseId = &v
  5259  	return s
  5260  }
  5261  
  5262  type DeleteKnowledgeBaseOutput struct {
  5263  	_ struct{} `type:"structure" nopayload:"true"`
  5264  }
  5265  
  5266  // String returns the string representation.
  5267  //
  5268  // API parameter values that are decorated as "sensitive" in the API will not
  5269  // be included in the string output. The member name will be present, but the
  5270  // value will be replaced with "sensitive".
  5271  func (s DeleteKnowledgeBaseOutput) String() string {
  5272  	return awsutil.Prettify(s)
  5273  }
  5274  
  5275  // GoString returns the string representation.
  5276  //
  5277  // API parameter values that are decorated as "sensitive" in the API will not
  5278  // be included in the string output. The member name will be present, but the
  5279  // value will be replaced with "sensitive".
  5280  func (s DeleteKnowledgeBaseOutput) GoString() string {
  5281  	return s.String()
  5282  }
  5283  
  5284  // The document.
  5285  type Document struct {
  5286  	_ struct{} `type:"structure"`
  5287  
  5288  	// A reference to the content resource.
  5289  	//
  5290  	// ContentReference is a required field
  5291  	ContentReference *ContentReference `locationName:"contentReference" type:"structure" required:"true"`
  5292  
  5293  	// The excerpt from the document.
  5294  	Excerpt *DocumentText `locationName:"excerpt" type:"structure"`
  5295  
  5296  	// The title of the document.
  5297  	Title *DocumentText `locationName:"title" type:"structure"`
  5298  }
  5299  
  5300  // String returns the string representation.
  5301  //
  5302  // API parameter values that are decorated as "sensitive" in the API will not
  5303  // be included in the string output. The member name will be present, but the
  5304  // value will be replaced with "sensitive".
  5305  func (s Document) String() string {
  5306  	return awsutil.Prettify(s)
  5307  }
  5308  
  5309  // GoString returns the string representation.
  5310  //
  5311  // API parameter values that are decorated as "sensitive" in the API will not
  5312  // be included in the string output. The member name will be present, but the
  5313  // value will be replaced with "sensitive".
  5314  func (s Document) GoString() string {
  5315  	return s.String()
  5316  }
  5317  
  5318  // SetContentReference sets the ContentReference field's value.
  5319  func (s *Document) SetContentReference(v *ContentReference) *Document {
  5320  	s.ContentReference = v
  5321  	return s
  5322  }
  5323  
  5324  // SetExcerpt sets the Excerpt field's value.
  5325  func (s *Document) SetExcerpt(v *DocumentText) *Document {
  5326  	s.Excerpt = v
  5327  	return s
  5328  }
  5329  
  5330  // SetTitle sets the Title field's value.
  5331  func (s *Document) SetTitle(v *DocumentText) *Document {
  5332  	s.Title = v
  5333  	return s
  5334  }
  5335  
  5336  // The text of the document.
  5337  type DocumentText struct {
  5338  	_ struct{} `type:"structure"`
  5339  
  5340  	// Highlights in the document text.
  5341  	Highlights []*Highlight `locationName:"highlights" type:"list"`
  5342  
  5343  	// Text in the document.
  5344  	//
  5345  	// Text is a sensitive parameter and its value will be
  5346  	// replaced with "sensitive" in string returned by DocumentText's
  5347  	// String and GoString methods.
  5348  	Text *string `locationName:"text" type:"string" sensitive:"true"`
  5349  }
  5350  
  5351  // String returns the string representation.
  5352  //
  5353  // API parameter values that are decorated as "sensitive" in the API will not
  5354  // be included in the string output. The member name will be present, but the
  5355  // value will be replaced with "sensitive".
  5356  func (s DocumentText) String() string {
  5357  	return awsutil.Prettify(s)
  5358  }
  5359  
  5360  // GoString returns the string representation.
  5361  //
  5362  // API parameter values that are decorated as "sensitive" in the API will not
  5363  // be included in the string output. The member name will be present, but the
  5364  // value will be replaced with "sensitive".
  5365  func (s DocumentText) GoString() string {
  5366  	return s.String()
  5367  }
  5368  
  5369  // SetHighlights sets the Highlights field's value.
  5370  func (s *DocumentText) SetHighlights(v []*Highlight) *DocumentText {
  5371  	s.Highlights = v
  5372  	return s
  5373  }
  5374  
  5375  // SetText sets the Text field's value.
  5376  func (s *DocumentText) SetText(v string) *DocumentText {
  5377  	s.Text = &v
  5378  	return s
  5379  }
  5380  
  5381  // A search filter.
  5382  type Filter struct {
  5383  	_ struct{} `type:"structure"`
  5384  
  5385  	// The field on which to filter.
  5386  	//
  5387  	// Field is a required field
  5388  	Field *string `locationName:"field" type:"string" required:"true" enum:"FilterField"`
  5389  
  5390  	// The operator to use for comparing the field’s value with the provided value.
  5391  	//
  5392  	// Operator is a required field
  5393  	Operator *string `locationName:"operator" type:"string" required:"true" enum:"FilterOperator"`
  5394  
  5395  	// The desired field value on which to filter.
  5396  	//
  5397  	// Value is a required field
  5398  	Value *string `locationName:"value" min:"1" type:"string" required:"true"`
  5399  }
  5400  
  5401  // String returns the string representation.
  5402  //
  5403  // API parameter values that are decorated as "sensitive" in the API will not
  5404  // be included in the string output. The member name will be present, but the
  5405  // value will be replaced with "sensitive".
  5406  func (s Filter) String() string {
  5407  	return awsutil.Prettify(s)
  5408  }
  5409  
  5410  // GoString returns the string representation.
  5411  //
  5412  // API parameter values that are decorated as "sensitive" in the API will not
  5413  // be included in the string output. The member name will be present, but the
  5414  // value will be replaced with "sensitive".
  5415  func (s Filter) GoString() string {
  5416  	return s.String()
  5417  }
  5418  
  5419  // Validate inspects the fields of the type to determine if they are valid.
  5420  func (s *Filter) Validate() error {
  5421  	invalidParams := request.ErrInvalidParams{Context: "Filter"}
  5422  	if s.Field == nil {
  5423  		invalidParams.Add(request.NewErrParamRequired("Field"))
  5424  	}
  5425  	if s.Operator == nil {
  5426  		invalidParams.Add(request.NewErrParamRequired("Operator"))
  5427  	}
  5428  	if s.Value == nil {
  5429  		invalidParams.Add(request.NewErrParamRequired("Value"))
  5430  	}
  5431  	if s.Value != nil && len(*s.Value) < 1 {
  5432  		invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  5433  	}
  5434  
  5435  	if invalidParams.Len() > 0 {
  5436  		return invalidParams
  5437  	}
  5438  	return nil
  5439  }
  5440  
  5441  // SetField sets the Field field's value.
  5442  func (s *Filter) SetField(v string) *Filter {
  5443  	s.Field = &v
  5444  	return s
  5445  }
  5446  
  5447  // SetOperator sets the Operator field's value.
  5448  func (s *Filter) SetOperator(v string) *Filter {
  5449  	s.Operator = &v
  5450  	return s
  5451  }
  5452  
  5453  // SetValue sets the Value field's value.
  5454  func (s *Filter) SetValue(v string) *Filter {
  5455  	s.Value = &v
  5456  	return s
  5457  }
  5458  
  5459  type GetAssistantAssociationInput struct {
  5460  	_ struct{} `type:"structure" nopayload:"true"`
  5461  
  5462  	// The identifier of the assistant association. Can be either the ID or the
  5463  	// ARN. URLs cannot contain the ARN.
  5464  	//
  5465  	// AssistantAssociationId is a required field
  5466  	AssistantAssociationId *string `location:"uri" locationName:"assistantAssociationId" type:"string" required:"true"`
  5467  
  5468  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  5469  	// URLs cannot contain the ARN.
  5470  	//
  5471  	// AssistantId is a required field
  5472  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  5473  }
  5474  
  5475  // String returns the string representation.
  5476  //
  5477  // API parameter values that are decorated as "sensitive" in the API will not
  5478  // be included in the string output. The member name will be present, but the
  5479  // value will be replaced with "sensitive".
  5480  func (s GetAssistantAssociationInput) String() string {
  5481  	return awsutil.Prettify(s)
  5482  }
  5483  
  5484  // GoString returns the string representation.
  5485  //
  5486  // API parameter values that are decorated as "sensitive" in the API will not
  5487  // be included in the string output. The member name will be present, but the
  5488  // value will be replaced with "sensitive".
  5489  func (s GetAssistantAssociationInput) GoString() string {
  5490  	return s.String()
  5491  }
  5492  
  5493  // Validate inspects the fields of the type to determine if they are valid.
  5494  func (s *GetAssistantAssociationInput) Validate() error {
  5495  	invalidParams := request.ErrInvalidParams{Context: "GetAssistantAssociationInput"}
  5496  	if s.AssistantAssociationId == nil {
  5497  		invalidParams.Add(request.NewErrParamRequired("AssistantAssociationId"))
  5498  	}
  5499  	if s.AssistantAssociationId != nil && len(*s.AssistantAssociationId) < 1 {
  5500  		invalidParams.Add(request.NewErrParamMinLen("AssistantAssociationId", 1))
  5501  	}
  5502  	if s.AssistantId == nil {
  5503  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  5504  	}
  5505  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  5506  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  5507  	}
  5508  
  5509  	if invalidParams.Len() > 0 {
  5510  		return invalidParams
  5511  	}
  5512  	return nil
  5513  }
  5514  
  5515  // SetAssistantAssociationId sets the AssistantAssociationId field's value.
  5516  func (s *GetAssistantAssociationInput) SetAssistantAssociationId(v string) *GetAssistantAssociationInput {
  5517  	s.AssistantAssociationId = &v
  5518  	return s
  5519  }
  5520  
  5521  // SetAssistantId sets the AssistantId field's value.
  5522  func (s *GetAssistantAssociationInput) SetAssistantId(v string) *GetAssistantAssociationInput {
  5523  	s.AssistantId = &v
  5524  	return s
  5525  }
  5526  
  5527  type GetAssistantAssociationOutput struct {
  5528  	_ struct{} `type:"structure"`
  5529  
  5530  	// The assistant association.
  5531  	AssistantAssociation *AssistantAssociationData `locationName:"assistantAssociation" type:"structure"`
  5532  }
  5533  
  5534  // String returns the string representation.
  5535  //
  5536  // API parameter values that are decorated as "sensitive" in the API will not
  5537  // be included in the string output. The member name will be present, but the
  5538  // value will be replaced with "sensitive".
  5539  func (s GetAssistantAssociationOutput) String() string {
  5540  	return awsutil.Prettify(s)
  5541  }
  5542  
  5543  // GoString returns the string representation.
  5544  //
  5545  // API parameter values that are decorated as "sensitive" in the API will not
  5546  // be included in the string output. The member name will be present, but the
  5547  // value will be replaced with "sensitive".
  5548  func (s GetAssistantAssociationOutput) GoString() string {
  5549  	return s.String()
  5550  }
  5551  
  5552  // SetAssistantAssociation sets the AssistantAssociation field's value.
  5553  func (s *GetAssistantAssociationOutput) SetAssistantAssociation(v *AssistantAssociationData) *GetAssistantAssociationOutput {
  5554  	s.AssistantAssociation = v
  5555  	return s
  5556  }
  5557  
  5558  type GetAssistantInput struct {
  5559  	_ struct{} `type:"structure" nopayload:"true"`
  5560  
  5561  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  5562  	// URLs cannot contain the ARN.
  5563  	//
  5564  	// AssistantId is a required field
  5565  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  5566  }
  5567  
  5568  // String returns the string representation.
  5569  //
  5570  // API parameter values that are decorated as "sensitive" in the API will not
  5571  // be included in the string output. The member name will be present, but the
  5572  // value will be replaced with "sensitive".
  5573  func (s GetAssistantInput) String() string {
  5574  	return awsutil.Prettify(s)
  5575  }
  5576  
  5577  // GoString returns the string representation.
  5578  //
  5579  // API parameter values that are decorated as "sensitive" in the API will not
  5580  // be included in the string output. The member name will be present, but the
  5581  // value will be replaced with "sensitive".
  5582  func (s GetAssistantInput) GoString() string {
  5583  	return s.String()
  5584  }
  5585  
  5586  // Validate inspects the fields of the type to determine if they are valid.
  5587  func (s *GetAssistantInput) Validate() error {
  5588  	invalidParams := request.ErrInvalidParams{Context: "GetAssistantInput"}
  5589  	if s.AssistantId == nil {
  5590  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  5591  	}
  5592  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  5593  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  5594  	}
  5595  
  5596  	if invalidParams.Len() > 0 {
  5597  		return invalidParams
  5598  	}
  5599  	return nil
  5600  }
  5601  
  5602  // SetAssistantId sets the AssistantId field's value.
  5603  func (s *GetAssistantInput) SetAssistantId(v string) *GetAssistantInput {
  5604  	s.AssistantId = &v
  5605  	return s
  5606  }
  5607  
  5608  type GetAssistantOutput struct {
  5609  	_ struct{} `type:"structure"`
  5610  
  5611  	// Information about the assistant.
  5612  	Assistant *AssistantData `locationName:"assistant" type:"structure"`
  5613  }
  5614  
  5615  // String 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 GetAssistantOutput) String() string {
  5621  	return awsutil.Prettify(s)
  5622  }
  5623  
  5624  // GoString returns the string representation.
  5625  //
  5626  // API parameter values that are decorated as "sensitive" in the API will not
  5627  // be included in the string output. The member name will be present, but the
  5628  // value will be replaced with "sensitive".
  5629  func (s GetAssistantOutput) GoString() string {
  5630  	return s.String()
  5631  }
  5632  
  5633  // SetAssistant sets the Assistant field's value.
  5634  func (s *GetAssistantOutput) SetAssistant(v *AssistantData) *GetAssistantOutput {
  5635  	s.Assistant = v
  5636  	return s
  5637  }
  5638  
  5639  type GetContentInput struct {
  5640  	_ struct{} `type:"structure" nopayload:"true"`
  5641  
  5642  	// The identifier of the content. Can be either the ID or the ARN. URLs cannot
  5643  	// contain the ARN.
  5644  	//
  5645  	// ContentId is a required field
  5646  	ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"`
  5647  
  5648  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  5649  	// URLs cannot contain the ARN.
  5650  	//
  5651  	// KnowledgeBaseId is a required field
  5652  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  5653  }
  5654  
  5655  // String returns the string representation.
  5656  //
  5657  // API parameter values that are decorated as "sensitive" in the API will not
  5658  // be included in the string output. The member name will be present, but the
  5659  // value will be replaced with "sensitive".
  5660  func (s GetContentInput) String() string {
  5661  	return awsutil.Prettify(s)
  5662  }
  5663  
  5664  // GoString returns the string representation.
  5665  //
  5666  // API parameter values that are decorated as "sensitive" in the API will not
  5667  // be included in the string output. The member name will be present, but the
  5668  // value will be replaced with "sensitive".
  5669  func (s GetContentInput) GoString() string {
  5670  	return s.String()
  5671  }
  5672  
  5673  // Validate inspects the fields of the type to determine if they are valid.
  5674  func (s *GetContentInput) Validate() error {
  5675  	invalidParams := request.ErrInvalidParams{Context: "GetContentInput"}
  5676  	if s.ContentId == nil {
  5677  		invalidParams.Add(request.NewErrParamRequired("ContentId"))
  5678  	}
  5679  	if s.ContentId != nil && len(*s.ContentId) < 1 {
  5680  		invalidParams.Add(request.NewErrParamMinLen("ContentId", 1))
  5681  	}
  5682  	if s.KnowledgeBaseId == nil {
  5683  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  5684  	}
  5685  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  5686  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  5687  	}
  5688  
  5689  	if invalidParams.Len() > 0 {
  5690  		return invalidParams
  5691  	}
  5692  	return nil
  5693  }
  5694  
  5695  // SetContentId sets the ContentId field's value.
  5696  func (s *GetContentInput) SetContentId(v string) *GetContentInput {
  5697  	s.ContentId = &v
  5698  	return s
  5699  }
  5700  
  5701  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  5702  func (s *GetContentInput) SetKnowledgeBaseId(v string) *GetContentInput {
  5703  	s.KnowledgeBaseId = &v
  5704  	return s
  5705  }
  5706  
  5707  type GetContentOutput struct {
  5708  	_ struct{} `type:"structure"`
  5709  
  5710  	// The content.
  5711  	Content *ContentData `locationName:"content" type:"structure"`
  5712  }
  5713  
  5714  // String returns the string representation.
  5715  //
  5716  // API parameter values that are decorated as "sensitive" in the API will not
  5717  // be included in the string output. The member name will be present, but the
  5718  // value will be replaced with "sensitive".
  5719  func (s GetContentOutput) String() string {
  5720  	return awsutil.Prettify(s)
  5721  }
  5722  
  5723  // GoString returns the string representation.
  5724  //
  5725  // API parameter values that are decorated as "sensitive" in the API will not
  5726  // be included in the string output. The member name will be present, but the
  5727  // value will be replaced with "sensitive".
  5728  func (s GetContentOutput) GoString() string {
  5729  	return s.String()
  5730  }
  5731  
  5732  // SetContent sets the Content field's value.
  5733  func (s *GetContentOutput) SetContent(v *ContentData) *GetContentOutput {
  5734  	s.Content = v
  5735  	return s
  5736  }
  5737  
  5738  type GetContentSummaryInput struct {
  5739  	_ struct{} `type:"structure" nopayload:"true"`
  5740  
  5741  	// The identifier of the content. Can be either the ID or the ARN. URLs cannot
  5742  	// contain the ARN.
  5743  	//
  5744  	// ContentId is a required field
  5745  	ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"`
  5746  
  5747  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  5748  	// URLs cannot contain the ARN.
  5749  	//
  5750  	// KnowledgeBaseId is a required field
  5751  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  5752  }
  5753  
  5754  // String returns the string representation.
  5755  //
  5756  // API parameter values that are decorated as "sensitive" in the API will not
  5757  // be included in the string output. The member name will be present, but the
  5758  // value will be replaced with "sensitive".
  5759  func (s GetContentSummaryInput) String() string {
  5760  	return awsutil.Prettify(s)
  5761  }
  5762  
  5763  // GoString returns the string representation.
  5764  //
  5765  // API parameter values that are decorated as "sensitive" in the API will not
  5766  // be included in the string output. The member name will be present, but the
  5767  // value will be replaced with "sensitive".
  5768  func (s GetContentSummaryInput) GoString() string {
  5769  	return s.String()
  5770  }
  5771  
  5772  // Validate inspects the fields of the type to determine if they are valid.
  5773  func (s *GetContentSummaryInput) Validate() error {
  5774  	invalidParams := request.ErrInvalidParams{Context: "GetContentSummaryInput"}
  5775  	if s.ContentId == nil {
  5776  		invalidParams.Add(request.NewErrParamRequired("ContentId"))
  5777  	}
  5778  	if s.ContentId != nil && len(*s.ContentId) < 1 {
  5779  		invalidParams.Add(request.NewErrParamMinLen("ContentId", 1))
  5780  	}
  5781  	if s.KnowledgeBaseId == nil {
  5782  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  5783  	}
  5784  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  5785  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  5786  	}
  5787  
  5788  	if invalidParams.Len() > 0 {
  5789  		return invalidParams
  5790  	}
  5791  	return nil
  5792  }
  5793  
  5794  // SetContentId sets the ContentId field's value.
  5795  func (s *GetContentSummaryInput) SetContentId(v string) *GetContentSummaryInput {
  5796  	s.ContentId = &v
  5797  	return s
  5798  }
  5799  
  5800  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  5801  func (s *GetContentSummaryInput) SetKnowledgeBaseId(v string) *GetContentSummaryInput {
  5802  	s.KnowledgeBaseId = &v
  5803  	return s
  5804  }
  5805  
  5806  type GetContentSummaryOutput struct {
  5807  	_ struct{} `type:"structure"`
  5808  
  5809  	// The content summary.
  5810  	ContentSummary *ContentSummary `locationName:"contentSummary" type:"structure"`
  5811  }
  5812  
  5813  // String returns the string representation.
  5814  //
  5815  // API parameter values that are decorated as "sensitive" in the API will not
  5816  // be included in the string output. The member name will be present, but the
  5817  // value will be replaced with "sensitive".
  5818  func (s GetContentSummaryOutput) String() string {
  5819  	return awsutil.Prettify(s)
  5820  }
  5821  
  5822  // GoString returns the string representation.
  5823  //
  5824  // API parameter values that are decorated as "sensitive" in the API will not
  5825  // be included in the string output. The member name will be present, but the
  5826  // value will be replaced with "sensitive".
  5827  func (s GetContentSummaryOutput) GoString() string {
  5828  	return s.String()
  5829  }
  5830  
  5831  // SetContentSummary sets the ContentSummary field's value.
  5832  func (s *GetContentSummaryOutput) SetContentSummary(v *ContentSummary) *GetContentSummaryOutput {
  5833  	s.ContentSummary = v
  5834  	return s
  5835  }
  5836  
  5837  type GetKnowledgeBaseInput struct {
  5838  	_ struct{} `type:"structure" nopayload:"true"`
  5839  
  5840  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  5841  	// URLs cannot contain the ARN.
  5842  	//
  5843  	// KnowledgeBaseId is a required field
  5844  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  5845  }
  5846  
  5847  // String returns the string representation.
  5848  //
  5849  // API parameter values that are decorated as "sensitive" in the API will not
  5850  // be included in the string output. The member name will be present, but the
  5851  // value will be replaced with "sensitive".
  5852  func (s GetKnowledgeBaseInput) String() string {
  5853  	return awsutil.Prettify(s)
  5854  }
  5855  
  5856  // GoString returns the string representation.
  5857  //
  5858  // API parameter values that are decorated as "sensitive" in the API will not
  5859  // be included in the string output. The member name will be present, but the
  5860  // value will be replaced with "sensitive".
  5861  func (s GetKnowledgeBaseInput) GoString() string {
  5862  	return s.String()
  5863  }
  5864  
  5865  // Validate inspects the fields of the type to determine if they are valid.
  5866  func (s *GetKnowledgeBaseInput) Validate() error {
  5867  	invalidParams := request.ErrInvalidParams{Context: "GetKnowledgeBaseInput"}
  5868  	if s.KnowledgeBaseId == nil {
  5869  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  5870  	}
  5871  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  5872  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  5873  	}
  5874  
  5875  	if invalidParams.Len() > 0 {
  5876  		return invalidParams
  5877  	}
  5878  	return nil
  5879  }
  5880  
  5881  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  5882  func (s *GetKnowledgeBaseInput) SetKnowledgeBaseId(v string) *GetKnowledgeBaseInput {
  5883  	s.KnowledgeBaseId = &v
  5884  	return s
  5885  }
  5886  
  5887  type GetKnowledgeBaseOutput struct {
  5888  	_ struct{} `type:"structure"`
  5889  
  5890  	// The knowledge base.
  5891  	KnowledgeBase *KnowledgeBaseData `locationName:"knowledgeBase" type:"structure"`
  5892  }
  5893  
  5894  // String returns the string representation.
  5895  //
  5896  // API parameter values that are decorated as "sensitive" in the API will not
  5897  // be included in the string output. The member name will be present, but the
  5898  // value will be replaced with "sensitive".
  5899  func (s GetKnowledgeBaseOutput) String() string {
  5900  	return awsutil.Prettify(s)
  5901  }
  5902  
  5903  // GoString returns the string representation.
  5904  //
  5905  // API parameter values that are decorated as "sensitive" in the API will not
  5906  // be included in the string output. The member name will be present, but the
  5907  // value will be replaced with "sensitive".
  5908  func (s GetKnowledgeBaseOutput) GoString() string {
  5909  	return s.String()
  5910  }
  5911  
  5912  // SetKnowledgeBase sets the KnowledgeBase field's value.
  5913  func (s *GetKnowledgeBaseOutput) SetKnowledgeBase(v *KnowledgeBaseData) *GetKnowledgeBaseOutput {
  5914  	s.KnowledgeBase = v
  5915  	return s
  5916  }
  5917  
  5918  type GetRecommendationsInput struct {
  5919  	_ struct{} `type:"structure" nopayload:"true"`
  5920  
  5921  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  5922  	// URLs cannot contain the ARN.
  5923  	//
  5924  	// AssistantId is a required field
  5925  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  5926  
  5927  	// The maximum number of results to return per page.
  5928  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  5929  
  5930  	// The identifier of the session. Can be either the ID or the ARN. URLs cannot
  5931  	// contain the ARN.
  5932  	//
  5933  	// SessionId is a required field
  5934  	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
  5935  
  5936  	// The duration (in seconds) for which the call waits for a recommendation to
  5937  	// be made available before returning. If a recommendation is available, the
  5938  	// call returns sooner than WaitTimeSeconds. If no messages are available and
  5939  	// the wait time expires, the call returns successfully with an empty list.
  5940  	WaitTimeSeconds *int64 `location:"querystring" locationName:"waitTimeSeconds" type:"integer"`
  5941  }
  5942  
  5943  // String returns the string representation.
  5944  //
  5945  // API parameter values that are decorated as "sensitive" in the API will not
  5946  // be included in the string output. The member name will be present, but the
  5947  // value will be replaced with "sensitive".
  5948  func (s GetRecommendationsInput) String() string {
  5949  	return awsutil.Prettify(s)
  5950  }
  5951  
  5952  // GoString returns the string representation.
  5953  //
  5954  // API parameter values that are decorated as "sensitive" in the API will not
  5955  // be included in the string output. The member name will be present, but the
  5956  // value will be replaced with "sensitive".
  5957  func (s GetRecommendationsInput) GoString() string {
  5958  	return s.String()
  5959  }
  5960  
  5961  // Validate inspects the fields of the type to determine if they are valid.
  5962  func (s *GetRecommendationsInput) Validate() error {
  5963  	invalidParams := request.ErrInvalidParams{Context: "GetRecommendationsInput"}
  5964  	if s.AssistantId == nil {
  5965  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  5966  	}
  5967  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  5968  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  5969  	}
  5970  	if s.MaxResults != nil && *s.MaxResults < 1 {
  5971  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5972  	}
  5973  	if s.SessionId == nil {
  5974  		invalidParams.Add(request.NewErrParamRequired("SessionId"))
  5975  	}
  5976  	if s.SessionId != nil && len(*s.SessionId) < 1 {
  5977  		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
  5978  	}
  5979  
  5980  	if invalidParams.Len() > 0 {
  5981  		return invalidParams
  5982  	}
  5983  	return nil
  5984  }
  5985  
  5986  // SetAssistantId sets the AssistantId field's value.
  5987  func (s *GetRecommendationsInput) SetAssistantId(v string) *GetRecommendationsInput {
  5988  	s.AssistantId = &v
  5989  	return s
  5990  }
  5991  
  5992  // SetMaxResults sets the MaxResults field's value.
  5993  func (s *GetRecommendationsInput) SetMaxResults(v int64) *GetRecommendationsInput {
  5994  	s.MaxResults = &v
  5995  	return s
  5996  }
  5997  
  5998  // SetSessionId sets the SessionId field's value.
  5999  func (s *GetRecommendationsInput) SetSessionId(v string) *GetRecommendationsInput {
  6000  	s.SessionId = &v
  6001  	return s
  6002  }
  6003  
  6004  // SetWaitTimeSeconds sets the WaitTimeSeconds field's value.
  6005  func (s *GetRecommendationsInput) SetWaitTimeSeconds(v int64) *GetRecommendationsInput {
  6006  	s.WaitTimeSeconds = &v
  6007  	return s
  6008  }
  6009  
  6010  type GetRecommendationsOutput struct {
  6011  	_ struct{} `type:"structure"`
  6012  
  6013  	// The recommendations.
  6014  	//
  6015  	// Recommendations is a required field
  6016  	Recommendations []*RecommendationData `locationName:"recommendations" type:"list" required:"true"`
  6017  }
  6018  
  6019  // String returns the string representation.
  6020  //
  6021  // API parameter values that are decorated as "sensitive" in the API will not
  6022  // be included in the string output. The member name will be present, but the
  6023  // value will be replaced with "sensitive".
  6024  func (s GetRecommendationsOutput) String() string {
  6025  	return awsutil.Prettify(s)
  6026  }
  6027  
  6028  // GoString returns the string representation.
  6029  //
  6030  // API parameter values that are decorated as "sensitive" in the API will not
  6031  // be included in the string output. The member name will be present, but the
  6032  // value will be replaced with "sensitive".
  6033  func (s GetRecommendationsOutput) GoString() string {
  6034  	return s.String()
  6035  }
  6036  
  6037  // SetRecommendations sets the Recommendations field's value.
  6038  func (s *GetRecommendationsOutput) SetRecommendations(v []*RecommendationData) *GetRecommendationsOutput {
  6039  	s.Recommendations = v
  6040  	return s
  6041  }
  6042  
  6043  type GetSessionInput struct {
  6044  	_ struct{} `type:"structure" nopayload:"true"`
  6045  
  6046  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  6047  	// URLs cannot contain the ARN.
  6048  	//
  6049  	// AssistantId is a required field
  6050  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  6051  
  6052  	// The identifier of the session. Can be either the ID or the ARN. URLs cannot
  6053  	// contain the ARN.
  6054  	//
  6055  	// SessionId is a required field
  6056  	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
  6057  }
  6058  
  6059  // String returns the string representation.
  6060  //
  6061  // API parameter values that are decorated as "sensitive" in the API will not
  6062  // be included in the string output. The member name will be present, but the
  6063  // value will be replaced with "sensitive".
  6064  func (s GetSessionInput) String() string {
  6065  	return awsutil.Prettify(s)
  6066  }
  6067  
  6068  // GoString returns the string representation.
  6069  //
  6070  // API parameter values that are decorated as "sensitive" in the API will not
  6071  // be included in the string output. The member name will be present, but the
  6072  // value will be replaced with "sensitive".
  6073  func (s GetSessionInput) GoString() string {
  6074  	return s.String()
  6075  }
  6076  
  6077  // Validate inspects the fields of the type to determine if they are valid.
  6078  func (s *GetSessionInput) Validate() error {
  6079  	invalidParams := request.ErrInvalidParams{Context: "GetSessionInput"}
  6080  	if s.AssistantId == nil {
  6081  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  6082  	}
  6083  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  6084  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  6085  	}
  6086  	if s.SessionId == nil {
  6087  		invalidParams.Add(request.NewErrParamRequired("SessionId"))
  6088  	}
  6089  	if s.SessionId != nil && len(*s.SessionId) < 1 {
  6090  		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
  6091  	}
  6092  
  6093  	if invalidParams.Len() > 0 {
  6094  		return invalidParams
  6095  	}
  6096  	return nil
  6097  }
  6098  
  6099  // SetAssistantId sets the AssistantId field's value.
  6100  func (s *GetSessionInput) SetAssistantId(v string) *GetSessionInput {
  6101  	s.AssistantId = &v
  6102  	return s
  6103  }
  6104  
  6105  // SetSessionId sets the SessionId field's value.
  6106  func (s *GetSessionInput) SetSessionId(v string) *GetSessionInput {
  6107  	s.SessionId = &v
  6108  	return s
  6109  }
  6110  
  6111  type GetSessionOutput struct {
  6112  	_ struct{} `type:"structure"`
  6113  
  6114  	// The session.
  6115  	Session *SessionData `locationName:"session" type:"structure"`
  6116  }
  6117  
  6118  // String returns the string representation.
  6119  //
  6120  // API parameter values that are decorated as "sensitive" in the API will not
  6121  // be included in the string output. The member name will be present, but the
  6122  // value will be replaced with "sensitive".
  6123  func (s GetSessionOutput) String() string {
  6124  	return awsutil.Prettify(s)
  6125  }
  6126  
  6127  // GoString returns the string representation.
  6128  //
  6129  // API parameter values that are decorated as "sensitive" in the API will not
  6130  // be included in the string output. The member name will be present, but the
  6131  // value will be replaced with "sensitive".
  6132  func (s GetSessionOutput) GoString() string {
  6133  	return s.String()
  6134  }
  6135  
  6136  // SetSession sets the Session field's value.
  6137  func (s *GetSessionOutput) SetSession(v *SessionData) *GetSessionOutput {
  6138  	s.Session = v
  6139  	return s
  6140  }
  6141  
  6142  // Offset specification to describe highlighting of document excerpts for rendering
  6143  // search results and recommendations.
  6144  type Highlight struct {
  6145  	_ struct{} `type:"structure"`
  6146  
  6147  	// The offset for the start of the highlight.
  6148  	BeginOffsetInclusive *int64 `locationName:"beginOffsetInclusive" type:"integer"`
  6149  
  6150  	// The offset for the end of the highlight.
  6151  	EndOffsetExclusive *int64 `locationName:"endOffsetExclusive" type:"integer"`
  6152  }
  6153  
  6154  // String returns the string representation.
  6155  //
  6156  // API parameter values that are decorated as "sensitive" in the API will not
  6157  // be included in the string output. The member name will be present, but the
  6158  // value will be replaced with "sensitive".
  6159  func (s Highlight) String() string {
  6160  	return awsutil.Prettify(s)
  6161  }
  6162  
  6163  // GoString returns the string representation.
  6164  //
  6165  // API parameter values that are decorated as "sensitive" in the API will not
  6166  // be included in the string output. The member name will be present, but the
  6167  // value will be replaced with "sensitive".
  6168  func (s Highlight) GoString() string {
  6169  	return s.String()
  6170  }
  6171  
  6172  // SetBeginOffsetInclusive sets the BeginOffsetInclusive field's value.
  6173  func (s *Highlight) SetBeginOffsetInclusive(v int64) *Highlight {
  6174  	s.BeginOffsetInclusive = &v
  6175  	return s
  6176  }
  6177  
  6178  // SetEndOffsetExclusive sets the EndOffsetExclusive field's value.
  6179  func (s *Highlight) SetEndOffsetExclusive(v int64) *Highlight {
  6180  	s.EndOffsetExclusive = &v
  6181  	return s
  6182  }
  6183  
  6184  // Association information about the knowledge base.
  6185  type KnowledgeBaseAssociationData struct {
  6186  	_ struct{} `type:"structure"`
  6187  
  6188  	// The Amazon Resource Name (ARN) of the knowledge base.
  6189  	KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string"`
  6190  
  6191  	// The the identifier of the knowledge base.
  6192  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"`
  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 KnowledgeBaseAssociationData) 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 KnowledgeBaseAssociationData) GoString() string {
  6210  	return s.String()
  6211  }
  6212  
  6213  // SetKnowledgeBaseArn sets the KnowledgeBaseArn field's value.
  6214  func (s *KnowledgeBaseAssociationData) SetKnowledgeBaseArn(v string) *KnowledgeBaseAssociationData {
  6215  	s.KnowledgeBaseArn = &v
  6216  	return s
  6217  }
  6218  
  6219  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  6220  func (s *KnowledgeBaseAssociationData) SetKnowledgeBaseId(v string) *KnowledgeBaseAssociationData {
  6221  	s.KnowledgeBaseId = &v
  6222  	return s
  6223  }
  6224  
  6225  // Information about the knowledge base.
  6226  type KnowledgeBaseData struct {
  6227  	_ struct{} `type:"structure"`
  6228  
  6229  	// The description.
  6230  	Description *string `locationName:"description" min:"1" type:"string"`
  6231  
  6232  	// The Amazon Resource Name (ARN) of the knowledge base.
  6233  	//
  6234  	// KnowledgeBaseArn is a required field
  6235  	KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"`
  6236  
  6237  	// The the identifier of the knowledge base.
  6238  	//
  6239  	// KnowledgeBaseId is a required field
  6240  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"`
  6241  
  6242  	// The type of knowledge base.
  6243  	//
  6244  	// KnowledgeBaseType is a required field
  6245  	KnowledgeBaseType *string `locationName:"knowledgeBaseType" type:"string" required:"true" enum:"KnowledgeBaseType"`
  6246  
  6247  	// An epoch timestamp indicating the most recent content modification inside
  6248  	// the knowledge base. If no content exists in a knowledge base, this value
  6249  	// is unset.
  6250  	LastContentModificationTime *time.Time `locationName:"lastContentModificationTime" type:"timestamp" timestampFormat:"unixTimestamp"`
  6251  
  6252  	// The name of the knowledge base.
  6253  	//
  6254  	// Name is a required field
  6255  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6256  
  6257  	// Information about how to render the content.
  6258  	RenderingConfiguration *RenderingConfiguration `locationName:"renderingConfiguration" type:"structure"`
  6259  
  6260  	// The KMS key used for encryption.
  6261  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"`
  6262  
  6263  	// Source configuration information about the knowledge base.
  6264  	SourceConfiguration *SourceConfiguration `locationName:"sourceConfiguration" type:"structure"`
  6265  
  6266  	// The status of the knowledge base.
  6267  	//
  6268  	// Status is a required field
  6269  	Status *string `locationName:"status" type:"string" required:"true" enum:"KnowledgeBaseStatus"`
  6270  
  6271  	// The tags used to organize, track, or control access for this resource.
  6272  	Tags map[string]*string `locationName:"tags" type:"map"`
  6273  }
  6274  
  6275  // String 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 KnowledgeBaseData) String() string {
  6281  	return awsutil.Prettify(s)
  6282  }
  6283  
  6284  // GoString returns the string representation.
  6285  //
  6286  // API parameter values that are decorated as "sensitive" in the API will not
  6287  // be included in the string output. The member name will be present, but the
  6288  // value will be replaced with "sensitive".
  6289  func (s KnowledgeBaseData) GoString() string {
  6290  	return s.String()
  6291  }
  6292  
  6293  // SetDescription sets the Description field's value.
  6294  func (s *KnowledgeBaseData) SetDescription(v string) *KnowledgeBaseData {
  6295  	s.Description = &v
  6296  	return s
  6297  }
  6298  
  6299  // SetKnowledgeBaseArn sets the KnowledgeBaseArn field's value.
  6300  func (s *KnowledgeBaseData) SetKnowledgeBaseArn(v string) *KnowledgeBaseData {
  6301  	s.KnowledgeBaseArn = &v
  6302  	return s
  6303  }
  6304  
  6305  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  6306  func (s *KnowledgeBaseData) SetKnowledgeBaseId(v string) *KnowledgeBaseData {
  6307  	s.KnowledgeBaseId = &v
  6308  	return s
  6309  }
  6310  
  6311  // SetKnowledgeBaseType sets the KnowledgeBaseType field's value.
  6312  func (s *KnowledgeBaseData) SetKnowledgeBaseType(v string) *KnowledgeBaseData {
  6313  	s.KnowledgeBaseType = &v
  6314  	return s
  6315  }
  6316  
  6317  // SetLastContentModificationTime sets the LastContentModificationTime field's value.
  6318  func (s *KnowledgeBaseData) SetLastContentModificationTime(v time.Time) *KnowledgeBaseData {
  6319  	s.LastContentModificationTime = &v
  6320  	return s
  6321  }
  6322  
  6323  // SetName sets the Name field's value.
  6324  func (s *KnowledgeBaseData) SetName(v string) *KnowledgeBaseData {
  6325  	s.Name = &v
  6326  	return s
  6327  }
  6328  
  6329  // SetRenderingConfiguration sets the RenderingConfiguration field's value.
  6330  func (s *KnowledgeBaseData) SetRenderingConfiguration(v *RenderingConfiguration) *KnowledgeBaseData {
  6331  	s.RenderingConfiguration = v
  6332  	return s
  6333  }
  6334  
  6335  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  6336  func (s *KnowledgeBaseData) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *KnowledgeBaseData {
  6337  	s.ServerSideEncryptionConfiguration = v
  6338  	return s
  6339  }
  6340  
  6341  // SetSourceConfiguration sets the SourceConfiguration field's value.
  6342  func (s *KnowledgeBaseData) SetSourceConfiguration(v *SourceConfiguration) *KnowledgeBaseData {
  6343  	s.SourceConfiguration = v
  6344  	return s
  6345  }
  6346  
  6347  // SetStatus sets the Status field's value.
  6348  func (s *KnowledgeBaseData) SetStatus(v string) *KnowledgeBaseData {
  6349  	s.Status = &v
  6350  	return s
  6351  }
  6352  
  6353  // SetTags sets the Tags field's value.
  6354  func (s *KnowledgeBaseData) SetTags(v map[string]*string) *KnowledgeBaseData {
  6355  	s.Tags = v
  6356  	return s
  6357  }
  6358  
  6359  // Summary information about the knowledge base.
  6360  type KnowledgeBaseSummary struct {
  6361  	_ struct{} `type:"structure"`
  6362  
  6363  	// The description of the knowledge base.
  6364  	Description *string `locationName:"description" min:"1" type:"string"`
  6365  
  6366  	// The Amazon Resource Name (ARN) of the knowledge base.
  6367  	//
  6368  	// KnowledgeBaseArn is a required field
  6369  	KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"`
  6370  
  6371  	// The the identifier of the knowledge base.
  6372  	//
  6373  	// KnowledgeBaseId is a required field
  6374  	KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"`
  6375  
  6376  	// The type of knowledge base.
  6377  	//
  6378  	// KnowledgeBaseType is a required field
  6379  	KnowledgeBaseType *string `locationName:"knowledgeBaseType" type:"string" required:"true" enum:"KnowledgeBaseType"`
  6380  
  6381  	// The name of the knowledge base.
  6382  	//
  6383  	// Name is a required field
  6384  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6385  
  6386  	// Information about how to render the content.
  6387  	RenderingConfiguration *RenderingConfiguration `locationName:"renderingConfiguration" type:"structure"`
  6388  
  6389  	// The KMS key used for encryption.
  6390  	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"`
  6391  
  6392  	// [KEVIN]
  6393  	SourceConfiguration *SourceConfiguration `locationName:"sourceConfiguration" type:"structure"`
  6394  
  6395  	// The status of the knowledge base summary.
  6396  	//
  6397  	// Status is a required field
  6398  	Status *string `locationName:"status" type:"string" required:"true" enum:"KnowledgeBaseStatus"`
  6399  
  6400  	// The tags used to organize, track, or control access for this resource.
  6401  	Tags map[string]*string `locationName:"tags" type:"map"`
  6402  }
  6403  
  6404  // String returns the string representation.
  6405  //
  6406  // API parameter values that are decorated as "sensitive" in the API will not
  6407  // be included in the string output. The member name will be present, but the
  6408  // value will be replaced with "sensitive".
  6409  func (s KnowledgeBaseSummary) String() string {
  6410  	return awsutil.Prettify(s)
  6411  }
  6412  
  6413  // GoString returns the string representation.
  6414  //
  6415  // API parameter values that are decorated as "sensitive" in the API will not
  6416  // be included in the string output. The member name will be present, but the
  6417  // value will be replaced with "sensitive".
  6418  func (s KnowledgeBaseSummary) GoString() string {
  6419  	return s.String()
  6420  }
  6421  
  6422  // SetDescription sets the Description field's value.
  6423  func (s *KnowledgeBaseSummary) SetDescription(v string) *KnowledgeBaseSummary {
  6424  	s.Description = &v
  6425  	return s
  6426  }
  6427  
  6428  // SetKnowledgeBaseArn sets the KnowledgeBaseArn field's value.
  6429  func (s *KnowledgeBaseSummary) SetKnowledgeBaseArn(v string) *KnowledgeBaseSummary {
  6430  	s.KnowledgeBaseArn = &v
  6431  	return s
  6432  }
  6433  
  6434  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  6435  func (s *KnowledgeBaseSummary) SetKnowledgeBaseId(v string) *KnowledgeBaseSummary {
  6436  	s.KnowledgeBaseId = &v
  6437  	return s
  6438  }
  6439  
  6440  // SetKnowledgeBaseType sets the KnowledgeBaseType field's value.
  6441  func (s *KnowledgeBaseSummary) SetKnowledgeBaseType(v string) *KnowledgeBaseSummary {
  6442  	s.KnowledgeBaseType = &v
  6443  	return s
  6444  }
  6445  
  6446  // SetName sets the Name field's value.
  6447  func (s *KnowledgeBaseSummary) SetName(v string) *KnowledgeBaseSummary {
  6448  	s.Name = &v
  6449  	return s
  6450  }
  6451  
  6452  // SetRenderingConfiguration sets the RenderingConfiguration field's value.
  6453  func (s *KnowledgeBaseSummary) SetRenderingConfiguration(v *RenderingConfiguration) *KnowledgeBaseSummary {
  6454  	s.RenderingConfiguration = v
  6455  	return s
  6456  }
  6457  
  6458  // SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
  6459  func (s *KnowledgeBaseSummary) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *KnowledgeBaseSummary {
  6460  	s.ServerSideEncryptionConfiguration = v
  6461  	return s
  6462  }
  6463  
  6464  // SetSourceConfiguration sets the SourceConfiguration field's value.
  6465  func (s *KnowledgeBaseSummary) SetSourceConfiguration(v *SourceConfiguration) *KnowledgeBaseSummary {
  6466  	s.SourceConfiguration = v
  6467  	return s
  6468  }
  6469  
  6470  // SetStatus sets the Status field's value.
  6471  func (s *KnowledgeBaseSummary) SetStatus(v string) *KnowledgeBaseSummary {
  6472  	s.Status = &v
  6473  	return s
  6474  }
  6475  
  6476  // SetTags sets the Tags field's value.
  6477  func (s *KnowledgeBaseSummary) SetTags(v map[string]*string) *KnowledgeBaseSummary {
  6478  	s.Tags = v
  6479  	return s
  6480  }
  6481  
  6482  type ListAssistantAssociationsInput struct {
  6483  	_ struct{} `type:"structure" nopayload:"true"`
  6484  
  6485  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  6486  	// URLs cannot contain the ARN.
  6487  	//
  6488  	// AssistantId is a required field
  6489  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  6490  
  6491  	// The maximum number of results to return per page.
  6492  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6493  
  6494  	// The token for the next set of results. Use the value returned in the previous
  6495  	// response in the next request to retrieve the next set of results.
  6496  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  6497  }
  6498  
  6499  // String returns the string representation.
  6500  //
  6501  // API parameter values that are decorated as "sensitive" in the API will not
  6502  // be included in the string output. The member name will be present, but the
  6503  // value will be replaced with "sensitive".
  6504  func (s ListAssistantAssociationsInput) String() string {
  6505  	return awsutil.Prettify(s)
  6506  }
  6507  
  6508  // GoString returns the string representation.
  6509  //
  6510  // API parameter values that are decorated as "sensitive" in the API will not
  6511  // be included in the string output. The member name will be present, but the
  6512  // value will be replaced with "sensitive".
  6513  func (s ListAssistantAssociationsInput) GoString() string {
  6514  	return s.String()
  6515  }
  6516  
  6517  // Validate inspects the fields of the type to determine if they are valid.
  6518  func (s *ListAssistantAssociationsInput) Validate() error {
  6519  	invalidParams := request.ErrInvalidParams{Context: "ListAssistantAssociationsInput"}
  6520  	if s.AssistantId == nil {
  6521  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  6522  	}
  6523  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  6524  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  6525  	}
  6526  	if s.MaxResults != nil && *s.MaxResults < 1 {
  6527  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6528  	}
  6529  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  6530  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6531  	}
  6532  
  6533  	if invalidParams.Len() > 0 {
  6534  		return invalidParams
  6535  	}
  6536  	return nil
  6537  }
  6538  
  6539  // SetAssistantId sets the AssistantId field's value.
  6540  func (s *ListAssistantAssociationsInput) SetAssistantId(v string) *ListAssistantAssociationsInput {
  6541  	s.AssistantId = &v
  6542  	return s
  6543  }
  6544  
  6545  // SetMaxResults sets the MaxResults field's value.
  6546  func (s *ListAssistantAssociationsInput) SetMaxResults(v int64) *ListAssistantAssociationsInput {
  6547  	s.MaxResults = &v
  6548  	return s
  6549  }
  6550  
  6551  // SetNextToken sets the NextToken field's value.
  6552  func (s *ListAssistantAssociationsInput) SetNextToken(v string) *ListAssistantAssociationsInput {
  6553  	s.NextToken = &v
  6554  	return s
  6555  }
  6556  
  6557  type ListAssistantAssociationsOutput struct {
  6558  	_ struct{} `type:"structure"`
  6559  
  6560  	// Summary information about assistant associations.
  6561  	//
  6562  	// AssistantAssociationSummaries is a required field
  6563  	AssistantAssociationSummaries []*AssistantAssociationSummary `locationName:"assistantAssociationSummaries" type:"list" required:"true"`
  6564  
  6565  	// If there are additional results, this is the token for the next set of results.
  6566  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  6567  }
  6568  
  6569  // String returns the string representation.
  6570  //
  6571  // API parameter values that are decorated as "sensitive" in the API will not
  6572  // be included in the string output. The member name will be present, but the
  6573  // value will be replaced with "sensitive".
  6574  func (s ListAssistantAssociationsOutput) 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 ListAssistantAssociationsOutput) GoString() string {
  6584  	return s.String()
  6585  }
  6586  
  6587  // SetAssistantAssociationSummaries sets the AssistantAssociationSummaries field's value.
  6588  func (s *ListAssistantAssociationsOutput) SetAssistantAssociationSummaries(v []*AssistantAssociationSummary) *ListAssistantAssociationsOutput {
  6589  	s.AssistantAssociationSummaries = v
  6590  	return s
  6591  }
  6592  
  6593  // SetNextToken sets the NextToken field's value.
  6594  func (s *ListAssistantAssociationsOutput) SetNextToken(v string) *ListAssistantAssociationsOutput {
  6595  	s.NextToken = &v
  6596  	return s
  6597  }
  6598  
  6599  type ListAssistantsInput struct {
  6600  	_ struct{} `type:"structure" nopayload:"true"`
  6601  
  6602  	// The maximum number of results to return per page.
  6603  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6604  
  6605  	// The token for the next set of results. Use the value returned in the previous
  6606  	// response in the next request to retrieve the next set of results.
  6607  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  6608  }
  6609  
  6610  // String returns the string representation.
  6611  //
  6612  // API parameter values that are decorated as "sensitive" in the API will not
  6613  // be included in the string output. The member name will be present, but the
  6614  // value will be replaced with "sensitive".
  6615  func (s ListAssistantsInput) String() string {
  6616  	return awsutil.Prettify(s)
  6617  }
  6618  
  6619  // GoString returns the string representation.
  6620  //
  6621  // API parameter values that are decorated as "sensitive" in the API will not
  6622  // be included in the string output. The member name will be present, but the
  6623  // value will be replaced with "sensitive".
  6624  func (s ListAssistantsInput) GoString() string {
  6625  	return s.String()
  6626  }
  6627  
  6628  // Validate inspects the fields of the type to determine if they are valid.
  6629  func (s *ListAssistantsInput) Validate() error {
  6630  	invalidParams := request.ErrInvalidParams{Context: "ListAssistantsInput"}
  6631  	if s.MaxResults != nil && *s.MaxResults < 1 {
  6632  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6633  	}
  6634  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  6635  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6636  	}
  6637  
  6638  	if invalidParams.Len() > 0 {
  6639  		return invalidParams
  6640  	}
  6641  	return nil
  6642  }
  6643  
  6644  // SetMaxResults sets the MaxResults field's value.
  6645  func (s *ListAssistantsInput) SetMaxResults(v int64) *ListAssistantsInput {
  6646  	s.MaxResults = &v
  6647  	return s
  6648  }
  6649  
  6650  // SetNextToken sets the NextToken field's value.
  6651  func (s *ListAssistantsInput) SetNextToken(v string) *ListAssistantsInput {
  6652  	s.NextToken = &v
  6653  	return s
  6654  }
  6655  
  6656  type ListAssistantsOutput struct {
  6657  	_ struct{} `type:"structure"`
  6658  
  6659  	// Information about the assistants.
  6660  	//
  6661  	// AssistantSummaries is a required field
  6662  	AssistantSummaries []*AssistantSummary `locationName:"assistantSummaries" type:"list" required:"true"`
  6663  
  6664  	// If there are additional results, this is the token for the next set of results.
  6665  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  6666  }
  6667  
  6668  // String returns the string representation.
  6669  //
  6670  // API parameter values that are decorated as "sensitive" in the API will not
  6671  // be included in the string output. The member name will be present, but the
  6672  // value will be replaced with "sensitive".
  6673  func (s ListAssistantsOutput) String() string {
  6674  	return awsutil.Prettify(s)
  6675  }
  6676  
  6677  // GoString returns the string representation.
  6678  //
  6679  // API parameter values that are decorated as "sensitive" in the API will not
  6680  // be included in the string output. The member name will be present, but the
  6681  // value will be replaced with "sensitive".
  6682  func (s ListAssistantsOutput) GoString() string {
  6683  	return s.String()
  6684  }
  6685  
  6686  // SetAssistantSummaries sets the AssistantSummaries field's value.
  6687  func (s *ListAssistantsOutput) SetAssistantSummaries(v []*AssistantSummary) *ListAssistantsOutput {
  6688  	s.AssistantSummaries = v
  6689  	return s
  6690  }
  6691  
  6692  // SetNextToken sets the NextToken field's value.
  6693  func (s *ListAssistantsOutput) SetNextToken(v string) *ListAssistantsOutput {
  6694  	s.NextToken = &v
  6695  	return s
  6696  }
  6697  
  6698  type ListContentsInput struct {
  6699  	_ struct{} `type:"structure" nopayload:"true"`
  6700  
  6701  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  6702  	// URLs cannot contain the ARN.
  6703  	//
  6704  	// KnowledgeBaseId is a required field
  6705  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  6706  
  6707  	// The maximum number of results to return per page.
  6708  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6709  
  6710  	// The token for the next set of results. Use the value returned in the previous
  6711  	// response in the next request to retrieve the next set of results.
  6712  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  6713  }
  6714  
  6715  // String returns the string representation.
  6716  //
  6717  // API parameter values that are decorated as "sensitive" in the API will not
  6718  // be included in the string output. The member name will be present, but the
  6719  // value will be replaced with "sensitive".
  6720  func (s ListContentsInput) String() string {
  6721  	return awsutil.Prettify(s)
  6722  }
  6723  
  6724  // GoString returns the string representation.
  6725  //
  6726  // API parameter values that are decorated as "sensitive" in the API will not
  6727  // be included in the string output. The member name will be present, but the
  6728  // value will be replaced with "sensitive".
  6729  func (s ListContentsInput) GoString() string {
  6730  	return s.String()
  6731  }
  6732  
  6733  // Validate inspects the fields of the type to determine if they are valid.
  6734  func (s *ListContentsInput) Validate() error {
  6735  	invalidParams := request.ErrInvalidParams{Context: "ListContentsInput"}
  6736  	if s.KnowledgeBaseId == nil {
  6737  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  6738  	}
  6739  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  6740  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  6741  	}
  6742  	if s.MaxResults != nil && *s.MaxResults < 1 {
  6743  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6744  	}
  6745  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  6746  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6747  	}
  6748  
  6749  	if invalidParams.Len() > 0 {
  6750  		return invalidParams
  6751  	}
  6752  	return nil
  6753  }
  6754  
  6755  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  6756  func (s *ListContentsInput) SetKnowledgeBaseId(v string) *ListContentsInput {
  6757  	s.KnowledgeBaseId = &v
  6758  	return s
  6759  }
  6760  
  6761  // SetMaxResults sets the MaxResults field's value.
  6762  func (s *ListContentsInput) SetMaxResults(v int64) *ListContentsInput {
  6763  	s.MaxResults = &v
  6764  	return s
  6765  }
  6766  
  6767  // SetNextToken sets the NextToken field's value.
  6768  func (s *ListContentsInput) SetNextToken(v string) *ListContentsInput {
  6769  	s.NextToken = &v
  6770  	return s
  6771  }
  6772  
  6773  type ListContentsOutput struct {
  6774  	_ struct{} `type:"structure"`
  6775  
  6776  	// Information about the content.
  6777  	//
  6778  	// ContentSummaries is a required field
  6779  	ContentSummaries []*ContentSummary `locationName:"contentSummaries" type:"list" required:"true"`
  6780  
  6781  	// If there are additional results, this is the token for the next set of results.
  6782  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  6783  }
  6784  
  6785  // String returns the string representation.
  6786  //
  6787  // API parameter values that are decorated as "sensitive" in the API will not
  6788  // be included in the string output. The member name will be present, but the
  6789  // value will be replaced with "sensitive".
  6790  func (s ListContentsOutput) String() string {
  6791  	return awsutil.Prettify(s)
  6792  }
  6793  
  6794  // GoString returns the string representation.
  6795  //
  6796  // API parameter values that are decorated as "sensitive" in the API will not
  6797  // be included in the string output. The member name will be present, but the
  6798  // value will be replaced with "sensitive".
  6799  func (s ListContentsOutput) GoString() string {
  6800  	return s.String()
  6801  }
  6802  
  6803  // SetContentSummaries sets the ContentSummaries field's value.
  6804  func (s *ListContentsOutput) SetContentSummaries(v []*ContentSummary) *ListContentsOutput {
  6805  	s.ContentSummaries = v
  6806  	return s
  6807  }
  6808  
  6809  // SetNextToken sets the NextToken field's value.
  6810  func (s *ListContentsOutput) SetNextToken(v string) *ListContentsOutput {
  6811  	s.NextToken = &v
  6812  	return s
  6813  }
  6814  
  6815  type ListKnowledgeBasesInput struct {
  6816  	_ struct{} `type:"structure" nopayload:"true"`
  6817  
  6818  	// The maximum number of results to return per page.
  6819  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6820  
  6821  	// The token for the next set of results. Use the value returned in the previous
  6822  	// response in the next request to retrieve the next set of results.
  6823  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  6824  }
  6825  
  6826  // String returns the string representation.
  6827  //
  6828  // API parameter values that are decorated as "sensitive" in the API will not
  6829  // be included in the string output. The member name will be present, but the
  6830  // value will be replaced with "sensitive".
  6831  func (s ListKnowledgeBasesInput) String() string {
  6832  	return awsutil.Prettify(s)
  6833  }
  6834  
  6835  // GoString returns the string representation.
  6836  //
  6837  // API parameter values that are decorated as "sensitive" in the API will not
  6838  // be included in the string output. The member name will be present, but the
  6839  // value will be replaced with "sensitive".
  6840  func (s ListKnowledgeBasesInput) GoString() string {
  6841  	return s.String()
  6842  }
  6843  
  6844  // Validate inspects the fields of the type to determine if they are valid.
  6845  func (s *ListKnowledgeBasesInput) Validate() error {
  6846  	invalidParams := request.ErrInvalidParams{Context: "ListKnowledgeBasesInput"}
  6847  	if s.MaxResults != nil && *s.MaxResults < 1 {
  6848  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6849  	}
  6850  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  6851  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6852  	}
  6853  
  6854  	if invalidParams.Len() > 0 {
  6855  		return invalidParams
  6856  	}
  6857  	return nil
  6858  }
  6859  
  6860  // SetMaxResults sets the MaxResults field's value.
  6861  func (s *ListKnowledgeBasesInput) SetMaxResults(v int64) *ListKnowledgeBasesInput {
  6862  	s.MaxResults = &v
  6863  	return s
  6864  }
  6865  
  6866  // SetNextToken sets the NextToken field's value.
  6867  func (s *ListKnowledgeBasesInput) SetNextToken(v string) *ListKnowledgeBasesInput {
  6868  	s.NextToken = &v
  6869  	return s
  6870  }
  6871  
  6872  type ListKnowledgeBasesOutput struct {
  6873  	_ struct{} `type:"structure"`
  6874  
  6875  	// Information about the knowledge bases.
  6876  	//
  6877  	// KnowledgeBaseSummaries is a required field
  6878  	KnowledgeBaseSummaries []*KnowledgeBaseSummary `locationName:"knowledgeBaseSummaries" type:"list" required:"true"`
  6879  
  6880  	// If there are additional results, this is the token for the next set of results.
  6881  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  6882  }
  6883  
  6884  // String returns the string representation.
  6885  //
  6886  // API parameter values that are decorated as "sensitive" in the API will not
  6887  // be included in the string output. The member name will be present, but the
  6888  // value will be replaced with "sensitive".
  6889  func (s ListKnowledgeBasesOutput) String() string {
  6890  	return awsutil.Prettify(s)
  6891  }
  6892  
  6893  // GoString returns the string representation.
  6894  //
  6895  // API parameter values that are decorated as "sensitive" in the API will not
  6896  // be included in the string output. The member name will be present, but the
  6897  // value will be replaced with "sensitive".
  6898  func (s ListKnowledgeBasesOutput) GoString() string {
  6899  	return s.String()
  6900  }
  6901  
  6902  // SetKnowledgeBaseSummaries sets the KnowledgeBaseSummaries field's value.
  6903  func (s *ListKnowledgeBasesOutput) SetKnowledgeBaseSummaries(v []*KnowledgeBaseSummary) *ListKnowledgeBasesOutput {
  6904  	s.KnowledgeBaseSummaries = v
  6905  	return s
  6906  }
  6907  
  6908  // SetNextToken sets the NextToken field's value.
  6909  func (s *ListKnowledgeBasesOutput) SetNextToken(v string) *ListKnowledgeBasesOutput {
  6910  	s.NextToken = &v
  6911  	return s
  6912  }
  6913  
  6914  type ListTagsForResourceInput struct {
  6915  	_ struct{} `type:"structure" nopayload:"true"`
  6916  
  6917  	// The Amazon Resource Name (ARN) of the resource.
  6918  	//
  6919  	// ResourceArn is a required field
  6920  	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
  6921  }
  6922  
  6923  // String returns the string representation.
  6924  //
  6925  // API parameter values that are decorated as "sensitive" in the API will not
  6926  // be included in the string output. The member name will be present, but the
  6927  // value will be replaced with "sensitive".
  6928  func (s ListTagsForResourceInput) String() string {
  6929  	return awsutil.Prettify(s)
  6930  }
  6931  
  6932  // GoString returns the string representation.
  6933  //
  6934  // API parameter values that are decorated as "sensitive" in the API will not
  6935  // be included in the string output. The member name will be present, but the
  6936  // value will be replaced with "sensitive".
  6937  func (s ListTagsForResourceInput) GoString() string {
  6938  	return s.String()
  6939  }
  6940  
  6941  // Validate inspects the fields of the type to determine if they are valid.
  6942  func (s *ListTagsForResourceInput) Validate() error {
  6943  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  6944  	if s.ResourceArn == nil {
  6945  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6946  	}
  6947  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  6948  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  6949  	}
  6950  
  6951  	if invalidParams.Len() > 0 {
  6952  		return invalidParams
  6953  	}
  6954  	return nil
  6955  }
  6956  
  6957  // SetResourceArn sets the ResourceArn field's value.
  6958  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  6959  	s.ResourceArn = &v
  6960  	return s
  6961  }
  6962  
  6963  type ListTagsForResourceOutput struct {
  6964  	_ struct{} `type:"structure"`
  6965  
  6966  	// The tags used to organize, track, or control access for this resource.
  6967  	Tags map[string]*string `locationName:"tags" type:"map"`
  6968  }
  6969  
  6970  // String returns the string representation.
  6971  //
  6972  // API parameter values that are decorated as "sensitive" in the API will not
  6973  // be included in the string output. The member name will be present, but the
  6974  // value will be replaced with "sensitive".
  6975  func (s ListTagsForResourceOutput) String() string {
  6976  	return awsutil.Prettify(s)
  6977  }
  6978  
  6979  // GoString returns the string representation.
  6980  //
  6981  // API parameter values that are decorated as "sensitive" in the API will not
  6982  // be included in the string output. The member name will be present, but the
  6983  // value will be replaced with "sensitive".
  6984  func (s ListTagsForResourceOutput) GoString() string {
  6985  	return s.String()
  6986  }
  6987  
  6988  // SetTags sets the Tags field's value.
  6989  func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
  6990  	s.Tags = v
  6991  	return s
  6992  }
  6993  
  6994  // An error occurred when creating a recommendation.
  6995  type NotifyRecommendationsReceivedError struct {
  6996  	_ struct{} `type:"structure"`
  6997  
  6998  	// A recommendation is causing an error.
  6999  	Message *string `locationName:"message" type:"string"`
  7000  
  7001  	// The identifier of the recommendation that is in error.
  7002  	RecommendationId *string `locationName:"recommendationId" type:"string"`
  7003  }
  7004  
  7005  // String returns the string representation.
  7006  //
  7007  // API parameter values that are decorated as "sensitive" in the API will not
  7008  // be included in the string output. The member name will be present, but the
  7009  // value will be replaced with "sensitive".
  7010  func (s NotifyRecommendationsReceivedError) String() string {
  7011  	return awsutil.Prettify(s)
  7012  }
  7013  
  7014  // GoString returns the string representation.
  7015  //
  7016  // API parameter values that are decorated as "sensitive" in the API will not
  7017  // be included in the string output. The member name will be present, but the
  7018  // value will be replaced with "sensitive".
  7019  func (s NotifyRecommendationsReceivedError) GoString() string {
  7020  	return s.String()
  7021  }
  7022  
  7023  // SetMessage sets the Message field's value.
  7024  func (s *NotifyRecommendationsReceivedError) SetMessage(v string) *NotifyRecommendationsReceivedError {
  7025  	s.Message = &v
  7026  	return s
  7027  }
  7028  
  7029  // SetRecommendationId sets the RecommendationId field's value.
  7030  func (s *NotifyRecommendationsReceivedError) SetRecommendationId(v string) *NotifyRecommendationsReceivedError {
  7031  	s.RecommendationId = &v
  7032  	return s
  7033  }
  7034  
  7035  type NotifyRecommendationsReceivedInput struct {
  7036  	_ struct{} `type:"structure"`
  7037  
  7038  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  7039  	// URLs cannot contain the ARN.
  7040  	//
  7041  	// AssistantId is a required field
  7042  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  7043  
  7044  	// The identifiers of the recommendations.
  7045  	//
  7046  	// RecommendationIds is a required field
  7047  	RecommendationIds []*string `locationName:"recommendationIds" type:"list" required:"true"`
  7048  
  7049  	// The identifier of the session. Can be either the ID or the ARN. URLs cannot
  7050  	// contain the ARN.
  7051  	//
  7052  	// SessionId is a required field
  7053  	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
  7054  }
  7055  
  7056  // String returns the string representation.
  7057  //
  7058  // API parameter values that are decorated as "sensitive" in the API will not
  7059  // be included in the string output. The member name will be present, but the
  7060  // value will be replaced with "sensitive".
  7061  func (s NotifyRecommendationsReceivedInput) String() string {
  7062  	return awsutil.Prettify(s)
  7063  }
  7064  
  7065  // GoString returns the string representation.
  7066  //
  7067  // API parameter values that are decorated as "sensitive" in the API will not
  7068  // be included in the string output. The member name will be present, but the
  7069  // value will be replaced with "sensitive".
  7070  func (s NotifyRecommendationsReceivedInput) GoString() string {
  7071  	return s.String()
  7072  }
  7073  
  7074  // Validate inspects the fields of the type to determine if they are valid.
  7075  func (s *NotifyRecommendationsReceivedInput) Validate() error {
  7076  	invalidParams := request.ErrInvalidParams{Context: "NotifyRecommendationsReceivedInput"}
  7077  	if s.AssistantId == nil {
  7078  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  7079  	}
  7080  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  7081  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  7082  	}
  7083  	if s.RecommendationIds == nil {
  7084  		invalidParams.Add(request.NewErrParamRequired("RecommendationIds"))
  7085  	}
  7086  	if s.SessionId == nil {
  7087  		invalidParams.Add(request.NewErrParamRequired("SessionId"))
  7088  	}
  7089  	if s.SessionId != nil && len(*s.SessionId) < 1 {
  7090  		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
  7091  	}
  7092  
  7093  	if invalidParams.Len() > 0 {
  7094  		return invalidParams
  7095  	}
  7096  	return nil
  7097  }
  7098  
  7099  // SetAssistantId sets the AssistantId field's value.
  7100  func (s *NotifyRecommendationsReceivedInput) SetAssistantId(v string) *NotifyRecommendationsReceivedInput {
  7101  	s.AssistantId = &v
  7102  	return s
  7103  }
  7104  
  7105  // SetRecommendationIds sets the RecommendationIds field's value.
  7106  func (s *NotifyRecommendationsReceivedInput) SetRecommendationIds(v []*string) *NotifyRecommendationsReceivedInput {
  7107  	s.RecommendationIds = v
  7108  	return s
  7109  }
  7110  
  7111  // SetSessionId sets the SessionId field's value.
  7112  func (s *NotifyRecommendationsReceivedInput) SetSessionId(v string) *NotifyRecommendationsReceivedInput {
  7113  	s.SessionId = &v
  7114  	return s
  7115  }
  7116  
  7117  type NotifyRecommendationsReceivedOutput struct {
  7118  	_ struct{} `type:"structure"`
  7119  
  7120  	// The identifiers of recommendations that are causing errors.
  7121  	Errors []*NotifyRecommendationsReceivedError `locationName:"errors" type:"list"`
  7122  
  7123  	// The identifiers of the recommendations.
  7124  	RecommendationIds []*string `locationName:"recommendationIds" type:"list"`
  7125  }
  7126  
  7127  // String returns the string representation.
  7128  //
  7129  // API parameter values that are decorated as "sensitive" in the API will not
  7130  // be included in the string output. The member name will be present, but the
  7131  // value will be replaced with "sensitive".
  7132  func (s NotifyRecommendationsReceivedOutput) String() string {
  7133  	return awsutil.Prettify(s)
  7134  }
  7135  
  7136  // GoString returns the string representation.
  7137  //
  7138  // API parameter values that are decorated as "sensitive" in the API will not
  7139  // be included in the string output. The member name will be present, but the
  7140  // value will be replaced with "sensitive".
  7141  func (s NotifyRecommendationsReceivedOutput) GoString() string {
  7142  	return s.String()
  7143  }
  7144  
  7145  // SetErrors sets the Errors field's value.
  7146  func (s *NotifyRecommendationsReceivedOutput) SetErrors(v []*NotifyRecommendationsReceivedError) *NotifyRecommendationsReceivedOutput {
  7147  	s.Errors = v
  7148  	return s
  7149  }
  7150  
  7151  // SetRecommendationIds sets the RecommendationIds field's value.
  7152  func (s *NotifyRecommendationsReceivedOutput) SetRecommendationIds(v []*string) *NotifyRecommendationsReceivedOutput {
  7153  	s.RecommendationIds = v
  7154  	return s
  7155  }
  7156  
  7157  // The provided revisionId does not match, indicating the content has been modified
  7158  // since it was last read.
  7159  type PreconditionFailedException struct {
  7160  	_            struct{}                  `type:"structure"`
  7161  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  7162  
  7163  	Message_ *string `locationName:"message" type:"string"`
  7164  }
  7165  
  7166  // String returns the string representation.
  7167  //
  7168  // API parameter values that are decorated as "sensitive" in the API will not
  7169  // be included in the string output. The member name will be present, but the
  7170  // value will be replaced with "sensitive".
  7171  func (s PreconditionFailedException) String() string {
  7172  	return awsutil.Prettify(s)
  7173  }
  7174  
  7175  // GoString returns the string representation.
  7176  //
  7177  // API parameter values that are decorated as "sensitive" in the API will not
  7178  // be included in the string output. The member name will be present, but the
  7179  // value will be replaced with "sensitive".
  7180  func (s PreconditionFailedException) GoString() string {
  7181  	return s.String()
  7182  }
  7183  
  7184  func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error {
  7185  	return &PreconditionFailedException{
  7186  		RespMetadata: v,
  7187  	}
  7188  }
  7189  
  7190  // Code returns the exception type name.
  7191  func (s *PreconditionFailedException) Code() string {
  7192  	return "PreconditionFailedException"
  7193  }
  7194  
  7195  // Message returns the exception's message.
  7196  func (s *PreconditionFailedException) Message() string {
  7197  	if s.Message_ != nil {
  7198  		return *s.Message_
  7199  	}
  7200  	return ""
  7201  }
  7202  
  7203  // OrigErr always returns nil, satisfies awserr.Error interface.
  7204  func (s *PreconditionFailedException) OrigErr() error {
  7205  	return nil
  7206  }
  7207  
  7208  func (s *PreconditionFailedException) Error() string {
  7209  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  7210  }
  7211  
  7212  // Status code returns the HTTP status code for the request's response error.
  7213  func (s *PreconditionFailedException) StatusCode() int {
  7214  	return s.RespMetadata.StatusCode
  7215  }
  7216  
  7217  // RequestID returns the service's response RequestID for request.
  7218  func (s *PreconditionFailedException) RequestID() string {
  7219  	return s.RespMetadata.RequestID
  7220  }
  7221  
  7222  type QueryAssistantInput struct {
  7223  	_ struct{} `type:"structure"`
  7224  
  7225  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  7226  	// URLs cannot contain the ARN.
  7227  	//
  7228  	// AssistantId is a required field
  7229  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  7230  
  7231  	// The maximum number of results to return per page.
  7232  	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  7233  
  7234  	// The token for the next set of results. Use the value returned in the previous
  7235  	// response in the next request to retrieve the next set of results.
  7236  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  7237  
  7238  	// The text to search for.
  7239  	//
  7240  	// QueryText is a sensitive parameter and its value will be
  7241  	// replaced with "sensitive" in string returned by QueryAssistantInput's
  7242  	// String and GoString methods.
  7243  	//
  7244  	// QueryText is a required field
  7245  	QueryText *string `locationName:"queryText" type:"string" required:"true" sensitive:"true"`
  7246  }
  7247  
  7248  // String returns the string representation.
  7249  //
  7250  // API parameter values that are decorated as "sensitive" in the API will not
  7251  // be included in the string output. The member name will be present, but the
  7252  // value will be replaced with "sensitive".
  7253  func (s QueryAssistantInput) String() string {
  7254  	return awsutil.Prettify(s)
  7255  }
  7256  
  7257  // GoString returns the string representation.
  7258  //
  7259  // API parameter values that are decorated as "sensitive" in the API will not
  7260  // be included in the string output. The member name will be present, but the
  7261  // value will be replaced with "sensitive".
  7262  func (s QueryAssistantInput) GoString() string {
  7263  	return s.String()
  7264  }
  7265  
  7266  // Validate inspects the fields of the type to determine if they are valid.
  7267  func (s *QueryAssistantInput) Validate() error {
  7268  	invalidParams := request.ErrInvalidParams{Context: "QueryAssistantInput"}
  7269  	if s.AssistantId == nil {
  7270  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  7271  	}
  7272  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  7273  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  7274  	}
  7275  	if s.MaxResults != nil && *s.MaxResults < 1 {
  7276  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  7277  	}
  7278  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  7279  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  7280  	}
  7281  	if s.QueryText == nil {
  7282  		invalidParams.Add(request.NewErrParamRequired("QueryText"))
  7283  	}
  7284  
  7285  	if invalidParams.Len() > 0 {
  7286  		return invalidParams
  7287  	}
  7288  	return nil
  7289  }
  7290  
  7291  // SetAssistantId sets the AssistantId field's value.
  7292  func (s *QueryAssistantInput) SetAssistantId(v string) *QueryAssistantInput {
  7293  	s.AssistantId = &v
  7294  	return s
  7295  }
  7296  
  7297  // SetMaxResults sets the MaxResults field's value.
  7298  func (s *QueryAssistantInput) SetMaxResults(v int64) *QueryAssistantInput {
  7299  	s.MaxResults = &v
  7300  	return s
  7301  }
  7302  
  7303  // SetNextToken sets the NextToken field's value.
  7304  func (s *QueryAssistantInput) SetNextToken(v string) *QueryAssistantInput {
  7305  	s.NextToken = &v
  7306  	return s
  7307  }
  7308  
  7309  // SetQueryText sets the QueryText field's value.
  7310  func (s *QueryAssistantInput) SetQueryText(v string) *QueryAssistantInput {
  7311  	s.QueryText = &v
  7312  	return s
  7313  }
  7314  
  7315  type QueryAssistantOutput struct {
  7316  	_ struct{} `type:"structure"`
  7317  
  7318  	// If there are additional results, this is the token for the next set of results.
  7319  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  7320  
  7321  	// The results of the query.
  7322  	//
  7323  	// Results is a required field
  7324  	Results []*ResultData `locationName:"results" type:"list" required:"true"`
  7325  }
  7326  
  7327  // String returns the string representation.
  7328  //
  7329  // API parameter values that are decorated as "sensitive" in the API will not
  7330  // be included in the string output. The member name will be present, but the
  7331  // value will be replaced with "sensitive".
  7332  func (s QueryAssistantOutput) String() string {
  7333  	return awsutil.Prettify(s)
  7334  }
  7335  
  7336  // GoString returns the string representation.
  7337  //
  7338  // API parameter values that are decorated as "sensitive" in the API will not
  7339  // be included in the string output. The member name will be present, but the
  7340  // value will be replaced with "sensitive".
  7341  func (s QueryAssistantOutput) GoString() string {
  7342  	return s.String()
  7343  }
  7344  
  7345  // SetNextToken sets the NextToken field's value.
  7346  func (s *QueryAssistantOutput) SetNextToken(v string) *QueryAssistantOutput {
  7347  	s.NextToken = &v
  7348  	return s
  7349  }
  7350  
  7351  // SetResults sets the Results field's value.
  7352  func (s *QueryAssistantOutput) SetResults(v []*ResultData) *QueryAssistantOutput {
  7353  	s.Results = v
  7354  	return s
  7355  }
  7356  
  7357  // Information about the recommendation.
  7358  type RecommendationData struct {
  7359  	_ struct{} `type:"structure"`
  7360  
  7361  	// The recommended document.
  7362  	//
  7363  	// Document is a required field
  7364  	Document *Document `locationName:"document" type:"structure" required:"true"`
  7365  
  7366  	// The identifier of the recommendation.
  7367  	//
  7368  	// RecommendationId is a required field
  7369  	RecommendationId *string `locationName:"recommendationId" type:"string" required:"true"`
  7370  
  7371  	// The relevance level of the recommendation.
  7372  	RelevanceLevel *string `locationName:"relevanceLevel" type:"string" enum:"RelevanceLevel"`
  7373  
  7374  	// The relevance score of the recommendation.
  7375  	RelevanceScore *float64 `locationName:"relevanceScore" type:"double"`
  7376  }
  7377  
  7378  // String returns the string representation.
  7379  //
  7380  // API parameter values that are decorated as "sensitive" in the API will not
  7381  // be included in the string output. The member name will be present, but the
  7382  // value will be replaced with "sensitive".
  7383  func (s RecommendationData) String() string {
  7384  	return awsutil.Prettify(s)
  7385  }
  7386  
  7387  // GoString returns the string representation.
  7388  //
  7389  // API parameter values that are decorated as "sensitive" in the API will not
  7390  // be included in the string output. The member name will be present, but the
  7391  // value will be replaced with "sensitive".
  7392  func (s RecommendationData) GoString() string {
  7393  	return s.String()
  7394  }
  7395  
  7396  // SetDocument sets the Document field's value.
  7397  func (s *RecommendationData) SetDocument(v *Document) *RecommendationData {
  7398  	s.Document = v
  7399  	return s
  7400  }
  7401  
  7402  // SetRecommendationId sets the RecommendationId field's value.
  7403  func (s *RecommendationData) SetRecommendationId(v string) *RecommendationData {
  7404  	s.RecommendationId = &v
  7405  	return s
  7406  }
  7407  
  7408  // SetRelevanceLevel sets the RelevanceLevel field's value.
  7409  func (s *RecommendationData) SetRelevanceLevel(v string) *RecommendationData {
  7410  	s.RelevanceLevel = &v
  7411  	return s
  7412  }
  7413  
  7414  // SetRelevanceScore sets the RelevanceScore field's value.
  7415  func (s *RecommendationData) SetRelevanceScore(v float64) *RecommendationData {
  7416  	s.RelevanceScore = &v
  7417  	return s
  7418  }
  7419  
  7420  type RemoveKnowledgeBaseTemplateUriInput struct {
  7421  	_ struct{} `type:"structure" nopayload:"true"`
  7422  
  7423  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  7424  	// URLs cannot contain the ARN.
  7425  	//
  7426  	// KnowledgeBaseId is a required field
  7427  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  7428  }
  7429  
  7430  // String returns the string representation.
  7431  //
  7432  // API parameter values that are decorated as "sensitive" in the API will not
  7433  // be included in the string output. The member name will be present, but the
  7434  // value will be replaced with "sensitive".
  7435  func (s RemoveKnowledgeBaseTemplateUriInput) String() string {
  7436  	return awsutil.Prettify(s)
  7437  }
  7438  
  7439  // GoString returns the string representation.
  7440  //
  7441  // API parameter values that are decorated as "sensitive" in the API will not
  7442  // be included in the string output. The member name will be present, but the
  7443  // value will be replaced with "sensitive".
  7444  func (s RemoveKnowledgeBaseTemplateUriInput) GoString() string {
  7445  	return s.String()
  7446  }
  7447  
  7448  // Validate inspects the fields of the type to determine if they are valid.
  7449  func (s *RemoveKnowledgeBaseTemplateUriInput) Validate() error {
  7450  	invalidParams := request.ErrInvalidParams{Context: "RemoveKnowledgeBaseTemplateUriInput"}
  7451  	if s.KnowledgeBaseId == nil {
  7452  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  7453  	}
  7454  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  7455  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  7456  	}
  7457  
  7458  	if invalidParams.Len() > 0 {
  7459  		return invalidParams
  7460  	}
  7461  	return nil
  7462  }
  7463  
  7464  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  7465  func (s *RemoveKnowledgeBaseTemplateUriInput) SetKnowledgeBaseId(v string) *RemoveKnowledgeBaseTemplateUriInput {
  7466  	s.KnowledgeBaseId = &v
  7467  	return s
  7468  }
  7469  
  7470  type RemoveKnowledgeBaseTemplateUriOutput struct {
  7471  	_ struct{} `type:"structure" nopayload:"true"`
  7472  }
  7473  
  7474  // String returns the string representation.
  7475  //
  7476  // API parameter values that are decorated as "sensitive" in the API will not
  7477  // be included in the string output. The member name will be present, but the
  7478  // value will be replaced with "sensitive".
  7479  func (s RemoveKnowledgeBaseTemplateUriOutput) String() string {
  7480  	return awsutil.Prettify(s)
  7481  }
  7482  
  7483  // GoString returns the string representation.
  7484  //
  7485  // API parameter values that are decorated as "sensitive" in the API will not
  7486  // be included in the string output. The member name will be present, but the
  7487  // value will be replaced with "sensitive".
  7488  func (s RemoveKnowledgeBaseTemplateUriOutput) GoString() string {
  7489  	return s.String()
  7490  }
  7491  
  7492  // Information about how to render the content.
  7493  type RenderingConfiguration struct {
  7494  	_ struct{} `type:"structure"`
  7495  
  7496  	// A URI template containing exactly one variable in ${variableName} format.
  7497  	// This can only be set for EXTERNAL knowledge bases. For Salesforce and ServiceNow,
  7498  	// the variable must be one of the following:
  7499  	//
  7500  	//    * Salesforce: Id, ArticleNumber, VersionNumber, Title, PublishStatus,
  7501  	//    or IsDeleted
  7502  	//
  7503  	//    * ServiceNow: number, short_description, sys_mod_count, workflow_state,
  7504  	//    or active
  7505  	//
  7506  	//    <p>The variable is replaced with the actual value for a piece of content
  7507  	//    when calling <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetContent.html">GetContent</a>.
  7508  	//    </p>
  7509  	TemplateUri *string `locationName:"templateUri" min:"1" type:"string"`
  7510  }
  7511  
  7512  // String returns the string representation.
  7513  //
  7514  // API parameter values that are decorated as "sensitive" in the API will not
  7515  // be included in the string output. The member name will be present, but the
  7516  // value will be replaced with "sensitive".
  7517  func (s RenderingConfiguration) String() string {
  7518  	return awsutil.Prettify(s)
  7519  }
  7520  
  7521  // GoString returns the string representation.
  7522  //
  7523  // API parameter values that are decorated as "sensitive" in the API will not
  7524  // be included in the string output. The member name will be present, but the
  7525  // value will be replaced with "sensitive".
  7526  func (s RenderingConfiguration) GoString() string {
  7527  	return s.String()
  7528  }
  7529  
  7530  // Validate inspects the fields of the type to determine if they are valid.
  7531  func (s *RenderingConfiguration) Validate() error {
  7532  	invalidParams := request.ErrInvalidParams{Context: "RenderingConfiguration"}
  7533  	if s.TemplateUri != nil && len(*s.TemplateUri) < 1 {
  7534  		invalidParams.Add(request.NewErrParamMinLen("TemplateUri", 1))
  7535  	}
  7536  
  7537  	if invalidParams.Len() > 0 {
  7538  		return invalidParams
  7539  	}
  7540  	return nil
  7541  }
  7542  
  7543  // SetTemplateUri sets the TemplateUri field's value.
  7544  func (s *RenderingConfiguration) SetTemplateUri(v string) *RenderingConfiguration {
  7545  	s.TemplateUri = &v
  7546  	return s
  7547  }
  7548  
  7549  // The specified resource does not exist.
  7550  type ResourceNotFoundException struct {
  7551  	_            struct{}                  `type:"structure"`
  7552  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  7553  
  7554  	Message_ *string `locationName:"message" type:"string"`
  7555  
  7556  	// The specified resource name.
  7557  	ResourceName *string `locationName:"resourceName" type:"string"`
  7558  }
  7559  
  7560  // String returns the string representation.
  7561  //
  7562  // API parameter values that are decorated as "sensitive" in the API will not
  7563  // be included in the string output. The member name will be present, but the
  7564  // value will be replaced with "sensitive".
  7565  func (s ResourceNotFoundException) String() string {
  7566  	return awsutil.Prettify(s)
  7567  }
  7568  
  7569  // GoString returns the string representation.
  7570  //
  7571  // API parameter values that are decorated as "sensitive" in the API will not
  7572  // be included in the string output. The member name will be present, but the
  7573  // value will be replaced with "sensitive".
  7574  func (s ResourceNotFoundException) GoString() string {
  7575  	return s.String()
  7576  }
  7577  
  7578  func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
  7579  	return &ResourceNotFoundException{
  7580  		RespMetadata: v,
  7581  	}
  7582  }
  7583  
  7584  // Code returns the exception type name.
  7585  func (s *ResourceNotFoundException) Code() string {
  7586  	return "ResourceNotFoundException"
  7587  }
  7588  
  7589  // Message returns the exception's message.
  7590  func (s *ResourceNotFoundException) Message() string {
  7591  	if s.Message_ != nil {
  7592  		return *s.Message_
  7593  	}
  7594  	return ""
  7595  }
  7596  
  7597  // OrigErr always returns nil, satisfies awserr.Error interface.
  7598  func (s *ResourceNotFoundException) OrigErr() error {
  7599  	return nil
  7600  }
  7601  
  7602  func (s *ResourceNotFoundException) Error() string {
  7603  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  7604  }
  7605  
  7606  // Status code returns the HTTP status code for the request's response error.
  7607  func (s *ResourceNotFoundException) StatusCode() int {
  7608  	return s.RespMetadata.StatusCode
  7609  }
  7610  
  7611  // RequestID returns the service's response RequestID for request.
  7612  func (s *ResourceNotFoundException) RequestID() string {
  7613  	return s.RespMetadata.RequestID
  7614  }
  7615  
  7616  // Information about the result.
  7617  type ResultData struct {
  7618  	_ struct{} `type:"structure"`
  7619  
  7620  	// The document.
  7621  	//
  7622  	// Document is a required field
  7623  	Document *Document `locationName:"document" type:"structure" required:"true"`
  7624  
  7625  	// The relevance score of the results.
  7626  	RelevanceScore *float64 `locationName:"relevanceScore" type:"double"`
  7627  
  7628  	// The identifier of the result data.
  7629  	//
  7630  	// ResultId is a required field
  7631  	ResultId *string `locationName:"resultId" type:"string" required:"true"`
  7632  }
  7633  
  7634  // String returns the string representation.
  7635  //
  7636  // API parameter values that are decorated as "sensitive" in the API will not
  7637  // be included in the string output. The member name will be present, but the
  7638  // value will be replaced with "sensitive".
  7639  func (s ResultData) String() string {
  7640  	return awsutil.Prettify(s)
  7641  }
  7642  
  7643  // GoString returns the string representation.
  7644  //
  7645  // API parameter values that are decorated as "sensitive" in the API will not
  7646  // be included in the string output. The member name will be present, but the
  7647  // value will be replaced with "sensitive".
  7648  func (s ResultData) GoString() string {
  7649  	return s.String()
  7650  }
  7651  
  7652  // SetDocument sets the Document field's value.
  7653  func (s *ResultData) SetDocument(v *Document) *ResultData {
  7654  	s.Document = v
  7655  	return s
  7656  }
  7657  
  7658  // SetRelevanceScore sets the RelevanceScore field's value.
  7659  func (s *ResultData) SetRelevanceScore(v float64) *ResultData {
  7660  	s.RelevanceScore = &v
  7661  	return s
  7662  }
  7663  
  7664  // SetResultId sets the ResultId field's value.
  7665  func (s *ResultData) SetResultId(v string) *ResultData {
  7666  	s.ResultId = &v
  7667  	return s
  7668  }
  7669  
  7670  type SearchContentInput struct {
  7671  	_ struct{} `type:"structure"`
  7672  
  7673  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  7674  	// URLs cannot contain the ARN.
  7675  	//
  7676  	// KnowledgeBaseId is a required field
  7677  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  7678  
  7679  	// The maximum number of results to return per page.
  7680  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  7681  
  7682  	// The token for the next set of results. Use the value returned in the previous
  7683  	// response in the next request to retrieve the next set of results.
  7684  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  7685  
  7686  	// The search expression to filter results.
  7687  	//
  7688  	// SearchExpression is a required field
  7689  	SearchExpression *SearchExpression `locationName:"searchExpression" type:"structure" required:"true"`
  7690  }
  7691  
  7692  // String returns the string representation.
  7693  //
  7694  // API parameter values that are decorated as "sensitive" in the API will not
  7695  // be included in the string output. The member name will be present, but the
  7696  // value will be replaced with "sensitive".
  7697  func (s SearchContentInput) String() string {
  7698  	return awsutil.Prettify(s)
  7699  }
  7700  
  7701  // GoString returns the string representation.
  7702  //
  7703  // API parameter values that are decorated as "sensitive" in the API will not
  7704  // be included in the string output. The member name will be present, but the
  7705  // value will be replaced with "sensitive".
  7706  func (s SearchContentInput) GoString() string {
  7707  	return s.String()
  7708  }
  7709  
  7710  // Validate inspects the fields of the type to determine if they are valid.
  7711  func (s *SearchContentInput) Validate() error {
  7712  	invalidParams := request.ErrInvalidParams{Context: "SearchContentInput"}
  7713  	if s.KnowledgeBaseId == nil {
  7714  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  7715  	}
  7716  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  7717  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  7718  	}
  7719  	if s.MaxResults != nil && *s.MaxResults < 1 {
  7720  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  7721  	}
  7722  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  7723  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  7724  	}
  7725  	if s.SearchExpression == nil {
  7726  		invalidParams.Add(request.NewErrParamRequired("SearchExpression"))
  7727  	}
  7728  	if s.SearchExpression != nil {
  7729  		if err := s.SearchExpression.Validate(); err != nil {
  7730  			invalidParams.AddNested("SearchExpression", err.(request.ErrInvalidParams))
  7731  		}
  7732  	}
  7733  
  7734  	if invalidParams.Len() > 0 {
  7735  		return invalidParams
  7736  	}
  7737  	return nil
  7738  }
  7739  
  7740  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  7741  func (s *SearchContentInput) SetKnowledgeBaseId(v string) *SearchContentInput {
  7742  	s.KnowledgeBaseId = &v
  7743  	return s
  7744  }
  7745  
  7746  // SetMaxResults sets the MaxResults field's value.
  7747  func (s *SearchContentInput) SetMaxResults(v int64) *SearchContentInput {
  7748  	s.MaxResults = &v
  7749  	return s
  7750  }
  7751  
  7752  // SetNextToken sets the NextToken field's value.
  7753  func (s *SearchContentInput) SetNextToken(v string) *SearchContentInput {
  7754  	s.NextToken = &v
  7755  	return s
  7756  }
  7757  
  7758  // SetSearchExpression sets the SearchExpression field's value.
  7759  func (s *SearchContentInput) SetSearchExpression(v *SearchExpression) *SearchContentInput {
  7760  	s.SearchExpression = v
  7761  	return s
  7762  }
  7763  
  7764  type SearchContentOutput struct {
  7765  	_ struct{} `type:"structure"`
  7766  
  7767  	// Summary information about the content.
  7768  	//
  7769  	// ContentSummaries is a required field
  7770  	ContentSummaries []*ContentSummary `locationName:"contentSummaries" type:"list" required:"true"`
  7771  
  7772  	// If there are additional results, this is the token for the next set of results.
  7773  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  7774  }
  7775  
  7776  // String returns the string representation.
  7777  //
  7778  // API parameter values that are decorated as "sensitive" in the API will not
  7779  // be included in the string output. The member name will be present, but the
  7780  // value will be replaced with "sensitive".
  7781  func (s SearchContentOutput) String() string {
  7782  	return awsutil.Prettify(s)
  7783  }
  7784  
  7785  // GoString returns the string representation.
  7786  //
  7787  // API parameter values that are decorated as "sensitive" in the API will not
  7788  // be included in the string output. The member name will be present, but the
  7789  // value will be replaced with "sensitive".
  7790  func (s SearchContentOutput) GoString() string {
  7791  	return s.String()
  7792  }
  7793  
  7794  // SetContentSummaries sets the ContentSummaries field's value.
  7795  func (s *SearchContentOutput) SetContentSummaries(v []*ContentSummary) *SearchContentOutput {
  7796  	s.ContentSummaries = v
  7797  	return s
  7798  }
  7799  
  7800  // SetNextToken sets the NextToken field's value.
  7801  func (s *SearchContentOutput) SetNextToken(v string) *SearchContentOutput {
  7802  	s.NextToken = &v
  7803  	return s
  7804  }
  7805  
  7806  // The search expression.
  7807  type SearchExpression struct {
  7808  	_ struct{} `type:"structure"`
  7809  
  7810  	// The search expression filters.
  7811  	//
  7812  	// Filters is a required field
  7813  	Filters []*Filter `locationName:"filters" type:"list" required:"true"`
  7814  }
  7815  
  7816  // String returns the string representation.
  7817  //
  7818  // API parameter values that are decorated as "sensitive" in the API will not
  7819  // be included in the string output. The member name will be present, but the
  7820  // value will be replaced with "sensitive".
  7821  func (s SearchExpression) String() string {
  7822  	return awsutil.Prettify(s)
  7823  }
  7824  
  7825  // GoString returns the string representation.
  7826  //
  7827  // API parameter values that are decorated as "sensitive" in the API will not
  7828  // be included in the string output. The member name will be present, but the
  7829  // value will be replaced with "sensitive".
  7830  func (s SearchExpression) GoString() string {
  7831  	return s.String()
  7832  }
  7833  
  7834  // Validate inspects the fields of the type to determine if they are valid.
  7835  func (s *SearchExpression) Validate() error {
  7836  	invalidParams := request.ErrInvalidParams{Context: "SearchExpression"}
  7837  	if s.Filters == nil {
  7838  		invalidParams.Add(request.NewErrParamRequired("Filters"))
  7839  	}
  7840  	if s.Filters != nil {
  7841  		for i, v := range s.Filters {
  7842  			if v == nil {
  7843  				continue
  7844  			}
  7845  			if err := v.Validate(); err != nil {
  7846  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7847  			}
  7848  		}
  7849  	}
  7850  
  7851  	if invalidParams.Len() > 0 {
  7852  		return invalidParams
  7853  	}
  7854  	return nil
  7855  }
  7856  
  7857  // SetFilters sets the Filters field's value.
  7858  func (s *SearchExpression) SetFilters(v []*Filter) *SearchExpression {
  7859  	s.Filters = v
  7860  	return s
  7861  }
  7862  
  7863  type SearchSessionsInput struct {
  7864  	_ struct{} `type:"structure"`
  7865  
  7866  	// The identifier of the Wisdom assistant. Can be either the ID or the ARN.
  7867  	// URLs cannot contain the ARN.
  7868  	//
  7869  	// AssistantId is a required field
  7870  	AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"`
  7871  
  7872  	// The maximum number of results to return per page.
  7873  	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  7874  
  7875  	// The token for the next set of results. Use the value returned in the previous
  7876  	// response in the next request to retrieve the next set of results.
  7877  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  7878  
  7879  	// The search expression to filter results.
  7880  	//
  7881  	// SearchExpression is a required field
  7882  	SearchExpression *SearchExpression `locationName:"searchExpression" type:"structure" required:"true"`
  7883  }
  7884  
  7885  // String returns the string representation.
  7886  //
  7887  // API parameter values that are decorated as "sensitive" in the API will not
  7888  // be included in the string output. The member name will be present, but the
  7889  // value will be replaced with "sensitive".
  7890  func (s SearchSessionsInput) String() string {
  7891  	return awsutil.Prettify(s)
  7892  }
  7893  
  7894  // GoString returns the string representation.
  7895  //
  7896  // API parameter values that are decorated as "sensitive" in the API will not
  7897  // be included in the string output. The member name will be present, but the
  7898  // value will be replaced with "sensitive".
  7899  func (s SearchSessionsInput) GoString() string {
  7900  	return s.String()
  7901  }
  7902  
  7903  // Validate inspects the fields of the type to determine if they are valid.
  7904  func (s *SearchSessionsInput) Validate() error {
  7905  	invalidParams := request.ErrInvalidParams{Context: "SearchSessionsInput"}
  7906  	if s.AssistantId == nil {
  7907  		invalidParams.Add(request.NewErrParamRequired("AssistantId"))
  7908  	}
  7909  	if s.AssistantId != nil && len(*s.AssistantId) < 1 {
  7910  		invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1))
  7911  	}
  7912  	if s.MaxResults != nil && *s.MaxResults < 1 {
  7913  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  7914  	}
  7915  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  7916  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  7917  	}
  7918  	if s.SearchExpression == nil {
  7919  		invalidParams.Add(request.NewErrParamRequired("SearchExpression"))
  7920  	}
  7921  	if s.SearchExpression != nil {
  7922  		if err := s.SearchExpression.Validate(); err != nil {
  7923  			invalidParams.AddNested("SearchExpression", err.(request.ErrInvalidParams))
  7924  		}
  7925  	}
  7926  
  7927  	if invalidParams.Len() > 0 {
  7928  		return invalidParams
  7929  	}
  7930  	return nil
  7931  }
  7932  
  7933  // SetAssistantId sets the AssistantId field's value.
  7934  func (s *SearchSessionsInput) SetAssistantId(v string) *SearchSessionsInput {
  7935  	s.AssistantId = &v
  7936  	return s
  7937  }
  7938  
  7939  // SetMaxResults sets the MaxResults field's value.
  7940  func (s *SearchSessionsInput) SetMaxResults(v int64) *SearchSessionsInput {
  7941  	s.MaxResults = &v
  7942  	return s
  7943  }
  7944  
  7945  // SetNextToken sets the NextToken field's value.
  7946  func (s *SearchSessionsInput) SetNextToken(v string) *SearchSessionsInput {
  7947  	s.NextToken = &v
  7948  	return s
  7949  }
  7950  
  7951  // SetSearchExpression sets the SearchExpression field's value.
  7952  func (s *SearchSessionsInput) SetSearchExpression(v *SearchExpression) *SearchSessionsInput {
  7953  	s.SearchExpression = v
  7954  	return s
  7955  }
  7956  
  7957  type SearchSessionsOutput struct {
  7958  	_ struct{} `type:"structure"`
  7959  
  7960  	// If there are additional results, this is the token for the next set of results.
  7961  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  7962  
  7963  	// Summary information about the sessions.
  7964  	//
  7965  	// SessionSummaries is a required field
  7966  	SessionSummaries []*SessionSummary `locationName:"sessionSummaries" type:"list" required:"true"`
  7967  }
  7968  
  7969  // String returns the string representation.
  7970  //
  7971  // API parameter values that are decorated as "sensitive" in the API will not
  7972  // be included in the string output. The member name will be present, but the
  7973  // value will be replaced with "sensitive".
  7974  func (s SearchSessionsOutput) String() string {
  7975  	return awsutil.Prettify(s)
  7976  }
  7977  
  7978  // GoString returns the string representation.
  7979  //
  7980  // API parameter values that are decorated as "sensitive" in the API will not
  7981  // be included in the string output. The member name will be present, but the
  7982  // value will be replaced with "sensitive".
  7983  func (s SearchSessionsOutput) GoString() string {
  7984  	return s.String()
  7985  }
  7986  
  7987  // SetNextToken sets the NextToken field's value.
  7988  func (s *SearchSessionsOutput) SetNextToken(v string) *SearchSessionsOutput {
  7989  	s.NextToken = &v
  7990  	return s
  7991  }
  7992  
  7993  // SetSessionSummaries sets the SessionSummaries field's value.
  7994  func (s *SearchSessionsOutput) SetSessionSummaries(v []*SessionSummary) *SearchSessionsOutput {
  7995  	s.SessionSummaries = v
  7996  	return s
  7997  }
  7998  
  7999  // The KMS key used for encryption.
  8000  type ServerSideEncryptionConfiguration struct {
  8001  	_ struct{} `type:"structure"`
  8002  
  8003  	// The KMS key. For information about valid ID values, see Key identifiers (KeyId)
  8004  	// (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id)
  8005  	// in the AWS Key Management Service Developer Guide.
  8006  	KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"`
  8007  }
  8008  
  8009  // String returns the string representation.
  8010  //
  8011  // API parameter values that are decorated as "sensitive" in the API will not
  8012  // be included in the string output. The member name will be present, but the
  8013  // value will be replaced with "sensitive".
  8014  func (s ServerSideEncryptionConfiguration) String() string {
  8015  	return awsutil.Prettify(s)
  8016  }
  8017  
  8018  // GoString returns the string representation.
  8019  //
  8020  // API parameter values that are decorated as "sensitive" in the API will not
  8021  // be included in the string output. The member name will be present, but the
  8022  // value will be replaced with "sensitive".
  8023  func (s ServerSideEncryptionConfiguration) GoString() string {
  8024  	return s.String()
  8025  }
  8026  
  8027  // Validate inspects the fields of the type to determine if they are valid.
  8028  func (s *ServerSideEncryptionConfiguration) Validate() error {
  8029  	invalidParams := request.ErrInvalidParams{Context: "ServerSideEncryptionConfiguration"}
  8030  	if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 {
  8031  		invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1))
  8032  	}
  8033  
  8034  	if invalidParams.Len() > 0 {
  8035  		return invalidParams
  8036  	}
  8037  	return nil
  8038  }
  8039  
  8040  // SetKmsKeyId sets the KmsKeyId field's value.
  8041  func (s *ServerSideEncryptionConfiguration) SetKmsKeyId(v string) *ServerSideEncryptionConfiguration {
  8042  	s.KmsKeyId = &v
  8043  	return s
  8044  }
  8045  
  8046  // You've exceeded your service quota. To perform the requested action, remove
  8047  // some of the relevant resources, or use service quotas to request a service
  8048  // quota increase.
  8049  type ServiceQuotaExceededException struct {
  8050  	_            struct{}                  `type:"structure"`
  8051  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  8052  
  8053  	Message_ *string `locationName:"message" type:"string"`
  8054  }
  8055  
  8056  // String returns the string representation.
  8057  //
  8058  // API parameter values that are decorated as "sensitive" in the API will not
  8059  // be included in the string output. The member name will be present, but the
  8060  // value will be replaced with "sensitive".
  8061  func (s ServiceQuotaExceededException) String() string {
  8062  	return awsutil.Prettify(s)
  8063  }
  8064  
  8065  // GoString returns the string representation.
  8066  //
  8067  // API parameter values that are decorated as "sensitive" in the API will not
  8068  // be included in the string output. The member name will be present, but the
  8069  // value will be replaced with "sensitive".
  8070  func (s ServiceQuotaExceededException) GoString() string {
  8071  	return s.String()
  8072  }
  8073  
  8074  func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
  8075  	return &ServiceQuotaExceededException{
  8076  		RespMetadata: v,
  8077  	}
  8078  }
  8079  
  8080  // Code returns the exception type name.
  8081  func (s *ServiceQuotaExceededException) Code() string {
  8082  	return "ServiceQuotaExceededException"
  8083  }
  8084  
  8085  // Message returns the exception's message.
  8086  func (s *ServiceQuotaExceededException) Message() string {
  8087  	if s.Message_ != nil {
  8088  		return *s.Message_
  8089  	}
  8090  	return ""
  8091  }
  8092  
  8093  // OrigErr always returns nil, satisfies awserr.Error interface.
  8094  func (s *ServiceQuotaExceededException) OrigErr() error {
  8095  	return nil
  8096  }
  8097  
  8098  func (s *ServiceQuotaExceededException) Error() string {
  8099  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  8100  }
  8101  
  8102  // Status code returns the HTTP status code for the request's response error.
  8103  func (s *ServiceQuotaExceededException) StatusCode() int {
  8104  	return s.RespMetadata.StatusCode
  8105  }
  8106  
  8107  // RequestID returns the service's response RequestID for request.
  8108  func (s *ServiceQuotaExceededException) RequestID() string {
  8109  	return s.RespMetadata.RequestID
  8110  }
  8111  
  8112  // Information about the session.
  8113  type SessionData struct {
  8114  	_ struct{} `type:"structure"`
  8115  
  8116  	// The description of the session.
  8117  	Description *string `locationName:"description" min:"1" type:"string"`
  8118  
  8119  	// The name of the session.
  8120  	//
  8121  	// Name is a required field
  8122  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  8123  
  8124  	// The Amazon Resource Name (ARN) of the session.
  8125  	//
  8126  	// SessionArn is a required field
  8127  	SessionArn *string `locationName:"sessionArn" type:"string" required:"true"`
  8128  
  8129  	// The identifier of the session.
  8130  	//
  8131  	// SessionId is a required field
  8132  	SessionId *string `locationName:"sessionId" type:"string" required:"true"`
  8133  
  8134  	// The tags used to organize, track, or control access for this resource.
  8135  	Tags map[string]*string `locationName:"tags" type:"map"`
  8136  }
  8137  
  8138  // String returns the string representation.
  8139  //
  8140  // API parameter values that are decorated as "sensitive" in the API will not
  8141  // be included in the string output. The member name will be present, but the
  8142  // value will be replaced with "sensitive".
  8143  func (s SessionData) String() string {
  8144  	return awsutil.Prettify(s)
  8145  }
  8146  
  8147  // GoString returns the string representation.
  8148  //
  8149  // API parameter values that are decorated as "sensitive" in the API will not
  8150  // be included in the string output. The member name will be present, but the
  8151  // value will be replaced with "sensitive".
  8152  func (s SessionData) GoString() string {
  8153  	return s.String()
  8154  }
  8155  
  8156  // SetDescription sets the Description field's value.
  8157  func (s *SessionData) SetDescription(v string) *SessionData {
  8158  	s.Description = &v
  8159  	return s
  8160  }
  8161  
  8162  // SetName sets the Name field's value.
  8163  func (s *SessionData) SetName(v string) *SessionData {
  8164  	s.Name = &v
  8165  	return s
  8166  }
  8167  
  8168  // SetSessionArn sets the SessionArn field's value.
  8169  func (s *SessionData) SetSessionArn(v string) *SessionData {
  8170  	s.SessionArn = &v
  8171  	return s
  8172  }
  8173  
  8174  // SetSessionId sets the SessionId field's value.
  8175  func (s *SessionData) SetSessionId(v string) *SessionData {
  8176  	s.SessionId = &v
  8177  	return s
  8178  }
  8179  
  8180  // SetTags sets the Tags field's value.
  8181  func (s *SessionData) SetTags(v map[string]*string) *SessionData {
  8182  	s.Tags = v
  8183  	return s
  8184  }
  8185  
  8186  // Summary information about the session.
  8187  type SessionSummary struct {
  8188  	_ struct{} `type:"structure"`
  8189  
  8190  	// The Amazon Resource Name (ARN) of the Wisdom assistant
  8191  	//
  8192  	// AssistantArn is a required field
  8193  	AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"`
  8194  
  8195  	// The identifier of the Wisdom assistant.
  8196  	//
  8197  	// AssistantId is a required field
  8198  	AssistantId *string `locationName:"assistantId" type:"string" required:"true"`
  8199  
  8200  	// The Amazon Resource Name (ARN) of the session.
  8201  	//
  8202  	// SessionArn is a required field
  8203  	SessionArn *string `locationName:"sessionArn" type:"string" required:"true"`
  8204  
  8205  	// The identifier of the session.
  8206  	//
  8207  	// SessionId is a required field
  8208  	SessionId *string `locationName:"sessionId" type:"string" required:"true"`
  8209  }
  8210  
  8211  // String returns the string representation.
  8212  //
  8213  // API parameter values that are decorated as "sensitive" in the API will not
  8214  // be included in the string output. The member name will be present, but the
  8215  // value will be replaced with "sensitive".
  8216  func (s SessionSummary) String() string {
  8217  	return awsutil.Prettify(s)
  8218  }
  8219  
  8220  // GoString returns the string representation.
  8221  //
  8222  // API parameter values that are decorated as "sensitive" in the API will not
  8223  // be included in the string output. The member name will be present, but the
  8224  // value will be replaced with "sensitive".
  8225  func (s SessionSummary) GoString() string {
  8226  	return s.String()
  8227  }
  8228  
  8229  // SetAssistantArn sets the AssistantArn field's value.
  8230  func (s *SessionSummary) SetAssistantArn(v string) *SessionSummary {
  8231  	s.AssistantArn = &v
  8232  	return s
  8233  }
  8234  
  8235  // SetAssistantId sets the AssistantId field's value.
  8236  func (s *SessionSummary) SetAssistantId(v string) *SessionSummary {
  8237  	s.AssistantId = &v
  8238  	return s
  8239  }
  8240  
  8241  // SetSessionArn sets the SessionArn field's value.
  8242  func (s *SessionSummary) SetSessionArn(v string) *SessionSummary {
  8243  	s.SessionArn = &v
  8244  	return s
  8245  }
  8246  
  8247  // SetSessionId sets the SessionId field's value.
  8248  func (s *SessionSummary) SetSessionId(v string) *SessionSummary {
  8249  	s.SessionId = &v
  8250  	return s
  8251  }
  8252  
  8253  // Configuration information about the external data source.
  8254  type SourceConfiguration struct {
  8255  	_ struct{} `type:"structure"`
  8256  
  8257  	// Configuration information for Amazon AppIntegrations to automatically ingest
  8258  	// content.
  8259  	AppIntegrations *AppIntegrationsConfiguration `locationName:"appIntegrations" type:"structure"`
  8260  }
  8261  
  8262  // String returns the string representation.
  8263  //
  8264  // API parameter values that are decorated as "sensitive" in the API will not
  8265  // be included in the string output. The member name will be present, but the
  8266  // value will be replaced with "sensitive".
  8267  func (s SourceConfiguration) String() string {
  8268  	return awsutil.Prettify(s)
  8269  }
  8270  
  8271  // GoString returns the string representation.
  8272  //
  8273  // API parameter values that are decorated as "sensitive" in the API will not
  8274  // be included in the string output. The member name will be present, but the
  8275  // value will be replaced with "sensitive".
  8276  func (s SourceConfiguration) GoString() string {
  8277  	return s.String()
  8278  }
  8279  
  8280  // Validate inspects the fields of the type to determine if they are valid.
  8281  func (s *SourceConfiguration) Validate() error {
  8282  	invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"}
  8283  	if s.AppIntegrations != nil {
  8284  		if err := s.AppIntegrations.Validate(); err != nil {
  8285  			invalidParams.AddNested("AppIntegrations", err.(request.ErrInvalidParams))
  8286  		}
  8287  	}
  8288  
  8289  	if invalidParams.Len() > 0 {
  8290  		return invalidParams
  8291  	}
  8292  	return nil
  8293  }
  8294  
  8295  // SetAppIntegrations sets the AppIntegrations field's value.
  8296  func (s *SourceConfiguration) SetAppIntegrations(v *AppIntegrationsConfiguration) *SourceConfiguration {
  8297  	s.AppIntegrations = v
  8298  	return s
  8299  }
  8300  
  8301  type StartContentUploadInput struct {
  8302  	_ struct{} `type:"structure"`
  8303  
  8304  	// The type of content to upload.
  8305  	//
  8306  	// ContentType is a required field
  8307  	ContentType *string `locationName:"contentType" type:"string" required:"true"`
  8308  
  8309  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  8310  	// URLs cannot contain the ARN.
  8311  	//
  8312  	// KnowledgeBaseId is a required field
  8313  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  8314  }
  8315  
  8316  // String returns the string representation.
  8317  //
  8318  // API parameter values that are decorated as "sensitive" in the API will not
  8319  // be included in the string output. The member name will be present, but the
  8320  // value will be replaced with "sensitive".
  8321  func (s StartContentUploadInput) String() string {
  8322  	return awsutil.Prettify(s)
  8323  }
  8324  
  8325  // GoString returns the string representation.
  8326  //
  8327  // API parameter values that are decorated as "sensitive" in the API will not
  8328  // be included in the string output. The member name will be present, but the
  8329  // value will be replaced with "sensitive".
  8330  func (s StartContentUploadInput) GoString() string {
  8331  	return s.String()
  8332  }
  8333  
  8334  // Validate inspects the fields of the type to determine if they are valid.
  8335  func (s *StartContentUploadInput) Validate() error {
  8336  	invalidParams := request.ErrInvalidParams{Context: "StartContentUploadInput"}
  8337  	if s.ContentType == nil {
  8338  		invalidParams.Add(request.NewErrParamRequired("ContentType"))
  8339  	}
  8340  	if s.KnowledgeBaseId == nil {
  8341  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  8342  	}
  8343  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  8344  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  8345  	}
  8346  
  8347  	if invalidParams.Len() > 0 {
  8348  		return invalidParams
  8349  	}
  8350  	return nil
  8351  }
  8352  
  8353  // SetContentType sets the ContentType field's value.
  8354  func (s *StartContentUploadInput) SetContentType(v string) *StartContentUploadInput {
  8355  	s.ContentType = &v
  8356  	return s
  8357  }
  8358  
  8359  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  8360  func (s *StartContentUploadInput) SetKnowledgeBaseId(v string) *StartContentUploadInput {
  8361  	s.KnowledgeBaseId = &v
  8362  	return s
  8363  }
  8364  
  8365  type StartContentUploadOutput struct {
  8366  	_ struct{} `type:"structure"`
  8367  
  8368  	// The headers to include in the upload.
  8369  	//
  8370  	// HeadersToInclude is a required field
  8371  	HeadersToInclude map[string]*string `locationName:"headersToInclude" type:"map" required:"true"`
  8372  
  8373  	// The identifier of the upload.
  8374  	//
  8375  	// UploadId is a required field
  8376  	UploadId *string `locationName:"uploadId" min:"1" type:"string" required:"true"`
  8377  
  8378  	// The URL of the upload.
  8379  	//
  8380  	// Url is a sensitive parameter and its value will be
  8381  	// replaced with "sensitive" in string returned by StartContentUploadOutput's
  8382  	// String and GoString methods.
  8383  	//
  8384  	// Url is a required field
  8385  	Url *string `locationName:"url" min:"1" type:"string" required:"true" sensitive:"true"`
  8386  
  8387  	// The expiration time of the URL as an epoch timestamp.
  8388  	//
  8389  	// UrlExpiry is a required field
  8390  	UrlExpiry *time.Time `locationName:"urlExpiry" type:"timestamp" timestampFormat:"unixTimestamp" required:"true"`
  8391  }
  8392  
  8393  // String returns the string representation.
  8394  //
  8395  // API parameter values that are decorated as "sensitive" in the API will not
  8396  // be included in the string output. The member name will be present, but the
  8397  // value will be replaced with "sensitive".
  8398  func (s StartContentUploadOutput) String() string {
  8399  	return awsutil.Prettify(s)
  8400  }
  8401  
  8402  // GoString returns the string representation.
  8403  //
  8404  // API parameter values that are decorated as "sensitive" in the API will not
  8405  // be included in the string output. The member name will be present, but the
  8406  // value will be replaced with "sensitive".
  8407  func (s StartContentUploadOutput) GoString() string {
  8408  	return s.String()
  8409  }
  8410  
  8411  // SetHeadersToInclude sets the HeadersToInclude field's value.
  8412  func (s *StartContentUploadOutput) SetHeadersToInclude(v map[string]*string) *StartContentUploadOutput {
  8413  	s.HeadersToInclude = v
  8414  	return s
  8415  }
  8416  
  8417  // SetUploadId sets the UploadId field's value.
  8418  func (s *StartContentUploadOutput) SetUploadId(v string) *StartContentUploadOutput {
  8419  	s.UploadId = &v
  8420  	return s
  8421  }
  8422  
  8423  // SetUrl sets the Url field's value.
  8424  func (s *StartContentUploadOutput) SetUrl(v string) *StartContentUploadOutput {
  8425  	s.Url = &v
  8426  	return s
  8427  }
  8428  
  8429  // SetUrlExpiry sets the UrlExpiry field's value.
  8430  func (s *StartContentUploadOutput) SetUrlExpiry(v time.Time) *StartContentUploadOutput {
  8431  	s.UrlExpiry = &v
  8432  	return s
  8433  }
  8434  
  8435  type TagResourceInput struct {
  8436  	_ struct{} `type:"structure"`
  8437  
  8438  	// The Amazon Resource Name (ARN) of the resource.
  8439  	//
  8440  	// ResourceArn is a required field
  8441  	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
  8442  
  8443  	// The tags used to organize, track, or control access for this resource.
  8444  	//
  8445  	// Tags is a required field
  8446  	Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
  8447  }
  8448  
  8449  // String returns the string representation.
  8450  //
  8451  // API parameter values that are decorated as "sensitive" in the API will not
  8452  // be included in the string output. The member name will be present, but the
  8453  // value will be replaced with "sensitive".
  8454  func (s TagResourceInput) String() string {
  8455  	return awsutil.Prettify(s)
  8456  }
  8457  
  8458  // GoString returns the string representation.
  8459  //
  8460  // API parameter values that are decorated as "sensitive" in the API will not
  8461  // be included in the string output. The member name will be present, but the
  8462  // value will be replaced with "sensitive".
  8463  func (s TagResourceInput) GoString() string {
  8464  	return s.String()
  8465  }
  8466  
  8467  // Validate inspects the fields of the type to determine if they are valid.
  8468  func (s *TagResourceInput) Validate() error {
  8469  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  8470  	if s.ResourceArn == nil {
  8471  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  8472  	}
  8473  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  8474  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  8475  	}
  8476  	if s.Tags == nil {
  8477  		invalidParams.Add(request.NewErrParamRequired("Tags"))
  8478  	}
  8479  
  8480  	if invalidParams.Len() > 0 {
  8481  		return invalidParams
  8482  	}
  8483  	return nil
  8484  }
  8485  
  8486  // SetResourceArn sets the ResourceArn field's value.
  8487  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  8488  	s.ResourceArn = &v
  8489  	return s
  8490  }
  8491  
  8492  // SetTags sets the Tags field's value.
  8493  func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
  8494  	s.Tags = v
  8495  	return s
  8496  }
  8497  
  8498  type TagResourceOutput struct {
  8499  	_ struct{} `type:"structure" nopayload:"true"`
  8500  }
  8501  
  8502  // String returns the string representation.
  8503  //
  8504  // API parameter values that are decorated as "sensitive" in the API will not
  8505  // be included in the string output. The member name will be present, but the
  8506  // value will be replaced with "sensitive".
  8507  func (s TagResourceOutput) String() string {
  8508  	return awsutil.Prettify(s)
  8509  }
  8510  
  8511  // GoString returns the string representation.
  8512  //
  8513  // API parameter values that are decorated as "sensitive" in the API will not
  8514  // be included in the string output. The member name will be present, but the
  8515  // value will be replaced with "sensitive".
  8516  func (s TagResourceOutput) GoString() string {
  8517  	return s.String()
  8518  }
  8519  
  8520  // Amazon Connect Wisdom throws this exception if you have too many tags in
  8521  // your tag set.
  8522  type TooManyTagsException struct {
  8523  	_            struct{}                  `type:"structure"`
  8524  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  8525  
  8526  	Message_ *string `locationName:"message" type:"string"`
  8527  
  8528  	// The specified resource name.
  8529  	ResourceName *string `locationName:"resourceName" type:"string"`
  8530  }
  8531  
  8532  // String returns the string representation.
  8533  //
  8534  // API parameter values that are decorated as "sensitive" in the API will not
  8535  // be included in the string output. The member name will be present, but the
  8536  // value will be replaced with "sensitive".
  8537  func (s TooManyTagsException) String() string {
  8538  	return awsutil.Prettify(s)
  8539  }
  8540  
  8541  // GoString returns the string representation.
  8542  //
  8543  // API parameter values that are decorated as "sensitive" in the API will not
  8544  // be included in the string output. The member name will be present, but the
  8545  // value will be replaced with "sensitive".
  8546  func (s TooManyTagsException) GoString() string {
  8547  	return s.String()
  8548  }
  8549  
  8550  func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
  8551  	return &TooManyTagsException{
  8552  		RespMetadata: v,
  8553  	}
  8554  }
  8555  
  8556  // Code returns the exception type name.
  8557  func (s *TooManyTagsException) Code() string {
  8558  	return "TooManyTagsException"
  8559  }
  8560  
  8561  // Message returns the exception's message.
  8562  func (s *TooManyTagsException) Message() string {
  8563  	if s.Message_ != nil {
  8564  		return *s.Message_
  8565  	}
  8566  	return ""
  8567  }
  8568  
  8569  // OrigErr always returns nil, satisfies awserr.Error interface.
  8570  func (s *TooManyTagsException) OrigErr() error {
  8571  	return nil
  8572  }
  8573  
  8574  func (s *TooManyTagsException) Error() string {
  8575  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  8576  }
  8577  
  8578  // Status code returns the HTTP status code for the request's response error.
  8579  func (s *TooManyTagsException) StatusCode() int {
  8580  	return s.RespMetadata.StatusCode
  8581  }
  8582  
  8583  // RequestID returns the service's response RequestID for request.
  8584  func (s *TooManyTagsException) RequestID() string {
  8585  	return s.RespMetadata.RequestID
  8586  }
  8587  
  8588  type UntagResourceInput struct {
  8589  	_ struct{} `type:"structure" nopayload:"true"`
  8590  
  8591  	// The Amazon Resource Name (ARN) of the resource.
  8592  	//
  8593  	// ResourceArn is a required field
  8594  	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
  8595  
  8596  	// The tag keys.
  8597  	//
  8598  	// TagKeys is a required field
  8599  	TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
  8600  }
  8601  
  8602  // String returns the string representation.
  8603  //
  8604  // API parameter values that are decorated as "sensitive" in the API will not
  8605  // be included in the string output. The member name will be present, but the
  8606  // value will be replaced with "sensitive".
  8607  func (s UntagResourceInput) String() string {
  8608  	return awsutil.Prettify(s)
  8609  }
  8610  
  8611  // GoString returns the string representation.
  8612  //
  8613  // API parameter values that are decorated as "sensitive" in the API will not
  8614  // be included in the string output. The member name will be present, but the
  8615  // value will be replaced with "sensitive".
  8616  func (s UntagResourceInput) GoString() string {
  8617  	return s.String()
  8618  }
  8619  
  8620  // Validate inspects the fields of the type to determine if they are valid.
  8621  func (s *UntagResourceInput) Validate() error {
  8622  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  8623  	if s.ResourceArn == nil {
  8624  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  8625  	}
  8626  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  8627  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  8628  	}
  8629  	if s.TagKeys == nil {
  8630  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  8631  	}
  8632  	if s.TagKeys != nil && len(s.TagKeys) < 1 {
  8633  		invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
  8634  	}
  8635  
  8636  	if invalidParams.Len() > 0 {
  8637  		return invalidParams
  8638  	}
  8639  	return nil
  8640  }
  8641  
  8642  // SetResourceArn sets the ResourceArn field's value.
  8643  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  8644  	s.ResourceArn = &v
  8645  	return s
  8646  }
  8647  
  8648  // SetTagKeys sets the TagKeys field's value.
  8649  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  8650  	s.TagKeys = v
  8651  	return s
  8652  }
  8653  
  8654  type UntagResourceOutput struct {
  8655  	_ struct{} `type:"structure" nopayload:"true"`
  8656  }
  8657  
  8658  // String returns the string representation.
  8659  //
  8660  // API parameter values that are decorated as "sensitive" in the API will not
  8661  // be included in the string output. The member name will be present, but the
  8662  // value will be replaced with "sensitive".
  8663  func (s UntagResourceOutput) String() string {
  8664  	return awsutil.Prettify(s)
  8665  }
  8666  
  8667  // GoString returns the string representation.
  8668  //
  8669  // API parameter values that are decorated as "sensitive" in the API will not
  8670  // be included in the string output. The member name will be present, but the
  8671  // value will be replaced with "sensitive".
  8672  func (s UntagResourceOutput) GoString() string {
  8673  	return s.String()
  8674  }
  8675  
  8676  type UpdateContentInput struct {
  8677  	_ struct{} `type:"structure"`
  8678  
  8679  	// The identifier of the content. Can be either the ID or the ARN. URLs cannot
  8680  	// contain the ARN.
  8681  	//
  8682  	// ContentId is a required field
  8683  	ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"`
  8684  
  8685  	// The the identifier of the knowledge base. Can be either the ID or the ARN
  8686  	//
  8687  	// KnowledgeBaseId is a required field
  8688  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  8689  
  8690  	// A key/value map to store attributes without affecting tagging or recommendations.
  8691  	// For example, when synchronizing data between an external system and Wisdom,
  8692  	// you can store an external version identifier as metadata to utilize for determining
  8693  	// drift.
  8694  	Metadata map[string]*string `locationName:"metadata" type:"map"`
  8695  
  8696  	// The URI for the article. If the knowledge base has a templateUri, setting
  8697  	// this argument overrides it for this piece of content. To remove an existing
  8698  	// overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri
  8699  	// to true.
  8700  	OverrideLinkOutUri *string `locationName:"overrideLinkOutUri" min:"1" type:"string"`
  8701  
  8702  	// Unset the existing overrideLinkOutUri if it exists.
  8703  	RemoveOverrideLinkOutUri *bool `locationName:"removeOverrideLinkOutUri" type:"boolean"`
  8704  
  8705  	// The revisionId of the content resource to update, taken from an earlier call
  8706  	// to GetContent, GetContentSummary, SearchContent, or ListContents. If included,
  8707  	// this argument acts as an optimistic lock to ensure content was not modified
  8708  	// since it was last read. If it has been modified, this API throws a PreconditionFailedException.
  8709  	RevisionId *string `locationName:"revisionId" min:"1" type:"string"`
  8710  
  8711  	// The title of the content.
  8712  	Title *string `locationName:"title" min:"1" type:"string"`
  8713  
  8714  	// A pointer to the uploaded asset. This value is returned by StartContentUpload
  8715  	// (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html).
  8716  	UploadId *string `locationName:"uploadId" min:"1" type:"string"`
  8717  }
  8718  
  8719  // String returns the string representation.
  8720  //
  8721  // API parameter values that are decorated as "sensitive" in the API will not
  8722  // be included in the string output. The member name will be present, but the
  8723  // value will be replaced with "sensitive".
  8724  func (s UpdateContentInput) String() string {
  8725  	return awsutil.Prettify(s)
  8726  }
  8727  
  8728  // GoString returns the string representation.
  8729  //
  8730  // API parameter values that are decorated as "sensitive" in the API will not
  8731  // be included in the string output. The member name will be present, but the
  8732  // value will be replaced with "sensitive".
  8733  func (s UpdateContentInput) GoString() string {
  8734  	return s.String()
  8735  }
  8736  
  8737  // Validate inspects the fields of the type to determine if they are valid.
  8738  func (s *UpdateContentInput) Validate() error {
  8739  	invalidParams := request.ErrInvalidParams{Context: "UpdateContentInput"}
  8740  	if s.ContentId == nil {
  8741  		invalidParams.Add(request.NewErrParamRequired("ContentId"))
  8742  	}
  8743  	if s.ContentId != nil && len(*s.ContentId) < 1 {
  8744  		invalidParams.Add(request.NewErrParamMinLen("ContentId", 1))
  8745  	}
  8746  	if s.KnowledgeBaseId == nil {
  8747  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  8748  	}
  8749  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  8750  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  8751  	}
  8752  	if s.OverrideLinkOutUri != nil && len(*s.OverrideLinkOutUri) < 1 {
  8753  		invalidParams.Add(request.NewErrParamMinLen("OverrideLinkOutUri", 1))
  8754  	}
  8755  	if s.RevisionId != nil && len(*s.RevisionId) < 1 {
  8756  		invalidParams.Add(request.NewErrParamMinLen("RevisionId", 1))
  8757  	}
  8758  	if s.Title != nil && len(*s.Title) < 1 {
  8759  		invalidParams.Add(request.NewErrParamMinLen("Title", 1))
  8760  	}
  8761  	if s.UploadId != nil && len(*s.UploadId) < 1 {
  8762  		invalidParams.Add(request.NewErrParamMinLen("UploadId", 1))
  8763  	}
  8764  
  8765  	if invalidParams.Len() > 0 {
  8766  		return invalidParams
  8767  	}
  8768  	return nil
  8769  }
  8770  
  8771  // SetContentId sets the ContentId field's value.
  8772  func (s *UpdateContentInput) SetContentId(v string) *UpdateContentInput {
  8773  	s.ContentId = &v
  8774  	return s
  8775  }
  8776  
  8777  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  8778  func (s *UpdateContentInput) SetKnowledgeBaseId(v string) *UpdateContentInput {
  8779  	s.KnowledgeBaseId = &v
  8780  	return s
  8781  }
  8782  
  8783  // SetMetadata sets the Metadata field's value.
  8784  func (s *UpdateContentInput) SetMetadata(v map[string]*string) *UpdateContentInput {
  8785  	s.Metadata = v
  8786  	return s
  8787  }
  8788  
  8789  // SetOverrideLinkOutUri sets the OverrideLinkOutUri field's value.
  8790  func (s *UpdateContentInput) SetOverrideLinkOutUri(v string) *UpdateContentInput {
  8791  	s.OverrideLinkOutUri = &v
  8792  	return s
  8793  }
  8794  
  8795  // SetRemoveOverrideLinkOutUri sets the RemoveOverrideLinkOutUri field's value.
  8796  func (s *UpdateContentInput) SetRemoveOverrideLinkOutUri(v bool) *UpdateContentInput {
  8797  	s.RemoveOverrideLinkOutUri = &v
  8798  	return s
  8799  }
  8800  
  8801  // SetRevisionId sets the RevisionId field's value.
  8802  func (s *UpdateContentInput) SetRevisionId(v string) *UpdateContentInput {
  8803  	s.RevisionId = &v
  8804  	return s
  8805  }
  8806  
  8807  // SetTitle sets the Title field's value.
  8808  func (s *UpdateContentInput) SetTitle(v string) *UpdateContentInput {
  8809  	s.Title = &v
  8810  	return s
  8811  }
  8812  
  8813  // SetUploadId sets the UploadId field's value.
  8814  func (s *UpdateContentInput) SetUploadId(v string) *UpdateContentInput {
  8815  	s.UploadId = &v
  8816  	return s
  8817  }
  8818  
  8819  type UpdateContentOutput struct {
  8820  	_ struct{} `type:"structure"`
  8821  
  8822  	// The content.
  8823  	Content *ContentData `locationName:"content" type:"structure"`
  8824  }
  8825  
  8826  // String 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 UpdateContentOutput) String() string {
  8832  	return awsutil.Prettify(s)
  8833  }
  8834  
  8835  // GoString returns the string representation.
  8836  //
  8837  // API parameter values that are decorated as "sensitive" in the API will not
  8838  // be included in the string output. The member name will be present, but the
  8839  // value will be replaced with "sensitive".
  8840  func (s UpdateContentOutput) GoString() string {
  8841  	return s.String()
  8842  }
  8843  
  8844  // SetContent sets the Content field's value.
  8845  func (s *UpdateContentOutput) SetContent(v *ContentData) *UpdateContentOutput {
  8846  	s.Content = v
  8847  	return s
  8848  }
  8849  
  8850  type UpdateKnowledgeBaseTemplateUriInput struct {
  8851  	_ struct{} `type:"structure"`
  8852  
  8853  	// The the identifier of the knowledge base. Can be either the ID or the ARN.
  8854  	// URLs cannot contain the ARN.
  8855  	//
  8856  	// KnowledgeBaseId is a required field
  8857  	KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"`
  8858  
  8859  	// The template URI to update.
  8860  	//
  8861  	// TemplateUri is a required field
  8862  	TemplateUri *string `locationName:"templateUri" min:"1" type:"string" required:"true"`
  8863  }
  8864  
  8865  // String returns the string representation.
  8866  //
  8867  // API parameter values that are decorated as "sensitive" in the API will not
  8868  // be included in the string output. The member name will be present, but the
  8869  // value will be replaced with "sensitive".
  8870  func (s UpdateKnowledgeBaseTemplateUriInput) String() string {
  8871  	return awsutil.Prettify(s)
  8872  }
  8873  
  8874  // GoString returns the string representation.
  8875  //
  8876  // API parameter values that are decorated as "sensitive" in the API will not
  8877  // be included in the string output. The member name will be present, but the
  8878  // value will be replaced with "sensitive".
  8879  func (s UpdateKnowledgeBaseTemplateUriInput) GoString() string {
  8880  	return s.String()
  8881  }
  8882  
  8883  // Validate inspects the fields of the type to determine if they are valid.
  8884  func (s *UpdateKnowledgeBaseTemplateUriInput) Validate() error {
  8885  	invalidParams := request.ErrInvalidParams{Context: "UpdateKnowledgeBaseTemplateUriInput"}
  8886  	if s.KnowledgeBaseId == nil {
  8887  		invalidParams.Add(request.NewErrParamRequired("KnowledgeBaseId"))
  8888  	}
  8889  	if s.KnowledgeBaseId != nil && len(*s.KnowledgeBaseId) < 1 {
  8890  		invalidParams.Add(request.NewErrParamMinLen("KnowledgeBaseId", 1))
  8891  	}
  8892  	if s.TemplateUri == nil {
  8893  		invalidParams.Add(request.NewErrParamRequired("TemplateUri"))
  8894  	}
  8895  	if s.TemplateUri != nil && len(*s.TemplateUri) < 1 {
  8896  		invalidParams.Add(request.NewErrParamMinLen("TemplateUri", 1))
  8897  	}
  8898  
  8899  	if invalidParams.Len() > 0 {
  8900  		return invalidParams
  8901  	}
  8902  	return nil
  8903  }
  8904  
  8905  // SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
  8906  func (s *UpdateKnowledgeBaseTemplateUriInput) SetKnowledgeBaseId(v string) *UpdateKnowledgeBaseTemplateUriInput {
  8907  	s.KnowledgeBaseId = &v
  8908  	return s
  8909  }
  8910  
  8911  // SetTemplateUri sets the TemplateUri field's value.
  8912  func (s *UpdateKnowledgeBaseTemplateUriInput) SetTemplateUri(v string) *UpdateKnowledgeBaseTemplateUriInput {
  8913  	s.TemplateUri = &v
  8914  	return s
  8915  }
  8916  
  8917  type UpdateKnowledgeBaseTemplateUriOutput struct {
  8918  	_ struct{} `type:"structure"`
  8919  
  8920  	// The knowledge base to update.
  8921  	KnowledgeBase *KnowledgeBaseData `locationName:"knowledgeBase" type:"structure"`
  8922  }
  8923  
  8924  // String returns the string representation.
  8925  //
  8926  // API parameter values that are decorated as "sensitive" in the API will not
  8927  // be included in the string output. The member name will be present, but the
  8928  // value will be replaced with "sensitive".
  8929  func (s UpdateKnowledgeBaseTemplateUriOutput) String() string {
  8930  	return awsutil.Prettify(s)
  8931  }
  8932  
  8933  // GoString returns the string representation.
  8934  //
  8935  // API parameter values that are decorated as "sensitive" in the API will not
  8936  // be included in the string output. The member name will be present, but the
  8937  // value will be replaced with "sensitive".
  8938  func (s UpdateKnowledgeBaseTemplateUriOutput) GoString() string {
  8939  	return s.String()
  8940  }
  8941  
  8942  // SetKnowledgeBase sets the KnowledgeBase field's value.
  8943  func (s *UpdateKnowledgeBaseTemplateUriOutput) SetKnowledgeBase(v *KnowledgeBaseData) *UpdateKnowledgeBaseTemplateUriOutput {
  8944  	s.KnowledgeBase = v
  8945  	return s
  8946  }
  8947  
  8948  // The input fails to satisfy the constraints specified by an AWS service.
  8949  type ValidationException struct {
  8950  	_            struct{}                  `type:"structure"`
  8951  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  8952  
  8953  	Message_ *string `locationName:"message" type:"string"`
  8954  }
  8955  
  8956  // String returns the string representation.
  8957  //
  8958  // API parameter values that are decorated as "sensitive" in the API will not
  8959  // be included in the string output. The member name will be present, but the
  8960  // value will be replaced with "sensitive".
  8961  func (s ValidationException) String() string {
  8962  	return awsutil.Prettify(s)
  8963  }
  8964  
  8965  // GoString returns the string representation.
  8966  //
  8967  // API parameter values that are decorated as "sensitive" in the API will not
  8968  // be included in the string output. The member name will be present, but the
  8969  // value will be replaced with "sensitive".
  8970  func (s ValidationException) GoString() string {
  8971  	return s.String()
  8972  }
  8973  
  8974  func newErrorValidationException(v protocol.ResponseMetadata) error {
  8975  	return &ValidationException{
  8976  		RespMetadata: v,
  8977  	}
  8978  }
  8979  
  8980  // Code returns the exception type name.
  8981  func (s *ValidationException) Code() string {
  8982  	return "ValidationException"
  8983  }
  8984  
  8985  // Message returns the exception's message.
  8986  func (s *ValidationException) Message() string {
  8987  	if s.Message_ != nil {
  8988  		return *s.Message_
  8989  	}
  8990  	return ""
  8991  }
  8992  
  8993  // OrigErr always returns nil, satisfies awserr.Error interface.
  8994  func (s *ValidationException) OrigErr() error {
  8995  	return nil
  8996  }
  8997  
  8998  func (s *ValidationException) Error() string {
  8999  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  9000  }
  9001  
  9002  // Status code returns the HTTP status code for the request's response error.
  9003  func (s *ValidationException) StatusCode() int {
  9004  	return s.RespMetadata.StatusCode
  9005  }
  9006  
  9007  // RequestID returns the service's response RequestID for request.
  9008  func (s *ValidationException) RequestID() string {
  9009  	return s.RespMetadata.RequestID
  9010  }
  9011  
  9012  const (
  9013  	// AssistantStatusCreateInProgress is a AssistantStatus enum value
  9014  	AssistantStatusCreateInProgress = "CREATE_IN_PROGRESS"
  9015  
  9016  	// AssistantStatusCreateFailed is a AssistantStatus enum value
  9017  	AssistantStatusCreateFailed = "CREATE_FAILED"
  9018  
  9019  	// AssistantStatusActive is a AssistantStatus enum value
  9020  	AssistantStatusActive = "ACTIVE"
  9021  
  9022  	// AssistantStatusDeleteInProgress is a AssistantStatus enum value
  9023  	AssistantStatusDeleteInProgress = "DELETE_IN_PROGRESS"
  9024  
  9025  	// AssistantStatusDeleteFailed is a AssistantStatus enum value
  9026  	AssistantStatusDeleteFailed = "DELETE_FAILED"
  9027  
  9028  	// AssistantStatusDeleted is a AssistantStatus enum value
  9029  	AssistantStatusDeleted = "DELETED"
  9030  )
  9031  
  9032  // AssistantStatus_Values returns all elements of the AssistantStatus enum
  9033  func AssistantStatus_Values() []string {
  9034  	return []string{
  9035  		AssistantStatusCreateInProgress,
  9036  		AssistantStatusCreateFailed,
  9037  		AssistantStatusActive,
  9038  		AssistantStatusDeleteInProgress,
  9039  		AssistantStatusDeleteFailed,
  9040  		AssistantStatusDeleted,
  9041  	}
  9042  }
  9043  
  9044  const (
  9045  	// AssistantTypeAgent is a AssistantType enum value
  9046  	AssistantTypeAgent = "AGENT"
  9047  )
  9048  
  9049  // AssistantType_Values returns all elements of the AssistantType enum
  9050  func AssistantType_Values() []string {
  9051  	return []string{
  9052  		AssistantTypeAgent,
  9053  	}
  9054  }
  9055  
  9056  const (
  9057  	// AssociationTypeKnowledgeBase is a AssociationType enum value
  9058  	AssociationTypeKnowledgeBase = "KNOWLEDGE_BASE"
  9059  )
  9060  
  9061  // AssociationType_Values returns all elements of the AssociationType enum
  9062  func AssociationType_Values() []string {
  9063  	return []string{
  9064  		AssociationTypeKnowledgeBase,
  9065  	}
  9066  }
  9067  
  9068  const (
  9069  	// ContentStatusCreateInProgress is a ContentStatus enum value
  9070  	ContentStatusCreateInProgress = "CREATE_IN_PROGRESS"
  9071  
  9072  	// ContentStatusCreateFailed is a ContentStatus enum value
  9073  	ContentStatusCreateFailed = "CREATE_FAILED"
  9074  
  9075  	// ContentStatusActive is a ContentStatus enum value
  9076  	ContentStatusActive = "ACTIVE"
  9077  
  9078  	// ContentStatusDeleteInProgress is a ContentStatus enum value
  9079  	ContentStatusDeleteInProgress = "DELETE_IN_PROGRESS"
  9080  
  9081  	// ContentStatusDeleteFailed is a ContentStatus enum value
  9082  	ContentStatusDeleteFailed = "DELETE_FAILED"
  9083  
  9084  	// ContentStatusDeleted is a ContentStatus enum value
  9085  	ContentStatusDeleted = "DELETED"
  9086  
  9087  	// ContentStatusUpdateFailed is a ContentStatus enum value
  9088  	ContentStatusUpdateFailed = "UPDATE_FAILED"
  9089  )
  9090  
  9091  // ContentStatus_Values returns all elements of the ContentStatus enum
  9092  func ContentStatus_Values() []string {
  9093  	return []string{
  9094  		ContentStatusCreateInProgress,
  9095  		ContentStatusCreateFailed,
  9096  		ContentStatusActive,
  9097  		ContentStatusDeleteInProgress,
  9098  		ContentStatusDeleteFailed,
  9099  		ContentStatusDeleted,
  9100  		ContentStatusUpdateFailed,
  9101  	}
  9102  }
  9103  
  9104  const (
  9105  	// FilterFieldName is a FilterField enum value
  9106  	FilterFieldName = "NAME"
  9107  )
  9108  
  9109  // FilterField_Values returns all elements of the FilterField enum
  9110  func FilterField_Values() []string {
  9111  	return []string{
  9112  		FilterFieldName,
  9113  	}
  9114  }
  9115  
  9116  const (
  9117  	// FilterOperatorEquals is a FilterOperator enum value
  9118  	FilterOperatorEquals = "EQUALS"
  9119  )
  9120  
  9121  // FilterOperator_Values returns all elements of the FilterOperator enum
  9122  func FilterOperator_Values() []string {
  9123  	return []string{
  9124  		FilterOperatorEquals,
  9125  	}
  9126  }
  9127  
  9128  const (
  9129  	// KnowledgeBaseStatusCreateInProgress is a KnowledgeBaseStatus enum value
  9130  	KnowledgeBaseStatusCreateInProgress = "CREATE_IN_PROGRESS"
  9131  
  9132  	// KnowledgeBaseStatusCreateFailed is a KnowledgeBaseStatus enum value
  9133  	KnowledgeBaseStatusCreateFailed = "CREATE_FAILED"
  9134  
  9135  	// KnowledgeBaseStatusActive is a KnowledgeBaseStatus enum value
  9136  	KnowledgeBaseStatusActive = "ACTIVE"
  9137  
  9138  	// KnowledgeBaseStatusDeleteInProgress is a KnowledgeBaseStatus enum value
  9139  	KnowledgeBaseStatusDeleteInProgress = "DELETE_IN_PROGRESS"
  9140  
  9141  	// KnowledgeBaseStatusDeleteFailed is a KnowledgeBaseStatus enum value
  9142  	KnowledgeBaseStatusDeleteFailed = "DELETE_FAILED"
  9143  
  9144  	// KnowledgeBaseStatusDeleted is a KnowledgeBaseStatus enum value
  9145  	KnowledgeBaseStatusDeleted = "DELETED"
  9146  )
  9147  
  9148  // KnowledgeBaseStatus_Values returns all elements of the KnowledgeBaseStatus enum
  9149  func KnowledgeBaseStatus_Values() []string {
  9150  	return []string{
  9151  		KnowledgeBaseStatusCreateInProgress,
  9152  		KnowledgeBaseStatusCreateFailed,
  9153  		KnowledgeBaseStatusActive,
  9154  		KnowledgeBaseStatusDeleteInProgress,
  9155  		KnowledgeBaseStatusDeleteFailed,
  9156  		KnowledgeBaseStatusDeleted,
  9157  	}
  9158  }
  9159  
  9160  const (
  9161  	// KnowledgeBaseTypeExternal is a KnowledgeBaseType enum value
  9162  	KnowledgeBaseTypeExternal = "EXTERNAL"
  9163  
  9164  	// KnowledgeBaseTypeCustom is a KnowledgeBaseType enum value
  9165  	KnowledgeBaseTypeCustom = "CUSTOM"
  9166  )
  9167  
  9168  // KnowledgeBaseType_Values returns all elements of the KnowledgeBaseType enum
  9169  func KnowledgeBaseType_Values() []string {
  9170  	return []string{
  9171  		KnowledgeBaseTypeExternal,
  9172  		KnowledgeBaseTypeCustom,
  9173  	}
  9174  }
  9175  
  9176  const (
  9177  	// RelevanceLevelHigh is a RelevanceLevel enum value
  9178  	RelevanceLevelHigh = "HIGH"
  9179  
  9180  	// RelevanceLevelMedium is a RelevanceLevel enum value
  9181  	RelevanceLevelMedium = "MEDIUM"
  9182  
  9183  	// RelevanceLevelLow is a RelevanceLevel enum value
  9184  	RelevanceLevelLow = "LOW"
  9185  )
  9186  
  9187  // RelevanceLevel_Values returns all elements of the RelevanceLevel enum
  9188  func RelevanceLevel_Values() []string {
  9189  	return []string{
  9190  		RelevanceLevelHigh,
  9191  		RelevanceLevelMedium,
  9192  		RelevanceLevelLow,
  9193  	}
  9194  }