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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package codecommit
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  
     9  	"github.com/aavshr/aws-sdk-go/aws"
    10  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    11  	"github.com/aavshr/aws-sdk-go/aws/request"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol"
    13  	"github.com/aavshr/aws-sdk-go/private/protocol/jsonrpc"
    14  )
    15  
    16  const opAssociateApprovalRuleTemplateWithRepository = "AssociateApprovalRuleTemplateWithRepository"
    17  
    18  // AssociateApprovalRuleTemplateWithRepositoryRequest generates a "aws/request.Request" representing the
    19  // client's request for the AssociateApprovalRuleTemplateWithRepository 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 AssociateApprovalRuleTemplateWithRepository for more information on using the AssociateApprovalRuleTemplateWithRepository
    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 AssociateApprovalRuleTemplateWithRepositoryRequest method.
    34  //    req, resp := client.AssociateApprovalRuleTemplateWithRepositoryRequest(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/codecommit-2015-04-13/AssociateApprovalRuleTemplateWithRepository
    42  func (c *CodeCommit) AssociateApprovalRuleTemplateWithRepositoryRequest(input *AssociateApprovalRuleTemplateWithRepositoryInput) (req *request.Request, output *AssociateApprovalRuleTemplateWithRepositoryOutput) {
    43  	op := &request.Operation{
    44  		Name:       opAssociateApprovalRuleTemplateWithRepository,
    45  		HTTPMethod: "POST",
    46  		HTTPPath:   "/",
    47  	}
    48  
    49  	if input == nil {
    50  		input = &AssociateApprovalRuleTemplateWithRepositoryInput{}
    51  	}
    52  
    53  	output = &AssociateApprovalRuleTemplateWithRepositoryOutput{}
    54  	req = c.newRequest(op, input, output)
    55  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
    56  	return
    57  }
    58  
    59  // AssociateApprovalRuleTemplateWithRepository API operation for AWS CodeCommit.
    60  //
    61  // Creates an association between an approval rule template and a specified
    62  // repository. Then, the next time a pull request is created in the repository
    63  // where the destination reference (if specified) matches the destination reference
    64  // (branch) for the pull request, an approval rule that matches the template
    65  // conditions is automatically created for that pull request. If no destination
    66  // references are specified in the template, an approval rule that matches the
    67  // template contents is created for all pull requests in that repository.
    68  //
    69  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    70  // with awserr.Error's Code and Message methods to get detailed information about
    71  // the error.
    72  //
    73  // See the AWS API reference guide for AWS CodeCommit's
    74  // API operation AssociateApprovalRuleTemplateWithRepository for usage and error information.
    75  //
    76  // Returned Error Types:
    77  //   * ApprovalRuleTemplateNameRequiredException
    78  //   An approval rule template name is required, but was not specified.
    79  //
    80  //   * InvalidApprovalRuleTemplateNameException
    81  //   The name of the approval rule template is not valid. Template names must
    82  //   be between 1 and 100 valid characters in length. For more information about
    83  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
    84  //
    85  //   * ApprovalRuleTemplateDoesNotExistException
    86  //   The specified approval rule template does not exist. Verify that the name
    87  //   is correct and that you are signed in to the AWS Region where the template
    88  //   was created, and then try again.
    89  //
    90  //   * MaximumRuleTemplatesAssociatedWithRepositoryException
    91  //   The maximum number of approval rule templates for a repository has been exceeded.
    92  //   You cannot associate more than 25 approval rule templates with a repository.
    93  //
    94  //   * RepositoryNameRequiredException
    95  //   A repository name is required, but was not specified.
    96  //
    97  //   * InvalidRepositoryNameException
    98  //   A specified repository name is not valid.
    99  //
   100  //   This exception occurs only when a specified repository name is not valid.
   101  //   Other exceptions occur when a required repository parameter is missing, or
   102  //   when a specified repository does not exist.
   103  //
   104  //   * RepositoryDoesNotExistException
   105  //   The specified repository does not exist.
   106  //
   107  //   * EncryptionIntegrityChecksFailedException
   108  //   An encryption integrity check failed.
   109  //
   110  //   * EncryptionKeyAccessDeniedException
   111  //   An encryption key could not be accessed.
   112  //
   113  //   * EncryptionKeyDisabledException
   114  //   The encryption key is disabled.
   115  //
   116  //   * EncryptionKeyNotFoundException
   117  //   No encryption key was found.
   118  //
   119  //   * EncryptionKeyUnavailableException
   120  //   The encryption key is not available.
   121  //
   122  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/AssociateApprovalRuleTemplateWithRepository
   123  func (c *CodeCommit) AssociateApprovalRuleTemplateWithRepository(input *AssociateApprovalRuleTemplateWithRepositoryInput) (*AssociateApprovalRuleTemplateWithRepositoryOutput, error) {
   124  	req, out := c.AssociateApprovalRuleTemplateWithRepositoryRequest(input)
   125  	return out, req.Send()
   126  }
   127  
   128  // AssociateApprovalRuleTemplateWithRepositoryWithContext is the same as AssociateApprovalRuleTemplateWithRepository with the addition of
   129  // the ability to pass a context and additional request options.
   130  //
   131  // See AssociateApprovalRuleTemplateWithRepository for details on how to use this API operation.
   132  //
   133  // The context must be non-nil and will be used for request cancellation. If
   134  // the context is nil a panic will occur. In the future the SDK may create
   135  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   136  // for more information on using Contexts.
   137  func (c *CodeCommit) AssociateApprovalRuleTemplateWithRepositoryWithContext(ctx aws.Context, input *AssociateApprovalRuleTemplateWithRepositoryInput, opts ...request.Option) (*AssociateApprovalRuleTemplateWithRepositoryOutput, error) {
   138  	req, out := c.AssociateApprovalRuleTemplateWithRepositoryRequest(input)
   139  	req.SetContext(ctx)
   140  	req.ApplyOptions(opts...)
   141  	return out, req.Send()
   142  }
   143  
   144  const opBatchAssociateApprovalRuleTemplateWithRepositories = "BatchAssociateApprovalRuleTemplateWithRepositories"
   145  
   146  // BatchAssociateApprovalRuleTemplateWithRepositoriesRequest generates a "aws/request.Request" representing the
   147  // client's request for the BatchAssociateApprovalRuleTemplateWithRepositories operation. The "output" return
   148  // value will be populated with the request's response once the request completes
   149  // successfully.
   150  //
   151  // Use "Send" method on the returned Request to send the API call to the service.
   152  // the "output" return value is not valid until after Send returns without error.
   153  //
   154  // See BatchAssociateApprovalRuleTemplateWithRepositories for more information on using the BatchAssociateApprovalRuleTemplateWithRepositories
   155  // API call, and error handling.
   156  //
   157  // This method is useful when you want to inject custom logic or configuration
   158  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   159  //
   160  //
   161  //    // Example sending a request using the BatchAssociateApprovalRuleTemplateWithRepositoriesRequest method.
   162  //    req, resp := client.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(params)
   163  //
   164  //    err := req.Send()
   165  //    if err == nil { // resp is now filled
   166  //        fmt.Println(resp)
   167  //    }
   168  //
   169  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchAssociateApprovalRuleTemplateWithRepositories
   170  func (c *CodeCommit) BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(input *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) (req *request.Request, output *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) {
   171  	op := &request.Operation{
   172  		Name:       opBatchAssociateApprovalRuleTemplateWithRepositories,
   173  		HTTPMethod: "POST",
   174  		HTTPPath:   "/",
   175  	}
   176  
   177  	if input == nil {
   178  		input = &BatchAssociateApprovalRuleTemplateWithRepositoriesInput{}
   179  	}
   180  
   181  	output = &BatchAssociateApprovalRuleTemplateWithRepositoriesOutput{}
   182  	req = c.newRequest(op, input, output)
   183  	return
   184  }
   185  
   186  // BatchAssociateApprovalRuleTemplateWithRepositories API operation for AWS CodeCommit.
   187  //
   188  // Creates an association between an approval rule template and one or more
   189  // specified repositories.
   190  //
   191  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   192  // with awserr.Error's Code and Message methods to get detailed information about
   193  // the error.
   194  //
   195  // See the AWS API reference guide for AWS CodeCommit's
   196  // API operation BatchAssociateApprovalRuleTemplateWithRepositories for usage and error information.
   197  //
   198  // Returned Error Types:
   199  //   * ApprovalRuleTemplateNameRequiredException
   200  //   An approval rule template name is required, but was not specified.
   201  //
   202  //   * InvalidApprovalRuleTemplateNameException
   203  //   The name of the approval rule template is not valid. Template names must
   204  //   be between 1 and 100 valid characters in length. For more information about
   205  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
   206  //
   207  //   * ApprovalRuleTemplateDoesNotExistException
   208  //   The specified approval rule template does not exist. Verify that the name
   209  //   is correct and that you are signed in to the AWS Region where the template
   210  //   was created, and then try again.
   211  //
   212  //   * RepositoryNamesRequiredException
   213  //   At least one repository name object is required, but was not specified.
   214  //
   215  //   * MaximumRepositoryNamesExceededException
   216  //   The maximum number of allowed repository names was exceeded. Currently, this
   217  //   number is 100.
   218  //
   219  //   * EncryptionIntegrityChecksFailedException
   220  //   An encryption integrity check failed.
   221  //
   222  //   * EncryptionKeyAccessDeniedException
   223  //   An encryption key could not be accessed.
   224  //
   225  //   * EncryptionKeyDisabledException
   226  //   The encryption key is disabled.
   227  //
   228  //   * EncryptionKeyNotFoundException
   229  //   No encryption key was found.
   230  //
   231  //   * EncryptionKeyUnavailableException
   232  //   The encryption key is not available.
   233  //
   234  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchAssociateApprovalRuleTemplateWithRepositories
   235  func (c *CodeCommit) BatchAssociateApprovalRuleTemplateWithRepositories(input *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) (*BatchAssociateApprovalRuleTemplateWithRepositoriesOutput, error) {
   236  	req, out := c.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(input)
   237  	return out, req.Send()
   238  }
   239  
   240  // BatchAssociateApprovalRuleTemplateWithRepositoriesWithContext is the same as BatchAssociateApprovalRuleTemplateWithRepositories with the addition of
   241  // the ability to pass a context and additional request options.
   242  //
   243  // See BatchAssociateApprovalRuleTemplateWithRepositories for details on how to use this API operation.
   244  //
   245  // The context must be non-nil and will be used for request cancellation. If
   246  // the context is nil a panic will occur. In the future the SDK may create
   247  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   248  // for more information on using Contexts.
   249  func (c *CodeCommit) BatchAssociateApprovalRuleTemplateWithRepositoriesWithContext(ctx aws.Context, input *BatchAssociateApprovalRuleTemplateWithRepositoriesInput, opts ...request.Option) (*BatchAssociateApprovalRuleTemplateWithRepositoriesOutput, error) {
   250  	req, out := c.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(input)
   251  	req.SetContext(ctx)
   252  	req.ApplyOptions(opts...)
   253  	return out, req.Send()
   254  }
   255  
   256  const opBatchDescribeMergeConflicts = "BatchDescribeMergeConflicts"
   257  
   258  // BatchDescribeMergeConflictsRequest generates a "aws/request.Request" representing the
   259  // client's request for the BatchDescribeMergeConflicts operation. The "output" return
   260  // value will be populated with the request's response once the request completes
   261  // successfully.
   262  //
   263  // Use "Send" method on the returned Request to send the API call to the service.
   264  // the "output" return value is not valid until after Send returns without error.
   265  //
   266  // See BatchDescribeMergeConflicts for more information on using the BatchDescribeMergeConflicts
   267  // API call, and error handling.
   268  //
   269  // This method is useful when you want to inject custom logic or configuration
   270  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   271  //
   272  //
   273  //    // Example sending a request using the BatchDescribeMergeConflictsRequest method.
   274  //    req, resp := client.BatchDescribeMergeConflictsRequest(params)
   275  //
   276  //    err := req.Send()
   277  //    if err == nil { // resp is now filled
   278  //        fmt.Println(resp)
   279  //    }
   280  //
   281  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDescribeMergeConflicts
   282  func (c *CodeCommit) BatchDescribeMergeConflictsRequest(input *BatchDescribeMergeConflictsInput) (req *request.Request, output *BatchDescribeMergeConflictsOutput) {
   283  	op := &request.Operation{
   284  		Name:       opBatchDescribeMergeConflicts,
   285  		HTTPMethod: "POST",
   286  		HTTPPath:   "/",
   287  	}
   288  
   289  	if input == nil {
   290  		input = &BatchDescribeMergeConflictsInput{}
   291  	}
   292  
   293  	output = &BatchDescribeMergeConflictsOutput{}
   294  	req = c.newRequest(op, input, output)
   295  	return
   296  }
   297  
   298  // BatchDescribeMergeConflicts API operation for AWS CodeCommit.
   299  //
   300  // Returns information about one or more merge conflicts in the attempted merge
   301  // of two commit specifiers using the squash or three-way merge strategy.
   302  //
   303  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   304  // with awserr.Error's Code and Message methods to get detailed information about
   305  // the error.
   306  //
   307  // See the AWS API reference guide for AWS CodeCommit's
   308  // API operation BatchDescribeMergeConflicts for usage and error information.
   309  //
   310  // Returned Error Types:
   311  //   * RepositoryNameRequiredException
   312  //   A repository name is required, but was not specified.
   313  //
   314  //   * InvalidRepositoryNameException
   315  //   A specified repository name is not valid.
   316  //
   317  //   This exception occurs only when a specified repository name is not valid.
   318  //   Other exceptions occur when a required repository parameter is missing, or
   319  //   when a specified repository does not exist.
   320  //
   321  //   * RepositoryDoesNotExistException
   322  //   The specified repository does not exist.
   323  //
   324  //   * MergeOptionRequiredException
   325  //   A merge option or stategy is required, and none was provided.
   326  //
   327  //   * InvalidMergeOptionException
   328  //   The specified merge option is not valid for this operation. Not all merge
   329  //   strategies are supported for all operations.
   330  //
   331  //   * InvalidContinuationTokenException
   332  //   The specified continuation token is not valid.
   333  //
   334  //   * CommitRequiredException
   335  //   A commit was not specified.
   336  //
   337  //   * CommitDoesNotExistException
   338  //   The specified commit does not exist or no commit was specified, and the specified
   339  //   repository has no default branch.
   340  //
   341  //   * InvalidCommitException
   342  //   The specified commit is not valid.
   343  //
   344  //   * TipsDivergenceExceededException
   345  //   The divergence between the tips of the provided commit specifiers is too
   346  //   great to determine whether there might be any merge conflicts. Locally compare
   347  //   the specifiers using git diff or a diff tool.
   348  //
   349  //   * InvalidMaxConflictFilesException
   350  //   The specified value for the number of conflict files to return is not valid.
   351  //
   352  //   * InvalidMaxMergeHunksException
   353  //   The specified value for the number of merge hunks to return is not valid.
   354  //
   355  //   * InvalidConflictDetailLevelException
   356  //   The specified conflict detail level is not valid.
   357  //
   358  //   * InvalidConflictResolutionStrategyException
   359  //   The specified conflict resolution strategy is not valid.
   360  //
   361  //   * MaximumFileContentToLoadExceededException
   362  //   The number of files to load exceeds the allowed limit.
   363  //
   364  //   * MaximumItemsToCompareExceededException
   365  //   The number of items to compare between the source or destination branches
   366  //   and the merge base has exceeded the maximum allowed.
   367  //
   368  //   * EncryptionIntegrityChecksFailedException
   369  //   An encryption integrity check failed.
   370  //
   371  //   * EncryptionKeyAccessDeniedException
   372  //   An encryption key could not be accessed.
   373  //
   374  //   * EncryptionKeyDisabledException
   375  //   The encryption key is disabled.
   376  //
   377  //   * EncryptionKeyNotFoundException
   378  //   No encryption key was found.
   379  //
   380  //   * EncryptionKeyUnavailableException
   381  //   The encryption key is not available.
   382  //
   383  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDescribeMergeConflicts
   384  func (c *CodeCommit) BatchDescribeMergeConflicts(input *BatchDescribeMergeConflictsInput) (*BatchDescribeMergeConflictsOutput, error) {
   385  	req, out := c.BatchDescribeMergeConflictsRequest(input)
   386  	return out, req.Send()
   387  }
   388  
   389  // BatchDescribeMergeConflictsWithContext is the same as BatchDescribeMergeConflicts with the addition of
   390  // the ability to pass a context and additional request options.
   391  //
   392  // See BatchDescribeMergeConflicts for details on how to use this API operation.
   393  //
   394  // The context must be non-nil and will be used for request cancellation. If
   395  // the context is nil a panic will occur. In the future the SDK may create
   396  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   397  // for more information on using Contexts.
   398  func (c *CodeCommit) BatchDescribeMergeConflictsWithContext(ctx aws.Context, input *BatchDescribeMergeConflictsInput, opts ...request.Option) (*BatchDescribeMergeConflictsOutput, error) {
   399  	req, out := c.BatchDescribeMergeConflictsRequest(input)
   400  	req.SetContext(ctx)
   401  	req.ApplyOptions(opts...)
   402  	return out, req.Send()
   403  }
   404  
   405  const opBatchDisassociateApprovalRuleTemplateFromRepositories = "BatchDisassociateApprovalRuleTemplateFromRepositories"
   406  
   407  // BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest generates a "aws/request.Request" representing the
   408  // client's request for the BatchDisassociateApprovalRuleTemplateFromRepositories operation. The "output" return
   409  // value will be populated with the request's response once the request completes
   410  // successfully.
   411  //
   412  // Use "Send" method on the returned Request to send the API call to the service.
   413  // the "output" return value is not valid until after Send returns without error.
   414  //
   415  // See BatchDisassociateApprovalRuleTemplateFromRepositories for more information on using the BatchDisassociateApprovalRuleTemplateFromRepositories
   416  // API call, and error handling.
   417  //
   418  // This method is useful when you want to inject custom logic or configuration
   419  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   420  //
   421  //
   422  //    // Example sending a request using the BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest method.
   423  //    req, resp := client.BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest(params)
   424  //
   425  //    err := req.Send()
   426  //    if err == nil { // resp is now filled
   427  //        fmt.Println(resp)
   428  //    }
   429  //
   430  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDisassociateApprovalRuleTemplateFromRepositories
   431  func (c *CodeCommit) BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest(input *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) (req *request.Request, output *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) {
   432  	op := &request.Operation{
   433  		Name:       opBatchDisassociateApprovalRuleTemplateFromRepositories,
   434  		HTTPMethod: "POST",
   435  		HTTPPath:   "/",
   436  	}
   437  
   438  	if input == nil {
   439  		input = &BatchDisassociateApprovalRuleTemplateFromRepositoriesInput{}
   440  	}
   441  
   442  	output = &BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput{}
   443  	req = c.newRequest(op, input, output)
   444  	return
   445  }
   446  
   447  // BatchDisassociateApprovalRuleTemplateFromRepositories API operation for AWS CodeCommit.
   448  //
   449  // Removes the association between an approval rule template and one or more
   450  // specified repositories.
   451  //
   452  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   453  // with awserr.Error's Code and Message methods to get detailed information about
   454  // the error.
   455  //
   456  // See the AWS API reference guide for AWS CodeCommit's
   457  // API operation BatchDisassociateApprovalRuleTemplateFromRepositories for usage and error information.
   458  //
   459  // Returned Error Types:
   460  //   * ApprovalRuleTemplateNameRequiredException
   461  //   An approval rule template name is required, but was not specified.
   462  //
   463  //   * InvalidApprovalRuleTemplateNameException
   464  //   The name of the approval rule template is not valid. Template names must
   465  //   be between 1 and 100 valid characters in length. For more information about
   466  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
   467  //
   468  //   * ApprovalRuleTemplateDoesNotExistException
   469  //   The specified approval rule template does not exist. Verify that the name
   470  //   is correct and that you are signed in to the AWS Region where the template
   471  //   was created, and then try again.
   472  //
   473  //   * RepositoryNamesRequiredException
   474  //   At least one repository name object is required, but was not specified.
   475  //
   476  //   * MaximumRepositoryNamesExceededException
   477  //   The maximum number of allowed repository names was exceeded. Currently, this
   478  //   number is 100.
   479  //
   480  //   * EncryptionIntegrityChecksFailedException
   481  //   An encryption integrity check failed.
   482  //
   483  //   * EncryptionKeyAccessDeniedException
   484  //   An encryption key could not be accessed.
   485  //
   486  //   * EncryptionKeyDisabledException
   487  //   The encryption key is disabled.
   488  //
   489  //   * EncryptionKeyNotFoundException
   490  //   No encryption key was found.
   491  //
   492  //   * EncryptionKeyUnavailableException
   493  //   The encryption key is not available.
   494  //
   495  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDisassociateApprovalRuleTemplateFromRepositories
   496  func (c *CodeCommit) BatchDisassociateApprovalRuleTemplateFromRepositories(input *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) (*BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput, error) {
   497  	req, out := c.BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest(input)
   498  	return out, req.Send()
   499  }
   500  
   501  // BatchDisassociateApprovalRuleTemplateFromRepositoriesWithContext is the same as BatchDisassociateApprovalRuleTemplateFromRepositories with the addition of
   502  // the ability to pass a context and additional request options.
   503  //
   504  // See BatchDisassociateApprovalRuleTemplateFromRepositories for details on how to use this API operation.
   505  //
   506  // The context must be non-nil and will be used for request cancellation. If
   507  // the context is nil a panic will occur. In the future the SDK may create
   508  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   509  // for more information on using Contexts.
   510  func (c *CodeCommit) BatchDisassociateApprovalRuleTemplateFromRepositoriesWithContext(ctx aws.Context, input *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput, opts ...request.Option) (*BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput, error) {
   511  	req, out := c.BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest(input)
   512  	req.SetContext(ctx)
   513  	req.ApplyOptions(opts...)
   514  	return out, req.Send()
   515  }
   516  
   517  const opBatchGetCommits = "BatchGetCommits"
   518  
   519  // BatchGetCommitsRequest generates a "aws/request.Request" representing the
   520  // client's request for the BatchGetCommits operation. The "output" return
   521  // value will be populated with the request's response once the request completes
   522  // successfully.
   523  //
   524  // Use "Send" method on the returned Request to send the API call to the service.
   525  // the "output" return value is not valid until after Send returns without error.
   526  //
   527  // See BatchGetCommits for more information on using the BatchGetCommits
   528  // API call, and error handling.
   529  //
   530  // This method is useful when you want to inject custom logic or configuration
   531  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   532  //
   533  //
   534  //    // Example sending a request using the BatchGetCommitsRequest method.
   535  //    req, resp := client.BatchGetCommitsRequest(params)
   536  //
   537  //    err := req.Send()
   538  //    if err == nil { // resp is now filled
   539  //        fmt.Println(resp)
   540  //    }
   541  //
   542  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommits
   543  func (c *CodeCommit) BatchGetCommitsRequest(input *BatchGetCommitsInput) (req *request.Request, output *BatchGetCommitsOutput) {
   544  	op := &request.Operation{
   545  		Name:       opBatchGetCommits,
   546  		HTTPMethod: "POST",
   547  		HTTPPath:   "/",
   548  	}
   549  
   550  	if input == nil {
   551  		input = &BatchGetCommitsInput{}
   552  	}
   553  
   554  	output = &BatchGetCommitsOutput{}
   555  	req = c.newRequest(op, input, output)
   556  	return
   557  }
   558  
   559  // BatchGetCommits API operation for AWS CodeCommit.
   560  //
   561  // Returns information about the contents of one or more commits in a repository.
   562  //
   563  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   564  // with awserr.Error's Code and Message methods to get detailed information about
   565  // the error.
   566  //
   567  // See the AWS API reference guide for AWS CodeCommit's
   568  // API operation BatchGetCommits for usage and error information.
   569  //
   570  // Returned Error Types:
   571  //   * CommitIdsListRequiredException
   572  //   A list of commit IDs is required, but was either not specified or the list
   573  //   was empty.
   574  //
   575  //   * CommitIdsLimitExceededException
   576  //   The maximum number of allowed commit IDs in a batch request is 100. Verify
   577  //   that your batch requests contains no more than 100 commit IDs, and then try
   578  //   again.
   579  //
   580  //   * RepositoryNameRequiredException
   581  //   A repository name is required, but was not specified.
   582  //
   583  //   * InvalidRepositoryNameException
   584  //   A specified repository name is not valid.
   585  //
   586  //   This exception occurs only when a specified repository name is not valid.
   587  //   Other exceptions occur when a required repository parameter is missing, or
   588  //   when a specified repository does not exist.
   589  //
   590  //   * RepositoryDoesNotExistException
   591  //   The specified repository does not exist.
   592  //
   593  //   * EncryptionIntegrityChecksFailedException
   594  //   An encryption integrity check failed.
   595  //
   596  //   * EncryptionKeyAccessDeniedException
   597  //   An encryption key could not be accessed.
   598  //
   599  //   * EncryptionKeyDisabledException
   600  //   The encryption key is disabled.
   601  //
   602  //   * EncryptionKeyNotFoundException
   603  //   No encryption key was found.
   604  //
   605  //   * EncryptionKeyUnavailableException
   606  //   The encryption key is not available.
   607  //
   608  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommits
   609  func (c *CodeCommit) BatchGetCommits(input *BatchGetCommitsInput) (*BatchGetCommitsOutput, error) {
   610  	req, out := c.BatchGetCommitsRequest(input)
   611  	return out, req.Send()
   612  }
   613  
   614  // BatchGetCommitsWithContext is the same as BatchGetCommits with the addition of
   615  // the ability to pass a context and additional request options.
   616  //
   617  // See BatchGetCommits for details on how to use this API operation.
   618  //
   619  // The context must be non-nil and will be used for request cancellation. If
   620  // the context is nil a panic will occur. In the future the SDK may create
   621  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   622  // for more information on using Contexts.
   623  func (c *CodeCommit) BatchGetCommitsWithContext(ctx aws.Context, input *BatchGetCommitsInput, opts ...request.Option) (*BatchGetCommitsOutput, error) {
   624  	req, out := c.BatchGetCommitsRequest(input)
   625  	req.SetContext(ctx)
   626  	req.ApplyOptions(opts...)
   627  	return out, req.Send()
   628  }
   629  
   630  const opBatchGetRepositories = "BatchGetRepositories"
   631  
   632  // BatchGetRepositoriesRequest generates a "aws/request.Request" representing the
   633  // client's request for the BatchGetRepositories operation. The "output" return
   634  // value will be populated with the request's response once the request completes
   635  // successfully.
   636  //
   637  // Use "Send" method on the returned Request to send the API call to the service.
   638  // the "output" return value is not valid until after Send returns without error.
   639  //
   640  // See BatchGetRepositories for more information on using the BatchGetRepositories
   641  // API call, and error handling.
   642  //
   643  // This method is useful when you want to inject custom logic or configuration
   644  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   645  //
   646  //
   647  //    // Example sending a request using the BatchGetRepositoriesRequest method.
   648  //    req, resp := client.BatchGetRepositoriesRequest(params)
   649  //
   650  //    err := req.Send()
   651  //    if err == nil { // resp is now filled
   652  //        fmt.Println(resp)
   653  //    }
   654  //
   655  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories
   656  func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput) {
   657  	op := &request.Operation{
   658  		Name:       opBatchGetRepositories,
   659  		HTTPMethod: "POST",
   660  		HTTPPath:   "/",
   661  	}
   662  
   663  	if input == nil {
   664  		input = &BatchGetRepositoriesInput{}
   665  	}
   666  
   667  	output = &BatchGetRepositoriesOutput{}
   668  	req = c.newRequest(op, input, output)
   669  	return
   670  }
   671  
   672  // BatchGetRepositories API operation for AWS CodeCommit.
   673  //
   674  // Returns information about one or more repositories.
   675  //
   676  // The description field for a repository accepts all HTML characters and all
   677  // valid Unicode characters. Applications that do not HTML-encode the description
   678  // and display it in a webpage can expose users to potentially malicious code.
   679  // Make sure that you HTML-encode the description field in any application that
   680  // uses this API to display the repository description on a webpage.
   681  //
   682  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   683  // with awserr.Error's Code and Message methods to get detailed information about
   684  // the error.
   685  //
   686  // See the AWS API reference guide for AWS CodeCommit's
   687  // API operation BatchGetRepositories for usage and error information.
   688  //
   689  // Returned Error Types:
   690  //   * RepositoryNamesRequiredException
   691  //   At least one repository name object is required, but was not specified.
   692  //
   693  //   * MaximumRepositoryNamesExceededException
   694  //   The maximum number of allowed repository names was exceeded. Currently, this
   695  //   number is 100.
   696  //
   697  //   * InvalidRepositoryNameException
   698  //   A specified repository name is not valid.
   699  //
   700  //   This exception occurs only when a specified repository name is not valid.
   701  //   Other exceptions occur when a required repository parameter is missing, or
   702  //   when a specified repository does not exist.
   703  //
   704  //   * EncryptionIntegrityChecksFailedException
   705  //   An encryption integrity check failed.
   706  //
   707  //   * EncryptionKeyAccessDeniedException
   708  //   An encryption key could not be accessed.
   709  //
   710  //   * EncryptionKeyDisabledException
   711  //   The encryption key is disabled.
   712  //
   713  //   * EncryptionKeyNotFoundException
   714  //   No encryption key was found.
   715  //
   716  //   * EncryptionKeyUnavailableException
   717  //   The encryption key is not available.
   718  //
   719  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories
   720  func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error) {
   721  	req, out := c.BatchGetRepositoriesRequest(input)
   722  	return out, req.Send()
   723  }
   724  
   725  // BatchGetRepositoriesWithContext is the same as BatchGetRepositories with the addition of
   726  // the ability to pass a context and additional request options.
   727  //
   728  // See BatchGetRepositories for details on how to use this API operation.
   729  //
   730  // The context must be non-nil and will be used for request cancellation. If
   731  // the context is nil a panic will occur. In the future the SDK may create
   732  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   733  // for more information on using Contexts.
   734  func (c *CodeCommit) BatchGetRepositoriesWithContext(ctx aws.Context, input *BatchGetRepositoriesInput, opts ...request.Option) (*BatchGetRepositoriesOutput, error) {
   735  	req, out := c.BatchGetRepositoriesRequest(input)
   736  	req.SetContext(ctx)
   737  	req.ApplyOptions(opts...)
   738  	return out, req.Send()
   739  }
   740  
   741  const opCreateApprovalRuleTemplate = "CreateApprovalRuleTemplate"
   742  
   743  // CreateApprovalRuleTemplateRequest generates a "aws/request.Request" representing the
   744  // client's request for the CreateApprovalRuleTemplate operation. The "output" return
   745  // value will be populated with the request's response once the request completes
   746  // successfully.
   747  //
   748  // Use "Send" method on the returned Request to send the API call to the service.
   749  // the "output" return value is not valid until after Send returns without error.
   750  //
   751  // See CreateApprovalRuleTemplate for more information on using the CreateApprovalRuleTemplate
   752  // API call, and error handling.
   753  //
   754  // This method is useful when you want to inject custom logic or configuration
   755  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   756  //
   757  //
   758  //    // Example sending a request using the CreateApprovalRuleTemplateRequest method.
   759  //    req, resp := client.CreateApprovalRuleTemplateRequest(params)
   760  //
   761  //    err := req.Send()
   762  //    if err == nil { // resp is now filled
   763  //        fmt.Println(resp)
   764  //    }
   765  //
   766  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateApprovalRuleTemplate
   767  func (c *CodeCommit) CreateApprovalRuleTemplateRequest(input *CreateApprovalRuleTemplateInput) (req *request.Request, output *CreateApprovalRuleTemplateOutput) {
   768  	op := &request.Operation{
   769  		Name:       opCreateApprovalRuleTemplate,
   770  		HTTPMethod: "POST",
   771  		HTTPPath:   "/",
   772  	}
   773  
   774  	if input == nil {
   775  		input = &CreateApprovalRuleTemplateInput{}
   776  	}
   777  
   778  	output = &CreateApprovalRuleTemplateOutput{}
   779  	req = c.newRequest(op, input, output)
   780  	return
   781  }
   782  
   783  // CreateApprovalRuleTemplate API operation for AWS CodeCommit.
   784  //
   785  // Creates a template for approval rules that can then be associated with one
   786  // or more repositories in your AWS account. When you associate a template with
   787  // a repository, AWS CodeCommit creates an approval rule that matches the conditions
   788  // of the template for all pull requests that meet the conditions of the template.
   789  // For more information, see AssociateApprovalRuleTemplateWithRepository.
   790  //
   791  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   792  // with awserr.Error's Code and Message methods to get detailed information about
   793  // the error.
   794  //
   795  // See the AWS API reference guide for AWS CodeCommit's
   796  // API operation CreateApprovalRuleTemplate for usage and error information.
   797  //
   798  // Returned Error Types:
   799  //   * ApprovalRuleTemplateNameRequiredException
   800  //   An approval rule template name is required, but was not specified.
   801  //
   802  //   * InvalidApprovalRuleTemplateNameException
   803  //   The name of the approval rule template is not valid. Template names must
   804  //   be between 1 and 100 valid characters in length. For more information about
   805  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
   806  //
   807  //   * ApprovalRuleTemplateNameAlreadyExistsException
   808  //   You cannot create an approval rule template with that name because a template
   809  //   with that name already exists in this AWS Region for your AWS account. Approval
   810  //   rule template names must be unique.
   811  //
   812  //   * ApprovalRuleTemplateContentRequiredException
   813  //   The content for the approval rule template is empty. You must provide some
   814  //   content for an approval rule template. The content cannot be null.
   815  //
   816  //   * InvalidApprovalRuleTemplateContentException
   817  //   The content of the approval rule template is not valid.
   818  //
   819  //   * InvalidApprovalRuleTemplateDescriptionException
   820  //   The description for the approval rule template is not valid because it exceeds
   821  //   the maximum characters allowed for a description. For more information about
   822  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
   823  //
   824  //   * NumberOfRuleTemplatesExceededException
   825  //   The maximum number of approval rule templates has been exceeded for this
   826  //   AWS Region.
   827  //
   828  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateApprovalRuleTemplate
   829  func (c *CodeCommit) CreateApprovalRuleTemplate(input *CreateApprovalRuleTemplateInput) (*CreateApprovalRuleTemplateOutput, error) {
   830  	req, out := c.CreateApprovalRuleTemplateRequest(input)
   831  	return out, req.Send()
   832  }
   833  
   834  // CreateApprovalRuleTemplateWithContext is the same as CreateApprovalRuleTemplate with the addition of
   835  // the ability to pass a context and additional request options.
   836  //
   837  // See CreateApprovalRuleTemplate for details on how to use this API operation.
   838  //
   839  // The context must be non-nil and will be used for request cancellation. If
   840  // the context is nil a panic will occur. In the future the SDK may create
   841  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   842  // for more information on using Contexts.
   843  func (c *CodeCommit) CreateApprovalRuleTemplateWithContext(ctx aws.Context, input *CreateApprovalRuleTemplateInput, opts ...request.Option) (*CreateApprovalRuleTemplateOutput, error) {
   844  	req, out := c.CreateApprovalRuleTemplateRequest(input)
   845  	req.SetContext(ctx)
   846  	req.ApplyOptions(opts...)
   847  	return out, req.Send()
   848  }
   849  
   850  const opCreateBranch = "CreateBranch"
   851  
   852  // CreateBranchRequest generates a "aws/request.Request" representing the
   853  // client's request for the CreateBranch operation. The "output" return
   854  // value will be populated with the request's response once the request completes
   855  // successfully.
   856  //
   857  // Use "Send" method on the returned Request to send the API call to the service.
   858  // the "output" return value is not valid until after Send returns without error.
   859  //
   860  // See CreateBranch for more information on using the CreateBranch
   861  // API call, and error handling.
   862  //
   863  // This method is useful when you want to inject custom logic or configuration
   864  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   865  //
   866  //
   867  //    // Example sending a request using the CreateBranchRequest method.
   868  //    req, resp := client.CreateBranchRequest(params)
   869  //
   870  //    err := req.Send()
   871  //    if err == nil { // resp is now filled
   872  //        fmt.Println(resp)
   873  //    }
   874  //
   875  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch
   876  func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) {
   877  	op := &request.Operation{
   878  		Name:       opCreateBranch,
   879  		HTTPMethod: "POST",
   880  		HTTPPath:   "/",
   881  	}
   882  
   883  	if input == nil {
   884  		input = &CreateBranchInput{}
   885  	}
   886  
   887  	output = &CreateBranchOutput{}
   888  	req = c.newRequest(op, input, output)
   889  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   890  	return
   891  }
   892  
   893  // CreateBranch API operation for AWS CodeCommit.
   894  //
   895  // Creates a branch in a repository and points the branch to a commit.
   896  //
   897  // Calling the create branch operation does not set a repository's default branch.
   898  // To do this, call the update default branch operation.
   899  //
   900  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   901  // with awserr.Error's Code and Message methods to get detailed information about
   902  // the error.
   903  //
   904  // See the AWS API reference guide for AWS CodeCommit's
   905  // API operation CreateBranch for usage and error information.
   906  //
   907  // Returned Error Types:
   908  //   * RepositoryNameRequiredException
   909  //   A repository name is required, but was not specified.
   910  //
   911  //   * InvalidRepositoryNameException
   912  //   A specified repository name is not valid.
   913  //
   914  //   This exception occurs only when a specified repository name is not valid.
   915  //   Other exceptions occur when a required repository parameter is missing, or
   916  //   when a specified repository does not exist.
   917  //
   918  //   * RepositoryDoesNotExistException
   919  //   The specified repository does not exist.
   920  //
   921  //   * BranchNameRequiredException
   922  //   A branch name is required, but was not specified.
   923  //
   924  //   * BranchNameExistsException
   925  //   Cannot create the branch with the specified name because the commit conflicts
   926  //   with an existing branch with the same name. Branch names must be unique.
   927  //
   928  //   * InvalidBranchNameException
   929  //   The specified reference name is not valid.
   930  //
   931  //   * CommitIdRequiredException
   932  //   A commit ID was not specified.
   933  //
   934  //   * CommitDoesNotExistException
   935  //   The specified commit does not exist or no commit was specified, and the specified
   936  //   repository has no default branch.
   937  //
   938  //   * InvalidCommitIdException
   939  //   The specified commit ID is not valid.
   940  //
   941  //   * EncryptionIntegrityChecksFailedException
   942  //   An encryption integrity check failed.
   943  //
   944  //   * EncryptionKeyAccessDeniedException
   945  //   An encryption key could not be accessed.
   946  //
   947  //   * EncryptionKeyDisabledException
   948  //   The encryption key is disabled.
   949  //
   950  //   * EncryptionKeyNotFoundException
   951  //   No encryption key was found.
   952  //
   953  //   * EncryptionKeyUnavailableException
   954  //   The encryption key is not available.
   955  //
   956  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch
   957  func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) {
   958  	req, out := c.CreateBranchRequest(input)
   959  	return out, req.Send()
   960  }
   961  
   962  // CreateBranchWithContext is the same as CreateBranch with the addition of
   963  // the ability to pass a context and additional request options.
   964  //
   965  // See CreateBranch for details on how to use this API operation.
   966  //
   967  // The context must be non-nil and will be used for request cancellation. If
   968  // the context is nil a panic will occur. In the future the SDK may create
   969  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   970  // for more information on using Contexts.
   971  func (c *CodeCommit) CreateBranchWithContext(ctx aws.Context, input *CreateBranchInput, opts ...request.Option) (*CreateBranchOutput, error) {
   972  	req, out := c.CreateBranchRequest(input)
   973  	req.SetContext(ctx)
   974  	req.ApplyOptions(opts...)
   975  	return out, req.Send()
   976  }
   977  
   978  const opCreateCommit = "CreateCommit"
   979  
   980  // CreateCommitRequest generates a "aws/request.Request" representing the
   981  // client's request for the CreateCommit operation. The "output" return
   982  // value will be populated with the request's response once the request completes
   983  // successfully.
   984  //
   985  // Use "Send" method on the returned Request to send the API call to the service.
   986  // the "output" return value is not valid until after Send returns without error.
   987  //
   988  // See CreateCommit for more information on using the CreateCommit
   989  // API call, and error handling.
   990  //
   991  // This method is useful when you want to inject custom logic or configuration
   992  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   993  //
   994  //
   995  //    // Example sending a request using the CreateCommitRequest method.
   996  //    req, resp := client.CreateCommitRequest(params)
   997  //
   998  //    err := req.Send()
   999  //    if err == nil { // resp is now filled
  1000  //        fmt.Println(resp)
  1001  //    }
  1002  //
  1003  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommit
  1004  func (c *CodeCommit) CreateCommitRequest(input *CreateCommitInput) (req *request.Request, output *CreateCommitOutput) {
  1005  	op := &request.Operation{
  1006  		Name:       opCreateCommit,
  1007  		HTTPMethod: "POST",
  1008  		HTTPPath:   "/",
  1009  	}
  1010  
  1011  	if input == nil {
  1012  		input = &CreateCommitInput{}
  1013  	}
  1014  
  1015  	output = &CreateCommitOutput{}
  1016  	req = c.newRequest(op, input, output)
  1017  	return
  1018  }
  1019  
  1020  // CreateCommit API operation for AWS CodeCommit.
  1021  //
  1022  // Creates a commit for a repository on the tip of a specified branch.
  1023  //
  1024  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1025  // with awserr.Error's Code and Message methods to get detailed information about
  1026  // the error.
  1027  //
  1028  // See the AWS API reference guide for AWS CodeCommit's
  1029  // API operation CreateCommit for usage and error information.
  1030  //
  1031  // Returned Error Types:
  1032  //   * RepositoryNameRequiredException
  1033  //   A repository name is required, but was not specified.
  1034  //
  1035  //   * InvalidRepositoryNameException
  1036  //   A specified repository name is not valid.
  1037  //
  1038  //   This exception occurs only when a specified repository name is not valid.
  1039  //   Other exceptions occur when a required repository parameter is missing, or
  1040  //   when a specified repository does not exist.
  1041  //
  1042  //   * RepositoryDoesNotExistException
  1043  //   The specified repository does not exist.
  1044  //
  1045  //   * ParentCommitIdRequiredException
  1046  //   A parent commit ID is required. To view the full commit ID of a branch in
  1047  //   a repository, use GetBranch or a Git command (for example, git pull or git
  1048  //   log).
  1049  //
  1050  //   * InvalidParentCommitIdException
  1051  //   The parent commit ID is not valid. The commit ID cannot be empty, and must
  1052  //   match the head commit ID for the branch of the repository where you want
  1053  //   to add or update a file.
  1054  //
  1055  //   * ParentCommitDoesNotExistException
  1056  //   The parent commit ID is not valid because it does not exist. The specified
  1057  //   parent commit ID does not exist in the specified branch of the repository.
  1058  //
  1059  //   * ParentCommitIdOutdatedException
  1060  //   The file could not be added because the provided parent commit ID is not
  1061  //   the current tip of the specified branch. To view the full commit ID of the
  1062  //   current head of the branch, use GetBranch.
  1063  //
  1064  //   * BranchNameRequiredException
  1065  //   A branch name is required, but was not specified.
  1066  //
  1067  //   * InvalidBranchNameException
  1068  //   The specified reference name is not valid.
  1069  //
  1070  //   * BranchDoesNotExistException
  1071  //   The specified branch does not exist.
  1072  //
  1073  //   * BranchNameIsTagNameException
  1074  //   The specified branch name is not valid because it is a tag name. Enter the
  1075  //   name of a branch in the repository. For a list of valid branch names, use
  1076  //   ListBranches.
  1077  //
  1078  //   * FileEntryRequiredException
  1079  //   The commit cannot be created because no files have been specified as added,
  1080  //   updated, or changed (PutFile or DeleteFile) for the commit.
  1081  //
  1082  //   * MaximumFileEntriesExceededException
  1083  //   The number of specified files to change as part of this commit exceeds the
  1084  //   maximum number of files that can be changed in a single commit. Consider
  1085  //   using a Git client for these changes.
  1086  //
  1087  //   * PutFileEntryConflictException
  1088  //   The commit cannot be created because one or more files specified in the commit
  1089  //   reference both a file and a folder.
  1090  //
  1091  //   * SourceFileOrContentRequiredException
  1092  //   The commit cannot be created because no source files or file content have
  1093  //   been specified for the commit.
  1094  //
  1095  //   * FileContentAndSourceFileSpecifiedException
  1096  //   The commit cannot be created because both a source file and file content
  1097  //   have been specified for the same file. You cannot provide both. Either specify
  1098  //   a source file or provide the file content directly.
  1099  //
  1100  //   * PathRequiredException
  1101  //   The folderPath for a location cannot be null.
  1102  //
  1103  //   * InvalidPathException
  1104  //   The specified path is not valid.
  1105  //
  1106  //   * SamePathRequestException
  1107  //   The commit cannot be created because one or more changes in this commit duplicate
  1108  //   actions in the same file path. For example, you cannot make the same delete
  1109  //   request to the same file in the same file path twice, or make a delete request
  1110  //   and a move request to the same file as part of the same commit.
  1111  //
  1112  //   * FileDoesNotExistException
  1113  //   The specified file does not exist. Verify that you have used the correct
  1114  //   file name, full path, and extension.
  1115  //
  1116  //   * FileContentSizeLimitExceededException
  1117  //   The file cannot be added because it is too large. The maximum file size is
  1118  //   6 MB, and the combined file content change size is 7 MB. Consider making
  1119  //   these changes using a Git client.
  1120  //
  1121  //   * FolderContentSizeLimitExceededException
  1122  //   The commit cannot be created because at least one of the overall changes
  1123  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  1124  //   Either reduce the number and size of your changes, or split the changes across
  1125  //   multiple folders.
  1126  //
  1127  //   * InvalidDeletionParameterException
  1128  //   The specified deletion parameter is not valid.
  1129  //
  1130  //   * RestrictedSourceFileException
  1131  //   The commit cannot be created because one of the changes specifies copying
  1132  //   or moving a .gitkeep file.
  1133  //
  1134  //   * FileModeRequiredException
  1135  //   The commit cannot be created because no file mode has been specified. A file
  1136  //   mode is required to update mode permissions for a file.
  1137  //
  1138  //   * InvalidFileModeException
  1139  //   The specified file mode permission is not valid. For a list of valid file
  1140  //   mode permissions, see PutFile.
  1141  //
  1142  //   * NameLengthExceededException
  1143  //   The user name is not valid because it has exceeded the character limit for
  1144  //   author names.
  1145  //
  1146  //   * InvalidEmailException
  1147  //   The specified email address either contains one or more characters that are
  1148  //   not allowed, or it exceeds the maximum number of characters allowed for an
  1149  //   email address.
  1150  //
  1151  //   * CommitMessageLengthExceededException
  1152  //   The commit message is too long. Provide a shorter string.
  1153  //
  1154  //   * EncryptionIntegrityChecksFailedException
  1155  //   An encryption integrity check failed.
  1156  //
  1157  //   * EncryptionKeyAccessDeniedException
  1158  //   An encryption key could not be accessed.
  1159  //
  1160  //   * EncryptionKeyDisabledException
  1161  //   The encryption key is disabled.
  1162  //
  1163  //   * EncryptionKeyNotFoundException
  1164  //   No encryption key was found.
  1165  //
  1166  //   * EncryptionKeyUnavailableException
  1167  //   The encryption key is not available.
  1168  //
  1169  //   * NoChangeException
  1170  //   The commit cannot be created because no changes will be made to the repository
  1171  //   as a result of this commit. A commit must contain at least one change.
  1172  //
  1173  //   * FileNameConflictsWithDirectoryNameException
  1174  //   A file cannot be added to the repository because the specified file name
  1175  //   has the same name as a directory in this repository. Either provide another
  1176  //   name for the file, or add the file in a directory that does not match the
  1177  //   file name.
  1178  //
  1179  //   * DirectoryNameConflictsWithFileNameException
  1180  //   A file cannot be added to the repository because the specified path name
  1181  //   has the same name as a file that already exists in this repository. Either
  1182  //   provide a different name for the file, or specify a different path for the
  1183  //   file.
  1184  //
  1185  //   * FilePathConflictsWithSubmodulePathException
  1186  //   The commit cannot be created because a specified file path points to a submodule.
  1187  //   Verify that the destination files have valid file paths that do not point
  1188  //   to a submodule.
  1189  //
  1190  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommit
  1191  func (c *CodeCommit) CreateCommit(input *CreateCommitInput) (*CreateCommitOutput, error) {
  1192  	req, out := c.CreateCommitRequest(input)
  1193  	return out, req.Send()
  1194  }
  1195  
  1196  // CreateCommitWithContext is the same as CreateCommit with the addition of
  1197  // the ability to pass a context and additional request options.
  1198  //
  1199  // See CreateCommit for details on how to use this API operation.
  1200  //
  1201  // The context must be non-nil and will be used for request cancellation. If
  1202  // the context is nil a panic will occur. In the future the SDK may create
  1203  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1204  // for more information on using Contexts.
  1205  func (c *CodeCommit) CreateCommitWithContext(ctx aws.Context, input *CreateCommitInput, opts ...request.Option) (*CreateCommitOutput, error) {
  1206  	req, out := c.CreateCommitRequest(input)
  1207  	req.SetContext(ctx)
  1208  	req.ApplyOptions(opts...)
  1209  	return out, req.Send()
  1210  }
  1211  
  1212  const opCreatePullRequest = "CreatePullRequest"
  1213  
  1214  // CreatePullRequestRequest generates a "aws/request.Request" representing the
  1215  // client's request for the CreatePullRequest operation. The "output" return
  1216  // value will be populated with the request's response once the request completes
  1217  // successfully.
  1218  //
  1219  // Use "Send" method on the returned Request to send the API call to the service.
  1220  // the "output" return value is not valid until after Send returns without error.
  1221  //
  1222  // See CreatePullRequest for more information on using the CreatePullRequest
  1223  // API call, and error handling.
  1224  //
  1225  // This method is useful when you want to inject custom logic or configuration
  1226  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1227  //
  1228  //
  1229  //    // Example sending a request using the CreatePullRequestRequest method.
  1230  //    req, resp := client.CreatePullRequestRequest(params)
  1231  //
  1232  //    err := req.Send()
  1233  //    if err == nil { // resp is now filled
  1234  //        fmt.Println(resp)
  1235  //    }
  1236  //
  1237  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest
  1238  func (c *CodeCommit) CreatePullRequestRequest(input *CreatePullRequestInput) (req *request.Request, output *CreatePullRequestOutput) {
  1239  	op := &request.Operation{
  1240  		Name:       opCreatePullRequest,
  1241  		HTTPMethod: "POST",
  1242  		HTTPPath:   "/",
  1243  	}
  1244  
  1245  	if input == nil {
  1246  		input = &CreatePullRequestInput{}
  1247  	}
  1248  
  1249  	output = &CreatePullRequestOutput{}
  1250  	req = c.newRequest(op, input, output)
  1251  	return
  1252  }
  1253  
  1254  // CreatePullRequest API operation for AWS CodeCommit.
  1255  //
  1256  // Creates a pull request in the specified repository.
  1257  //
  1258  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1259  // with awserr.Error's Code and Message methods to get detailed information about
  1260  // the error.
  1261  //
  1262  // See the AWS API reference guide for AWS CodeCommit's
  1263  // API operation CreatePullRequest for usage and error information.
  1264  //
  1265  // Returned Error Types:
  1266  //   * RepositoryNameRequiredException
  1267  //   A repository name is required, but was not specified.
  1268  //
  1269  //   * InvalidRepositoryNameException
  1270  //   A specified repository name is not valid.
  1271  //
  1272  //   This exception occurs only when a specified repository name is not valid.
  1273  //   Other exceptions occur when a required repository parameter is missing, or
  1274  //   when a specified repository does not exist.
  1275  //
  1276  //   * RepositoryDoesNotExistException
  1277  //   The specified repository does not exist.
  1278  //
  1279  //   * EncryptionIntegrityChecksFailedException
  1280  //   An encryption integrity check failed.
  1281  //
  1282  //   * EncryptionKeyAccessDeniedException
  1283  //   An encryption key could not be accessed.
  1284  //
  1285  //   * EncryptionKeyDisabledException
  1286  //   The encryption key is disabled.
  1287  //
  1288  //   * EncryptionKeyNotFoundException
  1289  //   No encryption key was found.
  1290  //
  1291  //   * EncryptionKeyUnavailableException
  1292  //   The encryption key is not available.
  1293  //
  1294  //   * ClientRequestTokenRequiredException
  1295  //   A client request token is required. A client request token is an unique,
  1296  //   client-generated idempotency token that, when provided in a request, ensures
  1297  //   the request cannot be repeated with a changed parameter. If a request is
  1298  //   received with the same parameters and a token is included, the request returns
  1299  //   information about the initial request that used that token.
  1300  //
  1301  //   * InvalidClientRequestTokenException
  1302  //   The client request token is not valid.
  1303  //
  1304  //   * IdempotencyParameterMismatchException
  1305  //   The client request token is not valid. Either the token is not in a valid
  1306  //   format, or the token has been used in a previous request and cannot be reused.
  1307  //
  1308  //   * ReferenceNameRequiredException
  1309  //   A reference name is required, but none was provided.
  1310  //
  1311  //   * InvalidReferenceNameException
  1312  //   The specified reference name format is not valid. Reference names must conform
  1313  //   to the Git references format (for example, refs/heads/master). For more information,
  1314  //   see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References)
  1315  //   or consult your Git documentation.
  1316  //
  1317  //   * ReferenceDoesNotExistException
  1318  //   The specified reference does not exist. You must provide a full commit ID.
  1319  //
  1320  //   * ReferenceTypeNotSupportedException
  1321  //   The specified reference is not a supported type.
  1322  //
  1323  //   * TitleRequiredException
  1324  //   A pull request title is required. It cannot be empty or null.
  1325  //
  1326  //   * InvalidTitleException
  1327  //   The title of the pull request is not valid. Pull request titles cannot exceed
  1328  //   100 characters in length.
  1329  //
  1330  //   * InvalidDescriptionException
  1331  //   The pull request description is not valid. Descriptions cannot be more than
  1332  //   1,000 characters.
  1333  //
  1334  //   * TargetsRequiredException
  1335  //   An array of target objects is required. It cannot be empty or null.
  1336  //
  1337  //   * InvalidTargetsException
  1338  //   The targets for the pull request is not valid or not in a valid format. Targets
  1339  //   are a list of target objects. Each target object must contain the full values
  1340  //   for the repository name, source branch, and destination branch for a pull
  1341  //   request.
  1342  //
  1343  //   * TargetRequiredException
  1344  //   A pull request target is required. It cannot be empty or null. A pull request
  1345  //   target must contain the full values for the repository name, source branch,
  1346  //   and destination branch for the pull request.
  1347  //
  1348  //   * InvalidTargetException
  1349  //   The target for the pull request is not valid. A target must contain the full
  1350  //   values for the repository name, source branch, and destination branch for
  1351  //   the pull request.
  1352  //
  1353  //   * MultipleRepositoriesInPullRequestException
  1354  //   You cannot include more than one repository in a pull request. Make sure
  1355  //   you have specified only one repository name in your request, and then try
  1356  //   again.
  1357  //
  1358  //   * MaximumOpenPullRequestsExceededException
  1359  //   You cannot create the pull request because the repository has too many open
  1360  //   pull requests. The maximum number of open pull requests for a repository
  1361  //   is 1,000. Close one or more open pull requests, and then try again.
  1362  //
  1363  //   * SourceAndDestinationAreSameException
  1364  //   The source branch and destination branch for the pull request are the same.
  1365  //   You must specify different branches for the source and destination.
  1366  //
  1367  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest
  1368  func (c *CodeCommit) CreatePullRequest(input *CreatePullRequestInput) (*CreatePullRequestOutput, error) {
  1369  	req, out := c.CreatePullRequestRequest(input)
  1370  	return out, req.Send()
  1371  }
  1372  
  1373  // CreatePullRequestWithContext is the same as CreatePullRequest with the addition of
  1374  // the ability to pass a context and additional request options.
  1375  //
  1376  // See CreatePullRequest for details on how to use this API operation.
  1377  //
  1378  // The context must be non-nil and will be used for request cancellation. If
  1379  // the context is nil a panic will occur. In the future the SDK may create
  1380  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1381  // for more information on using Contexts.
  1382  func (c *CodeCommit) CreatePullRequestWithContext(ctx aws.Context, input *CreatePullRequestInput, opts ...request.Option) (*CreatePullRequestOutput, error) {
  1383  	req, out := c.CreatePullRequestRequest(input)
  1384  	req.SetContext(ctx)
  1385  	req.ApplyOptions(opts...)
  1386  	return out, req.Send()
  1387  }
  1388  
  1389  const opCreatePullRequestApprovalRule = "CreatePullRequestApprovalRule"
  1390  
  1391  // CreatePullRequestApprovalRuleRequest generates a "aws/request.Request" representing the
  1392  // client's request for the CreatePullRequestApprovalRule operation. The "output" return
  1393  // value will be populated with the request's response once the request completes
  1394  // successfully.
  1395  //
  1396  // Use "Send" method on the returned Request to send the API call to the service.
  1397  // the "output" return value is not valid until after Send returns without error.
  1398  //
  1399  // See CreatePullRequestApprovalRule for more information on using the CreatePullRequestApprovalRule
  1400  // API call, and error handling.
  1401  //
  1402  // This method is useful when you want to inject custom logic or configuration
  1403  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1404  //
  1405  //
  1406  //    // Example sending a request using the CreatePullRequestApprovalRuleRequest method.
  1407  //    req, resp := client.CreatePullRequestApprovalRuleRequest(params)
  1408  //
  1409  //    err := req.Send()
  1410  //    if err == nil { // resp is now filled
  1411  //        fmt.Println(resp)
  1412  //    }
  1413  //
  1414  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequestApprovalRule
  1415  func (c *CodeCommit) CreatePullRequestApprovalRuleRequest(input *CreatePullRequestApprovalRuleInput) (req *request.Request, output *CreatePullRequestApprovalRuleOutput) {
  1416  	op := &request.Operation{
  1417  		Name:       opCreatePullRequestApprovalRule,
  1418  		HTTPMethod: "POST",
  1419  		HTTPPath:   "/",
  1420  	}
  1421  
  1422  	if input == nil {
  1423  		input = &CreatePullRequestApprovalRuleInput{}
  1424  	}
  1425  
  1426  	output = &CreatePullRequestApprovalRuleOutput{}
  1427  	req = c.newRequest(op, input, output)
  1428  	return
  1429  }
  1430  
  1431  // CreatePullRequestApprovalRule API operation for AWS CodeCommit.
  1432  //
  1433  // Creates an approval rule for a pull request.
  1434  //
  1435  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1436  // with awserr.Error's Code and Message methods to get detailed information about
  1437  // the error.
  1438  //
  1439  // See the AWS API reference guide for AWS CodeCommit's
  1440  // API operation CreatePullRequestApprovalRule for usage and error information.
  1441  //
  1442  // Returned Error Types:
  1443  //   * ApprovalRuleNameRequiredException
  1444  //   An approval rule name is required, but was not specified.
  1445  //
  1446  //   * InvalidApprovalRuleNameException
  1447  //   The name for the approval rule is not valid.
  1448  //
  1449  //   * ApprovalRuleNameAlreadyExistsException
  1450  //   An approval rule with that name already exists. Approval rule names must
  1451  //   be unique within the scope of a pull request.
  1452  //
  1453  //   * ApprovalRuleContentRequiredException
  1454  //   The content for the approval rule is empty. You must provide some content
  1455  //   for an approval rule. The content cannot be null.
  1456  //
  1457  //   * InvalidApprovalRuleContentException
  1458  //   The content for the approval rule is not valid.
  1459  //
  1460  //   * NumberOfRulesExceededException
  1461  //   The approval rule cannot be added. The pull request has the maximum number
  1462  //   of approval rules associated with it.
  1463  //
  1464  //   * PullRequestDoesNotExistException
  1465  //   The pull request ID could not be found. Make sure that you have specified
  1466  //   the correct repository name and pull request ID, and then try again.
  1467  //
  1468  //   * InvalidPullRequestIdException
  1469  //   The pull request ID is not valid. Make sure that you have provided the full
  1470  //   ID and that the pull request is in the specified repository, and then try
  1471  //   again.
  1472  //
  1473  //   * PullRequestIdRequiredException
  1474  //   A pull request ID is required, but none was provided.
  1475  //
  1476  //   * PullRequestAlreadyClosedException
  1477  //   The pull request status cannot be updated because it is already closed.
  1478  //
  1479  //   * EncryptionIntegrityChecksFailedException
  1480  //   An encryption integrity check failed.
  1481  //
  1482  //   * EncryptionKeyAccessDeniedException
  1483  //   An encryption key could not be accessed.
  1484  //
  1485  //   * EncryptionKeyDisabledException
  1486  //   The encryption key is disabled.
  1487  //
  1488  //   * EncryptionKeyNotFoundException
  1489  //   No encryption key was found.
  1490  //
  1491  //   * EncryptionKeyUnavailableException
  1492  //   The encryption key is not available.
  1493  //
  1494  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequestApprovalRule
  1495  func (c *CodeCommit) CreatePullRequestApprovalRule(input *CreatePullRequestApprovalRuleInput) (*CreatePullRequestApprovalRuleOutput, error) {
  1496  	req, out := c.CreatePullRequestApprovalRuleRequest(input)
  1497  	return out, req.Send()
  1498  }
  1499  
  1500  // CreatePullRequestApprovalRuleWithContext is the same as CreatePullRequestApprovalRule with the addition of
  1501  // the ability to pass a context and additional request options.
  1502  //
  1503  // See CreatePullRequestApprovalRule for details on how to use this API operation.
  1504  //
  1505  // The context must be non-nil and will be used for request cancellation. If
  1506  // the context is nil a panic will occur. In the future the SDK may create
  1507  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1508  // for more information on using Contexts.
  1509  func (c *CodeCommit) CreatePullRequestApprovalRuleWithContext(ctx aws.Context, input *CreatePullRequestApprovalRuleInput, opts ...request.Option) (*CreatePullRequestApprovalRuleOutput, error) {
  1510  	req, out := c.CreatePullRequestApprovalRuleRequest(input)
  1511  	req.SetContext(ctx)
  1512  	req.ApplyOptions(opts...)
  1513  	return out, req.Send()
  1514  }
  1515  
  1516  const opCreateRepository = "CreateRepository"
  1517  
  1518  // CreateRepositoryRequest generates a "aws/request.Request" representing the
  1519  // client's request for the CreateRepository operation. The "output" return
  1520  // value will be populated with the request's response once the request completes
  1521  // successfully.
  1522  //
  1523  // Use "Send" method on the returned Request to send the API call to the service.
  1524  // the "output" return value is not valid until after Send returns without error.
  1525  //
  1526  // See CreateRepository for more information on using the CreateRepository
  1527  // API call, and error handling.
  1528  //
  1529  // This method is useful when you want to inject custom logic or configuration
  1530  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1531  //
  1532  //
  1533  //    // Example sending a request using the CreateRepositoryRequest method.
  1534  //    req, resp := client.CreateRepositoryRequest(params)
  1535  //
  1536  //    err := req.Send()
  1537  //    if err == nil { // resp is now filled
  1538  //        fmt.Println(resp)
  1539  //    }
  1540  //
  1541  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository
  1542  func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) {
  1543  	op := &request.Operation{
  1544  		Name:       opCreateRepository,
  1545  		HTTPMethod: "POST",
  1546  		HTTPPath:   "/",
  1547  	}
  1548  
  1549  	if input == nil {
  1550  		input = &CreateRepositoryInput{}
  1551  	}
  1552  
  1553  	output = &CreateRepositoryOutput{}
  1554  	req = c.newRequest(op, input, output)
  1555  	return
  1556  }
  1557  
  1558  // CreateRepository API operation for AWS CodeCommit.
  1559  //
  1560  // Creates a new, empty repository.
  1561  //
  1562  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1563  // with awserr.Error's Code and Message methods to get detailed information about
  1564  // the error.
  1565  //
  1566  // See the AWS API reference guide for AWS CodeCommit's
  1567  // API operation CreateRepository for usage and error information.
  1568  //
  1569  // Returned Error Types:
  1570  //   * RepositoryNameExistsException
  1571  //   The specified repository name already exists.
  1572  //
  1573  //   * RepositoryNameRequiredException
  1574  //   A repository name is required, but was not specified.
  1575  //
  1576  //   * InvalidRepositoryNameException
  1577  //   A specified repository name is not valid.
  1578  //
  1579  //   This exception occurs only when a specified repository name is not valid.
  1580  //   Other exceptions occur when a required repository parameter is missing, or
  1581  //   when a specified repository does not exist.
  1582  //
  1583  //   * InvalidRepositoryDescriptionException
  1584  //   The specified repository description is not valid.
  1585  //
  1586  //   * RepositoryLimitExceededException
  1587  //   A repository resource limit was exceeded.
  1588  //
  1589  //   * EncryptionIntegrityChecksFailedException
  1590  //   An encryption integrity check failed.
  1591  //
  1592  //   * EncryptionKeyAccessDeniedException
  1593  //   An encryption key could not be accessed.
  1594  //
  1595  //   * EncryptionKeyDisabledException
  1596  //   The encryption key is disabled.
  1597  //
  1598  //   * EncryptionKeyNotFoundException
  1599  //   No encryption key was found.
  1600  //
  1601  //   * EncryptionKeyUnavailableException
  1602  //   The encryption key is not available.
  1603  //
  1604  //   * InvalidTagsMapException
  1605  //   The map of tags is not valid.
  1606  //
  1607  //   * TooManyTagsException
  1608  //   The maximum number of tags for an AWS CodeCommit resource has been exceeded.
  1609  //
  1610  //   * InvalidSystemTagUsageException
  1611  //   The specified tag is not valid. Key names cannot be prefixed with aws:.
  1612  //
  1613  //   * TagPolicyException
  1614  //   The tag policy is not valid.
  1615  //
  1616  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository
  1617  func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) {
  1618  	req, out := c.CreateRepositoryRequest(input)
  1619  	return out, req.Send()
  1620  }
  1621  
  1622  // CreateRepositoryWithContext is the same as CreateRepository with the addition of
  1623  // the ability to pass a context and additional request options.
  1624  //
  1625  // See CreateRepository for details on how to use this API operation.
  1626  //
  1627  // The context must be non-nil and will be used for request cancellation. If
  1628  // the context is nil a panic will occur. In the future the SDK may create
  1629  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1630  // for more information on using Contexts.
  1631  func (c *CodeCommit) CreateRepositoryWithContext(ctx aws.Context, input *CreateRepositoryInput, opts ...request.Option) (*CreateRepositoryOutput, error) {
  1632  	req, out := c.CreateRepositoryRequest(input)
  1633  	req.SetContext(ctx)
  1634  	req.ApplyOptions(opts...)
  1635  	return out, req.Send()
  1636  }
  1637  
  1638  const opCreateUnreferencedMergeCommit = "CreateUnreferencedMergeCommit"
  1639  
  1640  // CreateUnreferencedMergeCommitRequest generates a "aws/request.Request" representing the
  1641  // client's request for the CreateUnreferencedMergeCommit operation. The "output" return
  1642  // value will be populated with the request's response once the request completes
  1643  // successfully.
  1644  //
  1645  // Use "Send" method on the returned Request to send the API call to the service.
  1646  // the "output" return value is not valid until after Send returns without error.
  1647  //
  1648  // See CreateUnreferencedMergeCommit for more information on using the CreateUnreferencedMergeCommit
  1649  // API call, and error handling.
  1650  //
  1651  // This method is useful when you want to inject custom logic or configuration
  1652  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1653  //
  1654  //
  1655  //    // Example sending a request using the CreateUnreferencedMergeCommitRequest method.
  1656  //    req, resp := client.CreateUnreferencedMergeCommitRequest(params)
  1657  //
  1658  //    err := req.Send()
  1659  //    if err == nil { // resp is now filled
  1660  //        fmt.Println(resp)
  1661  //    }
  1662  //
  1663  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateUnreferencedMergeCommit
  1664  func (c *CodeCommit) CreateUnreferencedMergeCommitRequest(input *CreateUnreferencedMergeCommitInput) (req *request.Request, output *CreateUnreferencedMergeCommitOutput) {
  1665  	op := &request.Operation{
  1666  		Name:       opCreateUnreferencedMergeCommit,
  1667  		HTTPMethod: "POST",
  1668  		HTTPPath:   "/",
  1669  	}
  1670  
  1671  	if input == nil {
  1672  		input = &CreateUnreferencedMergeCommitInput{}
  1673  	}
  1674  
  1675  	output = &CreateUnreferencedMergeCommitOutput{}
  1676  	req = c.newRequest(op, input, output)
  1677  	return
  1678  }
  1679  
  1680  // CreateUnreferencedMergeCommit API operation for AWS CodeCommit.
  1681  //
  1682  // Creates an unreferenced commit that represents the result of merging two
  1683  // branches using a specified merge strategy. This can help you determine the
  1684  // outcome of a potential merge. This API cannot be used with the fast-forward
  1685  // merge strategy because that strategy does not create a merge commit.
  1686  //
  1687  // This unreferenced merge commit can only be accessed using the GetCommit API
  1688  // or through git commands such as git fetch. To retrieve this commit, you must
  1689  // specify its commit ID or otherwise reference it.
  1690  //
  1691  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1692  // with awserr.Error's Code and Message methods to get detailed information about
  1693  // the error.
  1694  //
  1695  // See the AWS API reference guide for AWS CodeCommit's
  1696  // API operation CreateUnreferencedMergeCommit for usage and error information.
  1697  //
  1698  // Returned Error Types:
  1699  //   * RepositoryNameRequiredException
  1700  //   A repository name is required, but was not specified.
  1701  //
  1702  //   * InvalidRepositoryNameException
  1703  //   A specified repository name is not valid.
  1704  //
  1705  //   This exception occurs only when a specified repository name is not valid.
  1706  //   Other exceptions occur when a required repository parameter is missing, or
  1707  //   when a specified repository does not exist.
  1708  //
  1709  //   * RepositoryDoesNotExistException
  1710  //   The specified repository does not exist.
  1711  //
  1712  //   * TipsDivergenceExceededException
  1713  //   The divergence between the tips of the provided commit specifiers is too
  1714  //   great to determine whether there might be any merge conflicts. Locally compare
  1715  //   the specifiers using git diff or a diff tool.
  1716  //
  1717  //   * CommitRequiredException
  1718  //   A commit was not specified.
  1719  //
  1720  //   * InvalidCommitException
  1721  //   The specified commit is not valid.
  1722  //
  1723  //   * CommitDoesNotExistException
  1724  //   The specified commit does not exist or no commit was specified, and the specified
  1725  //   repository has no default branch.
  1726  //
  1727  //   * MergeOptionRequiredException
  1728  //   A merge option or stategy is required, and none was provided.
  1729  //
  1730  //   * InvalidMergeOptionException
  1731  //   The specified merge option is not valid for this operation. Not all merge
  1732  //   strategies are supported for all operations.
  1733  //
  1734  //   * InvalidConflictDetailLevelException
  1735  //   The specified conflict detail level is not valid.
  1736  //
  1737  //   * InvalidConflictResolutionStrategyException
  1738  //   The specified conflict resolution strategy is not valid.
  1739  //
  1740  //   * InvalidConflictResolutionException
  1741  //   The specified conflict resolution list is not valid.
  1742  //
  1743  //   * ManualMergeRequiredException
  1744  //   The pull request cannot be merged automatically into the destination branch.
  1745  //   You must manually merge the branches and resolve any conflicts.
  1746  //
  1747  //   * MaximumConflictResolutionEntriesExceededException
  1748  //   The number of allowed conflict resolution entries was exceeded.
  1749  //
  1750  //   * MultipleConflictResolutionEntriesException
  1751  //   More than one conflict resolution entries exists for the conflict. A conflict
  1752  //   can have only one conflict resolution entry.
  1753  //
  1754  //   * ReplacementTypeRequiredException
  1755  //   A replacement type is required.
  1756  //
  1757  //   * InvalidReplacementTypeException
  1758  //   Automerge was specified for resolving the conflict, but the specified replacement
  1759  //   type is not valid.
  1760  //
  1761  //   * ReplacementContentRequiredException
  1762  //   USE_NEW_CONTENT was specified, but no replacement content has been provided.
  1763  //
  1764  //   * InvalidReplacementContentException
  1765  //   Automerge was specified for resolving the conflict, but the replacement type
  1766  //   is not valid or content is missing.
  1767  //
  1768  //   * PathRequiredException
  1769  //   The folderPath for a location cannot be null.
  1770  //
  1771  //   * InvalidPathException
  1772  //   The specified path is not valid.
  1773  //
  1774  //   * FileContentSizeLimitExceededException
  1775  //   The file cannot be added because it is too large. The maximum file size is
  1776  //   6 MB, and the combined file content change size is 7 MB. Consider making
  1777  //   these changes using a Git client.
  1778  //
  1779  //   * FolderContentSizeLimitExceededException
  1780  //   The commit cannot be created because at least one of the overall changes
  1781  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  1782  //   Either reduce the number and size of your changes, or split the changes across
  1783  //   multiple folders.
  1784  //
  1785  //   * MaximumFileContentToLoadExceededException
  1786  //   The number of files to load exceeds the allowed limit.
  1787  //
  1788  //   * MaximumItemsToCompareExceededException
  1789  //   The number of items to compare between the source or destination branches
  1790  //   and the merge base has exceeded the maximum allowed.
  1791  //
  1792  //   * ConcurrentReferenceUpdateException
  1793  //   The merge cannot be completed because the target branch has been modified.
  1794  //   Another user might have modified the target branch while the merge was in
  1795  //   progress. Wait a few minutes, and then try again.
  1796  //
  1797  //   * FileModeRequiredException
  1798  //   The commit cannot be created because no file mode has been specified. A file
  1799  //   mode is required to update mode permissions for a file.
  1800  //
  1801  //   * InvalidFileModeException
  1802  //   The specified file mode permission is not valid. For a list of valid file
  1803  //   mode permissions, see PutFile.
  1804  //
  1805  //   * NameLengthExceededException
  1806  //   The user name is not valid because it has exceeded the character limit for
  1807  //   author names.
  1808  //
  1809  //   * InvalidEmailException
  1810  //   The specified email address either contains one or more characters that are
  1811  //   not allowed, or it exceeds the maximum number of characters allowed for an
  1812  //   email address.
  1813  //
  1814  //   * CommitMessageLengthExceededException
  1815  //   The commit message is too long. Provide a shorter string.
  1816  //
  1817  //   * EncryptionIntegrityChecksFailedException
  1818  //   An encryption integrity check failed.
  1819  //
  1820  //   * EncryptionKeyAccessDeniedException
  1821  //   An encryption key could not be accessed.
  1822  //
  1823  //   * EncryptionKeyDisabledException
  1824  //   The encryption key is disabled.
  1825  //
  1826  //   * EncryptionKeyNotFoundException
  1827  //   No encryption key was found.
  1828  //
  1829  //   * EncryptionKeyUnavailableException
  1830  //   The encryption key is not available.
  1831  //
  1832  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateUnreferencedMergeCommit
  1833  func (c *CodeCommit) CreateUnreferencedMergeCommit(input *CreateUnreferencedMergeCommitInput) (*CreateUnreferencedMergeCommitOutput, error) {
  1834  	req, out := c.CreateUnreferencedMergeCommitRequest(input)
  1835  	return out, req.Send()
  1836  }
  1837  
  1838  // CreateUnreferencedMergeCommitWithContext is the same as CreateUnreferencedMergeCommit with the addition of
  1839  // the ability to pass a context and additional request options.
  1840  //
  1841  // See CreateUnreferencedMergeCommit for details on how to use this API operation.
  1842  //
  1843  // The context must be non-nil and will be used for request cancellation. If
  1844  // the context is nil a panic will occur. In the future the SDK may create
  1845  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1846  // for more information on using Contexts.
  1847  func (c *CodeCommit) CreateUnreferencedMergeCommitWithContext(ctx aws.Context, input *CreateUnreferencedMergeCommitInput, opts ...request.Option) (*CreateUnreferencedMergeCommitOutput, error) {
  1848  	req, out := c.CreateUnreferencedMergeCommitRequest(input)
  1849  	req.SetContext(ctx)
  1850  	req.ApplyOptions(opts...)
  1851  	return out, req.Send()
  1852  }
  1853  
  1854  const opDeleteApprovalRuleTemplate = "DeleteApprovalRuleTemplate"
  1855  
  1856  // DeleteApprovalRuleTemplateRequest generates a "aws/request.Request" representing the
  1857  // client's request for the DeleteApprovalRuleTemplate operation. The "output" return
  1858  // value will be populated with the request's response once the request completes
  1859  // successfully.
  1860  //
  1861  // Use "Send" method on the returned Request to send the API call to the service.
  1862  // the "output" return value is not valid until after Send returns without error.
  1863  //
  1864  // See DeleteApprovalRuleTemplate for more information on using the DeleteApprovalRuleTemplate
  1865  // API call, and error handling.
  1866  //
  1867  // This method is useful when you want to inject custom logic or configuration
  1868  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1869  //
  1870  //
  1871  //    // Example sending a request using the DeleteApprovalRuleTemplateRequest method.
  1872  //    req, resp := client.DeleteApprovalRuleTemplateRequest(params)
  1873  //
  1874  //    err := req.Send()
  1875  //    if err == nil { // resp is now filled
  1876  //        fmt.Println(resp)
  1877  //    }
  1878  //
  1879  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteApprovalRuleTemplate
  1880  func (c *CodeCommit) DeleteApprovalRuleTemplateRequest(input *DeleteApprovalRuleTemplateInput) (req *request.Request, output *DeleteApprovalRuleTemplateOutput) {
  1881  	op := &request.Operation{
  1882  		Name:       opDeleteApprovalRuleTemplate,
  1883  		HTTPMethod: "POST",
  1884  		HTTPPath:   "/",
  1885  	}
  1886  
  1887  	if input == nil {
  1888  		input = &DeleteApprovalRuleTemplateInput{}
  1889  	}
  1890  
  1891  	output = &DeleteApprovalRuleTemplateOutput{}
  1892  	req = c.newRequest(op, input, output)
  1893  	return
  1894  }
  1895  
  1896  // DeleteApprovalRuleTemplate API operation for AWS CodeCommit.
  1897  //
  1898  // Deletes a specified approval rule template. Deleting a template does not
  1899  // remove approval rules on pull requests already created with the template.
  1900  //
  1901  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1902  // with awserr.Error's Code and Message methods to get detailed information about
  1903  // the error.
  1904  //
  1905  // See the AWS API reference guide for AWS CodeCommit's
  1906  // API operation DeleteApprovalRuleTemplate for usage and error information.
  1907  //
  1908  // Returned Error Types:
  1909  //   * ApprovalRuleTemplateNameRequiredException
  1910  //   An approval rule template name is required, but was not specified.
  1911  //
  1912  //   * InvalidApprovalRuleTemplateNameException
  1913  //   The name of the approval rule template is not valid. Template names must
  1914  //   be between 1 and 100 valid characters in length. For more information about
  1915  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  1916  //
  1917  //   * ApprovalRuleTemplateInUseException
  1918  //   The approval rule template is associated with one or more repositories. You
  1919  //   cannot delete a template that is associated with a repository. Remove all
  1920  //   associations, and then try again.
  1921  //
  1922  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteApprovalRuleTemplate
  1923  func (c *CodeCommit) DeleteApprovalRuleTemplate(input *DeleteApprovalRuleTemplateInput) (*DeleteApprovalRuleTemplateOutput, error) {
  1924  	req, out := c.DeleteApprovalRuleTemplateRequest(input)
  1925  	return out, req.Send()
  1926  }
  1927  
  1928  // DeleteApprovalRuleTemplateWithContext is the same as DeleteApprovalRuleTemplate with the addition of
  1929  // the ability to pass a context and additional request options.
  1930  //
  1931  // See DeleteApprovalRuleTemplate for details on how to use this API operation.
  1932  //
  1933  // The context must be non-nil and will be used for request cancellation. If
  1934  // the context is nil a panic will occur. In the future the SDK may create
  1935  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1936  // for more information on using Contexts.
  1937  func (c *CodeCommit) DeleteApprovalRuleTemplateWithContext(ctx aws.Context, input *DeleteApprovalRuleTemplateInput, opts ...request.Option) (*DeleteApprovalRuleTemplateOutput, error) {
  1938  	req, out := c.DeleteApprovalRuleTemplateRequest(input)
  1939  	req.SetContext(ctx)
  1940  	req.ApplyOptions(opts...)
  1941  	return out, req.Send()
  1942  }
  1943  
  1944  const opDeleteBranch = "DeleteBranch"
  1945  
  1946  // DeleteBranchRequest generates a "aws/request.Request" representing the
  1947  // client's request for the DeleteBranch operation. The "output" return
  1948  // value will be populated with the request's response once the request completes
  1949  // successfully.
  1950  //
  1951  // Use "Send" method on the returned Request to send the API call to the service.
  1952  // the "output" return value is not valid until after Send returns without error.
  1953  //
  1954  // See DeleteBranch for more information on using the DeleteBranch
  1955  // API call, and error handling.
  1956  //
  1957  // This method is useful when you want to inject custom logic or configuration
  1958  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1959  //
  1960  //
  1961  //    // Example sending a request using the DeleteBranchRequest method.
  1962  //    req, resp := client.DeleteBranchRequest(params)
  1963  //
  1964  //    err := req.Send()
  1965  //    if err == nil { // resp is now filled
  1966  //        fmt.Println(resp)
  1967  //    }
  1968  //
  1969  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch
  1970  func (c *CodeCommit) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput) {
  1971  	op := &request.Operation{
  1972  		Name:       opDeleteBranch,
  1973  		HTTPMethod: "POST",
  1974  		HTTPPath:   "/",
  1975  	}
  1976  
  1977  	if input == nil {
  1978  		input = &DeleteBranchInput{}
  1979  	}
  1980  
  1981  	output = &DeleteBranchOutput{}
  1982  	req = c.newRequest(op, input, output)
  1983  	return
  1984  }
  1985  
  1986  // DeleteBranch API operation for AWS CodeCommit.
  1987  //
  1988  // Deletes a branch from a repository, unless that branch is the default branch
  1989  // for the repository.
  1990  //
  1991  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1992  // with awserr.Error's Code and Message methods to get detailed information about
  1993  // the error.
  1994  //
  1995  // See the AWS API reference guide for AWS CodeCommit's
  1996  // API operation DeleteBranch for usage and error information.
  1997  //
  1998  // Returned Error Types:
  1999  //   * RepositoryNameRequiredException
  2000  //   A repository name is required, but was not specified.
  2001  //
  2002  //   * RepositoryDoesNotExistException
  2003  //   The specified repository does not exist.
  2004  //
  2005  //   * InvalidRepositoryNameException
  2006  //   A specified repository name is not valid.
  2007  //
  2008  //   This exception occurs only when a specified repository name is not valid.
  2009  //   Other exceptions occur when a required repository parameter is missing, or
  2010  //   when a specified repository does not exist.
  2011  //
  2012  //   * BranchNameRequiredException
  2013  //   A branch name is required, but was not specified.
  2014  //
  2015  //   * InvalidBranchNameException
  2016  //   The specified reference name is not valid.
  2017  //
  2018  //   * DefaultBranchCannotBeDeletedException
  2019  //   The specified branch is the default branch for the repository, and cannot
  2020  //   be deleted. To delete this branch, you must first set another branch as the
  2021  //   default branch.
  2022  //
  2023  //   * EncryptionIntegrityChecksFailedException
  2024  //   An encryption integrity check failed.
  2025  //
  2026  //   * EncryptionKeyAccessDeniedException
  2027  //   An encryption key could not be accessed.
  2028  //
  2029  //   * EncryptionKeyDisabledException
  2030  //   The encryption key is disabled.
  2031  //
  2032  //   * EncryptionKeyNotFoundException
  2033  //   No encryption key was found.
  2034  //
  2035  //   * EncryptionKeyUnavailableException
  2036  //   The encryption key is not available.
  2037  //
  2038  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch
  2039  func (c *CodeCommit) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error) {
  2040  	req, out := c.DeleteBranchRequest(input)
  2041  	return out, req.Send()
  2042  }
  2043  
  2044  // DeleteBranchWithContext is the same as DeleteBranch with the addition of
  2045  // the ability to pass a context and additional request options.
  2046  //
  2047  // See DeleteBranch for details on how to use this API operation.
  2048  //
  2049  // The context must be non-nil and will be used for request cancellation. If
  2050  // the context is nil a panic will occur. In the future the SDK may create
  2051  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2052  // for more information on using Contexts.
  2053  func (c *CodeCommit) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error) {
  2054  	req, out := c.DeleteBranchRequest(input)
  2055  	req.SetContext(ctx)
  2056  	req.ApplyOptions(opts...)
  2057  	return out, req.Send()
  2058  }
  2059  
  2060  const opDeleteCommentContent = "DeleteCommentContent"
  2061  
  2062  // DeleteCommentContentRequest generates a "aws/request.Request" representing the
  2063  // client's request for the DeleteCommentContent operation. The "output" return
  2064  // value will be populated with the request's response once the request completes
  2065  // successfully.
  2066  //
  2067  // Use "Send" method on the returned Request to send the API call to the service.
  2068  // the "output" return value is not valid until after Send returns without error.
  2069  //
  2070  // See DeleteCommentContent for more information on using the DeleteCommentContent
  2071  // API call, and error handling.
  2072  //
  2073  // This method is useful when you want to inject custom logic or configuration
  2074  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2075  //
  2076  //
  2077  //    // Example sending a request using the DeleteCommentContentRequest method.
  2078  //    req, resp := client.DeleteCommentContentRequest(params)
  2079  //
  2080  //    err := req.Send()
  2081  //    if err == nil { // resp is now filled
  2082  //        fmt.Println(resp)
  2083  //    }
  2084  //
  2085  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent
  2086  func (c *CodeCommit) DeleteCommentContentRequest(input *DeleteCommentContentInput) (req *request.Request, output *DeleteCommentContentOutput) {
  2087  	op := &request.Operation{
  2088  		Name:       opDeleteCommentContent,
  2089  		HTTPMethod: "POST",
  2090  		HTTPPath:   "/",
  2091  	}
  2092  
  2093  	if input == nil {
  2094  		input = &DeleteCommentContentInput{}
  2095  	}
  2096  
  2097  	output = &DeleteCommentContentOutput{}
  2098  	req = c.newRequest(op, input, output)
  2099  	return
  2100  }
  2101  
  2102  // DeleteCommentContent API operation for AWS CodeCommit.
  2103  //
  2104  // Deletes the content of a comment made on a change, file, or commit in a repository.
  2105  //
  2106  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2107  // with awserr.Error's Code and Message methods to get detailed information about
  2108  // the error.
  2109  //
  2110  // See the AWS API reference guide for AWS CodeCommit's
  2111  // API operation DeleteCommentContent for usage and error information.
  2112  //
  2113  // Returned Error Types:
  2114  //   * CommentDoesNotExistException
  2115  //   No comment exists with the provided ID. Verify that you have used the correct
  2116  //   ID, and then try again.
  2117  //
  2118  //   * CommentIdRequiredException
  2119  //   The comment ID is missing or null. A comment ID is required.
  2120  //
  2121  //   * InvalidCommentIdException
  2122  //   The comment ID is not in a valid format. Make sure that you have provided
  2123  //   the full comment ID.
  2124  //
  2125  //   * CommentDeletedException
  2126  //   This comment has already been deleted. You cannot edit or delete a deleted
  2127  //   comment.
  2128  //
  2129  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent
  2130  func (c *CodeCommit) DeleteCommentContent(input *DeleteCommentContentInput) (*DeleteCommentContentOutput, error) {
  2131  	req, out := c.DeleteCommentContentRequest(input)
  2132  	return out, req.Send()
  2133  }
  2134  
  2135  // DeleteCommentContentWithContext is the same as DeleteCommentContent with the addition of
  2136  // the ability to pass a context and additional request options.
  2137  //
  2138  // See DeleteCommentContent for details on how to use this API operation.
  2139  //
  2140  // The context must be non-nil and will be used for request cancellation. If
  2141  // the context is nil a panic will occur. In the future the SDK may create
  2142  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2143  // for more information on using Contexts.
  2144  func (c *CodeCommit) DeleteCommentContentWithContext(ctx aws.Context, input *DeleteCommentContentInput, opts ...request.Option) (*DeleteCommentContentOutput, error) {
  2145  	req, out := c.DeleteCommentContentRequest(input)
  2146  	req.SetContext(ctx)
  2147  	req.ApplyOptions(opts...)
  2148  	return out, req.Send()
  2149  }
  2150  
  2151  const opDeleteFile = "DeleteFile"
  2152  
  2153  // DeleteFileRequest generates a "aws/request.Request" representing the
  2154  // client's request for the DeleteFile operation. The "output" return
  2155  // value will be populated with the request's response once the request completes
  2156  // successfully.
  2157  //
  2158  // Use "Send" method on the returned Request to send the API call to the service.
  2159  // the "output" return value is not valid until after Send returns without error.
  2160  //
  2161  // See DeleteFile for more information on using the DeleteFile
  2162  // API call, and error handling.
  2163  //
  2164  // This method is useful when you want to inject custom logic or configuration
  2165  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2166  //
  2167  //
  2168  //    // Example sending a request using the DeleteFileRequest method.
  2169  //    req, resp := client.DeleteFileRequest(params)
  2170  //
  2171  //    err := req.Send()
  2172  //    if err == nil { // resp is now filled
  2173  //        fmt.Println(resp)
  2174  //    }
  2175  //
  2176  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile
  2177  func (c *CodeCommit) DeleteFileRequest(input *DeleteFileInput) (req *request.Request, output *DeleteFileOutput) {
  2178  	op := &request.Operation{
  2179  		Name:       opDeleteFile,
  2180  		HTTPMethod: "POST",
  2181  		HTTPPath:   "/",
  2182  	}
  2183  
  2184  	if input == nil {
  2185  		input = &DeleteFileInput{}
  2186  	}
  2187  
  2188  	output = &DeleteFileOutput{}
  2189  	req = c.newRequest(op, input, output)
  2190  	return
  2191  }
  2192  
  2193  // DeleteFile API operation for AWS CodeCommit.
  2194  //
  2195  // Deletes a specified file from a specified branch. A commit is created on
  2196  // the branch that contains the revision. The file still exists in the commits
  2197  // earlier to the commit that contains the deletion.
  2198  //
  2199  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2200  // with awserr.Error's Code and Message methods to get detailed information about
  2201  // the error.
  2202  //
  2203  // See the AWS API reference guide for AWS CodeCommit's
  2204  // API operation DeleteFile for usage and error information.
  2205  //
  2206  // Returned Error Types:
  2207  //   * RepositoryNameRequiredException
  2208  //   A repository name is required, but was not specified.
  2209  //
  2210  //   * InvalidRepositoryNameException
  2211  //   A specified repository name is not valid.
  2212  //
  2213  //   This exception occurs only when a specified repository name is not valid.
  2214  //   Other exceptions occur when a required repository parameter is missing, or
  2215  //   when a specified repository does not exist.
  2216  //
  2217  //   * RepositoryDoesNotExistException
  2218  //   The specified repository does not exist.
  2219  //
  2220  //   * ParentCommitIdRequiredException
  2221  //   A parent commit ID is required. To view the full commit ID of a branch in
  2222  //   a repository, use GetBranch or a Git command (for example, git pull or git
  2223  //   log).
  2224  //
  2225  //   * InvalidParentCommitIdException
  2226  //   The parent commit ID is not valid. The commit ID cannot be empty, and must
  2227  //   match the head commit ID for the branch of the repository where you want
  2228  //   to add or update a file.
  2229  //
  2230  //   * ParentCommitDoesNotExistException
  2231  //   The parent commit ID is not valid because it does not exist. The specified
  2232  //   parent commit ID does not exist in the specified branch of the repository.
  2233  //
  2234  //   * ParentCommitIdOutdatedException
  2235  //   The file could not be added because the provided parent commit ID is not
  2236  //   the current tip of the specified branch. To view the full commit ID of the
  2237  //   current head of the branch, use GetBranch.
  2238  //
  2239  //   * PathRequiredException
  2240  //   The folderPath for a location cannot be null.
  2241  //
  2242  //   * InvalidPathException
  2243  //   The specified path is not valid.
  2244  //
  2245  //   * FileDoesNotExistException
  2246  //   The specified file does not exist. Verify that you have used the correct
  2247  //   file name, full path, and extension.
  2248  //
  2249  //   * BranchNameRequiredException
  2250  //   A branch name is required, but was not specified.
  2251  //
  2252  //   * InvalidBranchNameException
  2253  //   The specified reference name is not valid.
  2254  //
  2255  //   * BranchDoesNotExistException
  2256  //   The specified branch does not exist.
  2257  //
  2258  //   * BranchNameIsTagNameException
  2259  //   The specified branch name is not valid because it is a tag name. Enter the
  2260  //   name of a branch in the repository. For a list of valid branch names, use
  2261  //   ListBranches.
  2262  //
  2263  //   * NameLengthExceededException
  2264  //   The user name is not valid because it has exceeded the character limit for
  2265  //   author names.
  2266  //
  2267  //   * InvalidEmailException
  2268  //   The specified email address either contains one or more characters that are
  2269  //   not allowed, or it exceeds the maximum number of characters allowed for an
  2270  //   email address.
  2271  //
  2272  //   * CommitMessageLengthExceededException
  2273  //   The commit message is too long. Provide a shorter string.
  2274  //
  2275  //   * EncryptionIntegrityChecksFailedException
  2276  //   An encryption integrity check failed.
  2277  //
  2278  //   * EncryptionKeyAccessDeniedException
  2279  //   An encryption key could not be accessed.
  2280  //
  2281  //   * EncryptionKeyDisabledException
  2282  //   The encryption key is disabled.
  2283  //
  2284  //   * EncryptionKeyNotFoundException
  2285  //   No encryption key was found.
  2286  //
  2287  //   * EncryptionKeyUnavailableException
  2288  //   The encryption key is not available.
  2289  //
  2290  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile
  2291  func (c *CodeCommit) DeleteFile(input *DeleteFileInput) (*DeleteFileOutput, error) {
  2292  	req, out := c.DeleteFileRequest(input)
  2293  	return out, req.Send()
  2294  }
  2295  
  2296  // DeleteFileWithContext is the same as DeleteFile with the addition of
  2297  // the ability to pass a context and additional request options.
  2298  //
  2299  // See DeleteFile for details on how to use this API operation.
  2300  //
  2301  // The context must be non-nil and will be used for request cancellation. If
  2302  // the context is nil a panic will occur. In the future the SDK may create
  2303  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2304  // for more information on using Contexts.
  2305  func (c *CodeCommit) DeleteFileWithContext(ctx aws.Context, input *DeleteFileInput, opts ...request.Option) (*DeleteFileOutput, error) {
  2306  	req, out := c.DeleteFileRequest(input)
  2307  	req.SetContext(ctx)
  2308  	req.ApplyOptions(opts...)
  2309  	return out, req.Send()
  2310  }
  2311  
  2312  const opDeletePullRequestApprovalRule = "DeletePullRequestApprovalRule"
  2313  
  2314  // DeletePullRequestApprovalRuleRequest generates a "aws/request.Request" representing the
  2315  // client's request for the DeletePullRequestApprovalRule operation. The "output" return
  2316  // value will be populated with the request's response once the request completes
  2317  // successfully.
  2318  //
  2319  // Use "Send" method on the returned Request to send the API call to the service.
  2320  // the "output" return value is not valid until after Send returns without error.
  2321  //
  2322  // See DeletePullRequestApprovalRule for more information on using the DeletePullRequestApprovalRule
  2323  // API call, and error handling.
  2324  //
  2325  // This method is useful when you want to inject custom logic or configuration
  2326  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2327  //
  2328  //
  2329  //    // Example sending a request using the DeletePullRequestApprovalRuleRequest method.
  2330  //    req, resp := client.DeletePullRequestApprovalRuleRequest(params)
  2331  //
  2332  //    err := req.Send()
  2333  //    if err == nil { // resp is now filled
  2334  //        fmt.Println(resp)
  2335  //    }
  2336  //
  2337  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeletePullRequestApprovalRule
  2338  func (c *CodeCommit) DeletePullRequestApprovalRuleRequest(input *DeletePullRequestApprovalRuleInput) (req *request.Request, output *DeletePullRequestApprovalRuleOutput) {
  2339  	op := &request.Operation{
  2340  		Name:       opDeletePullRequestApprovalRule,
  2341  		HTTPMethod: "POST",
  2342  		HTTPPath:   "/",
  2343  	}
  2344  
  2345  	if input == nil {
  2346  		input = &DeletePullRequestApprovalRuleInput{}
  2347  	}
  2348  
  2349  	output = &DeletePullRequestApprovalRuleOutput{}
  2350  	req = c.newRequest(op, input, output)
  2351  	return
  2352  }
  2353  
  2354  // DeletePullRequestApprovalRule API operation for AWS CodeCommit.
  2355  //
  2356  // Deletes an approval rule from a specified pull request. Approval rules can
  2357  // be deleted from a pull request only if the pull request is open, and if the
  2358  // approval rule was created specifically for a pull request and not generated
  2359  // from an approval rule template associated with the repository where the pull
  2360  // request was created. You cannot delete an approval rule from a merged or
  2361  // closed pull request.
  2362  //
  2363  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2364  // with awserr.Error's Code and Message methods to get detailed information about
  2365  // the error.
  2366  //
  2367  // See the AWS API reference guide for AWS CodeCommit's
  2368  // API operation DeletePullRequestApprovalRule for usage and error information.
  2369  //
  2370  // Returned Error Types:
  2371  //   * PullRequestDoesNotExistException
  2372  //   The pull request ID could not be found. Make sure that you have specified
  2373  //   the correct repository name and pull request ID, and then try again.
  2374  //
  2375  //   * InvalidPullRequestIdException
  2376  //   The pull request ID is not valid. Make sure that you have provided the full
  2377  //   ID and that the pull request is in the specified repository, and then try
  2378  //   again.
  2379  //
  2380  //   * PullRequestIdRequiredException
  2381  //   A pull request ID is required, but none was provided.
  2382  //
  2383  //   * PullRequestAlreadyClosedException
  2384  //   The pull request status cannot be updated because it is already closed.
  2385  //
  2386  //   * ApprovalRuleNameRequiredException
  2387  //   An approval rule name is required, but was not specified.
  2388  //
  2389  //   * InvalidApprovalRuleNameException
  2390  //   The name for the approval rule is not valid.
  2391  //
  2392  //   * CannotDeleteApprovalRuleFromTemplateException
  2393  //   The approval rule cannot be deleted from the pull request because it was
  2394  //   created by an approval rule template and applied to the pull request automatically.
  2395  //
  2396  //   * EncryptionIntegrityChecksFailedException
  2397  //   An encryption integrity check failed.
  2398  //
  2399  //   * EncryptionKeyAccessDeniedException
  2400  //   An encryption key could not be accessed.
  2401  //
  2402  //   * EncryptionKeyDisabledException
  2403  //   The encryption key is disabled.
  2404  //
  2405  //   * EncryptionKeyNotFoundException
  2406  //   No encryption key was found.
  2407  //
  2408  //   * EncryptionKeyUnavailableException
  2409  //   The encryption key is not available.
  2410  //
  2411  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeletePullRequestApprovalRule
  2412  func (c *CodeCommit) DeletePullRequestApprovalRule(input *DeletePullRequestApprovalRuleInput) (*DeletePullRequestApprovalRuleOutput, error) {
  2413  	req, out := c.DeletePullRequestApprovalRuleRequest(input)
  2414  	return out, req.Send()
  2415  }
  2416  
  2417  // DeletePullRequestApprovalRuleWithContext is the same as DeletePullRequestApprovalRule with the addition of
  2418  // the ability to pass a context and additional request options.
  2419  //
  2420  // See DeletePullRequestApprovalRule for details on how to use this API operation.
  2421  //
  2422  // The context must be non-nil and will be used for request cancellation. If
  2423  // the context is nil a panic will occur. In the future the SDK may create
  2424  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2425  // for more information on using Contexts.
  2426  func (c *CodeCommit) DeletePullRequestApprovalRuleWithContext(ctx aws.Context, input *DeletePullRequestApprovalRuleInput, opts ...request.Option) (*DeletePullRequestApprovalRuleOutput, error) {
  2427  	req, out := c.DeletePullRequestApprovalRuleRequest(input)
  2428  	req.SetContext(ctx)
  2429  	req.ApplyOptions(opts...)
  2430  	return out, req.Send()
  2431  }
  2432  
  2433  const opDeleteRepository = "DeleteRepository"
  2434  
  2435  // DeleteRepositoryRequest generates a "aws/request.Request" representing the
  2436  // client's request for the DeleteRepository operation. The "output" return
  2437  // value will be populated with the request's response once the request completes
  2438  // successfully.
  2439  //
  2440  // Use "Send" method on the returned Request to send the API call to the service.
  2441  // the "output" return value is not valid until after Send returns without error.
  2442  //
  2443  // See DeleteRepository for more information on using the DeleteRepository
  2444  // API call, and error handling.
  2445  //
  2446  // This method is useful when you want to inject custom logic or configuration
  2447  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2448  //
  2449  //
  2450  //    // Example sending a request using the DeleteRepositoryRequest method.
  2451  //    req, resp := client.DeleteRepositoryRequest(params)
  2452  //
  2453  //    err := req.Send()
  2454  //    if err == nil { // resp is now filled
  2455  //        fmt.Println(resp)
  2456  //    }
  2457  //
  2458  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository
  2459  func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) {
  2460  	op := &request.Operation{
  2461  		Name:       opDeleteRepository,
  2462  		HTTPMethod: "POST",
  2463  		HTTPPath:   "/",
  2464  	}
  2465  
  2466  	if input == nil {
  2467  		input = &DeleteRepositoryInput{}
  2468  	}
  2469  
  2470  	output = &DeleteRepositoryOutput{}
  2471  	req = c.newRequest(op, input, output)
  2472  	return
  2473  }
  2474  
  2475  // DeleteRepository API operation for AWS CodeCommit.
  2476  //
  2477  // Deletes a repository. If a specified repository was already deleted, a null
  2478  // repository ID is returned.
  2479  //
  2480  // Deleting a repository also deletes all associated objects and metadata. After
  2481  // a repository is deleted, all future push calls to the deleted repository
  2482  // fail.
  2483  //
  2484  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2485  // with awserr.Error's Code and Message methods to get detailed information about
  2486  // the error.
  2487  //
  2488  // See the AWS API reference guide for AWS CodeCommit's
  2489  // API operation DeleteRepository for usage and error information.
  2490  //
  2491  // Returned Error Types:
  2492  //   * RepositoryNameRequiredException
  2493  //   A repository name is required, but was not specified.
  2494  //
  2495  //   * InvalidRepositoryNameException
  2496  //   A specified repository name is not valid.
  2497  //
  2498  //   This exception occurs only when a specified repository name is not valid.
  2499  //   Other exceptions occur when a required repository parameter is missing, or
  2500  //   when a specified repository does not exist.
  2501  //
  2502  //   * EncryptionIntegrityChecksFailedException
  2503  //   An encryption integrity check failed.
  2504  //
  2505  //   * EncryptionKeyAccessDeniedException
  2506  //   An encryption key could not be accessed.
  2507  //
  2508  //   * EncryptionKeyDisabledException
  2509  //   The encryption key is disabled.
  2510  //
  2511  //   * EncryptionKeyNotFoundException
  2512  //   No encryption key was found.
  2513  //
  2514  //   * EncryptionKeyUnavailableException
  2515  //   The encryption key is not available.
  2516  //
  2517  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository
  2518  func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) {
  2519  	req, out := c.DeleteRepositoryRequest(input)
  2520  	return out, req.Send()
  2521  }
  2522  
  2523  // DeleteRepositoryWithContext is the same as DeleteRepository with the addition of
  2524  // the ability to pass a context and additional request options.
  2525  //
  2526  // See DeleteRepository for details on how to use this API operation.
  2527  //
  2528  // The context must be non-nil and will be used for request cancellation. If
  2529  // the context is nil a panic will occur. In the future the SDK may create
  2530  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2531  // for more information on using Contexts.
  2532  func (c *CodeCommit) DeleteRepositoryWithContext(ctx aws.Context, input *DeleteRepositoryInput, opts ...request.Option) (*DeleteRepositoryOutput, error) {
  2533  	req, out := c.DeleteRepositoryRequest(input)
  2534  	req.SetContext(ctx)
  2535  	req.ApplyOptions(opts...)
  2536  	return out, req.Send()
  2537  }
  2538  
  2539  const opDescribeMergeConflicts = "DescribeMergeConflicts"
  2540  
  2541  // DescribeMergeConflictsRequest generates a "aws/request.Request" representing the
  2542  // client's request for the DescribeMergeConflicts operation. The "output" return
  2543  // value will be populated with the request's response once the request completes
  2544  // successfully.
  2545  //
  2546  // Use "Send" method on the returned Request to send the API call to the service.
  2547  // the "output" return value is not valid until after Send returns without error.
  2548  //
  2549  // See DescribeMergeConflicts for more information on using the DescribeMergeConflicts
  2550  // API call, and error handling.
  2551  //
  2552  // This method is useful when you want to inject custom logic or configuration
  2553  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2554  //
  2555  //
  2556  //    // Example sending a request using the DescribeMergeConflictsRequest method.
  2557  //    req, resp := client.DescribeMergeConflictsRequest(params)
  2558  //
  2559  //    err := req.Send()
  2560  //    if err == nil { // resp is now filled
  2561  //        fmt.Println(resp)
  2562  //    }
  2563  //
  2564  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribeMergeConflicts
  2565  func (c *CodeCommit) DescribeMergeConflictsRequest(input *DescribeMergeConflictsInput) (req *request.Request, output *DescribeMergeConflictsOutput) {
  2566  	op := &request.Operation{
  2567  		Name:       opDescribeMergeConflicts,
  2568  		HTTPMethod: "POST",
  2569  		HTTPPath:   "/",
  2570  		Paginator: &request.Paginator{
  2571  			InputTokens:     []string{"nextToken"},
  2572  			OutputTokens:    []string{"nextToken"},
  2573  			LimitToken:      "maxMergeHunks",
  2574  			TruncationToken: "",
  2575  		},
  2576  	}
  2577  
  2578  	if input == nil {
  2579  		input = &DescribeMergeConflictsInput{}
  2580  	}
  2581  
  2582  	output = &DescribeMergeConflictsOutput{}
  2583  	req = c.newRequest(op, input, output)
  2584  	return
  2585  }
  2586  
  2587  // DescribeMergeConflicts API operation for AWS CodeCommit.
  2588  //
  2589  // Returns information about one or more merge conflicts in the attempted merge
  2590  // of two commit specifiers using the squash or three-way merge strategy. If
  2591  // the merge option for the attempted merge is specified as FAST_FORWARD_MERGE,
  2592  // an exception is thrown.
  2593  //
  2594  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2595  // with awserr.Error's Code and Message methods to get detailed information about
  2596  // the error.
  2597  //
  2598  // See the AWS API reference guide for AWS CodeCommit's
  2599  // API operation DescribeMergeConflicts for usage and error information.
  2600  //
  2601  // Returned Error Types:
  2602  //   * RepositoryNameRequiredException
  2603  //   A repository name is required, but was not specified.
  2604  //
  2605  //   * InvalidRepositoryNameException
  2606  //   A specified repository name is not valid.
  2607  //
  2608  //   This exception occurs only when a specified repository name is not valid.
  2609  //   Other exceptions occur when a required repository parameter is missing, or
  2610  //   when a specified repository does not exist.
  2611  //
  2612  //   * RepositoryDoesNotExistException
  2613  //   The specified repository does not exist.
  2614  //
  2615  //   * MergeOptionRequiredException
  2616  //   A merge option or stategy is required, and none was provided.
  2617  //
  2618  //   * InvalidMergeOptionException
  2619  //   The specified merge option is not valid for this operation. Not all merge
  2620  //   strategies are supported for all operations.
  2621  //
  2622  //   * InvalidContinuationTokenException
  2623  //   The specified continuation token is not valid.
  2624  //
  2625  //   * CommitRequiredException
  2626  //   A commit was not specified.
  2627  //
  2628  //   * CommitDoesNotExistException
  2629  //   The specified commit does not exist or no commit was specified, and the specified
  2630  //   repository has no default branch.
  2631  //
  2632  //   * InvalidCommitException
  2633  //   The specified commit is not valid.
  2634  //
  2635  //   * TipsDivergenceExceededException
  2636  //   The divergence between the tips of the provided commit specifiers is too
  2637  //   great to determine whether there might be any merge conflicts. Locally compare
  2638  //   the specifiers using git diff or a diff tool.
  2639  //
  2640  //   * PathRequiredException
  2641  //   The folderPath for a location cannot be null.
  2642  //
  2643  //   * InvalidPathException
  2644  //   The specified path is not valid.
  2645  //
  2646  //   * FileDoesNotExistException
  2647  //   The specified file does not exist. Verify that you have used the correct
  2648  //   file name, full path, and extension.
  2649  //
  2650  //   * InvalidMaxMergeHunksException
  2651  //   The specified value for the number of merge hunks to return is not valid.
  2652  //
  2653  //   * InvalidConflictDetailLevelException
  2654  //   The specified conflict detail level is not valid.
  2655  //
  2656  //   * InvalidConflictResolutionStrategyException
  2657  //   The specified conflict resolution strategy is not valid.
  2658  //
  2659  //   * MaximumFileContentToLoadExceededException
  2660  //   The number of files to load exceeds the allowed limit.
  2661  //
  2662  //   * MaximumItemsToCompareExceededException
  2663  //   The number of items to compare between the source or destination branches
  2664  //   and the merge base has exceeded the maximum allowed.
  2665  //
  2666  //   * EncryptionIntegrityChecksFailedException
  2667  //   An encryption integrity check failed.
  2668  //
  2669  //   * EncryptionKeyAccessDeniedException
  2670  //   An encryption key could not be accessed.
  2671  //
  2672  //   * EncryptionKeyDisabledException
  2673  //   The encryption key is disabled.
  2674  //
  2675  //   * EncryptionKeyNotFoundException
  2676  //   No encryption key was found.
  2677  //
  2678  //   * EncryptionKeyUnavailableException
  2679  //   The encryption key is not available.
  2680  //
  2681  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribeMergeConflicts
  2682  func (c *CodeCommit) DescribeMergeConflicts(input *DescribeMergeConflictsInput) (*DescribeMergeConflictsOutput, error) {
  2683  	req, out := c.DescribeMergeConflictsRequest(input)
  2684  	return out, req.Send()
  2685  }
  2686  
  2687  // DescribeMergeConflictsWithContext is the same as DescribeMergeConflicts with the addition of
  2688  // the ability to pass a context and additional request options.
  2689  //
  2690  // See DescribeMergeConflicts for details on how to use this API operation.
  2691  //
  2692  // The context must be non-nil and will be used for request cancellation. If
  2693  // the context is nil a panic will occur. In the future the SDK may create
  2694  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2695  // for more information on using Contexts.
  2696  func (c *CodeCommit) DescribeMergeConflictsWithContext(ctx aws.Context, input *DescribeMergeConflictsInput, opts ...request.Option) (*DescribeMergeConflictsOutput, error) {
  2697  	req, out := c.DescribeMergeConflictsRequest(input)
  2698  	req.SetContext(ctx)
  2699  	req.ApplyOptions(opts...)
  2700  	return out, req.Send()
  2701  }
  2702  
  2703  // DescribeMergeConflictsPages iterates over the pages of a DescribeMergeConflicts operation,
  2704  // calling the "fn" function with the response data for each page. To stop
  2705  // iterating, return false from the fn function.
  2706  //
  2707  // See DescribeMergeConflicts method for more information on how to use this operation.
  2708  //
  2709  // Note: This operation can generate multiple requests to a service.
  2710  //
  2711  //    // Example iterating over at most 3 pages of a DescribeMergeConflicts operation.
  2712  //    pageNum := 0
  2713  //    err := client.DescribeMergeConflictsPages(params,
  2714  //        func(page *codecommit.DescribeMergeConflictsOutput, lastPage bool) bool {
  2715  //            pageNum++
  2716  //            fmt.Println(page)
  2717  //            return pageNum <= 3
  2718  //        })
  2719  //
  2720  func (c *CodeCommit) DescribeMergeConflictsPages(input *DescribeMergeConflictsInput, fn func(*DescribeMergeConflictsOutput, bool) bool) error {
  2721  	return c.DescribeMergeConflictsPagesWithContext(aws.BackgroundContext(), input, fn)
  2722  }
  2723  
  2724  // DescribeMergeConflictsPagesWithContext same as DescribeMergeConflictsPages except
  2725  // it takes a Context and allows setting request options on the pages.
  2726  //
  2727  // The context must be non-nil and will be used for request cancellation. If
  2728  // the context is nil a panic will occur. In the future the SDK may create
  2729  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2730  // for more information on using Contexts.
  2731  func (c *CodeCommit) DescribeMergeConflictsPagesWithContext(ctx aws.Context, input *DescribeMergeConflictsInput, fn func(*DescribeMergeConflictsOutput, bool) bool, opts ...request.Option) error {
  2732  	p := request.Pagination{
  2733  		NewRequest: func() (*request.Request, error) {
  2734  			var inCpy *DescribeMergeConflictsInput
  2735  			if input != nil {
  2736  				tmp := *input
  2737  				inCpy = &tmp
  2738  			}
  2739  			req, _ := c.DescribeMergeConflictsRequest(inCpy)
  2740  			req.SetContext(ctx)
  2741  			req.ApplyOptions(opts...)
  2742  			return req, nil
  2743  		},
  2744  	}
  2745  
  2746  	for p.Next() {
  2747  		if !fn(p.Page().(*DescribeMergeConflictsOutput), !p.HasNextPage()) {
  2748  			break
  2749  		}
  2750  	}
  2751  
  2752  	return p.Err()
  2753  }
  2754  
  2755  const opDescribePullRequestEvents = "DescribePullRequestEvents"
  2756  
  2757  // DescribePullRequestEventsRequest generates a "aws/request.Request" representing the
  2758  // client's request for the DescribePullRequestEvents operation. The "output" return
  2759  // value will be populated with the request's response once the request completes
  2760  // successfully.
  2761  //
  2762  // Use "Send" method on the returned Request to send the API call to the service.
  2763  // the "output" return value is not valid until after Send returns without error.
  2764  //
  2765  // See DescribePullRequestEvents for more information on using the DescribePullRequestEvents
  2766  // API call, and error handling.
  2767  //
  2768  // This method is useful when you want to inject custom logic or configuration
  2769  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2770  //
  2771  //
  2772  //    // Example sending a request using the DescribePullRequestEventsRequest method.
  2773  //    req, resp := client.DescribePullRequestEventsRequest(params)
  2774  //
  2775  //    err := req.Send()
  2776  //    if err == nil { // resp is now filled
  2777  //        fmt.Println(resp)
  2778  //    }
  2779  //
  2780  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents
  2781  func (c *CodeCommit) DescribePullRequestEventsRequest(input *DescribePullRequestEventsInput) (req *request.Request, output *DescribePullRequestEventsOutput) {
  2782  	op := &request.Operation{
  2783  		Name:       opDescribePullRequestEvents,
  2784  		HTTPMethod: "POST",
  2785  		HTTPPath:   "/",
  2786  		Paginator: &request.Paginator{
  2787  			InputTokens:     []string{"nextToken"},
  2788  			OutputTokens:    []string{"nextToken"},
  2789  			LimitToken:      "maxResults",
  2790  			TruncationToken: "",
  2791  		},
  2792  	}
  2793  
  2794  	if input == nil {
  2795  		input = &DescribePullRequestEventsInput{}
  2796  	}
  2797  
  2798  	output = &DescribePullRequestEventsOutput{}
  2799  	req = c.newRequest(op, input, output)
  2800  	return
  2801  }
  2802  
  2803  // DescribePullRequestEvents API operation for AWS CodeCommit.
  2804  //
  2805  // Returns information about one or more pull request events.
  2806  //
  2807  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2808  // with awserr.Error's Code and Message methods to get detailed information about
  2809  // the error.
  2810  //
  2811  // See the AWS API reference guide for AWS CodeCommit's
  2812  // API operation DescribePullRequestEvents for usage and error information.
  2813  //
  2814  // Returned Error Types:
  2815  //   * PullRequestDoesNotExistException
  2816  //   The pull request ID could not be found. Make sure that you have specified
  2817  //   the correct repository name and pull request ID, and then try again.
  2818  //
  2819  //   * InvalidPullRequestIdException
  2820  //   The pull request ID is not valid. Make sure that you have provided the full
  2821  //   ID and that the pull request is in the specified repository, and then try
  2822  //   again.
  2823  //
  2824  //   * PullRequestIdRequiredException
  2825  //   A pull request ID is required, but none was provided.
  2826  //
  2827  //   * InvalidPullRequestEventTypeException
  2828  //   The pull request event type is not valid.
  2829  //
  2830  //   * InvalidActorArnException
  2831  //   The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
  2832  //   the full ARN for the user who initiated the change for the pull request,
  2833  //   and then try again.
  2834  //
  2835  //   * ActorDoesNotExistException
  2836  //   The specified Amazon Resource Name (ARN) does not exist in the AWS account.
  2837  //
  2838  //   * InvalidMaxResultsException
  2839  //   The specified number of maximum results is not valid.
  2840  //
  2841  //   * InvalidContinuationTokenException
  2842  //   The specified continuation token is not valid.
  2843  //
  2844  //   * EncryptionIntegrityChecksFailedException
  2845  //   An encryption integrity check failed.
  2846  //
  2847  //   * EncryptionKeyAccessDeniedException
  2848  //   An encryption key could not be accessed.
  2849  //
  2850  //   * EncryptionKeyDisabledException
  2851  //   The encryption key is disabled.
  2852  //
  2853  //   * EncryptionKeyNotFoundException
  2854  //   No encryption key was found.
  2855  //
  2856  //   * EncryptionKeyUnavailableException
  2857  //   The encryption key is not available.
  2858  //
  2859  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents
  2860  func (c *CodeCommit) DescribePullRequestEvents(input *DescribePullRequestEventsInput) (*DescribePullRequestEventsOutput, error) {
  2861  	req, out := c.DescribePullRequestEventsRequest(input)
  2862  	return out, req.Send()
  2863  }
  2864  
  2865  // DescribePullRequestEventsWithContext is the same as DescribePullRequestEvents with the addition of
  2866  // the ability to pass a context and additional request options.
  2867  //
  2868  // See DescribePullRequestEvents 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 *CodeCommit) DescribePullRequestEventsWithContext(ctx aws.Context, input *DescribePullRequestEventsInput, opts ...request.Option) (*DescribePullRequestEventsOutput, error) {
  2875  	req, out := c.DescribePullRequestEventsRequest(input)
  2876  	req.SetContext(ctx)
  2877  	req.ApplyOptions(opts...)
  2878  	return out, req.Send()
  2879  }
  2880  
  2881  // DescribePullRequestEventsPages iterates over the pages of a DescribePullRequestEvents operation,
  2882  // calling the "fn" function with the response data for each page. To stop
  2883  // iterating, return false from the fn function.
  2884  //
  2885  // See DescribePullRequestEvents method for more information on how to use this operation.
  2886  //
  2887  // Note: This operation can generate multiple requests to a service.
  2888  //
  2889  //    // Example iterating over at most 3 pages of a DescribePullRequestEvents operation.
  2890  //    pageNum := 0
  2891  //    err := client.DescribePullRequestEventsPages(params,
  2892  //        func(page *codecommit.DescribePullRequestEventsOutput, lastPage bool) bool {
  2893  //            pageNum++
  2894  //            fmt.Println(page)
  2895  //            return pageNum <= 3
  2896  //        })
  2897  //
  2898  func (c *CodeCommit) DescribePullRequestEventsPages(input *DescribePullRequestEventsInput, fn func(*DescribePullRequestEventsOutput, bool) bool) error {
  2899  	return c.DescribePullRequestEventsPagesWithContext(aws.BackgroundContext(), input, fn)
  2900  }
  2901  
  2902  // DescribePullRequestEventsPagesWithContext same as DescribePullRequestEventsPages except
  2903  // it takes a Context and allows setting request options on the pages.
  2904  //
  2905  // The context must be non-nil and will be used for request cancellation. If
  2906  // the context is nil a panic will occur. In the future the SDK may create
  2907  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2908  // for more information on using Contexts.
  2909  func (c *CodeCommit) DescribePullRequestEventsPagesWithContext(ctx aws.Context, input *DescribePullRequestEventsInput, fn func(*DescribePullRequestEventsOutput, bool) bool, opts ...request.Option) error {
  2910  	p := request.Pagination{
  2911  		NewRequest: func() (*request.Request, error) {
  2912  			var inCpy *DescribePullRequestEventsInput
  2913  			if input != nil {
  2914  				tmp := *input
  2915  				inCpy = &tmp
  2916  			}
  2917  			req, _ := c.DescribePullRequestEventsRequest(inCpy)
  2918  			req.SetContext(ctx)
  2919  			req.ApplyOptions(opts...)
  2920  			return req, nil
  2921  		},
  2922  	}
  2923  
  2924  	for p.Next() {
  2925  		if !fn(p.Page().(*DescribePullRequestEventsOutput), !p.HasNextPage()) {
  2926  			break
  2927  		}
  2928  	}
  2929  
  2930  	return p.Err()
  2931  }
  2932  
  2933  const opDisassociateApprovalRuleTemplateFromRepository = "DisassociateApprovalRuleTemplateFromRepository"
  2934  
  2935  // DisassociateApprovalRuleTemplateFromRepositoryRequest generates a "aws/request.Request" representing the
  2936  // client's request for the DisassociateApprovalRuleTemplateFromRepository operation. The "output" return
  2937  // value will be populated with the request's response once the request completes
  2938  // successfully.
  2939  //
  2940  // Use "Send" method on the returned Request to send the API call to the service.
  2941  // the "output" return value is not valid until after Send returns without error.
  2942  //
  2943  // See DisassociateApprovalRuleTemplateFromRepository for more information on using the DisassociateApprovalRuleTemplateFromRepository
  2944  // API call, and error handling.
  2945  //
  2946  // This method is useful when you want to inject custom logic or configuration
  2947  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2948  //
  2949  //
  2950  //    // Example sending a request using the DisassociateApprovalRuleTemplateFromRepositoryRequest method.
  2951  //    req, resp := client.DisassociateApprovalRuleTemplateFromRepositoryRequest(params)
  2952  //
  2953  //    err := req.Send()
  2954  //    if err == nil { // resp is now filled
  2955  //        fmt.Println(resp)
  2956  //    }
  2957  //
  2958  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DisassociateApprovalRuleTemplateFromRepository
  2959  func (c *CodeCommit) DisassociateApprovalRuleTemplateFromRepositoryRequest(input *DisassociateApprovalRuleTemplateFromRepositoryInput) (req *request.Request, output *DisassociateApprovalRuleTemplateFromRepositoryOutput) {
  2960  	op := &request.Operation{
  2961  		Name:       opDisassociateApprovalRuleTemplateFromRepository,
  2962  		HTTPMethod: "POST",
  2963  		HTTPPath:   "/",
  2964  	}
  2965  
  2966  	if input == nil {
  2967  		input = &DisassociateApprovalRuleTemplateFromRepositoryInput{}
  2968  	}
  2969  
  2970  	output = &DisassociateApprovalRuleTemplateFromRepositoryOutput{}
  2971  	req = c.newRequest(op, input, output)
  2972  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2973  	return
  2974  }
  2975  
  2976  // DisassociateApprovalRuleTemplateFromRepository API operation for AWS CodeCommit.
  2977  //
  2978  // Removes the association between a template and a repository so that approval
  2979  // rules based on the template are not automatically created when pull requests
  2980  // are created in the specified repository. This does not delete any approval
  2981  // rules previously created for pull requests through the template association.
  2982  //
  2983  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2984  // with awserr.Error's Code and Message methods to get detailed information about
  2985  // the error.
  2986  //
  2987  // See the AWS API reference guide for AWS CodeCommit's
  2988  // API operation DisassociateApprovalRuleTemplateFromRepository for usage and error information.
  2989  //
  2990  // Returned Error Types:
  2991  //   * ApprovalRuleTemplateNameRequiredException
  2992  //   An approval rule template name is required, but was not specified.
  2993  //
  2994  //   * InvalidApprovalRuleTemplateNameException
  2995  //   The name of the approval rule template is not valid. Template names must
  2996  //   be between 1 and 100 valid characters in length. For more information about
  2997  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  2998  //
  2999  //   * ApprovalRuleTemplateDoesNotExistException
  3000  //   The specified approval rule template does not exist. Verify that the name
  3001  //   is correct and that you are signed in to the AWS Region where the template
  3002  //   was created, and then try again.
  3003  //
  3004  //   * RepositoryNameRequiredException
  3005  //   A repository name is required, but was not specified.
  3006  //
  3007  //   * InvalidRepositoryNameException
  3008  //   A specified repository name is not valid.
  3009  //
  3010  //   This exception occurs only when a specified repository name is not valid.
  3011  //   Other exceptions occur when a required repository parameter is missing, or
  3012  //   when a specified repository does not exist.
  3013  //
  3014  //   * RepositoryDoesNotExistException
  3015  //   The specified repository does not exist.
  3016  //
  3017  //   * EncryptionIntegrityChecksFailedException
  3018  //   An encryption integrity check failed.
  3019  //
  3020  //   * EncryptionKeyAccessDeniedException
  3021  //   An encryption key could not be accessed.
  3022  //
  3023  //   * EncryptionKeyDisabledException
  3024  //   The encryption key is disabled.
  3025  //
  3026  //   * EncryptionKeyNotFoundException
  3027  //   No encryption key was found.
  3028  //
  3029  //   * EncryptionKeyUnavailableException
  3030  //   The encryption key is not available.
  3031  //
  3032  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DisassociateApprovalRuleTemplateFromRepository
  3033  func (c *CodeCommit) DisassociateApprovalRuleTemplateFromRepository(input *DisassociateApprovalRuleTemplateFromRepositoryInput) (*DisassociateApprovalRuleTemplateFromRepositoryOutput, error) {
  3034  	req, out := c.DisassociateApprovalRuleTemplateFromRepositoryRequest(input)
  3035  	return out, req.Send()
  3036  }
  3037  
  3038  // DisassociateApprovalRuleTemplateFromRepositoryWithContext is the same as DisassociateApprovalRuleTemplateFromRepository with the addition of
  3039  // the ability to pass a context and additional request options.
  3040  //
  3041  // See DisassociateApprovalRuleTemplateFromRepository for details on how to use this API operation.
  3042  //
  3043  // The context must be non-nil and will be used for request cancellation. If
  3044  // the context is nil a panic will occur. In the future the SDK may create
  3045  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3046  // for more information on using Contexts.
  3047  func (c *CodeCommit) DisassociateApprovalRuleTemplateFromRepositoryWithContext(ctx aws.Context, input *DisassociateApprovalRuleTemplateFromRepositoryInput, opts ...request.Option) (*DisassociateApprovalRuleTemplateFromRepositoryOutput, error) {
  3048  	req, out := c.DisassociateApprovalRuleTemplateFromRepositoryRequest(input)
  3049  	req.SetContext(ctx)
  3050  	req.ApplyOptions(opts...)
  3051  	return out, req.Send()
  3052  }
  3053  
  3054  const opEvaluatePullRequestApprovalRules = "EvaluatePullRequestApprovalRules"
  3055  
  3056  // EvaluatePullRequestApprovalRulesRequest generates a "aws/request.Request" representing the
  3057  // client's request for the EvaluatePullRequestApprovalRules operation. The "output" return
  3058  // value will be populated with the request's response once the request completes
  3059  // successfully.
  3060  //
  3061  // Use "Send" method on the returned Request to send the API call to the service.
  3062  // the "output" return value is not valid until after Send returns without error.
  3063  //
  3064  // See EvaluatePullRequestApprovalRules for more information on using the EvaluatePullRequestApprovalRules
  3065  // API call, and error handling.
  3066  //
  3067  // This method is useful when you want to inject custom logic or configuration
  3068  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3069  //
  3070  //
  3071  //    // Example sending a request using the EvaluatePullRequestApprovalRulesRequest method.
  3072  //    req, resp := client.EvaluatePullRequestApprovalRulesRequest(params)
  3073  //
  3074  //    err := req.Send()
  3075  //    if err == nil { // resp is now filled
  3076  //        fmt.Println(resp)
  3077  //    }
  3078  //
  3079  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EvaluatePullRequestApprovalRules
  3080  func (c *CodeCommit) EvaluatePullRequestApprovalRulesRequest(input *EvaluatePullRequestApprovalRulesInput) (req *request.Request, output *EvaluatePullRequestApprovalRulesOutput) {
  3081  	op := &request.Operation{
  3082  		Name:       opEvaluatePullRequestApprovalRules,
  3083  		HTTPMethod: "POST",
  3084  		HTTPPath:   "/",
  3085  	}
  3086  
  3087  	if input == nil {
  3088  		input = &EvaluatePullRequestApprovalRulesInput{}
  3089  	}
  3090  
  3091  	output = &EvaluatePullRequestApprovalRulesOutput{}
  3092  	req = c.newRequest(op, input, output)
  3093  	return
  3094  }
  3095  
  3096  // EvaluatePullRequestApprovalRules API operation for AWS CodeCommit.
  3097  //
  3098  // Evaluates whether a pull request has met all the conditions specified in
  3099  // its associated approval rules.
  3100  //
  3101  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3102  // with awserr.Error's Code and Message methods to get detailed information about
  3103  // the error.
  3104  //
  3105  // See the AWS API reference guide for AWS CodeCommit's
  3106  // API operation EvaluatePullRequestApprovalRules for usage and error information.
  3107  //
  3108  // Returned Error Types:
  3109  //   * PullRequestDoesNotExistException
  3110  //   The pull request ID could not be found. Make sure that you have specified
  3111  //   the correct repository name and pull request ID, and then try again.
  3112  //
  3113  //   * InvalidPullRequestIdException
  3114  //   The pull request ID is not valid. Make sure that you have provided the full
  3115  //   ID and that the pull request is in the specified repository, and then try
  3116  //   again.
  3117  //
  3118  //   * PullRequestIdRequiredException
  3119  //   A pull request ID is required, but none was provided.
  3120  //
  3121  //   * InvalidRevisionIdException
  3122  //   The revision ID is not valid. Use GetPullRequest to determine the value.
  3123  //
  3124  //   * RevisionIdRequiredException
  3125  //   A revision ID is required, but was not provided.
  3126  //
  3127  //   * RevisionNotCurrentException
  3128  //   The revision ID provided in the request does not match the current revision
  3129  //   ID. Use GetPullRequest to retrieve the current revision ID.
  3130  //
  3131  //   * EncryptionIntegrityChecksFailedException
  3132  //   An encryption integrity check failed.
  3133  //
  3134  //   * EncryptionKeyAccessDeniedException
  3135  //   An encryption key could not be accessed.
  3136  //
  3137  //   * EncryptionKeyDisabledException
  3138  //   The encryption key is disabled.
  3139  //
  3140  //   * EncryptionKeyNotFoundException
  3141  //   No encryption key was found.
  3142  //
  3143  //   * EncryptionKeyUnavailableException
  3144  //   The encryption key is not available.
  3145  //
  3146  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EvaluatePullRequestApprovalRules
  3147  func (c *CodeCommit) EvaluatePullRequestApprovalRules(input *EvaluatePullRequestApprovalRulesInput) (*EvaluatePullRequestApprovalRulesOutput, error) {
  3148  	req, out := c.EvaluatePullRequestApprovalRulesRequest(input)
  3149  	return out, req.Send()
  3150  }
  3151  
  3152  // EvaluatePullRequestApprovalRulesWithContext is the same as EvaluatePullRequestApprovalRules with the addition of
  3153  // the ability to pass a context and additional request options.
  3154  //
  3155  // See EvaluatePullRequestApprovalRules for details on how to use this API operation.
  3156  //
  3157  // The context must be non-nil and will be used for request cancellation. If
  3158  // the context is nil a panic will occur. In the future the SDK may create
  3159  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3160  // for more information on using Contexts.
  3161  func (c *CodeCommit) EvaluatePullRequestApprovalRulesWithContext(ctx aws.Context, input *EvaluatePullRequestApprovalRulesInput, opts ...request.Option) (*EvaluatePullRequestApprovalRulesOutput, error) {
  3162  	req, out := c.EvaluatePullRequestApprovalRulesRequest(input)
  3163  	req.SetContext(ctx)
  3164  	req.ApplyOptions(opts...)
  3165  	return out, req.Send()
  3166  }
  3167  
  3168  const opGetApprovalRuleTemplate = "GetApprovalRuleTemplate"
  3169  
  3170  // GetApprovalRuleTemplateRequest generates a "aws/request.Request" representing the
  3171  // client's request for the GetApprovalRuleTemplate operation. The "output" return
  3172  // value will be populated with the request's response once the request completes
  3173  // successfully.
  3174  //
  3175  // Use "Send" method on the returned Request to send the API call to the service.
  3176  // the "output" return value is not valid until after Send returns without error.
  3177  //
  3178  // See GetApprovalRuleTemplate for more information on using the GetApprovalRuleTemplate
  3179  // API call, and error handling.
  3180  //
  3181  // This method is useful when you want to inject custom logic or configuration
  3182  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3183  //
  3184  //
  3185  //    // Example sending a request using the GetApprovalRuleTemplateRequest method.
  3186  //    req, resp := client.GetApprovalRuleTemplateRequest(params)
  3187  //
  3188  //    err := req.Send()
  3189  //    if err == nil { // resp is now filled
  3190  //        fmt.Println(resp)
  3191  //    }
  3192  //
  3193  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetApprovalRuleTemplate
  3194  func (c *CodeCommit) GetApprovalRuleTemplateRequest(input *GetApprovalRuleTemplateInput) (req *request.Request, output *GetApprovalRuleTemplateOutput) {
  3195  	op := &request.Operation{
  3196  		Name:       opGetApprovalRuleTemplate,
  3197  		HTTPMethod: "POST",
  3198  		HTTPPath:   "/",
  3199  	}
  3200  
  3201  	if input == nil {
  3202  		input = &GetApprovalRuleTemplateInput{}
  3203  	}
  3204  
  3205  	output = &GetApprovalRuleTemplateOutput{}
  3206  	req = c.newRequest(op, input, output)
  3207  	return
  3208  }
  3209  
  3210  // GetApprovalRuleTemplate API operation for AWS CodeCommit.
  3211  //
  3212  // Returns information about a specified approval rule template.
  3213  //
  3214  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3215  // with awserr.Error's Code and Message methods to get detailed information about
  3216  // the error.
  3217  //
  3218  // See the AWS API reference guide for AWS CodeCommit's
  3219  // API operation GetApprovalRuleTemplate for usage and error information.
  3220  //
  3221  // Returned Error Types:
  3222  //   * ApprovalRuleTemplateNameRequiredException
  3223  //   An approval rule template name is required, but was not specified.
  3224  //
  3225  //   * InvalidApprovalRuleTemplateNameException
  3226  //   The name of the approval rule template is not valid. Template names must
  3227  //   be between 1 and 100 valid characters in length. For more information about
  3228  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  3229  //
  3230  //   * ApprovalRuleTemplateDoesNotExistException
  3231  //   The specified approval rule template does not exist. Verify that the name
  3232  //   is correct and that you are signed in to the AWS Region where the template
  3233  //   was created, and then try again.
  3234  //
  3235  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetApprovalRuleTemplate
  3236  func (c *CodeCommit) GetApprovalRuleTemplate(input *GetApprovalRuleTemplateInput) (*GetApprovalRuleTemplateOutput, error) {
  3237  	req, out := c.GetApprovalRuleTemplateRequest(input)
  3238  	return out, req.Send()
  3239  }
  3240  
  3241  // GetApprovalRuleTemplateWithContext is the same as GetApprovalRuleTemplate with the addition of
  3242  // the ability to pass a context and additional request options.
  3243  //
  3244  // See GetApprovalRuleTemplate for details on how to use this API operation.
  3245  //
  3246  // The context must be non-nil and will be used for request cancellation. If
  3247  // the context is nil a panic will occur. In the future the SDK may create
  3248  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3249  // for more information on using Contexts.
  3250  func (c *CodeCommit) GetApprovalRuleTemplateWithContext(ctx aws.Context, input *GetApprovalRuleTemplateInput, opts ...request.Option) (*GetApprovalRuleTemplateOutput, error) {
  3251  	req, out := c.GetApprovalRuleTemplateRequest(input)
  3252  	req.SetContext(ctx)
  3253  	req.ApplyOptions(opts...)
  3254  	return out, req.Send()
  3255  }
  3256  
  3257  const opGetBlob = "GetBlob"
  3258  
  3259  // GetBlobRequest generates a "aws/request.Request" representing the
  3260  // client's request for the GetBlob operation. The "output" return
  3261  // value will be populated with the request's response once the request completes
  3262  // successfully.
  3263  //
  3264  // Use "Send" method on the returned Request to send the API call to the service.
  3265  // the "output" return value is not valid until after Send returns without error.
  3266  //
  3267  // See GetBlob for more information on using the GetBlob
  3268  // API call, and error handling.
  3269  //
  3270  // This method is useful when you want to inject custom logic or configuration
  3271  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3272  //
  3273  //
  3274  //    // Example sending a request using the GetBlobRequest method.
  3275  //    req, resp := client.GetBlobRequest(params)
  3276  //
  3277  //    err := req.Send()
  3278  //    if err == nil { // resp is now filled
  3279  //        fmt.Println(resp)
  3280  //    }
  3281  //
  3282  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob
  3283  func (c *CodeCommit) GetBlobRequest(input *GetBlobInput) (req *request.Request, output *GetBlobOutput) {
  3284  	op := &request.Operation{
  3285  		Name:       opGetBlob,
  3286  		HTTPMethod: "POST",
  3287  		HTTPPath:   "/",
  3288  	}
  3289  
  3290  	if input == nil {
  3291  		input = &GetBlobInput{}
  3292  	}
  3293  
  3294  	output = &GetBlobOutput{}
  3295  	req = c.newRequest(op, input, output)
  3296  	return
  3297  }
  3298  
  3299  // GetBlob API operation for AWS CodeCommit.
  3300  //
  3301  // Returns the base-64 encoded content of an individual blob in a repository.
  3302  //
  3303  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3304  // with awserr.Error's Code and Message methods to get detailed information about
  3305  // the error.
  3306  //
  3307  // See the AWS API reference guide for AWS CodeCommit's
  3308  // API operation GetBlob for usage and error information.
  3309  //
  3310  // Returned Error Types:
  3311  //   * RepositoryNameRequiredException
  3312  //   A repository name is required, but was not specified.
  3313  //
  3314  //   * InvalidRepositoryNameException
  3315  //   A specified repository name is not valid.
  3316  //
  3317  //   This exception occurs only when a specified repository name is not valid.
  3318  //   Other exceptions occur when a required repository parameter is missing, or
  3319  //   when a specified repository does not exist.
  3320  //
  3321  //   * RepositoryDoesNotExistException
  3322  //   The specified repository does not exist.
  3323  //
  3324  //   * BlobIdRequiredException
  3325  //   A blob ID is required, but was not specified.
  3326  //
  3327  //   * InvalidBlobIdException
  3328  //   The specified blob is not valid.
  3329  //
  3330  //   * BlobIdDoesNotExistException
  3331  //   The specified blob does not exist.
  3332  //
  3333  //   * EncryptionIntegrityChecksFailedException
  3334  //   An encryption integrity check failed.
  3335  //
  3336  //   * EncryptionKeyAccessDeniedException
  3337  //   An encryption key could not be accessed.
  3338  //
  3339  //   * EncryptionKeyDisabledException
  3340  //   The encryption key is disabled.
  3341  //
  3342  //   * EncryptionKeyNotFoundException
  3343  //   No encryption key was found.
  3344  //
  3345  //   * EncryptionKeyUnavailableException
  3346  //   The encryption key is not available.
  3347  //
  3348  //   * FileTooLargeException
  3349  //   The specified file exceeds the file size limit for AWS CodeCommit. For more
  3350  //   information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
  3351  //   (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  3352  //
  3353  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob
  3354  func (c *CodeCommit) GetBlob(input *GetBlobInput) (*GetBlobOutput, error) {
  3355  	req, out := c.GetBlobRequest(input)
  3356  	return out, req.Send()
  3357  }
  3358  
  3359  // GetBlobWithContext is the same as GetBlob with the addition of
  3360  // the ability to pass a context and additional request options.
  3361  //
  3362  // See GetBlob for details on how to use this API operation.
  3363  //
  3364  // The context must be non-nil and will be used for request cancellation. If
  3365  // the context is nil a panic will occur. In the future the SDK may create
  3366  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3367  // for more information on using Contexts.
  3368  func (c *CodeCommit) GetBlobWithContext(ctx aws.Context, input *GetBlobInput, opts ...request.Option) (*GetBlobOutput, error) {
  3369  	req, out := c.GetBlobRequest(input)
  3370  	req.SetContext(ctx)
  3371  	req.ApplyOptions(opts...)
  3372  	return out, req.Send()
  3373  }
  3374  
  3375  const opGetBranch = "GetBranch"
  3376  
  3377  // GetBranchRequest generates a "aws/request.Request" representing the
  3378  // client's request for the GetBranch operation. The "output" return
  3379  // value will be populated with the request's response once the request completes
  3380  // successfully.
  3381  //
  3382  // Use "Send" method on the returned Request to send the API call to the service.
  3383  // the "output" return value is not valid until after Send returns without error.
  3384  //
  3385  // See GetBranch for more information on using the GetBranch
  3386  // API call, and error handling.
  3387  //
  3388  // This method is useful when you want to inject custom logic or configuration
  3389  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3390  //
  3391  //
  3392  //    // Example sending a request using the GetBranchRequest method.
  3393  //    req, resp := client.GetBranchRequest(params)
  3394  //
  3395  //    err := req.Send()
  3396  //    if err == nil { // resp is now filled
  3397  //        fmt.Println(resp)
  3398  //    }
  3399  //
  3400  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch
  3401  func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) {
  3402  	op := &request.Operation{
  3403  		Name:       opGetBranch,
  3404  		HTTPMethod: "POST",
  3405  		HTTPPath:   "/",
  3406  	}
  3407  
  3408  	if input == nil {
  3409  		input = &GetBranchInput{}
  3410  	}
  3411  
  3412  	output = &GetBranchOutput{}
  3413  	req = c.newRequest(op, input, output)
  3414  	return
  3415  }
  3416  
  3417  // GetBranch API operation for AWS CodeCommit.
  3418  //
  3419  // Returns information about a repository branch, including its name and the
  3420  // last commit ID.
  3421  //
  3422  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3423  // with awserr.Error's Code and Message methods to get detailed information about
  3424  // the error.
  3425  //
  3426  // See the AWS API reference guide for AWS CodeCommit's
  3427  // API operation GetBranch for usage and error information.
  3428  //
  3429  // Returned Error Types:
  3430  //   * RepositoryNameRequiredException
  3431  //   A repository name is required, but was not specified.
  3432  //
  3433  //   * RepositoryDoesNotExistException
  3434  //   The specified repository does not exist.
  3435  //
  3436  //   * InvalidRepositoryNameException
  3437  //   A specified repository name is not valid.
  3438  //
  3439  //   This exception occurs only when a specified repository name is not valid.
  3440  //   Other exceptions occur when a required repository parameter is missing, or
  3441  //   when a specified repository does not exist.
  3442  //
  3443  //   * BranchNameRequiredException
  3444  //   A branch name is required, but was not specified.
  3445  //
  3446  //   * InvalidBranchNameException
  3447  //   The specified reference name is not valid.
  3448  //
  3449  //   * BranchDoesNotExistException
  3450  //   The specified branch does not exist.
  3451  //
  3452  //   * EncryptionIntegrityChecksFailedException
  3453  //   An encryption integrity check failed.
  3454  //
  3455  //   * EncryptionKeyAccessDeniedException
  3456  //   An encryption key could not be accessed.
  3457  //
  3458  //   * EncryptionKeyDisabledException
  3459  //   The encryption key is disabled.
  3460  //
  3461  //   * EncryptionKeyNotFoundException
  3462  //   No encryption key was found.
  3463  //
  3464  //   * EncryptionKeyUnavailableException
  3465  //   The encryption key is not available.
  3466  //
  3467  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch
  3468  func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) {
  3469  	req, out := c.GetBranchRequest(input)
  3470  	return out, req.Send()
  3471  }
  3472  
  3473  // GetBranchWithContext is the same as GetBranch with the addition of
  3474  // the ability to pass a context and additional request options.
  3475  //
  3476  // See GetBranch for details on how to use this API operation.
  3477  //
  3478  // The context must be non-nil and will be used for request cancellation. If
  3479  // the context is nil a panic will occur. In the future the SDK may create
  3480  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3481  // for more information on using Contexts.
  3482  func (c *CodeCommit) GetBranchWithContext(ctx aws.Context, input *GetBranchInput, opts ...request.Option) (*GetBranchOutput, error) {
  3483  	req, out := c.GetBranchRequest(input)
  3484  	req.SetContext(ctx)
  3485  	req.ApplyOptions(opts...)
  3486  	return out, req.Send()
  3487  }
  3488  
  3489  const opGetComment = "GetComment"
  3490  
  3491  // GetCommentRequest generates a "aws/request.Request" representing the
  3492  // client's request for the GetComment operation. The "output" return
  3493  // value will be populated with the request's response once the request completes
  3494  // successfully.
  3495  //
  3496  // Use "Send" method on the returned Request to send the API call to the service.
  3497  // the "output" return value is not valid until after Send returns without error.
  3498  //
  3499  // See GetComment for more information on using the GetComment
  3500  // API call, and error handling.
  3501  //
  3502  // This method is useful when you want to inject custom logic or configuration
  3503  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3504  //
  3505  //
  3506  //    // Example sending a request using the GetCommentRequest method.
  3507  //    req, resp := client.GetCommentRequest(params)
  3508  //
  3509  //    err := req.Send()
  3510  //    if err == nil { // resp is now filled
  3511  //        fmt.Println(resp)
  3512  //    }
  3513  //
  3514  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment
  3515  func (c *CodeCommit) GetCommentRequest(input *GetCommentInput) (req *request.Request, output *GetCommentOutput) {
  3516  	op := &request.Operation{
  3517  		Name:       opGetComment,
  3518  		HTTPMethod: "POST",
  3519  		HTTPPath:   "/",
  3520  	}
  3521  
  3522  	if input == nil {
  3523  		input = &GetCommentInput{}
  3524  	}
  3525  
  3526  	output = &GetCommentOutput{}
  3527  	req = c.newRequest(op, input, output)
  3528  	return
  3529  }
  3530  
  3531  // GetComment API operation for AWS CodeCommit.
  3532  //
  3533  // Returns the content of a comment made on a change, file, or commit in a repository.
  3534  //
  3535  // Reaction counts might include numbers from user identities who were deleted
  3536  // after the reaction was made. For a count of reactions from active identities,
  3537  // use GetCommentReactions.
  3538  //
  3539  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3540  // with awserr.Error's Code and Message methods to get detailed information about
  3541  // the error.
  3542  //
  3543  // See the AWS API reference guide for AWS CodeCommit's
  3544  // API operation GetComment for usage and error information.
  3545  //
  3546  // Returned Error Types:
  3547  //   * CommentDoesNotExistException
  3548  //   No comment exists with the provided ID. Verify that you have used the correct
  3549  //   ID, and then try again.
  3550  //
  3551  //   * CommentDeletedException
  3552  //   This comment has already been deleted. You cannot edit or delete a deleted
  3553  //   comment.
  3554  //
  3555  //   * CommentIdRequiredException
  3556  //   The comment ID is missing or null. A comment ID is required.
  3557  //
  3558  //   * InvalidCommentIdException
  3559  //   The comment ID is not in a valid format. Make sure that you have provided
  3560  //   the full comment ID.
  3561  //
  3562  //   * EncryptionIntegrityChecksFailedException
  3563  //   An encryption integrity check failed.
  3564  //
  3565  //   * EncryptionKeyAccessDeniedException
  3566  //   An encryption key could not be accessed.
  3567  //
  3568  //   * EncryptionKeyDisabledException
  3569  //   The encryption key is disabled.
  3570  //
  3571  //   * EncryptionKeyNotFoundException
  3572  //   No encryption key was found.
  3573  //
  3574  //   * EncryptionKeyUnavailableException
  3575  //   The encryption key is not available.
  3576  //
  3577  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment
  3578  func (c *CodeCommit) GetComment(input *GetCommentInput) (*GetCommentOutput, error) {
  3579  	req, out := c.GetCommentRequest(input)
  3580  	return out, req.Send()
  3581  }
  3582  
  3583  // GetCommentWithContext is the same as GetComment with the addition of
  3584  // the ability to pass a context and additional request options.
  3585  //
  3586  // See GetComment for details on how to use this API operation.
  3587  //
  3588  // The context must be non-nil and will be used for request cancellation. If
  3589  // the context is nil a panic will occur. In the future the SDK may create
  3590  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3591  // for more information on using Contexts.
  3592  func (c *CodeCommit) GetCommentWithContext(ctx aws.Context, input *GetCommentInput, opts ...request.Option) (*GetCommentOutput, error) {
  3593  	req, out := c.GetCommentRequest(input)
  3594  	req.SetContext(ctx)
  3595  	req.ApplyOptions(opts...)
  3596  	return out, req.Send()
  3597  }
  3598  
  3599  const opGetCommentReactions = "GetCommentReactions"
  3600  
  3601  // GetCommentReactionsRequest generates a "aws/request.Request" representing the
  3602  // client's request for the GetCommentReactions operation. The "output" return
  3603  // value will be populated with the request's response once the request completes
  3604  // successfully.
  3605  //
  3606  // Use "Send" method on the returned Request to send the API call to the service.
  3607  // the "output" return value is not valid until after Send returns without error.
  3608  //
  3609  // See GetCommentReactions for more information on using the GetCommentReactions
  3610  // API call, and error handling.
  3611  //
  3612  // This method is useful when you want to inject custom logic or configuration
  3613  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3614  //
  3615  //
  3616  //    // Example sending a request using the GetCommentReactionsRequest method.
  3617  //    req, resp := client.GetCommentReactionsRequest(params)
  3618  //
  3619  //    err := req.Send()
  3620  //    if err == nil { // resp is now filled
  3621  //        fmt.Println(resp)
  3622  //    }
  3623  //
  3624  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactions
  3625  func (c *CodeCommit) GetCommentReactionsRequest(input *GetCommentReactionsInput) (req *request.Request, output *GetCommentReactionsOutput) {
  3626  	op := &request.Operation{
  3627  		Name:       opGetCommentReactions,
  3628  		HTTPMethod: "POST",
  3629  		HTTPPath:   "/",
  3630  		Paginator: &request.Paginator{
  3631  			InputTokens:     []string{"nextToken"},
  3632  			OutputTokens:    []string{"nextToken"},
  3633  			LimitToken:      "maxResults",
  3634  			TruncationToken: "",
  3635  		},
  3636  	}
  3637  
  3638  	if input == nil {
  3639  		input = &GetCommentReactionsInput{}
  3640  	}
  3641  
  3642  	output = &GetCommentReactionsOutput{}
  3643  	req = c.newRequest(op, input, output)
  3644  	return
  3645  }
  3646  
  3647  // GetCommentReactions API operation for AWS CodeCommit.
  3648  //
  3649  // Returns information about reactions to a specified comment ID. Reactions
  3650  // from users who have been deleted will not be included in the count.
  3651  //
  3652  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3653  // with awserr.Error's Code and Message methods to get detailed information about
  3654  // the error.
  3655  //
  3656  // See the AWS API reference guide for AWS CodeCommit's
  3657  // API operation GetCommentReactions for usage and error information.
  3658  //
  3659  // Returned Error Types:
  3660  //   * CommentDoesNotExistException
  3661  //   No comment exists with the provided ID. Verify that you have used the correct
  3662  //   ID, and then try again.
  3663  //
  3664  //   * CommentIdRequiredException
  3665  //   The comment ID is missing or null. A comment ID is required.
  3666  //
  3667  //   * InvalidCommentIdException
  3668  //   The comment ID is not in a valid format. Make sure that you have provided
  3669  //   the full comment ID.
  3670  //
  3671  //   * InvalidReactionUserArnException
  3672  //   The Amazon Resource Name (ARN) of the user or identity is not valid.
  3673  //
  3674  //   * InvalidMaxResultsException
  3675  //   The specified number of maximum results is not valid.
  3676  //
  3677  //   * InvalidContinuationTokenException
  3678  //   The specified continuation token is not valid.
  3679  //
  3680  //   * CommentDeletedException
  3681  //   This comment has already been deleted. You cannot edit or delete a deleted
  3682  //   comment.
  3683  //
  3684  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactions
  3685  func (c *CodeCommit) GetCommentReactions(input *GetCommentReactionsInput) (*GetCommentReactionsOutput, error) {
  3686  	req, out := c.GetCommentReactionsRequest(input)
  3687  	return out, req.Send()
  3688  }
  3689  
  3690  // GetCommentReactionsWithContext is the same as GetCommentReactions with the addition of
  3691  // the ability to pass a context and additional request options.
  3692  //
  3693  // See GetCommentReactions for details on how to use this API operation.
  3694  //
  3695  // The context must be non-nil and will be used for request cancellation. If
  3696  // the context is nil a panic will occur. In the future the SDK may create
  3697  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3698  // for more information on using Contexts.
  3699  func (c *CodeCommit) GetCommentReactionsWithContext(ctx aws.Context, input *GetCommentReactionsInput, opts ...request.Option) (*GetCommentReactionsOutput, error) {
  3700  	req, out := c.GetCommentReactionsRequest(input)
  3701  	req.SetContext(ctx)
  3702  	req.ApplyOptions(opts...)
  3703  	return out, req.Send()
  3704  }
  3705  
  3706  // GetCommentReactionsPages iterates over the pages of a GetCommentReactions operation,
  3707  // calling the "fn" function with the response data for each page. To stop
  3708  // iterating, return false from the fn function.
  3709  //
  3710  // See GetCommentReactions method for more information on how to use this operation.
  3711  //
  3712  // Note: This operation can generate multiple requests to a service.
  3713  //
  3714  //    // Example iterating over at most 3 pages of a GetCommentReactions operation.
  3715  //    pageNum := 0
  3716  //    err := client.GetCommentReactionsPages(params,
  3717  //        func(page *codecommit.GetCommentReactionsOutput, lastPage bool) bool {
  3718  //            pageNum++
  3719  //            fmt.Println(page)
  3720  //            return pageNum <= 3
  3721  //        })
  3722  //
  3723  func (c *CodeCommit) GetCommentReactionsPages(input *GetCommentReactionsInput, fn func(*GetCommentReactionsOutput, bool) bool) error {
  3724  	return c.GetCommentReactionsPagesWithContext(aws.BackgroundContext(), input, fn)
  3725  }
  3726  
  3727  // GetCommentReactionsPagesWithContext same as GetCommentReactionsPages except
  3728  // it takes a Context and allows setting request options on the pages.
  3729  //
  3730  // The context must be non-nil and will be used for request cancellation. If
  3731  // the context is nil a panic will occur. In the future the SDK may create
  3732  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3733  // for more information on using Contexts.
  3734  func (c *CodeCommit) GetCommentReactionsPagesWithContext(ctx aws.Context, input *GetCommentReactionsInput, fn func(*GetCommentReactionsOutput, bool) bool, opts ...request.Option) error {
  3735  	p := request.Pagination{
  3736  		NewRequest: func() (*request.Request, error) {
  3737  			var inCpy *GetCommentReactionsInput
  3738  			if input != nil {
  3739  				tmp := *input
  3740  				inCpy = &tmp
  3741  			}
  3742  			req, _ := c.GetCommentReactionsRequest(inCpy)
  3743  			req.SetContext(ctx)
  3744  			req.ApplyOptions(opts...)
  3745  			return req, nil
  3746  		},
  3747  	}
  3748  
  3749  	for p.Next() {
  3750  		if !fn(p.Page().(*GetCommentReactionsOutput), !p.HasNextPage()) {
  3751  			break
  3752  		}
  3753  	}
  3754  
  3755  	return p.Err()
  3756  }
  3757  
  3758  const opGetCommentsForComparedCommit = "GetCommentsForComparedCommit"
  3759  
  3760  // GetCommentsForComparedCommitRequest generates a "aws/request.Request" representing the
  3761  // client's request for the GetCommentsForComparedCommit operation. The "output" return
  3762  // value will be populated with the request's response once the request completes
  3763  // successfully.
  3764  //
  3765  // Use "Send" method on the returned Request to send the API call to the service.
  3766  // the "output" return value is not valid until after Send returns without error.
  3767  //
  3768  // See GetCommentsForComparedCommit for more information on using the GetCommentsForComparedCommit
  3769  // API call, and error handling.
  3770  //
  3771  // This method is useful when you want to inject custom logic or configuration
  3772  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3773  //
  3774  //
  3775  //    // Example sending a request using the GetCommentsForComparedCommitRequest method.
  3776  //    req, resp := client.GetCommentsForComparedCommitRequest(params)
  3777  //
  3778  //    err := req.Send()
  3779  //    if err == nil { // resp is now filled
  3780  //        fmt.Println(resp)
  3781  //    }
  3782  //
  3783  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit
  3784  func (c *CodeCommit) GetCommentsForComparedCommitRequest(input *GetCommentsForComparedCommitInput) (req *request.Request, output *GetCommentsForComparedCommitOutput) {
  3785  	op := &request.Operation{
  3786  		Name:       opGetCommentsForComparedCommit,
  3787  		HTTPMethod: "POST",
  3788  		HTTPPath:   "/",
  3789  		Paginator: &request.Paginator{
  3790  			InputTokens:     []string{"nextToken"},
  3791  			OutputTokens:    []string{"nextToken"},
  3792  			LimitToken:      "maxResults",
  3793  			TruncationToken: "",
  3794  		},
  3795  	}
  3796  
  3797  	if input == nil {
  3798  		input = &GetCommentsForComparedCommitInput{}
  3799  	}
  3800  
  3801  	output = &GetCommentsForComparedCommitOutput{}
  3802  	req = c.newRequest(op, input, output)
  3803  	return
  3804  }
  3805  
  3806  // GetCommentsForComparedCommit API operation for AWS CodeCommit.
  3807  //
  3808  // Returns information about comments made on the comparison between two commits.
  3809  //
  3810  // Reaction counts might include numbers from user identities who were deleted
  3811  // after the reaction was made. For a count of reactions from active identities,
  3812  // use GetCommentReactions.
  3813  //
  3814  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3815  // with awserr.Error's Code and Message methods to get detailed information about
  3816  // the error.
  3817  //
  3818  // See the AWS API reference guide for AWS CodeCommit's
  3819  // API operation GetCommentsForComparedCommit for usage and error information.
  3820  //
  3821  // Returned Error Types:
  3822  //   * RepositoryNameRequiredException
  3823  //   A repository name is required, but was not specified.
  3824  //
  3825  //   * RepositoryDoesNotExistException
  3826  //   The specified repository does not exist.
  3827  //
  3828  //   * InvalidRepositoryNameException
  3829  //   A specified repository name is not valid.
  3830  //
  3831  //   This exception occurs only when a specified repository name is not valid.
  3832  //   Other exceptions occur when a required repository parameter is missing, or
  3833  //   when a specified repository does not exist.
  3834  //
  3835  //   * CommitIdRequiredException
  3836  //   A commit ID was not specified.
  3837  //
  3838  //   * InvalidCommitIdException
  3839  //   The specified commit ID is not valid.
  3840  //
  3841  //   * CommitDoesNotExistException
  3842  //   The specified commit does not exist or no commit was specified, and the specified
  3843  //   repository has no default branch.
  3844  //
  3845  //   * InvalidMaxResultsException
  3846  //   The specified number of maximum results is not valid.
  3847  //
  3848  //   * InvalidContinuationTokenException
  3849  //   The specified continuation token is not valid.
  3850  //
  3851  //   * EncryptionIntegrityChecksFailedException
  3852  //   An encryption integrity check failed.
  3853  //
  3854  //   * EncryptionKeyAccessDeniedException
  3855  //   An encryption key could not be accessed.
  3856  //
  3857  //   * EncryptionKeyDisabledException
  3858  //   The encryption key is disabled.
  3859  //
  3860  //   * EncryptionKeyNotFoundException
  3861  //   No encryption key was found.
  3862  //
  3863  //   * EncryptionKeyUnavailableException
  3864  //   The encryption key is not available.
  3865  //
  3866  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit
  3867  func (c *CodeCommit) GetCommentsForComparedCommit(input *GetCommentsForComparedCommitInput) (*GetCommentsForComparedCommitOutput, error) {
  3868  	req, out := c.GetCommentsForComparedCommitRequest(input)
  3869  	return out, req.Send()
  3870  }
  3871  
  3872  // GetCommentsForComparedCommitWithContext is the same as GetCommentsForComparedCommit with the addition of
  3873  // the ability to pass a context and additional request options.
  3874  //
  3875  // See GetCommentsForComparedCommit for details on how to use this API operation.
  3876  //
  3877  // The context must be non-nil and will be used for request cancellation. If
  3878  // the context is nil a panic will occur. In the future the SDK may create
  3879  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3880  // for more information on using Contexts.
  3881  func (c *CodeCommit) GetCommentsForComparedCommitWithContext(ctx aws.Context, input *GetCommentsForComparedCommitInput, opts ...request.Option) (*GetCommentsForComparedCommitOutput, error) {
  3882  	req, out := c.GetCommentsForComparedCommitRequest(input)
  3883  	req.SetContext(ctx)
  3884  	req.ApplyOptions(opts...)
  3885  	return out, req.Send()
  3886  }
  3887  
  3888  // GetCommentsForComparedCommitPages iterates over the pages of a GetCommentsForComparedCommit operation,
  3889  // calling the "fn" function with the response data for each page. To stop
  3890  // iterating, return false from the fn function.
  3891  //
  3892  // See GetCommentsForComparedCommit method for more information on how to use this operation.
  3893  //
  3894  // Note: This operation can generate multiple requests to a service.
  3895  //
  3896  //    // Example iterating over at most 3 pages of a GetCommentsForComparedCommit operation.
  3897  //    pageNum := 0
  3898  //    err := client.GetCommentsForComparedCommitPages(params,
  3899  //        func(page *codecommit.GetCommentsForComparedCommitOutput, lastPage bool) bool {
  3900  //            pageNum++
  3901  //            fmt.Println(page)
  3902  //            return pageNum <= 3
  3903  //        })
  3904  //
  3905  func (c *CodeCommit) GetCommentsForComparedCommitPages(input *GetCommentsForComparedCommitInput, fn func(*GetCommentsForComparedCommitOutput, bool) bool) error {
  3906  	return c.GetCommentsForComparedCommitPagesWithContext(aws.BackgroundContext(), input, fn)
  3907  }
  3908  
  3909  // GetCommentsForComparedCommitPagesWithContext same as GetCommentsForComparedCommitPages except
  3910  // it takes a Context and allows setting request options on the pages.
  3911  //
  3912  // The context must be non-nil and will be used for request cancellation. If
  3913  // the context is nil a panic will occur. In the future the SDK may create
  3914  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3915  // for more information on using Contexts.
  3916  func (c *CodeCommit) GetCommentsForComparedCommitPagesWithContext(ctx aws.Context, input *GetCommentsForComparedCommitInput, fn func(*GetCommentsForComparedCommitOutput, bool) bool, opts ...request.Option) error {
  3917  	p := request.Pagination{
  3918  		NewRequest: func() (*request.Request, error) {
  3919  			var inCpy *GetCommentsForComparedCommitInput
  3920  			if input != nil {
  3921  				tmp := *input
  3922  				inCpy = &tmp
  3923  			}
  3924  			req, _ := c.GetCommentsForComparedCommitRequest(inCpy)
  3925  			req.SetContext(ctx)
  3926  			req.ApplyOptions(opts...)
  3927  			return req, nil
  3928  		},
  3929  	}
  3930  
  3931  	for p.Next() {
  3932  		if !fn(p.Page().(*GetCommentsForComparedCommitOutput), !p.HasNextPage()) {
  3933  			break
  3934  		}
  3935  	}
  3936  
  3937  	return p.Err()
  3938  }
  3939  
  3940  const opGetCommentsForPullRequest = "GetCommentsForPullRequest"
  3941  
  3942  // GetCommentsForPullRequestRequest generates a "aws/request.Request" representing the
  3943  // client's request for the GetCommentsForPullRequest operation. The "output" return
  3944  // value will be populated with the request's response once the request completes
  3945  // successfully.
  3946  //
  3947  // Use "Send" method on the returned Request to send the API call to the service.
  3948  // the "output" return value is not valid until after Send returns without error.
  3949  //
  3950  // See GetCommentsForPullRequest for more information on using the GetCommentsForPullRequest
  3951  // API call, and error handling.
  3952  //
  3953  // This method is useful when you want to inject custom logic or configuration
  3954  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3955  //
  3956  //
  3957  //    // Example sending a request using the GetCommentsForPullRequestRequest method.
  3958  //    req, resp := client.GetCommentsForPullRequestRequest(params)
  3959  //
  3960  //    err := req.Send()
  3961  //    if err == nil { // resp is now filled
  3962  //        fmt.Println(resp)
  3963  //    }
  3964  //
  3965  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest
  3966  func (c *CodeCommit) GetCommentsForPullRequestRequest(input *GetCommentsForPullRequestInput) (req *request.Request, output *GetCommentsForPullRequestOutput) {
  3967  	op := &request.Operation{
  3968  		Name:       opGetCommentsForPullRequest,
  3969  		HTTPMethod: "POST",
  3970  		HTTPPath:   "/",
  3971  		Paginator: &request.Paginator{
  3972  			InputTokens:     []string{"nextToken"},
  3973  			OutputTokens:    []string{"nextToken"},
  3974  			LimitToken:      "maxResults",
  3975  			TruncationToken: "",
  3976  		},
  3977  	}
  3978  
  3979  	if input == nil {
  3980  		input = &GetCommentsForPullRequestInput{}
  3981  	}
  3982  
  3983  	output = &GetCommentsForPullRequestOutput{}
  3984  	req = c.newRequest(op, input, output)
  3985  	return
  3986  }
  3987  
  3988  // GetCommentsForPullRequest API operation for AWS CodeCommit.
  3989  //
  3990  // Returns comments made on a pull request.
  3991  //
  3992  // Reaction counts might include numbers from user identities who were deleted
  3993  // after the reaction was made. For a count of reactions from active identities,
  3994  // use GetCommentReactions.
  3995  //
  3996  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3997  // with awserr.Error's Code and Message methods to get detailed information about
  3998  // the error.
  3999  //
  4000  // See the AWS API reference guide for AWS CodeCommit's
  4001  // API operation GetCommentsForPullRequest for usage and error information.
  4002  //
  4003  // Returned Error Types:
  4004  //   * PullRequestIdRequiredException
  4005  //   A pull request ID is required, but none was provided.
  4006  //
  4007  //   * PullRequestDoesNotExistException
  4008  //   The pull request ID could not be found. Make sure that you have specified
  4009  //   the correct repository name and pull request ID, and then try again.
  4010  //
  4011  //   * InvalidPullRequestIdException
  4012  //   The pull request ID is not valid. Make sure that you have provided the full
  4013  //   ID and that the pull request is in the specified repository, and then try
  4014  //   again.
  4015  //
  4016  //   * RepositoryNameRequiredException
  4017  //   A repository name is required, but was not specified.
  4018  //
  4019  //   * RepositoryDoesNotExistException
  4020  //   The specified repository does not exist.
  4021  //
  4022  //   * InvalidRepositoryNameException
  4023  //   A specified repository name is not valid.
  4024  //
  4025  //   This exception occurs only when a specified repository name is not valid.
  4026  //   Other exceptions occur when a required repository parameter is missing, or
  4027  //   when a specified repository does not exist.
  4028  //
  4029  //   * CommitIdRequiredException
  4030  //   A commit ID was not specified.
  4031  //
  4032  //   * InvalidCommitIdException
  4033  //   The specified commit ID is not valid.
  4034  //
  4035  //   * CommitDoesNotExistException
  4036  //   The specified commit does not exist or no commit was specified, and the specified
  4037  //   repository has no default branch.
  4038  //
  4039  //   * InvalidMaxResultsException
  4040  //   The specified number of maximum results is not valid.
  4041  //
  4042  //   * InvalidContinuationTokenException
  4043  //   The specified continuation token is not valid.
  4044  //
  4045  //   * RepositoryNotAssociatedWithPullRequestException
  4046  //   The repository does not contain any pull requests with that pull request
  4047  //   ID. Use GetPullRequest to verify the correct repository name for the pull
  4048  //   request ID.
  4049  //
  4050  //   * EncryptionIntegrityChecksFailedException
  4051  //   An encryption integrity check failed.
  4052  //
  4053  //   * EncryptionKeyAccessDeniedException
  4054  //   An encryption key could not be accessed.
  4055  //
  4056  //   * EncryptionKeyDisabledException
  4057  //   The encryption key is disabled.
  4058  //
  4059  //   * EncryptionKeyNotFoundException
  4060  //   No encryption key was found.
  4061  //
  4062  //   * EncryptionKeyUnavailableException
  4063  //   The encryption key is not available.
  4064  //
  4065  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest
  4066  func (c *CodeCommit) GetCommentsForPullRequest(input *GetCommentsForPullRequestInput) (*GetCommentsForPullRequestOutput, error) {
  4067  	req, out := c.GetCommentsForPullRequestRequest(input)
  4068  	return out, req.Send()
  4069  }
  4070  
  4071  // GetCommentsForPullRequestWithContext is the same as GetCommentsForPullRequest with the addition of
  4072  // the ability to pass a context and additional request options.
  4073  //
  4074  // See GetCommentsForPullRequest for details on how to use this API operation.
  4075  //
  4076  // The context must be non-nil and will be used for request cancellation. If
  4077  // the context is nil a panic will occur. In the future the SDK may create
  4078  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4079  // for more information on using Contexts.
  4080  func (c *CodeCommit) GetCommentsForPullRequestWithContext(ctx aws.Context, input *GetCommentsForPullRequestInput, opts ...request.Option) (*GetCommentsForPullRequestOutput, error) {
  4081  	req, out := c.GetCommentsForPullRequestRequest(input)
  4082  	req.SetContext(ctx)
  4083  	req.ApplyOptions(opts...)
  4084  	return out, req.Send()
  4085  }
  4086  
  4087  // GetCommentsForPullRequestPages iterates over the pages of a GetCommentsForPullRequest operation,
  4088  // calling the "fn" function with the response data for each page. To stop
  4089  // iterating, return false from the fn function.
  4090  //
  4091  // See GetCommentsForPullRequest method for more information on how to use this operation.
  4092  //
  4093  // Note: This operation can generate multiple requests to a service.
  4094  //
  4095  //    // Example iterating over at most 3 pages of a GetCommentsForPullRequest operation.
  4096  //    pageNum := 0
  4097  //    err := client.GetCommentsForPullRequestPages(params,
  4098  //        func(page *codecommit.GetCommentsForPullRequestOutput, lastPage bool) bool {
  4099  //            pageNum++
  4100  //            fmt.Println(page)
  4101  //            return pageNum <= 3
  4102  //        })
  4103  //
  4104  func (c *CodeCommit) GetCommentsForPullRequestPages(input *GetCommentsForPullRequestInput, fn func(*GetCommentsForPullRequestOutput, bool) bool) error {
  4105  	return c.GetCommentsForPullRequestPagesWithContext(aws.BackgroundContext(), input, fn)
  4106  }
  4107  
  4108  // GetCommentsForPullRequestPagesWithContext same as GetCommentsForPullRequestPages except
  4109  // it takes a Context and allows setting request options on the pages.
  4110  //
  4111  // The context must be non-nil and will be used for request cancellation. If
  4112  // the context is nil a panic will occur. In the future the SDK may create
  4113  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4114  // for more information on using Contexts.
  4115  func (c *CodeCommit) GetCommentsForPullRequestPagesWithContext(ctx aws.Context, input *GetCommentsForPullRequestInput, fn func(*GetCommentsForPullRequestOutput, bool) bool, opts ...request.Option) error {
  4116  	p := request.Pagination{
  4117  		NewRequest: func() (*request.Request, error) {
  4118  			var inCpy *GetCommentsForPullRequestInput
  4119  			if input != nil {
  4120  				tmp := *input
  4121  				inCpy = &tmp
  4122  			}
  4123  			req, _ := c.GetCommentsForPullRequestRequest(inCpy)
  4124  			req.SetContext(ctx)
  4125  			req.ApplyOptions(opts...)
  4126  			return req, nil
  4127  		},
  4128  	}
  4129  
  4130  	for p.Next() {
  4131  		if !fn(p.Page().(*GetCommentsForPullRequestOutput), !p.HasNextPage()) {
  4132  			break
  4133  		}
  4134  	}
  4135  
  4136  	return p.Err()
  4137  }
  4138  
  4139  const opGetCommit = "GetCommit"
  4140  
  4141  // GetCommitRequest generates a "aws/request.Request" representing the
  4142  // client's request for the GetCommit operation. The "output" return
  4143  // value will be populated with the request's response once the request completes
  4144  // successfully.
  4145  //
  4146  // Use "Send" method on the returned Request to send the API call to the service.
  4147  // the "output" return value is not valid until after Send returns without error.
  4148  //
  4149  // See GetCommit for more information on using the GetCommit
  4150  // API call, and error handling.
  4151  //
  4152  // This method is useful when you want to inject custom logic or configuration
  4153  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4154  //
  4155  //
  4156  //    // Example sending a request using the GetCommitRequest method.
  4157  //    req, resp := client.GetCommitRequest(params)
  4158  //
  4159  //    err := req.Send()
  4160  //    if err == nil { // resp is now filled
  4161  //        fmt.Println(resp)
  4162  //    }
  4163  //
  4164  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit
  4165  func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput) {
  4166  	op := &request.Operation{
  4167  		Name:       opGetCommit,
  4168  		HTTPMethod: "POST",
  4169  		HTTPPath:   "/",
  4170  	}
  4171  
  4172  	if input == nil {
  4173  		input = &GetCommitInput{}
  4174  	}
  4175  
  4176  	output = &GetCommitOutput{}
  4177  	req = c.newRequest(op, input, output)
  4178  	return
  4179  }
  4180  
  4181  // GetCommit API operation for AWS CodeCommit.
  4182  //
  4183  // Returns information about a commit, including commit message and committer
  4184  // information.
  4185  //
  4186  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4187  // with awserr.Error's Code and Message methods to get detailed information about
  4188  // the error.
  4189  //
  4190  // See the AWS API reference guide for AWS CodeCommit's
  4191  // API operation GetCommit for usage and error information.
  4192  //
  4193  // Returned Error Types:
  4194  //   * RepositoryNameRequiredException
  4195  //   A repository name is required, but was not specified.
  4196  //
  4197  //   * InvalidRepositoryNameException
  4198  //   A specified repository name is not valid.
  4199  //
  4200  //   This exception occurs only when a specified repository name is not valid.
  4201  //   Other exceptions occur when a required repository parameter is missing, or
  4202  //   when a specified repository does not exist.
  4203  //
  4204  //   * RepositoryDoesNotExistException
  4205  //   The specified repository does not exist.
  4206  //
  4207  //   * CommitIdRequiredException
  4208  //   A commit ID was not specified.
  4209  //
  4210  //   * InvalidCommitIdException
  4211  //   The specified commit ID is not valid.
  4212  //
  4213  //   * CommitIdDoesNotExistException
  4214  //   The specified commit ID does not exist.
  4215  //
  4216  //   * EncryptionIntegrityChecksFailedException
  4217  //   An encryption integrity check failed.
  4218  //
  4219  //   * EncryptionKeyAccessDeniedException
  4220  //   An encryption key could not be accessed.
  4221  //
  4222  //   * EncryptionKeyDisabledException
  4223  //   The encryption key is disabled.
  4224  //
  4225  //   * EncryptionKeyNotFoundException
  4226  //   No encryption key was found.
  4227  //
  4228  //   * EncryptionKeyUnavailableException
  4229  //   The encryption key is not available.
  4230  //
  4231  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit
  4232  func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) {
  4233  	req, out := c.GetCommitRequest(input)
  4234  	return out, req.Send()
  4235  }
  4236  
  4237  // GetCommitWithContext is the same as GetCommit with the addition of
  4238  // the ability to pass a context and additional request options.
  4239  //
  4240  // See GetCommit for details on how to use this API operation.
  4241  //
  4242  // The context must be non-nil and will be used for request cancellation. If
  4243  // the context is nil a panic will occur. In the future the SDK may create
  4244  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4245  // for more information on using Contexts.
  4246  func (c *CodeCommit) GetCommitWithContext(ctx aws.Context, input *GetCommitInput, opts ...request.Option) (*GetCommitOutput, error) {
  4247  	req, out := c.GetCommitRequest(input)
  4248  	req.SetContext(ctx)
  4249  	req.ApplyOptions(opts...)
  4250  	return out, req.Send()
  4251  }
  4252  
  4253  const opGetDifferences = "GetDifferences"
  4254  
  4255  // GetDifferencesRequest generates a "aws/request.Request" representing the
  4256  // client's request for the GetDifferences operation. The "output" return
  4257  // value will be populated with the request's response once the request completes
  4258  // successfully.
  4259  //
  4260  // Use "Send" method on the returned Request to send the API call to the service.
  4261  // the "output" return value is not valid until after Send returns without error.
  4262  //
  4263  // See GetDifferences for more information on using the GetDifferences
  4264  // API call, and error handling.
  4265  //
  4266  // This method is useful when you want to inject custom logic or configuration
  4267  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4268  //
  4269  //
  4270  //    // Example sending a request using the GetDifferencesRequest method.
  4271  //    req, resp := client.GetDifferencesRequest(params)
  4272  //
  4273  //    err := req.Send()
  4274  //    if err == nil { // resp is now filled
  4275  //        fmt.Println(resp)
  4276  //    }
  4277  //
  4278  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences
  4279  func (c *CodeCommit) GetDifferencesRequest(input *GetDifferencesInput) (req *request.Request, output *GetDifferencesOutput) {
  4280  	op := &request.Operation{
  4281  		Name:       opGetDifferences,
  4282  		HTTPMethod: "POST",
  4283  		HTTPPath:   "/",
  4284  		Paginator: &request.Paginator{
  4285  			InputTokens:     []string{"NextToken"},
  4286  			OutputTokens:    []string{"NextToken"},
  4287  			LimitToken:      "MaxResults",
  4288  			TruncationToken: "",
  4289  		},
  4290  	}
  4291  
  4292  	if input == nil {
  4293  		input = &GetDifferencesInput{}
  4294  	}
  4295  
  4296  	output = &GetDifferencesOutput{}
  4297  	req = c.newRequest(op, input, output)
  4298  	return
  4299  }
  4300  
  4301  // GetDifferences API operation for AWS CodeCommit.
  4302  //
  4303  // Returns information about the differences in a valid commit specifier (such
  4304  // as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results
  4305  // can be limited to a specified path.
  4306  //
  4307  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4308  // with awserr.Error's Code and Message methods to get detailed information about
  4309  // the error.
  4310  //
  4311  // See the AWS API reference guide for AWS CodeCommit's
  4312  // API operation GetDifferences for usage and error information.
  4313  //
  4314  // Returned Error Types:
  4315  //   * RepositoryNameRequiredException
  4316  //   A repository name is required, but was not specified.
  4317  //
  4318  //   * RepositoryDoesNotExistException
  4319  //   The specified repository does not exist.
  4320  //
  4321  //   * InvalidRepositoryNameException
  4322  //   A specified repository name is not valid.
  4323  //
  4324  //   This exception occurs only when a specified repository name is not valid.
  4325  //   Other exceptions occur when a required repository parameter is missing, or
  4326  //   when a specified repository does not exist.
  4327  //
  4328  //   * InvalidContinuationTokenException
  4329  //   The specified continuation token is not valid.
  4330  //
  4331  //   * InvalidMaxResultsException
  4332  //   The specified number of maximum results is not valid.
  4333  //
  4334  //   * InvalidCommitIdException
  4335  //   The specified commit ID is not valid.
  4336  //
  4337  //   * CommitRequiredException
  4338  //   A commit was not specified.
  4339  //
  4340  //   * InvalidCommitException
  4341  //   The specified commit is not valid.
  4342  //
  4343  //   * CommitDoesNotExistException
  4344  //   The specified commit does not exist or no commit was specified, and the specified
  4345  //   repository has no default branch.
  4346  //
  4347  //   * InvalidPathException
  4348  //   The specified path is not valid.
  4349  //
  4350  //   * PathDoesNotExistException
  4351  //   The specified path does not exist.
  4352  //
  4353  //   * EncryptionIntegrityChecksFailedException
  4354  //   An encryption integrity check failed.
  4355  //
  4356  //   * EncryptionKeyAccessDeniedException
  4357  //   An encryption key could not be accessed.
  4358  //
  4359  //   * EncryptionKeyDisabledException
  4360  //   The encryption key is disabled.
  4361  //
  4362  //   * EncryptionKeyNotFoundException
  4363  //   No encryption key was found.
  4364  //
  4365  //   * EncryptionKeyUnavailableException
  4366  //   The encryption key is not available.
  4367  //
  4368  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences
  4369  func (c *CodeCommit) GetDifferences(input *GetDifferencesInput) (*GetDifferencesOutput, error) {
  4370  	req, out := c.GetDifferencesRequest(input)
  4371  	return out, req.Send()
  4372  }
  4373  
  4374  // GetDifferencesWithContext is the same as GetDifferences with the addition of
  4375  // the ability to pass a context and additional request options.
  4376  //
  4377  // See GetDifferences for details on how to use this API operation.
  4378  //
  4379  // The context must be non-nil and will be used for request cancellation. If
  4380  // the context is nil a panic will occur. In the future the SDK may create
  4381  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4382  // for more information on using Contexts.
  4383  func (c *CodeCommit) GetDifferencesWithContext(ctx aws.Context, input *GetDifferencesInput, opts ...request.Option) (*GetDifferencesOutput, error) {
  4384  	req, out := c.GetDifferencesRequest(input)
  4385  	req.SetContext(ctx)
  4386  	req.ApplyOptions(opts...)
  4387  	return out, req.Send()
  4388  }
  4389  
  4390  // GetDifferencesPages iterates over the pages of a GetDifferences operation,
  4391  // calling the "fn" function with the response data for each page. To stop
  4392  // iterating, return false from the fn function.
  4393  //
  4394  // See GetDifferences method for more information on how to use this operation.
  4395  //
  4396  // Note: This operation can generate multiple requests to a service.
  4397  //
  4398  //    // Example iterating over at most 3 pages of a GetDifferences operation.
  4399  //    pageNum := 0
  4400  //    err := client.GetDifferencesPages(params,
  4401  //        func(page *codecommit.GetDifferencesOutput, lastPage bool) bool {
  4402  //            pageNum++
  4403  //            fmt.Println(page)
  4404  //            return pageNum <= 3
  4405  //        })
  4406  //
  4407  func (c *CodeCommit) GetDifferencesPages(input *GetDifferencesInput, fn func(*GetDifferencesOutput, bool) bool) error {
  4408  	return c.GetDifferencesPagesWithContext(aws.BackgroundContext(), input, fn)
  4409  }
  4410  
  4411  // GetDifferencesPagesWithContext same as GetDifferencesPages except
  4412  // it takes a Context and allows setting request options on the pages.
  4413  //
  4414  // The context must be non-nil and will be used for request cancellation. If
  4415  // the context is nil a panic will occur. In the future the SDK may create
  4416  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4417  // for more information on using Contexts.
  4418  func (c *CodeCommit) GetDifferencesPagesWithContext(ctx aws.Context, input *GetDifferencesInput, fn func(*GetDifferencesOutput, bool) bool, opts ...request.Option) error {
  4419  	p := request.Pagination{
  4420  		NewRequest: func() (*request.Request, error) {
  4421  			var inCpy *GetDifferencesInput
  4422  			if input != nil {
  4423  				tmp := *input
  4424  				inCpy = &tmp
  4425  			}
  4426  			req, _ := c.GetDifferencesRequest(inCpy)
  4427  			req.SetContext(ctx)
  4428  			req.ApplyOptions(opts...)
  4429  			return req, nil
  4430  		},
  4431  	}
  4432  
  4433  	for p.Next() {
  4434  		if !fn(p.Page().(*GetDifferencesOutput), !p.HasNextPage()) {
  4435  			break
  4436  		}
  4437  	}
  4438  
  4439  	return p.Err()
  4440  }
  4441  
  4442  const opGetFile = "GetFile"
  4443  
  4444  // GetFileRequest generates a "aws/request.Request" representing the
  4445  // client's request for the GetFile operation. The "output" return
  4446  // value will be populated with the request's response once the request completes
  4447  // successfully.
  4448  //
  4449  // Use "Send" method on the returned Request to send the API call to the service.
  4450  // the "output" return value is not valid until after Send returns without error.
  4451  //
  4452  // See GetFile for more information on using the GetFile
  4453  // API call, and error handling.
  4454  //
  4455  // This method is useful when you want to inject custom logic or configuration
  4456  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4457  //
  4458  //
  4459  //    // Example sending a request using the GetFileRequest method.
  4460  //    req, resp := client.GetFileRequest(params)
  4461  //
  4462  //    err := req.Send()
  4463  //    if err == nil { // resp is now filled
  4464  //        fmt.Println(resp)
  4465  //    }
  4466  //
  4467  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile
  4468  func (c *CodeCommit) GetFileRequest(input *GetFileInput) (req *request.Request, output *GetFileOutput) {
  4469  	op := &request.Operation{
  4470  		Name:       opGetFile,
  4471  		HTTPMethod: "POST",
  4472  		HTTPPath:   "/",
  4473  	}
  4474  
  4475  	if input == nil {
  4476  		input = &GetFileInput{}
  4477  	}
  4478  
  4479  	output = &GetFileOutput{}
  4480  	req = c.newRequest(op, input, output)
  4481  	return
  4482  }
  4483  
  4484  // GetFile API operation for AWS CodeCommit.
  4485  //
  4486  // Returns the base-64 encoded contents of a specified file and its metadata.
  4487  //
  4488  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4489  // with awserr.Error's Code and Message methods to get detailed information about
  4490  // the error.
  4491  //
  4492  // See the AWS API reference guide for AWS CodeCommit's
  4493  // API operation GetFile for usage and error information.
  4494  //
  4495  // Returned Error Types:
  4496  //   * RepositoryNameRequiredException
  4497  //   A repository name is required, but was not specified.
  4498  //
  4499  //   * InvalidRepositoryNameException
  4500  //   A specified repository name is not valid.
  4501  //
  4502  //   This exception occurs only when a specified repository name is not valid.
  4503  //   Other exceptions occur when a required repository parameter is missing, or
  4504  //   when a specified repository does not exist.
  4505  //
  4506  //   * RepositoryDoesNotExistException
  4507  //   The specified repository does not exist.
  4508  //
  4509  //   * InvalidCommitException
  4510  //   The specified commit is not valid.
  4511  //
  4512  //   * CommitDoesNotExistException
  4513  //   The specified commit does not exist or no commit was specified, and the specified
  4514  //   repository has no default branch.
  4515  //
  4516  //   * PathRequiredException
  4517  //   The folderPath for a location cannot be null.
  4518  //
  4519  //   * InvalidPathException
  4520  //   The specified path is not valid.
  4521  //
  4522  //   * FileDoesNotExistException
  4523  //   The specified file does not exist. Verify that you have used the correct
  4524  //   file name, full path, and extension.
  4525  //
  4526  //   * EncryptionIntegrityChecksFailedException
  4527  //   An encryption integrity check failed.
  4528  //
  4529  //   * EncryptionKeyAccessDeniedException
  4530  //   An encryption key could not be accessed.
  4531  //
  4532  //   * EncryptionKeyDisabledException
  4533  //   The encryption key is disabled.
  4534  //
  4535  //   * EncryptionKeyNotFoundException
  4536  //   No encryption key was found.
  4537  //
  4538  //   * EncryptionKeyUnavailableException
  4539  //   The encryption key is not available.
  4540  //
  4541  //   * FileTooLargeException
  4542  //   The specified file exceeds the file size limit for AWS CodeCommit. For more
  4543  //   information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
  4544  //   (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  4545  //
  4546  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile
  4547  func (c *CodeCommit) GetFile(input *GetFileInput) (*GetFileOutput, error) {
  4548  	req, out := c.GetFileRequest(input)
  4549  	return out, req.Send()
  4550  }
  4551  
  4552  // GetFileWithContext is the same as GetFile with the addition of
  4553  // the ability to pass a context and additional request options.
  4554  //
  4555  // See GetFile for details on how to use this API operation.
  4556  //
  4557  // The context must be non-nil and will be used for request cancellation. If
  4558  // the context is nil a panic will occur. In the future the SDK may create
  4559  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4560  // for more information on using Contexts.
  4561  func (c *CodeCommit) GetFileWithContext(ctx aws.Context, input *GetFileInput, opts ...request.Option) (*GetFileOutput, error) {
  4562  	req, out := c.GetFileRequest(input)
  4563  	req.SetContext(ctx)
  4564  	req.ApplyOptions(opts...)
  4565  	return out, req.Send()
  4566  }
  4567  
  4568  const opGetFolder = "GetFolder"
  4569  
  4570  // GetFolderRequest generates a "aws/request.Request" representing the
  4571  // client's request for the GetFolder operation. The "output" return
  4572  // value will be populated with the request's response once the request completes
  4573  // successfully.
  4574  //
  4575  // Use "Send" method on the returned Request to send the API call to the service.
  4576  // the "output" return value is not valid until after Send returns without error.
  4577  //
  4578  // See GetFolder for more information on using the GetFolder
  4579  // API call, and error handling.
  4580  //
  4581  // This method is useful when you want to inject custom logic or configuration
  4582  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4583  //
  4584  //
  4585  //    // Example sending a request using the GetFolderRequest method.
  4586  //    req, resp := client.GetFolderRequest(params)
  4587  //
  4588  //    err := req.Send()
  4589  //    if err == nil { // resp is now filled
  4590  //        fmt.Println(resp)
  4591  //    }
  4592  //
  4593  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder
  4594  func (c *CodeCommit) GetFolderRequest(input *GetFolderInput) (req *request.Request, output *GetFolderOutput) {
  4595  	op := &request.Operation{
  4596  		Name:       opGetFolder,
  4597  		HTTPMethod: "POST",
  4598  		HTTPPath:   "/",
  4599  	}
  4600  
  4601  	if input == nil {
  4602  		input = &GetFolderInput{}
  4603  	}
  4604  
  4605  	output = &GetFolderOutput{}
  4606  	req = c.newRequest(op, input, output)
  4607  	return
  4608  }
  4609  
  4610  // GetFolder API operation for AWS CodeCommit.
  4611  //
  4612  // Returns the contents of a specified folder in a repository.
  4613  //
  4614  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4615  // with awserr.Error's Code and Message methods to get detailed information about
  4616  // the error.
  4617  //
  4618  // See the AWS API reference guide for AWS CodeCommit's
  4619  // API operation GetFolder for usage and error information.
  4620  //
  4621  // Returned Error Types:
  4622  //   * RepositoryNameRequiredException
  4623  //   A repository name is required, but was not specified.
  4624  //
  4625  //   * InvalidRepositoryNameException
  4626  //   A specified repository name is not valid.
  4627  //
  4628  //   This exception occurs only when a specified repository name is not valid.
  4629  //   Other exceptions occur when a required repository parameter is missing, or
  4630  //   when a specified repository does not exist.
  4631  //
  4632  //   * RepositoryDoesNotExistException
  4633  //   The specified repository does not exist.
  4634  //
  4635  //   * InvalidCommitException
  4636  //   The specified commit is not valid.
  4637  //
  4638  //   * CommitDoesNotExistException
  4639  //   The specified commit does not exist or no commit was specified, and the specified
  4640  //   repository has no default branch.
  4641  //
  4642  //   * PathRequiredException
  4643  //   The folderPath for a location cannot be null.
  4644  //
  4645  //   * InvalidPathException
  4646  //   The specified path is not valid.
  4647  //
  4648  //   * FolderDoesNotExistException
  4649  //   The specified folder does not exist. Either the folder name is not correct,
  4650  //   or you did not enter the full path to the folder.
  4651  //
  4652  //   * EncryptionIntegrityChecksFailedException
  4653  //   An encryption integrity check failed.
  4654  //
  4655  //   * EncryptionKeyAccessDeniedException
  4656  //   An encryption key could not be accessed.
  4657  //
  4658  //   * EncryptionKeyDisabledException
  4659  //   The encryption key is disabled.
  4660  //
  4661  //   * EncryptionKeyNotFoundException
  4662  //   No encryption key was found.
  4663  //
  4664  //   * EncryptionKeyUnavailableException
  4665  //   The encryption key is not available.
  4666  //
  4667  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder
  4668  func (c *CodeCommit) GetFolder(input *GetFolderInput) (*GetFolderOutput, error) {
  4669  	req, out := c.GetFolderRequest(input)
  4670  	return out, req.Send()
  4671  }
  4672  
  4673  // GetFolderWithContext is the same as GetFolder with the addition of
  4674  // the ability to pass a context and additional request options.
  4675  //
  4676  // See GetFolder for details on how to use this API operation.
  4677  //
  4678  // The context must be non-nil and will be used for request cancellation. If
  4679  // the context is nil a panic will occur. In the future the SDK may create
  4680  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4681  // for more information on using Contexts.
  4682  func (c *CodeCommit) GetFolderWithContext(ctx aws.Context, input *GetFolderInput, opts ...request.Option) (*GetFolderOutput, error) {
  4683  	req, out := c.GetFolderRequest(input)
  4684  	req.SetContext(ctx)
  4685  	req.ApplyOptions(opts...)
  4686  	return out, req.Send()
  4687  }
  4688  
  4689  const opGetMergeCommit = "GetMergeCommit"
  4690  
  4691  // GetMergeCommitRequest generates a "aws/request.Request" representing the
  4692  // client's request for the GetMergeCommit operation. The "output" return
  4693  // value will be populated with the request's response once the request completes
  4694  // successfully.
  4695  //
  4696  // Use "Send" method on the returned Request to send the API call to the service.
  4697  // the "output" return value is not valid until after Send returns without error.
  4698  //
  4699  // See GetMergeCommit for more information on using the GetMergeCommit
  4700  // API call, and error handling.
  4701  //
  4702  // This method is useful when you want to inject custom logic or configuration
  4703  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4704  //
  4705  //
  4706  //    // Example sending a request using the GetMergeCommitRequest method.
  4707  //    req, resp := client.GetMergeCommitRequest(params)
  4708  //
  4709  //    err := req.Send()
  4710  //    if err == nil { // resp is now filled
  4711  //        fmt.Println(resp)
  4712  //    }
  4713  //
  4714  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeCommit
  4715  func (c *CodeCommit) GetMergeCommitRequest(input *GetMergeCommitInput) (req *request.Request, output *GetMergeCommitOutput) {
  4716  	op := &request.Operation{
  4717  		Name:       opGetMergeCommit,
  4718  		HTTPMethod: "POST",
  4719  		HTTPPath:   "/",
  4720  	}
  4721  
  4722  	if input == nil {
  4723  		input = &GetMergeCommitInput{}
  4724  	}
  4725  
  4726  	output = &GetMergeCommitOutput{}
  4727  	req = c.newRequest(op, input, output)
  4728  	return
  4729  }
  4730  
  4731  // GetMergeCommit API operation for AWS CodeCommit.
  4732  //
  4733  // Returns information about a specified merge commit.
  4734  //
  4735  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4736  // with awserr.Error's Code and Message methods to get detailed information about
  4737  // the error.
  4738  //
  4739  // See the AWS API reference guide for AWS CodeCommit's
  4740  // API operation GetMergeCommit for usage and error information.
  4741  //
  4742  // Returned Error Types:
  4743  //   * RepositoryNameRequiredException
  4744  //   A repository name is required, but was not specified.
  4745  //
  4746  //   * InvalidRepositoryNameException
  4747  //   A specified repository name is not valid.
  4748  //
  4749  //   This exception occurs only when a specified repository name is not valid.
  4750  //   Other exceptions occur when a required repository parameter is missing, or
  4751  //   when a specified repository does not exist.
  4752  //
  4753  //   * RepositoryDoesNotExistException
  4754  //   The specified repository does not exist.
  4755  //
  4756  //   * CommitRequiredException
  4757  //   A commit was not specified.
  4758  //
  4759  //   * InvalidCommitException
  4760  //   The specified commit is not valid.
  4761  //
  4762  //   * CommitDoesNotExistException
  4763  //   The specified commit does not exist or no commit was specified, and the specified
  4764  //   repository has no default branch.
  4765  //
  4766  //   * InvalidConflictDetailLevelException
  4767  //   The specified conflict detail level is not valid.
  4768  //
  4769  //   * InvalidConflictResolutionStrategyException
  4770  //   The specified conflict resolution strategy is not valid.
  4771  //
  4772  //   * EncryptionIntegrityChecksFailedException
  4773  //   An encryption integrity check failed.
  4774  //
  4775  //   * EncryptionKeyAccessDeniedException
  4776  //   An encryption key could not be accessed.
  4777  //
  4778  //   * EncryptionKeyDisabledException
  4779  //   The encryption key is disabled.
  4780  //
  4781  //   * EncryptionKeyNotFoundException
  4782  //   No encryption key was found.
  4783  //
  4784  //   * EncryptionKeyUnavailableException
  4785  //   The encryption key is not available.
  4786  //
  4787  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeCommit
  4788  func (c *CodeCommit) GetMergeCommit(input *GetMergeCommitInput) (*GetMergeCommitOutput, error) {
  4789  	req, out := c.GetMergeCommitRequest(input)
  4790  	return out, req.Send()
  4791  }
  4792  
  4793  // GetMergeCommitWithContext is the same as GetMergeCommit with the addition of
  4794  // the ability to pass a context and additional request options.
  4795  //
  4796  // See GetMergeCommit for details on how to use this API operation.
  4797  //
  4798  // The context must be non-nil and will be used for request cancellation. If
  4799  // the context is nil a panic will occur. In the future the SDK may create
  4800  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4801  // for more information on using Contexts.
  4802  func (c *CodeCommit) GetMergeCommitWithContext(ctx aws.Context, input *GetMergeCommitInput, opts ...request.Option) (*GetMergeCommitOutput, error) {
  4803  	req, out := c.GetMergeCommitRequest(input)
  4804  	req.SetContext(ctx)
  4805  	req.ApplyOptions(opts...)
  4806  	return out, req.Send()
  4807  }
  4808  
  4809  const opGetMergeConflicts = "GetMergeConflicts"
  4810  
  4811  // GetMergeConflictsRequest generates a "aws/request.Request" representing the
  4812  // client's request for the GetMergeConflicts operation. The "output" return
  4813  // value will be populated with the request's response once the request completes
  4814  // successfully.
  4815  //
  4816  // Use "Send" method on the returned Request to send the API call to the service.
  4817  // the "output" return value is not valid until after Send returns without error.
  4818  //
  4819  // See GetMergeConflicts for more information on using the GetMergeConflicts
  4820  // API call, and error handling.
  4821  //
  4822  // This method is useful when you want to inject custom logic or configuration
  4823  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4824  //
  4825  //
  4826  //    // Example sending a request using the GetMergeConflictsRequest method.
  4827  //    req, resp := client.GetMergeConflictsRequest(params)
  4828  //
  4829  //    err := req.Send()
  4830  //    if err == nil { // resp is now filled
  4831  //        fmt.Println(resp)
  4832  //    }
  4833  //
  4834  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts
  4835  func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (req *request.Request, output *GetMergeConflictsOutput) {
  4836  	op := &request.Operation{
  4837  		Name:       opGetMergeConflicts,
  4838  		HTTPMethod: "POST",
  4839  		HTTPPath:   "/",
  4840  		Paginator: &request.Paginator{
  4841  			InputTokens:     []string{"nextToken"},
  4842  			OutputTokens:    []string{"nextToken"},
  4843  			LimitToken:      "maxConflictFiles",
  4844  			TruncationToken: "",
  4845  		},
  4846  	}
  4847  
  4848  	if input == nil {
  4849  		input = &GetMergeConflictsInput{}
  4850  	}
  4851  
  4852  	output = &GetMergeConflictsOutput{}
  4853  	req = c.newRequest(op, input, output)
  4854  	return
  4855  }
  4856  
  4857  // GetMergeConflicts API operation for AWS CodeCommit.
  4858  //
  4859  // Returns information about merge conflicts between the before and after commit
  4860  // IDs for a pull request in a repository.
  4861  //
  4862  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4863  // with awserr.Error's Code and Message methods to get detailed information about
  4864  // the error.
  4865  //
  4866  // See the AWS API reference guide for AWS CodeCommit's
  4867  // API operation GetMergeConflicts for usage and error information.
  4868  //
  4869  // Returned Error Types:
  4870  //   * RepositoryNameRequiredException
  4871  //   A repository name is required, but was not specified.
  4872  //
  4873  //   * InvalidRepositoryNameException
  4874  //   A specified repository name is not valid.
  4875  //
  4876  //   This exception occurs only when a specified repository name is not valid.
  4877  //   Other exceptions occur when a required repository parameter is missing, or
  4878  //   when a specified repository does not exist.
  4879  //
  4880  //   * RepositoryDoesNotExistException
  4881  //   The specified repository does not exist.
  4882  //
  4883  //   * MergeOptionRequiredException
  4884  //   A merge option or stategy is required, and none was provided.
  4885  //
  4886  //   * InvalidMergeOptionException
  4887  //   The specified merge option is not valid for this operation. Not all merge
  4888  //   strategies are supported for all operations.
  4889  //
  4890  //   * InvalidContinuationTokenException
  4891  //   The specified continuation token is not valid.
  4892  //
  4893  //   * CommitRequiredException
  4894  //   A commit was not specified.
  4895  //
  4896  //   * CommitDoesNotExistException
  4897  //   The specified commit does not exist or no commit was specified, and the specified
  4898  //   repository has no default branch.
  4899  //
  4900  //   * InvalidCommitException
  4901  //   The specified commit is not valid.
  4902  //
  4903  //   * TipsDivergenceExceededException
  4904  //   The divergence between the tips of the provided commit specifiers is too
  4905  //   great to determine whether there might be any merge conflicts. Locally compare
  4906  //   the specifiers using git diff or a diff tool.
  4907  //
  4908  //   * InvalidMaxConflictFilesException
  4909  //   The specified value for the number of conflict files to return is not valid.
  4910  //
  4911  //   * InvalidConflictDetailLevelException
  4912  //   The specified conflict detail level is not valid.
  4913  //
  4914  //   * InvalidDestinationCommitSpecifierException
  4915  //   The destination commit specifier is not valid. You must provide a valid branch
  4916  //   name, tag, or full commit ID.
  4917  //
  4918  //   * InvalidSourceCommitSpecifierException
  4919  //   The source commit specifier is not valid. You must provide a valid branch
  4920  //   name, tag, or full commit ID.
  4921  //
  4922  //   * InvalidConflictResolutionStrategyException
  4923  //   The specified conflict resolution strategy is not valid.
  4924  //
  4925  //   * MaximumFileContentToLoadExceededException
  4926  //   The number of files to load exceeds the allowed limit.
  4927  //
  4928  //   * MaximumItemsToCompareExceededException
  4929  //   The number of items to compare between the source or destination branches
  4930  //   and the merge base has exceeded the maximum allowed.
  4931  //
  4932  //   * EncryptionIntegrityChecksFailedException
  4933  //   An encryption integrity check failed.
  4934  //
  4935  //   * EncryptionKeyAccessDeniedException
  4936  //   An encryption key could not be accessed.
  4937  //
  4938  //   * EncryptionKeyDisabledException
  4939  //   The encryption key is disabled.
  4940  //
  4941  //   * EncryptionKeyNotFoundException
  4942  //   No encryption key was found.
  4943  //
  4944  //   * EncryptionKeyUnavailableException
  4945  //   The encryption key is not available.
  4946  //
  4947  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts
  4948  func (c *CodeCommit) GetMergeConflicts(input *GetMergeConflictsInput) (*GetMergeConflictsOutput, error) {
  4949  	req, out := c.GetMergeConflictsRequest(input)
  4950  	return out, req.Send()
  4951  }
  4952  
  4953  // GetMergeConflictsWithContext is the same as GetMergeConflicts with the addition of
  4954  // the ability to pass a context and additional request options.
  4955  //
  4956  // See GetMergeConflicts for details on how to use this API operation.
  4957  //
  4958  // The context must be non-nil and will be used for request cancellation. If
  4959  // the context is nil a panic will occur. In the future the SDK may create
  4960  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4961  // for more information on using Contexts.
  4962  func (c *CodeCommit) GetMergeConflictsWithContext(ctx aws.Context, input *GetMergeConflictsInput, opts ...request.Option) (*GetMergeConflictsOutput, error) {
  4963  	req, out := c.GetMergeConflictsRequest(input)
  4964  	req.SetContext(ctx)
  4965  	req.ApplyOptions(opts...)
  4966  	return out, req.Send()
  4967  }
  4968  
  4969  // GetMergeConflictsPages iterates over the pages of a GetMergeConflicts operation,
  4970  // calling the "fn" function with the response data for each page. To stop
  4971  // iterating, return false from the fn function.
  4972  //
  4973  // See GetMergeConflicts method for more information on how to use this operation.
  4974  //
  4975  // Note: This operation can generate multiple requests to a service.
  4976  //
  4977  //    // Example iterating over at most 3 pages of a GetMergeConflicts operation.
  4978  //    pageNum := 0
  4979  //    err := client.GetMergeConflictsPages(params,
  4980  //        func(page *codecommit.GetMergeConflictsOutput, lastPage bool) bool {
  4981  //            pageNum++
  4982  //            fmt.Println(page)
  4983  //            return pageNum <= 3
  4984  //        })
  4985  //
  4986  func (c *CodeCommit) GetMergeConflictsPages(input *GetMergeConflictsInput, fn func(*GetMergeConflictsOutput, bool) bool) error {
  4987  	return c.GetMergeConflictsPagesWithContext(aws.BackgroundContext(), input, fn)
  4988  }
  4989  
  4990  // GetMergeConflictsPagesWithContext same as GetMergeConflictsPages except
  4991  // it takes a Context and allows setting request options on the pages.
  4992  //
  4993  // The context must be non-nil and will be used for request cancellation. If
  4994  // the context is nil a panic will occur. In the future the SDK may create
  4995  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4996  // for more information on using Contexts.
  4997  func (c *CodeCommit) GetMergeConflictsPagesWithContext(ctx aws.Context, input *GetMergeConflictsInput, fn func(*GetMergeConflictsOutput, bool) bool, opts ...request.Option) error {
  4998  	p := request.Pagination{
  4999  		NewRequest: func() (*request.Request, error) {
  5000  			var inCpy *GetMergeConflictsInput
  5001  			if input != nil {
  5002  				tmp := *input
  5003  				inCpy = &tmp
  5004  			}
  5005  			req, _ := c.GetMergeConflictsRequest(inCpy)
  5006  			req.SetContext(ctx)
  5007  			req.ApplyOptions(opts...)
  5008  			return req, nil
  5009  		},
  5010  	}
  5011  
  5012  	for p.Next() {
  5013  		if !fn(p.Page().(*GetMergeConflictsOutput), !p.HasNextPage()) {
  5014  			break
  5015  		}
  5016  	}
  5017  
  5018  	return p.Err()
  5019  }
  5020  
  5021  const opGetMergeOptions = "GetMergeOptions"
  5022  
  5023  // GetMergeOptionsRequest generates a "aws/request.Request" representing the
  5024  // client's request for the GetMergeOptions operation. The "output" return
  5025  // value will be populated with the request's response once the request completes
  5026  // successfully.
  5027  //
  5028  // Use "Send" method on the returned Request to send the API call to the service.
  5029  // the "output" return value is not valid until after Send returns without error.
  5030  //
  5031  // See GetMergeOptions for more information on using the GetMergeOptions
  5032  // API call, and error handling.
  5033  //
  5034  // This method is useful when you want to inject custom logic or configuration
  5035  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5036  //
  5037  //
  5038  //    // Example sending a request using the GetMergeOptionsRequest method.
  5039  //    req, resp := client.GetMergeOptionsRequest(params)
  5040  //
  5041  //    err := req.Send()
  5042  //    if err == nil { // resp is now filled
  5043  //        fmt.Println(resp)
  5044  //    }
  5045  //
  5046  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeOptions
  5047  func (c *CodeCommit) GetMergeOptionsRequest(input *GetMergeOptionsInput) (req *request.Request, output *GetMergeOptionsOutput) {
  5048  	op := &request.Operation{
  5049  		Name:       opGetMergeOptions,
  5050  		HTTPMethod: "POST",
  5051  		HTTPPath:   "/",
  5052  	}
  5053  
  5054  	if input == nil {
  5055  		input = &GetMergeOptionsInput{}
  5056  	}
  5057  
  5058  	output = &GetMergeOptionsOutput{}
  5059  	req = c.newRequest(op, input, output)
  5060  	return
  5061  }
  5062  
  5063  // GetMergeOptions API operation for AWS CodeCommit.
  5064  //
  5065  // Returns information about the merge options available for merging two specified
  5066  // branches. For details about why a merge option is not available, use GetMergeConflicts
  5067  // or DescribeMergeConflicts.
  5068  //
  5069  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5070  // with awserr.Error's Code and Message methods to get detailed information about
  5071  // the error.
  5072  //
  5073  // See the AWS API reference guide for AWS CodeCommit's
  5074  // API operation GetMergeOptions for usage and error information.
  5075  //
  5076  // Returned Error Types:
  5077  //   * RepositoryNameRequiredException
  5078  //   A repository name is required, but was not specified.
  5079  //
  5080  //   * InvalidRepositoryNameException
  5081  //   A specified repository name is not valid.
  5082  //
  5083  //   This exception occurs only when a specified repository name is not valid.
  5084  //   Other exceptions occur when a required repository parameter is missing, or
  5085  //   when a specified repository does not exist.
  5086  //
  5087  //   * RepositoryDoesNotExistException
  5088  //   The specified repository does not exist.
  5089  //
  5090  //   * CommitRequiredException
  5091  //   A commit was not specified.
  5092  //
  5093  //   * CommitDoesNotExistException
  5094  //   The specified commit does not exist or no commit was specified, and the specified
  5095  //   repository has no default branch.
  5096  //
  5097  //   * InvalidCommitException
  5098  //   The specified commit is not valid.
  5099  //
  5100  //   * TipsDivergenceExceededException
  5101  //   The divergence between the tips of the provided commit specifiers is too
  5102  //   great to determine whether there might be any merge conflicts. Locally compare
  5103  //   the specifiers using git diff or a diff tool.
  5104  //
  5105  //   * InvalidConflictDetailLevelException
  5106  //   The specified conflict detail level is not valid.
  5107  //
  5108  //   * InvalidConflictResolutionStrategyException
  5109  //   The specified conflict resolution strategy is not valid.
  5110  //
  5111  //   * MaximumFileContentToLoadExceededException
  5112  //   The number of files to load exceeds the allowed limit.
  5113  //
  5114  //   * MaximumItemsToCompareExceededException
  5115  //   The number of items to compare between the source or destination branches
  5116  //   and the merge base has exceeded the maximum allowed.
  5117  //
  5118  //   * EncryptionIntegrityChecksFailedException
  5119  //   An encryption integrity check failed.
  5120  //
  5121  //   * EncryptionKeyAccessDeniedException
  5122  //   An encryption key could not be accessed.
  5123  //
  5124  //   * EncryptionKeyDisabledException
  5125  //   The encryption key is disabled.
  5126  //
  5127  //   * EncryptionKeyNotFoundException
  5128  //   No encryption key was found.
  5129  //
  5130  //   * EncryptionKeyUnavailableException
  5131  //   The encryption key is not available.
  5132  //
  5133  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeOptions
  5134  func (c *CodeCommit) GetMergeOptions(input *GetMergeOptionsInput) (*GetMergeOptionsOutput, error) {
  5135  	req, out := c.GetMergeOptionsRequest(input)
  5136  	return out, req.Send()
  5137  }
  5138  
  5139  // GetMergeOptionsWithContext is the same as GetMergeOptions with the addition of
  5140  // the ability to pass a context and additional request options.
  5141  //
  5142  // See GetMergeOptions for details on how to use this API operation.
  5143  //
  5144  // The context must be non-nil and will be used for request cancellation. If
  5145  // the context is nil a panic will occur. In the future the SDK may create
  5146  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5147  // for more information on using Contexts.
  5148  func (c *CodeCommit) GetMergeOptionsWithContext(ctx aws.Context, input *GetMergeOptionsInput, opts ...request.Option) (*GetMergeOptionsOutput, error) {
  5149  	req, out := c.GetMergeOptionsRequest(input)
  5150  	req.SetContext(ctx)
  5151  	req.ApplyOptions(opts...)
  5152  	return out, req.Send()
  5153  }
  5154  
  5155  const opGetPullRequest = "GetPullRequest"
  5156  
  5157  // GetPullRequestRequest generates a "aws/request.Request" representing the
  5158  // client's request for the GetPullRequest operation. The "output" return
  5159  // value will be populated with the request's response once the request completes
  5160  // successfully.
  5161  //
  5162  // Use "Send" method on the returned Request to send the API call to the service.
  5163  // the "output" return value is not valid until after Send returns without error.
  5164  //
  5165  // See GetPullRequest for more information on using the GetPullRequest
  5166  // API call, and error handling.
  5167  //
  5168  // This method is useful when you want to inject custom logic or configuration
  5169  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5170  //
  5171  //
  5172  //    // Example sending a request using the GetPullRequestRequest method.
  5173  //    req, resp := client.GetPullRequestRequest(params)
  5174  //
  5175  //    err := req.Send()
  5176  //    if err == nil { // resp is now filled
  5177  //        fmt.Println(resp)
  5178  //    }
  5179  //
  5180  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest
  5181  func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *request.Request, output *GetPullRequestOutput) {
  5182  	op := &request.Operation{
  5183  		Name:       opGetPullRequest,
  5184  		HTTPMethod: "POST",
  5185  		HTTPPath:   "/",
  5186  	}
  5187  
  5188  	if input == nil {
  5189  		input = &GetPullRequestInput{}
  5190  	}
  5191  
  5192  	output = &GetPullRequestOutput{}
  5193  	req = c.newRequest(op, input, output)
  5194  	return
  5195  }
  5196  
  5197  // GetPullRequest API operation for AWS CodeCommit.
  5198  //
  5199  // Gets information about a pull request in a specified repository.
  5200  //
  5201  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5202  // with awserr.Error's Code and Message methods to get detailed information about
  5203  // the error.
  5204  //
  5205  // See the AWS API reference guide for AWS CodeCommit's
  5206  // API operation GetPullRequest for usage and error information.
  5207  //
  5208  // Returned Error Types:
  5209  //   * PullRequestDoesNotExistException
  5210  //   The pull request ID could not be found. Make sure that you have specified
  5211  //   the correct repository name and pull request ID, and then try again.
  5212  //
  5213  //   * InvalidPullRequestIdException
  5214  //   The pull request ID is not valid. Make sure that you have provided the full
  5215  //   ID and that the pull request is in the specified repository, and then try
  5216  //   again.
  5217  //
  5218  //   * PullRequestIdRequiredException
  5219  //   A pull request ID is required, but none was provided.
  5220  //
  5221  //   * EncryptionIntegrityChecksFailedException
  5222  //   An encryption integrity check failed.
  5223  //
  5224  //   * EncryptionKeyAccessDeniedException
  5225  //   An encryption key could not be accessed.
  5226  //
  5227  //   * EncryptionKeyDisabledException
  5228  //   The encryption key is disabled.
  5229  //
  5230  //   * EncryptionKeyNotFoundException
  5231  //   No encryption key was found.
  5232  //
  5233  //   * EncryptionKeyUnavailableException
  5234  //   The encryption key is not available.
  5235  //
  5236  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest
  5237  func (c *CodeCommit) GetPullRequest(input *GetPullRequestInput) (*GetPullRequestOutput, error) {
  5238  	req, out := c.GetPullRequestRequest(input)
  5239  	return out, req.Send()
  5240  }
  5241  
  5242  // GetPullRequestWithContext is the same as GetPullRequest with the addition of
  5243  // the ability to pass a context and additional request options.
  5244  //
  5245  // See GetPullRequest for details on how to use this API operation.
  5246  //
  5247  // The context must be non-nil and will be used for request cancellation. If
  5248  // the context is nil a panic will occur. In the future the SDK may create
  5249  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5250  // for more information on using Contexts.
  5251  func (c *CodeCommit) GetPullRequestWithContext(ctx aws.Context, input *GetPullRequestInput, opts ...request.Option) (*GetPullRequestOutput, error) {
  5252  	req, out := c.GetPullRequestRequest(input)
  5253  	req.SetContext(ctx)
  5254  	req.ApplyOptions(opts...)
  5255  	return out, req.Send()
  5256  }
  5257  
  5258  const opGetPullRequestApprovalStates = "GetPullRequestApprovalStates"
  5259  
  5260  // GetPullRequestApprovalStatesRequest generates a "aws/request.Request" representing the
  5261  // client's request for the GetPullRequestApprovalStates operation. The "output" return
  5262  // value will be populated with the request's response once the request completes
  5263  // successfully.
  5264  //
  5265  // Use "Send" method on the returned Request to send the API call to the service.
  5266  // the "output" return value is not valid until after Send returns without error.
  5267  //
  5268  // See GetPullRequestApprovalStates for more information on using the GetPullRequestApprovalStates
  5269  // API call, and error handling.
  5270  //
  5271  // This method is useful when you want to inject custom logic or configuration
  5272  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5273  //
  5274  //
  5275  //    // Example sending a request using the GetPullRequestApprovalStatesRequest method.
  5276  //    req, resp := client.GetPullRequestApprovalStatesRequest(params)
  5277  //
  5278  //    err := req.Send()
  5279  //    if err == nil { // resp is now filled
  5280  //        fmt.Println(resp)
  5281  //    }
  5282  //
  5283  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestApprovalStates
  5284  func (c *CodeCommit) GetPullRequestApprovalStatesRequest(input *GetPullRequestApprovalStatesInput) (req *request.Request, output *GetPullRequestApprovalStatesOutput) {
  5285  	op := &request.Operation{
  5286  		Name:       opGetPullRequestApprovalStates,
  5287  		HTTPMethod: "POST",
  5288  		HTTPPath:   "/",
  5289  	}
  5290  
  5291  	if input == nil {
  5292  		input = &GetPullRequestApprovalStatesInput{}
  5293  	}
  5294  
  5295  	output = &GetPullRequestApprovalStatesOutput{}
  5296  	req = c.newRequest(op, input, output)
  5297  	return
  5298  }
  5299  
  5300  // GetPullRequestApprovalStates API operation for AWS CodeCommit.
  5301  //
  5302  // Gets information about the approval states for a specified pull request.
  5303  // Approval states only apply to pull requests that have one or more approval
  5304  // rules applied to them.
  5305  //
  5306  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5307  // with awserr.Error's Code and Message methods to get detailed information about
  5308  // the error.
  5309  //
  5310  // See the AWS API reference guide for AWS CodeCommit's
  5311  // API operation GetPullRequestApprovalStates for usage and error information.
  5312  //
  5313  // Returned Error Types:
  5314  //   * PullRequestDoesNotExistException
  5315  //   The pull request ID could not be found. Make sure that you have specified
  5316  //   the correct repository name and pull request ID, and then try again.
  5317  //
  5318  //   * InvalidPullRequestIdException
  5319  //   The pull request ID is not valid. Make sure that you have provided the full
  5320  //   ID and that the pull request is in the specified repository, and then try
  5321  //   again.
  5322  //
  5323  //   * PullRequestIdRequiredException
  5324  //   A pull request ID is required, but none was provided.
  5325  //
  5326  //   * InvalidRevisionIdException
  5327  //   The revision ID is not valid. Use GetPullRequest to determine the value.
  5328  //
  5329  //   * RevisionIdRequiredException
  5330  //   A revision ID is required, but was not provided.
  5331  //
  5332  //   * EncryptionIntegrityChecksFailedException
  5333  //   An encryption integrity check failed.
  5334  //
  5335  //   * EncryptionKeyAccessDeniedException
  5336  //   An encryption key could not be accessed.
  5337  //
  5338  //   * EncryptionKeyDisabledException
  5339  //   The encryption key is disabled.
  5340  //
  5341  //   * EncryptionKeyNotFoundException
  5342  //   No encryption key was found.
  5343  //
  5344  //   * EncryptionKeyUnavailableException
  5345  //   The encryption key is not available.
  5346  //
  5347  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestApprovalStates
  5348  func (c *CodeCommit) GetPullRequestApprovalStates(input *GetPullRequestApprovalStatesInput) (*GetPullRequestApprovalStatesOutput, error) {
  5349  	req, out := c.GetPullRequestApprovalStatesRequest(input)
  5350  	return out, req.Send()
  5351  }
  5352  
  5353  // GetPullRequestApprovalStatesWithContext is the same as GetPullRequestApprovalStates with the addition of
  5354  // the ability to pass a context and additional request options.
  5355  //
  5356  // See GetPullRequestApprovalStates for details on how to use this API operation.
  5357  //
  5358  // The context must be non-nil and will be used for request cancellation. If
  5359  // the context is nil a panic will occur. In the future the SDK may create
  5360  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5361  // for more information on using Contexts.
  5362  func (c *CodeCommit) GetPullRequestApprovalStatesWithContext(ctx aws.Context, input *GetPullRequestApprovalStatesInput, opts ...request.Option) (*GetPullRequestApprovalStatesOutput, error) {
  5363  	req, out := c.GetPullRequestApprovalStatesRequest(input)
  5364  	req.SetContext(ctx)
  5365  	req.ApplyOptions(opts...)
  5366  	return out, req.Send()
  5367  }
  5368  
  5369  const opGetPullRequestOverrideState = "GetPullRequestOverrideState"
  5370  
  5371  // GetPullRequestOverrideStateRequest generates a "aws/request.Request" representing the
  5372  // client's request for the GetPullRequestOverrideState operation. The "output" return
  5373  // value will be populated with the request's response once the request completes
  5374  // successfully.
  5375  //
  5376  // Use "Send" method on the returned Request to send the API call to the service.
  5377  // the "output" return value is not valid until after Send returns without error.
  5378  //
  5379  // See GetPullRequestOverrideState for more information on using the GetPullRequestOverrideState
  5380  // API call, and error handling.
  5381  //
  5382  // This method is useful when you want to inject custom logic or configuration
  5383  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5384  //
  5385  //
  5386  //    // Example sending a request using the GetPullRequestOverrideStateRequest method.
  5387  //    req, resp := client.GetPullRequestOverrideStateRequest(params)
  5388  //
  5389  //    err := req.Send()
  5390  //    if err == nil { // resp is now filled
  5391  //        fmt.Println(resp)
  5392  //    }
  5393  //
  5394  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestOverrideState
  5395  func (c *CodeCommit) GetPullRequestOverrideStateRequest(input *GetPullRequestOverrideStateInput) (req *request.Request, output *GetPullRequestOverrideStateOutput) {
  5396  	op := &request.Operation{
  5397  		Name:       opGetPullRequestOverrideState,
  5398  		HTTPMethod: "POST",
  5399  		HTTPPath:   "/",
  5400  	}
  5401  
  5402  	if input == nil {
  5403  		input = &GetPullRequestOverrideStateInput{}
  5404  	}
  5405  
  5406  	output = &GetPullRequestOverrideStateOutput{}
  5407  	req = c.newRequest(op, input, output)
  5408  	return
  5409  }
  5410  
  5411  // GetPullRequestOverrideState API operation for AWS CodeCommit.
  5412  //
  5413  // Returns information about whether approval rules have been set aside (overridden)
  5414  // for a pull request, and if so, the Amazon Resource Name (ARN) of the user
  5415  // or identity that overrode the rules and their requirements for the pull request.
  5416  //
  5417  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5418  // with awserr.Error's Code and Message methods to get detailed information about
  5419  // the error.
  5420  //
  5421  // See the AWS API reference guide for AWS CodeCommit's
  5422  // API operation GetPullRequestOverrideState for usage and error information.
  5423  //
  5424  // Returned Error Types:
  5425  //   * PullRequestDoesNotExistException
  5426  //   The pull request ID could not be found. Make sure that you have specified
  5427  //   the correct repository name and pull request ID, and then try again.
  5428  //
  5429  //   * InvalidPullRequestIdException
  5430  //   The pull request ID is not valid. Make sure that you have provided the full
  5431  //   ID and that the pull request is in the specified repository, and then try
  5432  //   again.
  5433  //
  5434  //   * PullRequestIdRequiredException
  5435  //   A pull request ID is required, but none was provided.
  5436  //
  5437  //   * InvalidRevisionIdException
  5438  //   The revision ID is not valid. Use GetPullRequest to determine the value.
  5439  //
  5440  //   * RevisionIdRequiredException
  5441  //   A revision ID is required, but was not provided.
  5442  //
  5443  //   * EncryptionIntegrityChecksFailedException
  5444  //   An encryption integrity check failed.
  5445  //
  5446  //   * EncryptionKeyAccessDeniedException
  5447  //   An encryption key could not be accessed.
  5448  //
  5449  //   * EncryptionKeyDisabledException
  5450  //   The encryption key is disabled.
  5451  //
  5452  //   * EncryptionKeyNotFoundException
  5453  //   No encryption key was found.
  5454  //
  5455  //   * EncryptionKeyUnavailableException
  5456  //   The encryption key is not available.
  5457  //
  5458  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestOverrideState
  5459  func (c *CodeCommit) GetPullRequestOverrideState(input *GetPullRequestOverrideStateInput) (*GetPullRequestOverrideStateOutput, error) {
  5460  	req, out := c.GetPullRequestOverrideStateRequest(input)
  5461  	return out, req.Send()
  5462  }
  5463  
  5464  // GetPullRequestOverrideStateWithContext is the same as GetPullRequestOverrideState with the addition of
  5465  // the ability to pass a context and additional request options.
  5466  //
  5467  // See GetPullRequestOverrideState for details on how to use this API operation.
  5468  //
  5469  // The context must be non-nil and will be used for request cancellation. If
  5470  // the context is nil a panic will occur. In the future the SDK may create
  5471  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5472  // for more information on using Contexts.
  5473  func (c *CodeCommit) GetPullRequestOverrideStateWithContext(ctx aws.Context, input *GetPullRequestOverrideStateInput, opts ...request.Option) (*GetPullRequestOverrideStateOutput, error) {
  5474  	req, out := c.GetPullRequestOverrideStateRequest(input)
  5475  	req.SetContext(ctx)
  5476  	req.ApplyOptions(opts...)
  5477  	return out, req.Send()
  5478  }
  5479  
  5480  const opGetRepository = "GetRepository"
  5481  
  5482  // GetRepositoryRequest generates a "aws/request.Request" representing the
  5483  // client's request for the GetRepository operation. The "output" return
  5484  // value will be populated with the request's response once the request completes
  5485  // successfully.
  5486  //
  5487  // Use "Send" method on the returned Request to send the API call to the service.
  5488  // the "output" return value is not valid until after Send returns without error.
  5489  //
  5490  // See GetRepository for more information on using the GetRepository
  5491  // API call, and error handling.
  5492  //
  5493  // This method is useful when you want to inject custom logic or configuration
  5494  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5495  //
  5496  //
  5497  //    // Example sending a request using the GetRepositoryRequest method.
  5498  //    req, resp := client.GetRepositoryRequest(params)
  5499  //
  5500  //    err := req.Send()
  5501  //    if err == nil { // resp is now filled
  5502  //        fmt.Println(resp)
  5503  //    }
  5504  //
  5505  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository
  5506  func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) {
  5507  	op := &request.Operation{
  5508  		Name:       opGetRepository,
  5509  		HTTPMethod: "POST",
  5510  		HTTPPath:   "/",
  5511  	}
  5512  
  5513  	if input == nil {
  5514  		input = &GetRepositoryInput{}
  5515  	}
  5516  
  5517  	output = &GetRepositoryOutput{}
  5518  	req = c.newRequest(op, input, output)
  5519  	return
  5520  }
  5521  
  5522  // GetRepository API operation for AWS CodeCommit.
  5523  //
  5524  // Returns information about a repository.
  5525  //
  5526  // The description field for a repository accepts all HTML characters and all
  5527  // valid Unicode characters. Applications that do not HTML-encode the description
  5528  // and display it in a webpage can expose users to potentially malicious code.
  5529  // Make sure that you HTML-encode the description field in any application that
  5530  // uses this API to display the repository description on a webpage.
  5531  //
  5532  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5533  // with awserr.Error's Code and Message methods to get detailed information about
  5534  // the error.
  5535  //
  5536  // See the AWS API reference guide for AWS CodeCommit's
  5537  // API operation GetRepository for usage and error information.
  5538  //
  5539  // Returned Error Types:
  5540  //   * RepositoryNameRequiredException
  5541  //   A repository name is required, but was not specified.
  5542  //
  5543  //   * RepositoryDoesNotExistException
  5544  //   The specified repository does not exist.
  5545  //
  5546  //   * InvalidRepositoryNameException
  5547  //   A specified repository name is not valid.
  5548  //
  5549  //   This exception occurs only when a specified repository name is not valid.
  5550  //   Other exceptions occur when a required repository parameter is missing, or
  5551  //   when a specified repository does not exist.
  5552  //
  5553  //   * EncryptionIntegrityChecksFailedException
  5554  //   An encryption integrity check failed.
  5555  //
  5556  //   * EncryptionKeyAccessDeniedException
  5557  //   An encryption key could not be accessed.
  5558  //
  5559  //   * EncryptionKeyDisabledException
  5560  //   The encryption key is disabled.
  5561  //
  5562  //   * EncryptionKeyNotFoundException
  5563  //   No encryption key was found.
  5564  //
  5565  //   * EncryptionKeyUnavailableException
  5566  //   The encryption key is not available.
  5567  //
  5568  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository
  5569  func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) {
  5570  	req, out := c.GetRepositoryRequest(input)
  5571  	return out, req.Send()
  5572  }
  5573  
  5574  // GetRepositoryWithContext is the same as GetRepository with the addition of
  5575  // the ability to pass a context and additional request options.
  5576  //
  5577  // See GetRepository for details on how to use this API operation.
  5578  //
  5579  // The context must be non-nil and will be used for request cancellation. If
  5580  // the context is nil a panic will occur. In the future the SDK may create
  5581  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5582  // for more information on using Contexts.
  5583  func (c *CodeCommit) GetRepositoryWithContext(ctx aws.Context, input *GetRepositoryInput, opts ...request.Option) (*GetRepositoryOutput, error) {
  5584  	req, out := c.GetRepositoryRequest(input)
  5585  	req.SetContext(ctx)
  5586  	req.ApplyOptions(opts...)
  5587  	return out, req.Send()
  5588  }
  5589  
  5590  const opGetRepositoryTriggers = "GetRepositoryTriggers"
  5591  
  5592  // GetRepositoryTriggersRequest generates a "aws/request.Request" representing the
  5593  // client's request for the GetRepositoryTriggers operation. The "output" return
  5594  // value will be populated with the request's response once the request completes
  5595  // successfully.
  5596  //
  5597  // Use "Send" method on the returned Request to send the API call to the service.
  5598  // the "output" return value is not valid until after Send returns without error.
  5599  //
  5600  // See GetRepositoryTriggers for more information on using the GetRepositoryTriggers
  5601  // API call, and error handling.
  5602  //
  5603  // This method is useful when you want to inject custom logic or configuration
  5604  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5605  //
  5606  //
  5607  //    // Example sending a request using the GetRepositoryTriggersRequest method.
  5608  //    req, resp := client.GetRepositoryTriggersRequest(params)
  5609  //
  5610  //    err := req.Send()
  5611  //    if err == nil { // resp is now filled
  5612  //        fmt.Println(resp)
  5613  //    }
  5614  //
  5615  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers
  5616  func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput) {
  5617  	op := &request.Operation{
  5618  		Name:       opGetRepositoryTriggers,
  5619  		HTTPMethod: "POST",
  5620  		HTTPPath:   "/",
  5621  	}
  5622  
  5623  	if input == nil {
  5624  		input = &GetRepositoryTriggersInput{}
  5625  	}
  5626  
  5627  	output = &GetRepositoryTriggersOutput{}
  5628  	req = c.newRequest(op, input, output)
  5629  	return
  5630  }
  5631  
  5632  // GetRepositoryTriggers API operation for AWS CodeCommit.
  5633  //
  5634  // Gets information about triggers configured for a repository.
  5635  //
  5636  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5637  // with awserr.Error's Code and Message methods to get detailed information about
  5638  // the error.
  5639  //
  5640  // See the AWS API reference guide for AWS CodeCommit's
  5641  // API operation GetRepositoryTriggers for usage and error information.
  5642  //
  5643  // Returned Error Types:
  5644  //   * RepositoryNameRequiredException
  5645  //   A repository name is required, but was not specified.
  5646  //
  5647  //   * InvalidRepositoryNameException
  5648  //   A specified repository name is not valid.
  5649  //
  5650  //   This exception occurs only when a specified repository name is not valid.
  5651  //   Other exceptions occur when a required repository parameter is missing, or
  5652  //   when a specified repository does not exist.
  5653  //
  5654  //   * RepositoryDoesNotExistException
  5655  //   The specified repository does not exist.
  5656  //
  5657  //   * EncryptionIntegrityChecksFailedException
  5658  //   An encryption integrity check failed.
  5659  //
  5660  //   * EncryptionKeyAccessDeniedException
  5661  //   An encryption key could not be accessed.
  5662  //
  5663  //   * EncryptionKeyDisabledException
  5664  //   The encryption key is disabled.
  5665  //
  5666  //   * EncryptionKeyNotFoundException
  5667  //   No encryption key was found.
  5668  //
  5669  //   * EncryptionKeyUnavailableException
  5670  //   The encryption key is not available.
  5671  //
  5672  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers
  5673  func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) {
  5674  	req, out := c.GetRepositoryTriggersRequest(input)
  5675  	return out, req.Send()
  5676  }
  5677  
  5678  // GetRepositoryTriggersWithContext is the same as GetRepositoryTriggers with the addition of
  5679  // the ability to pass a context and additional request options.
  5680  //
  5681  // See GetRepositoryTriggers for details on how to use this API operation.
  5682  //
  5683  // The context must be non-nil and will be used for request cancellation. If
  5684  // the context is nil a panic will occur. In the future the SDK may create
  5685  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5686  // for more information on using Contexts.
  5687  func (c *CodeCommit) GetRepositoryTriggersWithContext(ctx aws.Context, input *GetRepositoryTriggersInput, opts ...request.Option) (*GetRepositoryTriggersOutput, error) {
  5688  	req, out := c.GetRepositoryTriggersRequest(input)
  5689  	req.SetContext(ctx)
  5690  	req.ApplyOptions(opts...)
  5691  	return out, req.Send()
  5692  }
  5693  
  5694  const opListApprovalRuleTemplates = "ListApprovalRuleTemplates"
  5695  
  5696  // ListApprovalRuleTemplatesRequest generates a "aws/request.Request" representing the
  5697  // client's request for the ListApprovalRuleTemplates operation. The "output" return
  5698  // value will be populated with the request's response once the request completes
  5699  // successfully.
  5700  //
  5701  // Use "Send" method on the returned Request to send the API call to the service.
  5702  // the "output" return value is not valid until after Send returns without error.
  5703  //
  5704  // See ListApprovalRuleTemplates for more information on using the ListApprovalRuleTemplates
  5705  // API call, and error handling.
  5706  //
  5707  // This method is useful when you want to inject custom logic or configuration
  5708  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5709  //
  5710  //
  5711  //    // Example sending a request using the ListApprovalRuleTemplatesRequest method.
  5712  //    req, resp := client.ListApprovalRuleTemplatesRequest(params)
  5713  //
  5714  //    err := req.Send()
  5715  //    if err == nil { // resp is now filled
  5716  //        fmt.Println(resp)
  5717  //    }
  5718  //
  5719  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListApprovalRuleTemplates
  5720  func (c *CodeCommit) ListApprovalRuleTemplatesRequest(input *ListApprovalRuleTemplatesInput) (req *request.Request, output *ListApprovalRuleTemplatesOutput) {
  5721  	op := &request.Operation{
  5722  		Name:       opListApprovalRuleTemplates,
  5723  		HTTPMethod: "POST",
  5724  		HTTPPath:   "/",
  5725  		Paginator: &request.Paginator{
  5726  			InputTokens:     []string{"nextToken"},
  5727  			OutputTokens:    []string{"nextToken"},
  5728  			LimitToken:      "maxResults",
  5729  			TruncationToken: "",
  5730  		},
  5731  	}
  5732  
  5733  	if input == nil {
  5734  		input = &ListApprovalRuleTemplatesInput{}
  5735  	}
  5736  
  5737  	output = &ListApprovalRuleTemplatesOutput{}
  5738  	req = c.newRequest(op, input, output)
  5739  	return
  5740  }
  5741  
  5742  // ListApprovalRuleTemplates API operation for AWS CodeCommit.
  5743  //
  5744  // Lists all approval rule templates in the specified AWS Region in your AWS
  5745  // account. If an AWS Region is not specified, the AWS Region where you are
  5746  // signed in is used.
  5747  //
  5748  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5749  // with awserr.Error's Code and Message methods to get detailed information about
  5750  // the error.
  5751  //
  5752  // See the AWS API reference guide for AWS CodeCommit's
  5753  // API operation ListApprovalRuleTemplates for usage and error information.
  5754  //
  5755  // Returned Error Types:
  5756  //   * InvalidMaxResultsException
  5757  //   The specified number of maximum results is not valid.
  5758  //
  5759  //   * InvalidContinuationTokenException
  5760  //   The specified continuation token is not valid.
  5761  //
  5762  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListApprovalRuleTemplates
  5763  func (c *CodeCommit) ListApprovalRuleTemplates(input *ListApprovalRuleTemplatesInput) (*ListApprovalRuleTemplatesOutput, error) {
  5764  	req, out := c.ListApprovalRuleTemplatesRequest(input)
  5765  	return out, req.Send()
  5766  }
  5767  
  5768  // ListApprovalRuleTemplatesWithContext is the same as ListApprovalRuleTemplates with the addition of
  5769  // the ability to pass a context and additional request options.
  5770  //
  5771  // See ListApprovalRuleTemplates for details on how to use this API operation.
  5772  //
  5773  // The context must be non-nil and will be used for request cancellation. If
  5774  // the context is nil a panic will occur. In the future the SDK may create
  5775  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5776  // for more information on using Contexts.
  5777  func (c *CodeCommit) ListApprovalRuleTemplatesWithContext(ctx aws.Context, input *ListApprovalRuleTemplatesInput, opts ...request.Option) (*ListApprovalRuleTemplatesOutput, error) {
  5778  	req, out := c.ListApprovalRuleTemplatesRequest(input)
  5779  	req.SetContext(ctx)
  5780  	req.ApplyOptions(opts...)
  5781  	return out, req.Send()
  5782  }
  5783  
  5784  // ListApprovalRuleTemplatesPages iterates over the pages of a ListApprovalRuleTemplates operation,
  5785  // calling the "fn" function with the response data for each page. To stop
  5786  // iterating, return false from the fn function.
  5787  //
  5788  // See ListApprovalRuleTemplates method for more information on how to use this operation.
  5789  //
  5790  // Note: This operation can generate multiple requests to a service.
  5791  //
  5792  //    // Example iterating over at most 3 pages of a ListApprovalRuleTemplates operation.
  5793  //    pageNum := 0
  5794  //    err := client.ListApprovalRuleTemplatesPages(params,
  5795  //        func(page *codecommit.ListApprovalRuleTemplatesOutput, lastPage bool) bool {
  5796  //            pageNum++
  5797  //            fmt.Println(page)
  5798  //            return pageNum <= 3
  5799  //        })
  5800  //
  5801  func (c *CodeCommit) ListApprovalRuleTemplatesPages(input *ListApprovalRuleTemplatesInput, fn func(*ListApprovalRuleTemplatesOutput, bool) bool) error {
  5802  	return c.ListApprovalRuleTemplatesPagesWithContext(aws.BackgroundContext(), input, fn)
  5803  }
  5804  
  5805  // ListApprovalRuleTemplatesPagesWithContext same as ListApprovalRuleTemplatesPages except
  5806  // it takes a Context and allows setting request options on the pages.
  5807  //
  5808  // The context must be non-nil and will be used for request cancellation. If
  5809  // the context is nil a panic will occur. In the future the SDK may create
  5810  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5811  // for more information on using Contexts.
  5812  func (c *CodeCommit) ListApprovalRuleTemplatesPagesWithContext(ctx aws.Context, input *ListApprovalRuleTemplatesInput, fn func(*ListApprovalRuleTemplatesOutput, bool) bool, opts ...request.Option) error {
  5813  	p := request.Pagination{
  5814  		NewRequest: func() (*request.Request, error) {
  5815  			var inCpy *ListApprovalRuleTemplatesInput
  5816  			if input != nil {
  5817  				tmp := *input
  5818  				inCpy = &tmp
  5819  			}
  5820  			req, _ := c.ListApprovalRuleTemplatesRequest(inCpy)
  5821  			req.SetContext(ctx)
  5822  			req.ApplyOptions(opts...)
  5823  			return req, nil
  5824  		},
  5825  	}
  5826  
  5827  	for p.Next() {
  5828  		if !fn(p.Page().(*ListApprovalRuleTemplatesOutput), !p.HasNextPage()) {
  5829  			break
  5830  		}
  5831  	}
  5832  
  5833  	return p.Err()
  5834  }
  5835  
  5836  const opListAssociatedApprovalRuleTemplatesForRepository = "ListAssociatedApprovalRuleTemplatesForRepository"
  5837  
  5838  // ListAssociatedApprovalRuleTemplatesForRepositoryRequest generates a "aws/request.Request" representing the
  5839  // client's request for the ListAssociatedApprovalRuleTemplatesForRepository operation. The "output" return
  5840  // value will be populated with the request's response once the request completes
  5841  // successfully.
  5842  //
  5843  // Use "Send" method on the returned Request to send the API call to the service.
  5844  // the "output" return value is not valid until after Send returns without error.
  5845  //
  5846  // See ListAssociatedApprovalRuleTemplatesForRepository for more information on using the ListAssociatedApprovalRuleTemplatesForRepository
  5847  // API call, and error handling.
  5848  //
  5849  // This method is useful when you want to inject custom logic or configuration
  5850  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5851  //
  5852  //
  5853  //    // Example sending a request using the ListAssociatedApprovalRuleTemplatesForRepositoryRequest method.
  5854  //    req, resp := client.ListAssociatedApprovalRuleTemplatesForRepositoryRequest(params)
  5855  //
  5856  //    err := req.Send()
  5857  //    if err == nil { // resp is now filled
  5858  //        fmt.Println(resp)
  5859  //    }
  5860  //
  5861  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListAssociatedApprovalRuleTemplatesForRepository
  5862  func (c *CodeCommit) ListAssociatedApprovalRuleTemplatesForRepositoryRequest(input *ListAssociatedApprovalRuleTemplatesForRepositoryInput) (req *request.Request, output *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) {
  5863  	op := &request.Operation{
  5864  		Name:       opListAssociatedApprovalRuleTemplatesForRepository,
  5865  		HTTPMethod: "POST",
  5866  		HTTPPath:   "/",
  5867  		Paginator: &request.Paginator{
  5868  			InputTokens:     []string{"nextToken"},
  5869  			OutputTokens:    []string{"nextToken"},
  5870  			LimitToken:      "maxResults",
  5871  			TruncationToken: "",
  5872  		},
  5873  	}
  5874  
  5875  	if input == nil {
  5876  		input = &ListAssociatedApprovalRuleTemplatesForRepositoryInput{}
  5877  	}
  5878  
  5879  	output = &ListAssociatedApprovalRuleTemplatesForRepositoryOutput{}
  5880  	req = c.newRequest(op, input, output)
  5881  	return
  5882  }
  5883  
  5884  // ListAssociatedApprovalRuleTemplatesForRepository API operation for AWS CodeCommit.
  5885  //
  5886  // Lists all approval rule templates that are associated with a specified repository.
  5887  //
  5888  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5889  // with awserr.Error's Code and Message methods to get detailed information about
  5890  // the error.
  5891  //
  5892  // See the AWS API reference guide for AWS CodeCommit's
  5893  // API operation ListAssociatedApprovalRuleTemplatesForRepository for usage and error information.
  5894  //
  5895  // Returned Error Types:
  5896  //   * RepositoryNameRequiredException
  5897  //   A repository name is required, but was not specified.
  5898  //
  5899  //   * InvalidRepositoryNameException
  5900  //   A specified repository name is not valid.
  5901  //
  5902  //   This exception occurs only when a specified repository name is not valid.
  5903  //   Other exceptions occur when a required repository parameter is missing, or
  5904  //   when a specified repository does not exist.
  5905  //
  5906  //   * RepositoryDoesNotExistException
  5907  //   The specified repository does not exist.
  5908  //
  5909  //   * InvalidMaxResultsException
  5910  //   The specified number of maximum results is not valid.
  5911  //
  5912  //   * InvalidContinuationTokenException
  5913  //   The specified continuation token is not valid.
  5914  //
  5915  //   * EncryptionIntegrityChecksFailedException
  5916  //   An encryption integrity check failed.
  5917  //
  5918  //   * EncryptionKeyAccessDeniedException
  5919  //   An encryption key could not be accessed.
  5920  //
  5921  //   * EncryptionKeyDisabledException
  5922  //   The encryption key is disabled.
  5923  //
  5924  //   * EncryptionKeyNotFoundException
  5925  //   No encryption key was found.
  5926  //
  5927  //   * EncryptionKeyUnavailableException
  5928  //   The encryption key is not available.
  5929  //
  5930  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListAssociatedApprovalRuleTemplatesForRepository
  5931  func (c *CodeCommit) ListAssociatedApprovalRuleTemplatesForRepository(input *ListAssociatedApprovalRuleTemplatesForRepositoryInput) (*ListAssociatedApprovalRuleTemplatesForRepositoryOutput, error) {
  5932  	req, out := c.ListAssociatedApprovalRuleTemplatesForRepositoryRequest(input)
  5933  	return out, req.Send()
  5934  }
  5935  
  5936  // ListAssociatedApprovalRuleTemplatesForRepositoryWithContext is the same as ListAssociatedApprovalRuleTemplatesForRepository with the addition of
  5937  // the ability to pass a context and additional request options.
  5938  //
  5939  // See ListAssociatedApprovalRuleTemplatesForRepository for details on how to use this API operation.
  5940  //
  5941  // The context must be non-nil and will be used for request cancellation. If
  5942  // the context is nil a panic will occur. In the future the SDK may create
  5943  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5944  // for more information on using Contexts.
  5945  func (c *CodeCommit) ListAssociatedApprovalRuleTemplatesForRepositoryWithContext(ctx aws.Context, input *ListAssociatedApprovalRuleTemplatesForRepositoryInput, opts ...request.Option) (*ListAssociatedApprovalRuleTemplatesForRepositoryOutput, error) {
  5946  	req, out := c.ListAssociatedApprovalRuleTemplatesForRepositoryRequest(input)
  5947  	req.SetContext(ctx)
  5948  	req.ApplyOptions(opts...)
  5949  	return out, req.Send()
  5950  }
  5951  
  5952  // ListAssociatedApprovalRuleTemplatesForRepositoryPages iterates over the pages of a ListAssociatedApprovalRuleTemplatesForRepository operation,
  5953  // calling the "fn" function with the response data for each page. To stop
  5954  // iterating, return false from the fn function.
  5955  //
  5956  // See ListAssociatedApprovalRuleTemplatesForRepository method for more information on how to use this operation.
  5957  //
  5958  // Note: This operation can generate multiple requests to a service.
  5959  //
  5960  //    // Example iterating over at most 3 pages of a ListAssociatedApprovalRuleTemplatesForRepository operation.
  5961  //    pageNum := 0
  5962  //    err := client.ListAssociatedApprovalRuleTemplatesForRepositoryPages(params,
  5963  //        func(page *codecommit.ListAssociatedApprovalRuleTemplatesForRepositoryOutput, lastPage bool) bool {
  5964  //            pageNum++
  5965  //            fmt.Println(page)
  5966  //            return pageNum <= 3
  5967  //        })
  5968  //
  5969  func (c *CodeCommit) ListAssociatedApprovalRuleTemplatesForRepositoryPages(input *ListAssociatedApprovalRuleTemplatesForRepositoryInput, fn func(*ListAssociatedApprovalRuleTemplatesForRepositoryOutput, bool) bool) error {
  5970  	return c.ListAssociatedApprovalRuleTemplatesForRepositoryPagesWithContext(aws.BackgroundContext(), input, fn)
  5971  }
  5972  
  5973  // ListAssociatedApprovalRuleTemplatesForRepositoryPagesWithContext same as ListAssociatedApprovalRuleTemplatesForRepositoryPages except
  5974  // it takes a Context and allows setting request options on the pages.
  5975  //
  5976  // The context must be non-nil and will be used for request cancellation. If
  5977  // the context is nil a panic will occur. In the future the SDK may create
  5978  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5979  // for more information on using Contexts.
  5980  func (c *CodeCommit) ListAssociatedApprovalRuleTemplatesForRepositoryPagesWithContext(ctx aws.Context, input *ListAssociatedApprovalRuleTemplatesForRepositoryInput, fn func(*ListAssociatedApprovalRuleTemplatesForRepositoryOutput, bool) bool, opts ...request.Option) error {
  5981  	p := request.Pagination{
  5982  		NewRequest: func() (*request.Request, error) {
  5983  			var inCpy *ListAssociatedApprovalRuleTemplatesForRepositoryInput
  5984  			if input != nil {
  5985  				tmp := *input
  5986  				inCpy = &tmp
  5987  			}
  5988  			req, _ := c.ListAssociatedApprovalRuleTemplatesForRepositoryRequest(inCpy)
  5989  			req.SetContext(ctx)
  5990  			req.ApplyOptions(opts...)
  5991  			return req, nil
  5992  		},
  5993  	}
  5994  
  5995  	for p.Next() {
  5996  		if !fn(p.Page().(*ListAssociatedApprovalRuleTemplatesForRepositoryOutput), !p.HasNextPage()) {
  5997  			break
  5998  		}
  5999  	}
  6000  
  6001  	return p.Err()
  6002  }
  6003  
  6004  const opListBranches = "ListBranches"
  6005  
  6006  // ListBranchesRequest generates a "aws/request.Request" representing the
  6007  // client's request for the ListBranches operation. The "output" return
  6008  // value will be populated with the request's response once the request completes
  6009  // successfully.
  6010  //
  6011  // Use "Send" method on the returned Request to send the API call to the service.
  6012  // the "output" return value is not valid until after Send returns without error.
  6013  //
  6014  // See ListBranches for more information on using the ListBranches
  6015  // API call, and error handling.
  6016  //
  6017  // This method is useful when you want to inject custom logic or configuration
  6018  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6019  //
  6020  //
  6021  //    // Example sending a request using the ListBranchesRequest method.
  6022  //    req, resp := client.ListBranchesRequest(params)
  6023  //
  6024  //    err := req.Send()
  6025  //    if err == nil { // resp is now filled
  6026  //        fmt.Println(resp)
  6027  //    }
  6028  //
  6029  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches
  6030  func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) {
  6031  	op := &request.Operation{
  6032  		Name:       opListBranches,
  6033  		HTTPMethod: "POST",
  6034  		HTTPPath:   "/",
  6035  		Paginator: &request.Paginator{
  6036  			InputTokens:     []string{"nextToken"},
  6037  			OutputTokens:    []string{"nextToken"},
  6038  			LimitToken:      "",
  6039  			TruncationToken: "",
  6040  		},
  6041  	}
  6042  
  6043  	if input == nil {
  6044  		input = &ListBranchesInput{}
  6045  	}
  6046  
  6047  	output = &ListBranchesOutput{}
  6048  	req = c.newRequest(op, input, output)
  6049  	return
  6050  }
  6051  
  6052  // ListBranches API operation for AWS CodeCommit.
  6053  //
  6054  // Gets information about one or more branches in a repository.
  6055  //
  6056  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6057  // with awserr.Error's Code and Message methods to get detailed information about
  6058  // the error.
  6059  //
  6060  // See the AWS API reference guide for AWS CodeCommit's
  6061  // API operation ListBranches for usage and error information.
  6062  //
  6063  // Returned Error Types:
  6064  //   * RepositoryNameRequiredException
  6065  //   A repository name is required, but was not specified.
  6066  //
  6067  //   * RepositoryDoesNotExistException
  6068  //   The specified repository does not exist.
  6069  //
  6070  //   * InvalidRepositoryNameException
  6071  //   A specified repository name is not valid.
  6072  //
  6073  //   This exception occurs only when a specified repository name is not valid.
  6074  //   Other exceptions occur when a required repository parameter is missing, or
  6075  //   when a specified repository does not exist.
  6076  //
  6077  //   * EncryptionIntegrityChecksFailedException
  6078  //   An encryption integrity check failed.
  6079  //
  6080  //   * EncryptionKeyAccessDeniedException
  6081  //   An encryption key could not be accessed.
  6082  //
  6083  //   * EncryptionKeyDisabledException
  6084  //   The encryption key is disabled.
  6085  //
  6086  //   * EncryptionKeyNotFoundException
  6087  //   No encryption key was found.
  6088  //
  6089  //   * EncryptionKeyUnavailableException
  6090  //   The encryption key is not available.
  6091  //
  6092  //   * InvalidContinuationTokenException
  6093  //   The specified continuation token is not valid.
  6094  //
  6095  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches
  6096  func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) {
  6097  	req, out := c.ListBranchesRequest(input)
  6098  	return out, req.Send()
  6099  }
  6100  
  6101  // ListBranchesWithContext is the same as ListBranches with the addition of
  6102  // the ability to pass a context and additional request options.
  6103  //
  6104  // See ListBranches for details on how to use this API operation.
  6105  //
  6106  // The context must be non-nil and will be used for request cancellation. If
  6107  // the context is nil a panic will occur. In the future the SDK may create
  6108  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6109  // for more information on using Contexts.
  6110  func (c *CodeCommit) ListBranchesWithContext(ctx aws.Context, input *ListBranchesInput, opts ...request.Option) (*ListBranchesOutput, error) {
  6111  	req, out := c.ListBranchesRequest(input)
  6112  	req.SetContext(ctx)
  6113  	req.ApplyOptions(opts...)
  6114  	return out, req.Send()
  6115  }
  6116  
  6117  // ListBranchesPages iterates over the pages of a ListBranches operation,
  6118  // calling the "fn" function with the response data for each page. To stop
  6119  // iterating, return false from the fn function.
  6120  //
  6121  // See ListBranches method for more information on how to use this operation.
  6122  //
  6123  // Note: This operation can generate multiple requests to a service.
  6124  //
  6125  //    // Example iterating over at most 3 pages of a ListBranches operation.
  6126  //    pageNum := 0
  6127  //    err := client.ListBranchesPages(params,
  6128  //        func(page *codecommit.ListBranchesOutput, lastPage bool) bool {
  6129  //            pageNum++
  6130  //            fmt.Println(page)
  6131  //            return pageNum <= 3
  6132  //        })
  6133  //
  6134  func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool) error {
  6135  	return c.ListBranchesPagesWithContext(aws.BackgroundContext(), input, fn)
  6136  }
  6137  
  6138  // ListBranchesPagesWithContext same as ListBranchesPages except
  6139  // it takes a Context and allows setting request options on the pages.
  6140  //
  6141  // The context must be non-nil and will be used for request cancellation. If
  6142  // the context is nil a panic will occur. In the future the SDK may create
  6143  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6144  // for more information on using Contexts.
  6145  func (c *CodeCommit) ListBranchesPagesWithContext(ctx aws.Context, input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool, opts ...request.Option) error {
  6146  	p := request.Pagination{
  6147  		NewRequest: func() (*request.Request, error) {
  6148  			var inCpy *ListBranchesInput
  6149  			if input != nil {
  6150  				tmp := *input
  6151  				inCpy = &tmp
  6152  			}
  6153  			req, _ := c.ListBranchesRequest(inCpy)
  6154  			req.SetContext(ctx)
  6155  			req.ApplyOptions(opts...)
  6156  			return req, nil
  6157  		},
  6158  	}
  6159  
  6160  	for p.Next() {
  6161  		if !fn(p.Page().(*ListBranchesOutput), !p.HasNextPage()) {
  6162  			break
  6163  		}
  6164  	}
  6165  
  6166  	return p.Err()
  6167  }
  6168  
  6169  const opListPullRequests = "ListPullRequests"
  6170  
  6171  // ListPullRequestsRequest generates a "aws/request.Request" representing the
  6172  // client's request for the ListPullRequests operation. The "output" return
  6173  // value will be populated with the request's response once the request completes
  6174  // successfully.
  6175  //
  6176  // Use "Send" method on the returned Request to send the API call to the service.
  6177  // the "output" return value is not valid until after Send returns without error.
  6178  //
  6179  // See ListPullRequests for more information on using the ListPullRequests
  6180  // API call, and error handling.
  6181  //
  6182  // This method is useful when you want to inject custom logic or configuration
  6183  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6184  //
  6185  //
  6186  //    // Example sending a request using the ListPullRequestsRequest method.
  6187  //    req, resp := client.ListPullRequestsRequest(params)
  6188  //
  6189  //    err := req.Send()
  6190  //    if err == nil { // resp is now filled
  6191  //        fmt.Println(resp)
  6192  //    }
  6193  //
  6194  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests
  6195  func (c *CodeCommit) ListPullRequestsRequest(input *ListPullRequestsInput) (req *request.Request, output *ListPullRequestsOutput) {
  6196  	op := &request.Operation{
  6197  		Name:       opListPullRequests,
  6198  		HTTPMethod: "POST",
  6199  		HTTPPath:   "/",
  6200  		Paginator: &request.Paginator{
  6201  			InputTokens:     []string{"nextToken"},
  6202  			OutputTokens:    []string{"nextToken"},
  6203  			LimitToken:      "maxResults",
  6204  			TruncationToken: "",
  6205  		},
  6206  	}
  6207  
  6208  	if input == nil {
  6209  		input = &ListPullRequestsInput{}
  6210  	}
  6211  
  6212  	output = &ListPullRequestsOutput{}
  6213  	req = c.newRequest(op, input, output)
  6214  	return
  6215  }
  6216  
  6217  // ListPullRequests API operation for AWS CodeCommit.
  6218  //
  6219  // Returns a list of pull requests for a specified repository. The return list
  6220  // can be refined by pull request status or pull request author ARN.
  6221  //
  6222  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6223  // with awserr.Error's Code and Message methods to get detailed information about
  6224  // the error.
  6225  //
  6226  // See the AWS API reference guide for AWS CodeCommit's
  6227  // API operation ListPullRequests for usage and error information.
  6228  //
  6229  // Returned Error Types:
  6230  //   * InvalidPullRequestStatusException
  6231  //   The pull request status is not valid. The only valid values are OPEN and
  6232  //   CLOSED.
  6233  //
  6234  //   * InvalidAuthorArnException
  6235  //   The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
  6236  //   the full ARN for the author of the pull request, and then try again.
  6237  //
  6238  //   * AuthorDoesNotExistException
  6239  //   The specified Amazon Resource Name (ARN) does not exist in the AWS account.
  6240  //
  6241  //   * RepositoryNameRequiredException
  6242  //   A repository name is required, but was not specified.
  6243  //
  6244  //   * InvalidRepositoryNameException
  6245  //   A specified repository name is not valid.
  6246  //
  6247  //   This exception occurs only when a specified repository name is not valid.
  6248  //   Other exceptions occur when a required repository parameter is missing, or
  6249  //   when a specified repository does not exist.
  6250  //
  6251  //   * RepositoryDoesNotExistException
  6252  //   The specified repository does not exist.
  6253  //
  6254  //   * InvalidMaxResultsException
  6255  //   The specified number of maximum results is not valid.
  6256  //
  6257  //   * InvalidContinuationTokenException
  6258  //   The specified continuation token is not valid.
  6259  //
  6260  //   * EncryptionIntegrityChecksFailedException
  6261  //   An encryption integrity check failed.
  6262  //
  6263  //   * EncryptionKeyAccessDeniedException
  6264  //   An encryption key could not be accessed.
  6265  //
  6266  //   * EncryptionKeyDisabledException
  6267  //   The encryption key is disabled.
  6268  //
  6269  //   * EncryptionKeyNotFoundException
  6270  //   No encryption key was found.
  6271  //
  6272  //   * EncryptionKeyUnavailableException
  6273  //   The encryption key is not available.
  6274  //
  6275  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests
  6276  func (c *CodeCommit) ListPullRequests(input *ListPullRequestsInput) (*ListPullRequestsOutput, error) {
  6277  	req, out := c.ListPullRequestsRequest(input)
  6278  	return out, req.Send()
  6279  }
  6280  
  6281  // ListPullRequestsWithContext is the same as ListPullRequests with the addition of
  6282  // the ability to pass a context and additional request options.
  6283  //
  6284  // See ListPullRequests for details on how to use this API operation.
  6285  //
  6286  // The context must be non-nil and will be used for request cancellation. If
  6287  // the context is nil a panic will occur. In the future the SDK may create
  6288  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6289  // for more information on using Contexts.
  6290  func (c *CodeCommit) ListPullRequestsWithContext(ctx aws.Context, input *ListPullRequestsInput, opts ...request.Option) (*ListPullRequestsOutput, error) {
  6291  	req, out := c.ListPullRequestsRequest(input)
  6292  	req.SetContext(ctx)
  6293  	req.ApplyOptions(opts...)
  6294  	return out, req.Send()
  6295  }
  6296  
  6297  // ListPullRequestsPages iterates over the pages of a ListPullRequests operation,
  6298  // calling the "fn" function with the response data for each page. To stop
  6299  // iterating, return false from the fn function.
  6300  //
  6301  // See ListPullRequests method for more information on how to use this operation.
  6302  //
  6303  // Note: This operation can generate multiple requests to a service.
  6304  //
  6305  //    // Example iterating over at most 3 pages of a ListPullRequests operation.
  6306  //    pageNum := 0
  6307  //    err := client.ListPullRequestsPages(params,
  6308  //        func(page *codecommit.ListPullRequestsOutput, lastPage bool) bool {
  6309  //            pageNum++
  6310  //            fmt.Println(page)
  6311  //            return pageNum <= 3
  6312  //        })
  6313  //
  6314  func (c *CodeCommit) ListPullRequestsPages(input *ListPullRequestsInput, fn func(*ListPullRequestsOutput, bool) bool) error {
  6315  	return c.ListPullRequestsPagesWithContext(aws.BackgroundContext(), input, fn)
  6316  }
  6317  
  6318  // ListPullRequestsPagesWithContext same as ListPullRequestsPages except
  6319  // it takes a Context and allows setting request options on the pages.
  6320  //
  6321  // The context must be non-nil and will be used for request cancellation. If
  6322  // the context is nil a panic will occur. In the future the SDK may create
  6323  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6324  // for more information on using Contexts.
  6325  func (c *CodeCommit) ListPullRequestsPagesWithContext(ctx aws.Context, input *ListPullRequestsInput, fn func(*ListPullRequestsOutput, bool) bool, opts ...request.Option) error {
  6326  	p := request.Pagination{
  6327  		NewRequest: func() (*request.Request, error) {
  6328  			var inCpy *ListPullRequestsInput
  6329  			if input != nil {
  6330  				tmp := *input
  6331  				inCpy = &tmp
  6332  			}
  6333  			req, _ := c.ListPullRequestsRequest(inCpy)
  6334  			req.SetContext(ctx)
  6335  			req.ApplyOptions(opts...)
  6336  			return req, nil
  6337  		},
  6338  	}
  6339  
  6340  	for p.Next() {
  6341  		if !fn(p.Page().(*ListPullRequestsOutput), !p.HasNextPage()) {
  6342  			break
  6343  		}
  6344  	}
  6345  
  6346  	return p.Err()
  6347  }
  6348  
  6349  const opListRepositories = "ListRepositories"
  6350  
  6351  // ListRepositoriesRequest generates a "aws/request.Request" representing the
  6352  // client's request for the ListRepositories operation. The "output" return
  6353  // value will be populated with the request's response once the request completes
  6354  // successfully.
  6355  //
  6356  // Use "Send" method on the returned Request to send the API call to the service.
  6357  // the "output" return value is not valid until after Send returns without error.
  6358  //
  6359  // See ListRepositories for more information on using the ListRepositories
  6360  // API call, and error handling.
  6361  //
  6362  // This method is useful when you want to inject custom logic or configuration
  6363  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6364  //
  6365  //
  6366  //    // Example sending a request using the ListRepositoriesRequest method.
  6367  //    req, resp := client.ListRepositoriesRequest(params)
  6368  //
  6369  //    err := req.Send()
  6370  //    if err == nil { // resp is now filled
  6371  //        fmt.Println(resp)
  6372  //    }
  6373  //
  6374  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories
  6375  func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) {
  6376  	op := &request.Operation{
  6377  		Name:       opListRepositories,
  6378  		HTTPMethod: "POST",
  6379  		HTTPPath:   "/",
  6380  		Paginator: &request.Paginator{
  6381  			InputTokens:     []string{"nextToken"},
  6382  			OutputTokens:    []string{"nextToken"},
  6383  			LimitToken:      "",
  6384  			TruncationToken: "",
  6385  		},
  6386  	}
  6387  
  6388  	if input == nil {
  6389  		input = &ListRepositoriesInput{}
  6390  	}
  6391  
  6392  	output = &ListRepositoriesOutput{}
  6393  	req = c.newRequest(op, input, output)
  6394  	return
  6395  }
  6396  
  6397  // ListRepositories API operation for AWS CodeCommit.
  6398  //
  6399  // Gets information about one or more repositories.
  6400  //
  6401  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6402  // with awserr.Error's Code and Message methods to get detailed information about
  6403  // the error.
  6404  //
  6405  // See the AWS API reference guide for AWS CodeCommit's
  6406  // API operation ListRepositories for usage and error information.
  6407  //
  6408  // Returned Error Types:
  6409  //   * InvalidSortByException
  6410  //   The specified sort by value is not valid.
  6411  //
  6412  //   * InvalidOrderException
  6413  //   The specified sort order is not valid.
  6414  //
  6415  //   * InvalidContinuationTokenException
  6416  //   The specified continuation token is not valid.
  6417  //
  6418  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories
  6419  func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) {
  6420  	req, out := c.ListRepositoriesRequest(input)
  6421  	return out, req.Send()
  6422  }
  6423  
  6424  // ListRepositoriesWithContext is the same as ListRepositories with the addition of
  6425  // the ability to pass a context and additional request options.
  6426  //
  6427  // See ListRepositories for details on how to use this API operation.
  6428  //
  6429  // The context must be non-nil and will be used for request cancellation. If
  6430  // the context is nil a panic will occur. In the future the SDK may create
  6431  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6432  // for more information on using Contexts.
  6433  func (c *CodeCommit) ListRepositoriesWithContext(ctx aws.Context, input *ListRepositoriesInput, opts ...request.Option) (*ListRepositoriesOutput, error) {
  6434  	req, out := c.ListRepositoriesRequest(input)
  6435  	req.SetContext(ctx)
  6436  	req.ApplyOptions(opts...)
  6437  	return out, req.Send()
  6438  }
  6439  
  6440  // ListRepositoriesPages iterates over the pages of a ListRepositories operation,
  6441  // calling the "fn" function with the response data for each page. To stop
  6442  // iterating, return false from the fn function.
  6443  //
  6444  // See ListRepositories method for more information on how to use this operation.
  6445  //
  6446  // Note: This operation can generate multiple requests to a service.
  6447  //
  6448  //    // Example iterating over at most 3 pages of a ListRepositories operation.
  6449  //    pageNum := 0
  6450  //    err := client.ListRepositoriesPages(params,
  6451  //        func(page *codecommit.ListRepositoriesOutput, lastPage bool) bool {
  6452  //            pageNum++
  6453  //            fmt.Println(page)
  6454  //            return pageNum <= 3
  6455  //        })
  6456  //
  6457  func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool) error {
  6458  	return c.ListRepositoriesPagesWithContext(aws.BackgroundContext(), input, fn)
  6459  }
  6460  
  6461  // ListRepositoriesPagesWithContext same as ListRepositoriesPages except
  6462  // it takes a Context and allows setting request options on the pages.
  6463  //
  6464  // The context must be non-nil and will be used for request cancellation. If
  6465  // the context is nil a panic will occur. In the future the SDK may create
  6466  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6467  // for more information on using Contexts.
  6468  func (c *CodeCommit) ListRepositoriesPagesWithContext(ctx aws.Context, input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool, opts ...request.Option) error {
  6469  	p := request.Pagination{
  6470  		NewRequest: func() (*request.Request, error) {
  6471  			var inCpy *ListRepositoriesInput
  6472  			if input != nil {
  6473  				tmp := *input
  6474  				inCpy = &tmp
  6475  			}
  6476  			req, _ := c.ListRepositoriesRequest(inCpy)
  6477  			req.SetContext(ctx)
  6478  			req.ApplyOptions(opts...)
  6479  			return req, nil
  6480  		},
  6481  	}
  6482  
  6483  	for p.Next() {
  6484  		if !fn(p.Page().(*ListRepositoriesOutput), !p.HasNextPage()) {
  6485  			break
  6486  		}
  6487  	}
  6488  
  6489  	return p.Err()
  6490  }
  6491  
  6492  const opListRepositoriesForApprovalRuleTemplate = "ListRepositoriesForApprovalRuleTemplate"
  6493  
  6494  // ListRepositoriesForApprovalRuleTemplateRequest generates a "aws/request.Request" representing the
  6495  // client's request for the ListRepositoriesForApprovalRuleTemplate operation. The "output" return
  6496  // value will be populated with the request's response once the request completes
  6497  // successfully.
  6498  //
  6499  // Use "Send" method on the returned Request to send the API call to the service.
  6500  // the "output" return value is not valid until after Send returns without error.
  6501  //
  6502  // See ListRepositoriesForApprovalRuleTemplate for more information on using the ListRepositoriesForApprovalRuleTemplate
  6503  // API call, and error handling.
  6504  //
  6505  // This method is useful when you want to inject custom logic or configuration
  6506  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6507  //
  6508  //
  6509  //    // Example sending a request using the ListRepositoriesForApprovalRuleTemplateRequest method.
  6510  //    req, resp := client.ListRepositoriesForApprovalRuleTemplateRequest(params)
  6511  //
  6512  //    err := req.Send()
  6513  //    if err == nil { // resp is now filled
  6514  //        fmt.Println(resp)
  6515  //    }
  6516  //
  6517  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesForApprovalRuleTemplate
  6518  func (c *CodeCommit) ListRepositoriesForApprovalRuleTemplateRequest(input *ListRepositoriesForApprovalRuleTemplateInput) (req *request.Request, output *ListRepositoriesForApprovalRuleTemplateOutput) {
  6519  	op := &request.Operation{
  6520  		Name:       opListRepositoriesForApprovalRuleTemplate,
  6521  		HTTPMethod: "POST",
  6522  		HTTPPath:   "/",
  6523  		Paginator: &request.Paginator{
  6524  			InputTokens:     []string{"nextToken"},
  6525  			OutputTokens:    []string{"nextToken"},
  6526  			LimitToken:      "maxResults",
  6527  			TruncationToken: "",
  6528  		},
  6529  	}
  6530  
  6531  	if input == nil {
  6532  		input = &ListRepositoriesForApprovalRuleTemplateInput{}
  6533  	}
  6534  
  6535  	output = &ListRepositoriesForApprovalRuleTemplateOutput{}
  6536  	req = c.newRequest(op, input, output)
  6537  	return
  6538  }
  6539  
  6540  // ListRepositoriesForApprovalRuleTemplate API operation for AWS CodeCommit.
  6541  //
  6542  // Lists all repositories associated with the specified approval rule template.
  6543  //
  6544  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6545  // with awserr.Error's Code and Message methods to get detailed information about
  6546  // the error.
  6547  //
  6548  // See the AWS API reference guide for AWS CodeCommit's
  6549  // API operation ListRepositoriesForApprovalRuleTemplate for usage and error information.
  6550  //
  6551  // Returned Error Types:
  6552  //   * ApprovalRuleTemplateNameRequiredException
  6553  //   An approval rule template name is required, but was not specified.
  6554  //
  6555  //   * InvalidApprovalRuleTemplateNameException
  6556  //   The name of the approval rule template is not valid. Template names must
  6557  //   be between 1 and 100 valid characters in length. For more information about
  6558  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  6559  //
  6560  //   * ApprovalRuleTemplateDoesNotExistException
  6561  //   The specified approval rule template does not exist. Verify that the name
  6562  //   is correct and that you are signed in to the AWS Region where the template
  6563  //   was created, and then try again.
  6564  //
  6565  //   * InvalidMaxResultsException
  6566  //   The specified number of maximum results is not valid.
  6567  //
  6568  //   * InvalidContinuationTokenException
  6569  //   The specified continuation token is not valid.
  6570  //
  6571  //   * EncryptionIntegrityChecksFailedException
  6572  //   An encryption integrity check failed.
  6573  //
  6574  //   * EncryptionKeyAccessDeniedException
  6575  //   An encryption key could not be accessed.
  6576  //
  6577  //   * EncryptionKeyDisabledException
  6578  //   The encryption key is disabled.
  6579  //
  6580  //   * EncryptionKeyNotFoundException
  6581  //   No encryption key was found.
  6582  //
  6583  //   * EncryptionKeyUnavailableException
  6584  //   The encryption key is not available.
  6585  //
  6586  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesForApprovalRuleTemplate
  6587  func (c *CodeCommit) ListRepositoriesForApprovalRuleTemplate(input *ListRepositoriesForApprovalRuleTemplateInput) (*ListRepositoriesForApprovalRuleTemplateOutput, error) {
  6588  	req, out := c.ListRepositoriesForApprovalRuleTemplateRequest(input)
  6589  	return out, req.Send()
  6590  }
  6591  
  6592  // ListRepositoriesForApprovalRuleTemplateWithContext is the same as ListRepositoriesForApprovalRuleTemplate with the addition of
  6593  // the ability to pass a context and additional request options.
  6594  //
  6595  // See ListRepositoriesForApprovalRuleTemplate for details on how to use this API operation.
  6596  //
  6597  // The context must be non-nil and will be used for request cancellation. If
  6598  // the context is nil a panic will occur. In the future the SDK may create
  6599  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6600  // for more information on using Contexts.
  6601  func (c *CodeCommit) ListRepositoriesForApprovalRuleTemplateWithContext(ctx aws.Context, input *ListRepositoriesForApprovalRuleTemplateInput, opts ...request.Option) (*ListRepositoriesForApprovalRuleTemplateOutput, error) {
  6602  	req, out := c.ListRepositoriesForApprovalRuleTemplateRequest(input)
  6603  	req.SetContext(ctx)
  6604  	req.ApplyOptions(opts...)
  6605  	return out, req.Send()
  6606  }
  6607  
  6608  // ListRepositoriesForApprovalRuleTemplatePages iterates over the pages of a ListRepositoriesForApprovalRuleTemplate operation,
  6609  // calling the "fn" function with the response data for each page. To stop
  6610  // iterating, return false from the fn function.
  6611  //
  6612  // See ListRepositoriesForApprovalRuleTemplate method for more information on how to use this operation.
  6613  //
  6614  // Note: This operation can generate multiple requests to a service.
  6615  //
  6616  //    // Example iterating over at most 3 pages of a ListRepositoriesForApprovalRuleTemplate operation.
  6617  //    pageNum := 0
  6618  //    err := client.ListRepositoriesForApprovalRuleTemplatePages(params,
  6619  //        func(page *codecommit.ListRepositoriesForApprovalRuleTemplateOutput, lastPage bool) bool {
  6620  //            pageNum++
  6621  //            fmt.Println(page)
  6622  //            return pageNum <= 3
  6623  //        })
  6624  //
  6625  func (c *CodeCommit) ListRepositoriesForApprovalRuleTemplatePages(input *ListRepositoriesForApprovalRuleTemplateInput, fn func(*ListRepositoriesForApprovalRuleTemplateOutput, bool) bool) error {
  6626  	return c.ListRepositoriesForApprovalRuleTemplatePagesWithContext(aws.BackgroundContext(), input, fn)
  6627  }
  6628  
  6629  // ListRepositoriesForApprovalRuleTemplatePagesWithContext same as ListRepositoriesForApprovalRuleTemplatePages except
  6630  // it takes a Context and allows setting request options on the pages.
  6631  //
  6632  // The context must be non-nil and will be used for request cancellation. If
  6633  // the context is nil a panic will occur. In the future the SDK may create
  6634  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6635  // for more information on using Contexts.
  6636  func (c *CodeCommit) ListRepositoriesForApprovalRuleTemplatePagesWithContext(ctx aws.Context, input *ListRepositoriesForApprovalRuleTemplateInput, fn func(*ListRepositoriesForApprovalRuleTemplateOutput, bool) bool, opts ...request.Option) error {
  6637  	p := request.Pagination{
  6638  		NewRequest: func() (*request.Request, error) {
  6639  			var inCpy *ListRepositoriesForApprovalRuleTemplateInput
  6640  			if input != nil {
  6641  				tmp := *input
  6642  				inCpy = &tmp
  6643  			}
  6644  			req, _ := c.ListRepositoriesForApprovalRuleTemplateRequest(inCpy)
  6645  			req.SetContext(ctx)
  6646  			req.ApplyOptions(opts...)
  6647  			return req, nil
  6648  		},
  6649  	}
  6650  
  6651  	for p.Next() {
  6652  		if !fn(p.Page().(*ListRepositoriesForApprovalRuleTemplateOutput), !p.HasNextPage()) {
  6653  			break
  6654  		}
  6655  	}
  6656  
  6657  	return p.Err()
  6658  }
  6659  
  6660  const opListTagsForResource = "ListTagsForResource"
  6661  
  6662  // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  6663  // client's request for the ListTagsForResource operation. The "output" return
  6664  // value will be populated with the request's response once the request completes
  6665  // successfully.
  6666  //
  6667  // Use "Send" method on the returned Request to send the API call to the service.
  6668  // the "output" return value is not valid until after Send returns without error.
  6669  //
  6670  // See ListTagsForResource for more information on using the ListTagsForResource
  6671  // API call, and error handling.
  6672  //
  6673  // This method is useful when you want to inject custom logic or configuration
  6674  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6675  //
  6676  //
  6677  //    // Example sending a request using the ListTagsForResourceRequest method.
  6678  //    req, resp := client.ListTagsForResourceRequest(params)
  6679  //
  6680  //    err := req.Send()
  6681  //    if err == nil { // resp is now filled
  6682  //        fmt.Println(resp)
  6683  //    }
  6684  //
  6685  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListTagsForResource
  6686  func (c *CodeCommit) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  6687  	op := &request.Operation{
  6688  		Name:       opListTagsForResource,
  6689  		HTTPMethod: "POST",
  6690  		HTTPPath:   "/",
  6691  	}
  6692  
  6693  	if input == nil {
  6694  		input = &ListTagsForResourceInput{}
  6695  	}
  6696  
  6697  	output = &ListTagsForResourceOutput{}
  6698  	req = c.newRequest(op, input, output)
  6699  	return
  6700  }
  6701  
  6702  // ListTagsForResource API operation for AWS CodeCommit.
  6703  //
  6704  // Gets information about AWS tags for a specified Amazon Resource Name (ARN)
  6705  // in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit
  6706  // Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  6707  // in the AWS CodeCommit User Guide.
  6708  //
  6709  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6710  // with awserr.Error's Code and Message methods to get detailed information about
  6711  // the error.
  6712  //
  6713  // See the AWS API reference guide for AWS CodeCommit's
  6714  // API operation ListTagsForResource for usage and error information.
  6715  //
  6716  // Returned Error Types:
  6717  //   * RepositoryDoesNotExistException
  6718  //   The specified repository does not exist.
  6719  //
  6720  //   * InvalidRepositoryNameException
  6721  //   A specified repository name is not valid.
  6722  //
  6723  //   This exception occurs only when a specified repository name is not valid.
  6724  //   Other exceptions occur when a required repository parameter is missing, or
  6725  //   when a specified repository does not exist.
  6726  //
  6727  //   * ResourceArnRequiredException
  6728  //   A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required.
  6729  //   For a list of valid resources in AWS CodeCommit, see CodeCommit Resources
  6730  //   and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  6731  //   in the AWS CodeCommit User Guide.
  6732  //
  6733  //   * InvalidResourceArnException
  6734  //   The value for the resource ARN is not valid. For more information about resources
  6735  //   in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  6736  //   in the AWS CodeCommit User Guide.
  6737  //
  6738  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListTagsForResource
  6739  func (c *CodeCommit) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  6740  	req, out := c.ListTagsForResourceRequest(input)
  6741  	return out, req.Send()
  6742  }
  6743  
  6744  // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  6745  // the ability to pass a context and additional request options.
  6746  //
  6747  // See ListTagsForResource for details on how to use this API operation.
  6748  //
  6749  // The context must be non-nil and will be used for request cancellation. If
  6750  // the context is nil a panic will occur. In the future the SDK may create
  6751  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6752  // for more information on using Contexts.
  6753  func (c *CodeCommit) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  6754  	req, out := c.ListTagsForResourceRequest(input)
  6755  	req.SetContext(ctx)
  6756  	req.ApplyOptions(opts...)
  6757  	return out, req.Send()
  6758  }
  6759  
  6760  const opMergeBranchesByFastForward = "MergeBranchesByFastForward"
  6761  
  6762  // MergeBranchesByFastForwardRequest generates a "aws/request.Request" representing the
  6763  // client's request for the MergeBranchesByFastForward operation. The "output" return
  6764  // value will be populated with the request's response once the request completes
  6765  // successfully.
  6766  //
  6767  // Use "Send" method on the returned Request to send the API call to the service.
  6768  // the "output" return value is not valid until after Send returns without error.
  6769  //
  6770  // See MergeBranchesByFastForward for more information on using the MergeBranchesByFastForward
  6771  // API call, and error handling.
  6772  //
  6773  // This method is useful when you want to inject custom logic or configuration
  6774  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6775  //
  6776  //
  6777  //    // Example sending a request using the MergeBranchesByFastForwardRequest method.
  6778  //    req, resp := client.MergeBranchesByFastForwardRequest(params)
  6779  //
  6780  //    err := req.Send()
  6781  //    if err == nil { // resp is now filled
  6782  //        fmt.Println(resp)
  6783  //    }
  6784  //
  6785  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByFastForward
  6786  func (c *CodeCommit) MergeBranchesByFastForwardRequest(input *MergeBranchesByFastForwardInput) (req *request.Request, output *MergeBranchesByFastForwardOutput) {
  6787  	op := &request.Operation{
  6788  		Name:       opMergeBranchesByFastForward,
  6789  		HTTPMethod: "POST",
  6790  		HTTPPath:   "/",
  6791  	}
  6792  
  6793  	if input == nil {
  6794  		input = &MergeBranchesByFastForwardInput{}
  6795  	}
  6796  
  6797  	output = &MergeBranchesByFastForwardOutput{}
  6798  	req = c.newRequest(op, input, output)
  6799  	return
  6800  }
  6801  
  6802  // MergeBranchesByFastForward API operation for AWS CodeCommit.
  6803  //
  6804  // Merges two branches using the fast-forward merge strategy.
  6805  //
  6806  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6807  // with awserr.Error's Code and Message methods to get detailed information about
  6808  // the error.
  6809  //
  6810  // See the AWS API reference guide for AWS CodeCommit's
  6811  // API operation MergeBranchesByFastForward for usage and error information.
  6812  //
  6813  // Returned Error Types:
  6814  //   * RepositoryNameRequiredException
  6815  //   A repository name is required, but was not specified.
  6816  //
  6817  //   * InvalidRepositoryNameException
  6818  //   A specified repository name is not valid.
  6819  //
  6820  //   This exception occurs only when a specified repository name is not valid.
  6821  //   Other exceptions occur when a required repository parameter is missing, or
  6822  //   when a specified repository does not exist.
  6823  //
  6824  //   * RepositoryDoesNotExistException
  6825  //   The specified repository does not exist.
  6826  //
  6827  //   * TipsDivergenceExceededException
  6828  //   The divergence between the tips of the provided commit specifiers is too
  6829  //   great to determine whether there might be any merge conflicts. Locally compare
  6830  //   the specifiers using git diff or a diff tool.
  6831  //
  6832  //   * CommitRequiredException
  6833  //   A commit was not specified.
  6834  //
  6835  //   * InvalidCommitException
  6836  //   The specified commit is not valid.
  6837  //
  6838  //   * CommitDoesNotExistException
  6839  //   The specified commit does not exist or no commit was specified, and the specified
  6840  //   repository has no default branch.
  6841  //
  6842  //   * InvalidTargetBranchException
  6843  //   The specified target branch is not valid.
  6844  //
  6845  //   * InvalidBranchNameException
  6846  //   The specified reference name is not valid.
  6847  //
  6848  //   * BranchNameRequiredException
  6849  //   A branch name is required, but was not specified.
  6850  //
  6851  //   * BranchNameIsTagNameException
  6852  //   The specified branch name is not valid because it is a tag name. Enter the
  6853  //   name of a branch in the repository. For a list of valid branch names, use
  6854  //   ListBranches.
  6855  //
  6856  //   * BranchDoesNotExistException
  6857  //   The specified branch does not exist.
  6858  //
  6859  //   * ManualMergeRequiredException
  6860  //   The pull request cannot be merged automatically into the destination branch.
  6861  //   You must manually merge the branches and resolve any conflicts.
  6862  //
  6863  //   * ConcurrentReferenceUpdateException
  6864  //   The merge cannot be completed because the target branch has been modified.
  6865  //   Another user might have modified the target branch while the merge was in
  6866  //   progress. Wait a few minutes, and then try again.
  6867  //
  6868  //   * EncryptionIntegrityChecksFailedException
  6869  //   An encryption integrity check failed.
  6870  //
  6871  //   * EncryptionKeyAccessDeniedException
  6872  //   An encryption key could not be accessed.
  6873  //
  6874  //   * EncryptionKeyDisabledException
  6875  //   The encryption key is disabled.
  6876  //
  6877  //   * EncryptionKeyNotFoundException
  6878  //   No encryption key was found.
  6879  //
  6880  //   * EncryptionKeyUnavailableException
  6881  //   The encryption key is not available.
  6882  //
  6883  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByFastForward
  6884  func (c *CodeCommit) MergeBranchesByFastForward(input *MergeBranchesByFastForwardInput) (*MergeBranchesByFastForwardOutput, error) {
  6885  	req, out := c.MergeBranchesByFastForwardRequest(input)
  6886  	return out, req.Send()
  6887  }
  6888  
  6889  // MergeBranchesByFastForwardWithContext is the same as MergeBranchesByFastForward with the addition of
  6890  // the ability to pass a context and additional request options.
  6891  //
  6892  // See MergeBranchesByFastForward for details on how to use this API operation.
  6893  //
  6894  // The context must be non-nil and will be used for request cancellation. If
  6895  // the context is nil a panic will occur. In the future the SDK may create
  6896  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6897  // for more information on using Contexts.
  6898  func (c *CodeCommit) MergeBranchesByFastForwardWithContext(ctx aws.Context, input *MergeBranchesByFastForwardInput, opts ...request.Option) (*MergeBranchesByFastForwardOutput, error) {
  6899  	req, out := c.MergeBranchesByFastForwardRequest(input)
  6900  	req.SetContext(ctx)
  6901  	req.ApplyOptions(opts...)
  6902  	return out, req.Send()
  6903  }
  6904  
  6905  const opMergeBranchesBySquash = "MergeBranchesBySquash"
  6906  
  6907  // MergeBranchesBySquashRequest generates a "aws/request.Request" representing the
  6908  // client's request for the MergeBranchesBySquash operation. The "output" return
  6909  // value will be populated with the request's response once the request completes
  6910  // successfully.
  6911  //
  6912  // Use "Send" method on the returned Request to send the API call to the service.
  6913  // the "output" return value is not valid until after Send returns without error.
  6914  //
  6915  // See MergeBranchesBySquash for more information on using the MergeBranchesBySquash
  6916  // API call, and error handling.
  6917  //
  6918  // This method is useful when you want to inject custom logic or configuration
  6919  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6920  //
  6921  //
  6922  //    // Example sending a request using the MergeBranchesBySquashRequest method.
  6923  //    req, resp := client.MergeBranchesBySquashRequest(params)
  6924  //
  6925  //    err := req.Send()
  6926  //    if err == nil { // resp is now filled
  6927  //        fmt.Println(resp)
  6928  //    }
  6929  //
  6930  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesBySquash
  6931  func (c *CodeCommit) MergeBranchesBySquashRequest(input *MergeBranchesBySquashInput) (req *request.Request, output *MergeBranchesBySquashOutput) {
  6932  	op := &request.Operation{
  6933  		Name:       opMergeBranchesBySquash,
  6934  		HTTPMethod: "POST",
  6935  		HTTPPath:   "/",
  6936  	}
  6937  
  6938  	if input == nil {
  6939  		input = &MergeBranchesBySquashInput{}
  6940  	}
  6941  
  6942  	output = &MergeBranchesBySquashOutput{}
  6943  	req = c.newRequest(op, input, output)
  6944  	return
  6945  }
  6946  
  6947  // MergeBranchesBySquash API operation for AWS CodeCommit.
  6948  //
  6949  // Merges two branches using the squash merge strategy.
  6950  //
  6951  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6952  // with awserr.Error's Code and Message methods to get detailed information about
  6953  // the error.
  6954  //
  6955  // See the AWS API reference guide for AWS CodeCommit's
  6956  // API operation MergeBranchesBySquash for usage and error information.
  6957  //
  6958  // Returned Error Types:
  6959  //   * RepositoryNameRequiredException
  6960  //   A repository name is required, but was not specified.
  6961  //
  6962  //   * InvalidRepositoryNameException
  6963  //   A specified repository name is not valid.
  6964  //
  6965  //   This exception occurs only when a specified repository name is not valid.
  6966  //   Other exceptions occur when a required repository parameter is missing, or
  6967  //   when a specified repository does not exist.
  6968  //
  6969  //   * RepositoryDoesNotExistException
  6970  //   The specified repository does not exist.
  6971  //
  6972  //   * TipsDivergenceExceededException
  6973  //   The divergence between the tips of the provided commit specifiers is too
  6974  //   great to determine whether there might be any merge conflicts. Locally compare
  6975  //   the specifiers using git diff or a diff tool.
  6976  //
  6977  //   * CommitRequiredException
  6978  //   A commit was not specified.
  6979  //
  6980  //   * InvalidCommitException
  6981  //   The specified commit is not valid.
  6982  //
  6983  //   * CommitDoesNotExistException
  6984  //   The specified commit does not exist or no commit was specified, and the specified
  6985  //   repository has no default branch.
  6986  //
  6987  //   * InvalidTargetBranchException
  6988  //   The specified target branch is not valid.
  6989  //
  6990  //   * InvalidBranchNameException
  6991  //   The specified reference name is not valid.
  6992  //
  6993  //   * BranchNameRequiredException
  6994  //   A branch name is required, but was not specified.
  6995  //
  6996  //   * BranchNameIsTagNameException
  6997  //   The specified branch name is not valid because it is a tag name. Enter the
  6998  //   name of a branch in the repository. For a list of valid branch names, use
  6999  //   ListBranches.
  7000  //
  7001  //   * BranchDoesNotExistException
  7002  //   The specified branch does not exist.
  7003  //
  7004  //   * ManualMergeRequiredException
  7005  //   The pull request cannot be merged automatically into the destination branch.
  7006  //   You must manually merge the branches and resolve any conflicts.
  7007  //
  7008  //   * InvalidConflictDetailLevelException
  7009  //   The specified conflict detail level is not valid.
  7010  //
  7011  //   * InvalidConflictResolutionStrategyException
  7012  //   The specified conflict resolution strategy is not valid.
  7013  //
  7014  //   * InvalidConflictResolutionException
  7015  //   The specified conflict resolution list is not valid.
  7016  //
  7017  //   * MaximumConflictResolutionEntriesExceededException
  7018  //   The number of allowed conflict resolution entries was exceeded.
  7019  //
  7020  //   * MultipleConflictResolutionEntriesException
  7021  //   More than one conflict resolution entries exists for the conflict. A conflict
  7022  //   can have only one conflict resolution entry.
  7023  //
  7024  //   * ReplacementTypeRequiredException
  7025  //   A replacement type is required.
  7026  //
  7027  //   * InvalidReplacementTypeException
  7028  //   Automerge was specified for resolving the conflict, but the specified replacement
  7029  //   type is not valid.
  7030  //
  7031  //   * ReplacementContentRequiredException
  7032  //   USE_NEW_CONTENT was specified, but no replacement content has been provided.
  7033  //
  7034  //   * InvalidReplacementContentException
  7035  //   Automerge was specified for resolving the conflict, but the replacement type
  7036  //   is not valid or content is missing.
  7037  //
  7038  //   * PathRequiredException
  7039  //   The folderPath for a location cannot be null.
  7040  //
  7041  //   * InvalidPathException
  7042  //   The specified path is not valid.
  7043  //
  7044  //   * FileContentSizeLimitExceededException
  7045  //   The file cannot be added because it is too large. The maximum file size is
  7046  //   6 MB, and the combined file content change size is 7 MB. Consider making
  7047  //   these changes using a Git client.
  7048  //
  7049  //   * FolderContentSizeLimitExceededException
  7050  //   The commit cannot be created because at least one of the overall changes
  7051  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  7052  //   Either reduce the number and size of your changes, or split the changes across
  7053  //   multiple folders.
  7054  //
  7055  //   * MaximumFileContentToLoadExceededException
  7056  //   The number of files to load exceeds the allowed limit.
  7057  //
  7058  //   * MaximumItemsToCompareExceededException
  7059  //   The number of items to compare between the source or destination branches
  7060  //   and the merge base has exceeded the maximum allowed.
  7061  //
  7062  //   * FileModeRequiredException
  7063  //   The commit cannot be created because no file mode has been specified. A file
  7064  //   mode is required to update mode permissions for a file.
  7065  //
  7066  //   * InvalidFileModeException
  7067  //   The specified file mode permission is not valid. For a list of valid file
  7068  //   mode permissions, see PutFile.
  7069  //
  7070  //   * NameLengthExceededException
  7071  //   The user name is not valid because it has exceeded the character limit for
  7072  //   author names.
  7073  //
  7074  //   * InvalidEmailException
  7075  //   The specified email address either contains one or more characters that are
  7076  //   not allowed, or it exceeds the maximum number of characters allowed for an
  7077  //   email address.
  7078  //
  7079  //   * CommitMessageLengthExceededException
  7080  //   The commit message is too long. Provide a shorter string.
  7081  //
  7082  //   * ConcurrentReferenceUpdateException
  7083  //   The merge cannot be completed because the target branch has been modified.
  7084  //   Another user might have modified the target branch while the merge was in
  7085  //   progress. Wait a few minutes, and then try again.
  7086  //
  7087  //   * EncryptionIntegrityChecksFailedException
  7088  //   An encryption integrity check failed.
  7089  //
  7090  //   * EncryptionKeyAccessDeniedException
  7091  //   An encryption key could not be accessed.
  7092  //
  7093  //   * EncryptionKeyDisabledException
  7094  //   The encryption key is disabled.
  7095  //
  7096  //   * EncryptionKeyNotFoundException
  7097  //   No encryption key was found.
  7098  //
  7099  //   * EncryptionKeyUnavailableException
  7100  //   The encryption key is not available.
  7101  //
  7102  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesBySquash
  7103  func (c *CodeCommit) MergeBranchesBySquash(input *MergeBranchesBySquashInput) (*MergeBranchesBySquashOutput, error) {
  7104  	req, out := c.MergeBranchesBySquashRequest(input)
  7105  	return out, req.Send()
  7106  }
  7107  
  7108  // MergeBranchesBySquashWithContext is the same as MergeBranchesBySquash with the addition of
  7109  // the ability to pass a context and additional request options.
  7110  //
  7111  // See MergeBranchesBySquash for details on how to use this API operation.
  7112  //
  7113  // The context must be non-nil and will be used for request cancellation. If
  7114  // the context is nil a panic will occur. In the future the SDK may create
  7115  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7116  // for more information on using Contexts.
  7117  func (c *CodeCommit) MergeBranchesBySquashWithContext(ctx aws.Context, input *MergeBranchesBySquashInput, opts ...request.Option) (*MergeBranchesBySquashOutput, error) {
  7118  	req, out := c.MergeBranchesBySquashRequest(input)
  7119  	req.SetContext(ctx)
  7120  	req.ApplyOptions(opts...)
  7121  	return out, req.Send()
  7122  }
  7123  
  7124  const opMergeBranchesByThreeWay = "MergeBranchesByThreeWay"
  7125  
  7126  // MergeBranchesByThreeWayRequest generates a "aws/request.Request" representing the
  7127  // client's request for the MergeBranchesByThreeWay operation. The "output" return
  7128  // value will be populated with the request's response once the request completes
  7129  // successfully.
  7130  //
  7131  // Use "Send" method on the returned Request to send the API call to the service.
  7132  // the "output" return value is not valid until after Send returns without error.
  7133  //
  7134  // See MergeBranchesByThreeWay for more information on using the MergeBranchesByThreeWay
  7135  // API call, and error handling.
  7136  //
  7137  // This method is useful when you want to inject custom logic or configuration
  7138  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7139  //
  7140  //
  7141  //    // Example sending a request using the MergeBranchesByThreeWayRequest method.
  7142  //    req, resp := client.MergeBranchesByThreeWayRequest(params)
  7143  //
  7144  //    err := req.Send()
  7145  //    if err == nil { // resp is now filled
  7146  //        fmt.Println(resp)
  7147  //    }
  7148  //
  7149  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByThreeWay
  7150  func (c *CodeCommit) MergeBranchesByThreeWayRequest(input *MergeBranchesByThreeWayInput) (req *request.Request, output *MergeBranchesByThreeWayOutput) {
  7151  	op := &request.Operation{
  7152  		Name:       opMergeBranchesByThreeWay,
  7153  		HTTPMethod: "POST",
  7154  		HTTPPath:   "/",
  7155  	}
  7156  
  7157  	if input == nil {
  7158  		input = &MergeBranchesByThreeWayInput{}
  7159  	}
  7160  
  7161  	output = &MergeBranchesByThreeWayOutput{}
  7162  	req = c.newRequest(op, input, output)
  7163  	return
  7164  }
  7165  
  7166  // MergeBranchesByThreeWay API operation for AWS CodeCommit.
  7167  //
  7168  // Merges two specified branches using the three-way merge strategy.
  7169  //
  7170  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7171  // with awserr.Error's Code and Message methods to get detailed information about
  7172  // the error.
  7173  //
  7174  // See the AWS API reference guide for AWS CodeCommit's
  7175  // API operation MergeBranchesByThreeWay for usage and error information.
  7176  //
  7177  // Returned Error Types:
  7178  //   * RepositoryNameRequiredException
  7179  //   A repository name is required, but was not specified.
  7180  //
  7181  //   * InvalidRepositoryNameException
  7182  //   A specified repository name is not valid.
  7183  //
  7184  //   This exception occurs only when a specified repository name is not valid.
  7185  //   Other exceptions occur when a required repository parameter is missing, or
  7186  //   when a specified repository does not exist.
  7187  //
  7188  //   * RepositoryDoesNotExistException
  7189  //   The specified repository does not exist.
  7190  //
  7191  //   * TipsDivergenceExceededException
  7192  //   The divergence between the tips of the provided commit specifiers is too
  7193  //   great to determine whether there might be any merge conflicts. Locally compare
  7194  //   the specifiers using git diff or a diff tool.
  7195  //
  7196  //   * CommitRequiredException
  7197  //   A commit was not specified.
  7198  //
  7199  //   * InvalidCommitException
  7200  //   The specified commit is not valid.
  7201  //
  7202  //   * CommitDoesNotExistException
  7203  //   The specified commit does not exist or no commit was specified, and the specified
  7204  //   repository has no default branch.
  7205  //
  7206  //   * InvalidTargetBranchException
  7207  //   The specified target branch is not valid.
  7208  //
  7209  //   * InvalidBranchNameException
  7210  //   The specified reference name is not valid.
  7211  //
  7212  //   * BranchNameRequiredException
  7213  //   A branch name is required, but was not specified.
  7214  //
  7215  //   * BranchNameIsTagNameException
  7216  //   The specified branch name is not valid because it is a tag name. Enter the
  7217  //   name of a branch in the repository. For a list of valid branch names, use
  7218  //   ListBranches.
  7219  //
  7220  //   * BranchDoesNotExistException
  7221  //   The specified branch does not exist.
  7222  //
  7223  //   * ManualMergeRequiredException
  7224  //   The pull request cannot be merged automatically into the destination branch.
  7225  //   You must manually merge the branches and resolve any conflicts.
  7226  //
  7227  //   * ConcurrentReferenceUpdateException
  7228  //   The merge cannot be completed because the target branch has been modified.
  7229  //   Another user might have modified the target branch while the merge was in
  7230  //   progress. Wait a few minutes, and then try again.
  7231  //
  7232  //   * InvalidConflictDetailLevelException
  7233  //   The specified conflict detail level is not valid.
  7234  //
  7235  //   * InvalidConflictResolutionStrategyException
  7236  //   The specified conflict resolution strategy is not valid.
  7237  //
  7238  //   * InvalidConflictResolutionException
  7239  //   The specified conflict resolution list is not valid.
  7240  //
  7241  //   * MaximumConflictResolutionEntriesExceededException
  7242  //   The number of allowed conflict resolution entries was exceeded.
  7243  //
  7244  //   * MultipleConflictResolutionEntriesException
  7245  //   More than one conflict resolution entries exists for the conflict. A conflict
  7246  //   can have only one conflict resolution entry.
  7247  //
  7248  //   * ReplacementTypeRequiredException
  7249  //   A replacement type is required.
  7250  //
  7251  //   * InvalidReplacementTypeException
  7252  //   Automerge was specified for resolving the conflict, but the specified replacement
  7253  //   type is not valid.
  7254  //
  7255  //   * ReplacementContentRequiredException
  7256  //   USE_NEW_CONTENT was specified, but no replacement content has been provided.
  7257  //
  7258  //   * InvalidReplacementContentException
  7259  //   Automerge was specified for resolving the conflict, but the replacement type
  7260  //   is not valid or content is missing.
  7261  //
  7262  //   * PathRequiredException
  7263  //   The folderPath for a location cannot be null.
  7264  //
  7265  //   * InvalidPathException
  7266  //   The specified path is not valid.
  7267  //
  7268  //   * FileContentSizeLimitExceededException
  7269  //   The file cannot be added because it is too large. The maximum file size is
  7270  //   6 MB, and the combined file content change size is 7 MB. Consider making
  7271  //   these changes using a Git client.
  7272  //
  7273  //   * FolderContentSizeLimitExceededException
  7274  //   The commit cannot be created because at least one of the overall changes
  7275  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  7276  //   Either reduce the number and size of your changes, or split the changes across
  7277  //   multiple folders.
  7278  //
  7279  //   * MaximumFileContentToLoadExceededException
  7280  //   The number of files to load exceeds the allowed limit.
  7281  //
  7282  //   * MaximumItemsToCompareExceededException
  7283  //   The number of items to compare between the source or destination branches
  7284  //   and the merge base has exceeded the maximum allowed.
  7285  //
  7286  //   * FileModeRequiredException
  7287  //   The commit cannot be created because no file mode has been specified. A file
  7288  //   mode is required to update mode permissions for a file.
  7289  //
  7290  //   * InvalidFileModeException
  7291  //   The specified file mode permission is not valid. For a list of valid file
  7292  //   mode permissions, see PutFile.
  7293  //
  7294  //   * NameLengthExceededException
  7295  //   The user name is not valid because it has exceeded the character limit for
  7296  //   author names.
  7297  //
  7298  //   * InvalidEmailException
  7299  //   The specified email address either contains one or more characters that are
  7300  //   not allowed, or it exceeds the maximum number of characters allowed for an
  7301  //   email address.
  7302  //
  7303  //   * CommitMessageLengthExceededException
  7304  //   The commit message is too long. Provide a shorter string.
  7305  //
  7306  //   * EncryptionIntegrityChecksFailedException
  7307  //   An encryption integrity check failed.
  7308  //
  7309  //   * EncryptionKeyAccessDeniedException
  7310  //   An encryption key could not be accessed.
  7311  //
  7312  //   * EncryptionKeyDisabledException
  7313  //   The encryption key is disabled.
  7314  //
  7315  //   * EncryptionKeyNotFoundException
  7316  //   No encryption key was found.
  7317  //
  7318  //   * EncryptionKeyUnavailableException
  7319  //   The encryption key is not available.
  7320  //
  7321  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByThreeWay
  7322  func (c *CodeCommit) MergeBranchesByThreeWay(input *MergeBranchesByThreeWayInput) (*MergeBranchesByThreeWayOutput, error) {
  7323  	req, out := c.MergeBranchesByThreeWayRequest(input)
  7324  	return out, req.Send()
  7325  }
  7326  
  7327  // MergeBranchesByThreeWayWithContext is the same as MergeBranchesByThreeWay with the addition of
  7328  // the ability to pass a context and additional request options.
  7329  //
  7330  // See MergeBranchesByThreeWay for details on how to use this API operation.
  7331  //
  7332  // The context must be non-nil and will be used for request cancellation. If
  7333  // the context is nil a panic will occur. In the future the SDK may create
  7334  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7335  // for more information on using Contexts.
  7336  func (c *CodeCommit) MergeBranchesByThreeWayWithContext(ctx aws.Context, input *MergeBranchesByThreeWayInput, opts ...request.Option) (*MergeBranchesByThreeWayOutput, error) {
  7337  	req, out := c.MergeBranchesByThreeWayRequest(input)
  7338  	req.SetContext(ctx)
  7339  	req.ApplyOptions(opts...)
  7340  	return out, req.Send()
  7341  }
  7342  
  7343  const opMergePullRequestByFastForward = "MergePullRequestByFastForward"
  7344  
  7345  // MergePullRequestByFastForwardRequest generates a "aws/request.Request" representing the
  7346  // client's request for the MergePullRequestByFastForward operation. The "output" return
  7347  // value will be populated with the request's response once the request completes
  7348  // successfully.
  7349  //
  7350  // Use "Send" method on the returned Request to send the API call to the service.
  7351  // the "output" return value is not valid until after Send returns without error.
  7352  //
  7353  // See MergePullRequestByFastForward for more information on using the MergePullRequestByFastForward
  7354  // API call, and error handling.
  7355  //
  7356  // This method is useful when you want to inject custom logic or configuration
  7357  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7358  //
  7359  //
  7360  //    // Example sending a request using the MergePullRequestByFastForwardRequest method.
  7361  //    req, resp := client.MergePullRequestByFastForwardRequest(params)
  7362  //
  7363  //    err := req.Send()
  7364  //    if err == nil { // resp is now filled
  7365  //        fmt.Println(resp)
  7366  //    }
  7367  //
  7368  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward
  7369  func (c *CodeCommit) MergePullRequestByFastForwardRequest(input *MergePullRequestByFastForwardInput) (req *request.Request, output *MergePullRequestByFastForwardOutput) {
  7370  	op := &request.Operation{
  7371  		Name:       opMergePullRequestByFastForward,
  7372  		HTTPMethod: "POST",
  7373  		HTTPPath:   "/",
  7374  	}
  7375  
  7376  	if input == nil {
  7377  		input = &MergePullRequestByFastForwardInput{}
  7378  	}
  7379  
  7380  	output = &MergePullRequestByFastForwardOutput{}
  7381  	req = c.newRequest(op, input, output)
  7382  	return
  7383  }
  7384  
  7385  // MergePullRequestByFastForward API operation for AWS CodeCommit.
  7386  //
  7387  // Attempts to merge the source commit of a pull request into the specified
  7388  // destination branch for that pull request at the specified commit using the
  7389  // fast-forward merge strategy. If the merge is successful, it closes the pull
  7390  // request.
  7391  //
  7392  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7393  // with awserr.Error's Code and Message methods to get detailed information about
  7394  // the error.
  7395  //
  7396  // See the AWS API reference guide for AWS CodeCommit's
  7397  // API operation MergePullRequestByFastForward for usage and error information.
  7398  //
  7399  // Returned Error Types:
  7400  //   * ManualMergeRequiredException
  7401  //   The pull request cannot be merged automatically into the destination branch.
  7402  //   You must manually merge the branches and resolve any conflicts.
  7403  //
  7404  //   * PullRequestAlreadyClosedException
  7405  //   The pull request status cannot be updated because it is already closed.
  7406  //
  7407  //   * PullRequestDoesNotExistException
  7408  //   The pull request ID could not be found. Make sure that you have specified
  7409  //   the correct repository name and pull request ID, and then try again.
  7410  //
  7411  //   * InvalidPullRequestIdException
  7412  //   The pull request ID is not valid. Make sure that you have provided the full
  7413  //   ID and that the pull request is in the specified repository, and then try
  7414  //   again.
  7415  //
  7416  //   * PullRequestIdRequiredException
  7417  //   A pull request ID is required, but none was provided.
  7418  //
  7419  //   * TipOfSourceReferenceIsDifferentException
  7420  //   The tip of the source branch in the destination repository does not match
  7421  //   the tip of the source branch specified in your request. The pull request
  7422  //   might have been updated. Make sure that you have the latest changes.
  7423  //
  7424  //   * ReferenceDoesNotExistException
  7425  //   The specified reference does not exist. You must provide a full commit ID.
  7426  //
  7427  //   * InvalidCommitIdException
  7428  //   The specified commit ID is not valid.
  7429  //
  7430  //   * RepositoryNotAssociatedWithPullRequestException
  7431  //   The repository does not contain any pull requests with that pull request
  7432  //   ID. Use GetPullRequest to verify the correct repository name for the pull
  7433  //   request ID.
  7434  //
  7435  //   * RepositoryNameRequiredException
  7436  //   A repository name is required, but was not specified.
  7437  //
  7438  //   * InvalidRepositoryNameException
  7439  //   A specified repository name is not valid.
  7440  //
  7441  //   This exception occurs only when a specified repository name is not valid.
  7442  //   Other exceptions occur when a required repository parameter is missing, or
  7443  //   when a specified repository does not exist.
  7444  //
  7445  //   * RepositoryDoesNotExistException
  7446  //   The specified repository does not exist.
  7447  //
  7448  //   * ConcurrentReferenceUpdateException
  7449  //   The merge cannot be completed because the target branch has been modified.
  7450  //   Another user might have modified the target branch while the merge was in
  7451  //   progress. Wait a few minutes, and then try again.
  7452  //
  7453  //   * PullRequestApprovalRulesNotSatisfiedException
  7454  //   The pull request cannot be merged because one or more approval rules applied
  7455  //   to the pull request have conditions that have not been met.
  7456  //
  7457  //   * EncryptionIntegrityChecksFailedException
  7458  //   An encryption integrity check failed.
  7459  //
  7460  //   * EncryptionKeyAccessDeniedException
  7461  //   An encryption key could not be accessed.
  7462  //
  7463  //   * EncryptionKeyDisabledException
  7464  //   The encryption key is disabled.
  7465  //
  7466  //   * EncryptionKeyNotFoundException
  7467  //   No encryption key was found.
  7468  //
  7469  //   * EncryptionKeyUnavailableException
  7470  //   The encryption key is not available.
  7471  //
  7472  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward
  7473  func (c *CodeCommit) MergePullRequestByFastForward(input *MergePullRequestByFastForwardInput) (*MergePullRequestByFastForwardOutput, error) {
  7474  	req, out := c.MergePullRequestByFastForwardRequest(input)
  7475  	return out, req.Send()
  7476  }
  7477  
  7478  // MergePullRequestByFastForwardWithContext is the same as MergePullRequestByFastForward with the addition of
  7479  // the ability to pass a context and additional request options.
  7480  //
  7481  // See MergePullRequestByFastForward for details on how to use this API operation.
  7482  //
  7483  // The context must be non-nil and will be used for request cancellation. If
  7484  // the context is nil a panic will occur. In the future the SDK may create
  7485  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7486  // for more information on using Contexts.
  7487  func (c *CodeCommit) MergePullRequestByFastForwardWithContext(ctx aws.Context, input *MergePullRequestByFastForwardInput, opts ...request.Option) (*MergePullRequestByFastForwardOutput, error) {
  7488  	req, out := c.MergePullRequestByFastForwardRequest(input)
  7489  	req.SetContext(ctx)
  7490  	req.ApplyOptions(opts...)
  7491  	return out, req.Send()
  7492  }
  7493  
  7494  const opMergePullRequestBySquash = "MergePullRequestBySquash"
  7495  
  7496  // MergePullRequestBySquashRequest generates a "aws/request.Request" representing the
  7497  // client's request for the MergePullRequestBySquash operation. The "output" return
  7498  // value will be populated with the request's response once the request completes
  7499  // successfully.
  7500  //
  7501  // Use "Send" method on the returned Request to send the API call to the service.
  7502  // the "output" return value is not valid until after Send returns without error.
  7503  //
  7504  // See MergePullRequestBySquash for more information on using the MergePullRequestBySquash
  7505  // API call, and error handling.
  7506  //
  7507  // This method is useful when you want to inject custom logic or configuration
  7508  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7509  //
  7510  //
  7511  //    // Example sending a request using the MergePullRequestBySquashRequest method.
  7512  //    req, resp := client.MergePullRequestBySquashRequest(params)
  7513  //
  7514  //    err := req.Send()
  7515  //    if err == nil { // resp is now filled
  7516  //        fmt.Println(resp)
  7517  //    }
  7518  //
  7519  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquash
  7520  func (c *CodeCommit) MergePullRequestBySquashRequest(input *MergePullRequestBySquashInput) (req *request.Request, output *MergePullRequestBySquashOutput) {
  7521  	op := &request.Operation{
  7522  		Name:       opMergePullRequestBySquash,
  7523  		HTTPMethod: "POST",
  7524  		HTTPPath:   "/",
  7525  	}
  7526  
  7527  	if input == nil {
  7528  		input = &MergePullRequestBySquashInput{}
  7529  	}
  7530  
  7531  	output = &MergePullRequestBySquashOutput{}
  7532  	req = c.newRequest(op, input, output)
  7533  	return
  7534  }
  7535  
  7536  // MergePullRequestBySquash API operation for AWS CodeCommit.
  7537  //
  7538  // Attempts to merge the source commit of a pull request into the specified
  7539  // destination branch for that pull request at the specified commit using the
  7540  // squash merge strategy. If the merge is successful, it closes the pull request.
  7541  //
  7542  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7543  // with awserr.Error's Code and Message methods to get detailed information about
  7544  // the error.
  7545  //
  7546  // See the AWS API reference guide for AWS CodeCommit's
  7547  // API operation MergePullRequestBySquash for usage and error information.
  7548  //
  7549  // Returned Error Types:
  7550  //   * PullRequestAlreadyClosedException
  7551  //   The pull request status cannot be updated because it is already closed.
  7552  //
  7553  //   * PullRequestDoesNotExistException
  7554  //   The pull request ID could not be found. Make sure that you have specified
  7555  //   the correct repository name and pull request ID, and then try again.
  7556  //
  7557  //   * PullRequestIdRequiredException
  7558  //   A pull request ID is required, but none was provided.
  7559  //
  7560  //   * InvalidPullRequestIdException
  7561  //   The pull request ID is not valid. Make sure that you have provided the full
  7562  //   ID and that the pull request is in the specified repository, and then try
  7563  //   again.
  7564  //
  7565  //   * InvalidCommitIdException
  7566  //   The specified commit ID is not valid.
  7567  //
  7568  //   * ManualMergeRequiredException
  7569  //   The pull request cannot be merged automatically into the destination branch.
  7570  //   You must manually merge the branches and resolve any conflicts.
  7571  //
  7572  //   * TipOfSourceReferenceIsDifferentException
  7573  //   The tip of the source branch in the destination repository does not match
  7574  //   the tip of the source branch specified in your request. The pull request
  7575  //   might have been updated. Make sure that you have the latest changes.
  7576  //
  7577  //   * TipsDivergenceExceededException
  7578  //   The divergence between the tips of the provided commit specifiers is too
  7579  //   great to determine whether there might be any merge conflicts. Locally compare
  7580  //   the specifiers using git diff or a diff tool.
  7581  //
  7582  //   * NameLengthExceededException
  7583  //   The user name is not valid because it has exceeded the character limit for
  7584  //   author names.
  7585  //
  7586  //   * InvalidEmailException
  7587  //   The specified email address either contains one or more characters that are
  7588  //   not allowed, or it exceeds the maximum number of characters allowed for an
  7589  //   email address.
  7590  //
  7591  //   * CommitMessageLengthExceededException
  7592  //   The commit message is too long. Provide a shorter string.
  7593  //
  7594  //   * InvalidConflictDetailLevelException
  7595  //   The specified conflict detail level is not valid.
  7596  //
  7597  //   * InvalidConflictResolutionStrategyException
  7598  //   The specified conflict resolution strategy is not valid.
  7599  //
  7600  //   * InvalidConflictResolutionException
  7601  //   The specified conflict resolution list is not valid.
  7602  //
  7603  //   * ReplacementTypeRequiredException
  7604  //   A replacement type is required.
  7605  //
  7606  //   * InvalidReplacementTypeException
  7607  //   Automerge was specified for resolving the conflict, but the specified replacement
  7608  //   type is not valid.
  7609  //
  7610  //   * MultipleConflictResolutionEntriesException
  7611  //   More than one conflict resolution entries exists for the conflict. A conflict
  7612  //   can have only one conflict resolution entry.
  7613  //
  7614  //   * ReplacementContentRequiredException
  7615  //   USE_NEW_CONTENT was specified, but no replacement content has been provided.
  7616  //
  7617  //   * MaximumConflictResolutionEntriesExceededException
  7618  //   The number of allowed conflict resolution entries was exceeded.
  7619  //
  7620  //   * ConcurrentReferenceUpdateException
  7621  //   The merge cannot be completed because the target branch has been modified.
  7622  //   Another user might have modified the target branch while the merge was in
  7623  //   progress. Wait a few minutes, and then try again.
  7624  //
  7625  //   * PathRequiredException
  7626  //   The folderPath for a location cannot be null.
  7627  //
  7628  //   * InvalidPathException
  7629  //   The specified path is not valid.
  7630  //
  7631  //   * InvalidFileModeException
  7632  //   The specified file mode permission is not valid. For a list of valid file
  7633  //   mode permissions, see PutFile.
  7634  //
  7635  //   * InvalidReplacementContentException
  7636  //   Automerge was specified for resolving the conflict, but the replacement type
  7637  //   is not valid or content is missing.
  7638  //
  7639  //   * FileContentSizeLimitExceededException
  7640  //   The file cannot be added because it is too large. The maximum file size is
  7641  //   6 MB, and the combined file content change size is 7 MB. Consider making
  7642  //   these changes using a Git client.
  7643  //
  7644  //   * FolderContentSizeLimitExceededException
  7645  //   The commit cannot be created because at least one of the overall changes
  7646  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  7647  //   Either reduce the number and size of your changes, or split the changes across
  7648  //   multiple folders.
  7649  //
  7650  //   * MaximumFileContentToLoadExceededException
  7651  //   The number of files to load exceeds the allowed limit.
  7652  //
  7653  //   * MaximumItemsToCompareExceededException
  7654  //   The number of items to compare between the source or destination branches
  7655  //   and the merge base has exceeded the maximum allowed.
  7656  //
  7657  //   * RepositoryNameRequiredException
  7658  //   A repository name is required, but was not specified.
  7659  //
  7660  //   * InvalidRepositoryNameException
  7661  //   A specified repository name is not valid.
  7662  //
  7663  //   This exception occurs only when a specified repository name is not valid.
  7664  //   Other exceptions occur when a required repository parameter is missing, or
  7665  //   when a specified repository does not exist.
  7666  //
  7667  //   * RepositoryDoesNotExistException
  7668  //   The specified repository does not exist.
  7669  //
  7670  //   * RepositoryNotAssociatedWithPullRequestException
  7671  //   The repository does not contain any pull requests with that pull request
  7672  //   ID. Use GetPullRequest to verify the correct repository name for the pull
  7673  //   request ID.
  7674  //
  7675  //   * PullRequestApprovalRulesNotSatisfiedException
  7676  //   The pull request cannot be merged because one or more approval rules applied
  7677  //   to the pull request have conditions that have not been met.
  7678  //
  7679  //   * EncryptionIntegrityChecksFailedException
  7680  //   An encryption integrity check failed.
  7681  //
  7682  //   * EncryptionKeyAccessDeniedException
  7683  //   An encryption key could not be accessed.
  7684  //
  7685  //   * EncryptionKeyDisabledException
  7686  //   The encryption key is disabled.
  7687  //
  7688  //   * EncryptionKeyNotFoundException
  7689  //   No encryption key was found.
  7690  //
  7691  //   * EncryptionKeyUnavailableException
  7692  //   The encryption key is not available.
  7693  //
  7694  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquash
  7695  func (c *CodeCommit) MergePullRequestBySquash(input *MergePullRequestBySquashInput) (*MergePullRequestBySquashOutput, error) {
  7696  	req, out := c.MergePullRequestBySquashRequest(input)
  7697  	return out, req.Send()
  7698  }
  7699  
  7700  // MergePullRequestBySquashWithContext is the same as MergePullRequestBySquash with the addition of
  7701  // the ability to pass a context and additional request options.
  7702  //
  7703  // See MergePullRequestBySquash for details on how to use this API operation.
  7704  //
  7705  // The context must be non-nil and will be used for request cancellation. If
  7706  // the context is nil a panic will occur. In the future the SDK may create
  7707  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7708  // for more information on using Contexts.
  7709  func (c *CodeCommit) MergePullRequestBySquashWithContext(ctx aws.Context, input *MergePullRequestBySquashInput, opts ...request.Option) (*MergePullRequestBySquashOutput, error) {
  7710  	req, out := c.MergePullRequestBySquashRequest(input)
  7711  	req.SetContext(ctx)
  7712  	req.ApplyOptions(opts...)
  7713  	return out, req.Send()
  7714  }
  7715  
  7716  const opMergePullRequestByThreeWay = "MergePullRequestByThreeWay"
  7717  
  7718  // MergePullRequestByThreeWayRequest generates a "aws/request.Request" representing the
  7719  // client's request for the MergePullRequestByThreeWay operation. The "output" return
  7720  // value will be populated with the request's response once the request completes
  7721  // successfully.
  7722  //
  7723  // Use "Send" method on the returned Request to send the API call to the service.
  7724  // the "output" return value is not valid until after Send returns without error.
  7725  //
  7726  // See MergePullRequestByThreeWay for more information on using the MergePullRequestByThreeWay
  7727  // API call, and error handling.
  7728  //
  7729  // This method is useful when you want to inject custom logic or configuration
  7730  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7731  //
  7732  //
  7733  //    // Example sending a request using the MergePullRequestByThreeWayRequest method.
  7734  //    req, resp := client.MergePullRequestByThreeWayRequest(params)
  7735  //
  7736  //    err := req.Send()
  7737  //    if err == nil { // resp is now filled
  7738  //        fmt.Println(resp)
  7739  //    }
  7740  //
  7741  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWay
  7742  func (c *CodeCommit) MergePullRequestByThreeWayRequest(input *MergePullRequestByThreeWayInput) (req *request.Request, output *MergePullRequestByThreeWayOutput) {
  7743  	op := &request.Operation{
  7744  		Name:       opMergePullRequestByThreeWay,
  7745  		HTTPMethod: "POST",
  7746  		HTTPPath:   "/",
  7747  	}
  7748  
  7749  	if input == nil {
  7750  		input = &MergePullRequestByThreeWayInput{}
  7751  	}
  7752  
  7753  	output = &MergePullRequestByThreeWayOutput{}
  7754  	req = c.newRequest(op, input, output)
  7755  	return
  7756  }
  7757  
  7758  // MergePullRequestByThreeWay API operation for AWS CodeCommit.
  7759  //
  7760  // Attempts to merge the source commit of a pull request into the specified
  7761  // destination branch for that pull request at the specified commit using the
  7762  // three-way merge strategy. If the merge is successful, it closes the pull
  7763  // request.
  7764  //
  7765  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7766  // with awserr.Error's Code and Message methods to get detailed information about
  7767  // the error.
  7768  //
  7769  // See the AWS API reference guide for AWS CodeCommit's
  7770  // API operation MergePullRequestByThreeWay for usage and error information.
  7771  //
  7772  // Returned Error Types:
  7773  //   * PullRequestAlreadyClosedException
  7774  //   The pull request status cannot be updated because it is already closed.
  7775  //
  7776  //   * PullRequestDoesNotExistException
  7777  //   The pull request ID could not be found. Make sure that you have specified
  7778  //   the correct repository name and pull request ID, and then try again.
  7779  //
  7780  //   * PullRequestIdRequiredException
  7781  //   A pull request ID is required, but none was provided.
  7782  //
  7783  //   * InvalidPullRequestIdException
  7784  //   The pull request ID is not valid. Make sure that you have provided the full
  7785  //   ID and that the pull request is in the specified repository, and then try
  7786  //   again.
  7787  //
  7788  //   * InvalidCommitIdException
  7789  //   The specified commit ID is not valid.
  7790  //
  7791  //   * ManualMergeRequiredException
  7792  //   The pull request cannot be merged automatically into the destination branch.
  7793  //   You must manually merge the branches and resolve any conflicts.
  7794  //
  7795  //   * TipOfSourceReferenceIsDifferentException
  7796  //   The tip of the source branch in the destination repository does not match
  7797  //   the tip of the source branch specified in your request. The pull request
  7798  //   might have been updated. Make sure that you have the latest changes.
  7799  //
  7800  //   * TipsDivergenceExceededException
  7801  //   The divergence between the tips of the provided commit specifiers is too
  7802  //   great to determine whether there might be any merge conflicts. Locally compare
  7803  //   the specifiers using git diff or a diff tool.
  7804  //
  7805  //   * NameLengthExceededException
  7806  //   The user name is not valid because it has exceeded the character limit for
  7807  //   author names.
  7808  //
  7809  //   * InvalidEmailException
  7810  //   The specified email address either contains one or more characters that are
  7811  //   not allowed, or it exceeds the maximum number of characters allowed for an
  7812  //   email address.
  7813  //
  7814  //   * CommitMessageLengthExceededException
  7815  //   The commit message is too long. Provide a shorter string.
  7816  //
  7817  //   * InvalidConflictDetailLevelException
  7818  //   The specified conflict detail level is not valid.
  7819  //
  7820  //   * InvalidConflictResolutionStrategyException
  7821  //   The specified conflict resolution strategy is not valid.
  7822  //
  7823  //   * InvalidConflictResolutionException
  7824  //   The specified conflict resolution list is not valid.
  7825  //
  7826  //   * ReplacementTypeRequiredException
  7827  //   A replacement type is required.
  7828  //
  7829  //   * InvalidReplacementTypeException
  7830  //   Automerge was specified for resolving the conflict, but the specified replacement
  7831  //   type is not valid.
  7832  //
  7833  //   * MultipleConflictResolutionEntriesException
  7834  //   More than one conflict resolution entries exists for the conflict. A conflict
  7835  //   can have only one conflict resolution entry.
  7836  //
  7837  //   * ReplacementContentRequiredException
  7838  //   USE_NEW_CONTENT was specified, but no replacement content has been provided.
  7839  //
  7840  //   * MaximumConflictResolutionEntriesExceededException
  7841  //   The number of allowed conflict resolution entries was exceeded.
  7842  //
  7843  //   * PathRequiredException
  7844  //   The folderPath for a location cannot be null.
  7845  //
  7846  //   * InvalidPathException
  7847  //   The specified path is not valid.
  7848  //
  7849  //   * InvalidFileModeException
  7850  //   The specified file mode permission is not valid. For a list of valid file
  7851  //   mode permissions, see PutFile.
  7852  //
  7853  //   * InvalidReplacementContentException
  7854  //   Automerge was specified for resolving the conflict, but the replacement type
  7855  //   is not valid or content is missing.
  7856  //
  7857  //   * FileContentSizeLimitExceededException
  7858  //   The file cannot be added because it is too large. The maximum file size is
  7859  //   6 MB, and the combined file content change size is 7 MB. Consider making
  7860  //   these changes using a Git client.
  7861  //
  7862  //   * FolderContentSizeLimitExceededException
  7863  //   The commit cannot be created because at least one of the overall changes
  7864  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  7865  //   Either reduce the number and size of your changes, or split the changes across
  7866  //   multiple folders.
  7867  //
  7868  //   * MaximumFileContentToLoadExceededException
  7869  //   The number of files to load exceeds the allowed limit.
  7870  //
  7871  //   * MaximumItemsToCompareExceededException
  7872  //   The number of items to compare between the source or destination branches
  7873  //   and the merge base has exceeded the maximum allowed.
  7874  //
  7875  //   * RepositoryNameRequiredException
  7876  //   A repository name is required, but was not specified.
  7877  //
  7878  //   * InvalidRepositoryNameException
  7879  //   A specified repository name is not valid.
  7880  //
  7881  //   This exception occurs only when a specified repository name is not valid.
  7882  //   Other exceptions occur when a required repository parameter is missing, or
  7883  //   when a specified repository does not exist.
  7884  //
  7885  //   * RepositoryDoesNotExistException
  7886  //   The specified repository does not exist.
  7887  //
  7888  //   * RepositoryNotAssociatedWithPullRequestException
  7889  //   The repository does not contain any pull requests with that pull request
  7890  //   ID. Use GetPullRequest to verify the correct repository name for the pull
  7891  //   request ID.
  7892  //
  7893  //   * ConcurrentReferenceUpdateException
  7894  //   The merge cannot be completed because the target branch has been modified.
  7895  //   Another user might have modified the target branch while the merge was in
  7896  //   progress. Wait a few minutes, and then try again.
  7897  //
  7898  //   * PullRequestApprovalRulesNotSatisfiedException
  7899  //   The pull request cannot be merged because one or more approval rules applied
  7900  //   to the pull request have conditions that have not been met.
  7901  //
  7902  //   * EncryptionIntegrityChecksFailedException
  7903  //   An encryption integrity check failed.
  7904  //
  7905  //   * EncryptionKeyAccessDeniedException
  7906  //   An encryption key could not be accessed.
  7907  //
  7908  //   * EncryptionKeyDisabledException
  7909  //   The encryption key is disabled.
  7910  //
  7911  //   * EncryptionKeyNotFoundException
  7912  //   No encryption key was found.
  7913  //
  7914  //   * EncryptionKeyUnavailableException
  7915  //   The encryption key is not available.
  7916  //
  7917  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWay
  7918  func (c *CodeCommit) MergePullRequestByThreeWay(input *MergePullRequestByThreeWayInput) (*MergePullRequestByThreeWayOutput, error) {
  7919  	req, out := c.MergePullRequestByThreeWayRequest(input)
  7920  	return out, req.Send()
  7921  }
  7922  
  7923  // MergePullRequestByThreeWayWithContext is the same as MergePullRequestByThreeWay with the addition of
  7924  // the ability to pass a context and additional request options.
  7925  //
  7926  // See MergePullRequestByThreeWay for details on how to use this API operation.
  7927  //
  7928  // The context must be non-nil and will be used for request cancellation. If
  7929  // the context is nil a panic will occur. In the future the SDK may create
  7930  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7931  // for more information on using Contexts.
  7932  func (c *CodeCommit) MergePullRequestByThreeWayWithContext(ctx aws.Context, input *MergePullRequestByThreeWayInput, opts ...request.Option) (*MergePullRequestByThreeWayOutput, error) {
  7933  	req, out := c.MergePullRequestByThreeWayRequest(input)
  7934  	req.SetContext(ctx)
  7935  	req.ApplyOptions(opts...)
  7936  	return out, req.Send()
  7937  }
  7938  
  7939  const opOverridePullRequestApprovalRules = "OverridePullRequestApprovalRules"
  7940  
  7941  // OverridePullRequestApprovalRulesRequest generates a "aws/request.Request" representing the
  7942  // client's request for the OverridePullRequestApprovalRules operation. The "output" return
  7943  // value will be populated with the request's response once the request completes
  7944  // successfully.
  7945  //
  7946  // Use "Send" method on the returned Request to send the API call to the service.
  7947  // the "output" return value is not valid until after Send returns without error.
  7948  //
  7949  // See OverridePullRequestApprovalRules for more information on using the OverridePullRequestApprovalRules
  7950  // API call, and error handling.
  7951  //
  7952  // This method is useful when you want to inject custom logic or configuration
  7953  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7954  //
  7955  //
  7956  //    // Example sending a request using the OverridePullRequestApprovalRulesRequest method.
  7957  //    req, resp := client.OverridePullRequestApprovalRulesRequest(params)
  7958  //
  7959  //    err := req.Send()
  7960  //    if err == nil { // resp is now filled
  7961  //        fmt.Println(resp)
  7962  //    }
  7963  //
  7964  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OverridePullRequestApprovalRules
  7965  func (c *CodeCommit) OverridePullRequestApprovalRulesRequest(input *OverridePullRequestApprovalRulesInput) (req *request.Request, output *OverridePullRequestApprovalRulesOutput) {
  7966  	op := &request.Operation{
  7967  		Name:       opOverridePullRequestApprovalRules,
  7968  		HTTPMethod: "POST",
  7969  		HTTPPath:   "/",
  7970  	}
  7971  
  7972  	if input == nil {
  7973  		input = &OverridePullRequestApprovalRulesInput{}
  7974  	}
  7975  
  7976  	output = &OverridePullRequestApprovalRulesOutput{}
  7977  	req = c.newRequest(op, input, output)
  7978  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7979  	return
  7980  }
  7981  
  7982  // OverridePullRequestApprovalRules API operation for AWS CodeCommit.
  7983  //
  7984  // Sets aside (overrides) all approval rule requirements for a specified pull
  7985  // request.
  7986  //
  7987  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7988  // with awserr.Error's Code and Message methods to get detailed information about
  7989  // the error.
  7990  //
  7991  // See the AWS API reference guide for AWS CodeCommit's
  7992  // API operation OverridePullRequestApprovalRules for usage and error information.
  7993  //
  7994  // Returned Error Types:
  7995  //   * PullRequestDoesNotExistException
  7996  //   The pull request ID could not be found. Make sure that you have specified
  7997  //   the correct repository name and pull request ID, and then try again.
  7998  //
  7999  //   * InvalidPullRequestIdException
  8000  //   The pull request ID is not valid. Make sure that you have provided the full
  8001  //   ID and that the pull request is in the specified repository, and then try
  8002  //   again.
  8003  //
  8004  //   * PullRequestIdRequiredException
  8005  //   A pull request ID is required, but none was provided.
  8006  //
  8007  //   * InvalidRevisionIdException
  8008  //   The revision ID is not valid. Use GetPullRequest to determine the value.
  8009  //
  8010  //   * RevisionIdRequiredException
  8011  //   A revision ID is required, but was not provided.
  8012  //
  8013  //   * InvalidOverrideStatusException
  8014  //   The override status is not valid. Valid statuses are OVERRIDE and REVOKE.
  8015  //
  8016  //   * OverrideStatusRequiredException
  8017  //   An override status is required, but no value was provided. Valid values include
  8018  //   OVERRIDE and REVOKE.
  8019  //
  8020  //   * OverrideAlreadySetException
  8021  //   The pull request has already had its approval rules set to override.
  8022  //
  8023  //   * RevisionNotCurrentException
  8024  //   The revision ID provided in the request does not match the current revision
  8025  //   ID. Use GetPullRequest to retrieve the current revision ID.
  8026  //
  8027  //   * PullRequestAlreadyClosedException
  8028  //   The pull request status cannot be updated because it is already closed.
  8029  //
  8030  //   * EncryptionIntegrityChecksFailedException
  8031  //   An encryption integrity check failed.
  8032  //
  8033  //   * EncryptionKeyAccessDeniedException
  8034  //   An encryption key could not be accessed.
  8035  //
  8036  //   * EncryptionKeyDisabledException
  8037  //   The encryption key is disabled.
  8038  //
  8039  //   * EncryptionKeyNotFoundException
  8040  //   No encryption key was found.
  8041  //
  8042  //   * EncryptionKeyUnavailableException
  8043  //   The encryption key is not available.
  8044  //
  8045  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OverridePullRequestApprovalRules
  8046  func (c *CodeCommit) OverridePullRequestApprovalRules(input *OverridePullRequestApprovalRulesInput) (*OverridePullRequestApprovalRulesOutput, error) {
  8047  	req, out := c.OverridePullRequestApprovalRulesRequest(input)
  8048  	return out, req.Send()
  8049  }
  8050  
  8051  // OverridePullRequestApprovalRulesWithContext is the same as OverridePullRequestApprovalRules with the addition of
  8052  // the ability to pass a context and additional request options.
  8053  //
  8054  // See OverridePullRequestApprovalRules for details on how to use this API operation.
  8055  //
  8056  // The context must be non-nil and will be used for request cancellation. If
  8057  // the context is nil a panic will occur. In the future the SDK may create
  8058  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8059  // for more information on using Contexts.
  8060  func (c *CodeCommit) OverridePullRequestApprovalRulesWithContext(ctx aws.Context, input *OverridePullRequestApprovalRulesInput, opts ...request.Option) (*OverridePullRequestApprovalRulesOutput, error) {
  8061  	req, out := c.OverridePullRequestApprovalRulesRequest(input)
  8062  	req.SetContext(ctx)
  8063  	req.ApplyOptions(opts...)
  8064  	return out, req.Send()
  8065  }
  8066  
  8067  const opPostCommentForComparedCommit = "PostCommentForComparedCommit"
  8068  
  8069  // PostCommentForComparedCommitRequest generates a "aws/request.Request" representing the
  8070  // client's request for the PostCommentForComparedCommit operation. The "output" return
  8071  // value will be populated with the request's response once the request completes
  8072  // successfully.
  8073  //
  8074  // Use "Send" method on the returned Request to send the API call to the service.
  8075  // the "output" return value is not valid until after Send returns without error.
  8076  //
  8077  // See PostCommentForComparedCommit for more information on using the PostCommentForComparedCommit
  8078  // API call, and error handling.
  8079  //
  8080  // This method is useful when you want to inject custom logic or configuration
  8081  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8082  //
  8083  //
  8084  //    // Example sending a request using the PostCommentForComparedCommitRequest method.
  8085  //    req, resp := client.PostCommentForComparedCommitRequest(params)
  8086  //
  8087  //    err := req.Send()
  8088  //    if err == nil { // resp is now filled
  8089  //        fmt.Println(resp)
  8090  //    }
  8091  //
  8092  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit
  8093  func (c *CodeCommit) PostCommentForComparedCommitRequest(input *PostCommentForComparedCommitInput) (req *request.Request, output *PostCommentForComparedCommitOutput) {
  8094  	op := &request.Operation{
  8095  		Name:       opPostCommentForComparedCommit,
  8096  		HTTPMethod: "POST",
  8097  		HTTPPath:   "/",
  8098  	}
  8099  
  8100  	if input == nil {
  8101  		input = &PostCommentForComparedCommitInput{}
  8102  	}
  8103  
  8104  	output = &PostCommentForComparedCommitOutput{}
  8105  	req = c.newRequest(op, input, output)
  8106  	return
  8107  }
  8108  
  8109  // PostCommentForComparedCommit API operation for AWS CodeCommit.
  8110  //
  8111  // Posts a comment on the comparison between two commits.
  8112  //
  8113  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8114  // with awserr.Error's Code and Message methods to get detailed information about
  8115  // the error.
  8116  //
  8117  // See the AWS API reference guide for AWS CodeCommit's
  8118  // API operation PostCommentForComparedCommit for usage and error information.
  8119  //
  8120  // Returned Error Types:
  8121  //   * RepositoryNameRequiredException
  8122  //   A repository name is required, but was not specified.
  8123  //
  8124  //   * RepositoryDoesNotExistException
  8125  //   The specified repository does not exist.
  8126  //
  8127  //   * InvalidRepositoryNameException
  8128  //   A specified repository name is not valid.
  8129  //
  8130  //   This exception occurs only when a specified repository name is not valid.
  8131  //   Other exceptions occur when a required repository parameter is missing, or
  8132  //   when a specified repository does not exist.
  8133  //
  8134  //   * ClientRequestTokenRequiredException
  8135  //   A client request token is required. A client request token is an unique,
  8136  //   client-generated idempotency token that, when provided in a request, ensures
  8137  //   the request cannot be repeated with a changed parameter. If a request is
  8138  //   received with the same parameters and a token is included, the request returns
  8139  //   information about the initial request that used that token.
  8140  //
  8141  //   * InvalidClientRequestTokenException
  8142  //   The client request token is not valid.
  8143  //
  8144  //   * IdempotencyParameterMismatchException
  8145  //   The client request token is not valid. Either the token is not in a valid
  8146  //   format, or the token has been used in a previous request and cannot be reused.
  8147  //
  8148  //   * CommentContentRequiredException
  8149  //   The comment is empty. You must provide some content for a comment. The content
  8150  //   cannot be null.
  8151  //
  8152  //   * CommentContentSizeLimitExceededException
  8153  //   The comment is too large. Comments are limited to 1,000 characters.
  8154  //
  8155  //   * InvalidFileLocationException
  8156  //   The location of the file is not valid. Make sure that you include the file
  8157  //   name and extension.
  8158  //
  8159  //   * InvalidRelativeFileVersionEnumException
  8160  //   Either the enum is not in a valid format, or the specified file version enum
  8161  //   is not valid in respect to the current file version.
  8162  //
  8163  //   * PathRequiredException
  8164  //   The folderPath for a location cannot be null.
  8165  //
  8166  //   * InvalidFilePositionException
  8167  //   The position is not valid. Make sure that the line number exists in the version
  8168  //   of the file you want to comment on.
  8169  //
  8170  //   * CommitIdRequiredException
  8171  //   A commit ID was not specified.
  8172  //
  8173  //   * InvalidCommitIdException
  8174  //   The specified commit ID is not valid.
  8175  //
  8176  //   * BeforeCommitIdAndAfterCommitIdAreSameException
  8177  //   The before commit ID and the after commit ID are the same, which is not valid.
  8178  //   The before commit ID and the after commit ID must be different commit IDs.
  8179  //
  8180  //   * EncryptionIntegrityChecksFailedException
  8181  //   An encryption integrity check failed.
  8182  //
  8183  //   * EncryptionKeyAccessDeniedException
  8184  //   An encryption key could not be accessed.
  8185  //
  8186  //   * EncryptionKeyDisabledException
  8187  //   The encryption key is disabled.
  8188  //
  8189  //   * EncryptionKeyNotFoundException
  8190  //   No encryption key was found.
  8191  //
  8192  //   * EncryptionKeyUnavailableException
  8193  //   The encryption key is not available.
  8194  //
  8195  //   * CommitDoesNotExistException
  8196  //   The specified commit does not exist or no commit was specified, and the specified
  8197  //   repository has no default branch.
  8198  //
  8199  //   * InvalidPathException
  8200  //   The specified path is not valid.
  8201  //
  8202  //   * PathDoesNotExistException
  8203  //   The specified path does not exist.
  8204  //
  8205  //   * PathRequiredException
  8206  //   The folderPath for a location cannot be null.
  8207  //
  8208  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit
  8209  func (c *CodeCommit) PostCommentForComparedCommit(input *PostCommentForComparedCommitInput) (*PostCommentForComparedCommitOutput, error) {
  8210  	req, out := c.PostCommentForComparedCommitRequest(input)
  8211  	return out, req.Send()
  8212  }
  8213  
  8214  // PostCommentForComparedCommitWithContext is the same as PostCommentForComparedCommit with the addition of
  8215  // the ability to pass a context and additional request options.
  8216  //
  8217  // See PostCommentForComparedCommit for details on how to use this API operation.
  8218  //
  8219  // The context must be non-nil and will be used for request cancellation. If
  8220  // the context is nil a panic will occur. In the future the SDK may create
  8221  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8222  // for more information on using Contexts.
  8223  func (c *CodeCommit) PostCommentForComparedCommitWithContext(ctx aws.Context, input *PostCommentForComparedCommitInput, opts ...request.Option) (*PostCommentForComparedCommitOutput, error) {
  8224  	req, out := c.PostCommentForComparedCommitRequest(input)
  8225  	req.SetContext(ctx)
  8226  	req.ApplyOptions(opts...)
  8227  	return out, req.Send()
  8228  }
  8229  
  8230  const opPostCommentForPullRequest = "PostCommentForPullRequest"
  8231  
  8232  // PostCommentForPullRequestRequest generates a "aws/request.Request" representing the
  8233  // client's request for the PostCommentForPullRequest operation. The "output" return
  8234  // value will be populated with the request's response once the request completes
  8235  // successfully.
  8236  //
  8237  // Use "Send" method on the returned Request to send the API call to the service.
  8238  // the "output" return value is not valid until after Send returns without error.
  8239  //
  8240  // See PostCommentForPullRequest for more information on using the PostCommentForPullRequest
  8241  // API call, and error handling.
  8242  //
  8243  // This method is useful when you want to inject custom logic or configuration
  8244  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8245  //
  8246  //
  8247  //    // Example sending a request using the PostCommentForPullRequestRequest method.
  8248  //    req, resp := client.PostCommentForPullRequestRequest(params)
  8249  //
  8250  //    err := req.Send()
  8251  //    if err == nil { // resp is now filled
  8252  //        fmt.Println(resp)
  8253  //    }
  8254  //
  8255  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest
  8256  func (c *CodeCommit) PostCommentForPullRequestRequest(input *PostCommentForPullRequestInput) (req *request.Request, output *PostCommentForPullRequestOutput) {
  8257  	op := &request.Operation{
  8258  		Name:       opPostCommentForPullRequest,
  8259  		HTTPMethod: "POST",
  8260  		HTTPPath:   "/",
  8261  	}
  8262  
  8263  	if input == nil {
  8264  		input = &PostCommentForPullRequestInput{}
  8265  	}
  8266  
  8267  	output = &PostCommentForPullRequestOutput{}
  8268  	req = c.newRequest(op, input, output)
  8269  	return
  8270  }
  8271  
  8272  // PostCommentForPullRequest API operation for AWS CodeCommit.
  8273  //
  8274  // Posts a comment on a pull request.
  8275  //
  8276  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8277  // with awserr.Error's Code and Message methods to get detailed information about
  8278  // the error.
  8279  //
  8280  // See the AWS API reference guide for AWS CodeCommit's
  8281  // API operation PostCommentForPullRequest for usage and error information.
  8282  //
  8283  // Returned Error Types:
  8284  //   * PullRequestDoesNotExistException
  8285  //   The pull request ID could not be found. Make sure that you have specified
  8286  //   the correct repository name and pull request ID, and then try again.
  8287  //
  8288  //   * InvalidPullRequestIdException
  8289  //   The pull request ID is not valid. Make sure that you have provided the full
  8290  //   ID and that the pull request is in the specified repository, and then try
  8291  //   again.
  8292  //
  8293  //   * PullRequestIdRequiredException
  8294  //   A pull request ID is required, but none was provided.
  8295  //
  8296  //   * RepositoryNotAssociatedWithPullRequestException
  8297  //   The repository does not contain any pull requests with that pull request
  8298  //   ID. Use GetPullRequest to verify the correct repository name for the pull
  8299  //   request ID.
  8300  //
  8301  //   * RepositoryNameRequiredException
  8302  //   A repository name is required, but was not specified.
  8303  //
  8304  //   * RepositoryDoesNotExistException
  8305  //   The specified repository does not exist.
  8306  //
  8307  //   * InvalidRepositoryNameException
  8308  //   A specified repository name is not valid.
  8309  //
  8310  //   This exception occurs only when a specified repository name is not valid.
  8311  //   Other exceptions occur when a required repository parameter is missing, or
  8312  //   when a specified repository does not exist.
  8313  //
  8314  //   * ClientRequestTokenRequiredException
  8315  //   A client request token is required. A client request token is an unique,
  8316  //   client-generated idempotency token that, when provided in a request, ensures
  8317  //   the request cannot be repeated with a changed parameter. If a request is
  8318  //   received with the same parameters and a token is included, the request returns
  8319  //   information about the initial request that used that token.
  8320  //
  8321  //   * InvalidClientRequestTokenException
  8322  //   The client request token is not valid.
  8323  //
  8324  //   * IdempotencyParameterMismatchException
  8325  //   The client request token is not valid. Either the token is not in a valid
  8326  //   format, or the token has been used in a previous request and cannot be reused.
  8327  //
  8328  //   * CommentContentRequiredException
  8329  //   The comment is empty. You must provide some content for a comment. The content
  8330  //   cannot be null.
  8331  //
  8332  //   * CommentContentSizeLimitExceededException
  8333  //   The comment is too large. Comments are limited to 1,000 characters.
  8334  //
  8335  //   * InvalidFileLocationException
  8336  //   The location of the file is not valid. Make sure that you include the file
  8337  //   name and extension.
  8338  //
  8339  //   * InvalidRelativeFileVersionEnumException
  8340  //   Either the enum is not in a valid format, or the specified file version enum
  8341  //   is not valid in respect to the current file version.
  8342  //
  8343  //   * PathRequiredException
  8344  //   The folderPath for a location cannot be null.
  8345  //
  8346  //   * InvalidFilePositionException
  8347  //   The position is not valid. Make sure that the line number exists in the version
  8348  //   of the file you want to comment on.
  8349  //
  8350  //   * CommitIdRequiredException
  8351  //   A commit ID was not specified.
  8352  //
  8353  //   * InvalidCommitIdException
  8354  //   The specified commit ID is not valid.
  8355  //
  8356  //   * BeforeCommitIdAndAfterCommitIdAreSameException
  8357  //   The before commit ID and the after commit ID are the same, which is not valid.
  8358  //   The before commit ID and the after commit ID must be different commit IDs.
  8359  //
  8360  //   * EncryptionIntegrityChecksFailedException
  8361  //   An encryption integrity check failed.
  8362  //
  8363  //   * EncryptionKeyAccessDeniedException
  8364  //   An encryption key could not be accessed.
  8365  //
  8366  //   * EncryptionKeyDisabledException
  8367  //   The encryption key is disabled.
  8368  //
  8369  //   * EncryptionKeyNotFoundException
  8370  //   No encryption key was found.
  8371  //
  8372  //   * EncryptionKeyUnavailableException
  8373  //   The encryption key is not available.
  8374  //
  8375  //   * CommitDoesNotExistException
  8376  //   The specified commit does not exist or no commit was specified, and the specified
  8377  //   repository has no default branch.
  8378  //
  8379  //   * InvalidPathException
  8380  //   The specified path is not valid.
  8381  //
  8382  //   * PathDoesNotExistException
  8383  //   The specified path does not exist.
  8384  //
  8385  //   * PathRequiredException
  8386  //   The folderPath for a location cannot be null.
  8387  //
  8388  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest
  8389  func (c *CodeCommit) PostCommentForPullRequest(input *PostCommentForPullRequestInput) (*PostCommentForPullRequestOutput, error) {
  8390  	req, out := c.PostCommentForPullRequestRequest(input)
  8391  	return out, req.Send()
  8392  }
  8393  
  8394  // PostCommentForPullRequestWithContext is the same as PostCommentForPullRequest with the addition of
  8395  // the ability to pass a context and additional request options.
  8396  //
  8397  // See PostCommentForPullRequest for details on how to use this API operation.
  8398  //
  8399  // The context must be non-nil and will be used for request cancellation. If
  8400  // the context is nil a panic will occur. In the future the SDK may create
  8401  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8402  // for more information on using Contexts.
  8403  func (c *CodeCommit) PostCommentForPullRequestWithContext(ctx aws.Context, input *PostCommentForPullRequestInput, opts ...request.Option) (*PostCommentForPullRequestOutput, error) {
  8404  	req, out := c.PostCommentForPullRequestRequest(input)
  8405  	req.SetContext(ctx)
  8406  	req.ApplyOptions(opts...)
  8407  	return out, req.Send()
  8408  }
  8409  
  8410  const opPostCommentReply = "PostCommentReply"
  8411  
  8412  // PostCommentReplyRequest generates a "aws/request.Request" representing the
  8413  // client's request for the PostCommentReply operation. The "output" return
  8414  // value will be populated with the request's response once the request completes
  8415  // successfully.
  8416  //
  8417  // Use "Send" method on the returned Request to send the API call to the service.
  8418  // the "output" return value is not valid until after Send returns without error.
  8419  //
  8420  // See PostCommentReply for more information on using the PostCommentReply
  8421  // API call, and error handling.
  8422  //
  8423  // This method is useful when you want to inject custom logic or configuration
  8424  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8425  //
  8426  //
  8427  //    // Example sending a request using the PostCommentReplyRequest method.
  8428  //    req, resp := client.PostCommentReplyRequest(params)
  8429  //
  8430  //    err := req.Send()
  8431  //    if err == nil { // resp is now filled
  8432  //        fmt.Println(resp)
  8433  //    }
  8434  //
  8435  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply
  8436  func (c *CodeCommit) PostCommentReplyRequest(input *PostCommentReplyInput) (req *request.Request, output *PostCommentReplyOutput) {
  8437  	op := &request.Operation{
  8438  		Name:       opPostCommentReply,
  8439  		HTTPMethod: "POST",
  8440  		HTTPPath:   "/",
  8441  	}
  8442  
  8443  	if input == nil {
  8444  		input = &PostCommentReplyInput{}
  8445  	}
  8446  
  8447  	output = &PostCommentReplyOutput{}
  8448  	req = c.newRequest(op, input, output)
  8449  	return
  8450  }
  8451  
  8452  // PostCommentReply API operation for AWS CodeCommit.
  8453  //
  8454  // Posts a comment in reply to an existing comment on a comparison between commits
  8455  // or a pull request.
  8456  //
  8457  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8458  // with awserr.Error's Code and Message methods to get detailed information about
  8459  // the error.
  8460  //
  8461  // See the AWS API reference guide for AWS CodeCommit's
  8462  // API operation PostCommentReply for usage and error information.
  8463  //
  8464  // Returned Error Types:
  8465  //   * ClientRequestTokenRequiredException
  8466  //   A client request token is required. A client request token is an unique,
  8467  //   client-generated idempotency token that, when provided in a request, ensures
  8468  //   the request cannot be repeated with a changed parameter. If a request is
  8469  //   received with the same parameters and a token is included, the request returns
  8470  //   information about the initial request that used that token.
  8471  //
  8472  //   * InvalidClientRequestTokenException
  8473  //   The client request token is not valid.
  8474  //
  8475  //   * IdempotencyParameterMismatchException
  8476  //   The client request token is not valid. Either the token is not in a valid
  8477  //   format, or the token has been used in a previous request and cannot be reused.
  8478  //
  8479  //   * CommentContentRequiredException
  8480  //   The comment is empty. You must provide some content for a comment. The content
  8481  //   cannot be null.
  8482  //
  8483  //   * CommentContentSizeLimitExceededException
  8484  //   The comment is too large. Comments are limited to 1,000 characters.
  8485  //
  8486  //   * CommentDoesNotExistException
  8487  //   No comment exists with the provided ID. Verify that you have used the correct
  8488  //   ID, and then try again.
  8489  //
  8490  //   * CommentIdRequiredException
  8491  //   The comment ID is missing or null. A comment ID is required.
  8492  //
  8493  //   * InvalidCommentIdException
  8494  //   The comment ID is not in a valid format. Make sure that you have provided
  8495  //   the full comment ID.
  8496  //
  8497  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply
  8498  func (c *CodeCommit) PostCommentReply(input *PostCommentReplyInput) (*PostCommentReplyOutput, error) {
  8499  	req, out := c.PostCommentReplyRequest(input)
  8500  	return out, req.Send()
  8501  }
  8502  
  8503  // PostCommentReplyWithContext is the same as PostCommentReply with the addition of
  8504  // the ability to pass a context and additional request options.
  8505  //
  8506  // See PostCommentReply for details on how to use this API operation.
  8507  //
  8508  // The context must be non-nil and will be used for request cancellation. If
  8509  // the context is nil a panic will occur. In the future the SDK may create
  8510  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8511  // for more information on using Contexts.
  8512  func (c *CodeCommit) PostCommentReplyWithContext(ctx aws.Context, input *PostCommentReplyInput, opts ...request.Option) (*PostCommentReplyOutput, error) {
  8513  	req, out := c.PostCommentReplyRequest(input)
  8514  	req.SetContext(ctx)
  8515  	req.ApplyOptions(opts...)
  8516  	return out, req.Send()
  8517  }
  8518  
  8519  const opPutCommentReaction = "PutCommentReaction"
  8520  
  8521  // PutCommentReactionRequest generates a "aws/request.Request" representing the
  8522  // client's request for the PutCommentReaction operation. The "output" return
  8523  // value will be populated with the request's response once the request completes
  8524  // successfully.
  8525  //
  8526  // Use "Send" method on the returned Request to send the API call to the service.
  8527  // the "output" return value is not valid until after Send returns without error.
  8528  //
  8529  // See PutCommentReaction for more information on using the PutCommentReaction
  8530  // API call, and error handling.
  8531  //
  8532  // This method is useful when you want to inject custom logic or configuration
  8533  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8534  //
  8535  //
  8536  //    // Example sending a request using the PutCommentReactionRequest method.
  8537  //    req, resp := client.PutCommentReactionRequest(params)
  8538  //
  8539  //    err := req.Send()
  8540  //    if err == nil { // resp is now filled
  8541  //        fmt.Println(resp)
  8542  //    }
  8543  //
  8544  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReaction
  8545  func (c *CodeCommit) PutCommentReactionRequest(input *PutCommentReactionInput) (req *request.Request, output *PutCommentReactionOutput) {
  8546  	op := &request.Operation{
  8547  		Name:       opPutCommentReaction,
  8548  		HTTPMethod: "POST",
  8549  		HTTPPath:   "/",
  8550  	}
  8551  
  8552  	if input == nil {
  8553  		input = &PutCommentReactionInput{}
  8554  	}
  8555  
  8556  	output = &PutCommentReactionOutput{}
  8557  	req = c.newRequest(op, input, output)
  8558  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8559  	return
  8560  }
  8561  
  8562  // PutCommentReaction API operation for AWS CodeCommit.
  8563  //
  8564  // Adds or updates a reaction to a specified comment for the user whose identity
  8565  // is used to make the request. You can only add or update a reaction for yourself.
  8566  // You cannot add, modify, or delete a reaction for another user.
  8567  //
  8568  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8569  // with awserr.Error's Code and Message methods to get detailed information about
  8570  // the error.
  8571  //
  8572  // See the AWS API reference guide for AWS CodeCommit's
  8573  // API operation PutCommentReaction for usage and error information.
  8574  //
  8575  // Returned Error Types:
  8576  //   * CommentDoesNotExistException
  8577  //   No comment exists with the provided ID. Verify that you have used the correct
  8578  //   ID, and then try again.
  8579  //
  8580  //   * CommentIdRequiredException
  8581  //   The comment ID is missing or null. A comment ID is required.
  8582  //
  8583  //   * InvalidCommentIdException
  8584  //   The comment ID is not in a valid format. Make sure that you have provided
  8585  //   the full comment ID.
  8586  //
  8587  //   * InvalidReactionValueException
  8588  //   The value of the reaction is not valid. For more information, see the AWS
  8589  //   CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html).
  8590  //
  8591  //   * ReactionValueRequiredException
  8592  //   A reaction value is required.
  8593  //
  8594  //   * ReactionLimitExceededException
  8595  //   The number of reactions has been exceeded. Reactions are limited to one reaction
  8596  //   per user for each individual comment ID.
  8597  //
  8598  //   * CommentDeletedException
  8599  //   This comment has already been deleted. You cannot edit or delete a deleted
  8600  //   comment.
  8601  //
  8602  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReaction
  8603  func (c *CodeCommit) PutCommentReaction(input *PutCommentReactionInput) (*PutCommentReactionOutput, error) {
  8604  	req, out := c.PutCommentReactionRequest(input)
  8605  	return out, req.Send()
  8606  }
  8607  
  8608  // PutCommentReactionWithContext is the same as PutCommentReaction with the addition of
  8609  // the ability to pass a context and additional request options.
  8610  //
  8611  // See PutCommentReaction for details on how to use this API operation.
  8612  //
  8613  // The context must be non-nil and will be used for request cancellation. If
  8614  // the context is nil a panic will occur. In the future the SDK may create
  8615  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8616  // for more information on using Contexts.
  8617  func (c *CodeCommit) PutCommentReactionWithContext(ctx aws.Context, input *PutCommentReactionInput, opts ...request.Option) (*PutCommentReactionOutput, error) {
  8618  	req, out := c.PutCommentReactionRequest(input)
  8619  	req.SetContext(ctx)
  8620  	req.ApplyOptions(opts...)
  8621  	return out, req.Send()
  8622  }
  8623  
  8624  const opPutFile = "PutFile"
  8625  
  8626  // PutFileRequest generates a "aws/request.Request" representing the
  8627  // client's request for the PutFile operation. The "output" return
  8628  // value will be populated with the request's response once the request completes
  8629  // successfully.
  8630  //
  8631  // Use "Send" method on the returned Request to send the API call to the service.
  8632  // the "output" return value is not valid until after Send returns without error.
  8633  //
  8634  // See PutFile for more information on using the PutFile
  8635  // API call, and error handling.
  8636  //
  8637  // This method is useful when you want to inject custom logic or configuration
  8638  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8639  //
  8640  //
  8641  //    // Example sending a request using the PutFileRequest method.
  8642  //    req, resp := client.PutFileRequest(params)
  8643  //
  8644  //    err := req.Send()
  8645  //    if err == nil { // resp is now filled
  8646  //        fmt.Println(resp)
  8647  //    }
  8648  //
  8649  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile
  8650  func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, output *PutFileOutput) {
  8651  	op := &request.Operation{
  8652  		Name:       opPutFile,
  8653  		HTTPMethod: "POST",
  8654  		HTTPPath:   "/",
  8655  	}
  8656  
  8657  	if input == nil {
  8658  		input = &PutFileInput{}
  8659  	}
  8660  
  8661  	output = &PutFileOutput{}
  8662  	req = c.newRequest(op, input, output)
  8663  	return
  8664  }
  8665  
  8666  // PutFile API operation for AWS CodeCommit.
  8667  //
  8668  // Adds or updates a file in a branch in an AWS CodeCommit repository, and generates
  8669  // a commit for the addition in the specified branch.
  8670  //
  8671  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8672  // with awserr.Error's Code and Message methods to get detailed information about
  8673  // the error.
  8674  //
  8675  // See the AWS API reference guide for AWS CodeCommit's
  8676  // API operation PutFile for usage and error information.
  8677  //
  8678  // Returned Error Types:
  8679  //   * RepositoryNameRequiredException
  8680  //   A repository name is required, but was not specified.
  8681  //
  8682  //   * InvalidRepositoryNameException
  8683  //   A specified repository name is not valid.
  8684  //
  8685  //   This exception occurs only when a specified repository name is not valid.
  8686  //   Other exceptions occur when a required repository parameter is missing, or
  8687  //   when a specified repository does not exist.
  8688  //
  8689  //   * RepositoryDoesNotExistException
  8690  //   The specified repository does not exist.
  8691  //
  8692  //   * ParentCommitIdRequiredException
  8693  //   A parent commit ID is required. To view the full commit ID of a branch in
  8694  //   a repository, use GetBranch or a Git command (for example, git pull or git
  8695  //   log).
  8696  //
  8697  //   * InvalidParentCommitIdException
  8698  //   The parent commit ID is not valid. The commit ID cannot be empty, and must
  8699  //   match the head commit ID for the branch of the repository where you want
  8700  //   to add or update a file.
  8701  //
  8702  //   * ParentCommitDoesNotExistException
  8703  //   The parent commit ID is not valid because it does not exist. The specified
  8704  //   parent commit ID does not exist in the specified branch of the repository.
  8705  //
  8706  //   * ParentCommitIdOutdatedException
  8707  //   The file could not be added because the provided parent commit ID is not
  8708  //   the current tip of the specified branch. To view the full commit ID of the
  8709  //   current head of the branch, use GetBranch.
  8710  //
  8711  //   * FileContentRequiredException
  8712  //   The file cannot be added because it is empty. Empty files cannot be added
  8713  //   to the repository with this API.
  8714  //
  8715  //   * FileContentSizeLimitExceededException
  8716  //   The file cannot be added because it is too large. The maximum file size is
  8717  //   6 MB, and the combined file content change size is 7 MB. Consider making
  8718  //   these changes using a Git client.
  8719  //
  8720  //   * FolderContentSizeLimitExceededException
  8721  //   The commit cannot be created because at least one of the overall changes
  8722  //   in the commit results in a folder whose contents exceed the limit of 6 MB.
  8723  //   Either reduce the number and size of your changes, or split the changes across
  8724  //   multiple folders.
  8725  //
  8726  //   * PathRequiredException
  8727  //   The folderPath for a location cannot be null.
  8728  //
  8729  //   * InvalidPathException
  8730  //   The specified path is not valid.
  8731  //
  8732  //   * BranchNameRequiredException
  8733  //   A branch name is required, but was not specified.
  8734  //
  8735  //   * InvalidBranchNameException
  8736  //   The specified reference name is not valid.
  8737  //
  8738  //   * BranchDoesNotExistException
  8739  //   The specified branch does not exist.
  8740  //
  8741  //   * BranchNameIsTagNameException
  8742  //   The specified branch name is not valid because it is a tag name. Enter the
  8743  //   name of a branch in the repository. For a list of valid branch names, use
  8744  //   ListBranches.
  8745  //
  8746  //   * InvalidFileModeException
  8747  //   The specified file mode permission is not valid. For a list of valid file
  8748  //   mode permissions, see PutFile.
  8749  //
  8750  //   * NameLengthExceededException
  8751  //   The user name is not valid because it has exceeded the character limit for
  8752  //   author names.
  8753  //
  8754  //   * InvalidEmailException
  8755  //   The specified email address either contains one or more characters that are
  8756  //   not allowed, or it exceeds the maximum number of characters allowed for an
  8757  //   email address.
  8758  //
  8759  //   * CommitMessageLengthExceededException
  8760  //   The commit message is too long. Provide a shorter string.
  8761  //
  8762  //   * InvalidDeletionParameterException
  8763  //   The specified deletion parameter is not valid.
  8764  //
  8765  //   * EncryptionIntegrityChecksFailedException
  8766  //   An encryption integrity check failed.
  8767  //
  8768  //   * EncryptionKeyAccessDeniedException
  8769  //   An encryption key could not be accessed.
  8770  //
  8771  //   * EncryptionKeyDisabledException
  8772  //   The encryption key is disabled.
  8773  //
  8774  //   * EncryptionKeyNotFoundException
  8775  //   No encryption key was found.
  8776  //
  8777  //   * EncryptionKeyUnavailableException
  8778  //   The encryption key is not available.
  8779  //
  8780  //   * SameFileContentException
  8781  //   The file was not added or updated because the content of the file is exactly
  8782  //   the same as the content of that file in the repository and branch that you
  8783  //   specified.
  8784  //
  8785  //   * FileNameConflictsWithDirectoryNameException
  8786  //   A file cannot be added to the repository because the specified file name
  8787  //   has the same name as a directory in this repository. Either provide another
  8788  //   name for the file, or add the file in a directory that does not match the
  8789  //   file name.
  8790  //
  8791  //   * DirectoryNameConflictsWithFileNameException
  8792  //   A file cannot be added to the repository because the specified path name
  8793  //   has the same name as a file that already exists in this repository. Either
  8794  //   provide a different name for the file, or specify a different path for the
  8795  //   file.
  8796  //
  8797  //   * FilePathConflictsWithSubmodulePathException
  8798  //   The commit cannot be created because a specified file path points to a submodule.
  8799  //   Verify that the destination files have valid file paths that do not point
  8800  //   to a submodule.
  8801  //
  8802  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile
  8803  func (c *CodeCommit) PutFile(input *PutFileInput) (*PutFileOutput, error) {
  8804  	req, out := c.PutFileRequest(input)
  8805  	return out, req.Send()
  8806  }
  8807  
  8808  // PutFileWithContext is the same as PutFile with the addition of
  8809  // the ability to pass a context and additional request options.
  8810  //
  8811  // See PutFile for details on how to use this API operation.
  8812  //
  8813  // The context must be non-nil and will be used for request cancellation. If
  8814  // the context is nil a panic will occur. In the future the SDK may create
  8815  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8816  // for more information on using Contexts.
  8817  func (c *CodeCommit) PutFileWithContext(ctx aws.Context, input *PutFileInput, opts ...request.Option) (*PutFileOutput, error) {
  8818  	req, out := c.PutFileRequest(input)
  8819  	req.SetContext(ctx)
  8820  	req.ApplyOptions(opts...)
  8821  	return out, req.Send()
  8822  }
  8823  
  8824  const opPutRepositoryTriggers = "PutRepositoryTriggers"
  8825  
  8826  // PutRepositoryTriggersRequest generates a "aws/request.Request" representing the
  8827  // client's request for the PutRepositoryTriggers operation. The "output" return
  8828  // value will be populated with the request's response once the request completes
  8829  // successfully.
  8830  //
  8831  // Use "Send" method on the returned Request to send the API call to the service.
  8832  // the "output" return value is not valid until after Send returns without error.
  8833  //
  8834  // See PutRepositoryTriggers for more information on using the PutRepositoryTriggers
  8835  // API call, and error handling.
  8836  //
  8837  // This method is useful when you want to inject custom logic or configuration
  8838  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8839  //
  8840  //
  8841  //    // Example sending a request using the PutRepositoryTriggersRequest method.
  8842  //    req, resp := client.PutRepositoryTriggersRequest(params)
  8843  //
  8844  //    err := req.Send()
  8845  //    if err == nil { // resp is now filled
  8846  //        fmt.Println(resp)
  8847  //    }
  8848  //
  8849  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers
  8850  func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput) {
  8851  	op := &request.Operation{
  8852  		Name:       opPutRepositoryTriggers,
  8853  		HTTPMethod: "POST",
  8854  		HTTPPath:   "/",
  8855  	}
  8856  
  8857  	if input == nil {
  8858  		input = &PutRepositoryTriggersInput{}
  8859  	}
  8860  
  8861  	output = &PutRepositoryTriggersOutput{}
  8862  	req = c.newRequest(op, input, output)
  8863  	return
  8864  }
  8865  
  8866  // PutRepositoryTriggers API operation for AWS CodeCommit.
  8867  //
  8868  // Replaces all triggers for a repository. Used to create or delete triggers.
  8869  //
  8870  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8871  // with awserr.Error's Code and Message methods to get detailed information about
  8872  // the error.
  8873  //
  8874  // See the AWS API reference guide for AWS CodeCommit's
  8875  // API operation PutRepositoryTriggers for usage and error information.
  8876  //
  8877  // Returned Error Types:
  8878  //   * RepositoryDoesNotExistException
  8879  //   The specified repository does not exist.
  8880  //
  8881  //   * RepositoryNameRequiredException
  8882  //   A repository name is required, but was not specified.
  8883  //
  8884  //   * InvalidRepositoryNameException
  8885  //   A specified repository name is not valid.
  8886  //
  8887  //   This exception occurs only when a specified repository name is not valid.
  8888  //   Other exceptions occur when a required repository parameter is missing, or
  8889  //   when a specified repository does not exist.
  8890  //
  8891  //   * RepositoryTriggersListRequiredException
  8892  //   The list of triggers for the repository is required, but was not specified.
  8893  //
  8894  //   * MaximumRepositoryTriggersExceededException
  8895  //   The number of triggers allowed for the repository was exceeded.
  8896  //
  8897  //   * InvalidRepositoryTriggerNameException
  8898  //   The name of the trigger is not valid.
  8899  //
  8900  //   * InvalidRepositoryTriggerDestinationArnException
  8901  //   The Amazon Resource Name (ARN) for the trigger is not valid for the specified
  8902  //   destination. The most common reason for this error is that the ARN does not
  8903  //   meet the requirements for the service type.
  8904  //
  8905  //   * InvalidRepositoryTriggerRegionException
  8906  //   The AWS Region for the trigger target does not match the AWS Region for the
  8907  //   repository. Triggers must be created in the same Region as the target for
  8908  //   the trigger.
  8909  //
  8910  //   * InvalidRepositoryTriggerCustomDataException
  8911  //   The custom data provided for the trigger is not valid.
  8912  //
  8913  //   * MaximumBranchesExceededException
  8914  //   The number of branches for the trigger was exceeded.
  8915  //
  8916  //   * InvalidRepositoryTriggerBranchNameException
  8917  //   One or more branch names specified for the trigger is not valid.
  8918  //
  8919  //   * InvalidRepositoryTriggerEventsException
  8920  //   One or more events specified for the trigger is not valid. Check to make
  8921  //   sure that all events specified match the requirements for allowed events.
  8922  //
  8923  //   * RepositoryTriggerNameRequiredException
  8924  //   A name for the trigger is required, but was not specified.
  8925  //
  8926  //   * RepositoryTriggerDestinationArnRequiredException
  8927  //   A destination ARN for the target service for the trigger is required, but
  8928  //   was not specified.
  8929  //
  8930  //   * RepositoryTriggerBranchNameListRequiredException
  8931  //   At least one branch name is required, but was not specified in the trigger
  8932  //   configuration.
  8933  //
  8934  //   * RepositoryTriggerEventsListRequiredException
  8935  //   At least one event for the trigger is required, but was not specified.
  8936  //
  8937  //   * EncryptionIntegrityChecksFailedException
  8938  //   An encryption integrity check failed.
  8939  //
  8940  //   * EncryptionKeyAccessDeniedException
  8941  //   An encryption key could not be accessed.
  8942  //
  8943  //   * EncryptionKeyDisabledException
  8944  //   The encryption key is disabled.
  8945  //
  8946  //   * EncryptionKeyNotFoundException
  8947  //   No encryption key was found.
  8948  //
  8949  //   * EncryptionKeyUnavailableException
  8950  //   The encryption key is not available.
  8951  //
  8952  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers
  8953  func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) {
  8954  	req, out := c.PutRepositoryTriggersRequest(input)
  8955  	return out, req.Send()
  8956  }
  8957  
  8958  // PutRepositoryTriggersWithContext is the same as PutRepositoryTriggers with the addition of
  8959  // the ability to pass a context and additional request options.
  8960  //
  8961  // See PutRepositoryTriggers for details on how to use this API operation.
  8962  //
  8963  // The context must be non-nil and will be used for request cancellation. If
  8964  // the context is nil a panic will occur. In the future the SDK may create
  8965  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8966  // for more information on using Contexts.
  8967  func (c *CodeCommit) PutRepositoryTriggersWithContext(ctx aws.Context, input *PutRepositoryTriggersInput, opts ...request.Option) (*PutRepositoryTriggersOutput, error) {
  8968  	req, out := c.PutRepositoryTriggersRequest(input)
  8969  	req.SetContext(ctx)
  8970  	req.ApplyOptions(opts...)
  8971  	return out, req.Send()
  8972  }
  8973  
  8974  const opTagResource = "TagResource"
  8975  
  8976  // TagResourceRequest generates a "aws/request.Request" representing the
  8977  // client's request for the TagResource operation. The "output" return
  8978  // value will be populated with the request's response once the request completes
  8979  // successfully.
  8980  //
  8981  // Use "Send" method on the returned Request to send the API call to the service.
  8982  // the "output" return value is not valid until after Send returns without error.
  8983  //
  8984  // See TagResource for more information on using the TagResource
  8985  // API call, and error handling.
  8986  //
  8987  // This method is useful when you want to inject custom logic or configuration
  8988  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8989  //
  8990  //
  8991  //    // Example sending a request using the TagResourceRequest method.
  8992  //    req, resp := client.TagResourceRequest(params)
  8993  //
  8994  //    err := req.Send()
  8995  //    if err == nil { // resp is now filled
  8996  //        fmt.Println(resp)
  8997  //    }
  8998  //
  8999  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TagResource
  9000  func (c *CodeCommit) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  9001  	op := &request.Operation{
  9002  		Name:       opTagResource,
  9003  		HTTPMethod: "POST",
  9004  		HTTPPath:   "/",
  9005  	}
  9006  
  9007  	if input == nil {
  9008  		input = &TagResourceInput{}
  9009  	}
  9010  
  9011  	output = &TagResourceOutput{}
  9012  	req = c.newRequest(op, input, output)
  9013  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  9014  	return
  9015  }
  9016  
  9017  // TagResource API operation for AWS CodeCommit.
  9018  //
  9019  // Adds or updates tags for a resource in AWS CodeCommit. For a list of valid
  9020  // resources in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  9021  // in the AWS CodeCommit User Guide.
  9022  //
  9023  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9024  // with awserr.Error's Code and Message methods to get detailed information about
  9025  // the error.
  9026  //
  9027  // See the AWS API reference guide for AWS CodeCommit's
  9028  // API operation TagResource for usage and error information.
  9029  //
  9030  // Returned Error Types:
  9031  //   * RepositoryDoesNotExistException
  9032  //   The specified repository does not exist.
  9033  //
  9034  //   * InvalidRepositoryNameException
  9035  //   A specified repository name is not valid.
  9036  //
  9037  //   This exception occurs only when a specified repository name is not valid.
  9038  //   Other exceptions occur when a required repository parameter is missing, or
  9039  //   when a specified repository does not exist.
  9040  //
  9041  //   * ResourceArnRequiredException
  9042  //   A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required.
  9043  //   For a list of valid resources in AWS CodeCommit, see CodeCommit Resources
  9044  //   and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  9045  //   in the AWS CodeCommit User Guide.
  9046  //
  9047  //   * InvalidResourceArnException
  9048  //   The value for the resource ARN is not valid. For more information about resources
  9049  //   in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  9050  //   in the AWS CodeCommit User Guide.
  9051  //
  9052  //   * TagsMapRequiredException
  9053  //   A map of tags is required.
  9054  //
  9055  //   * InvalidTagsMapException
  9056  //   The map of tags is not valid.
  9057  //
  9058  //   * TooManyTagsException
  9059  //   The maximum number of tags for an AWS CodeCommit resource has been exceeded.
  9060  //
  9061  //   * InvalidSystemTagUsageException
  9062  //   The specified tag is not valid. Key names cannot be prefixed with aws:.
  9063  //
  9064  //   * TagPolicyException
  9065  //   The tag policy is not valid.
  9066  //
  9067  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TagResource
  9068  func (c *CodeCommit) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  9069  	req, out := c.TagResourceRequest(input)
  9070  	return out, req.Send()
  9071  }
  9072  
  9073  // TagResourceWithContext is the same as TagResource with the addition of
  9074  // the ability to pass a context and additional request options.
  9075  //
  9076  // See TagResource for details on how to use this API operation.
  9077  //
  9078  // The context must be non-nil and will be used for request cancellation. If
  9079  // the context is nil a panic will occur. In the future the SDK may create
  9080  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9081  // for more information on using Contexts.
  9082  func (c *CodeCommit) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  9083  	req, out := c.TagResourceRequest(input)
  9084  	req.SetContext(ctx)
  9085  	req.ApplyOptions(opts...)
  9086  	return out, req.Send()
  9087  }
  9088  
  9089  const opTestRepositoryTriggers = "TestRepositoryTriggers"
  9090  
  9091  // TestRepositoryTriggersRequest generates a "aws/request.Request" representing the
  9092  // client's request for the TestRepositoryTriggers operation. The "output" return
  9093  // value will be populated with the request's response once the request completes
  9094  // successfully.
  9095  //
  9096  // Use "Send" method on the returned Request to send the API call to the service.
  9097  // the "output" return value is not valid until after Send returns without error.
  9098  //
  9099  // See TestRepositoryTriggers for more information on using the TestRepositoryTriggers
  9100  // API call, and error handling.
  9101  //
  9102  // This method is useful when you want to inject custom logic or configuration
  9103  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9104  //
  9105  //
  9106  //    // Example sending a request using the TestRepositoryTriggersRequest method.
  9107  //    req, resp := client.TestRepositoryTriggersRequest(params)
  9108  //
  9109  //    err := req.Send()
  9110  //    if err == nil { // resp is now filled
  9111  //        fmt.Println(resp)
  9112  //    }
  9113  //
  9114  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers
  9115  func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput) {
  9116  	op := &request.Operation{
  9117  		Name:       opTestRepositoryTriggers,
  9118  		HTTPMethod: "POST",
  9119  		HTTPPath:   "/",
  9120  	}
  9121  
  9122  	if input == nil {
  9123  		input = &TestRepositoryTriggersInput{}
  9124  	}
  9125  
  9126  	output = &TestRepositoryTriggersOutput{}
  9127  	req = c.newRequest(op, input, output)
  9128  	return
  9129  }
  9130  
  9131  // TestRepositoryTriggers API operation for AWS CodeCommit.
  9132  //
  9133  // Tests the functionality of repository triggers by sending information to
  9134  // the trigger target. If real data is available in the repository, the test
  9135  // sends data from the last commit. If no data is available, sample data is
  9136  // generated.
  9137  //
  9138  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9139  // with awserr.Error's Code and Message methods to get detailed information about
  9140  // the error.
  9141  //
  9142  // See the AWS API reference guide for AWS CodeCommit's
  9143  // API operation TestRepositoryTriggers for usage and error information.
  9144  //
  9145  // Returned Error Types:
  9146  //   * RepositoryDoesNotExistException
  9147  //   The specified repository does not exist.
  9148  //
  9149  //   * RepositoryNameRequiredException
  9150  //   A repository name is required, but was not specified.
  9151  //
  9152  //   * InvalidRepositoryNameException
  9153  //   A specified repository name is not valid.
  9154  //
  9155  //   This exception occurs only when a specified repository name is not valid.
  9156  //   Other exceptions occur when a required repository parameter is missing, or
  9157  //   when a specified repository does not exist.
  9158  //
  9159  //   * RepositoryTriggersListRequiredException
  9160  //   The list of triggers for the repository is required, but was not specified.
  9161  //
  9162  //   * MaximumRepositoryTriggersExceededException
  9163  //   The number of triggers allowed for the repository was exceeded.
  9164  //
  9165  //   * InvalidRepositoryTriggerNameException
  9166  //   The name of the trigger is not valid.
  9167  //
  9168  //   * InvalidRepositoryTriggerDestinationArnException
  9169  //   The Amazon Resource Name (ARN) for the trigger is not valid for the specified
  9170  //   destination. The most common reason for this error is that the ARN does not
  9171  //   meet the requirements for the service type.
  9172  //
  9173  //   * InvalidRepositoryTriggerRegionException
  9174  //   The AWS Region for the trigger target does not match the AWS Region for the
  9175  //   repository. Triggers must be created in the same Region as the target for
  9176  //   the trigger.
  9177  //
  9178  //   * InvalidRepositoryTriggerCustomDataException
  9179  //   The custom data provided for the trigger is not valid.
  9180  //
  9181  //   * MaximumBranchesExceededException
  9182  //   The number of branches for the trigger was exceeded.
  9183  //
  9184  //   * InvalidRepositoryTriggerBranchNameException
  9185  //   One or more branch names specified for the trigger is not valid.
  9186  //
  9187  //   * InvalidRepositoryTriggerEventsException
  9188  //   One or more events specified for the trigger is not valid. Check to make
  9189  //   sure that all events specified match the requirements for allowed events.
  9190  //
  9191  //   * RepositoryTriggerNameRequiredException
  9192  //   A name for the trigger is required, but was not specified.
  9193  //
  9194  //   * RepositoryTriggerDestinationArnRequiredException
  9195  //   A destination ARN for the target service for the trigger is required, but
  9196  //   was not specified.
  9197  //
  9198  //   * RepositoryTriggerBranchNameListRequiredException
  9199  //   At least one branch name is required, but was not specified in the trigger
  9200  //   configuration.
  9201  //
  9202  //   * RepositoryTriggerEventsListRequiredException
  9203  //   At least one event for the trigger is required, but was not specified.
  9204  //
  9205  //   * EncryptionIntegrityChecksFailedException
  9206  //   An encryption integrity check failed.
  9207  //
  9208  //   * EncryptionKeyAccessDeniedException
  9209  //   An encryption key could not be accessed.
  9210  //
  9211  //   * EncryptionKeyDisabledException
  9212  //   The encryption key is disabled.
  9213  //
  9214  //   * EncryptionKeyNotFoundException
  9215  //   No encryption key was found.
  9216  //
  9217  //   * EncryptionKeyUnavailableException
  9218  //   The encryption key is not available.
  9219  //
  9220  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers
  9221  func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) {
  9222  	req, out := c.TestRepositoryTriggersRequest(input)
  9223  	return out, req.Send()
  9224  }
  9225  
  9226  // TestRepositoryTriggersWithContext is the same as TestRepositoryTriggers with the addition of
  9227  // the ability to pass a context and additional request options.
  9228  //
  9229  // See TestRepositoryTriggers for details on how to use this API operation.
  9230  //
  9231  // The context must be non-nil and will be used for request cancellation. If
  9232  // the context is nil a panic will occur. In the future the SDK may create
  9233  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9234  // for more information on using Contexts.
  9235  func (c *CodeCommit) TestRepositoryTriggersWithContext(ctx aws.Context, input *TestRepositoryTriggersInput, opts ...request.Option) (*TestRepositoryTriggersOutput, error) {
  9236  	req, out := c.TestRepositoryTriggersRequest(input)
  9237  	req.SetContext(ctx)
  9238  	req.ApplyOptions(opts...)
  9239  	return out, req.Send()
  9240  }
  9241  
  9242  const opUntagResource = "UntagResource"
  9243  
  9244  // UntagResourceRequest generates a "aws/request.Request" representing the
  9245  // client's request for the UntagResource operation. The "output" return
  9246  // value will be populated with the request's response once the request completes
  9247  // successfully.
  9248  //
  9249  // Use "Send" method on the returned Request to send the API call to the service.
  9250  // the "output" return value is not valid until after Send returns without error.
  9251  //
  9252  // See UntagResource for more information on using the UntagResource
  9253  // API call, and error handling.
  9254  //
  9255  // This method is useful when you want to inject custom logic or configuration
  9256  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9257  //
  9258  //
  9259  //    // Example sending a request using the UntagResourceRequest method.
  9260  //    req, resp := client.UntagResourceRequest(params)
  9261  //
  9262  //    err := req.Send()
  9263  //    if err == nil { // resp is now filled
  9264  //        fmt.Println(resp)
  9265  //    }
  9266  //
  9267  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UntagResource
  9268  func (c *CodeCommit) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  9269  	op := &request.Operation{
  9270  		Name:       opUntagResource,
  9271  		HTTPMethod: "POST",
  9272  		HTTPPath:   "/",
  9273  	}
  9274  
  9275  	if input == nil {
  9276  		input = &UntagResourceInput{}
  9277  	}
  9278  
  9279  	output = &UntagResourceOutput{}
  9280  	req = c.newRequest(op, input, output)
  9281  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  9282  	return
  9283  }
  9284  
  9285  // UntagResource API operation for AWS CodeCommit.
  9286  //
  9287  // Removes tags for a resource in AWS CodeCommit. For a list of valid resources
  9288  // in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  9289  // in the AWS CodeCommit User Guide.
  9290  //
  9291  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9292  // with awserr.Error's Code and Message methods to get detailed information about
  9293  // the error.
  9294  //
  9295  // See the AWS API reference guide for AWS CodeCommit's
  9296  // API operation UntagResource for usage and error information.
  9297  //
  9298  // Returned Error Types:
  9299  //   * RepositoryDoesNotExistException
  9300  //   The specified repository does not exist.
  9301  //
  9302  //   * InvalidRepositoryNameException
  9303  //   A specified repository name is not valid.
  9304  //
  9305  //   This exception occurs only when a specified repository name is not valid.
  9306  //   Other exceptions occur when a required repository parameter is missing, or
  9307  //   when a specified repository does not exist.
  9308  //
  9309  //   * ResourceArnRequiredException
  9310  //   A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required.
  9311  //   For a list of valid resources in AWS CodeCommit, see CodeCommit Resources
  9312  //   and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  9313  //   in the AWS CodeCommit User Guide.
  9314  //
  9315  //   * InvalidResourceArnException
  9316  //   The value for the resource ARN is not valid. For more information about resources
  9317  //   in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
  9318  //   in the AWS CodeCommit User Guide.
  9319  //
  9320  //   * TagKeysListRequiredException
  9321  //   A list of tag keys is required. The list cannot be empty or null.
  9322  //
  9323  //   * InvalidTagKeysListException
  9324  //   The list of tags is not valid.
  9325  //
  9326  //   * TooManyTagsException
  9327  //   The maximum number of tags for an AWS CodeCommit resource has been exceeded.
  9328  //
  9329  //   * InvalidSystemTagUsageException
  9330  //   The specified tag is not valid. Key names cannot be prefixed with aws:.
  9331  //
  9332  //   * TagPolicyException
  9333  //   The tag policy is not valid.
  9334  //
  9335  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UntagResource
  9336  func (c *CodeCommit) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  9337  	req, out := c.UntagResourceRequest(input)
  9338  	return out, req.Send()
  9339  }
  9340  
  9341  // UntagResourceWithContext is the same as UntagResource with the addition of
  9342  // the ability to pass a context and additional request options.
  9343  //
  9344  // See UntagResource for details on how to use this API operation.
  9345  //
  9346  // The context must be non-nil and will be used for request cancellation. If
  9347  // the context is nil a panic will occur. In the future the SDK may create
  9348  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9349  // for more information on using Contexts.
  9350  func (c *CodeCommit) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  9351  	req, out := c.UntagResourceRequest(input)
  9352  	req.SetContext(ctx)
  9353  	req.ApplyOptions(opts...)
  9354  	return out, req.Send()
  9355  }
  9356  
  9357  const opUpdateApprovalRuleTemplateContent = "UpdateApprovalRuleTemplateContent"
  9358  
  9359  // UpdateApprovalRuleTemplateContentRequest generates a "aws/request.Request" representing the
  9360  // client's request for the UpdateApprovalRuleTemplateContent operation. The "output" return
  9361  // value will be populated with the request's response once the request completes
  9362  // successfully.
  9363  //
  9364  // Use "Send" method on the returned Request to send the API call to the service.
  9365  // the "output" return value is not valid until after Send returns without error.
  9366  //
  9367  // See UpdateApprovalRuleTemplateContent for more information on using the UpdateApprovalRuleTemplateContent
  9368  // API call, and error handling.
  9369  //
  9370  // This method is useful when you want to inject custom logic or configuration
  9371  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9372  //
  9373  //
  9374  //    // Example sending a request using the UpdateApprovalRuleTemplateContentRequest method.
  9375  //    req, resp := client.UpdateApprovalRuleTemplateContentRequest(params)
  9376  //
  9377  //    err := req.Send()
  9378  //    if err == nil { // resp is now filled
  9379  //        fmt.Println(resp)
  9380  //    }
  9381  //
  9382  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateContent
  9383  func (c *CodeCommit) UpdateApprovalRuleTemplateContentRequest(input *UpdateApprovalRuleTemplateContentInput) (req *request.Request, output *UpdateApprovalRuleTemplateContentOutput) {
  9384  	op := &request.Operation{
  9385  		Name:       opUpdateApprovalRuleTemplateContent,
  9386  		HTTPMethod: "POST",
  9387  		HTTPPath:   "/",
  9388  	}
  9389  
  9390  	if input == nil {
  9391  		input = &UpdateApprovalRuleTemplateContentInput{}
  9392  	}
  9393  
  9394  	output = &UpdateApprovalRuleTemplateContentOutput{}
  9395  	req = c.newRequest(op, input, output)
  9396  	return
  9397  }
  9398  
  9399  // UpdateApprovalRuleTemplateContent API operation for AWS CodeCommit.
  9400  //
  9401  // Updates the content of an approval rule template. You can change the number
  9402  // of required approvals, the membership of the approval rule, and whether an
  9403  // approval pool is defined.
  9404  //
  9405  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9406  // with awserr.Error's Code and Message methods to get detailed information about
  9407  // the error.
  9408  //
  9409  // See the AWS API reference guide for AWS CodeCommit's
  9410  // API operation UpdateApprovalRuleTemplateContent for usage and error information.
  9411  //
  9412  // Returned Error Types:
  9413  //   * InvalidApprovalRuleTemplateNameException
  9414  //   The name of the approval rule template is not valid. Template names must
  9415  //   be between 1 and 100 valid characters in length. For more information about
  9416  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  9417  //
  9418  //   * ApprovalRuleTemplateNameRequiredException
  9419  //   An approval rule template name is required, but was not specified.
  9420  //
  9421  //   * ApprovalRuleTemplateDoesNotExistException
  9422  //   The specified approval rule template does not exist. Verify that the name
  9423  //   is correct and that you are signed in to the AWS Region where the template
  9424  //   was created, and then try again.
  9425  //
  9426  //   * InvalidApprovalRuleTemplateContentException
  9427  //   The content of the approval rule template is not valid.
  9428  //
  9429  //   * InvalidRuleContentSha256Exception
  9430  //   The SHA-256 hash signature for the rule content is not valid.
  9431  //
  9432  //   * ApprovalRuleTemplateContentRequiredException
  9433  //   The content for the approval rule template is empty. You must provide some
  9434  //   content for an approval rule template. The content cannot be null.
  9435  //
  9436  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateContent
  9437  func (c *CodeCommit) UpdateApprovalRuleTemplateContent(input *UpdateApprovalRuleTemplateContentInput) (*UpdateApprovalRuleTemplateContentOutput, error) {
  9438  	req, out := c.UpdateApprovalRuleTemplateContentRequest(input)
  9439  	return out, req.Send()
  9440  }
  9441  
  9442  // UpdateApprovalRuleTemplateContentWithContext is the same as UpdateApprovalRuleTemplateContent with the addition of
  9443  // the ability to pass a context and additional request options.
  9444  //
  9445  // See UpdateApprovalRuleTemplateContent for details on how to use this API operation.
  9446  //
  9447  // The context must be non-nil and will be used for request cancellation. If
  9448  // the context is nil a panic will occur. In the future the SDK may create
  9449  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9450  // for more information on using Contexts.
  9451  func (c *CodeCommit) UpdateApprovalRuleTemplateContentWithContext(ctx aws.Context, input *UpdateApprovalRuleTemplateContentInput, opts ...request.Option) (*UpdateApprovalRuleTemplateContentOutput, error) {
  9452  	req, out := c.UpdateApprovalRuleTemplateContentRequest(input)
  9453  	req.SetContext(ctx)
  9454  	req.ApplyOptions(opts...)
  9455  	return out, req.Send()
  9456  }
  9457  
  9458  const opUpdateApprovalRuleTemplateDescription = "UpdateApprovalRuleTemplateDescription"
  9459  
  9460  // UpdateApprovalRuleTemplateDescriptionRequest generates a "aws/request.Request" representing the
  9461  // client's request for the UpdateApprovalRuleTemplateDescription operation. The "output" return
  9462  // value will be populated with the request's response once the request completes
  9463  // successfully.
  9464  //
  9465  // Use "Send" method on the returned Request to send the API call to the service.
  9466  // the "output" return value is not valid until after Send returns without error.
  9467  //
  9468  // See UpdateApprovalRuleTemplateDescription for more information on using the UpdateApprovalRuleTemplateDescription
  9469  // API call, and error handling.
  9470  //
  9471  // This method is useful when you want to inject custom logic or configuration
  9472  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9473  //
  9474  //
  9475  //    // Example sending a request using the UpdateApprovalRuleTemplateDescriptionRequest method.
  9476  //    req, resp := client.UpdateApprovalRuleTemplateDescriptionRequest(params)
  9477  //
  9478  //    err := req.Send()
  9479  //    if err == nil { // resp is now filled
  9480  //        fmt.Println(resp)
  9481  //    }
  9482  //
  9483  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateDescription
  9484  func (c *CodeCommit) UpdateApprovalRuleTemplateDescriptionRequest(input *UpdateApprovalRuleTemplateDescriptionInput) (req *request.Request, output *UpdateApprovalRuleTemplateDescriptionOutput) {
  9485  	op := &request.Operation{
  9486  		Name:       opUpdateApprovalRuleTemplateDescription,
  9487  		HTTPMethod: "POST",
  9488  		HTTPPath:   "/",
  9489  	}
  9490  
  9491  	if input == nil {
  9492  		input = &UpdateApprovalRuleTemplateDescriptionInput{}
  9493  	}
  9494  
  9495  	output = &UpdateApprovalRuleTemplateDescriptionOutput{}
  9496  	req = c.newRequest(op, input, output)
  9497  	return
  9498  }
  9499  
  9500  // UpdateApprovalRuleTemplateDescription API operation for AWS CodeCommit.
  9501  //
  9502  // Updates the description for a specified approval rule template.
  9503  //
  9504  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9505  // with awserr.Error's Code and Message methods to get detailed information about
  9506  // the error.
  9507  //
  9508  // See the AWS API reference guide for AWS CodeCommit's
  9509  // API operation UpdateApprovalRuleTemplateDescription for usage and error information.
  9510  //
  9511  // Returned Error Types:
  9512  //   * InvalidApprovalRuleTemplateNameException
  9513  //   The name of the approval rule template is not valid. Template names must
  9514  //   be between 1 and 100 valid characters in length. For more information about
  9515  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  9516  //
  9517  //   * ApprovalRuleTemplateNameRequiredException
  9518  //   An approval rule template name is required, but was not specified.
  9519  //
  9520  //   * ApprovalRuleTemplateDoesNotExistException
  9521  //   The specified approval rule template does not exist. Verify that the name
  9522  //   is correct and that you are signed in to the AWS Region where the template
  9523  //   was created, and then try again.
  9524  //
  9525  //   * InvalidApprovalRuleTemplateDescriptionException
  9526  //   The description for the approval rule template is not valid because it exceeds
  9527  //   the maximum characters allowed for a description. For more information about
  9528  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  9529  //
  9530  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateDescription
  9531  func (c *CodeCommit) UpdateApprovalRuleTemplateDescription(input *UpdateApprovalRuleTemplateDescriptionInput) (*UpdateApprovalRuleTemplateDescriptionOutput, error) {
  9532  	req, out := c.UpdateApprovalRuleTemplateDescriptionRequest(input)
  9533  	return out, req.Send()
  9534  }
  9535  
  9536  // UpdateApprovalRuleTemplateDescriptionWithContext is the same as UpdateApprovalRuleTemplateDescription with the addition of
  9537  // the ability to pass a context and additional request options.
  9538  //
  9539  // See UpdateApprovalRuleTemplateDescription for details on how to use this API operation.
  9540  //
  9541  // The context must be non-nil and will be used for request cancellation. If
  9542  // the context is nil a panic will occur. In the future the SDK may create
  9543  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9544  // for more information on using Contexts.
  9545  func (c *CodeCommit) UpdateApprovalRuleTemplateDescriptionWithContext(ctx aws.Context, input *UpdateApprovalRuleTemplateDescriptionInput, opts ...request.Option) (*UpdateApprovalRuleTemplateDescriptionOutput, error) {
  9546  	req, out := c.UpdateApprovalRuleTemplateDescriptionRequest(input)
  9547  	req.SetContext(ctx)
  9548  	req.ApplyOptions(opts...)
  9549  	return out, req.Send()
  9550  }
  9551  
  9552  const opUpdateApprovalRuleTemplateName = "UpdateApprovalRuleTemplateName"
  9553  
  9554  // UpdateApprovalRuleTemplateNameRequest generates a "aws/request.Request" representing the
  9555  // client's request for the UpdateApprovalRuleTemplateName operation. The "output" return
  9556  // value will be populated with the request's response once the request completes
  9557  // successfully.
  9558  //
  9559  // Use "Send" method on the returned Request to send the API call to the service.
  9560  // the "output" return value is not valid until after Send returns without error.
  9561  //
  9562  // See UpdateApprovalRuleTemplateName for more information on using the UpdateApprovalRuleTemplateName
  9563  // API call, and error handling.
  9564  //
  9565  // This method is useful when you want to inject custom logic or configuration
  9566  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9567  //
  9568  //
  9569  //    // Example sending a request using the UpdateApprovalRuleTemplateNameRequest method.
  9570  //    req, resp := client.UpdateApprovalRuleTemplateNameRequest(params)
  9571  //
  9572  //    err := req.Send()
  9573  //    if err == nil { // resp is now filled
  9574  //        fmt.Println(resp)
  9575  //    }
  9576  //
  9577  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateName
  9578  func (c *CodeCommit) UpdateApprovalRuleTemplateNameRequest(input *UpdateApprovalRuleTemplateNameInput) (req *request.Request, output *UpdateApprovalRuleTemplateNameOutput) {
  9579  	op := &request.Operation{
  9580  		Name:       opUpdateApprovalRuleTemplateName,
  9581  		HTTPMethod: "POST",
  9582  		HTTPPath:   "/",
  9583  	}
  9584  
  9585  	if input == nil {
  9586  		input = &UpdateApprovalRuleTemplateNameInput{}
  9587  	}
  9588  
  9589  	output = &UpdateApprovalRuleTemplateNameOutput{}
  9590  	req = c.newRequest(op, input, output)
  9591  	return
  9592  }
  9593  
  9594  // UpdateApprovalRuleTemplateName API operation for AWS CodeCommit.
  9595  //
  9596  // Updates the name of a specified approval rule template.
  9597  //
  9598  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9599  // with awserr.Error's Code and Message methods to get detailed information about
  9600  // the error.
  9601  //
  9602  // See the AWS API reference guide for AWS CodeCommit's
  9603  // API operation UpdateApprovalRuleTemplateName for usage and error information.
  9604  //
  9605  // Returned Error Types:
  9606  //   * InvalidApprovalRuleTemplateNameException
  9607  //   The name of the approval rule template is not valid. Template names must
  9608  //   be between 1 and 100 valid characters in length. For more information about
  9609  //   limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
  9610  //
  9611  //   * ApprovalRuleTemplateNameRequiredException
  9612  //   An approval rule template name is required, but was not specified.
  9613  //
  9614  //   * ApprovalRuleTemplateDoesNotExistException
  9615  //   The specified approval rule template does not exist. Verify that the name
  9616  //   is correct and that you are signed in to the AWS Region where the template
  9617  //   was created, and then try again.
  9618  //
  9619  //   * ApprovalRuleTemplateNameAlreadyExistsException
  9620  //   You cannot create an approval rule template with that name because a template
  9621  //   with that name already exists in this AWS Region for your AWS account. Approval
  9622  //   rule template names must be unique.
  9623  //
  9624  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateName
  9625  func (c *CodeCommit) UpdateApprovalRuleTemplateName(input *UpdateApprovalRuleTemplateNameInput) (*UpdateApprovalRuleTemplateNameOutput, error) {
  9626  	req, out := c.UpdateApprovalRuleTemplateNameRequest(input)
  9627  	return out, req.Send()
  9628  }
  9629  
  9630  // UpdateApprovalRuleTemplateNameWithContext is the same as UpdateApprovalRuleTemplateName with the addition of
  9631  // the ability to pass a context and additional request options.
  9632  //
  9633  // See UpdateApprovalRuleTemplateName for details on how to use this API operation.
  9634  //
  9635  // The context must be non-nil and will be used for request cancellation. If
  9636  // the context is nil a panic will occur. In the future the SDK may create
  9637  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9638  // for more information on using Contexts.
  9639  func (c *CodeCommit) UpdateApprovalRuleTemplateNameWithContext(ctx aws.Context, input *UpdateApprovalRuleTemplateNameInput, opts ...request.Option) (*UpdateApprovalRuleTemplateNameOutput, error) {
  9640  	req, out := c.UpdateApprovalRuleTemplateNameRequest(input)
  9641  	req.SetContext(ctx)
  9642  	req.ApplyOptions(opts...)
  9643  	return out, req.Send()
  9644  }
  9645  
  9646  const opUpdateComment = "UpdateComment"
  9647  
  9648  // UpdateCommentRequest generates a "aws/request.Request" representing the
  9649  // client's request for the UpdateComment operation. The "output" return
  9650  // value will be populated with the request's response once the request completes
  9651  // successfully.
  9652  //
  9653  // Use "Send" method on the returned Request to send the API call to the service.
  9654  // the "output" return value is not valid until after Send returns without error.
  9655  //
  9656  // See UpdateComment for more information on using the UpdateComment
  9657  // API call, and error handling.
  9658  //
  9659  // This method is useful when you want to inject custom logic or configuration
  9660  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9661  //
  9662  //
  9663  //    // Example sending a request using the UpdateCommentRequest method.
  9664  //    req, resp := client.UpdateCommentRequest(params)
  9665  //
  9666  //    err := req.Send()
  9667  //    if err == nil { // resp is now filled
  9668  //        fmt.Println(resp)
  9669  //    }
  9670  //
  9671  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment
  9672  func (c *CodeCommit) UpdateCommentRequest(input *UpdateCommentInput) (req *request.Request, output *UpdateCommentOutput) {
  9673  	op := &request.Operation{
  9674  		Name:       opUpdateComment,
  9675  		HTTPMethod: "POST",
  9676  		HTTPPath:   "/",
  9677  	}
  9678  
  9679  	if input == nil {
  9680  		input = &UpdateCommentInput{}
  9681  	}
  9682  
  9683  	output = &UpdateCommentOutput{}
  9684  	req = c.newRequest(op, input, output)
  9685  	return
  9686  }
  9687  
  9688  // UpdateComment API operation for AWS CodeCommit.
  9689  //
  9690  // Replaces the contents of a comment.
  9691  //
  9692  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9693  // with awserr.Error's Code and Message methods to get detailed information about
  9694  // the error.
  9695  //
  9696  // See the AWS API reference guide for AWS CodeCommit's
  9697  // API operation UpdateComment for usage and error information.
  9698  //
  9699  // Returned Error Types:
  9700  //   * CommentContentRequiredException
  9701  //   The comment is empty. You must provide some content for a comment. The content
  9702  //   cannot be null.
  9703  //
  9704  //   * CommentContentSizeLimitExceededException
  9705  //   The comment is too large. Comments are limited to 1,000 characters.
  9706  //
  9707  //   * CommentDoesNotExistException
  9708  //   No comment exists with the provided ID. Verify that you have used the correct
  9709  //   ID, and then try again.
  9710  //
  9711  //   * CommentIdRequiredException
  9712  //   The comment ID is missing or null. A comment ID is required.
  9713  //
  9714  //   * InvalidCommentIdException
  9715  //   The comment ID is not in a valid format. Make sure that you have provided
  9716  //   the full comment ID.
  9717  //
  9718  //   * CommentNotCreatedByCallerException
  9719  //   You cannot modify or delete this comment. Only comment authors can modify
  9720  //   or delete their comments.
  9721  //
  9722  //   * CommentDeletedException
  9723  //   This comment has already been deleted. You cannot edit or delete a deleted
  9724  //   comment.
  9725  //
  9726  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment
  9727  func (c *CodeCommit) UpdateComment(input *UpdateCommentInput) (*UpdateCommentOutput, error) {
  9728  	req, out := c.UpdateCommentRequest(input)
  9729  	return out, req.Send()
  9730  }
  9731  
  9732  // UpdateCommentWithContext is the same as UpdateComment with the addition of
  9733  // the ability to pass a context and additional request options.
  9734  //
  9735  // See UpdateComment for details on how to use this API operation.
  9736  //
  9737  // The context must be non-nil and will be used for request cancellation. If
  9738  // the context is nil a panic will occur. In the future the SDK may create
  9739  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9740  // for more information on using Contexts.
  9741  func (c *CodeCommit) UpdateCommentWithContext(ctx aws.Context, input *UpdateCommentInput, opts ...request.Option) (*UpdateCommentOutput, error) {
  9742  	req, out := c.UpdateCommentRequest(input)
  9743  	req.SetContext(ctx)
  9744  	req.ApplyOptions(opts...)
  9745  	return out, req.Send()
  9746  }
  9747  
  9748  const opUpdateDefaultBranch = "UpdateDefaultBranch"
  9749  
  9750  // UpdateDefaultBranchRequest generates a "aws/request.Request" representing the
  9751  // client's request for the UpdateDefaultBranch operation. The "output" return
  9752  // value will be populated with the request's response once the request completes
  9753  // successfully.
  9754  //
  9755  // Use "Send" method on the returned Request to send the API call to the service.
  9756  // the "output" return value is not valid until after Send returns without error.
  9757  //
  9758  // See UpdateDefaultBranch for more information on using the UpdateDefaultBranch
  9759  // API call, and error handling.
  9760  //
  9761  // This method is useful when you want to inject custom logic or configuration
  9762  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9763  //
  9764  //
  9765  //    // Example sending a request using the UpdateDefaultBranchRequest method.
  9766  //    req, resp := client.UpdateDefaultBranchRequest(params)
  9767  //
  9768  //    err := req.Send()
  9769  //    if err == nil { // resp is now filled
  9770  //        fmt.Println(resp)
  9771  //    }
  9772  //
  9773  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch
  9774  func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput) {
  9775  	op := &request.Operation{
  9776  		Name:       opUpdateDefaultBranch,
  9777  		HTTPMethod: "POST",
  9778  		HTTPPath:   "/",
  9779  	}
  9780  
  9781  	if input == nil {
  9782  		input = &UpdateDefaultBranchInput{}
  9783  	}
  9784  
  9785  	output = &UpdateDefaultBranchOutput{}
  9786  	req = c.newRequest(op, input, output)
  9787  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  9788  	return
  9789  }
  9790  
  9791  // UpdateDefaultBranch API operation for AWS CodeCommit.
  9792  //
  9793  // Sets or changes the default branch name for the specified repository.
  9794  //
  9795  // If you use this operation to change the default branch name to the current
  9796  // default branch name, a success message is returned even though the default
  9797  // branch did not change.
  9798  //
  9799  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9800  // with awserr.Error's Code and Message methods to get detailed information about
  9801  // the error.
  9802  //
  9803  // See the AWS API reference guide for AWS CodeCommit's
  9804  // API operation UpdateDefaultBranch for usage and error information.
  9805  //
  9806  // Returned Error Types:
  9807  //   * RepositoryNameRequiredException
  9808  //   A repository name is required, but was not specified.
  9809  //
  9810  //   * RepositoryDoesNotExistException
  9811  //   The specified repository does not exist.
  9812  //
  9813  //   * InvalidRepositoryNameException
  9814  //   A specified repository name is not valid.
  9815  //
  9816  //   This exception occurs only when a specified repository name is not valid.
  9817  //   Other exceptions occur when a required repository parameter is missing, or
  9818  //   when a specified repository does not exist.
  9819  //
  9820  //   * BranchNameRequiredException
  9821  //   A branch name is required, but was not specified.
  9822  //
  9823  //   * InvalidBranchNameException
  9824  //   The specified reference name is not valid.
  9825  //
  9826  //   * BranchDoesNotExistException
  9827  //   The specified branch does not exist.
  9828  //
  9829  //   * EncryptionIntegrityChecksFailedException
  9830  //   An encryption integrity check failed.
  9831  //
  9832  //   * EncryptionKeyAccessDeniedException
  9833  //   An encryption key could not be accessed.
  9834  //
  9835  //   * EncryptionKeyDisabledException
  9836  //   The encryption key is disabled.
  9837  //
  9838  //   * EncryptionKeyNotFoundException
  9839  //   No encryption key was found.
  9840  //
  9841  //   * EncryptionKeyUnavailableException
  9842  //   The encryption key is not available.
  9843  //
  9844  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch
  9845  func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error) {
  9846  	req, out := c.UpdateDefaultBranchRequest(input)
  9847  	return out, req.Send()
  9848  }
  9849  
  9850  // UpdateDefaultBranchWithContext is the same as UpdateDefaultBranch with the addition of
  9851  // the ability to pass a context and additional request options.
  9852  //
  9853  // See UpdateDefaultBranch for details on how to use this API operation.
  9854  //
  9855  // The context must be non-nil and will be used for request cancellation. If
  9856  // the context is nil a panic will occur. In the future the SDK may create
  9857  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9858  // for more information on using Contexts.
  9859  func (c *CodeCommit) UpdateDefaultBranchWithContext(ctx aws.Context, input *UpdateDefaultBranchInput, opts ...request.Option) (*UpdateDefaultBranchOutput, error) {
  9860  	req, out := c.UpdateDefaultBranchRequest(input)
  9861  	req.SetContext(ctx)
  9862  	req.ApplyOptions(opts...)
  9863  	return out, req.Send()
  9864  }
  9865  
  9866  const opUpdatePullRequestApprovalRuleContent = "UpdatePullRequestApprovalRuleContent"
  9867  
  9868  // UpdatePullRequestApprovalRuleContentRequest generates a "aws/request.Request" representing the
  9869  // client's request for the UpdatePullRequestApprovalRuleContent operation. The "output" return
  9870  // value will be populated with the request's response once the request completes
  9871  // successfully.
  9872  //
  9873  // Use "Send" method on the returned Request to send the API call to the service.
  9874  // the "output" return value is not valid until after Send returns without error.
  9875  //
  9876  // See UpdatePullRequestApprovalRuleContent for more information on using the UpdatePullRequestApprovalRuleContent
  9877  // API call, and error handling.
  9878  //
  9879  // This method is useful when you want to inject custom logic or configuration
  9880  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9881  //
  9882  //
  9883  //    // Example sending a request using the UpdatePullRequestApprovalRuleContentRequest method.
  9884  //    req, resp := client.UpdatePullRequestApprovalRuleContentRequest(params)
  9885  //
  9886  //    err := req.Send()
  9887  //    if err == nil { // resp is now filled
  9888  //        fmt.Println(resp)
  9889  //    }
  9890  //
  9891  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalRuleContent
  9892  func (c *CodeCommit) UpdatePullRequestApprovalRuleContentRequest(input *UpdatePullRequestApprovalRuleContentInput) (req *request.Request, output *UpdatePullRequestApprovalRuleContentOutput) {
  9893  	op := &request.Operation{
  9894  		Name:       opUpdatePullRequestApprovalRuleContent,
  9895  		HTTPMethod: "POST",
  9896  		HTTPPath:   "/",
  9897  	}
  9898  
  9899  	if input == nil {
  9900  		input = &UpdatePullRequestApprovalRuleContentInput{}
  9901  	}
  9902  
  9903  	output = &UpdatePullRequestApprovalRuleContentOutput{}
  9904  	req = c.newRequest(op, input, output)
  9905  	return
  9906  }
  9907  
  9908  // UpdatePullRequestApprovalRuleContent API operation for AWS CodeCommit.
  9909  //
  9910  // Updates the structure of an approval rule created specifically for a pull
  9911  // request. For example, you can change the number of required approvers and
  9912  // the approval pool for approvers.
  9913  //
  9914  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9915  // with awserr.Error's Code and Message methods to get detailed information about
  9916  // the error.
  9917  //
  9918  // See the AWS API reference guide for AWS CodeCommit's
  9919  // API operation UpdatePullRequestApprovalRuleContent for usage and error information.
  9920  //
  9921  // Returned Error Types:
  9922  //   * PullRequestDoesNotExistException
  9923  //   The pull request ID could not be found. Make sure that you have specified
  9924  //   the correct repository name and pull request ID, and then try again.
  9925  //
  9926  //   * InvalidPullRequestIdException
  9927  //   The pull request ID is not valid. Make sure that you have provided the full
  9928  //   ID and that the pull request is in the specified repository, and then try
  9929  //   again.
  9930  //
  9931  //   * PullRequestIdRequiredException
  9932  //   A pull request ID is required, but none was provided.
  9933  //
  9934  //   * PullRequestAlreadyClosedException
  9935  //   The pull request status cannot be updated because it is already closed.
  9936  //
  9937  //   * ApprovalRuleNameRequiredException
  9938  //   An approval rule name is required, but was not specified.
  9939  //
  9940  //   * InvalidApprovalRuleNameException
  9941  //   The name for the approval rule is not valid.
  9942  //
  9943  //   * ApprovalRuleDoesNotExistException
  9944  //   The specified approval rule does not exist.
  9945  //
  9946  //   * InvalidRuleContentSha256Exception
  9947  //   The SHA-256 hash signature for the rule content is not valid.
  9948  //
  9949  //   * ApprovalRuleContentRequiredException
  9950  //   The content for the approval rule is empty. You must provide some content
  9951  //   for an approval rule. The content cannot be null.
  9952  //
  9953  //   * InvalidApprovalRuleContentException
  9954  //   The content for the approval rule is not valid.
  9955  //
  9956  //   * CannotModifyApprovalRuleFromTemplateException
  9957  //   The approval rule cannot be modified for the pull request because it was
  9958  //   created by an approval rule template and applied to the pull request automatically.
  9959  //
  9960  //   * EncryptionIntegrityChecksFailedException
  9961  //   An encryption integrity check failed.
  9962  //
  9963  //   * EncryptionKeyAccessDeniedException
  9964  //   An encryption key could not be accessed.
  9965  //
  9966  //   * EncryptionKeyDisabledException
  9967  //   The encryption key is disabled.
  9968  //
  9969  //   * EncryptionKeyNotFoundException
  9970  //   No encryption key was found.
  9971  //
  9972  //   * EncryptionKeyUnavailableException
  9973  //   The encryption key is not available.
  9974  //
  9975  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalRuleContent
  9976  func (c *CodeCommit) UpdatePullRequestApprovalRuleContent(input *UpdatePullRequestApprovalRuleContentInput) (*UpdatePullRequestApprovalRuleContentOutput, error) {
  9977  	req, out := c.UpdatePullRequestApprovalRuleContentRequest(input)
  9978  	return out, req.Send()
  9979  }
  9980  
  9981  // UpdatePullRequestApprovalRuleContentWithContext is the same as UpdatePullRequestApprovalRuleContent with the addition of
  9982  // the ability to pass a context and additional request options.
  9983  //
  9984  // See UpdatePullRequestApprovalRuleContent for details on how to use this API operation.
  9985  //
  9986  // The context must be non-nil and will be used for request cancellation. If
  9987  // the context is nil a panic will occur. In the future the SDK may create
  9988  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9989  // for more information on using Contexts.
  9990  func (c *CodeCommit) UpdatePullRequestApprovalRuleContentWithContext(ctx aws.Context, input *UpdatePullRequestApprovalRuleContentInput, opts ...request.Option) (*UpdatePullRequestApprovalRuleContentOutput, error) {
  9991  	req, out := c.UpdatePullRequestApprovalRuleContentRequest(input)
  9992  	req.SetContext(ctx)
  9993  	req.ApplyOptions(opts...)
  9994  	return out, req.Send()
  9995  }
  9996  
  9997  const opUpdatePullRequestApprovalState = "UpdatePullRequestApprovalState"
  9998  
  9999  // UpdatePullRequestApprovalStateRequest generates a "aws/request.Request" representing the
 10000  // client's request for the UpdatePullRequestApprovalState operation. The "output" return
 10001  // value will be populated with the request's response once the request completes
 10002  // successfully.
 10003  //
 10004  // Use "Send" method on the returned Request to send the API call to the service.
 10005  // the "output" return value is not valid until after Send returns without error.
 10006  //
 10007  // See UpdatePullRequestApprovalState for more information on using the UpdatePullRequestApprovalState
 10008  // API call, and error handling.
 10009  //
 10010  // This method is useful when you want to inject custom logic or configuration
 10011  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
 10012  //
 10013  //
 10014  //    // Example sending a request using the UpdatePullRequestApprovalStateRequest method.
 10015  //    req, resp := client.UpdatePullRequestApprovalStateRequest(params)
 10016  //
 10017  //    err := req.Send()
 10018  //    if err == nil { // resp is now filled
 10019  //        fmt.Println(resp)
 10020  //    }
 10021  //
 10022  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalState
 10023  func (c *CodeCommit) UpdatePullRequestApprovalStateRequest(input *UpdatePullRequestApprovalStateInput) (req *request.Request, output *UpdatePullRequestApprovalStateOutput) {
 10024  	op := &request.Operation{
 10025  		Name:       opUpdatePullRequestApprovalState,
 10026  		HTTPMethod: "POST",
 10027  		HTTPPath:   "/",
 10028  	}
 10029  
 10030  	if input == nil {
 10031  		input = &UpdatePullRequestApprovalStateInput{}
 10032  	}
 10033  
 10034  	output = &UpdatePullRequestApprovalStateOutput{}
 10035  	req = c.newRequest(op, input, output)
 10036  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
 10037  	return
 10038  }
 10039  
 10040  // UpdatePullRequestApprovalState API operation for AWS CodeCommit.
 10041  //
 10042  // Updates the state of a user's approval on a pull request. The user is derived
 10043  // from the signed-in account when the request is made.
 10044  //
 10045  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
 10046  // with awserr.Error's Code and Message methods to get detailed information about
 10047  // the error.
 10048  //
 10049  // See the AWS API reference guide for AWS CodeCommit's
 10050  // API operation UpdatePullRequestApprovalState for usage and error information.
 10051  //
 10052  // Returned Error Types:
 10053  //   * PullRequestDoesNotExistException
 10054  //   The pull request ID could not be found. Make sure that you have specified
 10055  //   the correct repository name and pull request ID, and then try again.
 10056  //
 10057  //   * InvalidPullRequestIdException
 10058  //   The pull request ID is not valid. Make sure that you have provided the full
 10059  //   ID and that the pull request is in the specified repository, and then try
 10060  //   again.
 10061  //
 10062  //   * PullRequestIdRequiredException
 10063  //   A pull request ID is required, but none was provided.
 10064  //
 10065  //   * InvalidRevisionIdException
 10066  //   The revision ID is not valid. Use GetPullRequest to determine the value.
 10067  //
 10068  //   * RevisionIdRequiredException
 10069  //   A revision ID is required, but was not provided.
 10070  //
 10071  //   * InvalidApprovalStateException
 10072  //   The state for the approval is not valid. Valid values include APPROVE and
 10073  //   REVOKE.
 10074  //
 10075  //   * ApprovalStateRequiredException
 10076  //   An approval state is required, but was not specified.
 10077  //
 10078  //   * PullRequestCannotBeApprovedByAuthorException
 10079  //   The approval cannot be applied because the user approving the pull request
 10080  //   matches the user who created the pull request. You cannot approve a pull
 10081  //   request that you created.
 10082  //
 10083  //   * RevisionNotCurrentException
 10084  //   The revision ID provided in the request does not match the current revision
 10085  //   ID. Use GetPullRequest to retrieve the current revision ID.
 10086  //
 10087  //   * PullRequestAlreadyClosedException
 10088  //   The pull request status cannot be updated because it is already closed.
 10089  //
 10090  //   * MaximumNumberOfApprovalsExceededException
 10091  //   The number of approvals required for the approval rule exceeds the maximum
 10092  //   number allowed.
 10093  //
 10094  //   * EncryptionIntegrityChecksFailedException
 10095  //   An encryption integrity check failed.
 10096  //
 10097  //   * EncryptionKeyAccessDeniedException
 10098  //   An encryption key could not be accessed.
 10099  //
 10100  //   * EncryptionKeyDisabledException
 10101  //   The encryption key is disabled.
 10102  //
 10103  //   * EncryptionKeyNotFoundException
 10104  //   No encryption key was found.
 10105  //
 10106  //   * EncryptionKeyUnavailableException
 10107  //   The encryption key is not available.
 10108  //
 10109  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalState
 10110  func (c *CodeCommit) UpdatePullRequestApprovalState(input *UpdatePullRequestApprovalStateInput) (*UpdatePullRequestApprovalStateOutput, error) {
 10111  	req, out := c.UpdatePullRequestApprovalStateRequest(input)
 10112  	return out, req.Send()
 10113  }
 10114  
 10115  // UpdatePullRequestApprovalStateWithContext is the same as UpdatePullRequestApprovalState with the addition of
 10116  // the ability to pass a context and additional request options.
 10117  //
 10118  // See UpdatePullRequestApprovalState for details on how to use this API operation.
 10119  //
 10120  // The context must be non-nil and will be used for request cancellation. If
 10121  // the context is nil a panic will occur. In the future the SDK may create
 10122  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
 10123  // for more information on using Contexts.
 10124  func (c *CodeCommit) UpdatePullRequestApprovalStateWithContext(ctx aws.Context, input *UpdatePullRequestApprovalStateInput, opts ...request.Option) (*UpdatePullRequestApprovalStateOutput, error) {
 10125  	req, out := c.UpdatePullRequestApprovalStateRequest(input)
 10126  	req.SetContext(ctx)
 10127  	req.ApplyOptions(opts...)
 10128  	return out, req.Send()
 10129  }
 10130  
 10131  const opUpdatePullRequestDescription = "UpdatePullRequestDescription"
 10132  
 10133  // UpdatePullRequestDescriptionRequest generates a "aws/request.Request" representing the
 10134  // client's request for the UpdatePullRequestDescription operation. The "output" return
 10135  // value will be populated with the request's response once the request completes
 10136  // successfully.
 10137  //
 10138  // Use "Send" method on the returned Request to send the API call to the service.
 10139  // the "output" return value is not valid until after Send returns without error.
 10140  //
 10141  // See UpdatePullRequestDescription for more information on using the UpdatePullRequestDescription
 10142  // API call, and error handling.
 10143  //
 10144  // This method is useful when you want to inject custom logic or configuration
 10145  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
 10146  //
 10147  //
 10148  //    // Example sending a request using the UpdatePullRequestDescriptionRequest method.
 10149  //    req, resp := client.UpdatePullRequestDescriptionRequest(params)
 10150  //
 10151  //    err := req.Send()
 10152  //    if err == nil { // resp is now filled
 10153  //        fmt.Println(resp)
 10154  //    }
 10155  //
 10156  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription
 10157  func (c *CodeCommit) UpdatePullRequestDescriptionRequest(input *UpdatePullRequestDescriptionInput) (req *request.Request, output *UpdatePullRequestDescriptionOutput) {
 10158  	op := &request.Operation{
 10159  		Name:       opUpdatePullRequestDescription,
 10160  		HTTPMethod: "POST",
 10161  		HTTPPath:   "/",
 10162  	}
 10163  
 10164  	if input == nil {
 10165  		input = &UpdatePullRequestDescriptionInput{}
 10166  	}
 10167  
 10168  	output = &UpdatePullRequestDescriptionOutput{}
 10169  	req = c.newRequest(op, input, output)
 10170  	return
 10171  }
 10172  
 10173  // UpdatePullRequestDescription API operation for AWS CodeCommit.
 10174  //
 10175  // Replaces the contents of the description of a pull request.
 10176  //
 10177  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
 10178  // with awserr.Error's Code and Message methods to get detailed information about
 10179  // the error.
 10180  //
 10181  // See the AWS API reference guide for AWS CodeCommit's
 10182  // API operation UpdatePullRequestDescription for usage and error information.
 10183  //
 10184  // Returned Error Types:
 10185  //   * PullRequestDoesNotExistException
 10186  //   The pull request ID could not be found. Make sure that you have specified
 10187  //   the correct repository name and pull request ID, and then try again.
 10188  //
 10189  //   * InvalidPullRequestIdException
 10190  //   The pull request ID is not valid. Make sure that you have provided the full
 10191  //   ID and that the pull request is in the specified repository, and then try
 10192  //   again.
 10193  //
 10194  //   * PullRequestIdRequiredException
 10195  //   A pull request ID is required, but none was provided.
 10196  //
 10197  //   * InvalidDescriptionException
 10198  //   The pull request description is not valid. Descriptions cannot be more than
 10199  //   1,000 characters.
 10200  //
 10201  //   * PullRequestAlreadyClosedException
 10202  //   The pull request status cannot be updated because it is already closed.
 10203  //
 10204  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription
 10205  func (c *CodeCommit) UpdatePullRequestDescription(input *UpdatePullRequestDescriptionInput) (*UpdatePullRequestDescriptionOutput, error) {
 10206  	req, out := c.UpdatePullRequestDescriptionRequest(input)
 10207  	return out, req.Send()
 10208  }
 10209  
 10210  // UpdatePullRequestDescriptionWithContext is the same as UpdatePullRequestDescription with the addition of
 10211  // the ability to pass a context and additional request options.
 10212  //
 10213  // See UpdatePullRequestDescription for details on how to use this API operation.
 10214  //
 10215  // The context must be non-nil and will be used for request cancellation. If
 10216  // the context is nil a panic will occur. In the future the SDK may create
 10217  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
 10218  // for more information on using Contexts.
 10219  func (c *CodeCommit) UpdatePullRequestDescriptionWithContext(ctx aws.Context, input *UpdatePullRequestDescriptionInput, opts ...request.Option) (*UpdatePullRequestDescriptionOutput, error) {
 10220  	req, out := c.UpdatePullRequestDescriptionRequest(input)
 10221  	req.SetContext(ctx)
 10222  	req.ApplyOptions(opts...)
 10223  	return out, req.Send()
 10224  }
 10225  
 10226  const opUpdatePullRequestStatus = "UpdatePullRequestStatus"
 10227  
 10228  // UpdatePullRequestStatusRequest generates a "aws/request.Request" representing the
 10229  // client's request for the UpdatePullRequestStatus operation. The "output" return
 10230  // value will be populated with the request's response once the request completes
 10231  // successfully.
 10232  //
 10233  // Use "Send" method on the returned Request to send the API call to the service.
 10234  // the "output" return value is not valid until after Send returns without error.
 10235  //
 10236  // See UpdatePullRequestStatus for more information on using the UpdatePullRequestStatus
 10237  // API call, and error handling.
 10238  //
 10239  // This method is useful when you want to inject custom logic or configuration
 10240  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
 10241  //
 10242  //
 10243  //    // Example sending a request using the UpdatePullRequestStatusRequest method.
 10244  //    req, resp := client.UpdatePullRequestStatusRequest(params)
 10245  //
 10246  //    err := req.Send()
 10247  //    if err == nil { // resp is now filled
 10248  //        fmt.Println(resp)
 10249  //    }
 10250  //
 10251  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus
 10252  func (c *CodeCommit) UpdatePullRequestStatusRequest(input *UpdatePullRequestStatusInput) (req *request.Request, output *UpdatePullRequestStatusOutput) {
 10253  	op := &request.Operation{
 10254  		Name:       opUpdatePullRequestStatus,
 10255  		HTTPMethod: "POST",
 10256  		HTTPPath:   "/",
 10257  	}
 10258  
 10259  	if input == nil {
 10260  		input = &UpdatePullRequestStatusInput{}
 10261  	}
 10262  
 10263  	output = &UpdatePullRequestStatusOutput{}
 10264  	req = c.newRequest(op, input, output)
 10265  	return
 10266  }
 10267  
 10268  // UpdatePullRequestStatus API operation for AWS CodeCommit.
 10269  //
 10270  // Updates the status of a pull request.
 10271  //
 10272  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
 10273  // with awserr.Error's Code and Message methods to get detailed information about
 10274  // the error.
 10275  //
 10276  // See the AWS API reference guide for AWS CodeCommit's
 10277  // API operation UpdatePullRequestStatus for usage and error information.
 10278  //
 10279  // Returned Error Types:
 10280  //   * PullRequestDoesNotExistException
 10281  //   The pull request ID could not be found. Make sure that you have specified
 10282  //   the correct repository name and pull request ID, and then try again.
 10283  //
 10284  //   * InvalidPullRequestIdException
 10285  //   The pull request ID is not valid. Make sure that you have provided the full
 10286  //   ID and that the pull request is in the specified repository, and then try
 10287  //   again.
 10288  //
 10289  //   * PullRequestIdRequiredException
 10290  //   A pull request ID is required, but none was provided.
 10291  //
 10292  //   * InvalidPullRequestStatusUpdateException
 10293  //   The pull request status update is not valid. The only valid update is from
 10294  //   OPEN to CLOSED.
 10295  //
 10296  //   * InvalidPullRequestStatusException
 10297  //   The pull request status is not valid. The only valid values are OPEN and
 10298  //   CLOSED.
 10299  //
 10300  //   * PullRequestStatusRequiredException
 10301  //   A pull request status is required, but none was provided.
 10302  //
 10303  //   * EncryptionIntegrityChecksFailedException
 10304  //   An encryption integrity check failed.
 10305  //
 10306  //   * EncryptionKeyAccessDeniedException
 10307  //   An encryption key could not be accessed.
 10308  //
 10309  //   * EncryptionKeyDisabledException
 10310  //   The encryption key is disabled.
 10311  //
 10312  //   * EncryptionKeyNotFoundException
 10313  //   No encryption key was found.
 10314  //
 10315  //   * EncryptionKeyUnavailableException
 10316  //   The encryption key is not available.
 10317  //
 10318  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus
 10319  func (c *CodeCommit) UpdatePullRequestStatus(input *UpdatePullRequestStatusInput) (*UpdatePullRequestStatusOutput, error) {
 10320  	req, out := c.UpdatePullRequestStatusRequest(input)
 10321  	return out, req.Send()
 10322  }
 10323  
 10324  // UpdatePullRequestStatusWithContext is the same as UpdatePullRequestStatus with the addition of
 10325  // the ability to pass a context and additional request options.
 10326  //
 10327  // See UpdatePullRequestStatus for details on how to use this API operation.
 10328  //
 10329  // The context must be non-nil and will be used for request cancellation. If
 10330  // the context is nil a panic will occur. In the future the SDK may create
 10331  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
 10332  // for more information on using Contexts.
 10333  func (c *CodeCommit) UpdatePullRequestStatusWithContext(ctx aws.Context, input *UpdatePullRequestStatusInput, opts ...request.Option) (*UpdatePullRequestStatusOutput, error) {
 10334  	req, out := c.UpdatePullRequestStatusRequest(input)
 10335  	req.SetContext(ctx)
 10336  	req.ApplyOptions(opts...)
 10337  	return out, req.Send()
 10338  }
 10339  
 10340  const opUpdatePullRequestTitle = "UpdatePullRequestTitle"
 10341  
 10342  // UpdatePullRequestTitleRequest generates a "aws/request.Request" representing the
 10343  // client's request for the UpdatePullRequestTitle operation. The "output" return
 10344  // value will be populated with the request's response once the request completes
 10345  // successfully.
 10346  //
 10347  // Use "Send" method on the returned Request to send the API call to the service.
 10348  // the "output" return value is not valid until after Send returns without error.
 10349  //
 10350  // See UpdatePullRequestTitle for more information on using the UpdatePullRequestTitle
 10351  // API call, and error handling.
 10352  //
 10353  // This method is useful when you want to inject custom logic or configuration
 10354  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
 10355  //
 10356  //
 10357  //    // Example sending a request using the UpdatePullRequestTitleRequest method.
 10358  //    req, resp := client.UpdatePullRequestTitleRequest(params)
 10359  //
 10360  //    err := req.Send()
 10361  //    if err == nil { // resp is now filled
 10362  //        fmt.Println(resp)
 10363  //    }
 10364  //
 10365  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle
 10366  func (c *CodeCommit) UpdatePullRequestTitleRequest(input *UpdatePullRequestTitleInput) (req *request.Request, output *UpdatePullRequestTitleOutput) {
 10367  	op := &request.Operation{
 10368  		Name:       opUpdatePullRequestTitle,
 10369  		HTTPMethod: "POST",
 10370  		HTTPPath:   "/",
 10371  	}
 10372  
 10373  	if input == nil {
 10374  		input = &UpdatePullRequestTitleInput{}
 10375  	}
 10376  
 10377  	output = &UpdatePullRequestTitleOutput{}
 10378  	req = c.newRequest(op, input, output)
 10379  	return
 10380  }
 10381  
 10382  // UpdatePullRequestTitle API operation for AWS CodeCommit.
 10383  //
 10384  // Replaces the title of a pull request.
 10385  //
 10386  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
 10387  // with awserr.Error's Code and Message methods to get detailed information about
 10388  // the error.
 10389  //
 10390  // See the AWS API reference guide for AWS CodeCommit's
 10391  // API operation UpdatePullRequestTitle for usage and error information.
 10392  //
 10393  // Returned Error Types:
 10394  //   * PullRequestDoesNotExistException
 10395  //   The pull request ID could not be found. Make sure that you have specified
 10396  //   the correct repository name and pull request ID, and then try again.
 10397  //
 10398  //   * InvalidPullRequestIdException
 10399  //   The pull request ID is not valid. Make sure that you have provided the full
 10400  //   ID and that the pull request is in the specified repository, and then try
 10401  //   again.
 10402  //
 10403  //   * PullRequestIdRequiredException
 10404  //   A pull request ID is required, but none was provided.
 10405  //
 10406  //   * TitleRequiredException
 10407  //   A pull request title is required. It cannot be empty or null.
 10408  //
 10409  //   * InvalidTitleException
 10410  //   The title of the pull request is not valid. Pull request titles cannot exceed
 10411  //   100 characters in length.
 10412  //
 10413  //   * PullRequestAlreadyClosedException
 10414  //   The pull request status cannot be updated because it is already closed.
 10415  //
 10416  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle
 10417  func (c *CodeCommit) UpdatePullRequestTitle(input *UpdatePullRequestTitleInput) (*UpdatePullRequestTitleOutput, error) {
 10418  	req, out := c.UpdatePullRequestTitleRequest(input)
 10419  	return out, req.Send()
 10420  }
 10421  
 10422  // UpdatePullRequestTitleWithContext is the same as UpdatePullRequestTitle with the addition of
 10423  // the ability to pass a context and additional request options.
 10424  //
 10425  // See UpdatePullRequestTitle for details on how to use this API operation.
 10426  //
 10427  // The context must be non-nil and will be used for request cancellation. If
 10428  // the context is nil a panic will occur. In the future the SDK may create
 10429  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
 10430  // for more information on using Contexts.
 10431  func (c *CodeCommit) UpdatePullRequestTitleWithContext(ctx aws.Context, input *UpdatePullRequestTitleInput, opts ...request.Option) (*UpdatePullRequestTitleOutput, error) {
 10432  	req, out := c.UpdatePullRequestTitleRequest(input)
 10433  	req.SetContext(ctx)
 10434  	req.ApplyOptions(opts...)
 10435  	return out, req.Send()
 10436  }
 10437  
 10438  const opUpdateRepositoryDescription = "UpdateRepositoryDescription"
 10439  
 10440  // UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the
 10441  // client's request for the UpdateRepositoryDescription operation. The "output" return
 10442  // value will be populated with the request's response once the request completes
 10443  // successfully.
 10444  //
 10445  // Use "Send" method on the returned Request to send the API call to the service.
 10446  // the "output" return value is not valid until after Send returns without error.
 10447  //
 10448  // See UpdateRepositoryDescription for more information on using the UpdateRepositoryDescription
 10449  // API call, and error handling.
 10450  //
 10451  // This method is useful when you want to inject custom logic or configuration
 10452  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
 10453  //
 10454  //
 10455  //    // Example sending a request using the UpdateRepositoryDescriptionRequest method.
 10456  //    req, resp := client.UpdateRepositoryDescriptionRequest(params)
 10457  //
 10458  //    err := req.Send()
 10459  //    if err == nil { // resp is now filled
 10460  //        fmt.Println(resp)
 10461  //    }
 10462  //
 10463  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription
 10464  func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput) {
 10465  	op := &request.Operation{
 10466  		Name:       opUpdateRepositoryDescription,
 10467  		HTTPMethod: "POST",
 10468  		HTTPPath:   "/",
 10469  	}
 10470  
 10471  	if input == nil {
 10472  		input = &UpdateRepositoryDescriptionInput{}
 10473  	}
 10474  
 10475  	output = &UpdateRepositoryDescriptionOutput{}
 10476  	req = c.newRequest(op, input, output)
 10477  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
 10478  	return
 10479  }
 10480  
 10481  // UpdateRepositoryDescription API operation for AWS CodeCommit.
 10482  //
 10483  // Sets or changes the comment or description for a repository.
 10484  //
 10485  // The description field for a repository accepts all HTML characters and all
 10486  // valid Unicode characters. Applications that do not HTML-encode the description
 10487  // and display it in a webpage can expose users to potentially malicious code.
 10488  // Make sure that you HTML-encode the description field in any application that
 10489  // uses this API to display the repository description on a webpage.
 10490  //
 10491  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
 10492  // with awserr.Error's Code and Message methods to get detailed information about
 10493  // the error.
 10494  //
 10495  // See the AWS API reference guide for AWS CodeCommit's
 10496  // API operation UpdateRepositoryDescription for usage and error information.
 10497  //
 10498  // Returned Error Types:
 10499  //   * RepositoryNameRequiredException
 10500  //   A repository name is required, but was not specified.
 10501  //
 10502  //   * RepositoryDoesNotExistException
 10503  //   The specified repository does not exist.
 10504  //
 10505  //   * InvalidRepositoryNameException
 10506  //   A specified repository name is not valid.
 10507  //
 10508  //   This exception occurs only when a specified repository name is not valid.
 10509  //   Other exceptions occur when a required repository parameter is missing, or
 10510  //   when a specified repository does not exist.
 10511  //
 10512  //   * InvalidRepositoryDescriptionException
 10513  //   The specified repository description is not valid.
 10514  //
 10515  //   * EncryptionIntegrityChecksFailedException
 10516  //   An encryption integrity check failed.
 10517  //
 10518  //   * EncryptionKeyAccessDeniedException
 10519  //   An encryption key could not be accessed.
 10520  //
 10521  //   * EncryptionKeyDisabledException
 10522  //   The encryption key is disabled.
 10523  //
 10524  //   * EncryptionKeyNotFoundException
 10525  //   No encryption key was found.
 10526  //
 10527  //   * EncryptionKeyUnavailableException
 10528  //   The encryption key is not available.
 10529  //
 10530  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription
 10531  func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error) {
 10532  	req, out := c.UpdateRepositoryDescriptionRequest(input)
 10533  	return out, req.Send()
 10534  }
 10535  
 10536  // UpdateRepositoryDescriptionWithContext is the same as UpdateRepositoryDescription with the addition of
 10537  // the ability to pass a context and additional request options.
 10538  //
 10539  // See UpdateRepositoryDescription for details on how to use this API operation.
 10540  //
 10541  // The context must be non-nil and will be used for request cancellation. If
 10542  // the context is nil a panic will occur. In the future the SDK may create
 10543  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
 10544  // for more information on using Contexts.
 10545  func (c *CodeCommit) UpdateRepositoryDescriptionWithContext(ctx aws.Context, input *UpdateRepositoryDescriptionInput, opts ...request.Option) (*UpdateRepositoryDescriptionOutput, error) {
 10546  	req, out := c.UpdateRepositoryDescriptionRequest(input)
 10547  	req.SetContext(ctx)
 10548  	req.ApplyOptions(opts...)
 10549  	return out, req.Send()
 10550  }
 10551  
 10552  const opUpdateRepositoryName = "UpdateRepositoryName"
 10553  
 10554  // UpdateRepositoryNameRequest generates a "aws/request.Request" representing the
 10555  // client's request for the UpdateRepositoryName operation. The "output" return
 10556  // value will be populated with the request's response once the request completes
 10557  // successfully.
 10558  //
 10559  // Use "Send" method on the returned Request to send the API call to the service.
 10560  // the "output" return value is not valid until after Send returns without error.
 10561  //
 10562  // See UpdateRepositoryName for more information on using the UpdateRepositoryName
 10563  // API call, and error handling.
 10564  //
 10565  // This method is useful when you want to inject custom logic or configuration
 10566  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
 10567  //
 10568  //
 10569  //    // Example sending a request using the UpdateRepositoryNameRequest method.
 10570  //    req, resp := client.UpdateRepositoryNameRequest(params)
 10571  //
 10572  //    err := req.Send()
 10573  //    if err == nil { // resp is now filled
 10574  //        fmt.Println(resp)
 10575  //    }
 10576  //
 10577  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName
 10578  func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput) {
 10579  	op := &request.Operation{
 10580  		Name:       opUpdateRepositoryName,
 10581  		HTTPMethod: "POST",
 10582  		HTTPPath:   "/",
 10583  	}
 10584  
 10585  	if input == nil {
 10586  		input = &UpdateRepositoryNameInput{}
 10587  	}
 10588  
 10589  	output = &UpdateRepositoryNameOutput{}
 10590  	req = c.newRequest(op, input, output)
 10591  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
 10592  	return
 10593  }
 10594  
 10595  // UpdateRepositoryName API operation for AWS CodeCommit.
 10596  //
 10597  // Renames a repository. The repository name must be unique across the calling
 10598  // AWS account. Repository names are limited to 100 alphanumeric, dash, and
 10599  // underscore characters, and cannot include certain characters. The suffix
 10600  // .git is prohibited. For more information about the limits on repository names,
 10601  // see Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
 10602  // in the AWS CodeCommit User Guide.
 10603  //
 10604  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
 10605  // with awserr.Error's Code and Message methods to get detailed information about
 10606  // the error.
 10607  //
 10608  // See the AWS API reference guide for AWS CodeCommit's
 10609  // API operation UpdateRepositoryName for usage and error information.
 10610  //
 10611  // Returned Error Types:
 10612  //   * RepositoryDoesNotExistException
 10613  //   The specified repository does not exist.
 10614  //
 10615  //   * RepositoryNameExistsException
 10616  //   The specified repository name already exists.
 10617  //
 10618  //   * RepositoryNameRequiredException
 10619  //   A repository name is required, but was not specified.
 10620  //
 10621  //   * InvalidRepositoryNameException
 10622  //   A specified repository name is not valid.
 10623  //
 10624  //   This exception occurs only when a specified repository name is not valid.
 10625  //   Other exceptions occur when a required repository parameter is missing, or
 10626  //   when a specified repository does not exist.
 10627  //
 10628  // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName
 10629  func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error) {
 10630  	req, out := c.UpdateRepositoryNameRequest(input)
 10631  	return out, req.Send()
 10632  }
 10633  
 10634  // UpdateRepositoryNameWithContext is the same as UpdateRepositoryName with the addition of
 10635  // the ability to pass a context and additional request options.
 10636  //
 10637  // See UpdateRepositoryName for details on how to use this API operation.
 10638  //
 10639  // The context must be non-nil and will be used for request cancellation. If
 10640  // the context is nil a panic will occur. In the future the SDK may create
 10641  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
 10642  // for more information on using Contexts.
 10643  func (c *CodeCommit) UpdateRepositoryNameWithContext(ctx aws.Context, input *UpdateRepositoryNameInput, opts ...request.Option) (*UpdateRepositoryNameOutput, error) {
 10644  	req, out := c.UpdateRepositoryNameRequest(input)
 10645  	req.SetContext(ctx)
 10646  	req.ApplyOptions(opts...)
 10647  	return out, req.Send()
 10648  }
 10649  
 10650  // The specified Amazon Resource Name (ARN) does not exist in the AWS account.
 10651  type ActorDoesNotExistException struct {
 10652  	_            struct{}                  `type:"structure"`
 10653  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 10654  
 10655  	Message_ *string `locationName:"message" type:"string"`
 10656  }
 10657  
 10658  // String returns the string representation.
 10659  //
 10660  // API parameter values that are decorated as "sensitive" in the API will not
 10661  // be included in the string output. The member name will be present, but the
 10662  // value will be replaced with "sensitive".
 10663  func (s ActorDoesNotExistException) String() string {
 10664  	return awsutil.Prettify(s)
 10665  }
 10666  
 10667  // GoString returns the string representation.
 10668  //
 10669  // API parameter values that are decorated as "sensitive" in the API will not
 10670  // be included in the string output. The member name will be present, but the
 10671  // value will be replaced with "sensitive".
 10672  func (s ActorDoesNotExistException) GoString() string {
 10673  	return s.String()
 10674  }
 10675  
 10676  func newErrorActorDoesNotExistException(v protocol.ResponseMetadata) error {
 10677  	return &ActorDoesNotExistException{
 10678  		RespMetadata: v,
 10679  	}
 10680  }
 10681  
 10682  // Code returns the exception type name.
 10683  func (s *ActorDoesNotExistException) Code() string {
 10684  	return "ActorDoesNotExistException"
 10685  }
 10686  
 10687  // Message returns the exception's message.
 10688  func (s *ActorDoesNotExistException) Message() string {
 10689  	if s.Message_ != nil {
 10690  		return *s.Message_
 10691  	}
 10692  	return ""
 10693  }
 10694  
 10695  // OrigErr always returns nil, satisfies awserr.Error interface.
 10696  func (s *ActorDoesNotExistException) OrigErr() error {
 10697  	return nil
 10698  }
 10699  
 10700  func (s *ActorDoesNotExistException) Error() string {
 10701  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 10702  }
 10703  
 10704  // Status code returns the HTTP status code for the request's response error.
 10705  func (s *ActorDoesNotExistException) StatusCode() int {
 10706  	return s.RespMetadata.StatusCode
 10707  }
 10708  
 10709  // RequestID returns the service's response RequestID for request.
 10710  func (s *ActorDoesNotExistException) RequestID() string {
 10711  	return s.RespMetadata.RequestID
 10712  }
 10713  
 10714  // Returns information about a specific approval on a pull request.
 10715  type Approval struct {
 10716  	_ struct{} `type:"structure"`
 10717  
 10718  	// The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
 10719  	ApprovalState *string `locationName:"approvalState" type:"string" enum:"ApprovalState"`
 10720  
 10721  	// The Amazon Resource Name (ARN) of the user.
 10722  	UserArn *string `locationName:"userArn" type:"string"`
 10723  }
 10724  
 10725  // String returns the string representation.
 10726  //
 10727  // API parameter values that are decorated as "sensitive" in the API will not
 10728  // be included in the string output. The member name will be present, but the
 10729  // value will be replaced with "sensitive".
 10730  func (s Approval) String() string {
 10731  	return awsutil.Prettify(s)
 10732  }
 10733  
 10734  // GoString returns the string representation.
 10735  //
 10736  // API parameter values that are decorated as "sensitive" in the API will not
 10737  // be included in the string output. The member name will be present, but the
 10738  // value will be replaced with "sensitive".
 10739  func (s Approval) GoString() string {
 10740  	return s.String()
 10741  }
 10742  
 10743  // SetApprovalState sets the ApprovalState field's value.
 10744  func (s *Approval) SetApprovalState(v string) *Approval {
 10745  	s.ApprovalState = &v
 10746  	return s
 10747  }
 10748  
 10749  // SetUserArn sets the UserArn field's value.
 10750  func (s *Approval) SetUserArn(v string) *Approval {
 10751  	s.UserArn = &v
 10752  	return s
 10753  }
 10754  
 10755  // Returns information about an approval rule.
 10756  type ApprovalRule struct {
 10757  	_ struct{} `type:"structure"`
 10758  
 10759  	// The content of the approval rule.
 10760  	ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string"`
 10761  
 10762  	// The system-generated ID of the approval rule.
 10763  	ApprovalRuleId *string `locationName:"approvalRuleId" type:"string"`
 10764  
 10765  	// The name of the approval rule.
 10766  	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string"`
 10767  
 10768  	// The date the approval rule was created, in timestamp format.
 10769  	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
 10770  
 10771  	// The date the approval rule was most recently changed, in timestamp format.
 10772  	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
 10773  
 10774  	// The Amazon Resource Name (ARN) of the user who made the most recent changes
 10775  	// to the approval rule.
 10776  	LastModifiedUser *string `locationName:"lastModifiedUser" type:"string"`
 10777  
 10778  	// The approval rule template used to create the rule.
 10779  	OriginApprovalRuleTemplate *OriginApprovalRuleTemplate `locationName:"originApprovalRuleTemplate" type:"structure"`
 10780  
 10781  	// The SHA-256 hash signature for the content of the approval rule.
 10782  	RuleContentSha256 *string `locationName:"ruleContentSha256" type:"string"`
 10783  }
 10784  
 10785  // String returns the string representation.
 10786  //
 10787  // API parameter values that are decorated as "sensitive" in the API will not
 10788  // be included in the string output. The member name will be present, but the
 10789  // value will be replaced with "sensitive".
 10790  func (s ApprovalRule) String() string {
 10791  	return awsutil.Prettify(s)
 10792  }
 10793  
 10794  // GoString returns the string representation.
 10795  //
 10796  // API parameter values that are decorated as "sensitive" in the API will not
 10797  // be included in the string output. The member name will be present, but the
 10798  // value will be replaced with "sensitive".
 10799  func (s ApprovalRule) GoString() string {
 10800  	return s.String()
 10801  }
 10802  
 10803  // SetApprovalRuleContent sets the ApprovalRuleContent field's value.
 10804  func (s *ApprovalRule) SetApprovalRuleContent(v string) *ApprovalRule {
 10805  	s.ApprovalRuleContent = &v
 10806  	return s
 10807  }
 10808  
 10809  // SetApprovalRuleId sets the ApprovalRuleId field's value.
 10810  func (s *ApprovalRule) SetApprovalRuleId(v string) *ApprovalRule {
 10811  	s.ApprovalRuleId = &v
 10812  	return s
 10813  }
 10814  
 10815  // SetApprovalRuleName sets the ApprovalRuleName field's value.
 10816  func (s *ApprovalRule) SetApprovalRuleName(v string) *ApprovalRule {
 10817  	s.ApprovalRuleName = &v
 10818  	return s
 10819  }
 10820  
 10821  // SetCreationDate sets the CreationDate field's value.
 10822  func (s *ApprovalRule) SetCreationDate(v time.Time) *ApprovalRule {
 10823  	s.CreationDate = &v
 10824  	return s
 10825  }
 10826  
 10827  // SetLastModifiedDate sets the LastModifiedDate field's value.
 10828  func (s *ApprovalRule) SetLastModifiedDate(v time.Time) *ApprovalRule {
 10829  	s.LastModifiedDate = &v
 10830  	return s
 10831  }
 10832  
 10833  // SetLastModifiedUser sets the LastModifiedUser field's value.
 10834  func (s *ApprovalRule) SetLastModifiedUser(v string) *ApprovalRule {
 10835  	s.LastModifiedUser = &v
 10836  	return s
 10837  }
 10838  
 10839  // SetOriginApprovalRuleTemplate sets the OriginApprovalRuleTemplate field's value.
 10840  func (s *ApprovalRule) SetOriginApprovalRuleTemplate(v *OriginApprovalRuleTemplate) *ApprovalRule {
 10841  	s.OriginApprovalRuleTemplate = v
 10842  	return s
 10843  }
 10844  
 10845  // SetRuleContentSha256 sets the RuleContentSha256 field's value.
 10846  func (s *ApprovalRule) SetRuleContentSha256(v string) *ApprovalRule {
 10847  	s.RuleContentSha256 = &v
 10848  	return s
 10849  }
 10850  
 10851  // The content for the approval rule is empty. You must provide some content
 10852  // for an approval rule. The content cannot be null.
 10853  type ApprovalRuleContentRequiredException struct {
 10854  	_            struct{}                  `type:"structure"`
 10855  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 10856  
 10857  	Message_ *string `locationName:"message" type:"string"`
 10858  }
 10859  
 10860  // String returns the string representation.
 10861  //
 10862  // API parameter values that are decorated as "sensitive" in the API will not
 10863  // be included in the string output. The member name will be present, but the
 10864  // value will be replaced with "sensitive".
 10865  func (s ApprovalRuleContentRequiredException) String() string {
 10866  	return awsutil.Prettify(s)
 10867  }
 10868  
 10869  // GoString returns the string representation.
 10870  //
 10871  // API parameter values that are decorated as "sensitive" in the API will not
 10872  // be included in the string output. The member name will be present, but the
 10873  // value will be replaced with "sensitive".
 10874  func (s ApprovalRuleContentRequiredException) GoString() string {
 10875  	return s.String()
 10876  }
 10877  
 10878  func newErrorApprovalRuleContentRequiredException(v protocol.ResponseMetadata) error {
 10879  	return &ApprovalRuleContentRequiredException{
 10880  		RespMetadata: v,
 10881  	}
 10882  }
 10883  
 10884  // Code returns the exception type name.
 10885  func (s *ApprovalRuleContentRequiredException) Code() string {
 10886  	return "ApprovalRuleContentRequiredException"
 10887  }
 10888  
 10889  // Message returns the exception's message.
 10890  func (s *ApprovalRuleContentRequiredException) Message() string {
 10891  	if s.Message_ != nil {
 10892  		return *s.Message_
 10893  	}
 10894  	return ""
 10895  }
 10896  
 10897  // OrigErr always returns nil, satisfies awserr.Error interface.
 10898  func (s *ApprovalRuleContentRequiredException) OrigErr() error {
 10899  	return nil
 10900  }
 10901  
 10902  func (s *ApprovalRuleContentRequiredException) Error() string {
 10903  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 10904  }
 10905  
 10906  // Status code returns the HTTP status code for the request's response error.
 10907  func (s *ApprovalRuleContentRequiredException) StatusCode() int {
 10908  	return s.RespMetadata.StatusCode
 10909  }
 10910  
 10911  // RequestID returns the service's response RequestID for request.
 10912  func (s *ApprovalRuleContentRequiredException) RequestID() string {
 10913  	return s.RespMetadata.RequestID
 10914  }
 10915  
 10916  // The specified approval rule does not exist.
 10917  type ApprovalRuleDoesNotExistException struct {
 10918  	_            struct{}                  `type:"structure"`
 10919  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 10920  
 10921  	Message_ *string `locationName:"message" type:"string"`
 10922  }
 10923  
 10924  // String returns the string representation.
 10925  //
 10926  // API parameter values that are decorated as "sensitive" in the API will not
 10927  // be included in the string output. The member name will be present, but the
 10928  // value will be replaced with "sensitive".
 10929  func (s ApprovalRuleDoesNotExistException) String() string {
 10930  	return awsutil.Prettify(s)
 10931  }
 10932  
 10933  // GoString returns the string representation.
 10934  //
 10935  // API parameter values that are decorated as "sensitive" in the API will not
 10936  // be included in the string output. The member name will be present, but the
 10937  // value will be replaced with "sensitive".
 10938  func (s ApprovalRuleDoesNotExistException) GoString() string {
 10939  	return s.String()
 10940  }
 10941  
 10942  func newErrorApprovalRuleDoesNotExistException(v protocol.ResponseMetadata) error {
 10943  	return &ApprovalRuleDoesNotExistException{
 10944  		RespMetadata: v,
 10945  	}
 10946  }
 10947  
 10948  // Code returns the exception type name.
 10949  func (s *ApprovalRuleDoesNotExistException) Code() string {
 10950  	return "ApprovalRuleDoesNotExistException"
 10951  }
 10952  
 10953  // Message returns the exception's message.
 10954  func (s *ApprovalRuleDoesNotExistException) Message() string {
 10955  	if s.Message_ != nil {
 10956  		return *s.Message_
 10957  	}
 10958  	return ""
 10959  }
 10960  
 10961  // OrigErr always returns nil, satisfies awserr.Error interface.
 10962  func (s *ApprovalRuleDoesNotExistException) OrigErr() error {
 10963  	return nil
 10964  }
 10965  
 10966  func (s *ApprovalRuleDoesNotExistException) Error() string {
 10967  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 10968  }
 10969  
 10970  // Status code returns the HTTP status code for the request's response error.
 10971  func (s *ApprovalRuleDoesNotExistException) StatusCode() int {
 10972  	return s.RespMetadata.StatusCode
 10973  }
 10974  
 10975  // RequestID returns the service's response RequestID for request.
 10976  func (s *ApprovalRuleDoesNotExistException) RequestID() string {
 10977  	return s.RespMetadata.RequestID
 10978  }
 10979  
 10980  // Returns information about an event for an approval rule.
 10981  type ApprovalRuleEventMetadata struct {
 10982  	_ struct{} `type:"structure"`
 10983  
 10984  	// The content of the approval rule.
 10985  	ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string"`
 10986  
 10987  	// The system-generated ID of the approval rule.
 10988  	ApprovalRuleId *string `locationName:"approvalRuleId" type:"string"`
 10989  
 10990  	// The name of the approval rule.
 10991  	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string"`
 10992  }
 10993  
 10994  // String returns the string representation.
 10995  //
 10996  // API parameter values that are decorated as "sensitive" in the API will not
 10997  // be included in the string output. The member name will be present, but the
 10998  // value will be replaced with "sensitive".
 10999  func (s ApprovalRuleEventMetadata) String() string {
 11000  	return awsutil.Prettify(s)
 11001  }
 11002  
 11003  // GoString returns the string representation.
 11004  //
 11005  // API parameter values that are decorated as "sensitive" in the API will not
 11006  // be included in the string output. The member name will be present, but the
 11007  // value will be replaced with "sensitive".
 11008  func (s ApprovalRuleEventMetadata) GoString() string {
 11009  	return s.String()
 11010  }
 11011  
 11012  // SetApprovalRuleContent sets the ApprovalRuleContent field's value.
 11013  func (s *ApprovalRuleEventMetadata) SetApprovalRuleContent(v string) *ApprovalRuleEventMetadata {
 11014  	s.ApprovalRuleContent = &v
 11015  	return s
 11016  }
 11017  
 11018  // SetApprovalRuleId sets the ApprovalRuleId field's value.
 11019  func (s *ApprovalRuleEventMetadata) SetApprovalRuleId(v string) *ApprovalRuleEventMetadata {
 11020  	s.ApprovalRuleId = &v
 11021  	return s
 11022  }
 11023  
 11024  // SetApprovalRuleName sets the ApprovalRuleName field's value.
 11025  func (s *ApprovalRuleEventMetadata) SetApprovalRuleName(v string) *ApprovalRuleEventMetadata {
 11026  	s.ApprovalRuleName = &v
 11027  	return s
 11028  }
 11029  
 11030  // An approval rule with that name already exists. Approval rule names must
 11031  // be unique within the scope of a pull request.
 11032  type ApprovalRuleNameAlreadyExistsException struct {
 11033  	_            struct{}                  `type:"structure"`
 11034  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11035  
 11036  	Message_ *string `locationName:"message" type:"string"`
 11037  }
 11038  
 11039  // String returns the string representation.
 11040  //
 11041  // API parameter values that are decorated as "sensitive" in the API will not
 11042  // be included in the string output. The member name will be present, but the
 11043  // value will be replaced with "sensitive".
 11044  func (s ApprovalRuleNameAlreadyExistsException) String() string {
 11045  	return awsutil.Prettify(s)
 11046  }
 11047  
 11048  // GoString returns the string representation.
 11049  //
 11050  // API parameter values that are decorated as "sensitive" in the API will not
 11051  // be included in the string output. The member name will be present, but the
 11052  // value will be replaced with "sensitive".
 11053  func (s ApprovalRuleNameAlreadyExistsException) GoString() string {
 11054  	return s.String()
 11055  }
 11056  
 11057  func newErrorApprovalRuleNameAlreadyExistsException(v protocol.ResponseMetadata) error {
 11058  	return &ApprovalRuleNameAlreadyExistsException{
 11059  		RespMetadata: v,
 11060  	}
 11061  }
 11062  
 11063  // Code returns the exception type name.
 11064  func (s *ApprovalRuleNameAlreadyExistsException) Code() string {
 11065  	return "ApprovalRuleNameAlreadyExistsException"
 11066  }
 11067  
 11068  // Message returns the exception's message.
 11069  func (s *ApprovalRuleNameAlreadyExistsException) Message() string {
 11070  	if s.Message_ != nil {
 11071  		return *s.Message_
 11072  	}
 11073  	return ""
 11074  }
 11075  
 11076  // OrigErr always returns nil, satisfies awserr.Error interface.
 11077  func (s *ApprovalRuleNameAlreadyExistsException) OrigErr() error {
 11078  	return nil
 11079  }
 11080  
 11081  func (s *ApprovalRuleNameAlreadyExistsException) Error() string {
 11082  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11083  }
 11084  
 11085  // Status code returns the HTTP status code for the request's response error.
 11086  func (s *ApprovalRuleNameAlreadyExistsException) StatusCode() int {
 11087  	return s.RespMetadata.StatusCode
 11088  }
 11089  
 11090  // RequestID returns the service's response RequestID for request.
 11091  func (s *ApprovalRuleNameAlreadyExistsException) RequestID() string {
 11092  	return s.RespMetadata.RequestID
 11093  }
 11094  
 11095  // An approval rule name is required, but was not specified.
 11096  type ApprovalRuleNameRequiredException struct {
 11097  	_            struct{}                  `type:"structure"`
 11098  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11099  
 11100  	Message_ *string `locationName:"message" type:"string"`
 11101  }
 11102  
 11103  // String returns the string representation.
 11104  //
 11105  // API parameter values that are decorated as "sensitive" in the API will not
 11106  // be included in the string output. The member name will be present, but the
 11107  // value will be replaced with "sensitive".
 11108  func (s ApprovalRuleNameRequiredException) String() string {
 11109  	return awsutil.Prettify(s)
 11110  }
 11111  
 11112  // GoString returns the string representation.
 11113  //
 11114  // API parameter values that are decorated as "sensitive" in the API will not
 11115  // be included in the string output. The member name will be present, but the
 11116  // value will be replaced with "sensitive".
 11117  func (s ApprovalRuleNameRequiredException) GoString() string {
 11118  	return s.String()
 11119  }
 11120  
 11121  func newErrorApprovalRuleNameRequiredException(v protocol.ResponseMetadata) error {
 11122  	return &ApprovalRuleNameRequiredException{
 11123  		RespMetadata: v,
 11124  	}
 11125  }
 11126  
 11127  // Code returns the exception type name.
 11128  func (s *ApprovalRuleNameRequiredException) Code() string {
 11129  	return "ApprovalRuleNameRequiredException"
 11130  }
 11131  
 11132  // Message returns the exception's message.
 11133  func (s *ApprovalRuleNameRequiredException) Message() string {
 11134  	if s.Message_ != nil {
 11135  		return *s.Message_
 11136  	}
 11137  	return ""
 11138  }
 11139  
 11140  // OrigErr always returns nil, satisfies awserr.Error interface.
 11141  func (s *ApprovalRuleNameRequiredException) OrigErr() error {
 11142  	return nil
 11143  }
 11144  
 11145  func (s *ApprovalRuleNameRequiredException) Error() string {
 11146  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11147  }
 11148  
 11149  // Status code returns the HTTP status code for the request's response error.
 11150  func (s *ApprovalRuleNameRequiredException) StatusCode() int {
 11151  	return s.RespMetadata.StatusCode
 11152  }
 11153  
 11154  // RequestID returns the service's response RequestID for request.
 11155  func (s *ApprovalRuleNameRequiredException) RequestID() string {
 11156  	return s.RespMetadata.RequestID
 11157  }
 11158  
 11159  // Returns information about an override event for approval rules for a pull
 11160  // request.
 11161  type ApprovalRuleOverriddenEventMetadata struct {
 11162  	_ struct{} `type:"structure"`
 11163  
 11164  	// The status of the override event.
 11165  	OverrideStatus *string `locationName:"overrideStatus" type:"string" enum:"OverrideStatus"`
 11166  
 11167  	// The revision ID of the pull request when the override event occurred.
 11168  	RevisionId *string `locationName:"revisionId" type:"string"`
 11169  }
 11170  
 11171  // String returns the string representation.
 11172  //
 11173  // API parameter values that are decorated as "sensitive" in the API will not
 11174  // be included in the string output. The member name will be present, but the
 11175  // value will be replaced with "sensitive".
 11176  func (s ApprovalRuleOverriddenEventMetadata) String() string {
 11177  	return awsutil.Prettify(s)
 11178  }
 11179  
 11180  // GoString returns the string representation.
 11181  //
 11182  // API parameter values that are decorated as "sensitive" in the API will not
 11183  // be included in the string output. The member name will be present, but the
 11184  // value will be replaced with "sensitive".
 11185  func (s ApprovalRuleOverriddenEventMetadata) GoString() string {
 11186  	return s.String()
 11187  }
 11188  
 11189  // SetOverrideStatus sets the OverrideStatus field's value.
 11190  func (s *ApprovalRuleOverriddenEventMetadata) SetOverrideStatus(v string) *ApprovalRuleOverriddenEventMetadata {
 11191  	s.OverrideStatus = &v
 11192  	return s
 11193  }
 11194  
 11195  // SetRevisionId sets the RevisionId field's value.
 11196  func (s *ApprovalRuleOverriddenEventMetadata) SetRevisionId(v string) *ApprovalRuleOverriddenEventMetadata {
 11197  	s.RevisionId = &v
 11198  	return s
 11199  }
 11200  
 11201  // Returns information about an approval rule template.
 11202  type ApprovalRuleTemplate struct {
 11203  	_ struct{} `type:"structure"`
 11204  
 11205  	// The content of the approval rule template.
 11206  	ApprovalRuleTemplateContent *string `locationName:"approvalRuleTemplateContent" min:"1" type:"string"`
 11207  
 11208  	// The description of the approval rule template.
 11209  	ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string"`
 11210  
 11211  	// The system-generated ID of the approval rule template.
 11212  	ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string"`
 11213  
 11214  	// The name of the approval rule template.
 11215  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string"`
 11216  
 11217  	// The date the approval rule template was created, in timestamp format.
 11218  	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
 11219  
 11220  	// The date the approval rule template was most recently changed, in timestamp
 11221  	// format.
 11222  	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
 11223  
 11224  	// The Amazon Resource Name (ARN) of the user who made the most recent changes
 11225  	// to the approval rule template.
 11226  	LastModifiedUser *string `locationName:"lastModifiedUser" type:"string"`
 11227  
 11228  	// The SHA-256 hash signature for the content of the approval rule template.
 11229  	RuleContentSha256 *string `locationName:"ruleContentSha256" type:"string"`
 11230  }
 11231  
 11232  // String returns the string representation.
 11233  //
 11234  // API parameter values that are decorated as "sensitive" in the API will not
 11235  // be included in the string output. The member name will be present, but the
 11236  // value will be replaced with "sensitive".
 11237  func (s ApprovalRuleTemplate) String() string {
 11238  	return awsutil.Prettify(s)
 11239  }
 11240  
 11241  // GoString returns the string representation.
 11242  //
 11243  // API parameter values that are decorated as "sensitive" in the API will not
 11244  // be included in the string output. The member name will be present, but the
 11245  // value will be replaced with "sensitive".
 11246  func (s ApprovalRuleTemplate) GoString() string {
 11247  	return s.String()
 11248  }
 11249  
 11250  // SetApprovalRuleTemplateContent sets the ApprovalRuleTemplateContent field's value.
 11251  func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateContent(v string) *ApprovalRuleTemplate {
 11252  	s.ApprovalRuleTemplateContent = &v
 11253  	return s
 11254  }
 11255  
 11256  // SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value.
 11257  func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateDescription(v string) *ApprovalRuleTemplate {
 11258  	s.ApprovalRuleTemplateDescription = &v
 11259  	return s
 11260  }
 11261  
 11262  // SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value.
 11263  func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateId(v string) *ApprovalRuleTemplate {
 11264  	s.ApprovalRuleTemplateId = &v
 11265  	return s
 11266  }
 11267  
 11268  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 11269  func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *ApprovalRuleTemplate {
 11270  	s.ApprovalRuleTemplateName = &v
 11271  	return s
 11272  }
 11273  
 11274  // SetCreationDate sets the CreationDate field's value.
 11275  func (s *ApprovalRuleTemplate) SetCreationDate(v time.Time) *ApprovalRuleTemplate {
 11276  	s.CreationDate = &v
 11277  	return s
 11278  }
 11279  
 11280  // SetLastModifiedDate sets the LastModifiedDate field's value.
 11281  func (s *ApprovalRuleTemplate) SetLastModifiedDate(v time.Time) *ApprovalRuleTemplate {
 11282  	s.LastModifiedDate = &v
 11283  	return s
 11284  }
 11285  
 11286  // SetLastModifiedUser sets the LastModifiedUser field's value.
 11287  func (s *ApprovalRuleTemplate) SetLastModifiedUser(v string) *ApprovalRuleTemplate {
 11288  	s.LastModifiedUser = &v
 11289  	return s
 11290  }
 11291  
 11292  // SetRuleContentSha256 sets the RuleContentSha256 field's value.
 11293  func (s *ApprovalRuleTemplate) SetRuleContentSha256(v string) *ApprovalRuleTemplate {
 11294  	s.RuleContentSha256 = &v
 11295  	return s
 11296  }
 11297  
 11298  // The content for the approval rule template is empty. You must provide some
 11299  // content for an approval rule template. The content cannot be null.
 11300  type ApprovalRuleTemplateContentRequiredException struct {
 11301  	_            struct{}                  `type:"structure"`
 11302  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11303  
 11304  	Message_ *string `locationName:"message" type:"string"`
 11305  }
 11306  
 11307  // String returns the string representation.
 11308  //
 11309  // API parameter values that are decorated as "sensitive" in the API will not
 11310  // be included in the string output. The member name will be present, but the
 11311  // value will be replaced with "sensitive".
 11312  func (s ApprovalRuleTemplateContentRequiredException) String() string {
 11313  	return awsutil.Prettify(s)
 11314  }
 11315  
 11316  // GoString returns the string representation.
 11317  //
 11318  // API parameter values that are decorated as "sensitive" in the API will not
 11319  // be included in the string output. The member name will be present, but the
 11320  // value will be replaced with "sensitive".
 11321  func (s ApprovalRuleTemplateContentRequiredException) GoString() string {
 11322  	return s.String()
 11323  }
 11324  
 11325  func newErrorApprovalRuleTemplateContentRequiredException(v protocol.ResponseMetadata) error {
 11326  	return &ApprovalRuleTemplateContentRequiredException{
 11327  		RespMetadata: v,
 11328  	}
 11329  }
 11330  
 11331  // Code returns the exception type name.
 11332  func (s *ApprovalRuleTemplateContentRequiredException) Code() string {
 11333  	return "ApprovalRuleTemplateContentRequiredException"
 11334  }
 11335  
 11336  // Message returns the exception's message.
 11337  func (s *ApprovalRuleTemplateContentRequiredException) Message() string {
 11338  	if s.Message_ != nil {
 11339  		return *s.Message_
 11340  	}
 11341  	return ""
 11342  }
 11343  
 11344  // OrigErr always returns nil, satisfies awserr.Error interface.
 11345  func (s *ApprovalRuleTemplateContentRequiredException) OrigErr() error {
 11346  	return nil
 11347  }
 11348  
 11349  func (s *ApprovalRuleTemplateContentRequiredException) Error() string {
 11350  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11351  }
 11352  
 11353  // Status code returns the HTTP status code for the request's response error.
 11354  func (s *ApprovalRuleTemplateContentRequiredException) StatusCode() int {
 11355  	return s.RespMetadata.StatusCode
 11356  }
 11357  
 11358  // RequestID returns the service's response RequestID for request.
 11359  func (s *ApprovalRuleTemplateContentRequiredException) RequestID() string {
 11360  	return s.RespMetadata.RequestID
 11361  }
 11362  
 11363  // The specified approval rule template does not exist. Verify that the name
 11364  // is correct and that you are signed in to the AWS Region where the template
 11365  // was created, and then try again.
 11366  type ApprovalRuleTemplateDoesNotExistException struct {
 11367  	_            struct{}                  `type:"structure"`
 11368  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11369  
 11370  	Message_ *string `locationName:"message" type:"string"`
 11371  }
 11372  
 11373  // String returns the string representation.
 11374  //
 11375  // API parameter values that are decorated as "sensitive" in the API will not
 11376  // be included in the string output. The member name will be present, but the
 11377  // value will be replaced with "sensitive".
 11378  func (s ApprovalRuleTemplateDoesNotExistException) String() string {
 11379  	return awsutil.Prettify(s)
 11380  }
 11381  
 11382  // GoString returns the string representation.
 11383  //
 11384  // API parameter values that are decorated as "sensitive" in the API will not
 11385  // be included in the string output. The member name will be present, but the
 11386  // value will be replaced with "sensitive".
 11387  func (s ApprovalRuleTemplateDoesNotExistException) GoString() string {
 11388  	return s.String()
 11389  }
 11390  
 11391  func newErrorApprovalRuleTemplateDoesNotExistException(v protocol.ResponseMetadata) error {
 11392  	return &ApprovalRuleTemplateDoesNotExistException{
 11393  		RespMetadata: v,
 11394  	}
 11395  }
 11396  
 11397  // Code returns the exception type name.
 11398  func (s *ApprovalRuleTemplateDoesNotExistException) Code() string {
 11399  	return "ApprovalRuleTemplateDoesNotExistException"
 11400  }
 11401  
 11402  // Message returns the exception's message.
 11403  func (s *ApprovalRuleTemplateDoesNotExistException) Message() string {
 11404  	if s.Message_ != nil {
 11405  		return *s.Message_
 11406  	}
 11407  	return ""
 11408  }
 11409  
 11410  // OrigErr always returns nil, satisfies awserr.Error interface.
 11411  func (s *ApprovalRuleTemplateDoesNotExistException) OrigErr() error {
 11412  	return nil
 11413  }
 11414  
 11415  func (s *ApprovalRuleTemplateDoesNotExistException) Error() string {
 11416  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11417  }
 11418  
 11419  // Status code returns the HTTP status code for the request's response error.
 11420  func (s *ApprovalRuleTemplateDoesNotExistException) StatusCode() int {
 11421  	return s.RespMetadata.StatusCode
 11422  }
 11423  
 11424  // RequestID returns the service's response RequestID for request.
 11425  func (s *ApprovalRuleTemplateDoesNotExistException) RequestID() string {
 11426  	return s.RespMetadata.RequestID
 11427  }
 11428  
 11429  // The approval rule template is associated with one or more repositories. You
 11430  // cannot delete a template that is associated with a repository. Remove all
 11431  // associations, and then try again.
 11432  type ApprovalRuleTemplateInUseException struct {
 11433  	_            struct{}                  `type:"structure"`
 11434  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11435  
 11436  	Message_ *string `locationName:"message" type:"string"`
 11437  }
 11438  
 11439  // String returns the string representation.
 11440  //
 11441  // API parameter values that are decorated as "sensitive" in the API will not
 11442  // be included in the string output. The member name will be present, but the
 11443  // value will be replaced with "sensitive".
 11444  func (s ApprovalRuleTemplateInUseException) String() string {
 11445  	return awsutil.Prettify(s)
 11446  }
 11447  
 11448  // GoString returns the string representation.
 11449  //
 11450  // API parameter values that are decorated as "sensitive" in the API will not
 11451  // be included in the string output. The member name will be present, but the
 11452  // value will be replaced with "sensitive".
 11453  func (s ApprovalRuleTemplateInUseException) GoString() string {
 11454  	return s.String()
 11455  }
 11456  
 11457  func newErrorApprovalRuleTemplateInUseException(v protocol.ResponseMetadata) error {
 11458  	return &ApprovalRuleTemplateInUseException{
 11459  		RespMetadata: v,
 11460  	}
 11461  }
 11462  
 11463  // Code returns the exception type name.
 11464  func (s *ApprovalRuleTemplateInUseException) Code() string {
 11465  	return "ApprovalRuleTemplateInUseException"
 11466  }
 11467  
 11468  // Message returns the exception's message.
 11469  func (s *ApprovalRuleTemplateInUseException) Message() string {
 11470  	if s.Message_ != nil {
 11471  		return *s.Message_
 11472  	}
 11473  	return ""
 11474  }
 11475  
 11476  // OrigErr always returns nil, satisfies awserr.Error interface.
 11477  func (s *ApprovalRuleTemplateInUseException) OrigErr() error {
 11478  	return nil
 11479  }
 11480  
 11481  func (s *ApprovalRuleTemplateInUseException) Error() string {
 11482  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11483  }
 11484  
 11485  // Status code returns the HTTP status code for the request's response error.
 11486  func (s *ApprovalRuleTemplateInUseException) StatusCode() int {
 11487  	return s.RespMetadata.StatusCode
 11488  }
 11489  
 11490  // RequestID returns the service's response RequestID for request.
 11491  func (s *ApprovalRuleTemplateInUseException) RequestID() string {
 11492  	return s.RespMetadata.RequestID
 11493  }
 11494  
 11495  // You cannot create an approval rule template with that name because a template
 11496  // with that name already exists in this AWS Region for your AWS account. Approval
 11497  // rule template names must be unique.
 11498  type ApprovalRuleTemplateNameAlreadyExistsException struct {
 11499  	_            struct{}                  `type:"structure"`
 11500  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11501  
 11502  	Message_ *string `locationName:"message" type:"string"`
 11503  }
 11504  
 11505  // String returns the string representation.
 11506  //
 11507  // API parameter values that are decorated as "sensitive" in the API will not
 11508  // be included in the string output. The member name will be present, but the
 11509  // value will be replaced with "sensitive".
 11510  func (s ApprovalRuleTemplateNameAlreadyExistsException) String() string {
 11511  	return awsutil.Prettify(s)
 11512  }
 11513  
 11514  // GoString returns the string representation.
 11515  //
 11516  // API parameter values that are decorated as "sensitive" in the API will not
 11517  // be included in the string output. The member name will be present, but the
 11518  // value will be replaced with "sensitive".
 11519  func (s ApprovalRuleTemplateNameAlreadyExistsException) GoString() string {
 11520  	return s.String()
 11521  }
 11522  
 11523  func newErrorApprovalRuleTemplateNameAlreadyExistsException(v protocol.ResponseMetadata) error {
 11524  	return &ApprovalRuleTemplateNameAlreadyExistsException{
 11525  		RespMetadata: v,
 11526  	}
 11527  }
 11528  
 11529  // Code returns the exception type name.
 11530  func (s *ApprovalRuleTemplateNameAlreadyExistsException) Code() string {
 11531  	return "ApprovalRuleTemplateNameAlreadyExistsException"
 11532  }
 11533  
 11534  // Message returns the exception's message.
 11535  func (s *ApprovalRuleTemplateNameAlreadyExistsException) Message() string {
 11536  	if s.Message_ != nil {
 11537  		return *s.Message_
 11538  	}
 11539  	return ""
 11540  }
 11541  
 11542  // OrigErr always returns nil, satisfies awserr.Error interface.
 11543  func (s *ApprovalRuleTemplateNameAlreadyExistsException) OrigErr() error {
 11544  	return nil
 11545  }
 11546  
 11547  func (s *ApprovalRuleTemplateNameAlreadyExistsException) Error() string {
 11548  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11549  }
 11550  
 11551  // Status code returns the HTTP status code for the request's response error.
 11552  func (s *ApprovalRuleTemplateNameAlreadyExistsException) StatusCode() int {
 11553  	return s.RespMetadata.StatusCode
 11554  }
 11555  
 11556  // RequestID returns the service's response RequestID for request.
 11557  func (s *ApprovalRuleTemplateNameAlreadyExistsException) RequestID() string {
 11558  	return s.RespMetadata.RequestID
 11559  }
 11560  
 11561  // An approval rule template name is required, but was not specified.
 11562  type ApprovalRuleTemplateNameRequiredException struct {
 11563  	_            struct{}                  `type:"structure"`
 11564  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11565  
 11566  	Message_ *string `locationName:"message" type:"string"`
 11567  }
 11568  
 11569  // String returns the string representation.
 11570  //
 11571  // API parameter values that are decorated as "sensitive" in the API will not
 11572  // be included in the string output. The member name will be present, but the
 11573  // value will be replaced with "sensitive".
 11574  func (s ApprovalRuleTemplateNameRequiredException) String() string {
 11575  	return awsutil.Prettify(s)
 11576  }
 11577  
 11578  // GoString returns the string representation.
 11579  //
 11580  // API parameter values that are decorated as "sensitive" in the API will not
 11581  // be included in the string output. The member name will be present, but the
 11582  // value will be replaced with "sensitive".
 11583  func (s ApprovalRuleTemplateNameRequiredException) GoString() string {
 11584  	return s.String()
 11585  }
 11586  
 11587  func newErrorApprovalRuleTemplateNameRequiredException(v protocol.ResponseMetadata) error {
 11588  	return &ApprovalRuleTemplateNameRequiredException{
 11589  		RespMetadata: v,
 11590  	}
 11591  }
 11592  
 11593  // Code returns the exception type name.
 11594  func (s *ApprovalRuleTemplateNameRequiredException) Code() string {
 11595  	return "ApprovalRuleTemplateNameRequiredException"
 11596  }
 11597  
 11598  // Message returns the exception's message.
 11599  func (s *ApprovalRuleTemplateNameRequiredException) Message() string {
 11600  	if s.Message_ != nil {
 11601  		return *s.Message_
 11602  	}
 11603  	return ""
 11604  }
 11605  
 11606  // OrigErr always returns nil, satisfies awserr.Error interface.
 11607  func (s *ApprovalRuleTemplateNameRequiredException) OrigErr() error {
 11608  	return nil
 11609  }
 11610  
 11611  func (s *ApprovalRuleTemplateNameRequiredException) Error() string {
 11612  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11613  }
 11614  
 11615  // Status code returns the HTTP status code for the request's response error.
 11616  func (s *ApprovalRuleTemplateNameRequiredException) StatusCode() int {
 11617  	return s.RespMetadata.StatusCode
 11618  }
 11619  
 11620  // RequestID returns the service's response RequestID for request.
 11621  func (s *ApprovalRuleTemplateNameRequiredException) RequestID() string {
 11622  	return s.RespMetadata.RequestID
 11623  }
 11624  
 11625  // Returns information about a change in the approval state for a pull request.
 11626  type ApprovalStateChangedEventMetadata struct {
 11627  	_ struct{} `type:"structure"`
 11628  
 11629  	// The approval status for the pull request.
 11630  	ApprovalStatus *string `locationName:"approvalStatus" type:"string" enum:"ApprovalState"`
 11631  
 11632  	// The revision ID of the pull request when the approval state changed.
 11633  	RevisionId *string `locationName:"revisionId" type:"string"`
 11634  }
 11635  
 11636  // String returns the string representation.
 11637  //
 11638  // API parameter values that are decorated as "sensitive" in the API will not
 11639  // be included in the string output. The member name will be present, but the
 11640  // value will be replaced with "sensitive".
 11641  func (s ApprovalStateChangedEventMetadata) String() string {
 11642  	return awsutil.Prettify(s)
 11643  }
 11644  
 11645  // GoString returns the string representation.
 11646  //
 11647  // API parameter values that are decorated as "sensitive" in the API will not
 11648  // be included in the string output. The member name will be present, but the
 11649  // value will be replaced with "sensitive".
 11650  func (s ApprovalStateChangedEventMetadata) GoString() string {
 11651  	return s.String()
 11652  }
 11653  
 11654  // SetApprovalStatus sets the ApprovalStatus field's value.
 11655  func (s *ApprovalStateChangedEventMetadata) SetApprovalStatus(v string) *ApprovalStateChangedEventMetadata {
 11656  	s.ApprovalStatus = &v
 11657  	return s
 11658  }
 11659  
 11660  // SetRevisionId sets the RevisionId field's value.
 11661  func (s *ApprovalStateChangedEventMetadata) SetRevisionId(v string) *ApprovalStateChangedEventMetadata {
 11662  	s.RevisionId = &v
 11663  	return s
 11664  }
 11665  
 11666  // An approval state is required, but was not specified.
 11667  type ApprovalStateRequiredException struct {
 11668  	_            struct{}                  `type:"structure"`
 11669  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11670  
 11671  	Message_ *string `locationName:"message" type:"string"`
 11672  }
 11673  
 11674  // String returns the string representation.
 11675  //
 11676  // API parameter values that are decorated as "sensitive" in the API will not
 11677  // be included in the string output. The member name will be present, but the
 11678  // value will be replaced with "sensitive".
 11679  func (s ApprovalStateRequiredException) String() string {
 11680  	return awsutil.Prettify(s)
 11681  }
 11682  
 11683  // GoString returns the string representation.
 11684  //
 11685  // API parameter values that are decorated as "sensitive" in the API will not
 11686  // be included in the string output. The member name will be present, but the
 11687  // value will be replaced with "sensitive".
 11688  func (s ApprovalStateRequiredException) GoString() string {
 11689  	return s.String()
 11690  }
 11691  
 11692  func newErrorApprovalStateRequiredException(v protocol.ResponseMetadata) error {
 11693  	return &ApprovalStateRequiredException{
 11694  		RespMetadata: v,
 11695  	}
 11696  }
 11697  
 11698  // Code returns the exception type name.
 11699  func (s *ApprovalStateRequiredException) Code() string {
 11700  	return "ApprovalStateRequiredException"
 11701  }
 11702  
 11703  // Message returns the exception's message.
 11704  func (s *ApprovalStateRequiredException) Message() string {
 11705  	if s.Message_ != nil {
 11706  		return *s.Message_
 11707  	}
 11708  	return ""
 11709  }
 11710  
 11711  // OrigErr always returns nil, satisfies awserr.Error interface.
 11712  func (s *ApprovalStateRequiredException) OrigErr() error {
 11713  	return nil
 11714  }
 11715  
 11716  func (s *ApprovalStateRequiredException) Error() string {
 11717  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11718  }
 11719  
 11720  // Status code returns the HTTP status code for the request's response error.
 11721  func (s *ApprovalStateRequiredException) StatusCode() int {
 11722  	return s.RespMetadata.StatusCode
 11723  }
 11724  
 11725  // RequestID returns the service's response RequestID for request.
 11726  func (s *ApprovalStateRequiredException) RequestID() string {
 11727  	return s.RespMetadata.RequestID
 11728  }
 11729  
 11730  type AssociateApprovalRuleTemplateWithRepositoryInput struct {
 11731  	_ struct{} `type:"structure"`
 11732  
 11733  	// The name for the approval rule template.
 11734  	//
 11735  	// ApprovalRuleTemplateName is a required field
 11736  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 11737  
 11738  	// The name of the repository that you want to associate with the template.
 11739  	//
 11740  	// RepositoryName is a required field
 11741  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 11742  }
 11743  
 11744  // String returns the string representation.
 11745  //
 11746  // API parameter values that are decorated as "sensitive" in the API will not
 11747  // be included in the string output. The member name will be present, but the
 11748  // value will be replaced with "sensitive".
 11749  func (s AssociateApprovalRuleTemplateWithRepositoryInput) String() string {
 11750  	return awsutil.Prettify(s)
 11751  }
 11752  
 11753  // GoString returns the string representation.
 11754  //
 11755  // API parameter values that are decorated as "sensitive" in the API will not
 11756  // be included in the string output. The member name will be present, but the
 11757  // value will be replaced with "sensitive".
 11758  func (s AssociateApprovalRuleTemplateWithRepositoryInput) GoString() string {
 11759  	return s.String()
 11760  }
 11761  
 11762  // Validate inspects the fields of the type to determine if they are valid.
 11763  func (s *AssociateApprovalRuleTemplateWithRepositoryInput) Validate() error {
 11764  	invalidParams := request.ErrInvalidParams{Context: "AssociateApprovalRuleTemplateWithRepositoryInput"}
 11765  	if s.ApprovalRuleTemplateName == nil {
 11766  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 11767  	}
 11768  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 11769  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 11770  	}
 11771  	if s.RepositoryName == nil {
 11772  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 11773  	}
 11774  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 11775  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 11776  	}
 11777  
 11778  	if invalidParams.Len() > 0 {
 11779  		return invalidParams
 11780  	}
 11781  	return nil
 11782  }
 11783  
 11784  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 11785  func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetApprovalRuleTemplateName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput {
 11786  	s.ApprovalRuleTemplateName = &v
 11787  	return s
 11788  }
 11789  
 11790  // SetRepositoryName sets the RepositoryName field's value.
 11791  func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetRepositoryName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput {
 11792  	s.RepositoryName = &v
 11793  	return s
 11794  }
 11795  
 11796  type AssociateApprovalRuleTemplateWithRepositoryOutput struct {
 11797  	_ struct{} `type:"structure"`
 11798  }
 11799  
 11800  // String returns the string representation.
 11801  //
 11802  // API parameter values that are decorated as "sensitive" in the API will not
 11803  // be included in the string output. The member name will be present, but the
 11804  // value will be replaced with "sensitive".
 11805  func (s AssociateApprovalRuleTemplateWithRepositoryOutput) String() string {
 11806  	return awsutil.Prettify(s)
 11807  }
 11808  
 11809  // GoString returns the string representation.
 11810  //
 11811  // API parameter values that are decorated as "sensitive" in the API will not
 11812  // be included in the string output. The member name will be present, but the
 11813  // value will be replaced with "sensitive".
 11814  func (s AssociateApprovalRuleTemplateWithRepositoryOutput) GoString() string {
 11815  	return s.String()
 11816  }
 11817  
 11818  // The specified Amazon Resource Name (ARN) does not exist in the AWS account.
 11819  type AuthorDoesNotExistException struct {
 11820  	_            struct{}                  `type:"structure"`
 11821  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11822  
 11823  	Message_ *string `locationName:"message" type:"string"`
 11824  }
 11825  
 11826  // String returns the string representation.
 11827  //
 11828  // API parameter values that are decorated as "sensitive" in the API will not
 11829  // be included in the string output. The member name will be present, but the
 11830  // value will be replaced with "sensitive".
 11831  func (s AuthorDoesNotExistException) String() string {
 11832  	return awsutil.Prettify(s)
 11833  }
 11834  
 11835  // GoString returns the string representation.
 11836  //
 11837  // API parameter values that are decorated as "sensitive" in the API will not
 11838  // be included in the string output. The member name will be present, but the
 11839  // value will be replaced with "sensitive".
 11840  func (s AuthorDoesNotExistException) GoString() string {
 11841  	return s.String()
 11842  }
 11843  
 11844  func newErrorAuthorDoesNotExistException(v protocol.ResponseMetadata) error {
 11845  	return &AuthorDoesNotExistException{
 11846  		RespMetadata: v,
 11847  	}
 11848  }
 11849  
 11850  // Code returns the exception type name.
 11851  func (s *AuthorDoesNotExistException) Code() string {
 11852  	return "AuthorDoesNotExistException"
 11853  }
 11854  
 11855  // Message returns the exception's message.
 11856  func (s *AuthorDoesNotExistException) Message() string {
 11857  	if s.Message_ != nil {
 11858  		return *s.Message_
 11859  	}
 11860  	return ""
 11861  }
 11862  
 11863  // OrigErr always returns nil, satisfies awserr.Error interface.
 11864  func (s *AuthorDoesNotExistException) OrigErr() error {
 11865  	return nil
 11866  }
 11867  
 11868  func (s *AuthorDoesNotExistException) Error() string {
 11869  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11870  }
 11871  
 11872  // Status code returns the HTTP status code for the request's response error.
 11873  func (s *AuthorDoesNotExistException) StatusCode() int {
 11874  	return s.RespMetadata.StatusCode
 11875  }
 11876  
 11877  // RequestID returns the service's response RequestID for request.
 11878  func (s *AuthorDoesNotExistException) RequestID() string {
 11879  	return s.RespMetadata.RequestID
 11880  }
 11881  
 11882  // Returns information about errors in a BatchAssociateApprovalRuleTemplateWithRepositories
 11883  // operation.
 11884  type BatchAssociateApprovalRuleTemplateWithRepositoriesError struct {
 11885  	_ struct{} `type:"structure"`
 11886  
 11887  	// An error code that specifies whether the repository name was not valid or
 11888  	// not found.
 11889  	ErrorCode *string `locationName:"errorCode" type:"string"`
 11890  
 11891  	// An error message that provides details about why the repository name was
 11892  	// not found or not valid.
 11893  	ErrorMessage *string `locationName:"errorMessage" type:"string"`
 11894  
 11895  	// The name of the repository where the association was not made.
 11896  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 11897  }
 11898  
 11899  // String returns the string representation.
 11900  //
 11901  // API parameter values that are decorated as "sensitive" in the API will not
 11902  // be included in the string output. The member name will be present, but the
 11903  // value will be replaced with "sensitive".
 11904  func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) String() string {
 11905  	return awsutil.Prettify(s)
 11906  }
 11907  
 11908  // GoString returns the string representation.
 11909  //
 11910  // API parameter values that are decorated as "sensitive" in the API will not
 11911  // be included in the string output. The member name will be present, but the
 11912  // value will be replaced with "sensitive".
 11913  func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) GoString() string {
 11914  	return s.String()
 11915  }
 11916  
 11917  // SetErrorCode sets the ErrorCode field's value.
 11918  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorCode(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError {
 11919  	s.ErrorCode = &v
 11920  	return s
 11921  }
 11922  
 11923  // SetErrorMessage sets the ErrorMessage field's value.
 11924  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorMessage(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError {
 11925  	s.ErrorMessage = &v
 11926  	return s
 11927  }
 11928  
 11929  // SetRepositoryName sets the RepositoryName field's value.
 11930  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetRepositoryName(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError {
 11931  	s.RepositoryName = &v
 11932  	return s
 11933  }
 11934  
 11935  type BatchAssociateApprovalRuleTemplateWithRepositoriesInput struct {
 11936  	_ struct{} `type:"structure"`
 11937  
 11938  	// The name of the template you want to associate with one or more repositories.
 11939  	//
 11940  	// ApprovalRuleTemplateName is a required field
 11941  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 11942  
 11943  	// The names of the repositories you want to associate with the template.
 11944  	//
 11945  	// The length constraint limit is for each string in the array. The array itself
 11946  	// can be empty.
 11947  	//
 11948  	// RepositoryNames is a required field
 11949  	RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
 11950  }
 11951  
 11952  // String returns the string representation.
 11953  //
 11954  // API parameter values that are decorated as "sensitive" in the API will not
 11955  // be included in the string output. The member name will be present, but the
 11956  // value will be replaced with "sensitive".
 11957  func (s BatchAssociateApprovalRuleTemplateWithRepositoriesInput) String() string {
 11958  	return awsutil.Prettify(s)
 11959  }
 11960  
 11961  // GoString returns the string representation.
 11962  //
 11963  // API parameter values that are decorated as "sensitive" in the API will not
 11964  // be included in the string output. The member name will be present, but the
 11965  // value will be replaced with "sensitive".
 11966  func (s BatchAssociateApprovalRuleTemplateWithRepositoriesInput) GoString() string {
 11967  	return s.String()
 11968  }
 11969  
 11970  // Validate inspects the fields of the type to determine if they are valid.
 11971  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) Validate() error {
 11972  	invalidParams := request.ErrInvalidParams{Context: "BatchAssociateApprovalRuleTemplateWithRepositoriesInput"}
 11973  	if s.ApprovalRuleTemplateName == nil {
 11974  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 11975  	}
 11976  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 11977  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 11978  	}
 11979  	if s.RepositoryNames == nil {
 11980  		invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
 11981  	}
 11982  
 11983  	if invalidParams.Len() > 0 {
 11984  		return invalidParams
 11985  	}
 11986  	return nil
 11987  }
 11988  
 11989  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 11990  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) SetApprovalRuleTemplateName(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesInput {
 11991  	s.ApprovalRuleTemplateName = &v
 11992  	return s
 11993  }
 11994  
 11995  // SetRepositoryNames sets the RepositoryNames field's value.
 11996  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) SetRepositoryNames(v []*string) *BatchAssociateApprovalRuleTemplateWithRepositoriesInput {
 11997  	s.RepositoryNames = v
 11998  	return s
 11999  }
 12000  
 12001  type BatchAssociateApprovalRuleTemplateWithRepositoriesOutput struct {
 12002  	_ struct{} `type:"structure"`
 12003  
 12004  	// A list of names of the repositories that have been associated with the template.
 12005  	//
 12006  	// AssociatedRepositoryNames is a required field
 12007  	AssociatedRepositoryNames []*string `locationName:"associatedRepositoryNames" type:"list" required:"true"`
 12008  
 12009  	// A list of any errors that might have occurred while attempting to create
 12010  	// the association between the template and the repositories.
 12011  	//
 12012  	// Errors is a required field
 12013  	Errors []*BatchAssociateApprovalRuleTemplateWithRepositoriesError `locationName:"errors" type:"list" required:"true"`
 12014  }
 12015  
 12016  // String returns the string representation.
 12017  //
 12018  // API parameter values that are decorated as "sensitive" in the API will not
 12019  // be included in the string output. The member name will be present, but the
 12020  // value will be replaced with "sensitive".
 12021  func (s BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) String() string {
 12022  	return awsutil.Prettify(s)
 12023  }
 12024  
 12025  // GoString returns the string representation.
 12026  //
 12027  // API parameter values that are decorated as "sensitive" in the API will not
 12028  // be included in the string output. The member name will be present, but the
 12029  // value will be replaced with "sensitive".
 12030  func (s BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) GoString() string {
 12031  	return s.String()
 12032  }
 12033  
 12034  // SetAssociatedRepositoryNames sets the AssociatedRepositoryNames field's value.
 12035  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) SetAssociatedRepositoryNames(v []*string) *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput {
 12036  	s.AssociatedRepositoryNames = v
 12037  	return s
 12038  }
 12039  
 12040  // SetErrors sets the Errors field's value.
 12041  func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) SetErrors(v []*BatchAssociateApprovalRuleTemplateWithRepositoriesError) *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput {
 12042  	s.Errors = v
 12043  	return s
 12044  }
 12045  
 12046  // Returns information about errors in a BatchDescribeMergeConflicts operation.
 12047  type BatchDescribeMergeConflictsError struct {
 12048  	_ struct{} `type:"structure"`
 12049  
 12050  	// The name of the exception.
 12051  	//
 12052  	// ExceptionName is a required field
 12053  	ExceptionName *string `locationName:"exceptionName" type:"string" required:"true"`
 12054  
 12055  	// The path to the file.
 12056  	//
 12057  	// FilePath is a required field
 12058  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 12059  
 12060  	// The message provided by the exception.
 12061  	//
 12062  	// Message is a required field
 12063  	Message *string `locationName:"message" type:"string" required:"true"`
 12064  }
 12065  
 12066  // String returns the string representation.
 12067  //
 12068  // API parameter values that are decorated as "sensitive" in the API will not
 12069  // be included in the string output. The member name will be present, but the
 12070  // value will be replaced with "sensitive".
 12071  func (s BatchDescribeMergeConflictsError) String() string {
 12072  	return awsutil.Prettify(s)
 12073  }
 12074  
 12075  // GoString returns the string representation.
 12076  //
 12077  // API parameter values that are decorated as "sensitive" in the API will not
 12078  // be included in the string output. The member name will be present, but the
 12079  // value will be replaced with "sensitive".
 12080  func (s BatchDescribeMergeConflictsError) GoString() string {
 12081  	return s.String()
 12082  }
 12083  
 12084  // SetExceptionName sets the ExceptionName field's value.
 12085  func (s *BatchDescribeMergeConflictsError) SetExceptionName(v string) *BatchDescribeMergeConflictsError {
 12086  	s.ExceptionName = &v
 12087  	return s
 12088  }
 12089  
 12090  // SetFilePath sets the FilePath field's value.
 12091  func (s *BatchDescribeMergeConflictsError) SetFilePath(v string) *BatchDescribeMergeConflictsError {
 12092  	s.FilePath = &v
 12093  	return s
 12094  }
 12095  
 12096  // SetMessage sets the Message field's value.
 12097  func (s *BatchDescribeMergeConflictsError) SetMessage(v string) *BatchDescribeMergeConflictsError {
 12098  	s.Message = &v
 12099  	return s
 12100  }
 12101  
 12102  type BatchDescribeMergeConflictsInput struct {
 12103  	_ struct{} `type:"structure"`
 12104  
 12105  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 12106  	// is used, which returns a not-mergeable result if the same file has differences
 12107  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 12108  	// mergeable if the same file in both branches has differences on the same line.
 12109  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 12110  
 12111  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 12112  	// automatically merging two versions of a file. The default is NONE, which
 12113  	// requires any conflicts to be resolved manually before the merge operation
 12114  	// is successful.
 12115  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 12116  
 12117  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 12118  	// a commit (for example, a branch name or a full commit ID).
 12119  	//
 12120  	// DestinationCommitSpecifier is a required field
 12121  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 12122  
 12123  	// The path of the target files used to describe the conflicts. If not specified,
 12124  	// the default is all conflict files.
 12125  	FilePaths []*string `locationName:"filePaths" type:"list"`
 12126  
 12127  	// The maximum number of files to include in the output.
 12128  	MaxConflictFiles *int64 `locationName:"maxConflictFiles" type:"integer"`
 12129  
 12130  	// The maximum number of merge hunks to include in the output.
 12131  	MaxMergeHunks *int64 `locationName:"maxMergeHunks" type:"integer"`
 12132  
 12133  	// The merge option or strategy you want to use to merge the code.
 12134  	//
 12135  	// MergeOption is a required field
 12136  	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
 12137  
 12138  	// An enumeration token that, when provided in a request, returns the next batch
 12139  	// of the results.
 12140  	NextToken *string `locationName:"nextToken" type:"string"`
 12141  
 12142  	// The name of the repository that contains the merge conflicts you want to
 12143  	// review.
 12144  	//
 12145  	// RepositoryName is a required field
 12146  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 12147  
 12148  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 12149  	// a commit (for example, a branch name or a full commit ID).
 12150  	//
 12151  	// SourceCommitSpecifier is a required field
 12152  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 12153  }
 12154  
 12155  // String returns the string representation.
 12156  //
 12157  // API parameter values that are decorated as "sensitive" in the API will not
 12158  // be included in the string output. The member name will be present, but the
 12159  // value will be replaced with "sensitive".
 12160  func (s BatchDescribeMergeConflictsInput) String() string {
 12161  	return awsutil.Prettify(s)
 12162  }
 12163  
 12164  // GoString returns the string representation.
 12165  //
 12166  // API parameter values that are decorated as "sensitive" in the API will not
 12167  // be included in the string output. The member name will be present, but the
 12168  // value will be replaced with "sensitive".
 12169  func (s BatchDescribeMergeConflictsInput) GoString() string {
 12170  	return s.String()
 12171  }
 12172  
 12173  // Validate inspects the fields of the type to determine if they are valid.
 12174  func (s *BatchDescribeMergeConflictsInput) Validate() error {
 12175  	invalidParams := request.ErrInvalidParams{Context: "BatchDescribeMergeConflictsInput"}
 12176  	if s.DestinationCommitSpecifier == nil {
 12177  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 12178  	}
 12179  	if s.MergeOption == nil {
 12180  		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
 12181  	}
 12182  	if s.RepositoryName == nil {
 12183  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 12184  	}
 12185  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 12186  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 12187  	}
 12188  	if s.SourceCommitSpecifier == nil {
 12189  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 12190  	}
 12191  
 12192  	if invalidParams.Len() > 0 {
 12193  		return invalidParams
 12194  	}
 12195  	return nil
 12196  }
 12197  
 12198  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 12199  func (s *BatchDescribeMergeConflictsInput) SetConflictDetailLevel(v string) *BatchDescribeMergeConflictsInput {
 12200  	s.ConflictDetailLevel = &v
 12201  	return s
 12202  }
 12203  
 12204  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 12205  func (s *BatchDescribeMergeConflictsInput) SetConflictResolutionStrategy(v string) *BatchDescribeMergeConflictsInput {
 12206  	s.ConflictResolutionStrategy = &v
 12207  	return s
 12208  }
 12209  
 12210  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 12211  func (s *BatchDescribeMergeConflictsInput) SetDestinationCommitSpecifier(v string) *BatchDescribeMergeConflictsInput {
 12212  	s.DestinationCommitSpecifier = &v
 12213  	return s
 12214  }
 12215  
 12216  // SetFilePaths sets the FilePaths field's value.
 12217  func (s *BatchDescribeMergeConflictsInput) SetFilePaths(v []*string) *BatchDescribeMergeConflictsInput {
 12218  	s.FilePaths = v
 12219  	return s
 12220  }
 12221  
 12222  // SetMaxConflictFiles sets the MaxConflictFiles field's value.
 12223  func (s *BatchDescribeMergeConflictsInput) SetMaxConflictFiles(v int64) *BatchDescribeMergeConflictsInput {
 12224  	s.MaxConflictFiles = &v
 12225  	return s
 12226  }
 12227  
 12228  // SetMaxMergeHunks sets the MaxMergeHunks field's value.
 12229  func (s *BatchDescribeMergeConflictsInput) SetMaxMergeHunks(v int64) *BatchDescribeMergeConflictsInput {
 12230  	s.MaxMergeHunks = &v
 12231  	return s
 12232  }
 12233  
 12234  // SetMergeOption sets the MergeOption field's value.
 12235  func (s *BatchDescribeMergeConflictsInput) SetMergeOption(v string) *BatchDescribeMergeConflictsInput {
 12236  	s.MergeOption = &v
 12237  	return s
 12238  }
 12239  
 12240  // SetNextToken sets the NextToken field's value.
 12241  func (s *BatchDescribeMergeConflictsInput) SetNextToken(v string) *BatchDescribeMergeConflictsInput {
 12242  	s.NextToken = &v
 12243  	return s
 12244  }
 12245  
 12246  // SetRepositoryName sets the RepositoryName field's value.
 12247  func (s *BatchDescribeMergeConflictsInput) SetRepositoryName(v string) *BatchDescribeMergeConflictsInput {
 12248  	s.RepositoryName = &v
 12249  	return s
 12250  }
 12251  
 12252  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 12253  func (s *BatchDescribeMergeConflictsInput) SetSourceCommitSpecifier(v string) *BatchDescribeMergeConflictsInput {
 12254  	s.SourceCommitSpecifier = &v
 12255  	return s
 12256  }
 12257  
 12258  type BatchDescribeMergeConflictsOutput struct {
 12259  	_ struct{} `type:"structure"`
 12260  
 12261  	// The commit ID of the merge base.
 12262  	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
 12263  
 12264  	// A list of conflicts for each file, including the conflict metadata and the
 12265  	// hunks of the differences between the files.
 12266  	//
 12267  	// Conflicts is a required field
 12268  	Conflicts []*Conflict `locationName:"conflicts" type:"list" required:"true"`
 12269  
 12270  	// The commit ID of the destination commit specifier that was used in the merge
 12271  	// evaluation.
 12272  	//
 12273  	// DestinationCommitId is a required field
 12274  	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
 12275  
 12276  	// A list of any errors returned while describing the merge conflicts for each
 12277  	// file.
 12278  	Errors []*BatchDescribeMergeConflictsError `locationName:"errors" type:"list"`
 12279  
 12280  	// An enumeration token that can be used in a request to return the next batch
 12281  	// of the results.
 12282  	NextToken *string `locationName:"nextToken" type:"string"`
 12283  
 12284  	// The commit ID of the source commit specifier that was used in the merge evaluation.
 12285  	//
 12286  	// SourceCommitId is a required field
 12287  	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
 12288  }
 12289  
 12290  // String returns the string representation.
 12291  //
 12292  // API parameter values that are decorated as "sensitive" in the API will not
 12293  // be included in the string output. The member name will be present, but the
 12294  // value will be replaced with "sensitive".
 12295  func (s BatchDescribeMergeConflictsOutput) String() string {
 12296  	return awsutil.Prettify(s)
 12297  }
 12298  
 12299  // GoString returns the string representation.
 12300  //
 12301  // API parameter values that are decorated as "sensitive" in the API will not
 12302  // be included in the string output. The member name will be present, but the
 12303  // value will be replaced with "sensitive".
 12304  func (s BatchDescribeMergeConflictsOutput) GoString() string {
 12305  	return s.String()
 12306  }
 12307  
 12308  // SetBaseCommitId sets the BaseCommitId field's value.
 12309  func (s *BatchDescribeMergeConflictsOutput) SetBaseCommitId(v string) *BatchDescribeMergeConflictsOutput {
 12310  	s.BaseCommitId = &v
 12311  	return s
 12312  }
 12313  
 12314  // SetConflicts sets the Conflicts field's value.
 12315  func (s *BatchDescribeMergeConflictsOutput) SetConflicts(v []*Conflict) *BatchDescribeMergeConflictsOutput {
 12316  	s.Conflicts = v
 12317  	return s
 12318  }
 12319  
 12320  // SetDestinationCommitId sets the DestinationCommitId field's value.
 12321  func (s *BatchDescribeMergeConflictsOutput) SetDestinationCommitId(v string) *BatchDescribeMergeConflictsOutput {
 12322  	s.DestinationCommitId = &v
 12323  	return s
 12324  }
 12325  
 12326  // SetErrors sets the Errors field's value.
 12327  func (s *BatchDescribeMergeConflictsOutput) SetErrors(v []*BatchDescribeMergeConflictsError) *BatchDescribeMergeConflictsOutput {
 12328  	s.Errors = v
 12329  	return s
 12330  }
 12331  
 12332  // SetNextToken sets the NextToken field's value.
 12333  func (s *BatchDescribeMergeConflictsOutput) SetNextToken(v string) *BatchDescribeMergeConflictsOutput {
 12334  	s.NextToken = &v
 12335  	return s
 12336  }
 12337  
 12338  // SetSourceCommitId sets the SourceCommitId field's value.
 12339  func (s *BatchDescribeMergeConflictsOutput) SetSourceCommitId(v string) *BatchDescribeMergeConflictsOutput {
 12340  	s.SourceCommitId = &v
 12341  	return s
 12342  }
 12343  
 12344  // Returns information about errors in a BatchDisassociateApprovalRuleTemplateFromRepositories
 12345  // operation.
 12346  type BatchDisassociateApprovalRuleTemplateFromRepositoriesError struct {
 12347  	_ struct{} `type:"structure"`
 12348  
 12349  	// An error code that specifies whether the repository name was not valid or
 12350  	// not found.
 12351  	ErrorCode *string `locationName:"errorCode" type:"string"`
 12352  
 12353  	// An error message that provides details about why the repository name was
 12354  	// either not found or not valid.
 12355  	ErrorMessage *string `locationName:"errorMessage" type:"string"`
 12356  
 12357  	// The name of the repository where the association with the template was not
 12358  	// able to be removed.
 12359  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 12360  }
 12361  
 12362  // String returns the string representation.
 12363  //
 12364  // API parameter values that are decorated as "sensitive" in the API will not
 12365  // be included in the string output. The member name will be present, but the
 12366  // value will be replaced with "sensitive".
 12367  func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesError) String() string {
 12368  	return awsutil.Prettify(s)
 12369  }
 12370  
 12371  // GoString returns the string representation.
 12372  //
 12373  // API parameter values that are decorated as "sensitive" in the API will not
 12374  // be included in the string output. The member name will be present, but the
 12375  // value will be replaced with "sensitive".
 12376  func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesError) GoString() string {
 12377  	return s.String()
 12378  }
 12379  
 12380  // SetErrorCode sets the ErrorCode field's value.
 12381  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesError) SetErrorCode(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesError {
 12382  	s.ErrorCode = &v
 12383  	return s
 12384  }
 12385  
 12386  // SetErrorMessage sets the ErrorMessage field's value.
 12387  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesError) SetErrorMessage(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesError {
 12388  	s.ErrorMessage = &v
 12389  	return s
 12390  }
 12391  
 12392  // SetRepositoryName sets the RepositoryName field's value.
 12393  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesError) SetRepositoryName(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesError {
 12394  	s.RepositoryName = &v
 12395  	return s
 12396  }
 12397  
 12398  type BatchDisassociateApprovalRuleTemplateFromRepositoriesInput struct {
 12399  	_ struct{} `type:"structure"`
 12400  
 12401  	// The name of the template that you want to disassociate from one or more repositories.
 12402  	//
 12403  	// ApprovalRuleTemplateName is a required field
 12404  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 12405  
 12406  	// The repository names that you want to disassociate from the approval rule
 12407  	// template.
 12408  	//
 12409  	// The length constraint limit is for each string in the array. The array itself
 12410  	// can be empty.
 12411  	//
 12412  	// RepositoryNames is a required field
 12413  	RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
 12414  }
 12415  
 12416  // String returns the string representation.
 12417  //
 12418  // API parameter values that are decorated as "sensitive" in the API will not
 12419  // be included in the string output. The member name will be present, but the
 12420  // value will be replaced with "sensitive".
 12421  func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) String() string {
 12422  	return awsutil.Prettify(s)
 12423  }
 12424  
 12425  // GoString returns the string representation.
 12426  //
 12427  // API parameter values that are decorated as "sensitive" in the API will not
 12428  // be included in the string output. The member name will be present, but the
 12429  // value will be replaced with "sensitive".
 12430  func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) GoString() string {
 12431  	return s.String()
 12432  }
 12433  
 12434  // Validate inspects the fields of the type to determine if they are valid.
 12435  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) Validate() error {
 12436  	invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateApprovalRuleTemplateFromRepositoriesInput"}
 12437  	if s.ApprovalRuleTemplateName == nil {
 12438  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 12439  	}
 12440  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 12441  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 12442  	}
 12443  	if s.RepositoryNames == nil {
 12444  		invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
 12445  	}
 12446  
 12447  	if invalidParams.Len() > 0 {
 12448  		return invalidParams
 12449  	}
 12450  	return nil
 12451  }
 12452  
 12453  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 12454  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) SetApprovalRuleTemplateName(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput {
 12455  	s.ApprovalRuleTemplateName = &v
 12456  	return s
 12457  }
 12458  
 12459  // SetRepositoryNames sets the RepositoryNames field's value.
 12460  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) SetRepositoryNames(v []*string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput {
 12461  	s.RepositoryNames = v
 12462  	return s
 12463  }
 12464  
 12465  type BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput struct {
 12466  	_ struct{} `type:"structure"`
 12467  
 12468  	// A list of repository names that have had their association with the template
 12469  	// removed.
 12470  	//
 12471  	// DisassociatedRepositoryNames is a required field
 12472  	DisassociatedRepositoryNames []*string `locationName:"disassociatedRepositoryNames" type:"list" required:"true"`
 12473  
 12474  	// A list of any errors that might have occurred while attempting to remove
 12475  	// the association between the template and the repositories.
 12476  	//
 12477  	// Errors is a required field
 12478  	Errors []*BatchDisassociateApprovalRuleTemplateFromRepositoriesError `locationName:"errors" type:"list" required:"true"`
 12479  }
 12480  
 12481  // String returns the string representation.
 12482  //
 12483  // API parameter values that are decorated as "sensitive" in the API will not
 12484  // be included in the string output. The member name will be present, but the
 12485  // value will be replaced with "sensitive".
 12486  func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) String() string {
 12487  	return awsutil.Prettify(s)
 12488  }
 12489  
 12490  // GoString returns the string representation.
 12491  //
 12492  // API parameter values that are decorated as "sensitive" in the API will not
 12493  // be included in the string output. The member name will be present, but the
 12494  // value will be replaced with "sensitive".
 12495  func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) GoString() string {
 12496  	return s.String()
 12497  }
 12498  
 12499  // SetDisassociatedRepositoryNames sets the DisassociatedRepositoryNames field's value.
 12500  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) SetDisassociatedRepositoryNames(v []*string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput {
 12501  	s.DisassociatedRepositoryNames = v
 12502  	return s
 12503  }
 12504  
 12505  // SetErrors sets the Errors field's value.
 12506  func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) SetErrors(v []*BatchDisassociateApprovalRuleTemplateFromRepositoriesError) *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput {
 12507  	s.Errors = v
 12508  	return s
 12509  }
 12510  
 12511  // Returns information about errors in a BatchGetCommits operation.
 12512  type BatchGetCommitsError struct {
 12513  	_ struct{} `type:"structure"`
 12514  
 12515  	// A commit ID that either could not be found or was not in a valid format.
 12516  	CommitId *string `locationName:"commitId" type:"string"`
 12517  
 12518  	// An error code that specifies whether the commit ID was not valid or not found.
 12519  	ErrorCode *string `locationName:"errorCode" type:"string"`
 12520  
 12521  	// An error message that provides detail about why the commit ID either was
 12522  	// not found or was not valid.
 12523  	ErrorMessage *string `locationName:"errorMessage" type:"string"`
 12524  }
 12525  
 12526  // String returns the string representation.
 12527  //
 12528  // API parameter values that are decorated as "sensitive" in the API will not
 12529  // be included in the string output. The member name will be present, but the
 12530  // value will be replaced with "sensitive".
 12531  func (s BatchGetCommitsError) String() string {
 12532  	return awsutil.Prettify(s)
 12533  }
 12534  
 12535  // GoString returns the string representation.
 12536  //
 12537  // API parameter values that are decorated as "sensitive" in the API will not
 12538  // be included in the string output. The member name will be present, but the
 12539  // value will be replaced with "sensitive".
 12540  func (s BatchGetCommitsError) GoString() string {
 12541  	return s.String()
 12542  }
 12543  
 12544  // SetCommitId sets the CommitId field's value.
 12545  func (s *BatchGetCommitsError) SetCommitId(v string) *BatchGetCommitsError {
 12546  	s.CommitId = &v
 12547  	return s
 12548  }
 12549  
 12550  // SetErrorCode sets the ErrorCode field's value.
 12551  func (s *BatchGetCommitsError) SetErrorCode(v string) *BatchGetCommitsError {
 12552  	s.ErrorCode = &v
 12553  	return s
 12554  }
 12555  
 12556  // SetErrorMessage sets the ErrorMessage field's value.
 12557  func (s *BatchGetCommitsError) SetErrorMessage(v string) *BatchGetCommitsError {
 12558  	s.ErrorMessage = &v
 12559  	return s
 12560  }
 12561  
 12562  type BatchGetCommitsInput struct {
 12563  	_ struct{} `type:"structure"`
 12564  
 12565  	// The full commit IDs of the commits to get information about.
 12566  	//
 12567  	// You must supply the full SHA IDs of each commit. You cannot use shortened
 12568  	// SHA IDs.
 12569  	//
 12570  	// CommitIds is a required field
 12571  	CommitIds []*string `locationName:"commitIds" type:"list" required:"true"`
 12572  
 12573  	// The name of the repository that contains the commits.
 12574  	//
 12575  	// RepositoryName is a required field
 12576  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 12577  }
 12578  
 12579  // String returns the string representation.
 12580  //
 12581  // API parameter values that are decorated as "sensitive" in the API will not
 12582  // be included in the string output. The member name will be present, but the
 12583  // value will be replaced with "sensitive".
 12584  func (s BatchGetCommitsInput) String() string {
 12585  	return awsutil.Prettify(s)
 12586  }
 12587  
 12588  // GoString returns the string representation.
 12589  //
 12590  // API parameter values that are decorated as "sensitive" in the API will not
 12591  // be included in the string output. The member name will be present, but the
 12592  // value will be replaced with "sensitive".
 12593  func (s BatchGetCommitsInput) GoString() string {
 12594  	return s.String()
 12595  }
 12596  
 12597  // Validate inspects the fields of the type to determine if they are valid.
 12598  func (s *BatchGetCommitsInput) Validate() error {
 12599  	invalidParams := request.ErrInvalidParams{Context: "BatchGetCommitsInput"}
 12600  	if s.CommitIds == nil {
 12601  		invalidParams.Add(request.NewErrParamRequired("CommitIds"))
 12602  	}
 12603  	if s.RepositoryName == nil {
 12604  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 12605  	}
 12606  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 12607  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 12608  	}
 12609  
 12610  	if invalidParams.Len() > 0 {
 12611  		return invalidParams
 12612  	}
 12613  	return nil
 12614  }
 12615  
 12616  // SetCommitIds sets the CommitIds field's value.
 12617  func (s *BatchGetCommitsInput) SetCommitIds(v []*string) *BatchGetCommitsInput {
 12618  	s.CommitIds = v
 12619  	return s
 12620  }
 12621  
 12622  // SetRepositoryName sets the RepositoryName field's value.
 12623  func (s *BatchGetCommitsInput) SetRepositoryName(v string) *BatchGetCommitsInput {
 12624  	s.RepositoryName = &v
 12625  	return s
 12626  }
 12627  
 12628  type BatchGetCommitsOutput struct {
 12629  	_ struct{} `type:"structure"`
 12630  
 12631  	// An array of commit data type objects, each of which contains information
 12632  	// about a specified commit.
 12633  	Commits []*Commit `locationName:"commits" type:"list"`
 12634  
 12635  	// Returns any commit IDs for which information could not be found. For example,
 12636  	// if one of the commit IDs was a shortened SHA ID or that commit was not found
 12637  	// in the specified repository, the ID returns an error object with more information.
 12638  	Errors []*BatchGetCommitsError `locationName:"errors" type:"list"`
 12639  }
 12640  
 12641  // String returns the string representation.
 12642  //
 12643  // API parameter values that are decorated as "sensitive" in the API will not
 12644  // be included in the string output. The member name will be present, but the
 12645  // value will be replaced with "sensitive".
 12646  func (s BatchGetCommitsOutput) String() string {
 12647  	return awsutil.Prettify(s)
 12648  }
 12649  
 12650  // GoString returns the string representation.
 12651  //
 12652  // API parameter values that are decorated as "sensitive" in the API will not
 12653  // be included in the string output. The member name will be present, but the
 12654  // value will be replaced with "sensitive".
 12655  func (s BatchGetCommitsOutput) GoString() string {
 12656  	return s.String()
 12657  }
 12658  
 12659  // SetCommits sets the Commits field's value.
 12660  func (s *BatchGetCommitsOutput) SetCommits(v []*Commit) *BatchGetCommitsOutput {
 12661  	s.Commits = v
 12662  	return s
 12663  }
 12664  
 12665  // SetErrors sets the Errors field's value.
 12666  func (s *BatchGetCommitsOutput) SetErrors(v []*BatchGetCommitsError) *BatchGetCommitsOutput {
 12667  	s.Errors = v
 12668  	return s
 12669  }
 12670  
 12671  // Represents the input of a batch get repositories operation.
 12672  type BatchGetRepositoriesInput struct {
 12673  	_ struct{} `type:"structure"`
 12674  
 12675  	// The names of the repositories to get information about.
 12676  	//
 12677  	// The length constraint limit is for each string in the array. The array itself
 12678  	// can be empty.
 12679  	//
 12680  	// RepositoryNames is a required field
 12681  	RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
 12682  }
 12683  
 12684  // String returns the string representation.
 12685  //
 12686  // API parameter values that are decorated as "sensitive" in the API will not
 12687  // be included in the string output. The member name will be present, but the
 12688  // value will be replaced with "sensitive".
 12689  func (s BatchGetRepositoriesInput) String() string {
 12690  	return awsutil.Prettify(s)
 12691  }
 12692  
 12693  // GoString returns the string representation.
 12694  //
 12695  // API parameter values that are decorated as "sensitive" in the API will not
 12696  // be included in the string output. The member name will be present, but the
 12697  // value will be replaced with "sensitive".
 12698  func (s BatchGetRepositoriesInput) GoString() string {
 12699  	return s.String()
 12700  }
 12701  
 12702  // Validate inspects the fields of the type to determine if they are valid.
 12703  func (s *BatchGetRepositoriesInput) Validate() error {
 12704  	invalidParams := request.ErrInvalidParams{Context: "BatchGetRepositoriesInput"}
 12705  	if s.RepositoryNames == nil {
 12706  		invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
 12707  	}
 12708  
 12709  	if invalidParams.Len() > 0 {
 12710  		return invalidParams
 12711  	}
 12712  	return nil
 12713  }
 12714  
 12715  // SetRepositoryNames sets the RepositoryNames field's value.
 12716  func (s *BatchGetRepositoriesInput) SetRepositoryNames(v []*string) *BatchGetRepositoriesInput {
 12717  	s.RepositoryNames = v
 12718  	return s
 12719  }
 12720  
 12721  // Represents the output of a batch get repositories operation.
 12722  type BatchGetRepositoriesOutput struct {
 12723  	_ struct{} `type:"structure"`
 12724  
 12725  	// A list of repositories returned by the batch get repositories operation.
 12726  	Repositories []*RepositoryMetadata `locationName:"repositories" type:"list"`
 12727  
 12728  	// Returns a list of repository names for which information could not be found.
 12729  	RepositoriesNotFound []*string `locationName:"repositoriesNotFound" type:"list"`
 12730  }
 12731  
 12732  // String returns the string representation.
 12733  //
 12734  // API parameter values that are decorated as "sensitive" in the API will not
 12735  // be included in the string output. The member name will be present, but the
 12736  // value will be replaced with "sensitive".
 12737  func (s BatchGetRepositoriesOutput) String() string {
 12738  	return awsutil.Prettify(s)
 12739  }
 12740  
 12741  // GoString returns the string representation.
 12742  //
 12743  // API parameter values that are decorated as "sensitive" in the API will not
 12744  // be included in the string output. The member name will be present, but the
 12745  // value will be replaced with "sensitive".
 12746  func (s BatchGetRepositoriesOutput) GoString() string {
 12747  	return s.String()
 12748  }
 12749  
 12750  // SetRepositories sets the Repositories field's value.
 12751  func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput {
 12752  	s.Repositories = v
 12753  	return s
 12754  }
 12755  
 12756  // SetRepositoriesNotFound sets the RepositoriesNotFound field's value.
 12757  func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput {
 12758  	s.RepositoriesNotFound = v
 12759  	return s
 12760  }
 12761  
 12762  // The before commit ID and the after commit ID are the same, which is not valid.
 12763  // The before commit ID and the after commit ID must be different commit IDs.
 12764  type BeforeCommitIdAndAfterCommitIdAreSameException struct {
 12765  	_            struct{}                  `type:"structure"`
 12766  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 12767  
 12768  	Message_ *string `locationName:"message" type:"string"`
 12769  }
 12770  
 12771  // String returns the string representation.
 12772  //
 12773  // API parameter values that are decorated as "sensitive" in the API will not
 12774  // be included in the string output. The member name will be present, but the
 12775  // value will be replaced with "sensitive".
 12776  func (s BeforeCommitIdAndAfterCommitIdAreSameException) String() string {
 12777  	return awsutil.Prettify(s)
 12778  }
 12779  
 12780  // GoString returns the string representation.
 12781  //
 12782  // API parameter values that are decorated as "sensitive" in the API will not
 12783  // be included in the string output. The member name will be present, but the
 12784  // value will be replaced with "sensitive".
 12785  func (s BeforeCommitIdAndAfterCommitIdAreSameException) GoString() string {
 12786  	return s.String()
 12787  }
 12788  
 12789  func newErrorBeforeCommitIdAndAfterCommitIdAreSameException(v protocol.ResponseMetadata) error {
 12790  	return &BeforeCommitIdAndAfterCommitIdAreSameException{
 12791  		RespMetadata: v,
 12792  	}
 12793  }
 12794  
 12795  // Code returns the exception type name.
 12796  func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Code() string {
 12797  	return "BeforeCommitIdAndAfterCommitIdAreSameException"
 12798  }
 12799  
 12800  // Message returns the exception's message.
 12801  func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Message() string {
 12802  	if s.Message_ != nil {
 12803  		return *s.Message_
 12804  	}
 12805  	return ""
 12806  }
 12807  
 12808  // OrigErr always returns nil, satisfies awserr.Error interface.
 12809  func (s *BeforeCommitIdAndAfterCommitIdAreSameException) OrigErr() error {
 12810  	return nil
 12811  }
 12812  
 12813  func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Error() string {
 12814  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 12815  }
 12816  
 12817  // Status code returns the HTTP status code for the request's response error.
 12818  func (s *BeforeCommitIdAndAfterCommitIdAreSameException) StatusCode() int {
 12819  	return s.RespMetadata.StatusCode
 12820  }
 12821  
 12822  // RequestID returns the service's response RequestID for request.
 12823  func (s *BeforeCommitIdAndAfterCommitIdAreSameException) RequestID() string {
 12824  	return s.RespMetadata.RequestID
 12825  }
 12826  
 12827  // The specified blob does not exist.
 12828  type BlobIdDoesNotExistException struct {
 12829  	_            struct{}                  `type:"structure"`
 12830  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 12831  
 12832  	Message_ *string `locationName:"message" type:"string"`
 12833  }
 12834  
 12835  // String returns the string representation.
 12836  //
 12837  // API parameter values that are decorated as "sensitive" in the API will not
 12838  // be included in the string output. The member name will be present, but the
 12839  // value will be replaced with "sensitive".
 12840  func (s BlobIdDoesNotExistException) String() string {
 12841  	return awsutil.Prettify(s)
 12842  }
 12843  
 12844  // GoString returns the string representation.
 12845  //
 12846  // API parameter values that are decorated as "sensitive" in the API will not
 12847  // be included in the string output. The member name will be present, but the
 12848  // value will be replaced with "sensitive".
 12849  func (s BlobIdDoesNotExistException) GoString() string {
 12850  	return s.String()
 12851  }
 12852  
 12853  func newErrorBlobIdDoesNotExistException(v protocol.ResponseMetadata) error {
 12854  	return &BlobIdDoesNotExistException{
 12855  		RespMetadata: v,
 12856  	}
 12857  }
 12858  
 12859  // Code returns the exception type name.
 12860  func (s *BlobIdDoesNotExistException) Code() string {
 12861  	return "BlobIdDoesNotExistException"
 12862  }
 12863  
 12864  // Message returns the exception's message.
 12865  func (s *BlobIdDoesNotExistException) Message() string {
 12866  	if s.Message_ != nil {
 12867  		return *s.Message_
 12868  	}
 12869  	return ""
 12870  }
 12871  
 12872  // OrigErr always returns nil, satisfies awserr.Error interface.
 12873  func (s *BlobIdDoesNotExistException) OrigErr() error {
 12874  	return nil
 12875  }
 12876  
 12877  func (s *BlobIdDoesNotExistException) Error() string {
 12878  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 12879  }
 12880  
 12881  // Status code returns the HTTP status code for the request's response error.
 12882  func (s *BlobIdDoesNotExistException) StatusCode() int {
 12883  	return s.RespMetadata.StatusCode
 12884  }
 12885  
 12886  // RequestID returns the service's response RequestID for request.
 12887  func (s *BlobIdDoesNotExistException) RequestID() string {
 12888  	return s.RespMetadata.RequestID
 12889  }
 12890  
 12891  // A blob ID is required, but was not specified.
 12892  type BlobIdRequiredException struct {
 12893  	_            struct{}                  `type:"structure"`
 12894  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 12895  
 12896  	Message_ *string `locationName:"message" type:"string"`
 12897  }
 12898  
 12899  // String returns the string representation.
 12900  //
 12901  // API parameter values that are decorated as "sensitive" in the API will not
 12902  // be included in the string output. The member name will be present, but the
 12903  // value will be replaced with "sensitive".
 12904  func (s BlobIdRequiredException) String() string {
 12905  	return awsutil.Prettify(s)
 12906  }
 12907  
 12908  // GoString returns the string representation.
 12909  //
 12910  // API parameter values that are decorated as "sensitive" in the API will not
 12911  // be included in the string output. The member name will be present, but the
 12912  // value will be replaced with "sensitive".
 12913  func (s BlobIdRequiredException) GoString() string {
 12914  	return s.String()
 12915  }
 12916  
 12917  func newErrorBlobIdRequiredException(v protocol.ResponseMetadata) error {
 12918  	return &BlobIdRequiredException{
 12919  		RespMetadata: v,
 12920  	}
 12921  }
 12922  
 12923  // Code returns the exception type name.
 12924  func (s *BlobIdRequiredException) Code() string {
 12925  	return "BlobIdRequiredException"
 12926  }
 12927  
 12928  // Message returns the exception's message.
 12929  func (s *BlobIdRequiredException) Message() string {
 12930  	if s.Message_ != nil {
 12931  		return *s.Message_
 12932  	}
 12933  	return ""
 12934  }
 12935  
 12936  // OrigErr always returns nil, satisfies awserr.Error interface.
 12937  func (s *BlobIdRequiredException) OrigErr() error {
 12938  	return nil
 12939  }
 12940  
 12941  func (s *BlobIdRequiredException) Error() string {
 12942  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 12943  }
 12944  
 12945  // Status code returns the HTTP status code for the request's response error.
 12946  func (s *BlobIdRequiredException) StatusCode() int {
 12947  	return s.RespMetadata.StatusCode
 12948  }
 12949  
 12950  // RequestID returns the service's response RequestID for request.
 12951  func (s *BlobIdRequiredException) RequestID() string {
 12952  	return s.RespMetadata.RequestID
 12953  }
 12954  
 12955  // Returns information about a specific Git blob object.
 12956  type BlobMetadata struct {
 12957  	_ struct{} `type:"structure"`
 12958  
 12959  	// The full ID of the blob.
 12960  	BlobId *string `locationName:"blobId" type:"string"`
 12961  
 12962  	// The file mode permissions of the blob. File mode permission codes include:
 12963  	//
 12964  	//    * 100644 indicates read/write
 12965  	//
 12966  	//    * 100755 indicates read/write/execute
 12967  	//
 12968  	//    * 160000 indicates a submodule
 12969  	//
 12970  	//    * 120000 indicates a symlink
 12971  	Mode *string `locationName:"mode" type:"string"`
 12972  
 12973  	// The path to the blob and associated file name, if any.
 12974  	Path *string `locationName:"path" type:"string"`
 12975  }
 12976  
 12977  // String returns the string representation.
 12978  //
 12979  // API parameter values that are decorated as "sensitive" in the API will not
 12980  // be included in the string output. The member name will be present, but the
 12981  // value will be replaced with "sensitive".
 12982  func (s BlobMetadata) String() string {
 12983  	return awsutil.Prettify(s)
 12984  }
 12985  
 12986  // GoString returns the string representation.
 12987  //
 12988  // API parameter values that are decorated as "sensitive" in the API will not
 12989  // be included in the string output. The member name will be present, but the
 12990  // value will be replaced with "sensitive".
 12991  func (s BlobMetadata) GoString() string {
 12992  	return s.String()
 12993  }
 12994  
 12995  // SetBlobId sets the BlobId field's value.
 12996  func (s *BlobMetadata) SetBlobId(v string) *BlobMetadata {
 12997  	s.BlobId = &v
 12998  	return s
 12999  }
 13000  
 13001  // SetMode sets the Mode field's value.
 13002  func (s *BlobMetadata) SetMode(v string) *BlobMetadata {
 13003  	s.Mode = &v
 13004  	return s
 13005  }
 13006  
 13007  // SetPath sets the Path field's value.
 13008  func (s *BlobMetadata) SetPath(v string) *BlobMetadata {
 13009  	s.Path = &v
 13010  	return s
 13011  }
 13012  
 13013  // The specified branch does not exist.
 13014  type BranchDoesNotExistException struct {
 13015  	_            struct{}                  `type:"structure"`
 13016  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13017  
 13018  	Message_ *string `locationName:"message" type:"string"`
 13019  }
 13020  
 13021  // String returns the string representation.
 13022  //
 13023  // API parameter values that are decorated as "sensitive" in the API will not
 13024  // be included in the string output. The member name will be present, but the
 13025  // value will be replaced with "sensitive".
 13026  func (s BranchDoesNotExistException) String() string {
 13027  	return awsutil.Prettify(s)
 13028  }
 13029  
 13030  // GoString returns the string representation.
 13031  //
 13032  // API parameter values that are decorated as "sensitive" in the API will not
 13033  // be included in the string output. The member name will be present, but the
 13034  // value will be replaced with "sensitive".
 13035  func (s BranchDoesNotExistException) GoString() string {
 13036  	return s.String()
 13037  }
 13038  
 13039  func newErrorBranchDoesNotExistException(v protocol.ResponseMetadata) error {
 13040  	return &BranchDoesNotExistException{
 13041  		RespMetadata: v,
 13042  	}
 13043  }
 13044  
 13045  // Code returns the exception type name.
 13046  func (s *BranchDoesNotExistException) Code() string {
 13047  	return "BranchDoesNotExistException"
 13048  }
 13049  
 13050  // Message returns the exception's message.
 13051  func (s *BranchDoesNotExistException) Message() string {
 13052  	if s.Message_ != nil {
 13053  		return *s.Message_
 13054  	}
 13055  	return ""
 13056  }
 13057  
 13058  // OrigErr always returns nil, satisfies awserr.Error interface.
 13059  func (s *BranchDoesNotExistException) OrigErr() error {
 13060  	return nil
 13061  }
 13062  
 13063  func (s *BranchDoesNotExistException) Error() string {
 13064  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13065  }
 13066  
 13067  // Status code returns the HTTP status code for the request's response error.
 13068  func (s *BranchDoesNotExistException) StatusCode() int {
 13069  	return s.RespMetadata.StatusCode
 13070  }
 13071  
 13072  // RequestID returns the service's response RequestID for request.
 13073  func (s *BranchDoesNotExistException) RequestID() string {
 13074  	return s.RespMetadata.RequestID
 13075  }
 13076  
 13077  // Returns information about a branch.
 13078  type BranchInfo struct {
 13079  	_ struct{} `type:"structure"`
 13080  
 13081  	// The name of the branch.
 13082  	BranchName *string `locationName:"branchName" min:"1" type:"string"`
 13083  
 13084  	// The ID of the last commit made to the branch.
 13085  	CommitId *string `locationName:"commitId" type:"string"`
 13086  }
 13087  
 13088  // String returns the string representation.
 13089  //
 13090  // API parameter values that are decorated as "sensitive" in the API will not
 13091  // be included in the string output. The member name will be present, but the
 13092  // value will be replaced with "sensitive".
 13093  func (s BranchInfo) String() string {
 13094  	return awsutil.Prettify(s)
 13095  }
 13096  
 13097  // GoString returns the string representation.
 13098  //
 13099  // API parameter values that are decorated as "sensitive" in the API will not
 13100  // be included in the string output. The member name will be present, but the
 13101  // value will be replaced with "sensitive".
 13102  func (s BranchInfo) GoString() string {
 13103  	return s.String()
 13104  }
 13105  
 13106  // SetBranchName sets the BranchName field's value.
 13107  func (s *BranchInfo) SetBranchName(v string) *BranchInfo {
 13108  	s.BranchName = &v
 13109  	return s
 13110  }
 13111  
 13112  // SetCommitId sets the CommitId field's value.
 13113  func (s *BranchInfo) SetCommitId(v string) *BranchInfo {
 13114  	s.CommitId = &v
 13115  	return s
 13116  }
 13117  
 13118  // Cannot create the branch with the specified name because the commit conflicts
 13119  // with an existing branch with the same name. Branch names must be unique.
 13120  type BranchNameExistsException struct {
 13121  	_            struct{}                  `type:"structure"`
 13122  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13123  
 13124  	Message_ *string `locationName:"message" type:"string"`
 13125  }
 13126  
 13127  // String returns the string representation.
 13128  //
 13129  // API parameter values that are decorated as "sensitive" in the API will not
 13130  // be included in the string output. The member name will be present, but the
 13131  // value will be replaced with "sensitive".
 13132  func (s BranchNameExistsException) String() string {
 13133  	return awsutil.Prettify(s)
 13134  }
 13135  
 13136  // GoString returns the string representation.
 13137  //
 13138  // API parameter values that are decorated as "sensitive" in the API will not
 13139  // be included in the string output. The member name will be present, but the
 13140  // value will be replaced with "sensitive".
 13141  func (s BranchNameExistsException) GoString() string {
 13142  	return s.String()
 13143  }
 13144  
 13145  func newErrorBranchNameExistsException(v protocol.ResponseMetadata) error {
 13146  	return &BranchNameExistsException{
 13147  		RespMetadata: v,
 13148  	}
 13149  }
 13150  
 13151  // Code returns the exception type name.
 13152  func (s *BranchNameExistsException) Code() string {
 13153  	return "BranchNameExistsException"
 13154  }
 13155  
 13156  // Message returns the exception's message.
 13157  func (s *BranchNameExistsException) Message() string {
 13158  	if s.Message_ != nil {
 13159  		return *s.Message_
 13160  	}
 13161  	return ""
 13162  }
 13163  
 13164  // OrigErr always returns nil, satisfies awserr.Error interface.
 13165  func (s *BranchNameExistsException) OrigErr() error {
 13166  	return nil
 13167  }
 13168  
 13169  func (s *BranchNameExistsException) Error() string {
 13170  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13171  }
 13172  
 13173  // Status code returns the HTTP status code for the request's response error.
 13174  func (s *BranchNameExistsException) StatusCode() int {
 13175  	return s.RespMetadata.StatusCode
 13176  }
 13177  
 13178  // RequestID returns the service's response RequestID for request.
 13179  func (s *BranchNameExistsException) RequestID() string {
 13180  	return s.RespMetadata.RequestID
 13181  }
 13182  
 13183  // The specified branch name is not valid because it is a tag name. Enter the
 13184  // name of a branch in the repository. For a list of valid branch names, use
 13185  // ListBranches.
 13186  type BranchNameIsTagNameException struct {
 13187  	_            struct{}                  `type:"structure"`
 13188  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13189  
 13190  	Message_ *string `locationName:"message" type:"string"`
 13191  }
 13192  
 13193  // String returns the string representation.
 13194  //
 13195  // API parameter values that are decorated as "sensitive" in the API will not
 13196  // be included in the string output. The member name will be present, but the
 13197  // value will be replaced with "sensitive".
 13198  func (s BranchNameIsTagNameException) String() string {
 13199  	return awsutil.Prettify(s)
 13200  }
 13201  
 13202  // GoString returns the string representation.
 13203  //
 13204  // API parameter values that are decorated as "sensitive" in the API will not
 13205  // be included in the string output. The member name will be present, but the
 13206  // value will be replaced with "sensitive".
 13207  func (s BranchNameIsTagNameException) GoString() string {
 13208  	return s.String()
 13209  }
 13210  
 13211  func newErrorBranchNameIsTagNameException(v protocol.ResponseMetadata) error {
 13212  	return &BranchNameIsTagNameException{
 13213  		RespMetadata: v,
 13214  	}
 13215  }
 13216  
 13217  // Code returns the exception type name.
 13218  func (s *BranchNameIsTagNameException) Code() string {
 13219  	return "BranchNameIsTagNameException"
 13220  }
 13221  
 13222  // Message returns the exception's message.
 13223  func (s *BranchNameIsTagNameException) Message() string {
 13224  	if s.Message_ != nil {
 13225  		return *s.Message_
 13226  	}
 13227  	return ""
 13228  }
 13229  
 13230  // OrigErr always returns nil, satisfies awserr.Error interface.
 13231  func (s *BranchNameIsTagNameException) OrigErr() error {
 13232  	return nil
 13233  }
 13234  
 13235  func (s *BranchNameIsTagNameException) Error() string {
 13236  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13237  }
 13238  
 13239  // Status code returns the HTTP status code for the request's response error.
 13240  func (s *BranchNameIsTagNameException) StatusCode() int {
 13241  	return s.RespMetadata.StatusCode
 13242  }
 13243  
 13244  // RequestID returns the service's response RequestID for request.
 13245  func (s *BranchNameIsTagNameException) RequestID() string {
 13246  	return s.RespMetadata.RequestID
 13247  }
 13248  
 13249  // A branch name is required, but was not specified.
 13250  type BranchNameRequiredException struct {
 13251  	_            struct{}                  `type:"structure"`
 13252  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13253  
 13254  	Message_ *string `locationName:"message" type:"string"`
 13255  }
 13256  
 13257  // String returns the string representation.
 13258  //
 13259  // API parameter values that are decorated as "sensitive" in the API will not
 13260  // be included in the string output. The member name will be present, but the
 13261  // value will be replaced with "sensitive".
 13262  func (s BranchNameRequiredException) String() string {
 13263  	return awsutil.Prettify(s)
 13264  }
 13265  
 13266  // GoString returns the string representation.
 13267  //
 13268  // API parameter values that are decorated as "sensitive" in the API will not
 13269  // be included in the string output. The member name will be present, but the
 13270  // value will be replaced with "sensitive".
 13271  func (s BranchNameRequiredException) GoString() string {
 13272  	return s.String()
 13273  }
 13274  
 13275  func newErrorBranchNameRequiredException(v protocol.ResponseMetadata) error {
 13276  	return &BranchNameRequiredException{
 13277  		RespMetadata: v,
 13278  	}
 13279  }
 13280  
 13281  // Code returns the exception type name.
 13282  func (s *BranchNameRequiredException) Code() string {
 13283  	return "BranchNameRequiredException"
 13284  }
 13285  
 13286  // Message returns the exception's message.
 13287  func (s *BranchNameRequiredException) Message() string {
 13288  	if s.Message_ != nil {
 13289  		return *s.Message_
 13290  	}
 13291  	return ""
 13292  }
 13293  
 13294  // OrigErr always returns nil, satisfies awserr.Error interface.
 13295  func (s *BranchNameRequiredException) OrigErr() error {
 13296  	return nil
 13297  }
 13298  
 13299  func (s *BranchNameRequiredException) Error() string {
 13300  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13301  }
 13302  
 13303  // Status code returns the HTTP status code for the request's response error.
 13304  func (s *BranchNameRequiredException) StatusCode() int {
 13305  	return s.RespMetadata.StatusCode
 13306  }
 13307  
 13308  // RequestID returns the service's response RequestID for request.
 13309  func (s *BranchNameRequiredException) RequestID() string {
 13310  	return s.RespMetadata.RequestID
 13311  }
 13312  
 13313  // The approval rule cannot be deleted from the pull request because it was
 13314  // created by an approval rule template and applied to the pull request automatically.
 13315  type CannotDeleteApprovalRuleFromTemplateException struct {
 13316  	_            struct{}                  `type:"structure"`
 13317  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13318  
 13319  	Message_ *string `locationName:"message" type:"string"`
 13320  }
 13321  
 13322  // String returns the string representation.
 13323  //
 13324  // API parameter values that are decorated as "sensitive" in the API will not
 13325  // be included in the string output. The member name will be present, but the
 13326  // value will be replaced with "sensitive".
 13327  func (s CannotDeleteApprovalRuleFromTemplateException) String() string {
 13328  	return awsutil.Prettify(s)
 13329  }
 13330  
 13331  // GoString returns the string representation.
 13332  //
 13333  // API parameter values that are decorated as "sensitive" in the API will not
 13334  // be included in the string output. The member name will be present, but the
 13335  // value will be replaced with "sensitive".
 13336  func (s CannotDeleteApprovalRuleFromTemplateException) GoString() string {
 13337  	return s.String()
 13338  }
 13339  
 13340  func newErrorCannotDeleteApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error {
 13341  	return &CannotDeleteApprovalRuleFromTemplateException{
 13342  		RespMetadata: v,
 13343  	}
 13344  }
 13345  
 13346  // Code returns the exception type name.
 13347  func (s *CannotDeleteApprovalRuleFromTemplateException) Code() string {
 13348  	return "CannotDeleteApprovalRuleFromTemplateException"
 13349  }
 13350  
 13351  // Message returns the exception's message.
 13352  func (s *CannotDeleteApprovalRuleFromTemplateException) Message() string {
 13353  	if s.Message_ != nil {
 13354  		return *s.Message_
 13355  	}
 13356  	return ""
 13357  }
 13358  
 13359  // OrigErr always returns nil, satisfies awserr.Error interface.
 13360  func (s *CannotDeleteApprovalRuleFromTemplateException) OrigErr() error {
 13361  	return nil
 13362  }
 13363  
 13364  func (s *CannotDeleteApprovalRuleFromTemplateException) Error() string {
 13365  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13366  }
 13367  
 13368  // Status code returns the HTTP status code for the request's response error.
 13369  func (s *CannotDeleteApprovalRuleFromTemplateException) StatusCode() int {
 13370  	return s.RespMetadata.StatusCode
 13371  }
 13372  
 13373  // RequestID returns the service's response RequestID for request.
 13374  func (s *CannotDeleteApprovalRuleFromTemplateException) RequestID() string {
 13375  	return s.RespMetadata.RequestID
 13376  }
 13377  
 13378  // The approval rule cannot be modified for the pull request because it was
 13379  // created by an approval rule template and applied to the pull request automatically.
 13380  type CannotModifyApprovalRuleFromTemplateException struct {
 13381  	_            struct{}                  `type:"structure"`
 13382  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13383  
 13384  	Message_ *string `locationName:"message" type:"string"`
 13385  }
 13386  
 13387  // String returns the string representation.
 13388  //
 13389  // API parameter values that are decorated as "sensitive" in the API will not
 13390  // be included in the string output. The member name will be present, but the
 13391  // value will be replaced with "sensitive".
 13392  func (s CannotModifyApprovalRuleFromTemplateException) String() string {
 13393  	return awsutil.Prettify(s)
 13394  }
 13395  
 13396  // GoString returns the string representation.
 13397  //
 13398  // API parameter values that are decorated as "sensitive" in the API will not
 13399  // be included in the string output. The member name will be present, but the
 13400  // value will be replaced with "sensitive".
 13401  func (s CannotModifyApprovalRuleFromTemplateException) GoString() string {
 13402  	return s.String()
 13403  }
 13404  
 13405  func newErrorCannotModifyApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error {
 13406  	return &CannotModifyApprovalRuleFromTemplateException{
 13407  		RespMetadata: v,
 13408  	}
 13409  }
 13410  
 13411  // Code returns the exception type name.
 13412  func (s *CannotModifyApprovalRuleFromTemplateException) Code() string {
 13413  	return "CannotModifyApprovalRuleFromTemplateException"
 13414  }
 13415  
 13416  // Message returns the exception's message.
 13417  func (s *CannotModifyApprovalRuleFromTemplateException) Message() string {
 13418  	if s.Message_ != nil {
 13419  		return *s.Message_
 13420  	}
 13421  	return ""
 13422  }
 13423  
 13424  // OrigErr always returns nil, satisfies awserr.Error interface.
 13425  func (s *CannotModifyApprovalRuleFromTemplateException) OrigErr() error {
 13426  	return nil
 13427  }
 13428  
 13429  func (s *CannotModifyApprovalRuleFromTemplateException) Error() string {
 13430  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13431  }
 13432  
 13433  // Status code returns the HTTP status code for the request's response error.
 13434  func (s *CannotModifyApprovalRuleFromTemplateException) StatusCode() int {
 13435  	return s.RespMetadata.StatusCode
 13436  }
 13437  
 13438  // RequestID returns the service's response RequestID for request.
 13439  func (s *CannotModifyApprovalRuleFromTemplateException) RequestID() string {
 13440  	return s.RespMetadata.RequestID
 13441  }
 13442  
 13443  // A client request token is required. A client request token is an unique,
 13444  // client-generated idempotency token that, when provided in a request, ensures
 13445  // the request cannot be repeated with a changed parameter. If a request is
 13446  // received with the same parameters and a token is included, the request returns
 13447  // information about the initial request that used that token.
 13448  type ClientRequestTokenRequiredException struct {
 13449  	_            struct{}                  `type:"structure"`
 13450  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13451  
 13452  	Message_ *string `locationName:"message" type:"string"`
 13453  }
 13454  
 13455  // String returns the string representation.
 13456  //
 13457  // API parameter values that are decorated as "sensitive" in the API will not
 13458  // be included in the string output. The member name will be present, but the
 13459  // value will be replaced with "sensitive".
 13460  func (s ClientRequestTokenRequiredException) String() string {
 13461  	return awsutil.Prettify(s)
 13462  }
 13463  
 13464  // GoString returns the string representation.
 13465  //
 13466  // API parameter values that are decorated as "sensitive" in the API will not
 13467  // be included in the string output. The member name will be present, but the
 13468  // value will be replaced with "sensitive".
 13469  func (s ClientRequestTokenRequiredException) GoString() string {
 13470  	return s.String()
 13471  }
 13472  
 13473  func newErrorClientRequestTokenRequiredException(v protocol.ResponseMetadata) error {
 13474  	return &ClientRequestTokenRequiredException{
 13475  		RespMetadata: v,
 13476  	}
 13477  }
 13478  
 13479  // Code returns the exception type name.
 13480  func (s *ClientRequestTokenRequiredException) Code() string {
 13481  	return "ClientRequestTokenRequiredException"
 13482  }
 13483  
 13484  // Message returns the exception's message.
 13485  func (s *ClientRequestTokenRequiredException) Message() string {
 13486  	if s.Message_ != nil {
 13487  		return *s.Message_
 13488  	}
 13489  	return ""
 13490  }
 13491  
 13492  // OrigErr always returns nil, satisfies awserr.Error interface.
 13493  func (s *ClientRequestTokenRequiredException) OrigErr() error {
 13494  	return nil
 13495  }
 13496  
 13497  func (s *ClientRequestTokenRequiredException) Error() string {
 13498  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13499  }
 13500  
 13501  // Status code returns the HTTP status code for the request's response error.
 13502  func (s *ClientRequestTokenRequiredException) StatusCode() int {
 13503  	return s.RespMetadata.StatusCode
 13504  }
 13505  
 13506  // RequestID returns the service's response RequestID for request.
 13507  func (s *ClientRequestTokenRequiredException) RequestID() string {
 13508  	return s.RespMetadata.RequestID
 13509  }
 13510  
 13511  // Returns information about a specific comment.
 13512  type Comment struct {
 13513  	_ struct{} `type:"structure"`
 13514  
 13515  	// The Amazon Resource Name (ARN) of the person who posted the comment.
 13516  	AuthorArn *string `locationName:"authorArn" type:"string"`
 13517  
 13518  	// The emoji reactions to a comment, if any, submitted by the user whose credentials
 13519  	// are associated with the call to the API.
 13520  	CallerReactions []*string `locationName:"callerReactions" type:"list"`
 13521  
 13522  	// A unique, client-generated idempotency token that, when provided in a request,
 13523  	// ensures the request cannot be repeated with a changed parameter. If a request
 13524  	// is received with the same parameters and a token is included, the request
 13525  	// returns information about the initial request that used that token.
 13526  	ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
 13527  
 13528  	// The system-generated comment ID.
 13529  	CommentId *string `locationName:"commentId" type:"string"`
 13530  
 13531  	// The content of the comment.
 13532  	Content *string `locationName:"content" type:"string"`
 13533  
 13534  	// The date and time the comment was created, in timestamp format.
 13535  	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
 13536  
 13537  	// A Boolean value indicating whether the comment has been deleted.
 13538  	Deleted *bool `locationName:"deleted" type:"boolean"`
 13539  
 13540  	// The ID of the comment for which this comment is a reply, if any.
 13541  	InReplyTo *string `locationName:"inReplyTo" type:"string"`
 13542  
 13543  	// The date and time the comment was most recently modified, in timestamp format.
 13544  	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
 13545  
 13546  	// A string to integer map that represents the number of individual users who
 13547  	// have responded to a comment with the specified reactions.
 13548  	ReactionCounts map[string]*int64 `locationName:"reactionCounts" type:"map"`
 13549  }
 13550  
 13551  // String returns the string representation.
 13552  //
 13553  // API parameter values that are decorated as "sensitive" in the API will not
 13554  // be included in the string output. The member name will be present, but the
 13555  // value will be replaced with "sensitive".
 13556  func (s Comment) String() string {
 13557  	return awsutil.Prettify(s)
 13558  }
 13559  
 13560  // GoString returns the string representation.
 13561  //
 13562  // API parameter values that are decorated as "sensitive" in the API will not
 13563  // be included in the string output. The member name will be present, but the
 13564  // value will be replaced with "sensitive".
 13565  func (s Comment) GoString() string {
 13566  	return s.String()
 13567  }
 13568  
 13569  // SetAuthorArn sets the AuthorArn field's value.
 13570  func (s *Comment) SetAuthorArn(v string) *Comment {
 13571  	s.AuthorArn = &v
 13572  	return s
 13573  }
 13574  
 13575  // SetCallerReactions sets the CallerReactions field's value.
 13576  func (s *Comment) SetCallerReactions(v []*string) *Comment {
 13577  	s.CallerReactions = v
 13578  	return s
 13579  }
 13580  
 13581  // SetClientRequestToken sets the ClientRequestToken field's value.
 13582  func (s *Comment) SetClientRequestToken(v string) *Comment {
 13583  	s.ClientRequestToken = &v
 13584  	return s
 13585  }
 13586  
 13587  // SetCommentId sets the CommentId field's value.
 13588  func (s *Comment) SetCommentId(v string) *Comment {
 13589  	s.CommentId = &v
 13590  	return s
 13591  }
 13592  
 13593  // SetContent sets the Content field's value.
 13594  func (s *Comment) SetContent(v string) *Comment {
 13595  	s.Content = &v
 13596  	return s
 13597  }
 13598  
 13599  // SetCreationDate sets the CreationDate field's value.
 13600  func (s *Comment) SetCreationDate(v time.Time) *Comment {
 13601  	s.CreationDate = &v
 13602  	return s
 13603  }
 13604  
 13605  // SetDeleted sets the Deleted field's value.
 13606  func (s *Comment) SetDeleted(v bool) *Comment {
 13607  	s.Deleted = &v
 13608  	return s
 13609  }
 13610  
 13611  // SetInReplyTo sets the InReplyTo field's value.
 13612  func (s *Comment) SetInReplyTo(v string) *Comment {
 13613  	s.InReplyTo = &v
 13614  	return s
 13615  }
 13616  
 13617  // SetLastModifiedDate sets the LastModifiedDate field's value.
 13618  func (s *Comment) SetLastModifiedDate(v time.Time) *Comment {
 13619  	s.LastModifiedDate = &v
 13620  	return s
 13621  }
 13622  
 13623  // SetReactionCounts sets the ReactionCounts field's value.
 13624  func (s *Comment) SetReactionCounts(v map[string]*int64) *Comment {
 13625  	s.ReactionCounts = v
 13626  	return s
 13627  }
 13628  
 13629  // The comment is empty. You must provide some content for a comment. The content
 13630  // cannot be null.
 13631  type CommentContentRequiredException struct {
 13632  	_            struct{}                  `type:"structure"`
 13633  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13634  
 13635  	Message_ *string `locationName:"message" type:"string"`
 13636  }
 13637  
 13638  // String returns the string representation.
 13639  //
 13640  // API parameter values that are decorated as "sensitive" in the API will not
 13641  // be included in the string output. The member name will be present, but the
 13642  // value will be replaced with "sensitive".
 13643  func (s CommentContentRequiredException) String() string {
 13644  	return awsutil.Prettify(s)
 13645  }
 13646  
 13647  // GoString returns the string representation.
 13648  //
 13649  // API parameter values that are decorated as "sensitive" in the API will not
 13650  // be included in the string output. The member name will be present, but the
 13651  // value will be replaced with "sensitive".
 13652  func (s CommentContentRequiredException) GoString() string {
 13653  	return s.String()
 13654  }
 13655  
 13656  func newErrorCommentContentRequiredException(v protocol.ResponseMetadata) error {
 13657  	return &CommentContentRequiredException{
 13658  		RespMetadata: v,
 13659  	}
 13660  }
 13661  
 13662  // Code returns the exception type name.
 13663  func (s *CommentContentRequiredException) Code() string {
 13664  	return "CommentContentRequiredException"
 13665  }
 13666  
 13667  // Message returns the exception's message.
 13668  func (s *CommentContentRequiredException) Message() string {
 13669  	if s.Message_ != nil {
 13670  		return *s.Message_
 13671  	}
 13672  	return ""
 13673  }
 13674  
 13675  // OrigErr always returns nil, satisfies awserr.Error interface.
 13676  func (s *CommentContentRequiredException) OrigErr() error {
 13677  	return nil
 13678  }
 13679  
 13680  func (s *CommentContentRequiredException) Error() string {
 13681  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13682  }
 13683  
 13684  // Status code returns the HTTP status code for the request's response error.
 13685  func (s *CommentContentRequiredException) StatusCode() int {
 13686  	return s.RespMetadata.StatusCode
 13687  }
 13688  
 13689  // RequestID returns the service's response RequestID for request.
 13690  func (s *CommentContentRequiredException) RequestID() string {
 13691  	return s.RespMetadata.RequestID
 13692  }
 13693  
 13694  // The comment is too large. Comments are limited to 1,000 characters.
 13695  type CommentContentSizeLimitExceededException struct {
 13696  	_            struct{}                  `type:"structure"`
 13697  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13698  
 13699  	Message_ *string `locationName:"message" type:"string"`
 13700  }
 13701  
 13702  // String returns the string representation.
 13703  //
 13704  // API parameter values that are decorated as "sensitive" in the API will not
 13705  // be included in the string output. The member name will be present, but the
 13706  // value will be replaced with "sensitive".
 13707  func (s CommentContentSizeLimitExceededException) String() string {
 13708  	return awsutil.Prettify(s)
 13709  }
 13710  
 13711  // GoString returns the string representation.
 13712  //
 13713  // API parameter values that are decorated as "sensitive" in the API will not
 13714  // be included in the string output. The member name will be present, but the
 13715  // value will be replaced with "sensitive".
 13716  func (s CommentContentSizeLimitExceededException) GoString() string {
 13717  	return s.String()
 13718  }
 13719  
 13720  func newErrorCommentContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
 13721  	return &CommentContentSizeLimitExceededException{
 13722  		RespMetadata: v,
 13723  	}
 13724  }
 13725  
 13726  // Code returns the exception type name.
 13727  func (s *CommentContentSizeLimitExceededException) Code() string {
 13728  	return "CommentContentSizeLimitExceededException"
 13729  }
 13730  
 13731  // Message returns the exception's message.
 13732  func (s *CommentContentSizeLimitExceededException) Message() string {
 13733  	if s.Message_ != nil {
 13734  		return *s.Message_
 13735  	}
 13736  	return ""
 13737  }
 13738  
 13739  // OrigErr always returns nil, satisfies awserr.Error interface.
 13740  func (s *CommentContentSizeLimitExceededException) OrigErr() error {
 13741  	return nil
 13742  }
 13743  
 13744  func (s *CommentContentSizeLimitExceededException) Error() string {
 13745  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13746  }
 13747  
 13748  // Status code returns the HTTP status code for the request's response error.
 13749  func (s *CommentContentSizeLimitExceededException) StatusCode() int {
 13750  	return s.RespMetadata.StatusCode
 13751  }
 13752  
 13753  // RequestID returns the service's response RequestID for request.
 13754  func (s *CommentContentSizeLimitExceededException) RequestID() string {
 13755  	return s.RespMetadata.RequestID
 13756  }
 13757  
 13758  // This comment has already been deleted. You cannot edit or delete a deleted
 13759  // comment.
 13760  type CommentDeletedException struct {
 13761  	_            struct{}                  `type:"structure"`
 13762  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13763  
 13764  	Message_ *string `locationName:"message" type:"string"`
 13765  }
 13766  
 13767  // String returns the string representation.
 13768  //
 13769  // API parameter values that are decorated as "sensitive" in the API will not
 13770  // be included in the string output. The member name will be present, but the
 13771  // value will be replaced with "sensitive".
 13772  func (s CommentDeletedException) String() string {
 13773  	return awsutil.Prettify(s)
 13774  }
 13775  
 13776  // GoString returns the string representation.
 13777  //
 13778  // API parameter values that are decorated as "sensitive" in the API will not
 13779  // be included in the string output. The member name will be present, but the
 13780  // value will be replaced with "sensitive".
 13781  func (s CommentDeletedException) GoString() string {
 13782  	return s.String()
 13783  }
 13784  
 13785  func newErrorCommentDeletedException(v protocol.ResponseMetadata) error {
 13786  	return &CommentDeletedException{
 13787  		RespMetadata: v,
 13788  	}
 13789  }
 13790  
 13791  // Code returns the exception type name.
 13792  func (s *CommentDeletedException) Code() string {
 13793  	return "CommentDeletedException"
 13794  }
 13795  
 13796  // Message returns the exception's message.
 13797  func (s *CommentDeletedException) Message() string {
 13798  	if s.Message_ != nil {
 13799  		return *s.Message_
 13800  	}
 13801  	return ""
 13802  }
 13803  
 13804  // OrigErr always returns nil, satisfies awserr.Error interface.
 13805  func (s *CommentDeletedException) OrigErr() error {
 13806  	return nil
 13807  }
 13808  
 13809  func (s *CommentDeletedException) Error() string {
 13810  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13811  }
 13812  
 13813  // Status code returns the HTTP status code for the request's response error.
 13814  func (s *CommentDeletedException) StatusCode() int {
 13815  	return s.RespMetadata.StatusCode
 13816  }
 13817  
 13818  // RequestID returns the service's response RequestID for request.
 13819  func (s *CommentDeletedException) RequestID() string {
 13820  	return s.RespMetadata.RequestID
 13821  }
 13822  
 13823  // No comment exists with the provided ID. Verify that you have used the correct
 13824  // ID, and then try again.
 13825  type CommentDoesNotExistException struct {
 13826  	_            struct{}                  `type:"structure"`
 13827  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13828  
 13829  	Message_ *string `locationName:"message" type:"string"`
 13830  }
 13831  
 13832  // String returns the string representation.
 13833  //
 13834  // API parameter values that are decorated as "sensitive" in the API will not
 13835  // be included in the string output. The member name will be present, but the
 13836  // value will be replaced with "sensitive".
 13837  func (s CommentDoesNotExistException) String() string {
 13838  	return awsutil.Prettify(s)
 13839  }
 13840  
 13841  // GoString returns the string representation.
 13842  //
 13843  // API parameter values that are decorated as "sensitive" in the API will not
 13844  // be included in the string output. The member name will be present, but the
 13845  // value will be replaced with "sensitive".
 13846  func (s CommentDoesNotExistException) GoString() string {
 13847  	return s.String()
 13848  }
 13849  
 13850  func newErrorCommentDoesNotExistException(v protocol.ResponseMetadata) error {
 13851  	return &CommentDoesNotExistException{
 13852  		RespMetadata: v,
 13853  	}
 13854  }
 13855  
 13856  // Code returns the exception type name.
 13857  func (s *CommentDoesNotExistException) Code() string {
 13858  	return "CommentDoesNotExistException"
 13859  }
 13860  
 13861  // Message returns the exception's message.
 13862  func (s *CommentDoesNotExistException) Message() string {
 13863  	if s.Message_ != nil {
 13864  		return *s.Message_
 13865  	}
 13866  	return ""
 13867  }
 13868  
 13869  // OrigErr always returns nil, satisfies awserr.Error interface.
 13870  func (s *CommentDoesNotExistException) OrigErr() error {
 13871  	return nil
 13872  }
 13873  
 13874  func (s *CommentDoesNotExistException) Error() string {
 13875  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13876  }
 13877  
 13878  // Status code returns the HTTP status code for the request's response error.
 13879  func (s *CommentDoesNotExistException) StatusCode() int {
 13880  	return s.RespMetadata.StatusCode
 13881  }
 13882  
 13883  // RequestID returns the service's response RequestID for request.
 13884  func (s *CommentDoesNotExistException) RequestID() string {
 13885  	return s.RespMetadata.RequestID
 13886  }
 13887  
 13888  // The comment ID is missing or null. A comment ID is required.
 13889  type CommentIdRequiredException struct {
 13890  	_            struct{}                  `type:"structure"`
 13891  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13892  
 13893  	Message_ *string `locationName:"message" type:"string"`
 13894  }
 13895  
 13896  // String returns the string representation.
 13897  //
 13898  // API parameter values that are decorated as "sensitive" in the API will not
 13899  // be included in the string output. The member name will be present, but the
 13900  // value will be replaced with "sensitive".
 13901  func (s CommentIdRequiredException) String() string {
 13902  	return awsutil.Prettify(s)
 13903  }
 13904  
 13905  // GoString returns the string representation.
 13906  //
 13907  // API parameter values that are decorated as "sensitive" in the API will not
 13908  // be included in the string output. The member name will be present, but the
 13909  // value will be replaced with "sensitive".
 13910  func (s CommentIdRequiredException) GoString() string {
 13911  	return s.String()
 13912  }
 13913  
 13914  func newErrorCommentIdRequiredException(v protocol.ResponseMetadata) error {
 13915  	return &CommentIdRequiredException{
 13916  		RespMetadata: v,
 13917  	}
 13918  }
 13919  
 13920  // Code returns the exception type name.
 13921  func (s *CommentIdRequiredException) Code() string {
 13922  	return "CommentIdRequiredException"
 13923  }
 13924  
 13925  // Message returns the exception's message.
 13926  func (s *CommentIdRequiredException) Message() string {
 13927  	if s.Message_ != nil {
 13928  		return *s.Message_
 13929  	}
 13930  	return ""
 13931  }
 13932  
 13933  // OrigErr always returns nil, satisfies awserr.Error interface.
 13934  func (s *CommentIdRequiredException) OrigErr() error {
 13935  	return nil
 13936  }
 13937  
 13938  func (s *CommentIdRequiredException) Error() string {
 13939  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13940  }
 13941  
 13942  // Status code returns the HTTP status code for the request's response error.
 13943  func (s *CommentIdRequiredException) StatusCode() int {
 13944  	return s.RespMetadata.StatusCode
 13945  }
 13946  
 13947  // RequestID returns the service's response RequestID for request.
 13948  func (s *CommentIdRequiredException) RequestID() string {
 13949  	return s.RespMetadata.RequestID
 13950  }
 13951  
 13952  // You cannot modify or delete this comment. Only comment authors can modify
 13953  // or delete their comments.
 13954  type CommentNotCreatedByCallerException struct {
 13955  	_            struct{}                  `type:"structure"`
 13956  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13957  
 13958  	Message_ *string `locationName:"message" type:"string"`
 13959  }
 13960  
 13961  // String returns the string representation.
 13962  //
 13963  // API parameter values that are decorated as "sensitive" in the API will not
 13964  // be included in the string output. The member name will be present, but the
 13965  // value will be replaced with "sensitive".
 13966  func (s CommentNotCreatedByCallerException) String() string {
 13967  	return awsutil.Prettify(s)
 13968  }
 13969  
 13970  // GoString returns the string representation.
 13971  //
 13972  // API parameter values that are decorated as "sensitive" in the API will not
 13973  // be included in the string output. The member name will be present, but the
 13974  // value will be replaced with "sensitive".
 13975  func (s CommentNotCreatedByCallerException) GoString() string {
 13976  	return s.String()
 13977  }
 13978  
 13979  func newErrorCommentNotCreatedByCallerException(v protocol.ResponseMetadata) error {
 13980  	return &CommentNotCreatedByCallerException{
 13981  		RespMetadata: v,
 13982  	}
 13983  }
 13984  
 13985  // Code returns the exception type name.
 13986  func (s *CommentNotCreatedByCallerException) Code() string {
 13987  	return "CommentNotCreatedByCallerException"
 13988  }
 13989  
 13990  // Message returns the exception's message.
 13991  func (s *CommentNotCreatedByCallerException) Message() string {
 13992  	if s.Message_ != nil {
 13993  		return *s.Message_
 13994  	}
 13995  	return ""
 13996  }
 13997  
 13998  // OrigErr always returns nil, satisfies awserr.Error interface.
 13999  func (s *CommentNotCreatedByCallerException) OrigErr() error {
 14000  	return nil
 14001  }
 14002  
 14003  func (s *CommentNotCreatedByCallerException) Error() string {
 14004  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14005  }
 14006  
 14007  // Status code returns the HTTP status code for the request's response error.
 14008  func (s *CommentNotCreatedByCallerException) StatusCode() int {
 14009  	return s.RespMetadata.StatusCode
 14010  }
 14011  
 14012  // RequestID returns the service's response RequestID for request.
 14013  func (s *CommentNotCreatedByCallerException) RequestID() string {
 14014  	return s.RespMetadata.RequestID
 14015  }
 14016  
 14017  // Returns information about comments on the comparison between two commits.
 14018  type CommentsForComparedCommit struct {
 14019  	_ struct{} `type:"structure"`
 14020  
 14021  	// The full blob ID of the commit used to establish the after of the comparison.
 14022  	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
 14023  
 14024  	// The full commit ID of the commit used to establish the after of the comparison.
 14025  	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
 14026  
 14027  	// The full blob ID of the commit used to establish the before of the comparison.
 14028  	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
 14029  
 14030  	// The full commit ID of the commit used to establish the before of the comparison.
 14031  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 14032  
 14033  	// An array of comment objects. Each comment object contains information about
 14034  	// a comment on the comparison between commits.
 14035  	Comments []*Comment `locationName:"comments" type:"list"`
 14036  
 14037  	// Location information about the comment on the comparison, including the file
 14038  	// name, line number, and whether the version of the file where the comment
 14039  	// was made is BEFORE or AFTER.
 14040  	Location *Location `locationName:"location" type:"structure"`
 14041  
 14042  	// The name of the repository that contains the compared commits.
 14043  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 14044  }
 14045  
 14046  // String returns the string representation.
 14047  //
 14048  // API parameter values that are decorated as "sensitive" in the API will not
 14049  // be included in the string output. The member name will be present, but the
 14050  // value will be replaced with "sensitive".
 14051  func (s CommentsForComparedCommit) String() string {
 14052  	return awsutil.Prettify(s)
 14053  }
 14054  
 14055  // GoString returns the string representation.
 14056  //
 14057  // API parameter values that are decorated as "sensitive" in the API will not
 14058  // be included in the string output. The member name will be present, but the
 14059  // value will be replaced with "sensitive".
 14060  func (s CommentsForComparedCommit) GoString() string {
 14061  	return s.String()
 14062  }
 14063  
 14064  // SetAfterBlobId sets the AfterBlobId field's value.
 14065  func (s *CommentsForComparedCommit) SetAfterBlobId(v string) *CommentsForComparedCommit {
 14066  	s.AfterBlobId = &v
 14067  	return s
 14068  }
 14069  
 14070  // SetAfterCommitId sets the AfterCommitId field's value.
 14071  func (s *CommentsForComparedCommit) SetAfterCommitId(v string) *CommentsForComparedCommit {
 14072  	s.AfterCommitId = &v
 14073  	return s
 14074  }
 14075  
 14076  // SetBeforeBlobId sets the BeforeBlobId field's value.
 14077  func (s *CommentsForComparedCommit) SetBeforeBlobId(v string) *CommentsForComparedCommit {
 14078  	s.BeforeBlobId = &v
 14079  	return s
 14080  }
 14081  
 14082  // SetBeforeCommitId sets the BeforeCommitId field's value.
 14083  func (s *CommentsForComparedCommit) SetBeforeCommitId(v string) *CommentsForComparedCommit {
 14084  	s.BeforeCommitId = &v
 14085  	return s
 14086  }
 14087  
 14088  // SetComments sets the Comments field's value.
 14089  func (s *CommentsForComparedCommit) SetComments(v []*Comment) *CommentsForComparedCommit {
 14090  	s.Comments = v
 14091  	return s
 14092  }
 14093  
 14094  // SetLocation sets the Location field's value.
 14095  func (s *CommentsForComparedCommit) SetLocation(v *Location) *CommentsForComparedCommit {
 14096  	s.Location = v
 14097  	return s
 14098  }
 14099  
 14100  // SetRepositoryName sets the RepositoryName field's value.
 14101  func (s *CommentsForComparedCommit) SetRepositoryName(v string) *CommentsForComparedCommit {
 14102  	s.RepositoryName = &v
 14103  	return s
 14104  }
 14105  
 14106  // Returns information about comments on a pull request.
 14107  type CommentsForPullRequest struct {
 14108  	_ struct{} `type:"structure"`
 14109  
 14110  	// The full blob ID of the file on which you want to comment on the source commit.
 14111  	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
 14112  
 14113  	// The full commit ID of the commit that was the tip of the source branch at
 14114  	// the time the comment was made.
 14115  	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
 14116  
 14117  	// The full blob ID of the file on which you want to comment on the destination
 14118  	// commit.
 14119  	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
 14120  
 14121  	// The full commit ID of the commit that was the tip of the destination branch
 14122  	// when the pull request was created. This commit is superceded by the after
 14123  	// commit in the source branch when and if you merge the source branch into
 14124  	// the destination branch.
 14125  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 14126  
 14127  	// An array of comment objects. Each comment object contains information about
 14128  	// a comment on the pull request.
 14129  	Comments []*Comment `locationName:"comments" type:"list"`
 14130  
 14131  	// Location information about the comment on the pull request, including the
 14132  	// file name, line number, and whether the version of the file where the comment
 14133  	// was made is BEFORE (destination branch) or AFTER (source branch).
 14134  	Location *Location `locationName:"location" type:"structure"`
 14135  
 14136  	// The system-generated ID of the pull request.
 14137  	PullRequestId *string `locationName:"pullRequestId" type:"string"`
 14138  
 14139  	// The name of the repository that contains the pull request.
 14140  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 14141  }
 14142  
 14143  // String returns the string representation.
 14144  //
 14145  // API parameter values that are decorated as "sensitive" in the API will not
 14146  // be included in the string output. The member name will be present, but the
 14147  // value will be replaced with "sensitive".
 14148  func (s CommentsForPullRequest) String() string {
 14149  	return awsutil.Prettify(s)
 14150  }
 14151  
 14152  // GoString returns the string representation.
 14153  //
 14154  // API parameter values that are decorated as "sensitive" in the API will not
 14155  // be included in the string output. The member name will be present, but the
 14156  // value will be replaced with "sensitive".
 14157  func (s CommentsForPullRequest) GoString() string {
 14158  	return s.String()
 14159  }
 14160  
 14161  // SetAfterBlobId sets the AfterBlobId field's value.
 14162  func (s *CommentsForPullRequest) SetAfterBlobId(v string) *CommentsForPullRequest {
 14163  	s.AfterBlobId = &v
 14164  	return s
 14165  }
 14166  
 14167  // SetAfterCommitId sets the AfterCommitId field's value.
 14168  func (s *CommentsForPullRequest) SetAfterCommitId(v string) *CommentsForPullRequest {
 14169  	s.AfterCommitId = &v
 14170  	return s
 14171  }
 14172  
 14173  // SetBeforeBlobId sets the BeforeBlobId field's value.
 14174  func (s *CommentsForPullRequest) SetBeforeBlobId(v string) *CommentsForPullRequest {
 14175  	s.BeforeBlobId = &v
 14176  	return s
 14177  }
 14178  
 14179  // SetBeforeCommitId sets the BeforeCommitId field's value.
 14180  func (s *CommentsForPullRequest) SetBeforeCommitId(v string) *CommentsForPullRequest {
 14181  	s.BeforeCommitId = &v
 14182  	return s
 14183  }
 14184  
 14185  // SetComments sets the Comments field's value.
 14186  func (s *CommentsForPullRequest) SetComments(v []*Comment) *CommentsForPullRequest {
 14187  	s.Comments = v
 14188  	return s
 14189  }
 14190  
 14191  // SetLocation sets the Location field's value.
 14192  func (s *CommentsForPullRequest) SetLocation(v *Location) *CommentsForPullRequest {
 14193  	s.Location = v
 14194  	return s
 14195  }
 14196  
 14197  // SetPullRequestId sets the PullRequestId field's value.
 14198  func (s *CommentsForPullRequest) SetPullRequestId(v string) *CommentsForPullRequest {
 14199  	s.PullRequestId = &v
 14200  	return s
 14201  }
 14202  
 14203  // SetRepositoryName sets the RepositoryName field's value.
 14204  func (s *CommentsForPullRequest) SetRepositoryName(v string) *CommentsForPullRequest {
 14205  	s.RepositoryName = &v
 14206  	return s
 14207  }
 14208  
 14209  // Returns information about a specific commit.
 14210  type Commit struct {
 14211  	_ struct{} `type:"structure"`
 14212  
 14213  	// Any other data associated with the specified commit.
 14214  	AdditionalData *string `locationName:"additionalData" type:"string"`
 14215  
 14216  	// Information about the author of the specified commit. Information includes
 14217  	// the date in timestamp format with GMT offset, the name of the author, and
 14218  	// the email address for the author, as configured in Git.
 14219  	Author *UserInfo `locationName:"author" type:"structure"`
 14220  
 14221  	// The full SHA ID of the specified commit.
 14222  	CommitId *string `locationName:"commitId" type:"string"`
 14223  
 14224  	// Information about the person who committed the specified commit, also known
 14225  	// as the committer. Information includes the date in timestamp format with
 14226  	// GMT offset, the name of the committer, and the email address for the committer,
 14227  	// as configured in Git.
 14228  	//
 14229  	// For more information about the difference between an author and a committer
 14230  	// in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html)
 14231  	// in Pro Git by Scott Chacon and Ben Straub.
 14232  	Committer *UserInfo `locationName:"committer" type:"structure"`
 14233  
 14234  	// The commit message associated with the specified commit.
 14235  	Message *string `locationName:"message" type:"string"`
 14236  
 14237  	// A list of parent commits for the specified commit. Each parent commit ID
 14238  	// is the full commit ID.
 14239  	Parents []*string `locationName:"parents" type:"list"`
 14240  
 14241  	// Tree information for the specified commit.
 14242  	TreeId *string `locationName:"treeId" type:"string"`
 14243  }
 14244  
 14245  // String returns the string representation.
 14246  //
 14247  // API parameter values that are decorated as "sensitive" in the API will not
 14248  // be included in the string output. The member name will be present, but the
 14249  // value will be replaced with "sensitive".
 14250  func (s Commit) String() string {
 14251  	return awsutil.Prettify(s)
 14252  }
 14253  
 14254  // GoString returns the string representation.
 14255  //
 14256  // API parameter values that are decorated as "sensitive" in the API will not
 14257  // be included in the string output. The member name will be present, but the
 14258  // value will be replaced with "sensitive".
 14259  func (s Commit) GoString() string {
 14260  	return s.String()
 14261  }
 14262  
 14263  // SetAdditionalData sets the AdditionalData field's value.
 14264  func (s *Commit) SetAdditionalData(v string) *Commit {
 14265  	s.AdditionalData = &v
 14266  	return s
 14267  }
 14268  
 14269  // SetAuthor sets the Author field's value.
 14270  func (s *Commit) SetAuthor(v *UserInfo) *Commit {
 14271  	s.Author = v
 14272  	return s
 14273  }
 14274  
 14275  // SetCommitId sets the CommitId field's value.
 14276  func (s *Commit) SetCommitId(v string) *Commit {
 14277  	s.CommitId = &v
 14278  	return s
 14279  }
 14280  
 14281  // SetCommitter sets the Committer field's value.
 14282  func (s *Commit) SetCommitter(v *UserInfo) *Commit {
 14283  	s.Committer = v
 14284  	return s
 14285  }
 14286  
 14287  // SetMessage sets the Message field's value.
 14288  func (s *Commit) SetMessage(v string) *Commit {
 14289  	s.Message = &v
 14290  	return s
 14291  }
 14292  
 14293  // SetParents sets the Parents field's value.
 14294  func (s *Commit) SetParents(v []*string) *Commit {
 14295  	s.Parents = v
 14296  	return s
 14297  }
 14298  
 14299  // SetTreeId sets the TreeId field's value.
 14300  func (s *Commit) SetTreeId(v string) *Commit {
 14301  	s.TreeId = &v
 14302  	return s
 14303  }
 14304  
 14305  // The specified commit does not exist or no commit was specified, and the specified
 14306  // repository has no default branch.
 14307  type CommitDoesNotExistException struct {
 14308  	_            struct{}                  `type:"structure"`
 14309  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14310  
 14311  	Message_ *string `locationName:"message" type:"string"`
 14312  }
 14313  
 14314  // String returns the string representation.
 14315  //
 14316  // API parameter values that are decorated as "sensitive" in the API will not
 14317  // be included in the string output. The member name will be present, but the
 14318  // value will be replaced with "sensitive".
 14319  func (s CommitDoesNotExistException) String() string {
 14320  	return awsutil.Prettify(s)
 14321  }
 14322  
 14323  // GoString returns the string representation.
 14324  //
 14325  // API parameter values that are decorated as "sensitive" in the API will not
 14326  // be included in the string output. The member name will be present, but the
 14327  // value will be replaced with "sensitive".
 14328  func (s CommitDoesNotExistException) GoString() string {
 14329  	return s.String()
 14330  }
 14331  
 14332  func newErrorCommitDoesNotExistException(v protocol.ResponseMetadata) error {
 14333  	return &CommitDoesNotExistException{
 14334  		RespMetadata: v,
 14335  	}
 14336  }
 14337  
 14338  // Code returns the exception type name.
 14339  func (s *CommitDoesNotExistException) Code() string {
 14340  	return "CommitDoesNotExistException"
 14341  }
 14342  
 14343  // Message returns the exception's message.
 14344  func (s *CommitDoesNotExistException) Message() string {
 14345  	if s.Message_ != nil {
 14346  		return *s.Message_
 14347  	}
 14348  	return ""
 14349  }
 14350  
 14351  // OrigErr always returns nil, satisfies awserr.Error interface.
 14352  func (s *CommitDoesNotExistException) OrigErr() error {
 14353  	return nil
 14354  }
 14355  
 14356  func (s *CommitDoesNotExistException) Error() string {
 14357  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14358  }
 14359  
 14360  // Status code returns the HTTP status code for the request's response error.
 14361  func (s *CommitDoesNotExistException) StatusCode() int {
 14362  	return s.RespMetadata.StatusCode
 14363  }
 14364  
 14365  // RequestID returns the service's response RequestID for request.
 14366  func (s *CommitDoesNotExistException) RequestID() string {
 14367  	return s.RespMetadata.RequestID
 14368  }
 14369  
 14370  // The specified commit ID does not exist.
 14371  type CommitIdDoesNotExistException struct {
 14372  	_            struct{}                  `type:"structure"`
 14373  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14374  
 14375  	Message_ *string `locationName:"message" type:"string"`
 14376  }
 14377  
 14378  // String returns the string representation.
 14379  //
 14380  // API parameter values that are decorated as "sensitive" in the API will not
 14381  // be included in the string output. The member name will be present, but the
 14382  // value will be replaced with "sensitive".
 14383  func (s CommitIdDoesNotExistException) String() string {
 14384  	return awsutil.Prettify(s)
 14385  }
 14386  
 14387  // GoString returns the string representation.
 14388  //
 14389  // API parameter values that are decorated as "sensitive" in the API will not
 14390  // be included in the string output. The member name will be present, but the
 14391  // value will be replaced with "sensitive".
 14392  func (s CommitIdDoesNotExistException) GoString() string {
 14393  	return s.String()
 14394  }
 14395  
 14396  func newErrorCommitIdDoesNotExistException(v protocol.ResponseMetadata) error {
 14397  	return &CommitIdDoesNotExistException{
 14398  		RespMetadata: v,
 14399  	}
 14400  }
 14401  
 14402  // Code returns the exception type name.
 14403  func (s *CommitIdDoesNotExistException) Code() string {
 14404  	return "CommitIdDoesNotExistException"
 14405  }
 14406  
 14407  // Message returns the exception's message.
 14408  func (s *CommitIdDoesNotExistException) Message() string {
 14409  	if s.Message_ != nil {
 14410  		return *s.Message_
 14411  	}
 14412  	return ""
 14413  }
 14414  
 14415  // OrigErr always returns nil, satisfies awserr.Error interface.
 14416  func (s *CommitIdDoesNotExistException) OrigErr() error {
 14417  	return nil
 14418  }
 14419  
 14420  func (s *CommitIdDoesNotExistException) Error() string {
 14421  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14422  }
 14423  
 14424  // Status code returns the HTTP status code for the request's response error.
 14425  func (s *CommitIdDoesNotExistException) StatusCode() int {
 14426  	return s.RespMetadata.StatusCode
 14427  }
 14428  
 14429  // RequestID returns the service's response RequestID for request.
 14430  func (s *CommitIdDoesNotExistException) RequestID() string {
 14431  	return s.RespMetadata.RequestID
 14432  }
 14433  
 14434  // A commit ID was not specified.
 14435  type CommitIdRequiredException struct {
 14436  	_            struct{}                  `type:"structure"`
 14437  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14438  
 14439  	Message_ *string `locationName:"message" type:"string"`
 14440  }
 14441  
 14442  // String returns the string representation.
 14443  //
 14444  // API parameter values that are decorated as "sensitive" in the API will not
 14445  // be included in the string output. The member name will be present, but the
 14446  // value will be replaced with "sensitive".
 14447  func (s CommitIdRequiredException) String() string {
 14448  	return awsutil.Prettify(s)
 14449  }
 14450  
 14451  // GoString returns the string representation.
 14452  //
 14453  // API parameter values that are decorated as "sensitive" in the API will not
 14454  // be included in the string output. The member name will be present, but the
 14455  // value will be replaced with "sensitive".
 14456  func (s CommitIdRequiredException) GoString() string {
 14457  	return s.String()
 14458  }
 14459  
 14460  func newErrorCommitIdRequiredException(v protocol.ResponseMetadata) error {
 14461  	return &CommitIdRequiredException{
 14462  		RespMetadata: v,
 14463  	}
 14464  }
 14465  
 14466  // Code returns the exception type name.
 14467  func (s *CommitIdRequiredException) Code() string {
 14468  	return "CommitIdRequiredException"
 14469  }
 14470  
 14471  // Message returns the exception's message.
 14472  func (s *CommitIdRequiredException) Message() string {
 14473  	if s.Message_ != nil {
 14474  		return *s.Message_
 14475  	}
 14476  	return ""
 14477  }
 14478  
 14479  // OrigErr always returns nil, satisfies awserr.Error interface.
 14480  func (s *CommitIdRequiredException) OrigErr() error {
 14481  	return nil
 14482  }
 14483  
 14484  func (s *CommitIdRequiredException) Error() string {
 14485  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14486  }
 14487  
 14488  // Status code returns the HTTP status code for the request's response error.
 14489  func (s *CommitIdRequiredException) StatusCode() int {
 14490  	return s.RespMetadata.StatusCode
 14491  }
 14492  
 14493  // RequestID returns the service's response RequestID for request.
 14494  func (s *CommitIdRequiredException) RequestID() string {
 14495  	return s.RespMetadata.RequestID
 14496  }
 14497  
 14498  // The maximum number of allowed commit IDs in a batch request is 100. Verify
 14499  // that your batch requests contains no more than 100 commit IDs, and then try
 14500  // again.
 14501  type CommitIdsLimitExceededException struct {
 14502  	_            struct{}                  `type:"structure"`
 14503  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14504  
 14505  	Message_ *string `locationName:"message" type:"string"`
 14506  }
 14507  
 14508  // String returns the string representation.
 14509  //
 14510  // API parameter values that are decorated as "sensitive" in the API will not
 14511  // be included in the string output. The member name will be present, but the
 14512  // value will be replaced with "sensitive".
 14513  func (s CommitIdsLimitExceededException) String() string {
 14514  	return awsutil.Prettify(s)
 14515  }
 14516  
 14517  // GoString returns the string representation.
 14518  //
 14519  // API parameter values that are decorated as "sensitive" in the API will not
 14520  // be included in the string output. The member name will be present, but the
 14521  // value will be replaced with "sensitive".
 14522  func (s CommitIdsLimitExceededException) GoString() string {
 14523  	return s.String()
 14524  }
 14525  
 14526  func newErrorCommitIdsLimitExceededException(v protocol.ResponseMetadata) error {
 14527  	return &CommitIdsLimitExceededException{
 14528  		RespMetadata: v,
 14529  	}
 14530  }
 14531  
 14532  // Code returns the exception type name.
 14533  func (s *CommitIdsLimitExceededException) Code() string {
 14534  	return "CommitIdsLimitExceededException"
 14535  }
 14536  
 14537  // Message returns the exception's message.
 14538  func (s *CommitIdsLimitExceededException) Message() string {
 14539  	if s.Message_ != nil {
 14540  		return *s.Message_
 14541  	}
 14542  	return ""
 14543  }
 14544  
 14545  // OrigErr always returns nil, satisfies awserr.Error interface.
 14546  func (s *CommitIdsLimitExceededException) OrigErr() error {
 14547  	return nil
 14548  }
 14549  
 14550  func (s *CommitIdsLimitExceededException) Error() string {
 14551  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14552  }
 14553  
 14554  // Status code returns the HTTP status code for the request's response error.
 14555  func (s *CommitIdsLimitExceededException) StatusCode() int {
 14556  	return s.RespMetadata.StatusCode
 14557  }
 14558  
 14559  // RequestID returns the service's response RequestID for request.
 14560  func (s *CommitIdsLimitExceededException) RequestID() string {
 14561  	return s.RespMetadata.RequestID
 14562  }
 14563  
 14564  // A list of commit IDs is required, but was either not specified or the list
 14565  // was empty.
 14566  type CommitIdsListRequiredException struct {
 14567  	_            struct{}                  `type:"structure"`
 14568  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14569  
 14570  	Message_ *string `locationName:"message" type:"string"`
 14571  }
 14572  
 14573  // String returns the string representation.
 14574  //
 14575  // API parameter values that are decorated as "sensitive" in the API will not
 14576  // be included in the string output. The member name will be present, but the
 14577  // value will be replaced with "sensitive".
 14578  func (s CommitIdsListRequiredException) String() string {
 14579  	return awsutil.Prettify(s)
 14580  }
 14581  
 14582  // GoString returns the string representation.
 14583  //
 14584  // API parameter values that are decorated as "sensitive" in the API will not
 14585  // be included in the string output. The member name will be present, but the
 14586  // value will be replaced with "sensitive".
 14587  func (s CommitIdsListRequiredException) GoString() string {
 14588  	return s.String()
 14589  }
 14590  
 14591  func newErrorCommitIdsListRequiredException(v protocol.ResponseMetadata) error {
 14592  	return &CommitIdsListRequiredException{
 14593  		RespMetadata: v,
 14594  	}
 14595  }
 14596  
 14597  // Code returns the exception type name.
 14598  func (s *CommitIdsListRequiredException) Code() string {
 14599  	return "CommitIdsListRequiredException"
 14600  }
 14601  
 14602  // Message returns the exception's message.
 14603  func (s *CommitIdsListRequiredException) Message() string {
 14604  	if s.Message_ != nil {
 14605  		return *s.Message_
 14606  	}
 14607  	return ""
 14608  }
 14609  
 14610  // OrigErr always returns nil, satisfies awserr.Error interface.
 14611  func (s *CommitIdsListRequiredException) OrigErr() error {
 14612  	return nil
 14613  }
 14614  
 14615  func (s *CommitIdsListRequiredException) Error() string {
 14616  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14617  }
 14618  
 14619  // Status code returns the HTTP status code for the request's response error.
 14620  func (s *CommitIdsListRequiredException) StatusCode() int {
 14621  	return s.RespMetadata.StatusCode
 14622  }
 14623  
 14624  // RequestID returns the service's response RequestID for request.
 14625  func (s *CommitIdsListRequiredException) RequestID() string {
 14626  	return s.RespMetadata.RequestID
 14627  }
 14628  
 14629  // The commit message is too long. Provide a shorter string.
 14630  type CommitMessageLengthExceededException struct {
 14631  	_            struct{}                  `type:"structure"`
 14632  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14633  
 14634  	Message_ *string `locationName:"message" type:"string"`
 14635  }
 14636  
 14637  // String returns the string representation.
 14638  //
 14639  // API parameter values that are decorated as "sensitive" in the API will not
 14640  // be included in the string output. The member name will be present, but the
 14641  // value will be replaced with "sensitive".
 14642  func (s CommitMessageLengthExceededException) String() string {
 14643  	return awsutil.Prettify(s)
 14644  }
 14645  
 14646  // GoString returns the string representation.
 14647  //
 14648  // API parameter values that are decorated as "sensitive" in the API will not
 14649  // be included in the string output. The member name will be present, but the
 14650  // value will be replaced with "sensitive".
 14651  func (s CommitMessageLengthExceededException) GoString() string {
 14652  	return s.String()
 14653  }
 14654  
 14655  func newErrorCommitMessageLengthExceededException(v protocol.ResponseMetadata) error {
 14656  	return &CommitMessageLengthExceededException{
 14657  		RespMetadata: v,
 14658  	}
 14659  }
 14660  
 14661  // Code returns the exception type name.
 14662  func (s *CommitMessageLengthExceededException) Code() string {
 14663  	return "CommitMessageLengthExceededException"
 14664  }
 14665  
 14666  // Message returns the exception's message.
 14667  func (s *CommitMessageLengthExceededException) Message() string {
 14668  	if s.Message_ != nil {
 14669  		return *s.Message_
 14670  	}
 14671  	return ""
 14672  }
 14673  
 14674  // OrigErr always returns nil, satisfies awserr.Error interface.
 14675  func (s *CommitMessageLengthExceededException) OrigErr() error {
 14676  	return nil
 14677  }
 14678  
 14679  func (s *CommitMessageLengthExceededException) Error() string {
 14680  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14681  }
 14682  
 14683  // Status code returns the HTTP status code for the request's response error.
 14684  func (s *CommitMessageLengthExceededException) StatusCode() int {
 14685  	return s.RespMetadata.StatusCode
 14686  }
 14687  
 14688  // RequestID returns the service's response RequestID for request.
 14689  func (s *CommitMessageLengthExceededException) RequestID() string {
 14690  	return s.RespMetadata.RequestID
 14691  }
 14692  
 14693  // A commit was not specified.
 14694  type CommitRequiredException struct {
 14695  	_            struct{}                  `type:"structure"`
 14696  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14697  
 14698  	Message_ *string `locationName:"message" type:"string"`
 14699  }
 14700  
 14701  // String returns the string representation.
 14702  //
 14703  // API parameter values that are decorated as "sensitive" in the API will not
 14704  // be included in the string output. The member name will be present, but the
 14705  // value will be replaced with "sensitive".
 14706  func (s CommitRequiredException) String() string {
 14707  	return awsutil.Prettify(s)
 14708  }
 14709  
 14710  // GoString returns the string representation.
 14711  //
 14712  // API parameter values that are decorated as "sensitive" in the API will not
 14713  // be included in the string output. The member name will be present, but the
 14714  // value will be replaced with "sensitive".
 14715  func (s CommitRequiredException) GoString() string {
 14716  	return s.String()
 14717  }
 14718  
 14719  func newErrorCommitRequiredException(v protocol.ResponseMetadata) error {
 14720  	return &CommitRequiredException{
 14721  		RespMetadata: v,
 14722  	}
 14723  }
 14724  
 14725  // Code returns the exception type name.
 14726  func (s *CommitRequiredException) Code() string {
 14727  	return "CommitRequiredException"
 14728  }
 14729  
 14730  // Message returns the exception's message.
 14731  func (s *CommitRequiredException) Message() string {
 14732  	if s.Message_ != nil {
 14733  		return *s.Message_
 14734  	}
 14735  	return ""
 14736  }
 14737  
 14738  // OrigErr always returns nil, satisfies awserr.Error interface.
 14739  func (s *CommitRequiredException) OrigErr() error {
 14740  	return nil
 14741  }
 14742  
 14743  func (s *CommitRequiredException) Error() string {
 14744  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14745  }
 14746  
 14747  // Status code returns the HTTP status code for the request's response error.
 14748  func (s *CommitRequiredException) StatusCode() int {
 14749  	return s.RespMetadata.StatusCode
 14750  }
 14751  
 14752  // RequestID returns the service's response RequestID for request.
 14753  func (s *CommitRequiredException) RequestID() string {
 14754  	return s.RespMetadata.RequestID
 14755  }
 14756  
 14757  // The merge cannot be completed because the target branch has been modified.
 14758  // Another user might have modified the target branch while the merge was in
 14759  // progress. Wait a few minutes, and then try again.
 14760  type ConcurrentReferenceUpdateException struct {
 14761  	_            struct{}                  `type:"structure"`
 14762  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 14763  
 14764  	Message_ *string `locationName:"message" type:"string"`
 14765  }
 14766  
 14767  // String returns the string representation.
 14768  //
 14769  // API parameter values that are decorated as "sensitive" in the API will not
 14770  // be included in the string output. The member name will be present, but the
 14771  // value will be replaced with "sensitive".
 14772  func (s ConcurrentReferenceUpdateException) String() string {
 14773  	return awsutil.Prettify(s)
 14774  }
 14775  
 14776  // GoString returns the string representation.
 14777  //
 14778  // API parameter values that are decorated as "sensitive" in the API will not
 14779  // be included in the string output. The member name will be present, but the
 14780  // value will be replaced with "sensitive".
 14781  func (s ConcurrentReferenceUpdateException) GoString() string {
 14782  	return s.String()
 14783  }
 14784  
 14785  func newErrorConcurrentReferenceUpdateException(v protocol.ResponseMetadata) error {
 14786  	return &ConcurrentReferenceUpdateException{
 14787  		RespMetadata: v,
 14788  	}
 14789  }
 14790  
 14791  // Code returns the exception type name.
 14792  func (s *ConcurrentReferenceUpdateException) Code() string {
 14793  	return "ConcurrentReferenceUpdateException"
 14794  }
 14795  
 14796  // Message returns the exception's message.
 14797  func (s *ConcurrentReferenceUpdateException) Message() string {
 14798  	if s.Message_ != nil {
 14799  		return *s.Message_
 14800  	}
 14801  	return ""
 14802  }
 14803  
 14804  // OrigErr always returns nil, satisfies awserr.Error interface.
 14805  func (s *ConcurrentReferenceUpdateException) OrigErr() error {
 14806  	return nil
 14807  }
 14808  
 14809  func (s *ConcurrentReferenceUpdateException) Error() string {
 14810  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 14811  }
 14812  
 14813  // Status code returns the HTTP status code for the request's response error.
 14814  func (s *ConcurrentReferenceUpdateException) StatusCode() int {
 14815  	return s.RespMetadata.StatusCode
 14816  }
 14817  
 14818  // RequestID returns the service's response RequestID for request.
 14819  func (s *ConcurrentReferenceUpdateException) RequestID() string {
 14820  	return s.RespMetadata.RequestID
 14821  }
 14822  
 14823  // Information about conflicts in a merge operation.
 14824  type Conflict struct {
 14825  	_ struct{} `type:"structure"`
 14826  
 14827  	// Metadata about a conflict in a merge operation.
 14828  	ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure"`
 14829  
 14830  	// A list of hunks that contain the differences between files or lines causing
 14831  	// the conflict.
 14832  	MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list"`
 14833  }
 14834  
 14835  // String returns the string representation.
 14836  //
 14837  // API parameter values that are decorated as "sensitive" in the API will not
 14838  // be included in the string output. The member name will be present, but the
 14839  // value will be replaced with "sensitive".
 14840  func (s Conflict) String() string {
 14841  	return awsutil.Prettify(s)
 14842  }
 14843  
 14844  // GoString returns the string representation.
 14845  //
 14846  // API parameter values that are decorated as "sensitive" in the API will not
 14847  // be included in the string output. The member name will be present, but the
 14848  // value will be replaced with "sensitive".
 14849  func (s Conflict) GoString() string {
 14850  	return s.String()
 14851  }
 14852  
 14853  // SetConflictMetadata sets the ConflictMetadata field's value.
 14854  func (s *Conflict) SetConflictMetadata(v *ConflictMetadata) *Conflict {
 14855  	s.ConflictMetadata = v
 14856  	return s
 14857  }
 14858  
 14859  // SetMergeHunks sets the MergeHunks field's value.
 14860  func (s *Conflict) SetMergeHunks(v []*MergeHunk) *Conflict {
 14861  	s.MergeHunks = v
 14862  	return s
 14863  }
 14864  
 14865  // Information about the metadata for a conflict in a merge operation.
 14866  type ConflictMetadata struct {
 14867  	_ struct{} `type:"structure"`
 14868  
 14869  	// A boolean value indicating whether there are conflicts in the content of
 14870  	// a file.
 14871  	ContentConflict *bool `locationName:"contentConflict" type:"boolean"`
 14872  
 14873  	// A boolean value indicating whether there are conflicts in the file mode of
 14874  	// a file.
 14875  	FileModeConflict *bool `locationName:"fileModeConflict" type:"boolean"`
 14876  
 14877  	// The file modes of the file in the source, destination, and base of the merge.
 14878  	FileModes *FileModes `locationName:"fileModes" type:"structure"`
 14879  
 14880  	// The path of the file that contains conflicts.
 14881  	FilePath *string `locationName:"filePath" type:"string"`
 14882  
 14883  	// The file sizes of the file in the source, destination, and base of the merge.
 14884  	FileSizes *FileSizes `locationName:"fileSizes" type:"structure"`
 14885  
 14886  	// A boolean value (true or false) indicating whether the file is binary or
 14887  	// textual in the source, destination, and base of the merge.
 14888  	IsBinaryFile *IsBinaryFile `locationName:"isBinaryFile" type:"structure"`
 14889  
 14890  	// Whether an add, modify, or delete operation caused the conflict between the
 14891  	// source and destination of the merge.
 14892  	MergeOperations *MergeOperations `locationName:"mergeOperations" type:"structure"`
 14893  
 14894  	// The number of conflicts, including both hunk conflicts and metadata conflicts.
 14895  	NumberOfConflicts *int64 `locationName:"numberOfConflicts" type:"integer"`
 14896  
 14897  	// A boolean value (true or false) indicating whether there are conflicts between
 14898  	// the branches in the object type of a file, folder, or submodule.
 14899  	ObjectTypeConflict *bool `locationName:"objectTypeConflict" type:"boolean"`
 14900  
 14901  	// Information about any object type conflicts in a merge operation.
 14902  	ObjectTypes *ObjectTypes `locationName:"objectTypes" type:"structure"`
 14903  }
 14904  
 14905  // String returns the string representation.
 14906  //
 14907  // API parameter values that are decorated as "sensitive" in the API will not
 14908  // be included in the string output. The member name will be present, but the
 14909  // value will be replaced with "sensitive".
 14910  func (s ConflictMetadata) String() string {
 14911  	return awsutil.Prettify(s)
 14912  }
 14913  
 14914  // GoString returns the string representation.
 14915  //
 14916  // API parameter values that are decorated as "sensitive" in the API will not
 14917  // be included in the string output. The member name will be present, but the
 14918  // value will be replaced with "sensitive".
 14919  func (s ConflictMetadata) GoString() string {
 14920  	return s.String()
 14921  }
 14922  
 14923  // SetContentConflict sets the ContentConflict field's value.
 14924  func (s *ConflictMetadata) SetContentConflict(v bool) *ConflictMetadata {
 14925  	s.ContentConflict = &v
 14926  	return s
 14927  }
 14928  
 14929  // SetFileModeConflict sets the FileModeConflict field's value.
 14930  func (s *ConflictMetadata) SetFileModeConflict(v bool) *ConflictMetadata {
 14931  	s.FileModeConflict = &v
 14932  	return s
 14933  }
 14934  
 14935  // SetFileModes sets the FileModes field's value.
 14936  func (s *ConflictMetadata) SetFileModes(v *FileModes) *ConflictMetadata {
 14937  	s.FileModes = v
 14938  	return s
 14939  }
 14940  
 14941  // SetFilePath sets the FilePath field's value.
 14942  func (s *ConflictMetadata) SetFilePath(v string) *ConflictMetadata {
 14943  	s.FilePath = &v
 14944  	return s
 14945  }
 14946  
 14947  // SetFileSizes sets the FileSizes field's value.
 14948  func (s *ConflictMetadata) SetFileSizes(v *FileSizes) *ConflictMetadata {
 14949  	s.FileSizes = v
 14950  	return s
 14951  }
 14952  
 14953  // SetIsBinaryFile sets the IsBinaryFile field's value.
 14954  func (s *ConflictMetadata) SetIsBinaryFile(v *IsBinaryFile) *ConflictMetadata {
 14955  	s.IsBinaryFile = v
 14956  	return s
 14957  }
 14958  
 14959  // SetMergeOperations sets the MergeOperations field's value.
 14960  func (s *ConflictMetadata) SetMergeOperations(v *MergeOperations) *ConflictMetadata {
 14961  	s.MergeOperations = v
 14962  	return s
 14963  }
 14964  
 14965  // SetNumberOfConflicts sets the NumberOfConflicts field's value.
 14966  func (s *ConflictMetadata) SetNumberOfConflicts(v int64) *ConflictMetadata {
 14967  	s.NumberOfConflicts = &v
 14968  	return s
 14969  }
 14970  
 14971  // SetObjectTypeConflict sets the ObjectTypeConflict field's value.
 14972  func (s *ConflictMetadata) SetObjectTypeConflict(v bool) *ConflictMetadata {
 14973  	s.ObjectTypeConflict = &v
 14974  	return s
 14975  }
 14976  
 14977  // SetObjectTypes sets the ObjectTypes field's value.
 14978  func (s *ConflictMetadata) SetObjectTypes(v *ObjectTypes) *ConflictMetadata {
 14979  	s.ObjectTypes = v
 14980  	return s
 14981  }
 14982  
 14983  // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
 14984  // when resolving conflicts during a merge.
 14985  type ConflictResolution struct {
 14986  	_ struct{} `type:"structure"`
 14987  
 14988  	// Files to be deleted as part of the merge conflict resolution.
 14989  	DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"`
 14990  
 14991  	// Files to have content replaced as part of the merge conflict resolution.
 14992  	ReplaceContents []*ReplaceContentEntry `locationName:"replaceContents" type:"list"`
 14993  
 14994  	// File modes that are set as part of the merge conflict resolution.
 14995  	SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"`
 14996  }
 14997  
 14998  // String returns the string representation.
 14999  //
 15000  // API parameter values that are decorated as "sensitive" in the API will not
 15001  // be included in the string output. The member name will be present, but the
 15002  // value will be replaced with "sensitive".
 15003  func (s ConflictResolution) String() string {
 15004  	return awsutil.Prettify(s)
 15005  }
 15006  
 15007  // GoString returns the string representation.
 15008  //
 15009  // API parameter values that are decorated as "sensitive" in the API will not
 15010  // be included in the string output. The member name will be present, but the
 15011  // value will be replaced with "sensitive".
 15012  func (s ConflictResolution) GoString() string {
 15013  	return s.String()
 15014  }
 15015  
 15016  // Validate inspects the fields of the type to determine if they are valid.
 15017  func (s *ConflictResolution) Validate() error {
 15018  	invalidParams := request.ErrInvalidParams{Context: "ConflictResolution"}
 15019  	if s.DeleteFiles != nil {
 15020  		for i, v := range s.DeleteFiles {
 15021  			if v == nil {
 15022  				continue
 15023  			}
 15024  			if err := v.Validate(); err != nil {
 15025  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams))
 15026  			}
 15027  		}
 15028  	}
 15029  	if s.ReplaceContents != nil {
 15030  		for i, v := range s.ReplaceContents {
 15031  			if v == nil {
 15032  				continue
 15033  			}
 15034  			if err := v.Validate(); err != nil {
 15035  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplaceContents", i), err.(request.ErrInvalidParams))
 15036  			}
 15037  		}
 15038  	}
 15039  	if s.SetFileModes != nil {
 15040  		for i, v := range s.SetFileModes {
 15041  			if v == nil {
 15042  				continue
 15043  			}
 15044  			if err := v.Validate(); err != nil {
 15045  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams))
 15046  			}
 15047  		}
 15048  	}
 15049  
 15050  	if invalidParams.Len() > 0 {
 15051  		return invalidParams
 15052  	}
 15053  	return nil
 15054  }
 15055  
 15056  // SetDeleteFiles sets the DeleteFiles field's value.
 15057  func (s *ConflictResolution) SetDeleteFiles(v []*DeleteFileEntry) *ConflictResolution {
 15058  	s.DeleteFiles = v
 15059  	return s
 15060  }
 15061  
 15062  // SetReplaceContents sets the ReplaceContents field's value.
 15063  func (s *ConflictResolution) SetReplaceContents(v []*ReplaceContentEntry) *ConflictResolution {
 15064  	s.ReplaceContents = v
 15065  	return s
 15066  }
 15067  
 15068  // SetSetFileModes sets the SetFileModes field's value.
 15069  func (s *ConflictResolution) SetSetFileModes(v []*SetFileModeEntry) *ConflictResolution {
 15070  	s.SetFileModes = v
 15071  	return s
 15072  }
 15073  
 15074  type CreateApprovalRuleTemplateInput struct {
 15075  	_ struct{} `type:"structure"`
 15076  
 15077  	// The content of the approval rule that is created on pull requests in associated
 15078  	// repositories. If you specify one or more destination references (branches),
 15079  	// approval rules are created in an associated repository only if their destination
 15080  	// references (branches) match those specified in the template.
 15081  	//
 15082  	// When you create the content of the approval rule template, you can specify
 15083  	// approvers in an approval pool in one of two ways:
 15084  	//
 15085  	//    * CodeCommitApprovers: This option only requires an AWS account and a
 15086  	//    resource. It can be used for both IAM users and federated access users
 15087  	//    whose name matches the provided resource name. This is a very powerful
 15088  	//    option that offers a great deal of flexibility. For example, if you specify
 15089  	//    the AWS account 123456789012 and Mary_Major, all of the following are
 15090  	//    counted as approvals coming from that user: An IAM user in the account
 15091  	//    (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified
 15092  	//    in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
 15093  	//    This option does not recognize an active session of someone assuming the
 15094  	//    role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major)
 15095  	//    unless you include a wildcard (*Mary_Major).
 15096  	//
 15097  	//    * Fully qualified ARN: This option allows you to specify the fully qualified
 15098  	//    Amazon Resource Name (ARN) of the IAM user or role.
 15099  	//
 15100  	// For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers
 15101  	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
 15102  	// in the IAM User Guide.
 15103  	//
 15104  	// ApprovalRuleTemplateContent is a required field
 15105  	ApprovalRuleTemplateContent *string `locationName:"approvalRuleTemplateContent" min:"1" type:"string" required:"true"`
 15106  
 15107  	// The description of the approval rule template. Consider providing a description
 15108  	// that explains what this template does and when it might be appropriate to
 15109  	// associate it with repositories.
 15110  	ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string"`
 15111  
 15112  	// The name of the approval rule template. Provide descriptive names, because
 15113  	// this name is applied to the approval rules created automatically in associated
 15114  	// repositories.
 15115  	//
 15116  	// ApprovalRuleTemplateName is a required field
 15117  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 15118  }
 15119  
 15120  // String returns the string representation.
 15121  //
 15122  // API parameter values that are decorated as "sensitive" in the API will not
 15123  // be included in the string output. The member name will be present, but the
 15124  // value will be replaced with "sensitive".
 15125  func (s CreateApprovalRuleTemplateInput) String() string {
 15126  	return awsutil.Prettify(s)
 15127  }
 15128  
 15129  // GoString returns the string representation.
 15130  //
 15131  // API parameter values that are decorated as "sensitive" in the API will not
 15132  // be included in the string output. The member name will be present, but the
 15133  // value will be replaced with "sensitive".
 15134  func (s CreateApprovalRuleTemplateInput) GoString() string {
 15135  	return s.String()
 15136  }
 15137  
 15138  // Validate inspects the fields of the type to determine if they are valid.
 15139  func (s *CreateApprovalRuleTemplateInput) Validate() error {
 15140  	invalidParams := request.ErrInvalidParams{Context: "CreateApprovalRuleTemplateInput"}
 15141  	if s.ApprovalRuleTemplateContent == nil {
 15142  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateContent"))
 15143  	}
 15144  	if s.ApprovalRuleTemplateContent != nil && len(*s.ApprovalRuleTemplateContent) < 1 {
 15145  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateContent", 1))
 15146  	}
 15147  	if s.ApprovalRuleTemplateName == nil {
 15148  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 15149  	}
 15150  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 15151  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 15152  	}
 15153  
 15154  	if invalidParams.Len() > 0 {
 15155  		return invalidParams
 15156  	}
 15157  	return nil
 15158  }
 15159  
 15160  // SetApprovalRuleTemplateContent sets the ApprovalRuleTemplateContent field's value.
 15161  func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateContent(v string) *CreateApprovalRuleTemplateInput {
 15162  	s.ApprovalRuleTemplateContent = &v
 15163  	return s
 15164  }
 15165  
 15166  // SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value.
 15167  func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateDescription(v string) *CreateApprovalRuleTemplateInput {
 15168  	s.ApprovalRuleTemplateDescription = &v
 15169  	return s
 15170  }
 15171  
 15172  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 15173  func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *CreateApprovalRuleTemplateInput {
 15174  	s.ApprovalRuleTemplateName = &v
 15175  	return s
 15176  }
 15177  
 15178  type CreateApprovalRuleTemplateOutput struct {
 15179  	_ struct{} `type:"structure"`
 15180  
 15181  	// The content and structure of the created approval rule template.
 15182  	//
 15183  	// ApprovalRuleTemplate is a required field
 15184  	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
 15185  }
 15186  
 15187  // String returns the string representation.
 15188  //
 15189  // API parameter values that are decorated as "sensitive" in the API will not
 15190  // be included in the string output. The member name will be present, but the
 15191  // value will be replaced with "sensitive".
 15192  func (s CreateApprovalRuleTemplateOutput) String() string {
 15193  	return awsutil.Prettify(s)
 15194  }
 15195  
 15196  // GoString returns the string representation.
 15197  //
 15198  // API parameter values that are decorated as "sensitive" in the API will not
 15199  // be included in the string output. The member name will be present, but the
 15200  // value will be replaced with "sensitive".
 15201  func (s CreateApprovalRuleTemplateOutput) GoString() string {
 15202  	return s.String()
 15203  }
 15204  
 15205  // SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
 15206  func (s *CreateApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *CreateApprovalRuleTemplateOutput {
 15207  	s.ApprovalRuleTemplate = v
 15208  	return s
 15209  }
 15210  
 15211  // Represents the input of a create branch operation.
 15212  type CreateBranchInput struct {
 15213  	_ struct{} `type:"structure"`
 15214  
 15215  	// The name of the new branch to create.
 15216  	//
 15217  	// BranchName is a required field
 15218  	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
 15219  
 15220  	// The ID of the commit to point the new branch to.
 15221  	//
 15222  	// CommitId is a required field
 15223  	CommitId *string `locationName:"commitId" type:"string" required:"true"`
 15224  
 15225  	// The name of the repository in which you want to create the new branch.
 15226  	//
 15227  	// RepositoryName is a required field
 15228  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 15229  }
 15230  
 15231  // String returns the string representation.
 15232  //
 15233  // API parameter values that are decorated as "sensitive" in the API will not
 15234  // be included in the string output. The member name will be present, but the
 15235  // value will be replaced with "sensitive".
 15236  func (s CreateBranchInput) String() string {
 15237  	return awsutil.Prettify(s)
 15238  }
 15239  
 15240  // GoString returns the string representation.
 15241  //
 15242  // API parameter values that are decorated as "sensitive" in the API will not
 15243  // be included in the string output. The member name will be present, but the
 15244  // value will be replaced with "sensitive".
 15245  func (s CreateBranchInput) GoString() string {
 15246  	return s.String()
 15247  }
 15248  
 15249  // Validate inspects the fields of the type to determine if they are valid.
 15250  func (s *CreateBranchInput) Validate() error {
 15251  	invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"}
 15252  	if s.BranchName == nil {
 15253  		invalidParams.Add(request.NewErrParamRequired("BranchName"))
 15254  	}
 15255  	if s.BranchName != nil && len(*s.BranchName) < 1 {
 15256  		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
 15257  	}
 15258  	if s.CommitId == nil {
 15259  		invalidParams.Add(request.NewErrParamRequired("CommitId"))
 15260  	}
 15261  	if s.RepositoryName == nil {
 15262  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 15263  	}
 15264  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 15265  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 15266  	}
 15267  
 15268  	if invalidParams.Len() > 0 {
 15269  		return invalidParams
 15270  	}
 15271  	return nil
 15272  }
 15273  
 15274  // SetBranchName sets the BranchName field's value.
 15275  func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput {
 15276  	s.BranchName = &v
 15277  	return s
 15278  }
 15279  
 15280  // SetCommitId sets the CommitId field's value.
 15281  func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput {
 15282  	s.CommitId = &v
 15283  	return s
 15284  }
 15285  
 15286  // SetRepositoryName sets the RepositoryName field's value.
 15287  func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput {
 15288  	s.RepositoryName = &v
 15289  	return s
 15290  }
 15291  
 15292  type CreateBranchOutput struct {
 15293  	_ struct{} `type:"structure"`
 15294  }
 15295  
 15296  // String returns the string representation.
 15297  //
 15298  // API parameter values that are decorated as "sensitive" in the API will not
 15299  // be included in the string output. The member name will be present, but the
 15300  // value will be replaced with "sensitive".
 15301  func (s CreateBranchOutput) String() string {
 15302  	return awsutil.Prettify(s)
 15303  }
 15304  
 15305  // GoString returns the string representation.
 15306  //
 15307  // API parameter values that are decorated as "sensitive" in the API will not
 15308  // be included in the string output. The member name will be present, but the
 15309  // value will be replaced with "sensitive".
 15310  func (s CreateBranchOutput) GoString() string {
 15311  	return s.String()
 15312  }
 15313  
 15314  type CreateCommitInput struct {
 15315  	_ struct{} `type:"structure"`
 15316  
 15317  	// The name of the author who created the commit. This information is used as
 15318  	// both the author and committer for the commit.
 15319  	AuthorName *string `locationName:"authorName" type:"string"`
 15320  
 15321  	// The name of the branch where you create the commit.
 15322  	//
 15323  	// BranchName is a required field
 15324  	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
 15325  
 15326  	// The commit message you want to include in the commit. Commit messages are
 15327  	// limited to 256 KB. If no message is specified, a default message is used.
 15328  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 15329  
 15330  	// The files to delete in this commit. These files still exist in earlier commits.
 15331  	DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"`
 15332  
 15333  	// The email address of the person who created the commit.
 15334  	Email *string `locationName:"email" type:"string"`
 15335  
 15336  	// If the commit contains deletions, whether to keep a folder or folder structure
 15337  	// if the changes leave the folders empty. If true, a ..gitkeep file is created
 15338  	// for empty folders. The default is false.
 15339  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 15340  
 15341  	// The ID of the commit that is the parent of the commit you create. Not required
 15342  	// if this is an empty repository.
 15343  	ParentCommitId *string `locationName:"parentCommitId" type:"string"`
 15344  
 15345  	// The files to add or update in this commit.
 15346  	PutFiles []*PutFileEntry `locationName:"putFiles" type:"list"`
 15347  
 15348  	// The name of the repository where you create the commit.
 15349  	//
 15350  	// RepositoryName is a required field
 15351  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 15352  
 15353  	// The file modes to update for files in this commit.
 15354  	SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"`
 15355  }
 15356  
 15357  // String returns the string representation.
 15358  //
 15359  // API parameter values that are decorated as "sensitive" in the API will not
 15360  // be included in the string output. The member name will be present, but the
 15361  // value will be replaced with "sensitive".
 15362  func (s CreateCommitInput) String() string {
 15363  	return awsutil.Prettify(s)
 15364  }
 15365  
 15366  // GoString returns the string representation.
 15367  //
 15368  // API parameter values that are decorated as "sensitive" in the API will not
 15369  // be included in the string output. The member name will be present, but the
 15370  // value will be replaced with "sensitive".
 15371  func (s CreateCommitInput) GoString() string {
 15372  	return s.String()
 15373  }
 15374  
 15375  // Validate inspects the fields of the type to determine if they are valid.
 15376  func (s *CreateCommitInput) Validate() error {
 15377  	invalidParams := request.ErrInvalidParams{Context: "CreateCommitInput"}
 15378  	if s.BranchName == nil {
 15379  		invalidParams.Add(request.NewErrParamRequired("BranchName"))
 15380  	}
 15381  	if s.BranchName != nil && len(*s.BranchName) < 1 {
 15382  		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
 15383  	}
 15384  	if s.RepositoryName == nil {
 15385  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 15386  	}
 15387  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 15388  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 15389  	}
 15390  	if s.DeleteFiles != nil {
 15391  		for i, v := range s.DeleteFiles {
 15392  			if v == nil {
 15393  				continue
 15394  			}
 15395  			if err := v.Validate(); err != nil {
 15396  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams))
 15397  			}
 15398  		}
 15399  	}
 15400  	if s.PutFiles != nil {
 15401  		for i, v := range s.PutFiles {
 15402  			if v == nil {
 15403  				continue
 15404  			}
 15405  			if err := v.Validate(); err != nil {
 15406  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PutFiles", i), err.(request.ErrInvalidParams))
 15407  			}
 15408  		}
 15409  	}
 15410  	if s.SetFileModes != nil {
 15411  		for i, v := range s.SetFileModes {
 15412  			if v == nil {
 15413  				continue
 15414  			}
 15415  			if err := v.Validate(); err != nil {
 15416  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams))
 15417  			}
 15418  		}
 15419  	}
 15420  
 15421  	if invalidParams.Len() > 0 {
 15422  		return invalidParams
 15423  	}
 15424  	return nil
 15425  }
 15426  
 15427  // SetAuthorName sets the AuthorName field's value.
 15428  func (s *CreateCommitInput) SetAuthorName(v string) *CreateCommitInput {
 15429  	s.AuthorName = &v
 15430  	return s
 15431  }
 15432  
 15433  // SetBranchName sets the BranchName field's value.
 15434  func (s *CreateCommitInput) SetBranchName(v string) *CreateCommitInput {
 15435  	s.BranchName = &v
 15436  	return s
 15437  }
 15438  
 15439  // SetCommitMessage sets the CommitMessage field's value.
 15440  func (s *CreateCommitInput) SetCommitMessage(v string) *CreateCommitInput {
 15441  	s.CommitMessage = &v
 15442  	return s
 15443  }
 15444  
 15445  // SetDeleteFiles sets the DeleteFiles field's value.
 15446  func (s *CreateCommitInput) SetDeleteFiles(v []*DeleteFileEntry) *CreateCommitInput {
 15447  	s.DeleteFiles = v
 15448  	return s
 15449  }
 15450  
 15451  // SetEmail sets the Email field's value.
 15452  func (s *CreateCommitInput) SetEmail(v string) *CreateCommitInput {
 15453  	s.Email = &v
 15454  	return s
 15455  }
 15456  
 15457  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 15458  func (s *CreateCommitInput) SetKeepEmptyFolders(v bool) *CreateCommitInput {
 15459  	s.KeepEmptyFolders = &v
 15460  	return s
 15461  }
 15462  
 15463  // SetParentCommitId sets the ParentCommitId field's value.
 15464  func (s *CreateCommitInput) SetParentCommitId(v string) *CreateCommitInput {
 15465  	s.ParentCommitId = &v
 15466  	return s
 15467  }
 15468  
 15469  // SetPutFiles sets the PutFiles field's value.
 15470  func (s *CreateCommitInput) SetPutFiles(v []*PutFileEntry) *CreateCommitInput {
 15471  	s.PutFiles = v
 15472  	return s
 15473  }
 15474  
 15475  // SetRepositoryName sets the RepositoryName field's value.
 15476  func (s *CreateCommitInput) SetRepositoryName(v string) *CreateCommitInput {
 15477  	s.RepositoryName = &v
 15478  	return s
 15479  }
 15480  
 15481  // SetSetFileModes sets the SetFileModes field's value.
 15482  func (s *CreateCommitInput) SetSetFileModes(v []*SetFileModeEntry) *CreateCommitInput {
 15483  	s.SetFileModes = v
 15484  	return s
 15485  }
 15486  
 15487  type CreateCommitOutput struct {
 15488  	_ struct{} `type:"structure"`
 15489  
 15490  	// The full commit ID of the commit that contains your committed file changes.
 15491  	CommitId *string `locationName:"commitId" type:"string"`
 15492  
 15493  	// The files added as part of the committed file changes.
 15494  	FilesAdded []*FileMetadata `locationName:"filesAdded" type:"list"`
 15495  
 15496  	// The files deleted as part of the committed file changes.
 15497  	FilesDeleted []*FileMetadata `locationName:"filesDeleted" type:"list"`
 15498  
 15499  	// The files updated as part of the commited file changes.
 15500  	FilesUpdated []*FileMetadata `locationName:"filesUpdated" type:"list"`
 15501  
 15502  	// The full SHA-1 pointer of the tree information for the commit that contains
 15503  	// the commited file changes.
 15504  	TreeId *string `locationName:"treeId" type:"string"`
 15505  }
 15506  
 15507  // String returns the string representation.
 15508  //
 15509  // API parameter values that are decorated as "sensitive" in the API will not
 15510  // be included in the string output. The member name will be present, but the
 15511  // value will be replaced with "sensitive".
 15512  func (s CreateCommitOutput) String() string {
 15513  	return awsutil.Prettify(s)
 15514  }
 15515  
 15516  // GoString returns the string representation.
 15517  //
 15518  // API parameter values that are decorated as "sensitive" in the API will not
 15519  // be included in the string output. The member name will be present, but the
 15520  // value will be replaced with "sensitive".
 15521  func (s CreateCommitOutput) GoString() string {
 15522  	return s.String()
 15523  }
 15524  
 15525  // SetCommitId sets the CommitId field's value.
 15526  func (s *CreateCommitOutput) SetCommitId(v string) *CreateCommitOutput {
 15527  	s.CommitId = &v
 15528  	return s
 15529  }
 15530  
 15531  // SetFilesAdded sets the FilesAdded field's value.
 15532  func (s *CreateCommitOutput) SetFilesAdded(v []*FileMetadata) *CreateCommitOutput {
 15533  	s.FilesAdded = v
 15534  	return s
 15535  }
 15536  
 15537  // SetFilesDeleted sets the FilesDeleted field's value.
 15538  func (s *CreateCommitOutput) SetFilesDeleted(v []*FileMetadata) *CreateCommitOutput {
 15539  	s.FilesDeleted = v
 15540  	return s
 15541  }
 15542  
 15543  // SetFilesUpdated sets the FilesUpdated field's value.
 15544  func (s *CreateCommitOutput) SetFilesUpdated(v []*FileMetadata) *CreateCommitOutput {
 15545  	s.FilesUpdated = v
 15546  	return s
 15547  }
 15548  
 15549  // SetTreeId sets the TreeId field's value.
 15550  func (s *CreateCommitOutput) SetTreeId(v string) *CreateCommitOutput {
 15551  	s.TreeId = &v
 15552  	return s
 15553  }
 15554  
 15555  type CreatePullRequestApprovalRuleInput struct {
 15556  	_ struct{} `type:"structure"`
 15557  
 15558  	// The content of the approval rule, including the number of approvals needed
 15559  	// and the structure of an approval pool defined for approvals, if any. For
 15560  	// more information about approval pools, see the AWS CodeCommit User Guide.
 15561  	//
 15562  	// When you create the content of the approval rule, you can specify approvers
 15563  	// in an approval pool in one of two ways:
 15564  	//
 15565  	//    * CodeCommitApprovers: This option only requires an AWS account and a
 15566  	//    resource. It can be used for both IAM users and federated access users
 15567  	//    whose name matches the provided resource name. This is a very powerful
 15568  	//    option that offers a great deal of flexibility. For example, if you specify
 15569  	//    the AWS account 123456789012 and Mary_Major, all of the following would
 15570  	//    be counted as approvals coming from that user: An IAM user in the account
 15571  	//    (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified
 15572  	//    in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
 15573  	//    This option does not recognize an active session of someone assuming the
 15574  	//    role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major)
 15575  	//    unless you include a wildcard (*Mary_Major).
 15576  	//
 15577  	//    * Fully qualified ARN: This option allows you to specify the fully qualified
 15578  	//    Amazon Resource Name (ARN) of the IAM user or role.
 15579  	//
 15580  	// For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers
 15581  	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
 15582  	// in the IAM User Guide.
 15583  	//
 15584  	// ApprovalRuleContent is a required field
 15585  	ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string" required:"true"`
 15586  
 15587  	// The name for the approval rule.
 15588  	//
 15589  	// ApprovalRuleName is a required field
 15590  	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"`
 15591  
 15592  	// The system-generated ID of the pull request for which you want to create
 15593  	// the approval rule.
 15594  	//
 15595  	// PullRequestId is a required field
 15596  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 15597  }
 15598  
 15599  // String returns the string representation.
 15600  //
 15601  // API parameter values that are decorated as "sensitive" in the API will not
 15602  // be included in the string output. The member name will be present, but the
 15603  // value will be replaced with "sensitive".
 15604  func (s CreatePullRequestApprovalRuleInput) String() string {
 15605  	return awsutil.Prettify(s)
 15606  }
 15607  
 15608  // GoString returns the string representation.
 15609  //
 15610  // API parameter values that are decorated as "sensitive" in the API will not
 15611  // be included in the string output. The member name will be present, but the
 15612  // value will be replaced with "sensitive".
 15613  func (s CreatePullRequestApprovalRuleInput) GoString() string {
 15614  	return s.String()
 15615  }
 15616  
 15617  // Validate inspects the fields of the type to determine if they are valid.
 15618  func (s *CreatePullRequestApprovalRuleInput) Validate() error {
 15619  	invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestApprovalRuleInput"}
 15620  	if s.ApprovalRuleContent == nil {
 15621  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleContent"))
 15622  	}
 15623  	if s.ApprovalRuleContent != nil && len(*s.ApprovalRuleContent) < 1 {
 15624  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleContent", 1))
 15625  	}
 15626  	if s.ApprovalRuleName == nil {
 15627  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName"))
 15628  	}
 15629  	if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 {
 15630  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1))
 15631  	}
 15632  	if s.PullRequestId == nil {
 15633  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 15634  	}
 15635  
 15636  	if invalidParams.Len() > 0 {
 15637  		return invalidParams
 15638  	}
 15639  	return nil
 15640  }
 15641  
 15642  // SetApprovalRuleContent sets the ApprovalRuleContent field's value.
 15643  func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleContent(v string) *CreatePullRequestApprovalRuleInput {
 15644  	s.ApprovalRuleContent = &v
 15645  	return s
 15646  }
 15647  
 15648  // SetApprovalRuleName sets the ApprovalRuleName field's value.
 15649  func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *CreatePullRequestApprovalRuleInput {
 15650  	s.ApprovalRuleName = &v
 15651  	return s
 15652  }
 15653  
 15654  // SetPullRequestId sets the PullRequestId field's value.
 15655  func (s *CreatePullRequestApprovalRuleInput) SetPullRequestId(v string) *CreatePullRequestApprovalRuleInput {
 15656  	s.PullRequestId = &v
 15657  	return s
 15658  }
 15659  
 15660  type CreatePullRequestApprovalRuleOutput struct {
 15661  	_ struct{} `type:"structure"`
 15662  
 15663  	// Information about the created approval rule.
 15664  	//
 15665  	// ApprovalRule is a required field
 15666  	ApprovalRule *ApprovalRule `locationName:"approvalRule" type:"structure" required:"true"`
 15667  }
 15668  
 15669  // String returns the string representation.
 15670  //
 15671  // API parameter values that are decorated as "sensitive" in the API will not
 15672  // be included in the string output. The member name will be present, but the
 15673  // value will be replaced with "sensitive".
 15674  func (s CreatePullRequestApprovalRuleOutput) String() string {
 15675  	return awsutil.Prettify(s)
 15676  }
 15677  
 15678  // GoString returns the string representation.
 15679  //
 15680  // API parameter values that are decorated as "sensitive" in the API will not
 15681  // be included in the string output. The member name will be present, but the
 15682  // value will be replaced with "sensitive".
 15683  func (s CreatePullRequestApprovalRuleOutput) GoString() string {
 15684  	return s.String()
 15685  }
 15686  
 15687  // SetApprovalRule sets the ApprovalRule field's value.
 15688  func (s *CreatePullRequestApprovalRuleOutput) SetApprovalRule(v *ApprovalRule) *CreatePullRequestApprovalRuleOutput {
 15689  	s.ApprovalRule = v
 15690  	return s
 15691  }
 15692  
 15693  type CreatePullRequestInput struct {
 15694  	_ struct{} `type:"structure"`
 15695  
 15696  	// A unique, client-generated idempotency token that, when provided in a request,
 15697  	// ensures the request cannot be repeated with a changed parameter. If a request
 15698  	// is received with the same parameters and a token is included, the request
 15699  	// returns information about the initial request that used that token.
 15700  	//
 15701  	// The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK,
 15702  	// an idempotency token is created for you.
 15703  	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
 15704  
 15705  	// A description of the pull request.
 15706  	Description *string `locationName:"description" type:"string"`
 15707  
 15708  	// The targets for the pull request, including the source of the code to be
 15709  	// reviewed (the source branch) and the destination where the creator of the
 15710  	// pull request intends the code to be merged after the pull request is closed
 15711  	// (the destination branch).
 15712  	//
 15713  	// Targets is a required field
 15714  	Targets []*Target `locationName:"targets" type:"list" required:"true"`
 15715  
 15716  	// The title of the pull request. This title is used to identify the pull request
 15717  	// to other users in the repository.
 15718  	//
 15719  	// Title is a required field
 15720  	Title *string `locationName:"title" type:"string" required:"true"`
 15721  }
 15722  
 15723  // String returns the string representation.
 15724  //
 15725  // API parameter values that are decorated as "sensitive" in the API will not
 15726  // be included in the string output. The member name will be present, but the
 15727  // value will be replaced with "sensitive".
 15728  func (s CreatePullRequestInput) String() string {
 15729  	return awsutil.Prettify(s)
 15730  }
 15731  
 15732  // GoString returns the string representation.
 15733  //
 15734  // API parameter values that are decorated as "sensitive" in the API will not
 15735  // be included in the string output. The member name will be present, but the
 15736  // value will be replaced with "sensitive".
 15737  func (s CreatePullRequestInput) GoString() string {
 15738  	return s.String()
 15739  }
 15740  
 15741  // Validate inspects the fields of the type to determine if they are valid.
 15742  func (s *CreatePullRequestInput) Validate() error {
 15743  	invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestInput"}
 15744  	if s.Targets == nil {
 15745  		invalidParams.Add(request.NewErrParamRequired("Targets"))
 15746  	}
 15747  	if s.Title == nil {
 15748  		invalidParams.Add(request.NewErrParamRequired("Title"))
 15749  	}
 15750  	if s.Targets != nil {
 15751  		for i, v := range s.Targets {
 15752  			if v == nil {
 15753  				continue
 15754  			}
 15755  			if err := v.Validate(); err != nil {
 15756  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
 15757  			}
 15758  		}
 15759  	}
 15760  
 15761  	if invalidParams.Len() > 0 {
 15762  		return invalidParams
 15763  	}
 15764  	return nil
 15765  }
 15766  
 15767  // SetClientRequestToken sets the ClientRequestToken field's value.
 15768  func (s *CreatePullRequestInput) SetClientRequestToken(v string) *CreatePullRequestInput {
 15769  	s.ClientRequestToken = &v
 15770  	return s
 15771  }
 15772  
 15773  // SetDescription sets the Description field's value.
 15774  func (s *CreatePullRequestInput) SetDescription(v string) *CreatePullRequestInput {
 15775  	s.Description = &v
 15776  	return s
 15777  }
 15778  
 15779  // SetTargets sets the Targets field's value.
 15780  func (s *CreatePullRequestInput) SetTargets(v []*Target) *CreatePullRequestInput {
 15781  	s.Targets = v
 15782  	return s
 15783  }
 15784  
 15785  // SetTitle sets the Title field's value.
 15786  func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput {
 15787  	s.Title = &v
 15788  	return s
 15789  }
 15790  
 15791  type CreatePullRequestOutput struct {
 15792  	_ struct{} `type:"structure"`
 15793  
 15794  	// Information about the newly created pull request.
 15795  	//
 15796  	// PullRequest is a required field
 15797  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
 15798  }
 15799  
 15800  // String returns the string representation.
 15801  //
 15802  // API parameter values that are decorated as "sensitive" in the API will not
 15803  // be included in the string output. The member name will be present, but the
 15804  // value will be replaced with "sensitive".
 15805  func (s CreatePullRequestOutput) String() string {
 15806  	return awsutil.Prettify(s)
 15807  }
 15808  
 15809  // GoString returns the string representation.
 15810  //
 15811  // API parameter values that are decorated as "sensitive" in the API will not
 15812  // be included in the string output. The member name will be present, but the
 15813  // value will be replaced with "sensitive".
 15814  func (s CreatePullRequestOutput) GoString() string {
 15815  	return s.String()
 15816  }
 15817  
 15818  // SetPullRequest sets the PullRequest field's value.
 15819  func (s *CreatePullRequestOutput) SetPullRequest(v *PullRequest) *CreatePullRequestOutput {
 15820  	s.PullRequest = v
 15821  	return s
 15822  }
 15823  
 15824  // Represents the input of a create repository operation.
 15825  type CreateRepositoryInput struct {
 15826  	_ struct{} `type:"structure"`
 15827  
 15828  	// A comment or description about the new repository.
 15829  	//
 15830  	// The description field for a repository accepts all HTML characters and all
 15831  	// valid Unicode characters. Applications that do not HTML-encode the description
 15832  	// and display it in a webpage can expose users to potentially malicious code.
 15833  	// Make sure that you HTML-encode the description field in any application that
 15834  	// uses this API to display the repository description on a webpage.
 15835  	RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
 15836  
 15837  	// The name of the new repository to be created.
 15838  	//
 15839  	// The repository name must be unique across the calling AWS account. Repository
 15840  	// names are limited to 100 alphanumeric, dash, and underscore characters, and
 15841  	// cannot include certain characters. For more information about the limits
 15842  	// on repository names, see Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
 15843  	// in the AWS CodeCommit User Guide. The suffix .git is prohibited.
 15844  	//
 15845  	// RepositoryName is a required field
 15846  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 15847  
 15848  	// One or more tag key-value pairs to use when tagging this repository.
 15849  	Tags map[string]*string `locationName:"tags" type:"map"`
 15850  }
 15851  
 15852  // String returns the string representation.
 15853  //
 15854  // API parameter values that are decorated as "sensitive" in the API will not
 15855  // be included in the string output. The member name will be present, but the
 15856  // value will be replaced with "sensitive".
 15857  func (s CreateRepositoryInput) String() string {
 15858  	return awsutil.Prettify(s)
 15859  }
 15860  
 15861  // GoString returns the string representation.
 15862  //
 15863  // API parameter values that are decorated as "sensitive" in the API will not
 15864  // be included in the string output. The member name will be present, but the
 15865  // value will be replaced with "sensitive".
 15866  func (s CreateRepositoryInput) GoString() string {
 15867  	return s.String()
 15868  }
 15869  
 15870  // Validate inspects the fields of the type to determine if they are valid.
 15871  func (s *CreateRepositoryInput) Validate() error {
 15872  	invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"}
 15873  	if s.RepositoryName == nil {
 15874  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 15875  	}
 15876  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 15877  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 15878  	}
 15879  
 15880  	if invalidParams.Len() > 0 {
 15881  		return invalidParams
 15882  	}
 15883  	return nil
 15884  }
 15885  
 15886  // SetRepositoryDescription sets the RepositoryDescription field's value.
 15887  func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput {
 15888  	s.RepositoryDescription = &v
 15889  	return s
 15890  }
 15891  
 15892  // SetRepositoryName sets the RepositoryName field's value.
 15893  func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput {
 15894  	s.RepositoryName = &v
 15895  	return s
 15896  }
 15897  
 15898  // SetTags sets the Tags field's value.
 15899  func (s *CreateRepositoryInput) SetTags(v map[string]*string) *CreateRepositoryInput {
 15900  	s.Tags = v
 15901  	return s
 15902  }
 15903  
 15904  // Represents the output of a create repository operation.
 15905  type CreateRepositoryOutput struct {
 15906  	_ struct{} `type:"structure"`
 15907  
 15908  	// Information about the newly created repository.
 15909  	RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
 15910  }
 15911  
 15912  // String returns the string representation.
 15913  //
 15914  // API parameter values that are decorated as "sensitive" in the API will not
 15915  // be included in the string output. The member name will be present, but the
 15916  // value will be replaced with "sensitive".
 15917  func (s CreateRepositoryOutput) String() string {
 15918  	return awsutil.Prettify(s)
 15919  }
 15920  
 15921  // GoString returns the string representation.
 15922  //
 15923  // API parameter values that are decorated as "sensitive" in the API will not
 15924  // be included in the string output. The member name will be present, but the
 15925  // value will be replaced with "sensitive".
 15926  func (s CreateRepositoryOutput) GoString() string {
 15927  	return s.String()
 15928  }
 15929  
 15930  // SetRepositoryMetadata sets the RepositoryMetadata field's value.
 15931  func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput {
 15932  	s.RepositoryMetadata = v
 15933  	return s
 15934  }
 15935  
 15936  type CreateUnreferencedMergeCommitInput struct {
 15937  	_ struct{} `type:"structure"`
 15938  
 15939  	// The name of the author who created the unreferenced commit. This information
 15940  	// is used as both the author and committer for the commit.
 15941  	AuthorName *string `locationName:"authorName" type:"string"`
 15942  
 15943  	// The commit message for the unreferenced commit.
 15944  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 15945  
 15946  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 15947  	// is used, which returns a not-mergeable result if the same file has differences
 15948  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 15949  	// mergeable if the same file in both branches has differences on the same line.
 15950  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 15951  
 15952  	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
 15953  	// when resolving conflicts during a merge.
 15954  	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
 15955  
 15956  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 15957  	// automatically merging two versions of a file. The default is NONE, which
 15958  	// requires any conflicts to be resolved manually before the merge operation
 15959  	// is successful.
 15960  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 15961  
 15962  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 15963  	// a commit (for example, a branch name or a full commit ID).
 15964  	//
 15965  	// DestinationCommitSpecifier is a required field
 15966  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 15967  
 15968  	// The email address for the person who created the unreferenced commit.
 15969  	Email *string `locationName:"email" type:"string"`
 15970  
 15971  	// If the commit contains deletions, whether to keep a folder or folder structure
 15972  	// if the changes leave the folders empty. If this is specified as true, a .gitkeep
 15973  	// file is created for empty folders. The default is false.
 15974  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 15975  
 15976  	// The merge option or strategy you want to use to merge the code.
 15977  	//
 15978  	// MergeOption is a required field
 15979  	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
 15980  
 15981  	// The name of the repository where you want to create the unreferenced merge
 15982  	// commit.
 15983  	//
 15984  	// RepositoryName is a required field
 15985  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 15986  
 15987  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 15988  	// a commit (for example, a branch name or a full commit ID).
 15989  	//
 15990  	// SourceCommitSpecifier is a required field
 15991  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 15992  }
 15993  
 15994  // String returns the string representation.
 15995  //
 15996  // API parameter values that are decorated as "sensitive" in the API will not
 15997  // be included in the string output. The member name will be present, but the
 15998  // value will be replaced with "sensitive".
 15999  func (s CreateUnreferencedMergeCommitInput) String() string {
 16000  	return awsutil.Prettify(s)
 16001  }
 16002  
 16003  // GoString returns the string representation.
 16004  //
 16005  // API parameter values that are decorated as "sensitive" in the API will not
 16006  // be included in the string output. The member name will be present, but the
 16007  // value will be replaced with "sensitive".
 16008  func (s CreateUnreferencedMergeCommitInput) GoString() string {
 16009  	return s.String()
 16010  }
 16011  
 16012  // Validate inspects the fields of the type to determine if they are valid.
 16013  func (s *CreateUnreferencedMergeCommitInput) Validate() error {
 16014  	invalidParams := request.ErrInvalidParams{Context: "CreateUnreferencedMergeCommitInput"}
 16015  	if s.DestinationCommitSpecifier == nil {
 16016  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 16017  	}
 16018  	if s.MergeOption == nil {
 16019  		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
 16020  	}
 16021  	if s.RepositoryName == nil {
 16022  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 16023  	}
 16024  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 16025  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 16026  	}
 16027  	if s.SourceCommitSpecifier == nil {
 16028  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 16029  	}
 16030  	if s.ConflictResolution != nil {
 16031  		if err := s.ConflictResolution.Validate(); err != nil {
 16032  			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
 16033  		}
 16034  	}
 16035  
 16036  	if invalidParams.Len() > 0 {
 16037  		return invalidParams
 16038  	}
 16039  	return nil
 16040  }
 16041  
 16042  // SetAuthorName sets the AuthorName field's value.
 16043  func (s *CreateUnreferencedMergeCommitInput) SetAuthorName(v string) *CreateUnreferencedMergeCommitInput {
 16044  	s.AuthorName = &v
 16045  	return s
 16046  }
 16047  
 16048  // SetCommitMessage sets the CommitMessage field's value.
 16049  func (s *CreateUnreferencedMergeCommitInput) SetCommitMessage(v string) *CreateUnreferencedMergeCommitInput {
 16050  	s.CommitMessage = &v
 16051  	return s
 16052  }
 16053  
 16054  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 16055  func (s *CreateUnreferencedMergeCommitInput) SetConflictDetailLevel(v string) *CreateUnreferencedMergeCommitInput {
 16056  	s.ConflictDetailLevel = &v
 16057  	return s
 16058  }
 16059  
 16060  // SetConflictResolution sets the ConflictResolution field's value.
 16061  func (s *CreateUnreferencedMergeCommitInput) SetConflictResolution(v *ConflictResolution) *CreateUnreferencedMergeCommitInput {
 16062  	s.ConflictResolution = v
 16063  	return s
 16064  }
 16065  
 16066  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 16067  func (s *CreateUnreferencedMergeCommitInput) SetConflictResolutionStrategy(v string) *CreateUnreferencedMergeCommitInput {
 16068  	s.ConflictResolutionStrategy = &v
 16069  	return s
 16070  }
 16071  
 16072  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 16073  func (s *CreateUnreferencedMergeCommitInput) SetDestinationCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput {
 16074  	s.DestinationCommitSpecifier = &v
 16075  	return s
 16076  }
 16077  
 16078  // SetEmail sets the Email field's value.
 16079  func (s *CreateUnreferencedMergeCommitInput) SetEmail(v string) *CreateUnreferencedMergeCommitInput {
 16080  	s.Email = &v
 16081  	return s
 16082  }
 16083  
 16084  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 16085  func (s *CreateUnreferencedMergeCommitInput) SetKeepEmptyFolders(v bool) *CreateUnreferencedMergeCommitInput {
 16086  	s.KeepEmptyFolders = &v
 16087  	return s
 16088  }
 16089  
 16090  // SetMergeOption sets the MergeOption field's value.
 16091  func (s *CreateUnreferencedMergeCommitInput) SetMergeOption(v string) *CreateUnreferencedMergeCommitInput {
 16092  	s.MergeOption = &v
 16093  	return s
 16094  }
 16095  
 16096  // SetRepositoryName sets the RepositoryName field's value.
 16097  func (s *CreateUnreferencedMergeCommitInput) SetRepositoryName(v string) *CreateUnreferencedMergeCommitInput {
 16098  	s.RepositoryName = &v
 16099  	return s
 16100  }
 16101  
 16102  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 16103  func (s *CreateUnreferencedMergeCommitInput) SetSourceCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput {
 16104  	s.SourceCommitSpecifier = &v
 16105  	return s
 16106  }
 16107  
 16108  type CreateUnreferencedMergeCommitOutput struct {
 16109  	_ struct{} `type:"structure"`
 16110  
 16111  	// The full commit ID of the commit that contains your merge results.
 16112  	CommitId *string `locationName:"commitId" type:"string"`
 16113  
 16114  	// The full SHA-1 pointer of the tree information for the commit that contains
 16115  	// the merge results.
 16116  	TreeId *string `locationName:"treeId" type:"string"`
 16117  }
 16118  
 16119  // String returns the string representation.
 16120  //
 16121  // API parameter values that are decorated as "sensitive" in the API will not
 16122  // be included in the string output. The member name will be present, but the
 16123  // value will be replaced with "sensitive".
 16124  func (s CreateUnreferencedMergeCommitOutput) String() string {
 16125  	return awsutil.Prettify(s)
 16126  }
 16127  
 16128  // GoString returns the string representation.
 16129  //
 16130  // API parameter values that are decorated as "sensitive" in the API will not
 16131  // be included in the string output. The member name will be present, but the
 16132  // value will be replaced with "sensitive".
 16133  func (s CreateUnreferencedMergeCommitOutput) GoString() string {
 16134  	return s.String()
 16135  }
 16136  
 16137  // SetCommitId sets the CommitId field's value.
 16138  func (s *CreateUnreferencedMergeCommitOutput) SetCommitId(v string) *CreateUnreferencedMergeCommitOutput {
 16139  	s.CommitId = &v
 16140  	return s
 16141  }
 16142  
 16143  // SetTreeId sets the TreeId field's value.
 16144  func (s *CreateUnreferencedMergeCommitOutput) SetTreeId(v string) *CreateUnreferencedMergeCommitOutput {
 16145  	s.TreeId = &v
 16146  	return s
 16147  }
 16148  
 16149  // The specified branch is the default branch for the repository, and cannot
 16150  // be deleted. To delete this branch, you must first set another branch as the
 16151  // default branch.
 16152  type DefaultBranchCannotBeDeletedException struct {
 16153  	_            struct{}                  `type:"structure"`
 16154  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 16155  
 16156  	Message_ *string `locationName:"message" type:"string"`
 16157  }
 16158  
 16159  // String returns the string representation.
 16160  //
 16161  // API parameter values that are decorated as "sensitive" in the API will not
 16162  // be included in the string output. The member name will be present, but the
 16163  // value will be replaced with "sensitive".
 16164  func (s DefaultBranchCannotBeDeletedException) String() string {
 16165  	return awsutil.Prettify(s)
 16166  }
 16167  
 16168  // GoString returns the string representation.
 16169  //
 16170  // API parameter values that are decorated as "sensitive" in the API will not
 16171  // be included in the string output. The member name will be present, but the
 16172  // value will be replaced with "sensitive".
 16173  func (s DefaultBranchCannotBeDeletedException) GoString() string {
 16174  	return s.String()
 16175  }
 16176  
 16177  func newErrorDefaultBranchCannotBeDeletedException(v protocol.ResponseMetadata) error {
 16178  	return &DefaultBranchCannotBeDeletedException{
 16179  		RespMetadata: v,
 16180  	}
 16181  }
 16182  
 16183  // Code returns the exception type name.
 16184  func (s *DefaultBranchCannotBeDeletedException) Code() string {
 16185  	return "DefaultBranchCannotBeDeletedException"
 16186  }
 16187  
 16188  // Message returns the exception's message.
 16189  func (s *DefaultBranchCannotBeDeletedException) Message() string {
 16190  	if s.Message_ != nil {
 16191  		return *s.Message_
 16192  	}
 16193  	return ""
 16194  }
 16195  
 16196  // OrigErr always returns nil, satisfies awserr.Error interface.
 16197  func (s *DefaultBranchCannotBeDeletedException) OrigErr() error {
 16198  	return nil
 16199  }
 16200  
 16201  func (s *DefaultBranchCannotBeDeletedException) Error() string {
 16202  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 16203  }
 16204  
 16205  // Status code returns the HTTP status code for the request's response error.
 16206  func (s *DefaultBranchCannotBeDeletedException) StatusCode() int {
 16207  	return s.RespMetadata.StatusCode
 16208  }
 16209  
 16210  // RequestID returns the service's response RequestID for request.
 16211  func (s *DefaultBranchCannotBeDeletedException) RequestID() string {
 16212  	return s.RespMetadata.RequestID
 16213  }
 16214  
 16215  type DeleteApprovalRuleTemplateInput struct {
 16216  	_ struct{} `type:"structure"`
 16217  
 16218  	// The name of the approval rule template to delete.
 16219  	//
 16220  	// ApprovalRuleTemplateName is a required field
 16221  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 16222  }
 16223  
 16224  // String returns the string representation.
 16225  //
 16226  // API parameter values that are decorated as "sensitive" in the API will not
 16227  // be included in the string output. The member name will be present, but the
 16228  // value will be replaced with "sensitive".
 16229  func (s DeleteApprovalRuleTemplateInput) String() string {
 16230  	return awsutil.Prettify(s)
 16231  }
 16232  
 16233  // GoString returns the string representation.
 16234  //
 16235  // API parameter values that are decorated as "sensitive" in the API will not
 16236  // be included in the string output. The member name will be present, but the
 16237  // value will be replaced with "sensitive".
 16238  func (s DeleteApprovalRuleTemplateInput) GoString() string {
 16239  	return s.String()
 16240  }
 16241  
 16242  // Validate inspects the fields of the type to determine if they are valid.
 16243  func (s *DeleteApprovalRuleTemplateInput) Validate() error {
 16244  	invalidParams := request.ErrInvalidParams{Context: "DeleteApprovalRuleTemplateInput"}
 16245  	if s.ApprovalRuleTemplateName == nil {
 16246  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 16247  	}
 16248  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 16249  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 16250  	}
 16251  
 16252  	if invalidParams.Len() > 0 {
 16253  		return invalidParams
 16254  	}
 16255  	return nil
 16256  }
 16257  
 16258  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 16259  func (s *DeleteApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *DeleteApprovalRuleTemplateInput {
 16260  	s.ApprovalRuleTemplateName = &v
 16261  	return s
 16262  }
 16263  
 16264  type DeleteApprovalRuleTemplateOutput struct {
 16265  	_ struct{} `type:"structure"`
 16266  
 16267  	// The system-generated ID of the deleted approval rule template. If the template
 16268  	// has been previously deleted, the only response is a 200 OK.
 16269  	//
 16270  	// ApprovalRuleTemplateId is a required field
 16271  	ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string" required:"true"`
 16272  }
 16273  
 16274  // String returns the string representation.
 16275  //
 16276  // API parameter values that are decorated as "sensitive" in the API will not
 16277  // be included in the string output. The member name will be present, but the
 16278  // value will be replaced with "sensitive".
 16279  func (s DeleteApprovalRuleTemplateOutput) String() string {
 16280  	return awsutil.Prettify(s)
 16281  }
 16282  
 16283  // GoString returns the string representation.
 16284  //
 16285  // API parameter values that are decorated as "sensitive" in the API will not
 16286  // be included in the string output. The member name will be present, but the
 16287  // value will be replaced with "sensitive".
 16288  func (s DeleteApprovalRuleTemplateOutput) GoString() string {
 16289  	return s.String()
 16290  }
 16291  
 16292  // SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value.
 16293  func (s *DeleteApprovalRuleTemplateOutput) SetApprovalRuleTemplateId(v string) *DeleteApprovalRuleTemplateOutput {
 16294  	s.ApprovalRuleTemplateId = &v
 16295  	return s
 16296  }
 16297  
 16298  // Represents the input of a delete branch operation.
 16299  type DeleteBranchInput struct {
 16300  	_ struct{} `type:"structure"`
 16301  
 16302  	// The name of the branch to delete.
 16303  	//
 16304  	// BranchName is a required field
 16305  	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
 16306  
 16307  	// The name of the repository that contains the branch to be deleted.
 16308  	//
 16309  	// RepositoryName is a required field
 16310  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 16311  }
 16312  
 16313  // String returns the string representation.
 16314  //
 16315  // API parameter values that are decorated as "sensitive" in the API will not
 16316  // be included in the string output. The member name will be present, but the
 16317  // value will be replaced with "sensitive".
 16318  func (s DeleteBranchInput) String() string {
 16319  	return awsutil.Prettify(s)
 16320  }
 16321  
 16322  // GoString returns the string representation.
 16323  //
 16324  // API parameter values that are decorated as "sensitive" in the API will not
 16325  // be included in the string output. The member name will be present, but the
 16326  // value will be replaced with "sensitive".
 16327  func (s DeleteBranchInput) GoString() string {
 16328  	return s.String()
 16329  }
 16330  
 16331  // Validate inspects the fields of the type to determine if they are valid.
 16332  func (s *DeleteBranchInput) Validate() error {
 16333  	invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"}
 16334  	if s.BranchName == nil {
 16335  		invalidParams.Add(request.NewErrParamRequired("BranchName"))
 16336  	}
 16337  	if s.BranchName != nil && len(*s.BranchName) < 1 {
 16338  		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
 16339  	}
 16340  	if s.RepositoryName == nil {
 16341  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 16342  	}
 16343  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 16344  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 16345  	}
 16346  
 16347  	if invalidParams.Len() > 0 {
 16348  		return invalidParams
 16349  	}
 16350  	return nil
 16351  }
 16352  
 16353  // SetBranchName sets the BranchName field's value.
 16354  func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput {
 16355  	s.BranchName = &v
 16356  	return s
 16357  }
 16358  
 16359  // SetRepositoryName sets the RepositoryName field's value.
 16360  func (s *DeleteBranchInput) SetRepositoryName(v string) *DeleteBranchInput {
 16361  	s.RepositoryName = &v
 16362  	return s
 16363  }
 16364  
 16365  // Represents the output of a delete branch operation.
 16366  type DeleteBranchOutput struct {
 16367  	_ struct{} `type:"structure"`
 16368  
 16369  	// Information about the branch deleted by the operation, including the branch
 16370  	// name and the commit ID that was the tip of the branch.
 16371  	DeletedBranch *BranchInfo `locationName:"deletedBranch" type:"structure"`
 16372  }
 16373  
 16374  // String returns the string representation.
 16375  //
 16376  // API parameter values that are decorated as "sensitive" in the API will not
 16377  // be included in the string output. The member name will be present, but the
 16378  // value will be replaced with "sensitive".
 16379  func (s DeleteBranchOutput) String() string {
 16380  	return awsutil.Prettify(s)
 16381  }
 16382  
 16383  // GoString returns the string representation.
 16384  //
 16385  // API parameter values that are decorated as "sensitive" in the API will not
 16386  // be included in the string output. The member name will be present, but the
 16387  // value will be replaced with "sensitive".
 16388  func (s DeleteBranchOutput) GoString() string {
 16389  	return s.String()
 16390  }
 16391  
 16392  // SetDeletedBranch sets the DeletedBranch field's value.
 16393  func (s *DeleteBranchOutput) SetDeletedBranch(v *BranchInfo) *DeleteBranchOutput {
 16394  	s.DeletedBranch = v
 16395  	return s
 16396  }
 16397  
 16398  type DeleteCommentContentInput struct {
 16399  	_ struct{} `type:"structure"`
 16400  
 16401  	// The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
 16402  	// or GetCommentsForPullRequest.
 16403  	//
 16404  	// CommentId is a required field
 16405  	CommentId *string `locationName:"commentId" type:"string" required:"true"`
 16406  }
 16407  
 16408  // String returns the string representation.
 16409  //
 16410  // API parameter values that are decorated as "sensitive" in the API will not
 16411  // be included in the string output. The member name will be present, but the
 16412  // value will be replaced with "sensitive".
 16413  func (s DeleteCommentContentInput) String() string {
 16414  	return awsutil.Prettify(s)
 16415  }
 16416  
 16417  // GoString returns the string representation.
 16418  //
 16419  // API parameter values that are decorated as "sensitive" in the API will not
 16420  // be included in the string output. The member name will be present, but the
 16421  // value will be replaced with "sensitive".
 16422  func (s DeleteCommentContentInput) GoString() string {
 16423  	return s.String()
 16424  }
 16425  
 16426  // Validate inspects the fields of the type to determine if they are valid.
 16427  func (s *DeleteCommentContentInput) Validate() error {
 16428  	invalidParams := request.ErrInvalidParams{Context: "DeleteCommentContentInput"}
 16429  	if s.CommentId == nil {
 16430  		invalidParams.Add(request.NewErrParamRequired("CommentId"))
 16431  	}
 16432  
 16433  	if invalidParams.Len() > 0 {
 16434  		return invalidParams
 16435  	}
 16436  	return nil
 16437  }
 16438  
 16439  // SetCommentId sets the CommentId field's value.
 16440  func (s *DeleteCommentContentInput) SetCommentId(v string) *DeleteCommentContentInput {
 16441  	s.CommentId = &v
 16442  	return s
 16443  }
 16444  
 16445  type DeleteCommentContentOutput struct {
 16446  	_ struct{} `type:"structure"`
 16447  
 16448  	// Information about the comment you just deleted.
 16449  	Comment *Comment `locationName:"comment" type:"structure"`
 16450  }
 16451  
 16452  // String returns the string representation.
 16453  //
 16454  // API parameter values that are decorated as "sensitive" in the API will not
 16455  // be included in the string output. The member name will be present, but the
 16456  // value will be replaced with "sensitive".
 16457  func (s DeleteCommentContentOutput) String() string {
 16458  	return awsutil.Prettify(s)
 16459  }
 16460  
 16461  // GoString returns the string representation.
 16462  //
 16463  // API parameter values that are decorated as "sensitive" in the API will not
 16464  // be included in the string output. The member name will be present, but the
 16465  // value will be replaced with "sensitive".
 16466  func (s DeleteCommentContentOutput) GoString() string {
 16467  	return s.String()
 16468  }
 16469  
 16470  // SetComment sets the Comment field's value.
 16471  func (s *DeleteCommentContentOutput) SetComment(v *Comment) *DeleteCommentContentOutput {
 16472  	s.Comment = v
 16473  	return s
 16474  }
 16475  
 16476  // A file that is deleted as part of a commit.
 16477  type DeleteFileEntry struct {
 16478  	_ struct{} `type:"structure"`
 16479  
 16480  	// The full path of the file to be deleted, including the name of the file.
 16481  	//
 16482  	// FilePath is a required field
 16483  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 16484  }
 16485  
 16486  // String returns the string representation.
 16487  //
 16488  // API parameter values that are decorated as "sensitive" in the API will not
 16489  // be included in the string output. The member name will be present, but the
 16490  // value will be replaced with "sensitive".
 16491  func (s DeleteFileEntry) String() string {
 16492  	return awsutil.Prettify(s)
 16493  }
 16494  
 16495  // GoString returns the string representation.
 16496  //
 16497  // API parameter values that are decorated as "sensitive" in the API will not
 16498  // be included in the string output. The member name will be present, but the
 16499  // value will be replaced with "sensitive".
 16500  func (s DeleteFileEntry) GoString() string {
 16501  	return s.String()
 16502  }
 16503  
 16504  // Validate inspects the fields of the type to determine if they are valid.
 16505  func (s *DeleteFileEntry) Validate() error {
 16506  	invalidParams := request.ErrInvalidParams{Context: "DeleteFileEntry"}
 16507  	if s.FilePath == nil {
 16508  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 16509  	}
 16510  
 16511  	if invalidParams.Len() > 0 {
 16512  		return invalidParams
 16513  	}
 16514  	return nil
 16515  }
 16516  
 16517  // SetFilePath sets the FilePath field's value.
 16518  func (s *DeleteFileEntry) SetFilePath(v string) *DeleteFileEntry {
 16519  	s.FilePath = &v
 16520  	return s
 16521  }
 16522  
 16523  type DeleteFileInput struct {
 16524  	_ struct{} `type:"structure"`
 16525  
 16526  	// The name of the branch where the commit that deletes the file is made.
 16527  	//
 16528  	// BranchName is a required field
 16529  	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
 16530  
 16531  	// The commit message you want to include as part of deleting the file. Commit
 16532  	// messages are limited to 256 KB. If no message is specified, a default message
 16533  	// is used.
 16534  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 16535  
 16536  	// The email address for the commit that deletes the file. If no email address
 16537  	// is specified, the email address is left blank.
 16538  	Email *string `locationName:"email" type:"string"`
 16539  
 16540  	// The fully qualified path to the file that to be deleted, including the full
 16541  	// name and extension of that file. For example, /examples/file.md is a fully
 16542  	// qualified path to a file named file.md in a folder named examples.
 16543  	//
 16544  	// FilePath is a required field
 16545  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 16546  
 16547  	// If a file is the only object in the folder or directory, specifies whether
 16548  	// to delete the folder or directory that contains the file. By default, empty
 16549  	// folders are deleted. This includes empty folders that are part of the directory
 16550  	// structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and
 16551  	// dir2 and dir3 are empty, deleting the last file in dir4 also deletes the
 16552  	// empty folders dir4, dir3, and dir2.
 16553  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 16554  
 16555  	// The name of the author of the commit that deletes the file. If no name is
 16556  	// specified, the user's ARN is used as the author name and committer name.
 16557  	Name *string `locationName:"name" type:"string"`
 16558  
 16559  	// The ID of the commit that is the tip of the branch where you want to create
 16560  	// the commit that deletes the file. This must be the HEAD commit for the branch.
 16561  	// The commit that deletes the file is created from this commit ID.
 16562  	//
 16563  	// ParentCommitId is a required field
 16564  	ParentCommitId *string `locationName:"parentCommitId" type:"string" required:"true"`
 16565  
 16566  	// The name of the repository that contains the file to delete.
 16567  	//
 16568  	// RepositoryName is a required field
 16569  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 16570  }
 16571  
 16572  // String returns the string representation.
 16573  //
 16574  // API parameter values that are decorated as "sensitive" in the API will not
 16575  // be included in the string output. The member name will be present, but the
 16576  // value will be replaced with "sensitive".
 16577  func (s DeleteFileInput) String() string {
 16578  	return awsutil.Prettify(s)
 16579  }
 16580  
 16581  // GoString returns the string representation.
 16582  //
 16583  // API parameter values that are decorated as "sensitive" in the API will not
 16584  // be included in the string output. The member name will be present, but the
 16585  // value will be replaced with "sensitive".
 16586  func (s DeleteFileInput) GoString() string {
 16587  	return s.String()
 16588  }
 16589  
 16590  // Validate inspects the fields of the type to determine if they are valid.
 16591  func (s *DeleteFileInput) Validate() error {
 16592  	invalidParams := request.ErrInvalidParams{Context: "DeleteFileInput"}
 16593  	if s.BranchName == nil {
 16594  		invalidParams.Add(request.NewErrParamRequired("BranchName"))
 16595  	}
 16596  	if s.BranchName != nil && len(*s.BranchName) < 1 {
 16597  		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
 16598  	}
 16599  	if s.FilePath == nil {
 16600  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 16601  	}
 16602  	if s.ParentCommitId == nil {
 16603  		invalidParams.Add(request.NewErrParamRequired("ParentCommitId"))
 16604  	}
 16605  	if s.RepositoryName == nil {
 16606  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 16607  	}
 16608  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 16609  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 16610  	}
 16611  
 16612  	if invalidParams.Len() > 0 {
 16613  		return invalidParams
 16614  	}
 16615  	return nil
 16616  }
 16617  
 16618  // SetBranchName sets the BranchName field's value.
 16619  func (s *DeleteFileInput) SetBranchName(v string) *DeleteFileInput {
 16620  	s.BranchName = &v
 16621  	return s
 16622  }
 16623  
 16624  // SetCommitMessage sets the CommitMessage field's value.
 16625  func (s *DeleteFileInput) SetCommitMessage(v string) *DeleteFileInput {
 16626  	s.CommitMessage = &v
 16627  	return s
 16628  }
 16629  
 16630  // SetEmail sets the Email field's value.
 16631  func (s *DeleteFileInput) SetEmail(v string) *DeleteFileInput {
 16632  	s.Email = &v
 16633  	return s
 16634  }
 16635  
 16636  // SetFilePath sets the FilePath field's value.
 16637  func (s *DeleteFileInput) SetFilePath(v string) *DeleteFileInput {
 16638  	s.FilePath = &v
 16639  	return s
 16640  }
 16641  
 16642  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 16643  func (s *DeleteFileInput) SetKeepEmptyFolders(v bool) *DeleteFileInput {
 16644  	s.KeepEmptyFolders = &v
 16645  	return s
 16646  }
 16647  
 16648  // SetName sets the Name field's value.
 16649  func (s *DeleteFileInput) SetName(v string) *DeleteFileInput {
 16650  	s.Name = &v
 16651  	return s
 16652  }
 16653  
 16654  // SetParentCommitId sets the ParentCommitId field's value.
 16655  func (s *DeleteFileInput) SetParentCommitId(v string) *DeleteFileInput {
 16656  	s.ParentCommitId = &v
 16657  	return s
 16658  }
 16659  
 16660  // SetRepositoryName sets the RepositoryName field's value.
 16661  func (s *DeleteFileInput) SetRepositoryName(v string) *DeleteFileInput {
 16662  	s.RepositoryName = &v
 16663  	return s
 16664  }
 16665  
 16666  type DeleteFileOutput struct {
 16667  	_ struct{} `type:"structure"`
 16668  
 16669  	// The blob ID removed from the tree as part of deleting the file.
 16670  	//
 16671  	// BlobId is a required field
 16672  	BlobId *string `locationName:"blobId" type:"string" required:"true"`
 16673  
 16674  	// The full commit ID of the commit that contains the change that deletes the
 16675  	// file.
 16676  	//
 16677  	// CommitId is a required field
 16678  	CommitId *string `locationName:"commitId" type:"string" required:"true"`
 16679  
 16680  	// The fully qualified path to the file to be deleted, including the full name
 16681  	// and extension of that file.
 16682  	//
 16683  	// FilePath is a required field
 16684  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 16685  
 16686  	// The full SHA-1 pointer of the tree information for the commit that contains
 16687  	// the delete file change.
 16688  	//
 16689  	// TreeId is a required field
 16690  	TreeId *string `locationName:"treeId" type:"string" required:"true"`
 16691  }
 16692  
 16693  // String returns the string representation.
 16694  //
 16695  // API parameter values that are decorated as "sensitive" in the API will not
 16696  // be included in the string output. The member name will be present, but the
 16697  // value will be replaced with "sensitive".
 16698  func (s DeleteFileOutput) String() string {
 16699  	return awsutil.Prettify(s)
 16700  }
 16701  
 16702  // GoString returns the string representation.
 16703  //
 16704  // API parameter values that are decorated as "sensitive" in the API will not
 16705  // be included in the string output. The member name will be present, but the
 16706  // value will be replaced with "sensitive".
 16707  func (s DeleteFileOutput) GoString() string {
 16708  	return s.String()
 16709  }
 16710  
 16711  // SetBlobId sets the BlobId field's value.
 16712  func (s *DeleteFileOutput) SetBlobId(v string) *DeleteFileOutput {
 16713  	s.BlobId = &v
 16714  	return s
 16715  }
 16716  
 16717  // SetCommitId sets the CommitId field's value.
 16718  func (s *DeleteFileOutput) SetCommitId(v string) *DeleteFileOutput {
 16719  	s.CommitId = &v
 16720  	return s
 16721  }
 16722  
 16723  // SetFilePath sets the FilePath field's value.
 16724  func (s *DeleteFileOutput) SetFilePath(v string) *DeleteFileOutput {
 16725  	s.FilePath = &v
 16726  	return s
 16727  }
 16728  
 16729  // SetTreeId sets the TreeId field's value.
 16730  func (s *DeleteFileOutput) SetTreeId(v string) *DeleteFileOutput {
 16731  	s.TreeId = &v
 16732  	return s
 16733  }
 16734  
 16735  type DeletePullRequestApprovalRuleInput struct {
 16736  	_ struct{} `type:"structure"`
 16737  
 16738  	// The name of the approval rule you want to delete.
 16739  	//
 16740  	// ApprovalRuleName is a required field
 16741  	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"`
 16742  
 16743  	// The system-generated ID of the pull request that contains the approval rule
 16744  	// you want to delete.
 16745  	//
 16746  	// PullRequestId is a required field
 16747  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 16748  }
 16749  
 16750  // String returns the string representation.
 16751  //
 16752  // API parameter values that are decorated as "sensitive" in the API will not
 16753  // be included in the string output. The member name will be present, but the
 16754  // value will be replaced with "sensitive".
 16755  func (s DeletePullRequestApprovalRuleInput) String() string {
 16756  	return awsutil.Prettify(s)
 16757  }
 16758  
 16759  // GoString returns the string representation.
 16760  //
 16761  // API parameter values that are decorated as "sensitive" in the API will not
 16762  // be included in the string output. The member name will be present, but the
 16763  // value will be replaced with "sensitive".
 16764  func (s DeletePullRequestApprovalRuleInput) GoString() string {
 16765  	return s.String()
 16766  }
 16767  
 16768  // Validate inspects the fields of the type to determine if they are valid.
 16769  func (s *DeletePullRequestApprovalRuleInput) Validate() error {
 16770  	invalidParams := request.ErrInvalidParams{Context: "DeletePullRequestApprovalRuleInput"}
 16771  	if s.ApprovalRuleName == nil {
 16772  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName"))
 16773  	}
 16774  	if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 {
 16775  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1))
 16776  	}
 16777  	if s.PullRequestId == nil {
 16778  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 16779  	}
 16780  
 16781  	if invalidParams.Len() > 0 {
 16782  		return invalidParams
 16783  	}
 16784  	return nil
 16785  }
 16786  
 16787  // SetApprovalRuleName sets the ApprovalRuleName field's value.
 16788  func (s *DeletePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *DeletePullRequestApprovalRuleInput {
 16789  	s.ApprovalRuleName = &v
 16790  	return s
 16791  }
 16792  
 16793  // SetPullRequestId sets the PullRequestId field's value.
 16794  func (s *DeletePullRequestApprovalRuleInput) SetPullRequestId(v string) *DeletePullRequestApprovalRuleInput {
 16795  	s.PullRequestId = &v
 16796  	return s
 16797  }
 16798  
 16799  type DeletePullRequestApprovalRuleOutput struct {
 16800  	_ struct{} `type:"structure"`
 16801  
 16802  	// The ID of the deleted approval rule.
 16803  	//
 16804  	// If the approval rule was deleted in an earlier API call, the response is
 16805  	// 200 OK without content.
 16806  	//
 16807  	// ApprovalRuleId is a required field
 16808  	ApprovalRuleId *string `locationName:"approvalRuleId" type:"string" required:"true"`
 16809  }
 16810  
 16811  // String returns the string representation.
 16812  //
 16813  // API parameter values that are decorated as "sensitive" in the API will not
 16814  // be included in the string output. The member name will be present, but the
 16815  // value will be replaced with "sensitive".
 16816  func (s DeletePullRequestApprovalRuleOutput) String() string {
 16817  	return awsutil.Prettify(s)
 16818  }
 16819  
 16820  // GoString returns the string representation.
 16821  //
 16822  // API parameter values that are decorated as "sensitive" in the API will not
 16823  // be included in the string output. The member name will be present, but the
 16824  // value will be replaced with "sensitive".
 16825  func (s DeletePullRequestApprovalRuleOutput) GoString() string {
 16826  	return s.String()
 16827  }
 16828  
 16829  // SetApprovalRuleId sets the ApprovalRuleId field's value.
 16830  func (s *DeletePullRequestApprovalRuleOutput) SetApprovalRuleId(v string) *DeletePullRequestApprovalRuleOutput {
 16831  	s.ApprovalRuleId = &v
 16832  	return s
 16833  }
 16834  
 16835  // Represents the input of a delete repository operation.
 16836  type DeleteRepositoryInput struct {
 16837  	_ struct{} `type:"structure"`
 16838  
 16839  	// The name of the repository to delete.
 16840  	//
 16841  	// RepositoryName is a required field
 16842  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 16843  }
 16844  
 16845  // String returns the string representation.
 16846  //
 16847  // API parameter values that are decorated as "sensitive" in the API will not
 16848  // be included in the string output. The member name will be present, but the
 16849  // value will be replaced with "sensitive".
 16850  func (s DeleteRepositoryInput) String() string {
 16851  	return awsutil.Prettify(s)
 16852  }
 16853  
 16854  // GoString returns the string representation.
 16855  //
 16856  // API parameter values that are decorated as "sensitive" in the API will not
 16857  // be included in the string output. The member name will be present, but the
 16858  // value will be replaced with "sensitive".
 16859  func (s DeleteRepositoryInput) GoString() string {
 16860  	return s.String()
 16861  }
 16862  
 16863  // Validate inspects the fields of the type to determine if they are valid.
 16864  func (s *DeleteRepositoryInput) Validate() error {
 16865  	invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"}
 16866  	if s.RepositoryName == nil {
 16867  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 16868  	}
 16869  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 16870  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 16871  	}
 16872  
 16873  	if invalidParams.Len() > 0 {
 16874  		return invalidParams
 16875  	}
 16876  	return nil
 16877  }
 16878  
 16879  // SetRepositoryName sets the RepositoryName field's value.
 16880  func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput {
 16881  	s.RepositoryName = &v
 16882  	return s
 16883  }
 16884  
 16885  // Represents the output of a delete repository operation.
 16886  type DeleteRepositoryOutput struct {
 16887  	_ struct{} `type:"structure"`
 16888  
 16889  	// The ID of the repository that was deleted.
 16890  	RepositoryId *string `locationName:"repositoryId" type:"string"`
 16891  }
 16892  
 16893  // String returns the string representation.
 16894  //
 16895  // API parameter values that are decorated as "sensitive" in the API will not
 16896  // be included in the string output. The member name will be present, but the
 16897  // value will be replaced with "sensitive".
 16898  func (s DeleteRepositoryOutput) String() string {
 16899  	return awsutil.Prettify(s)
 16900  }
 16901  
 16902  // GoString returns the string representation.
 16903  //
 16904  // API parameter values that are decorated as "sensitive" in the API will not
 16905  // be included in the string output. The member name will be present, but the
 16906  // value will be replaced with "sensitive".
 16907  func (s DeleteRepositoryOutput) GoString() string {
 16908  	return s.String()
 16909  }
 16910  
 16911  // SetRepositoryId sets the RepositoryId field's value.
 16912  func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput {
 16913  	s.RepositoryId = &v
 16914  	return s
 16915  }
 16916  
 16917  type DescribeMergeConflictsInput struct {
 16918  	_ struct{} `type:"structure"`
 16919  
 16920  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 16921  	// is used, which returns a not-mergeable result if the same file has differences
 16922  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 16923  	// mergeable if the same file in both branches has differences on the same line.
 16924  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 16925  
 16926  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 16927  	// automatically merging two versions of a file. The default is NONE, which
 16928  	// requires any conflicts to be resolved manually before the merge operation
 16929  	// is successful.
 16930  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 16931  
 16932  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 16933  	// a commit (for example, a branch name or a full commit ID).
 16934  	//
 16935  	// DestinationCommitSpecifier is a required field
 16936  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 16937  
 16938  	// The path of the target files used to describe the conflicts.
 16939  	//
 16940  	// FilePath is a required field
 16941  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 16942  
 16943  	// The maximum number of merge hunks to include in the output.
 16944  	MaxMergeHunks *int64 `locationName:"maxMergeHunks" type:"integer"`
 16945  
 16946  	// The merge option or strategy you want to use to merge the code.
 16947  	//
 16948  	// MergeOption is a required field
 16949  	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
 16950  
 16951  	// An enumeration token that, when provided in a request, returns the next batch
 16952  	// of the results.
 16953  	NextToken *string `locationName:"nextToken" type:"string"`
 16954  
 16955  	// The name of the repository where you want to get information about a merge
 16956  	// conflict.
 16957  	//
 16958  	// RepositoryName is a required field
 16959  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 16960  
 16961  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 16962  	// a commit (for example, a branch name or a full commit ID).
 16963  	//
 16964  	// SourceCommitSpecifier is a required field
 16965  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 16966  }
 16967  
 16968  // String returns the string representation.
 16969  //
 16970  // API parameter values that are decorated as "sensitive" in the API will not
 16971  // be included in the string output. The member name will be present, but the
 16972  // value will be replaced with "sensitive".
 16973  func (s DescribeMergeConflictsInput) String() string {
 16974  	return awsutil.Prettify(s)
 16975  }
 16976  
 16977  // GoString returns the string representation.
 16978  //
 16979  // API parameter values that are decorated as "sensitive" in the API will not
 16980  // be included in the string output. The member name will be present, but the
 16981  // value will be replaced with "sensitive".
 16982  func (s DescribeMergeConflictsInput) GoString() string {
 16983  	return s.String()
 16984  }
 16985  
 16986  // Validate inspects the fields of the type to determine if they are valid.
 16987  func (s *DescribeMergeConflictsInput) Validate() error {
 16988  	invalidParams := request.ErrInvalidParams{Context: "DescribeMergeConflictsInput"}
 16989  	if s.DestinationCommitSpecifier == nil {
 16990  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 16991  	}
 16992  	if s.FilePath == nil {
 16993  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 16994  	}
 16995  	if s.MergeOption == nil {
 16996  		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
 16997  	}
 16998  	if s.RepositoryName == nil {
 16999  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 17000  	}
 17001  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 17002  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 17003  	}
 17004  	if s.SourceCommitSpecifier == nil {
 17005  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 17006  	}
 17007  
 17008  	if invalidParams.Len() > 0 {
 17009  		return invalidParams
 17010  	}
 17011  	return nil
 17012  }
 17013  
 17014  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 17015  func (s *DescribeMergeConflictsInput) SetConflictDetailLevel(v string) *DescribeMergeConflictsInput {
 17016  	s.ConflictDetailLevel = &v
 17017  	return s
 17018  }
 17019  
 17020  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 17021  func (s *DescribeMergeConflictsInput) SetConflictResolutionStrategy(v string) *DescribeMergeConflictsInput {
 17022  	s.ConflictResolutionStrategy = &v
 17023  	return s
 17024  }
 17025  
 17026  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 17027  func (s *DescribeMergeConflictsInput) SetDestinationCommitSpecifier(v string) *DescribeMergeConflictsInput {
 17028  	s.DestinationCommitSpecifier = &v
 17029  	return s
 17030  }
 17031  
 17032  // SetFilePath sets the FilePath field's value.
 17033  func (s *DescribeMergeConflictsInput) SetFilePath(v string) *DescribeMergeConflictsInput {
 17034  	s.FilePath = &v
 17035  	return s
 17036  }
 17037  
 17038  // SetMaxMergeHunks sets the MaxMergeHunks field's value.
 17039  func (s *DescribeMergeConflictsInput) SetMaxMergeHunks(v int64) *DescribeMergeConflictsInput {
 17040  	s.MaxMergeHunks = &v
 17041  	return s
 17042  }
 17043  
 17044  // SetMergeOption sets the MergeOption field's value.
 17045  func (s *DescribeMergeConflictsInput) SetMergeOption(v string) *DescribeMergeConflictsInput {
 17046  	s.MergeOption = &v
 17047  	return s
 17048  }
 17049  
 17050  // SetNextToken sets the NextToken field's value.
 17051  func (s *DescribeMergeConflictsInput) SetNextToken(v string) *DescribeMergeConflictsInput {
 17052  	s.NextToken = &v
 17053  	return s
 17054  }
 17055  
 17056  // SetRepositoryName sets the RepositoryName field's value.
 17057  func (s *DescribeMergeConflictsInput) SetRepositoryName(v string) *DescribeMergeConflictsInput {
 17058  	s.RepositoryName = &v
 17059  	return s
 17060  }
 17061  
 17062  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 17063  func (s *DescribeMergeConflictsInput) SetSourceCommitSpecifier(v string) *DescribeMergeConflictsInput {
 17064  	s.SourceCommitSpecifier = &v
 17065  	return s
 17066  }
 17067  
 17068  type DescribeMergeConflictsOutput struct {
 17069  	_ struct{} `type:"structure"`
 17070  
 17071  	// The commit ID of the merge base.
 17072  	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
 17073  
 17074  	// Contains metadata about the conflicts found in the merge.
 17075  	//
 17076  	// ConflictMetadata is a required field
 17077  	ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure" required:"true"`
 17078  
 17079  	// The commit ID of the destination commit specifier that was used in the merge
 17080  	// evaluation.
 17081  	//
 17082  	// DestinationCommitId is a required field
 17083  	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
 17084  
 17085  	// A list of merge hunks of the differences between the files or lines.
 17086  	//
 17087  	// MergeHunks is a required field
 17088  	MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list" required:"true"`
 17089  
 17090  	// An enumeration token that can be used in a request to return the next batch
 17091  	// of the results.
 17092  	NextToken *string `locationName:"nextToken" type:"string"`
 17093  
 17094  	// The commit ID of the source commit specifier that was used in the merge evaluation.
 17095  	//
 17096  	// SourceCommitId is a required field
 17097  	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
 17098  }
 17099  
 17100  // String returns the string representation.
 17101  //
 17102  // API parameter values that are decorated as "sensitive" in the API will not
 17103  // be included in the string output. The member name will be present, but the
 17104  // value will be replaced with "sensitive".
 17105  func (s DescribeMergeConflictsOutput) String() string {
 17106  	return awsutil.Prettify(s)
 17107  }
 17108  
 17109  // GoString returns the string representation.
 17110  //
 17111  // API parameter values that are decorated as "sensitive" in the API will not
 17112  // be included in the string output. The member name will be present, but the
 17113  // value will be replaced with "sensitive".
 17114  func (s DescribeMergeConflictsOutput) GoString() string {
 17115  	return s.String()
 17116  }
 17117  
 17118  // SetBaseCommitId sets the BaseCommitId field's value.
 17119  func (s *DescribeMergeConflictsOutput) SetBaseCommitId(v string) *DescribeMergeConflictsOutput {
 17120  	s.BaseCommitId = &v
 17121  	return s
 17122  }
 17123  
 17124  // SetConflictMetadata sets the ConflictMetadata field's value.
 17125  func (s *DescribeMergeConflictsOutput) SetConflictMetadata(v *ConflictMetadata) *DescribeMergeConflictsOutput {
 17126  	s.ConflictMetadata = v
 17127  	return s
 17128  }
 17129  
 17130  // SetDestinationCommitId sets the DestinationCommitId field's value.
 17131  func (s *DescribeMergeConflictsOutput) SetDestinationCommitId(v string) *DescribeMergeConflictsOutput {
 17132  	s.DestinationCommitId = &v
 17133  	return s
 17134  }
 17135  
 17136  // SetMergeHunks sets the MergeHunks field's value.
 17137  func (s *DescribeMergeConflictsOutput) SetMergeHunks(v []*MergeHunk) *DescribeMergeConflictsOutput {
 17138  	s.MergeHunks = v
 17139  	return s
 17140  }
 17141  
 17142  // SetNextToken sets the NextToken field's value.
 17143  func (s *DescribeMergeConflictsOutput) SetNextToken(v string) *DescribeMergeConflictsOutput {
 17144  	s.NextToken = &v
 17145  	return s
 17146  }
 17147  
 17148  // SetSourceCommitId sets the SourceCommitId field's value.
 17149  func (s *DescribeMergeConflictsOutput) SetSourceCommitId(v string) *DescribeMergeConflictsOutput {
 17150  	s.SourceCommitId = &v
 17151  	return s
 17152  }
 17153  
 17154  type DescribePullRequestEventsInput struct {
 17155  	_ struct{} `type:"structure"`
 17156  
 17157  	// The Amazon Resource Name (ARN) of the user whose actions resulted in the
 17158  	// event. Examples include updating the pull request with more commits or changing
 17159  	// the status of a pull request.
 17160  	ActorArn *string `locationName:"actorArn" type:"string"`
 17161  
 17162  	// A non-zero, non-negative integer used to limit the number of returned results.
 17163  	// The default is 100 events, which is also the maximum number of events that
 17164  	// can be returned in a result.
 17165  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 17166  
 17167  	// An enumeration token that, when provided in a request, returns the next batch
 17168  	// of the results.
 17169  	NextToken *string `locationName:"nextToken" type:"string"`
 17170  
 17171  	// Optional. The pull request event type about which you want to return information.
 17172  	PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"`
 17173  
 17174  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 17175  	//
 17176  	// PullRequestId is a required field
 17177  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 17178  }
 17179  
 17180  // String returns the string representation.
 17181  //
 17182  // API parameter values that are decorated as "sensitive" in the API will not
 17183  // be included in the string output. The member name will be present, but the
 17184  // value will be replaced with "sensitive".
 17185  func (s DescribePullRequestEventsInput) String() string {
 17186  	return awsutil.Prettify(s)
 17187  }
 17188  
 17189  // GoString returns the string representation.
 17190  //
 17191  // API parameter values that are decorated as "sensitive" in the API will not
 17192  // be included in the string output. The member name will be present, but the
 17193  // value will be replaced with "sensitive".
 17194  func (s DescribePullRequestEventsInput) GoString() string {
 17195  	return s.String()
 17196  }
 17197  
 17198  // Validate inspects the fields of the type to determine if they are valid.
 17199  func (s *DescribePullRequestEventsInput) Validate() error {
 17200  	invalidParams := request.ErrInvalidParams{Context: "DescribePullRequestEventsInput"}
 17201  	if s.PullRequestId == nil {
 17202  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 17203  	}
 17204  
 17205  	if invalidParams.Len() > 0 {
 17206  		return invalidParams
 17207  	}
 17208  	return nil
 17209  }
 17210  
 17211  // SetActorArn sets the ActorArn field's value.
 17212  func (s *DescribePullRequestEventsInput) SetActorArn(v string) *DescribePullRequestEventsInput {
 17213  	s.ActorArn = &v
 17214  	return s
 17215  }
 17216  
 17217  // SetMaxResults sets the MaxResults field's value.
 17218  func (s *DescribePullRequestEventsInput) SetMaxResults(v int64) *DescribePullRequestEventsInput {
 17219  	s.MaxResults = &v
 17220  	return s
 17221  }
 17222  
 17223  // SetNextToken sets the NextToken field's value.
 17224  func (s *DescribePullRequestEventsInput) SetNextToken(v string) *DescribePullRequestEventsInput {
 17225  	s.NextToken = &v
 17226  	return s
 17227  }
 17228  
 17229  // SetPullRequestEventType sets the PullRequestEventType field's value.
 17230  func (s *DescribePullRequestEventsInput) SetPullRequestEventType(v string) *DescribePullRequestEventsInput {
 17231  	s.PullRequestEventType = &v
 17232  	return s
 17233  }
 17234  
 17235  // SetPullRequestId sets the PullRequestId field's value.
 17236  func (s *DescribePullRequestEventsInput) SetPullRequestId(v string) *DescribePullRequestEventsInput {
 17237  	s.PullRequestId = &v
 17238  	return s
 17239  }
 17240  
 17241  type DescribePullRequestEventsOutput struct {
 17242  	_ struct{} `type:"structure"`
 17243  
 17244  	// An enumeration token that can be used in a request to return the next batch
 17245  	// of the results.
 17246  	NextToken *string `locationName:"nextToken" type:"string"`
 17247  
 17248  	// Information about the pull request events.
 17249  	//
 17250  	// PullRequestEvents is a required field
 17251  	PullRequestEvents []*PullRequestEvent `locationName:"pullRequestEvents" type:"list" required:"true"`
 17252  }
 17253  
 17254  // String returns the string representation.
 17255  //
 17256  // API parameter values that are decorated as "sensitive" in the API will not
 17257  // be included in the string output. The member name will be present, but the
 17258  // value will be replaced with "sensitive".
 17259  func (s DescribePullRequestEventsOutput) String() string {
 17260  	return awsutil.Prettify(s)
 17261  }
 17262  
 17263  // GoString returns the string representation.
 17264  //
 17265  // API parameter values that are decorated as "sensitive" in the API will not
 17266  // be included in the string output. The member name will be present, but the
 17267  // value will be replaced with "sensitive".
 17268  func (s DescribePullRequestEventsOutput) GoString() string {
 17269  	return s.String()
 17270  }
 17271  
 17272  // SetNextToken sets the NextToken field's value.
 17273  func (s *DescribePullRequestEventsOutput) SetNextToken(v string) *DescribePullRequestEventsOutput {
 17274  	s.NextToken = &v
 17275  	return s
 17276  }
 17277  
 17278  // SetPullRequestEvents sets the PullRequestEvents field's value.
 17279  func (s *DescribePullRequestEventsOutput) SetPullRequestEvents(v []*PullRequestEvent) *DescribePullRequestEventsOutput {
 17280  	s.PullRequestEvents = v
 17281  	return s
 17282  }
 17283  
 17284  // Returns information about a set of differences for a commit specifier.
 17285  type Difference struct {
 17286  	_ struct{} `type:"structure"`
 17287  
 17288  	// Information about an afterBlob data type object, including the ID, the file
 17289  	// mode permission code, and the path.
 17290  	AfterBlob *BlobMetadata `locationName:"afterBlob" type:"structure"`
 17291  
 17292  	// Information about a beforeBlob data type object, including the ID, the file
 17293  	// mode permission code, and the path.
 17294  	BeforeBlob *BlobMetadata `locationName:"beforeBlob" type:"structure"`
 17295  
 17296  	// Whether the change type of the difference is an addition (A), deletion (D),
 17297  	// or modification (M).
 17298  	ChangeType *string `locationName:"changeType" type:"string" enum:"ChangeTypeEnum"`
 17299  }
 17300  
 17301  // String returns the string representation.
 17302  //
 17303  // API parameter values that are decorated as "sensitive" in the API will not
 17304  // be included in the string output. The member name will be present, but the
 17305  // value will be replaced with "sensitive".
 17306  func (s Difference) String() string {
 17307  	return awsutil.Prettify(s)
 17308  }
 17309  
 17310  // GoString returns the string representation.
 17311  //
 17312  // API parameter values that are decorated as "sensitive" in the API will not
 17313  // be included in the string output. The member name will be present, but the
 17314  // value will be replaced with "sensitive".
 17315  func (s Difference) GoString() string {
 17316  	return s.String()
 17317  }
 17318  
 17319  // SetAfterBlob sets the AfterBlob field's value.
 17320  func (s *Difference) SetAfterBlob(v *BlobMetadata) *Difference {
 17321  	s.AfterBlob = v
 17322  	return s
 17323  }
 17324  
 17325  // SetBeforeBlob sets the BeforeBlob field's value.
 17326  func (s *Difference) SetBeforeBlob(v *BlobMetadata) *Difference {
 17327  	s.BeforeBlob = v
 17328  	return s
 17329  }
 17330  
 17331  // SetChangeType sets the ChangeType field's value.
 17332  func (s *Difference) SetChangeType(v string) *Difference {
 17333  	s.ChangeType = &v
 17334  	return s
 17335  }
 17336  
 17337  // A file cannot be added to the repository because the specified path name
 17338  // has the same name as a file that already exists in this repository. Either
 17339  // provide a different name for the file, or specify a different path for the
 17340  // file.
 17341  type DirectoryNameConflictsWithFileNameException struct {
 17342  	_            struct{}                  `type:"structure"`
 17343  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 17344  
 17345  	Message_ *string `locationName:"message" type:"string"`
 17346  }
 17347  
 17348  // String returns the string representation.
 17349  //
 17350  // API parameter values that are decorated as "sensitive" in the API will not
 17351  // be included in the string output. The member name will be present, but the
 17352  // value will be replaced with "sensitive".
 17353  func (s DirectoryNameConflictsWithFileNameException) String() string {
 17354  	return awsutil.Prettify(s)
 17355  }
 17356  
 17357  // GoString returns the string representation.
 17358  //
 17359  // API parameter values that are decorated as "sensitive" in the API will not
 17360  // be included in the string output. The member name will be present, but the
 17361  // value will be replaced with "sensitive".
 17362  func (s DirectoryNameConflictsWithFileNameException) GoString() string {
 17363  	return s.String()
 17364  }
 17365  
 17366  func newErrorDirectoryNameConflictsWithFileNameException(v protocol.ResponseMetadata) error {
 17367  	return &DirectoryNameConflictsWithFileNameException{
 17368  		RespMetadata: v,
 17369  	}
 17370  }
 17371  
 17372  // Code returns the exception type name.
 17373  func (s *DirectoryNameConflictsWithFileNameException) Code() string {
 17374  	return "DirectoryNameConflictsWithFileNameException"
 17375  }
 17376  
 17377  // Message returns the exception's message.
 17378  func (s *DirectoryNameConflictsWithFileNameException) Message() string {
 17379  	if s.Message_ != nil {
 17380  		return *s.Message_
 17381  	}
 17382  	return ""
 17383  }
 17384  
 17385  // OrigErr always returns nil, satisfies awserr.Error interface.
 17386  func (s *DirectoryNameConflictsWithFileNameException) OrigErr() error {
 17387  	return nil
 17388  }
 17389  
 17390  func (s *DirectoryNameConflictsWithFileNameException) Error() string {
 17391  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 17392  }
 17393  
 17394  // Status code returns the HTTP status code for the request's response error.
 17395  func (s *DirectoryNameConflictsWithFileNameException) StatusCode() int {
 17396  	return s.RespMetadata.StatusCode
 17397  }
 17398  
 17399  // RequestID returns the service's response RequestID for request.
 17400  func (s *DirectoryNameConflictsWithFileNameException) RequestID() string {
 17401  	return s.RespMetadata.RequestID
 17402  }
 17403  
 17404  type DisassociateApprovalRuleTemplateFromRepositoryInput struct {
 17405  	_ struct{} `type:"structure"`
 17406  
 17407  	// The name of the approval rule template to disassociate from a specified repository.
 17408  	//
 17409  	// ApprovalRuleTemplateName is a required field
 17410  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 17411  
 17412  	// The name of the repository you want to disassociate from the template.
 17413  	//
 17414  	// RepositoryName is a required field
 17415  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 17416  }
 17417  
 17418  // String returns the string representation.
 17419  //
 17420  // API parameter values that are decorated as "sensitive" in the API will not
 17421  // be included in the string output. The member name will be present, but the
 17422  // value will be replaced with "sensitive".
 17423  func (s DisassociateApprovalRuleTemplateFromRepositoryInput) String() string {
 17424  	return awsutil.Prettify(s)
 17425  }
 17426  
 17427  // GoString returns the string representation.
 17428  //
 17429  // API parameter values that are decorated as "sensitive" in the API will not
 17430  // be included in the string output. The member name will be present, but the
 17431  // value will be replaced with "sensitive".
 17432  func (s DisassociateApprovalRuleTemplateFromRepositoryInput) GoString() string {
 17433  	return s.String()
 17434  }
 17435  
 17436  // Validate inspects the fields of the type to determine if they are valid.
 17437  func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) Validate() error {
 17438  	invalidParams := request.ErrInvalidParams{Context: "DisassociateApprovalRuleTemplateFromRepositoryInput"}
 17439  	if s.ApprovalRuleTemplateName == nil {
 17440  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 17441  	}
 17442  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 17443  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 17444  	}
 17445  	if s.RepositoryName == nil {
 17446  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 17447  	}
 17448  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 17449  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 17450  	}
 17451  
 17452  	if invalidParams.Len() > 0 {
 17453  		return invalidParams
 17454  	}
 17455  	return nil
 17456  }
 17457  
 17458  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 17459  func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetApprovalRuleTemplateName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput {
 17460  	s.ApprovalRuleTemplateName = &v
 17461  	return s
 17462  }
 17463  
 17464  // SetRepositoryName sets the RepositoryName field's value.
 17465  func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetRepositoryName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput {
 17466  	s.RepositoryName = &v
 17467  	return s
 17468  }
 17469  
 17470  type DisassociateApprovalRuleTemplateFromRepositoryOutput struct {
 17471  	_ struct{} `type:"structure"`
 17472  }
 17473  
 17474  // String returns the string representation.
 17475  //
 17476  // API parameter values that are decorated as "sensitive" in the API will not
 17477  // be included in the string output. The member name will be present, but the
 17478  // value will be replaced with "sensitive".
 17479  func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) String() string {
 17480  	return awsutil.Prettify(s)
 17481  }
 17482  
 17483  // GoString returns the string representation.
 17484  //
 17485  // API parameter values that are decorated as "sensitive" in the API will not
 17486  // be included in the string output. The member name will be present, but the
 17487  // value will be replaced with "sensitive".
 17488  func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) GoString() string {
 17489  	return s.String()
 17490  }
 17491  
 17492  // An encryption integrity check failed.
 17493  type EncryptionIntegrityChecksFailedException struct {
 17494  	_            struct{}                  `type:"structure"`
 17495  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 17496  
 17497  	Message_ *string `locationName:"message" type:"string"`
 17498  }
 17499  
 17500  // String returns the string representation.
 17501  //
 17502  // API parameter values that are decorated as "sensitive" in the API will not
 17503  // be included in the string output. The member name will be present, but the
 17504  // value will be replaced with "sensitive".
 17505  func (s EncryptionIntegrityChecksFailedException) String() string {
 17506  	return awsutil.Prettify(s)
 17507  }
 17508  
 17509  // GoString returns the string representation.
 17510  //
 17511  // API parameter values that are decorated as "sensitive" in the API will not
 17512  // be included in the string output. The member name will be present, but the
 17513  // value will be replaced with "sensitive".
 17514  func (s EncryptionIntegrityChecksFailedException) GoString() string {
 17515  	return s.String()
 17516  }
 17517  
 17518  func newErrorEncryptionIntegrityChecksFailedException(v protocol.ResponseMetadata) error {
 17519  	return &EncryptionIntegrityChecksFailedException{
 17520  		RespMetadata: v,
 17521  	}
 17522  }
 17523  
 17524  // Code returns the exception type name.
 17525  func (s *EncryptionIntegrityChecksFailedException) Code() string {
 17526  	return "EncryptionIntegrityChecksFailedException"
 17527  }
 17528  
 17529  // Message returns the exception's message.
 17530  func (s *EncryptionIntegrityChecksFailedException) Message() string {
 17531  	if s.Message_ != nil {
 17532  		return *s.Message_
 17533  	}
 17534  	return ""
 17535  }
 17536  
 17537  // OrigErr always returns nil, satisfies awserr.Error interface.
 17538  func (s *EncryptionIntegrityChecksFailedException) OrigErr() error {
 17539  	return nil
 17540  }
 17541  
 17542  func (s *EncryptionIntegrityChecksFailedException) Error() string {
 17543  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 17544  }
 17545  
 17546  // Status code returns the HTTP status code for the request's response error.
 17547  func (s *EncryptionIntegrityChecksFailedException) StatusCode() int {
 17548  	return s.RespMetadata.StatusCode
 17549  }
 17550  
 17551  // RequestID returns the service's response RequestID for request.
 17552  func (s *EncryptionIntegrityChecksFailedException) RequestID() string {
 17553  	return s.RespMetadata.RequestID
 17554  }
 17555  
 17556  // An encryption key could not be accessed.
 17557  type EncryptionKeyAccessDeniedException struct {
 17558  	_            struct{}                  `type:"structure"`
 17559  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 17560  
 17561  	Message_ *string `locationName:"message" type:"string"`
 17562  }
 17563  
 17564  // String returns the string representation.
 17565  //
 17566  // API parameter values that are decorated as "sensitive" in the API will not
 17567  // be included in the string output. The member name will be present, but the
 17568  // value will be replaced with "sensitive".
 17569  func (s EncryptionKeyAccessDeniedException) String() string {
 17570  	return awsutil.Prettify(s)
 17571  }
 17572  
 17573  // GoString returns the string representation.
 17574  //
 17575  // API parameter values that are decorated as "sensitive" in the API will not
 17576  // be included in the string output. The member name will be present, but the
 17577  // value will be replaced with "sensitive".
 17578  func (s EncryptionKeyAccessDeniedException) GoString() string {
 17579  	return s.String()
 17580  }
 17581  
 17582  func newErrorEncryptionKeyAccessDeniedException(v protocol.ResponseMetadata) error {
 17583  	return &EncryptionKeyAccessDeniedException{
 17584  		RespMetadata: v,
 17585  	}
 17586  }
 17587  
 17588  // Code returns the exception type name.
 17589  func (s *EncryptionKeyAccessDeniedException) Code() string {
 17590  	return "EncryptionKeyAccessDeniedException"
 17591  }
 17592  
 17593  // Message returns the exception's message.
 17594  func (s *EncryptionKeyAccessDeniedException) Message() string {
 17595  	if s.Message_ != nil {
 17596  		return *s.Message_
 17597  	}
 17598  	return ""
 17599  }
 17600  
 17601  // OrigErr always returns nil, satisfies awserr.Error interface.
 17602  func (s *EncryptionKeyAccessDeniedException) OrigErr() error {
 17603  	return nil
 17604  }
 17605  
 17606  func (s *EncryptionKeyAccessDeniedException) Error() string {
 17607  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 17608  }
 17609  
 17610  // Status code returns the HTTP status code for the request's response error.
 17611  func (s *EncryptionKeyAccessDeniedException) StatusCode() int {
 17612  	return s.RespMetadata.StatusCode
 17613  }
 17614  
 17615  // RequestID returns the service's response RequestID for request.
 17616  func (s *EncryptionKeyAccessDeniedException) RequestID() string {
 17617  	return s.RespMetadata.RequestID
 17618  }
 17619  
 17620  // The encryption key is disabled.
 17621  type EncryptionKeyDisabledException struct {
 17622  	_            struct{}                  `type:"structure"`
 17623  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 17624  
 17625  	Message_ *string `locationName:"message" type:"string"`
 17626  }
 17627  
 17628  // String returns the string representation.
 17629  //
 17630  // API parameter values that are decorated as "sensitive" in the API will not
 17631  // be included in the string output. The member name will be present, but the
 17632  // value will be replaced with "sensitive".
 17633  func (s EncryptionKeyDisabledException) String() string {
 17634  	return awsutil.Prettify(s)
 17635  }
 17636  
 17637  // GoString returns the string representation.
 17638  //
 17639  // API parameter values that are decorated as "sensitive" in the API will not
 17640  // be included in the string output. The member name will be present, but the
 17641  // value will be replaced with "sensitive".
 17642  func (s EncryptionKeyDisabledException) GoString() string {
 17643  	return s.String()
 17644  }
 17645  
 17646  func newErrorEncryptionKeyDisabledException(v protocol.ResponseMetadata) error {
 17647  	return &EncryptionKeyDisabledException{
 17648  		RespMetadata: v,
 17649  	}
 17650  }
 17651  
 17652  // Code returns the exception type name.
 17653  func (s *EncryptionKeyDisabledException) Code() string {
 17654  	return "EncryptionKeyDisabledException"
 17655  }
 17656  
 17657  // Message returns the exception's message.
 17658  func (s *EncryptionKeyDisabledException) Message() string {
 17659  	if s.Message_ != nil {
 17660  		return *s.Message_
 17661  	}
 17662  	return ""
 17663  }
 17664  
 17665  // OrigErr always returns nil, satisfies awserr.Error interface.
 17666  func (s *EncryptionKeyDisabledException) OrigErr() error {
 17667  	return nil
 17668  }
 17669  
 17670  func (s *EncryptionKeyDisabledException) Error() string {
 17671  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 17672  }
 17673  
 17674  // Status code returns the HTTP status code for the request's response error.
 17675  func (s *EncryptionKeyDisabledException) StatusCode() int {
 17676  	return s.RespMetadata.StatusCode
 17677  }
 17678  
 17679  // RequestID returns the service's response RequestID for request.
 17680  func (s *EncryptionKeyDisabledException) RequestID() string {
 17681  	return s.RespMetadata.RequestID
 17682  }
 17683  
 17684  // No encryption key was found.
 17685  type EncryptionKeyNotFoundException struct {
 17686  	_            struct{}                  `type:"structure"`
 17687  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 17688  
 17689  	Message_ *string `locationName:"message" type:"string"`
 17690  }
 17691  
 17692  // String returns the string representation.
 17693  //
 17694  // API parameter values that are decorated as "sensitive" in the API will not
 17695  // be included in the string output. The member name will be present, but the
 17696  // value will be replaced with "sensitive".
 17697  func (s EncryptionKeyNotFoundException) String() string {
 17698  	return awsutil.Prettify(s)
 17699  }
 17700  
 17701  // GoString returns the string representation.
 17702  //
 17703  // API parameter values that are decorated as "sensitive" in the API will not
 17704  // be included in the string output. The member name will be present, but the
 17705  // value will be replaced with "sensitive".
 17706  func (s EncryptionKeyNotFoundException) GoString() string {
 17707  	return s.String()
 17708  }
 17709  
 17710  func newErrorEncryptionKeyNotFoundException(v protocol.ResponseMetadata) error {
 17711  	return &EncryptionKeyNotFoundException{
 17712  		RespMetadata: v,
 17713  	}
 17714  }
 17715  
 17716  // Code returns the exception type name.
 17717  func (s *EncryptionKeyNotFoundException) Code() string {
 17718  	return "EncryptionKeyNotFoundException"
 17719  }
 17720  
 17721  // Message returns the exception's message.
 17722  func (s *EncryptionKeyNotFoundException) Message() string {
 17723  	if s.Message_ != nil {
 17724  		return *s.Message_
 17725  	}
 17726  	return ""
 17727  }
 17728  
 17729  // OrigErr always returns nil, satisfies awserr.Error interface.
 17730  func (s *EncryptionKeyNotFoundException) OrigErr() error {
 17731  	return nil
 17732  }
 17733  
 17734  func (s *EncryptionKeyNotFoundException) Error() string {
 17735  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 17736  }
 17737  
 17738  // Status code returns the HTTP status code for the request's response error.
 17739  func (s *EncryptionKeyNotFoundException) StatusCode() int {
 17740  	return s.RespMetadata.StatusCode
 17741  }
 17742  
 17743  // RequestID returns the service's response RequestID for request.
 17744  func (s *EncryptionKeyNotFoundException) RequestID() string {
 17745  	return s.RespMetadata.RequestID
 17746  }
 17747  
 17748  // The encryption key is not available.
 17749  type EncryptionKeyUnavailableException struct {
 17750  	_            struct{}                  `type:"structure"`
 17751  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 17752  
 17753  	Message_ *string `locationName:"message" type:"string"`
 17754  }
 17755  
 17756  // String returns the string representation.
 17757  //
 17758  // API parameter values that are decorated as "sensitive" in the API will not
 17759  // be included in the string output. The member name will be present, but the
 17760  // value will be replaced with "sensitive".
 17761  func (s EncryptionKeyUnavailableException) String() string {
 17762  	return awsutil.Prettify(s)
 17763  }
 17764  
 17765  // GoString returns the string representation.
 17766  //
 17767  // API parameter values that are decorated as "sensitive" in the API will not
 17768  // be included in the string output. The member name will be present, but the
 17769  // value will be replaced with "sensitive".
 17770  func (s EncryptionKeyUnavailableException) GoString() string {
 17771  	return s.String()
 17772  }
 17773  
 17774  func newErrorEncryptionKeyUnavailableException(v protocol.ResponseMetadata) error {
 17775  	return &EncryptionKeyUnavailableException{
 17776  		RespMetadata: v,
 17777  	}
 17778  }
 17779  
 17780  // Code returns the exception type name.
 17781  func (s *EncryptionKeyUnavailableException) Code() string {
 17782  	return "EncryptionKeyUnavailableException"
 17783  }
 17784  
 17785  // Message returns the exception's message.
 17786  func (s *EncryptionKeyUnavailableException) Message() string {
 17787  	if s.Message_ != nil {
 17788  		return *s.Message_
 17789  	}
 17790  	return ""
 17791  }
 17792  
 17793  // OrigErr always returns nil, satisfies awserr.Error interface.
 17794  func (s *EncryptionKeyUnavailableException) OrigErr() error {
 17795  	return nil
 17796  }
 17797  
 17798  func (s *EncryptionKeyUnavailableException) Error() string {
 17799  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 17800  }
 17801  
 17802  // Status code returns the HTTP status code for the request's response error.
 17803  func (s *EncryptionKeyUnavailableException) StatusCode() int {
 17804  	return s.RespMetadata.StatusCode
 17805  }
 17806  
 17807  // RequestID returns the service's response RequestID for request.
 17808  func (s *EncryptionKeyUnavailableException) RequestID() string {
 17809  	return s.RespMetadata.RequestID
 17810  }
 17811  
 17812  type EvaluatePullRequestApprovalRulesInput struct {
 17813  	_ struct{} `type:"structure"`
 17814  
 17815  	// The system-generated ID of the pull request you want to evaluate.
 17816  	//
 17817  	// PullRequestId is a required field
 17818  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 17819  
 17820  	// The system-generated ID for the pull request revision. To retrieve the most
 17821  	// recent revision ID for a pull request, use GetPullRequest.
 17822  	//
 17823  	// RevisionId is a required field
 17824  	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
 17825  }
 17826  
 17827  // String returns the string representation.
 17828  //
 17829  // API parameter values that are decorated as "sensitive" in the API will not
 17830  // be included in the string output. The member name will be present, but the
 17831  // value will be replaced with "sensitive".
 17832  func (s EvaluatePullRequestApprovalRulesInput) String() string {
 17833  	return awsutil.Prettify(s)
 17834  }
 17835  
 17836  // GoString returns the string representation.
 17837  //
 17838  // API parameter values that are decorated as "sensitive" in the API will not
 17839  // be included in the string output. The member name will be present, but the
 17840  // value will be replaced with "sensitive".
 17841  func (s EvaluatePullRequestApprovalRulesInput) GoString() string {
 17842  	return s.String()
 17843  }
 17844  
 17845  // Validate inspects the fields of the type to determine if they are valid.
 17846  func (s *EvaluatePullRequestApprovalRulesInput) Validate() error {
 17847  	invalidParams := request.ErrInvalidParams{Context: "EvaluatePullRequestApprovalRulesInput"}
 17848  	if s.PullRequestId == nil {
 17849  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 17850  	}
 17851  	if s.RevisionId == nil {
 17852  		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
 17853  	}
 17854  
 17855  	if invalidParams.Len() > 0 {
 17856  		return invalidParams
 17857  	}
 17858  	return nil
 17859  }
 17860  
 17861  // SetPullRequestId sets the PullRequestId field's value.
 17862  func (s *EvaluatePullRequestApprovalRulesInput) SetPullRequestId(v string) *EvaluatePullRequestApprovalRulesInput {
 17863  	s.PullRequestId = &v
 17864  	return s
 17865  }
 17866  
 17867  // SetRevisionId sets the RevisionId field's value.
 17868  func (s *EvaluatePullRequestApprovalRulesInput) SetRevisionId(v string) *EvaluatePullRequestApprovalRulesInput {
 17869  	s.RevisionId = &v
 17870  	return s
 17871  }
 17872  
 17873  type EvaluatePullRequestApprovalRulesOutput struct {
 17874  	_ struct{} `type:"structure"`
 17875  
 17876  	// The result of the evaluation, including the names of the rules whose conditions
 17877  	// have been met (if any), the names of the rules whose conditions have not
 17878  	// been met (if any), whether the pull request is in the approved state, and
 17879  	// whether the pull request approval rule has been set aside by an override.
 17880  	//
 17881  	// Evaluation is a required field
 17882  	Evaluation *Evaluation `locationName:"evaluation" type:"structure" required:"true"`
 17883  }
 17884  
 17885  // String returns the string representation.
 17886  //
 17887  // API parameter values that are decorated as "sensitive" in the API will not
 17888  // be included in the string output. The member name will be present, but the
 17889  // value will be replaced with "sensitive".
 17890  func (s EvaluatePullRequestApprovalRulesOutput) String() string {
 17891  	return awsutil.Prettify(s)
 17892  }
 17893  
 17894  // GoString returns the string representation.
 17895  //
 17896  // API parameter values that are decorated as "sensitive" in the API will not
 17897  // be included in the string output. The member name will be present, but the
 17898  // value will be replaced with "sensitive".
 17899  func (s EvaluatePullRequestApprovalRulesOutput) GoString() string {
 17900  	return s.String()
 17901  }
 17902  
 17903  // SetEvaluation sets the Evaluation field's value.
 17904  func (s *EvaluatePullRequestApprovalRulesOutput) SetEvaluation(v *Evaluation) *EvaluatePullRequestApprovalRulesOutput {
 17905  	s.Evaluation = v
 17906  	return s
 17907  }
 17908  
 17909  // Returns information about the approval rules applied to a pull request and
 17910  // whether conditions have been met.
 17911  type Evaluation struct {
 17912  	_ struct{} `type:"structure"`
 17913  
 17914  	// The names of the approval rules that have not had their conditions met.
 17915  	ApprovalRulesNotSatisfied []*string `locationName:"approvalRulesNotSatisfied" type:"list"`
 17916  
 17917  	// The names of the approval rules that have had their conditions met.
 17918  	ApprovalRulesSatisfied []*string `locationName:"approvalRulesSatisfied" type:"list"`
 17919  
 17920  	// Whether the state of the pull request is approved.
 17921  	Approved *bool `locationName:"approved" type:"boolean"`
 17922  
 17923  	// Whether the approval rule requirements for the pull request have been overridden
 17924  	// and no longer need to be met.
 17925  	Overridden *bool `locationName:"overridden" type:"boolean"`
 17926  }
 17927  
 17928  // String returns the string representation.
 17929  //
 17930  // API parameter values that are decorated as "sensitive" in the API will not
 17931  // be included in the string output. The member name will be present, but the
 17932  // value will be replaced with "sensitive".
 17933  func (s Evaluation) String() string {
 17934  	return awsutil.Prettify(s)
 17935  }
 17936  
 17937  // GoString returns the string representation.
 17938  //
 17939  // API parameter values that are decorated as "sensitive" in the API will not
 17940  // be included in the string output. The member name will be present, but the
 17941  // value will be replaced with "sensitive".
 17942  func (s Evaluation) GoString() string {
 17943  	return s.String()
 17944  }
 17945  
 17946  // SetApprovalRulesNotSatisfied sets the ApprovalRulesNotSatisfied field's value.
 17947  func (s *Evaluation) SetApprovalRulesNotSatisfied(v []*string) *Evaluation {
 17948  	s.ApprovalRulesNotSatisfied = v
 17949  	return s
 17950  }
 17951  
 17952  // SetApprovalRulesSatisfied sets the ApprovalRulesSatisfied field's value.
 17953  func (s *Evaluation) SetApprovalRulesSatisfied(v []*string) *Evaluation {
 17954  	s.ApprovalRulesSatisfied = v
 17955  	return s
 17956  }
 17957  
 17958  // SetApproved sets the Approved field's value.
 17959  func (s *Evaluation) SetApproved(v bool) *Evaluation {
 17960  	s.Approved = &v
 17961  	return s
 17962  }
 17963  
 17964  // SetOverridden sets the Overridden field's value.
 17965  func (s *Evaluation) SetOverridden(v bool) *Evaluation {
 17966  	s.Overridden = &v
 17967  	return s
 17968  }
 17969  
 17970  // Returns information about a file in a repository.
 17971  type File struct {
 17972  	_ struct{} `type:"structure"`
 17973  
 17974  	// The fully qualified path to the file in the repository.
 17975  	AbsolutePath *string `locationName:"absolutePath" type:"string"`
 17976  
 17977  	// The blob ID that contains the file information.
 17978  	BlobId *string `locationName:"blobId" type:"string"`
 17979  
 17980  	// The extrapolated file mode permissions for the file. Valid values include
 17981  	// EXECUTABLE and NORMAL.
 17982  	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
 17983  
 17984  	// The relative path of the file from the folder where the query originated.
 17985  	RelativePath *string `locationName:"relativePath" type:"string"`
 17986  }
 17987  
 17988  // String returns the string representation.
 17989  //
 17990  // API parameter values that are decorated as "sensitive" in the API will not
 17991  // be included in the string output. The member name will be present, but the
 17992  // value will be replaced with "sensitive".
 17993  func (s File) String() string {
 17994  	return awsutil.Prettify(s)
 17995  }
 17996  
 17997  // GoString returns the string representation.
 17998  //
 17999  // API parameter values that are decorated as "sensitive" in the API will not
 18000  // be included in the string output. The member name will be present, but the
 18001  // value will be replaced with "sensitive".
 18002  func (s File) GoString() string {
 18003  	return s.String()
 18004  }
 18005  
 18006  // SetAbsolutePath sets the AbsolutePath field's value.
 18007  func (s *File) SetAbsolutePath(v string) *File {
 18008  	s.AbsolutePath = &v
 18009  	return s
 18010  }
 18011  
 18012  // SetBlobId sets the BlobId field's value.
 18013  func (s *File) SetBlobId(v string) *File {
 18014  	s.BlobId = &v
 18015  	return s
 18016  }
 18017  
 18018  // SetFileMode sets the FileMode field's value.
 18019  func (s *File) SetFileMode(v string) *File {
 18020  	s.FileMode = &v
 18021  	return s
 18022  }
 18023  
 18024  // SetRelativePath sets the RelativePath field's value.
 18025  func (s *File) SetRelativePath(v string) *File {
 18026  	s.RelativePath = &v
 18027  	return s
 18028  }
 18029  
 18030  // The commit cannot be created because both a source file and file content
 18031  // have been specified for the same file. You cannot provide both. Either specify
 18032  // a source file or provide the file content directly.
 18033  type FileContentAndSourceFileSpecifiedException struct {
 18034  	_            struct{}                  `type:"structure"`
 18035  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18036  
 18037  	Message_ *string `locationName:"message" type:"string"`
 18038  }
 18039  
 18040  // String returns the string representation.
 18041  //
 18042  // API parameter values that are decorated as "sensitive" in the API will not
 18043  // be included in the string output. The member name will be present, but the
 18044  // value will be replaced with "sensitive".
 18045  func (s FileContentAndSourceFileSpecifiedException) String() string {
 18046  	return awsutil.Prettify(s)
 18047  }
 18048  
 18049  // GoString returns the string representation.
 18050  //
 18051  // API parameter values that are decorated as "sensitive" in the API will not
 18052  // be included in the string output. The member name will be present, but the
 18053  // value will be replaced with "sensitive".
 18054  func (s FileContentAndSourceFileSpecifiedException) GoString() string {
 18055  	return s.String()
 18056  }
 18057  
 18058  func newErrorFileContentAndSourceFileSpecifiedException(v protocol.ResponseMetadata) error {
 18059  	return &FileContentAndSourceFileSpecifiedException{
 18060  		RespMetadata: v,
 18061  	}
 18062  }
 18063  
 18064  // Code returns the exception type name.
 18065  func (s *FileContentAndSourceFileSpecifiedException) Code() string {
 18066  	return "FileContentAndSourceFileSpecifiedException"
 18067  }
 18068  
 18069  // Message returns the exception's message.
 18070  func (s *FileContentAndSourceFileSpecifiedException) Message() string {
 18071  	if s.Message_ != nil {
 18072  		return *s.Message_
 18073  	}
 18074  	return ""
 18075  }
 18076  
 18077  // OrigErr always returns nil, satisfies awserr.Error interface.
 18078  func (s *FileContentAndSourceFileSpecifiedException) OrigErr() error {
 18079  	return nil
 18080  }
 18081  
 18082  func (s *FileContentAndSourceFileSpecifiedException) Error() string {
 18083  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18084  }
 18085  
 18086  // Status code returns the HTTP status code for the request's response error.
 18087  func (s *FileContentAndSourceFileSpecifiedException) StatusCode() int {
 18088  	return s.RespMetadata.StatusCode
 18089  }
 18090  
 18091  // RequestID returns the service's response RequestID for request.
 18092  func (s *FileContentAndSourceFileSpecifiedException) RequestID() string {
 18093  	return s.RespMetadata.RequestID
 18094  }
 18095  
 18096  // The file cannot be added because it is empty. Empty files cannot be added
 18097  // to the repository with this API.
 18098  type FileContentRequiredException struct {
 18099  	_            struct{}                  `type:"structure"`
 18100  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18101  
 18102  	Message_ *string `locationName:"message" type:"string"`
 18103  }
 18104  
 18105  // String returns the string representation.
 18106  //
 18107  // API parameter values that are decorated as "sensitive" in the API will not
 18108  // be included in the string output. The member name will be present, but the
 18109  // value will be replaced with "sensitive".
 18110  func (s FileContentRequiredException) String() string {
 18111  	return awsutil.Prettify(s)
 18112  }
 18113  
 18114  // GoString returns the string representation.
 18115  //
 18116  // API parameter values that are decorated as "sensitive" in the API will not
 18117  // be included in the string output. The member name will be present, but the
 18118  // value will be replaced with "sensitive".
 18119  func (s FileContentRequiredException) GoString() string {
 18120  	return s.String()
 18121  }
 18122  
 18123  func newErrorFileContentRequiredException(v protocol.ResponseMetadata) error {
 18124  	return &FileContentRequiredException{
 18125  		RespMetadata: v,
 18126  	}
 18127  }
 18128  
 18129  // Code returns the exception type name.
 18130  func (s *FileContentRequiredException) Code() string {
 18131  	return "FileContentRequiredException"
 18132  }
 18133  
 18134  // Message returns the exception's message.
 18135  func (s *FileContentRequiredException) Message() string {
 18136  	if s.Message_ != nil {
 18137  		return *s.Message_
 18138  	}
 18139  	return ""
 18140  }
 18141  
 18142  // OrigErr always returns nil, satisfies awserr.Error interface.
 18143  func (s *FileContentRequiredException) OrigErr() error {
 18144  	return nil
 18145  }
 18146  
 18147  func (s *FileContentRequiredException) Error() string {
 18148  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18149  }
 18150  
 18151  // Status code returns the HTTP status code for the request's response error.
 18152  func (s *FileContentRequiredException) StatusCode() int {
 18153  	return s.RespMetadata.StatusCode
 18154  }
 18155  
 18156  // RequestID returns the service's response RequestID for request.
 18157  func (s *FileContentRequiredException) RequestID() string {
 18158  	return s.RespMetadata.RequestID
 18159  }
 18160  
 18161  // The file cannot be added because it is too large. The maximum file size is
 18162  // 6 MB, and the combined file content change size is 7 MB. Consider making
 18163  // these changes using a Git client.
 18164  type FileContentSizeLimitExceededException struct {
 18165  	_            struct{}                  `type:"structure"`
 18166  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18167  
 18168  	Message_ *string `locationName:"message" type:"string"`
 18169  }
 18170  
 18171  // String returns the string representation.
 18172  //
 18173  // API parameter values that are decorated as "sensitive" in the API will not
 18174  // be included in the string output. The member name will be present, but the
 18175  // value will be replaced with "sensitive".
 18176  func (s FileContentSizeLimitExceededException) String() string {
 18177  	return awsutil.Prettify(s)
 18178  }
 18179  
 18180  // GoString returns the string representation.
 18181  //
 18182  // API parameter values that are decorated as "sensitive" in the API will not
 18183  // be included in the string output. The member name will be present, but the
 18184  // value will be replaced with "sensitive".
 18185  func (s FileContentSizeLimitExceededException) GoString() string {
 18186  	return s.String()
 18187  }
 18188  
 18189  func newErrorFileContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
 18190  	return &FileContentSizeLimitExceededException{
 18191  		RespMetadata: v,
 18192  	}
 18193  }
 18194  
 18195  // Code returns the exception type name.
 18196  func (s *FileContentSizeLimitExceededException) Code() string {
 18197  	return "FileContentSizeLimitExceededException"
 18198  }
 18199  
 18200  // Message returns the exception's message.
 18201  func (s *FileContentSizeLimitExceededException) Message() string {
 18202  	if s.Message_ != nil {
 18203  		return *s.Message_
 18204  	}
 18205  	return ""
 18206  }
 18207  
 18208  // OrigErr always returns nil, satisfies awserr.Error interface.
 18209  func (s *FileContentSizeLimitExceededException) OrigErr() error {
 18210  	return nil
 18211  }
 18212  
 18213  func (s *FileContentSizeLimitExceededException) Error() string {
 18214  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18215  }
 18216  
 18217  // Status code returns the HTTP status code for the request's response error.
 18218  func (s *FileContentSizeLimitExceededException) StatusCode() int {
 18219  	return s.RespMetadata.StatusCode
 18220  }
 18221  
 18222  // RequestID returns the service's response RequestID for request.
 18223  func (s *FileContentSizeLimitExceededException) RequestID() string {
 18224  	return s.RespMetadata.RequestID
 18225  }
 18226  
 18227  // The specified file does not exist. Verify that you have used the correct
 18228  // file name, full path, and extension.
 18229  type FileDoesNotExistException struct {
 18230  	_            struct{}                  `type:"structure"`
 18231  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18232  
 18233  	Message_ *string `locationName:"message" type:"string"`
 18234  }
 18235  
 18236  // String returns the string representation.
 18237  //
 18238  // API parameter values that are decorated as "sensitive" in the API will not
 18239  // be included in the string output. The member name will be present, but the
 18240  // value will be replaced with "sensitive".
 18241  func (s FileDoesNotExistException) String() string {
 18242  	return awsutil.Prettify(s)
 18243  }
 18244  
 18245  // GoString returns the string representation.
 18246  //
 18247  // API parameter values that are decorated as "sensitive" in the API will not
 18248  // be included in the string output. The member name will be present, but the
 18249  // value will be replaced with "sensitive".
 18250  func (s FileDoesNotExistException) GoString() string {
 18251  	return s.String()
 18252  }
 18253  
 18254  func newErrorFileDoesNotExistException(v protocol.ResponseMetadata) error {
 18255  	return &FileDoesNotExistException{
 18256  		RespMetadata: v,
 18257  	}
 18258  }
 18259  
 18260  // Code returns the exception type name.
 18261  func (s *FileDoesNotExistException) Code() string {
 18262  	return "FileDoesNotExistException"
 18263  }
 18264  
 18265  // Message returns the exception's message.
 18266  func (s *FileDoesNotExistException) Message() string {
 18267  	if s.Message_ != nil {
 18268  		return *s.Message_
 18269  	}
 18270  	return ""
 18271  }
 18272  
 18273  // OrigErr always returns nil, satisfies awserr.Error interface.
 18274  func (s *FileDoesNotExistException) OrigErr() error {
 18275  	return nil
 18276  }
 18277  
 18278  func (s *FileDoesNotExistException) Error() string {
 18279  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18280  }
 18281  
 18282  // Status code returns the HTTP status code for the request's response error.
 18283  func (s *FileDoesNotExistException) StatusCode() int {
 18284  	return s.RespMetadata.StatusCode
 18285  }
 18286  
 18287  // RequestID returns the service's response RequestID for request.
 18288  func (s *FileDoesNotExistException) RequestID() string {
 18289  	return s.RespMetadata.RequestID
 18290  }
 18291  
 18292  // The commit cannot be created because no files have been specified as added,
 18293  // updated, or changed (PutFile or DeleteFile) for the commit.
 18294  type FileEntryRequiredException struct {
 18295  	_            struct{}                  `type:"structure"`
 18296  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18297  
 18298  	Message_ *string `locationName:"message" type:"string"`
 18299  }
 18300  
 18301  // String returns the string representation.
 18302  //
 18303  // API parameter values that are decorated as "sensitive" in the API will not
 18304  // be included in the string output. The member name will be present, but the
 18305  // value will be replaced with "sensitive".
 18306  func (s FileEntryRequiredException) String() string {
 18307  	return awsutil.Prettify(s)
 18308  }
 18309  
 18310  // GoString returns the string representation.
 18311  //
 18312  // API parameter values that are decorated as "sensitive" in the API will not
 18313  // be included in the string output. The member name will be present, but the
 18314  // value will be replaced with "sensitive".
 18315  func (s FileEntryRequiredException) GoString() string {
 18316  	return s.String()
 18317  }
 18318  
 18319  func newErrorFileEntryRequiredException(v protocol.ResponseMetadata) error {
 18320  	return &FileEntryRequiredException{
 18321  		RespMetadata: v,
 18322  	}
 18323  }
 18324  
 18325  // Code returns the exception type name.
 18326  func (s *FileEntryRequiredException) Code() string {
 18327  	return "FileEntryRequiredException"
 18328  }
 18329  
 18330  // Message returns the exception's message.
 18331  func (s *FileEntryRequiredException) Message() string {
 18332  	if s.Message_ != nil {
 18333  		return *s.Message_
 18334  	}
 18335  	return ""
 18336  }
 18337  
 18338  // OrigErr always returns nil, satisfies awserr.Error interface.
 18339  func (s *FileEntryRequiredException) OrigErr() error {
 18340  	return nil
 18341  }
 18342  
 18343  func (s *FileEntryRequiredException) Error() string {
 18344  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18345  }
 18346  
 18347  // Status code returns the HTTP status code for the request's response error.
 18348  func (s *FileEntryRequiredException) StatusCode() int {
 18349  	return s.RespMetadata.StatusCode
 18350  }
 18351  
 18352  // RequestID returns the service's response RequestID for request.
 18353  func (s *FileEntryRequiredException) RequestID() string {
 18354  	return s.RespMetadata.RequestID
 18355  }
 18356  
 18357  // A file to be added, updated, or deleted as part of a commit.
 18358  type FileMetadata struct {
 18359  	_ struct{} `type:"structure"`
 18360  
 18361  	// The full path to the file to be added or updated, including the name of the
 18362  	// file.
 18363  	AbsolutePath *string `locationName:"absolutePath" type:"string"`
 18364  
 18365  	// The blob ID that contains the file information.
 18366  	BlobId *string `locationName:"blobId" type:"string"`
 18367  
 18368  	// The extrapolated file mode permissions for the file. Valid values include
 18369  	// EXECUTABLE and NORMAL.
 18370  	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
 18371  }
 18372  
 18373  // String returns the string representation.
 18374  //
 18375  // API parameter values that are decorated as "sensitive" in the API will not
 18376  // be included in the string output. The member name will be present, but the
 18377  // value will be replaced with "sensitive".
 18378  func (s FileMetadata) String() string {
 18379  	return awsutil.Prettify(s)
 18380  }
 18381  
 18382  // GoString returns the string representation.
 18383  //
 18384  // API parameter values that are decorated as "sensitive" in the API will not
 18385  // be included in the string output. The member name will be present, but the
 18386  // value will be replaced with "sensitive".
 18387  func (s FileMetadata) GoString() string {
 18388  	return s.String()
 18389  }
 18390  
 18391  // SetAbsolutePath sets the AbsolutePath field's value.
 18392  func (s *FileMetadata) SetAbsolutePath(v string) *FileMetadata {
 18393  	s.AbsolutePath = &v
 18394  	return s
 18395  }
 18396  
 18397  // SetBlobId sets the BlobId field's value.
 18398  func (s *FileMetadata) SetBlobId(v string) *FileMetadata {
 18399  	s.BlobId = &v
 18400  	return s
 18401  }
 18402  
 18403  // SetFileMode sets the FileMode field's value.
 18404  func (s *FileMetadata) SetFileMode(v string) *FileMetadata {
 18405  	s.FileMode = &v
 18406  	return s
 18407  }
 18408  
 18409  // The commit cannot be created because no file mode has been specified. A file
 18410  // mode is required to update mode permissions for a file.
 18411  type FileModeRequiredException struct {
 18412  	_            struct{}                  `type:"structure"`
 18413  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18414  
 18415  	Message_ *string `locationName:"message" type:"string"`
 18416  }
 18417  
 18418  // String returns the string representation.
 18419  //
 18420  // API parameter values that are decorated as "sensitive" in the API will not
 18421  // be included in the string output. The member name will be present, but the
 18422  // value will be replaced with "sensitive".
 18423  func (s FileModeRequiredException) String() string {
 18424  	return awsutil.Prettify(s)
 18425  }
 18426  
 18427  // GoString returns the string representation.
 18428  //
 18429  // API parameter values that are decorated as "sensitive" in the API will not
 18430  // be included in the string output. The member name will be present, but the
 18431  // value will be replaced with "sensitive".
 18432  func (s FileModeRequiredException) GoString() string {
 18433  	return s.String()
 18434  }
 18435  
 18436  func newErrorFileModeRequiredException(v protocol.ResponseMetadata) error {
 18437  	return &FileModeRequiredException{
 18438  		RespMetadata: v,
 18439  	}
 18440  }
 18441  
 18442  // Code returns the exception type name.
 18443  func (s *FileModeRequiredException) Code() string {
 18444  	return "FileModeRequiredException"
 18445  }
 18446  
 18447  // Message returns the exception's message.
 18448  func (s *FileModeRequiredException) Message() string {
 18449  	if s.Message_ != nil {
 18450  		return *s.Message_
 18451  	}
 18452  	return ""
 18453  }
 18454  
 18455  // OrigErr always returns nil, satisfies awserr.Error interface.
 18456  func (s *FileModeRequiredException) OrigErr() error {
 18457  	return nil
 18458  }
 18459  
 18460  func (s *FileModeRequiredException) Error() string {
 18461  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18462  }
 18463  
 18464  // Status code returns the HTTP status code for the request's response error.
 18465  func (s *FileModeRequiredException) StatusCode() int {
 18466  	return s.RespMetadata.StatusCode
 18467  }
 18468  
 18469  // RequestID returns the service's response RequestID for request.
 18470  func (s *FileModeRequiredException) RequestID() string {
 18471  	return s.RespMetadata.RequestID
 18472  }
 18473  
 18474  // Information about file modes in a merge or pull request.
 18475  type FileModes struct {
 18476  	_ struct{} `type:"structure"`
 18477  
 18478  	// The file mode of a file in the base of a merge or pull request.
 18479  	Base *string `locationName:"base" type:"string" enum:"FileModeTypeEnum"`
 18480  
 18481  	// The file mode of a file in the destination of a merge or pull request.
 18482  	Destination *string `locationName:"destination" type:"string" enum:"FileModeTypeEnum"`
 18483  
 18484  	// The file mode of a file in the source of a merge or pull request.
 18485  	Source *string `locationName:"source" type:"string" enum:"FileModeTypeEnum"`
 18486  }
 18487  
 18488  // String returns the string representation.
 18489  //
 18490  // API parameter values that are decorated as "sensitive" in the API will not
 18491  // be included in the string output. The member name will be present, but the
 18492  // value will be replaced with "sensitive".
 18493  func (s FileModes) String() string {
 18494  	return awsutil.Prettify(s)
 18495  }
 18496  
 18497  // GoString returns the string representation.
 18498  //
 18499  // API parameter values that are decorated as "sensitive" in the API will not
 18500  // be included in the string output. The member name will be present, but the
 18501  // value will be replaced with "sensitive".
 18502  func (s FileModes) GoString() string {
 18503  	return s.String()
 18504  }
 18505  
 18506  // SetBase sets the Base field's value.
 18507  func (s *FileModes) SetBase(v string) *FileModes {
 18508  	s.Base = &v
 18509  	return s
 18510  }
 18511  
 18512  // SetDestination sets the Destination field's value.
 18513  func (s *FileModes) SetDestination(v string) *FileModes {
 18514  	s.Destination = &v
 18515  	return s
 18516  }
 18517  
 18518  // SetSource sets the Source field's value.
 18519  func (s *FileModes) SetSource(v string) *FileModes {
 18520  	s.Source = &v
 18521  	return s
 18522  }
 18523  
 18524  // A file cannot be added to the repository because the specified file name
 18525  // has the same name as a directory in this repository. Either provide another
 18526  // name for the file, or add the file in a directory that does not match the
 18527  // file name.
 18528  type FileNameConflictsWithDirectoryNameException struct {
 18529  	_            struct{}                  `type:"structure"`
 18530  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18531  
 18532  	Message_ *string `locationName:"message" type:"string"`
 18533  }
 18534  
 18535  // String returns the string representation.
 18536  //
 18537  // API parameter values that are decorated as "sensitive" in the API will not
 18538  // be included in the string output. The member name will be present, but the
 18539  // value will be replaced with "sensitive".
 18540  func (s FileNameConflictsWithDirectoryNameException) String() string {
 18541  	return awsutil.Prettify(s)
 18542  }
 18543  
 18544  // GoString returns the string representation.
 18545  //
 18546  // API parameter values that are decorated as "sensitive" in the API will not
 18547  // be included in the string output. The member name will be present, but the
 18548  // value will be replaced with "sensitive".
 18549  func (s FileNameConflictsWithDirectoryNameException) GoString() string {
 18550  	return s.String()
 18551  }
 18552  
 18553  func newErrorFileNameConflictsWithDirectoryNameException(v protocol.ResponseMetadata) error {
 18554  	return &FileNameConflictsWithDirectoryNameException{
 18555  		RespMetadata: v,
 18556  	}
 18557  }
 18558  
 18559  // Code returns the exception type name.
 18560  func (s *FileNameConflictsWithDirectoryNameException) Code() string {
 18561  	return "FileNameConflictsWithDirectoryNameException"
 18562  }
 18563  
 18564  // Message returns the exception's message.
 18565  func (s *FileNameConflictsWithDirectoryNameException) Message() string {
 18566  	if s.Message_ != nil {
 18567  		return *s.Message_
 18568  	}
 18569  	return ""
 18570  }
 18571  
 18572  // OrigErr always returns nil, satisfies awserr.Error interface.
 18573  func (s *FileNameConflictsWithDirectoryNameException) OrigErr() error {
 18574  	return nil
 18575  }
 18576  
 18577  func (s *FileNameConflictsWithDirectoryNameException) Error() string {
 18578  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18579  }
 18580  
 18581  // Status code returns the HTTP status code for the request's response error.
 18582  func (s *FileNameConflictsWithDirectoryNameException) StatusCode() int {
 18583  	return s.RespMetadata.StatusCode
 18584  }
 18585  
 18586  // RequestID returns the service's response RequestID for request.
 18587  func (s *FileNameConflictsWithDirectoryNameException) RequestID() string {
 18588  	return s.RespMetadata.RequestID
 18589  }
 18590  
 18591  // The commit cannot be created because a specified file path points to a submodule.
 18592  // Verify that the destination files have valid file paths that do not point
 18593  // to a submodule.
 18594  type FilePathConflictsWithSubmodulePathException struct {
 18595  	_            struct{}                  `type:"structure"`
 18596  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18597  
 18598  	Message_ *string `locationName:"message" type:"string"`
 18599  }
 18600  
 18601  // String returns the string representation.
 18602  //
 18603  // API parameter values that are decorated as "sensitive" in the API will not
 18604  // be included in the string output. The member name will be present, but the
 18605  // value will be replaced with "sensitive".
 18606  func (s FilePathConflictsWithSubmodulePathException) String() string {
 18607  	return awsutil.Prettify(s)
 18608  }
 18609  
 18610  // GoString returns the string representation.
 18611  //
 18612  // API parameter values that are decorated as "sensitive" in the API will not
 18613  // be included in the string output. The member name will be present, but the
 18614  // value will be replaced with "sensitive".
 18615  func (s FilePathConflictsWithSubmodulePathException) GoString() string {
 18616  	return s.String()
 18617  }
 18618  
 18619  func newErrorFilePathConflictsWithSubmodulePathException(v protocol.ResponseMetadata) error {
 18620  	return &FilePathConflictsWithSubmodulePathException{
 18621  		RespMetadata: v,
 18622  	}
 18623  }
 18624  
 18625  // Code returns the exception type name.
 18626  func (s *FilePathConflictsWithSubmodulePathException) Code() string {
 18627  	return "FilePathConflictsWithSubmodulePathException"
 18628  }
 18629  
 18630  // Message returns the exception's message.
 18631  func (s *FilePathConflictsWithSubmodulePathException) Message() string {
 18632  	if s.Message_ != nil {
 18633  		return *s.Message_
 18634  	}
 18635  	return ""
 18636  }
 18637  
 18638  // OrigErr always returns nil, satisfies awserr.Error interface.
 18639  func (s *FilePathConflictsWithSubmodulePathException) OrigErr() error {
 18640  	return nil
 18641  }
 18642  
 18643  func (s *FilePathConflictsWithSubmodulePathException) Error() string {
 18644  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18645  }
 18646  
 18647  // Status code returns the HTTP status code for the request's response error.
 18648  func (s *FilePathConflictsWithSubmodulePathException) StatusCode() int {
 18649  	return s.RespMetadata.StatusCode
 18650  }
 18651  
 18652  // RequestID returns the service's response RequestID for request.
 18653  func (s *FilePathConflictsWithSubmodulePathException) RequestID() string {
 18654  	return s.RespMetadata.RequestID
 18655  }
 18656  
 18657  // Information about the size of files in a merge or pull request.
 18658  type FileSizes struct {
 18659  	_ struct{} `type:"structure"`
 18660  
 18661  	// The size of a file in the base of a merge or pull request.
 18662  	Base *int64 `locationName:"base" type:"long"`
 18663  
 18664  	// The size of a file in the destination of a merge or pull request.
 18665  	Destination *int64 `locationName:"destination" type:"long"`
 18666  
 18667  	// The size of a file in the source of a merge or pull request.
 18668  	Source *int64 `locationName:"source" type:"long"`
 18669  }
 18670  
 18671  // String returns the string representation.
 18672  //
 18673  // API parameter values that are decorated as "sensitive" in the API will not
 18674  // be included in the string output. The member name will be present, but the
 18675  // value will be replaced with "sensitive".
 18676  func (s FileSizes) String() string {
 18677  	return awsutil.Prettify(s)
 18678  }
 18679  
 18680  // GoString returns the string representation.
 18681  //
 18682  // API parameter values that are decorated as "sensitive" in the API will not
 18683  // be included in the string output. The member name will be present, but the
 18684  // value will be replaced with "sensitive".
 18685  func (s FileSizes) GoString() string {
 18686  	return s.String()
 18687  }
 18688  
 18689  // SetBase sets the Base field's value.
 18690  func (s *FileSizes) SetBase(v int64) *FileSizes {
 18691  	s.Base = &v
 18692  	return s
 18693  }
 18694  
 18695  // SetDestination sets the Destination field's value.
 18696  func (s *FileSizes) SetDestination(v int64) *FileSizes {
 18697  	s.Destination = &v
 18698  	return s
 18699  }
 18700  
 18701  // SetSource sets the Source field's value.
 18702  func (s *FileSizes) SetSource(v int64) *FileSizes {
 18703  	s.Source = &v
 18704  	return s
 18705  }
 18706  
 18707  // The specified file exceeds the file size limit for AWS CodeCommit. For more
 18708  // information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
 18709  // (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
 18710  type FileTooLargeException struct {
 18711  	_            struct{}                  `type:"structure"`
 18712  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18713  
 18714  	Message_ *string `locationName:"message" type:"string"`
 18715  }
 18716  
 18717  // String returns the string representation.
 18718  //
 18719  // API parameter values that are decorated as "sensitive" in the API will not
 18720  // be included in the string output. The member name will be present, but the
 18721  // value will be replaced with "sensitive".
 18722  func (s FileTooLargeException) String() string {
 18723  	return awsutil.Prettify(s)
 18724  }
 18725  
 18726  // GoString returns the string representation.
 18727  //
 18728  // API parameter values that are decorated as "sensitive" in the API will not
 18729  // be included in the string output. The member name will be present, but the
 18730  // value will be replaced with "sensitive".
 18731  func (s FileTooLargeException) GoString() string {
 18732  	return s.String()
 18733  }
 18734  
 18735  func newErrorFileTooLargeException(v protocol.ResponseMetadata) error {
 18736  	return &FileTooLargeException{
 18737  		RespMetadata: v,
 18738  	}
 18739  }
 18740  
 18741  // Code returns the exception type name.
 18742  func (s *FileTooLargeException) Code() string {
 18743  	return "FileTooLargeException"
 18744  }
 18745  
 18746  // Message returns the exception's message.
 18747  func (s *FileTooLargeException) Message() string {
 18748  	if s.Message_ != nil {
 18749  		return *s.Message_
 18750  	}
 18751  	return ""
 18752  }
 18753  
 18754  // OrigErr always returns nil, satisfies awserr.Error interface.
 18755  func (s *FileTooLargeException) OrigErr() error {
 18756  	return nil
 18757  }
 18758  
 18759  func (s *FileTooLargeException) Error() string {
 18760  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18761  }
 18762  
 18763  // Status code returns the HTTP status code for the request's response error.
 18764  func (s *FileTooLargeException) StatusCode() int {
 18765  	return s.RespMetadata.StatusCode
 18766  }
 18767  
 18768  // RequestID returns the service's response RequestID for request.
 18769  func (s *FileTooLargeException) RequestID() string {
 18770  	return s.RespMetadata.RequestID
 18771  }
 18772  
 18773  // Returns information about a folder in a repository.
 18774  type Folder struct {
 18775  	_ struct{} `type:"structure"`
 18776  
 18777  	// The fully qualified path of the folder in the repository.
 18778  	AbsolutePath *string `locationName:"absolutePath" type:"string"`
 18779  
 18780  	// The relative path of the specified folder from the folder where the query
 18781  	// originated.
 18782  	RelativePath *string `locationName:"relativePath" type:"string"`
 18783  
 18784  	// The full SHA-1 pointer of the tree information for the commit that contains
 18785  	// the folder.
 18786  	TreeId *string `locationName:"treeId" type:"string"`
 18787  }
 18788  
 18789  // String returns the string representation.
 18790  //
 18791  // API parameter values that are decorated as "sensitive" in the API will not
 18792  // be included in the string output. The member name will be present, but the
 18793  // value will be replaced with "sensitive".
 18794  func (s Folder) String() string {
 18795  	return awsutil.Prettify(s)
 18796  }
 18797  
 18798  // GoString returns the string representation.
 18799  //
 18800  // API parameter values that are decorated as "sensitive" in the API will not
 18801  // be included in the string output. The member name will be present, but the
 18802  // value will be replaced with "sensitive".
 18803  func (s Folder) GoString() string {
 18804  	return s.String()
 18805  }
 18806  
 18807  // SetAbsolutePath sets the AbsolutePath field's value.
 18808  func (s *Folder) SetAbsolutePath(v string) *Folder {
 18809  	s.AbsolutePath = &v
 18810  	return s
 18811  }
 18812  
 18813  // SetRelativePath sets the RelativePath field's value.
 18814  func (s *Folder) SetRelativePath(v string) *Folder {
 18815  	s.RelativePath = &v
 18816  	return s
 18817  }
 18818  
 18819  // SetTreeId sets the TreeId field's value.
 18820  func (s *Folder) SetTreeId(v string) *Folder {
 18821  	s.TreeId = &v
 18822  	return s
 18823  }
 18824  
 18825  // The commit cannot be created because at least one of the overall changes
 18826  // in the commit results in a folder whose contents exceed the limit of 6 MB.
 18827  // Either reduce the number and size of your changes, or split the changes across
 18828  // multiple folders.
 18829  type FolderContentSizeLimitExceededException struct {
 18830  	_            struct{}                  `type:"structure"`
 18831  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18832  
 18833  	Message_ *string `locationName:"message" type:"string"`
 18834  }
 18835  
 18836  // String returns the string representation.
 18837  //
 18838  // API parameter values that are decorated as "sensitive" in the API will not
 18839  // be included in the string output. The member name will be present, but the
 18840  // value will be replaced with "sensitive".
 18841  func (s FolderContentSizeLimitExceededException) String() string {
 18842  	return awsutil.Prettify(s)
 18843  }
 18844  
 18845  // GoString returns the string representation.
 18846  //
 18847  // API parameter values that are decorated as "sensitive" in the API will not
 18848  // be included in the string output. The member name will be present, but the
 18849  // value will be replaced with "sensitive".
 18850  func (s FolderContentSizeLimitExceededException) GoString() string {
 18851  	return s.String()
 18852  }
 18853  
 18854  func newErrorFolderContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
 18855  	return &FolderContentSizeLimitExceededException{
 18856  		RespMetadata: v,
 18857  	}
 18858  }
 18859  
 18860  // Code returns the exception type name.
 18861  func (s *FolderContentSizeLimitExceededException) Code() string {
 18862  	return "FolderContentSizeLimitExceededException"
 18863  }
 18864  
 18865  // Message returns the exception's message.
 18866  func (s *FolderContentSizeLimitExceededException) Message() string {
 18867  	if s.Message_ != nil {
 18868  		return *s.Message_
 18869  	}
 18870  	return ""
 18871  }
 18872  
 18873  // OrigErr always returns nil, satisfies awserr.Error interface.
 18874  func (s *FolderContentSizeLimitExceededException) OrigErr() error {
 18875  	return nil
 18876  }
 18877  
 18878  func (s *FolderContentSizeLimitExceededException) Error() string {
 18879  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18880  }
 18881  
 18882  // Status code returns the HTTP status code for the request's response error.
 18883  func (s *FolderContentSizeLimitExceededException) StatusCode() int {
 18884  	return s.RespMetadata.StatusCode
 18885  }
 18886  
 18887  // RequestID returns the service's response RequestID for request.
 18888  func (s *FolderContentSizeLimitExceededException) RequestID() string {
 18889  	return s.RespMetadata.RequestID
 18890  }
 18891  
 18892  // The specified folder does not exist. Either the folder name is not correct,
 18893  // or you did not enter the full path to the folder.
 18894  type FolderDoesNotExistException struct {
 18895  	_            struct{}                  `type:"structure"`
 18896  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 18897  
 18898  	Message_ *string `locationName:"message" type:"string"`
 18899  }
 18900  
 18901  // String returns the string representation.
 18902  //
 18903  // API parameter values that are decorated as "sensitive" in the API will not
 18904  // be included in the string output. The member name will be present, but the
 18905  // value will be replaced with "sensitive".
 18906  func (s FolderDoesNotExistException) String() string {
 18907  	return awsutil.Prettify(s)
 18908  }
 18909  
 18910  // GoString returns the string representation.
 18911  //
 18912  // API parameter values that are decorated as "sensitive" in the API will not
 18913  // be included in the string output. The member name will be present, but the
 18914  // value will be replaced with "sensitive".
 18915  func (s FolderDoesNotExistException) GoString() string {
 18916  	return s.String()
 18917  }
 18918  
 18919  func newErrorFolderDoesNotExistException(v protocol.ResponseMetadata) error {
 18920  	return &FolderDoesNotExistException{
 18921  		RespMetadata: v,
 18922  	}
 18923  }
 18924  
 18925  // Code returns the exception type name.
 18926  func (s *FolderDoesNotExistException) Code() string {
 18927  	return "FolderDoesNotExistException"
 18928  }
 18929  
 18930  // Message returns the exception's message.
 18931  func (s *FolderDoesNotExistException) Message() string {
 18932  	if s.Message_ != nil {
 18933  		return *s.Message_
 18934  	}
 18935  	return ""
 18936  }
 18937  
 18938  // OrigErr always returns nil, satisfies awserr.Error interface.
 18939  func (s *FolderDoesNotExistException) OrigErr() error {
 18940  	return nil
 18941  }
 18942  
 18943  func (s *FolderDoesNotExistException) Error() string {
 18944  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 18945  }
 18946  
 18947  // Status code returns the HTTP status code for the request's response error.
 18948  func (s *FolderDoesNotExistException) StatusCode() int {
 18949  	return s.RespMetadata.StatusCode
 18950  }
 18951  
 18952  // RequestID returns the service's response RequestID for request.
 18953  func (s *FolderDoesNotExistException) RequestID() string {
 18954  	return s.RespMetadata.RequestID
 18955  }
 18956  
 18957  type GetApprovalRuleTemplateInput struct {
 18958  	_ struct{} `type:"structure"`
 18959  
 18960  	// The name of the approval rule template for which you want to get information.
 18961  	//
 18962  	// ApprovalRuleTemplateName is a required field
 18963  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 18964  }
 18965  
 18966  // String returns the string representation.
 18967  //
 18968  // API parameter values that are decorated as "sensitive" in the API will not
 18969  // be included in the string output. The member name will be present, but the
 18970  // value will be replaced with "sensitive".
 18971  func (s GetApprovalRuleTemplateInput) String() string {
 18972  	return awsutil.Prettify(s)
 18973  }
 18974  
 18975  // GoString returns the string representation.
 18976  //
 18977  // API parameter values that are decorated as "sensitive" in the API will not
 18978  // be included in the string output. The member name will be present, but the
 18979  // value will be replaced with "sensitive".
 18980  func (s GetApprovalRuleTemplateInput) GoString() string {
 18981  	return s.String()
 18982  }
 18983  
 18984  // Validate inspects the fields of the type to determine if they are valid.
 18985  func (s *GetApprovalRuleTemplateInput) Validate() error {
 18986  	invalidParams := request.ErrInvalidParams{Context: "GetApprovalRuleTemplateInput"}
 18987  	if s.ApprovalRuleTemplateName == nil {
 18988  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 18989  	}
 18990  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 18991  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 18992  	}
 18993  
 18994  	if invalidParams.Len() > 0 {
 18995  		return invalidParams
 18996  	}
 18997  	return nil
 18998  }
 18999  
 19000  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 19001  func (s *GetApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *GetApprovalRuleTemplateInput {
 19002  	s.ApprovalRuleTemplateName = &v
 19003  	return s
 19004  }
 19005  
 19006  type GetApprovalRuleTemplateOutput struct {
 19007  	_ struct{} `type:"structure"`
 19008  
 19009  	// The content and structure of the approval rule template.
 19010  	//
 19011  	// ApprovalRuleTemplate is a required field
 19012  	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
 19013  }
 19014  
 19015  // String returns the string representation.
 19016  //
 19017  // API parameter values that are decorated as "sensitive" in the API will not
 19018  // be included in the string output. The member name will be present, but the
 19019  // value will be replaced with "sensitive".
 19020  func (s GetApprovalRuleTemplateOutput) String() string {
 19021  	return awsutil.Prettify(s)
 19022  }
 19023  
 19024  // GoString returns the string representation.
 19025  //
 19026  // API parameter values that are decorated as "sensitive" in the API will not
 19027  // be included in the string output. The member name will be present, but the
 19028  // value will be replaced with "sensitive".
 19029  func (s GetApprovalRuleTemplateOutput) GoString() string {
 19030  	return s.String()
 19031  }
 19032  
 19033  // SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
 19034  func (s *GetApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *GetApprovalRuleTemplateOutput {
 19035  	s.ApprovalRuleTemplate = v
 19036  	return s
 19037  }
 19038  
 19039  // Represents the input of a get blob operation.
 19040  type GetBlobInput struct {
 19041  	_ struct{} `type:"structure"`
 19042  
 19043  	// The ID of the blob, which is its SHA-1 pointer.
 19044  	//
 19045  	// BlobId is a required field
 19046  	BlobId *string `locationName:"blobId" type:"string" required:"true"`
 19047  
 19048  	// The name of the repository that contains the blob.
 19049  	//
 19050  	// RepositoryName is a required field
 19051  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 19052  }
 19053  
 19054  // String returns the string representation.
 19055  //
 19056  // API parameter values that are decorated as "sensitive" in the API will not
 19057  // be included in the string output. The member name will be present, but the
 19058  // value will be replaced with "sensitive".
 19059  func (s GetBlobInput) String() string {
 19060  	return awsutil.Prettify(s)
 19061  }
 19062  
 19063  // GoString returns the string representation.
 19064  //
 19065  // API parameter values that are decorated as "sensitive" in the API will not
 19066  // be included in the string output. The member name will be present, but the
 19067  // value will be replaced with "sensitive".
 19068  func (s GetBlobInput) GoString() string {
 19069  	return s.String()
 19070  }
 19071  
 19072  // Validate inspects the fields of the type to determine if they are valid.
 19073  func (s *GetBlobInput) Validate() error {
 19074  	invalidParams := request.ErrInvalidParams{Context: "GetBlobInput"}
 19075  	if s.BlobId == nil {
 19076  		invalidParams.Add(request.NewErrParamRequired("BlobId"))
 19077  	}
 19078  	if s.RepositoryName == nil {
 19079  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 19080  	}
 19081  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 19082  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 19083  	}
 19084  
 19085  	if invalidParams.Len() > 0 {
 19086  		return invalidParams
 19087  	}
 19088  	return nil
 19089  }
 19090  
 19091  // SetBlobId sets the BlobId field's value.
 19092  func (s *GetBlobInput) SetBlobId(v string) *GetBlobInput {
 19093  	s.BlobId = &v
 19094  	return s
 19095  }
 19096  
 19097  // SetRepositoryName sets the RepositoryName field's value.
 19098  func (s *GetBlobInput) SetRepositoryName(v string) *GetBlobInput {
 19099  	s.RepositoryName = &v
 19100  	return s
 19101  }
 19102  
 19103  // Represents the output of a get blob operation.
 19104  type GetBlobOutput struct {
 19105  	_ struct{} `type:"structure"`
 19106  
 19107  	// The content of the blob, usually a file.
 19108  	// Content is automatically base64 encoded/decoded by the SDK.
 19109  	//
 19110  	// Content is a required field
 19111  	Content []byte `locationName:"content" type:"blob" required:"true"`
 19112  }
 19113  
 19114  // String returns the string representation.
 19115  //
 19116  // API parameter values that are decorated as "sensitive" in the API will not
 19117  // be included in the string output. The member name will be present, but the
 19118  // value will be replaced with "sensitive".
 19119  func (s GetBlobOutput) String() string {
 19120  	return awsutil.Prettify(s)
 19121  }
 19122  
 19123  // GoString returns the string representation.
 19124  //
 19125  // API parameter values that are decorated as "sensitive" in the API will not
 19126  // be included in the string output. The member name will be present, but the
 19127  // value will be replaced with "sensitive".
 19128  func (s GetBlobOutput) GoString() string {
 19129  	return s.String()
 19130  }
 19131  
 19132  // SetContent sets the Content field's value.
 19133  func (s *GetBlobOutput) SetContent(v []byte) *GetBlobOutput {
 19134  	s.Content = v
 19135  	return s
 19136  }
 19137  
 19138  // Represents the input of a get branch operation.
 19139  type GetBranchInput struct {
 19140  	_ struct{} `type:"structure"`
 19141  
 19142  	// The name of the branch for which you want to retrieve information.
 19143  	BranchName *string `locationName:"branchName" min:"1" type:"string"`
 19144  
 19145  	// The name of the repository that contains the branch for which you want to
 19146  	// retrieve information.
 19147  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 19148  }
 19149  
 19150  // String returns the string representation.
 19151  //
 19152  // API parameter values that are decorated as "sensitive" in the API will not
 19153  // be included in the string output. The member name will be present, but the
 19154  // value will be replaced with "sensitive".
 19155  func (s GetBranchInput) String() string {
 19156  	return awsutil.Prettify(s)
 19157  }
 19158  
 19159  // GoString returns the string representation.
 19160  //
 19161  // API parameter values that are decorated as "sensitive" in the API will not
 19162  // be included in the string output. The member name will be present, but the
 19163  // value will be replaced with "sensitive".
 19164  func (s GetBranchInput) GoString() string {
 19165  	return s.String()
 19166  }
 19167  
 19168  // Validate inspects the fields of the type to determine if they are valid.
 19169  func (s *GetBranchInput) Validate() error {
 19170  	invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"}
 19171  	if s.BranchName != nil && len(*s.BranchName) < 1 {
 19172  		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
 19173  	}
 19174  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 19175  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 19176  	}
 19177  
 19178  	if invalidParams.Len() > 0 {
 19179  		return invalidParams
 19180  	}
 19181  	return nil
 19182  }
 19183  
 19184  // SetBranchName sets the BranchName field's value.
 19185  func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput {
 19186  	s.BranchName = &v
 19187  	return s
 19188  }
 19189  
 19190  // SetRepositoryName sets the RepositoryName field's value.
 19191  func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput {
 19192  	s.RepositoryName = &v
 19193  	return s
 19194  }
 19195  
 19196  // Represents the output of a get branch operation.
 19197  type GetBranchOutput struct {
 19198  	_ struct{} `type:"structure"`
 19199  
 19200  	// The name of the branch.
 19201  	Branch *BranchInfo `locationName:"branch" type:"structure"`
 19202  }
 19203  
 19204  // String returns the string representation.
 19205  //
 19206  // API parameter values that are decorated as "sensitive" in the API will not
 19207  // be included in the string output. The member name will be present, but the
 19208  // value will be replaced with "sensitive".
 19209  func (s GetBranchOutput) String() string {
 19210  	return awsutil.Prettify(s)
 19211  }
 19212  
 19213  // GoString returns the string representation.
 19214  //
 19215  // API parameter values that are decorated as "sensitive" in the API will not
 19216  // be included in the string output. The member name will be present, but the
 19217  // value will be replaced with "sensitive".
 19218  func (s GetBranchOutput) GoString() string {
 19219  	return s.String()
 19220  }
 19221  
 19222  // SetBranch sets the Branch field's value.
 19223  func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput {
 19224  	s.Branch = v
 19225  	return s
 19226  }
 19227  
 19228  type GetCommentInput struct {
 19229  	_ struct{} `type:"structure"`
 19230  
 19231  	// The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
 19232  	// or GetCommentsForPullRequest.
 19233  	//
 19234  	// CommentId is a required field
 19235  	CommentId *string `locationName:"commentId" type:"string" required:"true"`
 19236  }
 19237  
 19238  // String returns the string representation.
 19239  //
 19240  // API parameter values that are decorated as "sensitive" in the API will not
 19241  // be included in the string output. The member name will be present, but the
 19242  // value will be replaced with "sensitive".
 19243  func (s GetCommentInput) String() string {
 19244  	return awsutil.Prettify(s)
 19245  }
 19246  
 19247  // GoString returns the string representation.
 19248  //
 19249  // API parameter values that are decorated as "sensitive" in the API will not
 19250  // be included in the string output. The member name will be present, but the
 19251  // value will be replaced with "sensitive".
 19252  func (s GetCommentInput) GoString() string {
 19253  	return s.String()
 19254  }
 19255  
 19256  // Validate inspects the fields of the type to determine if they are valid.
 19257  func (s *GetCommentInput) Validate() error {
 19258  	invalidParams := request.ErrInvalidParams{Context: "GetCommentInput"}
 19259  	if s.CommentId == nil {
 19260  		invalidParams.Add(request.NewErrParamRequired("CommentId"))
 19261  	}
 19262  
 19263  	if invalidParams.Len() > 0 {
 19264  		return invalidParams
 19265  	}
 19266  	return nil
 19267  }
 19268  
 19269  // SetCommentId sets the CommentId field's value.
 19270  func (s *GetCommentInput) SetCommentId(v string) *GetCommentInput {
 19271  	s.CommentId = &v
 19272  	return s
 19273  }
 19274  
 19275  type GetCommentOutput struct {
 19276  	_ struct{} `type:"structure"`
 19277  
 19278  	// The contents of the comment.
 19279  	Comment *Comment `locationName:"comment" type:"structure"`
 19280  }
 19281  
 19282  // String returns the string representation.
 19283  //
 19284  // API parameter values that are decorated as "sensitive" in the API will not
 19285  // be included in the string output. The member name will be present, but the
 19286  // value will be replaced with "sensitive".
 19287  func (s GetCommentOutput) String() string {
 19288  	return awsutil.Prettify(s)
 19289  }
 19290  
 19291  // GoString returns the string representation.
 19292  //
 19293  // API parameter values that are decorated as "sensitive" in the API will not
 19294  // be included in the string output. The member name will be present, but the
 19295  // value will be replaced with "sensitive".
 19296  func (s GetCommentOutput) GoString() string {
 19297  	return s.String()
 19298  }
 19299  
 19300  // SetComment sets the Comment field's value.
 19301  func (s *GetCommentOutput) SetComment(v *Comment) *GetCommentOutput {
 19302  	s.Comment = v
 19303  	return s
 19304  }
 19305  
 19306  type GetCommentReactionsInput struct {
 19307  	_ struct{} `type:"structure"`
 19308  
 19309  	// The ID of the comment for which you want to get reactions information.
 19310  	//
 19311  	// CommentId is a required field
 19312  	CommentId *string `locationName:"commentId" type:"string" required:"true"`
 19313  
 19314  	// A non-zero, non-negative integer used to limit the number of returned results.
 19315  	// The default is the same as the allowed maximum, 1,000.
 19316  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 19317  
 19318  	// An enumeration token that, when provided in a request, returns the next batch
 19319  	// of the results.
 19320  	NextToken *string `locationName:"nextToken" type:"string"`
 19321  
 19322  	// Optional. The Amazon Resource Name (ARN) of the user or identity for which
 19323  	// you want to get reaction information.
 19324  	ReactionUserArn *string `locationName:"reactionUserArn" type:"string"`
 19325  }
 19326  
 19327  // String returns the string representation.
 19328  //
 19329  // API parameter values that are decorated as "sensitive" in the API will not
 19330  // be included in the string output. The member name will be present, but the
 19331  // value will be replaced with "sensitive".
 19332  func (s GetCommentReactionsInput) String() string {
 19333  	return awsutil.Prettify(s)
 19334  }
 19335  
 19336  // GoString returns the string representation.
 19337  //
 19338  // API parameter values that are decorated as "sensitive" in the API will not
 19339  // be included in the string output. The member name will be present, but the
 19340  // value will be replaced with "sensitive".
 19341  func (s GetCommentReactionsInput) GoString() string {
 19342  	return s.String()
 19343  }
 19344  
 19345  // Validate inspects the fields of the type to determine if they are valid.
 19346  func (s *GetCommentReactionsInput) Validate() error {
 19347  	invalidParams := request.ErrInvalidParams{Context: "GetCommentReactionsInput"}
 19348  	if s.CommentId == nil {
 19349  		invalidParams.Add(request.NewErrParamRequired("CommentId"))
 19350  	}
 19351  
 19352  	if invalidParams.Len() > 0 {
 19353  		return invalidParams
 19354  	}
 19355  	return nil
 19356  }
 19357  
 19358  // SetCommentId sets the CommentId field's value.
 19359  func (s *GetCommentReactionsInput) SetCommentId(v string) *GetCommentReactionsInput {
 19360  	s.CommentId = &v
 19361  	return s
 19362  }
 19363  
 19364  // SetMaxResults sets the MaxResults field's value.
 19365  func (s *GetCommentReactionsInput) SetMaxResults(v int64) *GetCommentReactionsInput {
 19366  	s.MaxResults = &v
 19367  	return s
 19368  }
 19369  
 19370  // SetNextToken sets the NextToken field's value.
 19371  func (s *GetCommentReactionsInput) SetNextToken(v string) *GetCommentReactionsInput {
 19372  	s.NextToken = &v
 19373  	return s
 19374  }
 19375  
 19376  // SetReactionUserArn sets the ReactionUserArn field's value.
 19377  func (s *GetCommentReactionsInput) SetReactionUserArn(v string) *GetCommentReactionsInput {
 19378  	s.ReactionUserArn = &v
 19379  	return s
 19380  }
 19381  
 19382  type GetCommentReactionsOutput struct {
 19383  	_ struct{} `type:"structure"`
 19384  
 19385  	// An enumeration token that can be used in a request to return the next batch
 19386  	// of the results.
 19387  	NextToken *string `locationName:"nextToken" type:"string"`
 19388  
 19389  	// An array of reactions to the specified comment.
 19390  	//
 19391  	// ReactionsForComment is a required field
 19392  	ReactionsForComment []*ReactionForComment `locationName:"reactionsForComment" type:"list" required:"true"`
 19393  }
 19394  
 19395  // String returns the string representation.
 19396  //
 19397  // API parameter values that are decorated as "sensitive" in the API will not
 19398  // be included in the string output. The member name will be present, but the
 19399  // value will be replaced with "sensitive".
 19400  func (s GetCommentReactionsOutput) String() string {
 19401  	return awsutil.Prettify(s)
 19402  }
 19403  
 19404  // GoString returns the string representation.
 19405  //
 19406  // API parameter values that are decorated as "sensitive" in the API will not
 19407  // be included in the string output. The member name will be present, but the
 19408  // value will be replaced with "sensitive".
 19409  func (s GetCommentReactionsOutput) GoString() string {
 19410  	return s.String()
 19411  }
 19412  
 19413  // SetNextToken sets the NextToken field's value.
 19414  func (s *GetCommentReactionsOutput) SetNextToken(v string) *GetCommentReactionsOutput {
 19415  	s.NextToken = &v
 19416  	return s
 19417  }
 19418  
 19419  // SetReactionsForComment sets the ReactionsForComment field's value.
 19420  func (s *GetCommentReactionsOutput) SetReactionsForComment(v []*ReactionForComment) *GetCommentReactionsOutput {
 19421  	s.ReactionsForComment = v
 19422  	return s
 19423  }
 19424  
 19425  type GetCommentsForComparedCommitInput struct {
 19426  	_ struct{} `type:"structure"`
 19427  
 19428  	// To establish the directionality of the comparison, the full commit ID of
 19429  	// the after commit.
 19430  	//
 19431  	// AfterCommitId is a required field
 19432  	AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
 19433  
 19434  	// To establish the directionality of the comparison, the full commit ID of
 19435  	// the before commit.
 19436  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 19437  
 19438  	// A non-zero, non-negative integer used to limit the number of returned results.
 19439  	// The default is 100 comments, but you can configure up to 500.
 19440  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 19441  
 19442  	// An enumeration token that when provided in a request, returns the next batch
 19443  	// of the results.
 19444  	NextToken *string `locationName:"nextToken" type:"string"`
 19445  
 19446  	// The name of the repository where you want to compare commits.
 19447  	//
 19448  	// RepositoryName is a required field
 19449  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 19450  }
 19451  
 19452  // String returns the string representation.
 19453  //
 19454  // API parameter values that are decorated as "sensitive" in the API will not
 19455  // be included in the string output. The member name will be present, but the
 19456  // value will be replaced with "sensitive".
 19457  func (s GetCommentsForComparedCommitInput) String() string {
 19458  	return awsutil.Prettify(s)
 19459  }
 19460  
 19461  // GoString returns the string representation.
 19462  //
 19463  // API parameter values that are decorated as "sensitive" in the API will not
 19464  // be included in the string output. The member name will be present, but the
 19465  // value will be replaced with "sensitive".
 19466  func (s GetCommentsForComparedCommitInput) GoString() string {
 19467  	return s.String()
 19468  }
 19469  
 19470  // Validate inspects the fields of the type to determine if they are valid.
 19471  func (s *GetCommentsForComparedCommitInput) Validate() error {
 19472  	invalidParams := request.ErrInvalidParams{Context: "GetCommentsForComparedCommitInput"}
 19473  	if s.AfterCommitId == nil {
 19474  		invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
 19475  	}
 19476  	if s.RepositoryName == nil {
 19477  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 19478  	}
 19479  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 19480  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 19481  	}
 19482  
 19483  	if invalidParams.Len() > 0 {
 19484  		return invalidParams
 19485  	}
 19486  	return nil
 19487  }
 19488  
 19489  // SetAfterCommitId sets the AfterCommitId field's value.
 19490  func (s *GetCommentsForComparedCommitInput) SetAfterCommitId(v string) *GetCommentsForComparedCommitInput {
 19491  	s.AfterCommitId = &v
 19492  	return s
 19493  }
 19494  
 19495  // SetBeforeCommitId sets the BeforeCommitId field's value.
 19496  func (s *GetCommentsForComparedCommitInput) SetBeforeCommitId(v string) *GetCommentsForComparedCommitInput {
 19497  	s.BeforeCommitId = &v
 19498  	return s
 19499  }
 19500  
 19501  // SetMaxResults sets the MaxResults field's value.
 19502  func (s *GetCommentsForComparedCommitInput) SetMaxResults(v int64) *GetCommentsForComparedCommitInput {
 19503  	s.MaxResults = &v
 19504  	return s
 19505  }
 19506  
 19507  // SetNextToken sets the NextToken field's value.
 19508  func (s *GetCommentsForComparedCommitInput) SetNextToken(v string) *GetCommentsForComparedCommitInput {
 19509  	s.NextToken = &v
 19510  	return s
 19511  }
 19512  
 19513  // SetRepositoryName sets the RepositoryName field's value.
 19514  func (s *GetCommentsForComparedCommitInput) SetRepositoryName(v string) *GetCommentsForComparedCommitInput {
 19515  	s.RepositoryName = &v
 19516  	return s
 19517  }
 19518  
 19519  type GetCommentsForComparedCommitOutput struct {
 19520  	_ struct{} `type:"structure"`
 19521  
 19522  	// A list of comment objects on the compared commit.
 19523  	CommentsForComparedCommitData []*CommentsForComparedCommit `locationName:"commentsForComparedCommitData" type:"list"`
 19524  
 19525  	// An enumeration token that can be used in a request to return the next batch
 19526  	// of the results.
 19527  	NextToken *string `locationName:"nextToken" type:"string"`
 19528  }
 19529  
 19530  // String returns the string representation.
 19531  //
 19532  // API parameter values that are decorated as "sensitive" in the API will not
 19533  // be included in the string output. The member name will be present, but the
 19534  // value will be replaced with "sensitive".
 19535  func (s GetCommentsForComparedCommitOutput) String() string {
 19536  	return awsutil.Prettify(s)
 19537  }
 19538  
 19539  // GoString returns the string representation.
 19540  //
 19541  // API parameter values that are decorated as "sensitive" in the API will not
 19542  // be included in the string output. The member name will be present, but the
 19543  // value will be replaced with "sensitive".
 19544  func (s GetCommentsForComparedCommitOutput) GoString() string {
 19545  	return s.String()
 19546  }
 19547  
 19548  // SetCommentsForComparedCommitData sets the CommentsForComparedCommitData field's value.
 19549  func (s *GetCommentsForComparedCommitOutput) SetCommentsForComparedCommitData(v []*CommentsForComparedCommit) *GetCommentsForComparedCommitOutput {
 19550  	s.CommentsForComparedCommitData = v
 19551  	return s
 19552  }
 19553  
 19554  // SetNextToken sets the NextToken field's value.
 19555  func (s *GetCommentsForComparedCommitOutput) SetNextToken(v string) *GetCommentsForComparedCommitOutput {
 19556  	s.NextToken = &v
 19557  	return s
 19558  }
 19559  
 19560  type GetCommentsForPullRequestInput struct {
 19561  	_ struct{} `type:"structure"`
 19562  
 19563  	// The full commit ID of the commit in the source branch that was the tip of
 19564  	// the branch at the time the comment was made.
 19565  	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
 19566  
 19567  	// The full commit ID of the commit in the destination branch that was the tip
 19568  	// of the branch at the time the pull request was created.
 19569  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 19570  
 19571  	// A non-zero, non-negative integer used to limit the number of returned results.
 19572  	// The default is 100 comments. You can return up to 500 comments with a single
 19573  	// request.
 19574  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 19575  
 19576  	// An enumeration token that, when provided in a request, returns the next batch
 19577  	// of the results.
 19578  	NextToken *string `locationName:"nextToken" type:"string"`
 19579  
 19580  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 19581  	//
 19582  	// PullRequestId is a required field
 19583  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 19584  
 19585  	// The name of the repository that contains the pull request.
 19586  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 19587  }
 19588  
 19589  // String returns the string representation.
 19590  //
 19591  // API parameter values that are decorated as "sensitive" in the API will not
 19592  // be included in the string output. The member name will be present, but the
 19593  // value will be replaced with "sensitive".
 19594  func (s GetCommentsForPullRequestInput) String() string {
 19595  	return awsutil.Prettify(s)
 19596  }
 19597  
 19598  // GoString returns the string representation.
 19599  //
 19600  // API parameter values that are decorated as "sensitive" in the API will not
 19601  // be included in the string output. The member name will be present, but the
 19602  // value will be replaced with "sensitive".
 19603  func (s GetCommentsForPullRequestInput) GoString() string {
 19604  	return s.String()
 19605  }
 19606  
 19607  // Validate inspects the fields of the type to determine if they are valid.
 19608  func (s *GetCommentsForPullRequestInput) Validate() error {
 19609  	invalidParams := request.ErrInvalidParams{Context: "GetCommentsForPullRequestInput"}
 19610  	if s.PullRequestId == nil {
 19611  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 19612  	}
 19613  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 19614  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 19615  	}
 19616  
 19617  	if invalidParams.Len() > 0 {
 19618  		return invalidParams
 19619  	}
 19620  	return nil
 19621  }
 19622  
 19623  // SetAfterCommitId sets the AfterCommitId field's value.
 19624  func (s *GetCommentsForPullRequestInput) SetAfterCommitId(v string) *GetCommentsForPullRequestInput {
 19625  	s.AfterCommitId = &v
 19626  	return s
 19627  }
 19628  
 19629  // SetBeforeCommitId sets the BeforeCommitId field's value.
 19630  func (s *GetCommentsForPullRequestInput) SetBeforeCommitId(v string) *GetCommentsForPullRequestInput {
 19631  	s.BeforeCommitId = &v
 19632  	return s
 19633  }
 19634  
 19635  // SetMaxResults sets the MaxResults field's value.
 19636  func (s *GetCommentsForPullRequestInput) SetMaxResults(v int64) *GetCommentsForPullRequestInput {
 19637  	s.MaxResults = &v
 19638  	return s
 19639  }
 19640  
 19641  // SetNextToken sets the NextToken field's value.
 19642  func (s *GetCommentsForPullRequestInput) SetNextToken(v string) *GetCommentsForPullRequestInput {
 19643  	s.NextToken = &v
 19644  	return s
 19645  }
 19646  
 19647  // SetPullRequestId sets the PullRequestId field's value.
 19648  func (s *GetCommentsForPullRequestInput) SetPullRequestId(v string) *GetCommentsForPullRequestInput {
 19649  	s.PullRequestId = &v
 19650  	return s
 19651  }
 19652  
 19653  // SetRepositoryName sets the RepositoryName field's value.
 19654  func (s *GetCommentsForPullRequestInput) SetRepositoryName(v string) *GetCommentsForPullRequestInput {
 19655  	s.RepositoryName = &v
 19656  	return s
 19657  }
 19658  
 19659  type GetCommentsForPullRequestOutput struct {
 19660  	_ struct{} `type:"structure"`
 19661  
 19662  	// An array of comment objects on the pull request.
 19663  	CommentsForPullRequestData []*CommentsForPullRequest `locationName:"commentsForPullRequestData" type:"list"`
 19664  
 19665  	// An enumeration token that can be used in a request to return the next batch
 19666  	// of the results.
 19667  	NextToken *string `locationName:"nextToken" type:"string"`
 19668  }
 19669  
 19670  // String returns the string representation.
 19671  //
 19672  // API parameter values that are decorated as "sensitive" in the API will not
 19673  // be included in the string output. The member name will be present, but the
 19674  // value will be replaced with "sensitive".
 19675  func (s GetCommentsForPullRequestOutput) String() string {
 19676  	return awsutil.Prettify(s)
 19677  }
 19678  
 19679  // GoString returns the string representation.
 19680  //
 19681  // API parameter values that are decorated as "sensitive" in the API will not
 19682  // be included in the string output. The member name will be present, but the
 19683  // value will be replaced with "sensitive".
 19684  func (s GetCommentsForPullRequestOutput) GoString() string {
 19685  	return s.String()
 19686  }
 19687  
 19688  // SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value.
 19689  func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput {
 19690  	s.CommentsForPullRequestData = v
 19691  	return s
 19692  }
 19693  
 19694  // SetNextToken sets the NextToken field's value.
 19695  func (s *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput {
 19696  	s.NextToken = &v
 19697  	return s
 19698  }
 19699  
 19700  // Represents the input of a get commit operation.
 19701  type GetCommitInput struct {
 19702  	_ struct{} `type:"structure"`
 19703  
 19704  	// The commit ID. Commit IDs are the full SHA ID of the commit.
 19705  	//
 19706  	// CommitId is a required field
 19707  	CommitId *string `locationName:"commitId" type:"string" required:"true"`
 19708  
 19709  	// The name of the repository to which the commit was made.
 19710  	//
 19711  	// RepositoryName is a required field
 19712  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 19713  }
 19714  
 19715  // String returns the string representation.
 19716  //
 19717  // API parameter values that are decorated as "sensitive" in the API will not
 19718  // be included in the string output. The member name will be present, but the
 19719  // value will be replaced with "sensitive".
 19720  func (s GetCommitInput) String() string {
 19721  	return awsutil.Prettify(s)
 19722  }
 19723  
 19724  // GoString returns the string representation.
 19725  //
 19726  // API parameter values that are decorated as "sensitive" in the API will not
 19727  // be included in the string output. The member name will be present, but the
 19728  // value will be replaced with "sensitive".
 19729  func (s GetCommitInput) GoString() string {
 19730  	return s.String()
 19731  }
 19732  
 19733  // Validate inspects the fields of the type to determine if they are valid.
 19734  func (s *GetCommitInput) Validate() error {
 19735  	invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"}
 19736  	if s.CommitId == nil {
 19737  		invalidParams.Add(request.NewErrParamRequired("CommitId"))
 19738  	}
 19739  	if s.RepositoryName == nil {
 19740  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 19741  	}
 19742  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 19743  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 19744  	}
 19745  
 19746  	if invalidParams.Len() > 0 {
 19747  		return invalidParams
 19748  	}
 19749  	return nil
 19750  }
 19751  
 19752  // SetCommitId sets the CommitId field's value.
 19753  func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput {
 19754  	s.CommitId = &v
 19755  	return s
 19756  }
 19757  
 19758  // SetRepositoryName sets the RepositoryName field's value.
 19759  func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput {
 19760  	s.RepositoryName = &v
 19761  	return s
 19762  }
 19763  
 19764  // Represents the output of a get commit operation.
 19765  type GetCommitOutput struct {
 19766  	_ struct{} `type:"structure"`
 19767  
 19768  	// A commit data type object that contains information about the specified commit.
 19769  	//
 19770  	// Commit is a required field
 19771  	Commit *Commit `locationName:"commit" type:"structure" required:"true"`
 19772  }
 19773  
 19774  // String returns the string representation.
 19775  //
 19776  // API parameter values that are decorated as "sensitive" in the API will not
 19777  // be included in the string output. The member name will be present, but the
 19778  // value will be replaced with "sensitive".
 19779  func (s GetCommitOutput) String() string {
 19780  	return awsutil.Prettify(s)
 19781  }
 19782  
 19783  // GoString returns the string representation.
 19784  //
 19785  // API parameter values that are decorated as "sensitive" in the API will not
 19786  // be included in the string output. The member name will be present, but the
 19787  // value will be replaced with "sensitive".
 19788  func (s GetCommitOutput) GoString() string {
 19789  	return s.String()
 19790  }
 19791  
 19792  // SetCommit sets the Commit field's value.
 19793  func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput {
 19794  	s.Commit = v
 19795  	return s
 19796  }
 19797  
 19798  type GetDifferencesInput struct {
 19799  	_ struct{} `type:"structure"`
 19800  
 19801  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 19802  	// a commit.
 19803  	//
 19804  	// AfterCommitSpecifier is a required field
 19805  	AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"`
 19806  
 19807  	// The file path in which to check differences. Limits the results to this path.
 19808  	// Can also be used to specify the changed name of a directory or folder, if
 19809  	// it has changed. If not specified, differences are shown for all paths.
 19810  	AfterPath *string `locationName:"afterPath" type:"string"`
 19811  
 19812  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 19813  	// a commit (for example, the full commit ID). Optional. If not specified, all
 19814  	// changes before the afterCommitSpecifier value are shown. If you do not use
 19815  	// beforeCommitSpecifier in your request, consider limiting the results with
 19816  	// maxResults.
 19817  	BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"`
 19818  
 19819  	// The file path in which to check for differences. Limits the results to this
 19820  	// path. Can also be used to specify the previous name of a directory or folder.
 19821  	// If beforePath and afterPath are not specified, differences are shown for
 19822  	// all paths.
 19823  	BeforePath *string `locationName:"beforePath" type:"string"`
 19824  
 19825  	// A non-zero, non-negative integer used to limit the number of returned results.
 19826  	MaxResults *int64 `type:"integer"`
 19827  
 19828  	// An enumeration token that, when provided in a request, returns the next batch
 19829  	// of the results.
 19830  	NextToken *string `type:"string"`
 19831  
 19832  	// The name of the repository where you want to get differences.
 19833  	//
 19834  	// RepositoryName is a required field
 19835  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 19836  }
 19837  
 19838  // String returns the string representation.
 19839  //
 19840  // API parameter values that are decorated as "sensitive" in the API will not
 19841  // be included in the string output. The member name will be present, but the
 19842  // value will be replaced with "sensitive".
 19843  func (s GetDifferencesInput) String() string {
 19844  	return awsutil.Prettify(s)
 19845  }
 19846  
 19847  // GoString returns the string representation.
 19848  //
 19849  // API parameter values that are decorated as "sensitive" in the API will not
 19850  // be included in the string output. The member name will be present, but the
 19851  // value will be replaced with "sensitive".
 19852  func (s GetDifferencesInput) GoString() string {
 19853  	return s.String()
 19854  }
 19855  
 19856  // Validate inspects the fields of the type to determine if they are valid.
 19857  func (s *GetDifferencesInput) Validate() error {
 19858  	invalidParams := request.ErrInvalidParams{Context: "GetDifferencesInput"}
 19859  	if s.AfterCommitSpecifier == nil {
 19860  		invalidParams.Add(request.NewErrParamRequired("AfterCommitSpecifier"))
 19861  	}
 19862  	if s.RepositoryName == nil {
 19863  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 19864  	}
 19865  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 19866  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 19867  	}
 19868  
 19869  	if invalidParams.Len() > 0 {
 19870  		return invalidParams
 19871  	}
 19872  	return nil
 19873  }
 19874  
 19875  // SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value.
 19876  func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput {
 19877  	s.AfterCommitSpecifier = &v
 19878  	return s
 19879  }
 19880  
 19881  // SetAfterPath sets the AfterPath field's value.
 19882  func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput {
 19883  	s.AfterPath = &v
 19884  	return s
 19885  }
 19886  
 19887  // SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value.
 19888  func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput {
 19889  	s.BeforeCommitSpecifier = &v
 19890  	return s
 19891  }
 19892  
 19893  // SetBeforePath sets the BeforePath field's value.
 19894  func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput {
 19895  	s.BeforePath = &v
 19896  	return s
 19897  }
 19898  
 19899  // SetMaxResults sets the MaxResults field's value.
 19900  func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput {
 19901  	s.MaxResults = &v
 19902  	return s
 19903  }
 19904  
 19905  // SetNextToken sets the NextToken field's value.
 19906  func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput {
 19907  	s.NextToken = &v
 19908  	return s
 19909  }
 19910  
 19911  // SetRepositoryName sets the RepositoryName field's value.
 19912  func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput {
 19913  	s.RepositoryName = &v
 19914  	return s
 19915  }
 19916  
 19917  type GetDifferencesOutput struct {
 19918  	_ struct{} `type:"structure"`
 19919  
 19920  	// A data type object that contains information about the differences, including
 19921  	// whether the difference is added, modified, or deleted (A, D, M).
 19922  	Differences []*Difference `locationName:"differences" type:"list"`
 19923  
 19924  	// An enumeration token that can be used in a request to return the next batch
 19925  	// of the results.
 19926  	NextToken *string `type:"string"`
 19927  }
 19928  
 19929  // String returns the string representation.
 19930  //
 19931  // API parameter values that are decorated as "sensitive" in the API will not
 19932  // be included in the string output. The member name will be present, but the
 19933  // value will be replaced with "sensitive".
 19934  func (s GetDifferencesOutput) String() string {
 19935  	return awsutil.Prettify(s)
 19936  }
 19937  
 19938  // GoString returns the string representation.
 19939  //
 19940  // API parameter values that are decorated as "sensitive" in the API will not
 19941  // be included in the string output. The member name will be present, but the
 19942  // value will be replaced with "sensitive".
 19943  func (s GetDifferencesOutput) GoString() string {
 19944  	return s.String()
 19945  }
 19946  
 19947  // SetDifferences sets the Differences field's value.
 19948  func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput {
 19949  	s.Differences = v
 19950  	return s
 19951  }
 19952  
 19953  // SetNextToken sets the NextToken field's value.
 19954  func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput {
 19955  	s.NextToken = &v
 19956  	return s
 19957  }
 19958  
 19959  type GetFileInput struct {
 19960  	_ struct{} `type:"structure"`
 19961  
 19962  	// The fully quaified reference that identifies the commit that contains the
 19963  	// file. For example, you can specify a full commit ID, a tag, a branch name,
 19964  	// or a reference such as refs/heads/master. If none is provided, the head commit
 19965  	// is used.
 19966  	CommitSpecifier *string `locationName:"commitSpecifier" type:"string"`
 19967  
 19968  	// The fully qualified path to the file, including the full name and extension
 19969  	// of the file. For example, /examples/file.md is the fully qualified path to
 19970  	// a file named file.md in a folder named examples.
 19971  	//
 19972  	// FilePath is a required field
 19973  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 19974  
 19975  	// The name of the repository that contains the file.
 19976  	//
 19977  	// RepositoryName is a required field
 19978  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 19979  }
 19980  
 19981  // String returns the string representation.
 19982  //
 19983  // API parameter values that are decorated as "sensitive" in the API will not
 19984  // be included in the string output. The member name will be present, but the
 19985  // value will be replaced with "sensitive".
 19986  func (s GetFileInput) String() string {
 19987  	return awsutil.Prettify(s)
 19988  }
 19989  
 19990  // GoString returns the string representation.
 19991  //
 19992  // API parameter values that are decorated as "sensitive" in the API will not
 19993  // be included in the string output. The member name will be present, but the
 19994  // value will be replaced with "sensitive".
 19995  func (s GetFileInput) GoString() string {
 19996  	return s.String()
 19997  }
 19998  
 19999  // Validate inspects the fields of the type to determine if they are valid.
 20000  func (s *GetFileInput) Validate() error {
 20001  	invalidParams := request.ErrInvalidParams{Context: "GetFileInput"}
 20002  	if s.FilePath == nil {
 20003  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 20004  	}
 20005  	if s.RepositoryName == nil {
 20006  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 20007  	}
 20008  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 20009  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 20010  	}
 20011  
 20012  	if invalidParams.Len() > 0 {
 20013  		return invalidParams
 20014  	}
 20015  	return nil
 20016  }
 20017  
 20018  // SetCommitSpecifier sets the CommitSpecifier field's value.
 20019  func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput {
 20020  	s.CommitSpecifier = &v
 20021  	return s
 20022  }
 20023  
 20024  // SetFilePath sets the FilePath field's value.
 20025  func (s *GetFileInput) SetFilePath(v string) *GetFileInput {
 20026  	s.FilePath = &v
 20027  	return s
 20028  }
 20029  
 20030  // SetRepositoryName sets the RepositoryName field's value.
 20031  func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput {
 20032  	s.RepositoryName = &v
 20033  	return s
 20034  }
 20035  
 20036  type GetFileOutput struct {
 20037  	_ struct{} `type:"structure"`
 20038  
 20039  	// The blob ID of the object that represents the file content.
 20040  	//
 20041  	// BlobId is a required field
 20042  	BlobId *string `locationName:"blobId" type:"string" required:"true"`
 20043  
 20044  	// The full commit ID of the commit that contains the content returned by GetFile.
 20045  	//
 20046  	// CommitId is a required field
 20047  	CommitId *string `locationName:"commitId" type:"string" required:"true"`
 20048  
 20049  	// The base-64 encoded binary data object that represents the content of the
 20050  	// file.
 20051  	// FileContent is automatically base64 encoded/decoded by the SDK.
 20052  	//
 20053  	// FileContent is a required field
 20054  	FileContent []byte `locationName:"fileContent" type:"blob" required:"true"`
 20055  
 20056  	// The extrapolated file mode permissions of the blob. Valid values include
 20057  	// strings such as EXECUTABLE and not numeric values.
 20058  	//
 20059  	// The file mode permissions returned by this API are not the standard file
 20060  	// mode permission values, such as 100644, but rather extrapolated values. See
 20061  	// the supported return values.
 20062  	//
 20063  	// FileMode is a required field
 20064  	FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"`
 20065  
 20066  	// The fully qualified path to the specified file. Returns the name and extension
 20067  	// of the file.
 20068  	//
 20069  	// FilePath is a required field
 20070  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 20071  
 20072  	// The size of the contents of the file, in bytes.
 20073  	//
 20074  	// FileSize is a required field
 20075  	FileSize *int64 `locationName:"fileSize" type:"long" required:"true"`
 20076  }
 20077  
 20078  // String returns the string representation.
 20079  //
 20080  // API parameter values that are decorated as "sensitive" in the API will not
 20081  // be included in the string output. The member name will be present, but the
 20082  // value will be replaced with "sensitive".
 20083  func (s GetFileOutput) String() string {
 20084  	return awsutil.Prettify(s)
 20085  }
 20086  
 20087  // GoString returns the string representation.
 20088  //
 20089  // API parameter values that are decorated as "sensitive" in the API will not
 20090  // be included in the string output. The member name will be present, but the
 20091  // value will be replaced with "sensitive".
 20092  func (s GetFileOutput) GoString() string {
 20093  	return s.String()
 20094  }
 20095  
 20096  // SetBlobId sets the BlobId field's value.
 20097  func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput {
 20098  	s.BlobId = &v
 20099  	return s
 20100  }
 20101  
 20102  // SetCommitId sets the CommitId field's value.
 20103  func (s *GetFileOutput) SetCommitId(v string) *GetFileOutput {
 20104  	s.CommitId = &v
 20105  	return s
 20106  }
 20107  
 20108  // SetFileContent sets the FileContent field's value.
 20109  func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput {
 20110  	s.FileContent = v
 20111  	return s
 20112  }
 20113  
 20114  // SetFileMode sets the FileMode field's value.
 20115  func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput {
 20116  	s.FileMode = &v
 20117  	return s
 20118  }
 20119  
 20120  // SetFilePath sets the FilePath field's value.
 20121  func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput {
 20122  	s.FilePath = &v
 20123  	return s
 20124  }
 20125  
 20126  // SetFileSize sets the FileSize field's value.
 20127  func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput {
 20128  	s.FileSize = &v
 20129  	return s
 20130  }
 20131  
 20132  type GetFolderInput struct {
 20133  	_ struct{} `type:"structure"`
 20134  
 20135  	// A fully qualified reference used to identify a commit that contains the version
 20136  	// of the folder's content to return. A fully qualified reference can be a commit
 20137  	// ID, branch name, tag, or reference such as HEAD. If no specifier is provided,
 20138  	// the folder content is returned as it exists in the HEAD commit.
 20139  	CommitSpecifier *string `locationName:"commitSpecifier" type:"string"`
 20140  
 20141  	// The fully qualified path to the folder whose contents are returned, including
 20142  	// the folder name. For example, /examples is a fully-qualified path to a folder
 20143  	// named examples that was created off of the root directory (/) of a repository.
 20144  	//
 20145  	// FolderPath is a required field
 20146  	FolderPath *string `locationName:"folderPath" type:"string" required:"true"`
 20147  
 20148  	// The name of the repository.
 20149  	//
 20150  	// RepositoryName is a required field
 20151  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 20152  }
 20153  
 20154  // String returns the string representation.
 20155  //
 20156  // API parameter values that are decorated as "sensitive" in the API will not
 20157  // be included in the string output. The member name will be present, but the
 20158  // value will be replaced with "sensitive".
 20159  func (s GetFolderInput) String() string {
 20160  	return awsutil.Prettify(s)
 20161  }
 20162  
 20163  // GoString returns the string representation.
 20164  //
 20165  // API parameter values that are decorated as "sensitive" in the API will not
 20166  // be included in the string output. The member name will be present, but the
 20167  // value will be replaced with "sensitive".
 20168  func (s GetFolderInput) GoString() string {
 20169  	return s.String()
 20170  }
 20171  
 20172  // Validate inspects the fields of the type to determine if they are valid.
 20173  func (s *GetFolderInput) Validate() error {
 20174  	invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"}
 20175  	if s.FolderPath == nil {
 20176  		invalidParams.Add(request.NewErrParamRequired("FolderPath"))
 20177  	}
 20178  	if s.RepositoryName == nil {
 20179  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 20180  	}
 20181  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 20182  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 20183  	}
 20184  
 20185  	if invalidParams.Len() > 0 {
 20186  		return invalidParams
 20187  	}
 20188  	return nil
 20189  }
 20190  
 20191  // SetCommitSpecifier sets the CommitSpecifier field's value.
 20192  func (s *GetFolderInput) SetCommitSpecifier(v string) *GetFolderInput {
 20193  	s.CommitSpecifier = &v
 20194  	return s
 20195  }
 20196  
 20197  // SetFolderPath sets the FolderPath field's value.
 20198  func (s *GetFolderInput) SetFolderPath(v string) *GetFolderInput {
 20199  	s.FolderPath = &v
 20200  	return s
 20201  }
 20202  
 20203  // SetRepositoryName sets the RepositoryName field's value.
 20204  func (s *GetFolderInput) SetRepositoryName(v string) *GetFolderInput {
 20205  	s.RepositoryName = &v
 20206  	return s
 20207  }
 20208  
 20209  type GetFolderOutput struct {
 20210  	_ struct{} `type:"structure"`
 20211  
 20212  	// The full commit ID used as a reference for the returned version of the folder
 20213  	// content.
 20214  	//
 20215  	// CommitId is a required field
 20216  	CommitId *string `locationName:"commitId" type:"string" required:"true"`
 20217  
 20218  	// The list of files in the specified folder, if any.
 20219  	Files []*File `locationName:"files" type:"list"`
 20220  
 20221  	// The fully qualified path of the folder whose contents are returned.
 20222  	//
 20223  	// FolderPath is a required field
 20224  	FolderPath *string `locationName:"folderPath" type:"string" required:"true"`
 20225  
 20226  	// The list of folders that exist under the specified folder, if any.
 20227  	SubFolders []*Folder `locationName:"subFolders" type:"list"`
 20228  
 20229  	// The list of submodules in the specified folder, if any.
 20230  	SubModules []*SubModule `locationName:"subModules" type:"list"`
 20231  
 20232  	// The list of symbolic links to other files and folders in the specified folder,
 20233  	// if any.
 20234  	SymbolicLinks []*SymbolicLink `locationName:"symbolicLinks" type:"list"`
 20235  
 20236  	// The full SHA-1 pointer of the tree information for the commit that contains
 20237  	// the folder.
 20238  	TreeId *string `locationName:"treeId" type:"string"`
 20239  }
 20240  
 20241  // String returns the string representation.
 20242  //
 20243  // API parameter values that are decorated as "sensitive" in the API will not
 20244  // be included in the string output. The member name will be present, but the
 20245  // value will be replaced with "sensitive".
 20246  func (s GetFolderOutput) String() string {
 20247  	return awsutil.Prettify(s)
 20248  }
 20249  
 20250  // GoString returns the string representation.
 20251  //
 20252  // API parameter values that are decorated as "sensitive" in the API will not
 20253  // be included in the string output. The member name will be present, but the
 20254  // value will be replaced with "sensitive".
 20255  func (s GetFolderOutput) GoString() string {
 20256  	return s.String()
 20257  }
 20258  
 20259  // SetCommitId sets the CommitId field's value.
 20260  func (s *GetFolderOutput) SetCommitId(v string) *GetFolderOutput {
 20261  	s.CommitId = &v
 20262  	return s
 20263  }
 20264  
 20265  // SetFiles sets the Files field's value.
 20266  func (s *GetFolderOutput) SetFiles(v []*File) *GetFolderOutput {
 20267  	s.Files = v
 20268  	return s
 20269  }
 20270  
 20271  // SetFolderPath sets the FolderPath field's value.
 20272  func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput {
 20273  	s.FolderPath = &v
 20274  	return s
 20275  }
 20276  
 20277  // SetSubFolders sets the SubFolders field's value.
 20278  func (s *GetFolderOutput) SetSubFolders(v []*Folder) *GetFolderOutput {
 20279  	s.SubFolders = v
 20280  	return s
 20281  }
 20282  
 20283  // SetSubModules sets the SubModules field's value.
 20284  func (s *GetFolderOutput) SetSubModules(v []*SubModule) *GetFolderOutput {
 20285  	s.SubModules = v
 20286  	return s
 20287  }
 20288  
 20289  // SetSymbolicLinks sets the SymbolicLinks field's value.
 20290  func (s *GetFolderOutput) SetSymbolicLinks(v []*SymbolicLink) *GetFolderOutput {
 20291  	s.SymbolicLinks = v
 20292  	return s
 20293  }
 20294  
 20295  // SetTreeId sets the TreeId field's value.
 20296  func (s *GetFolderOutput) SetTreeId(v string) *GetFolderOutput {
 20297  	s.TreeId = &v
 20298  	return s
 20299  }
 20300  
 20301  type GetMergeCommitInput struct {
 20302  	_ struct{} `type:"structure"`
 20303  
 20304  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 20305  	// is used, which returns a not-mergeable result if the same file has differences
 20306  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 20307  	// mergeable if the same file in both branches has differences on the same line.
 20308  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 20309  
 20310  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 20311  	// automatically merging two versions of a file. The default is NONE, which
 20312  	// requires any conflicts to be resolved manually before the merge operation
 20313  	// is successful.
 20314  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 20315  
 20316  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 20317  	// a commit (for example, a branch name or a full commit ID).
 20318  	//
 20319  	// DestinationCommitSpecifier is a required field
 20320  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 20321  
 20322  	// The name of the repository that contains the merge commit about which you
 20323  	// want to get information.
 20324  	//
 20325  	// RepositoryName is a required field
 20326  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 20327  
 20328  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 20329  	// a commit (for example, a branch name or a full commit ID).
 20330  	//
 20331  	// SourceCommitSpecifier is a required field
 20332  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 20333  }
 20334  
 20335  // String returns the string representation.
 20336  //
 20337  // API parameter values that are decorated as "sensitive" in the API will not
 20338  // be included in the string output. The member name will be present, but the
 20339  // value will be replaced with "sensitive".
 20340  func (s GetMergeCommitInput) String() string {
 20341  	return awsutil.Prettify(s)
 20342  }
 20343  
 20344  // GoString returns the string representation.
 20345  //
 20346  // API parameter values that are decorated as "sensitive" in the API will not
 20347  // be included in the string output. The member name will be present, but the
 20348  // value will be replaced with "sensitive".
 20349  func (s GetMergeCommitInput) GoString() string {
 20350  	return s.String()
 20351  }
 20352  
 20353  // Validate inspects the fields of the type to determine if they are valid.
 20354  func (s *GetMergeCommitInput) Validate() error {
 20355  	invalidParams := request.ErrInvalidParams{Context: "GetMergeCommitInput"}
 20356  	if s.DestinationCommitSpecifier == nil {
 20357  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 20358  	}
 20359  	if s.RepositoryName == nil {
 20360  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 20361  	}
 20362  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 20363  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 20364  	}
 20365  	if s.SourceCommitSpecifier == nil {
 20366  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 20367  	}
 20368  
 20369  	if invalidParams.Len() > 0 {
 20370  		return invalidParams
 20371  	}
 20372  	return nil
 20373  }
 20374  
 20375  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 20376  func (s *GetMergeCommitInput) SetConflictDetailLevel(v string) *GetMergeCommitInput {
 20377  	s.ConflictDetailLevel = &v
 20378  	return s
 20379  }
 20380  
 20381  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 20382  func (s *GetMergeCommitInput) SetConflictResolutionStrategy(v string) *GetMergeCommitInput {
 20383  	s.ConflictResolutionStrategy = &v
 20384  	return s
 20385  }
 20386  
 20387  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 20388  func (s *GetMergeCommitInput) SetDestinationCommitSpecifier(v string) *GetMergeCommitInput {
 20389  	s.DestinationCommitSpecifier = &v
 20390  	return s
 20391  }
 20392  
 20393  // SetRepositoryName sets the RepositoryName field's value.
 20394  func (s *GetMergeCommitInput) SetRepositoryName(v string) *GetMergeCommitInput {
 20395  	s.RepositoryName = &v
 20396  	return s
 20397  }
 20398  
 20399  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 20400  func (s *GetMergeCommitInput) SetSourceCommitSpecifier(v string) *GetMergeCommitInput {
 20401  	s.SourceCommitSpecifier = &v
 20402  	return s
 20403  }
 20404  
 20405  type GetMergeCommitOutput struct {
 20406  	_ struct{} `type:"structure"`
 20407  
 20408  	// The commit ID of the merge base.
 20409  	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
 20410  
 20411  	// The commit ID of the destination commit specifier that was used in the merge
 20412  	// evaluation.
 20413  	DestinationCommitId *string `locationName:"destinationCommitId" type:"string"`
 20414  
 20415  	// The commit ID for the merge commit created when the source branch was merged
 20416  	// into the destination branch. If the fast-forward merge strategy was used,
 20417  	// there is no merge commit.
 20418  	MergedCommitId *string `locationName:"mergedCommitId" type:"string"`
 20419  
 20420  	// The commit ID of the source commit specifier that was used in the merge evaluation.
 20421  	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
 20422  }
 20423  
 20424  // String returns the string representation.
 20425  //
 20426  // API parameter values that are decorated as "sensitive" in the API will not
 20427  // be included in the string output. The member name will be present, but the
 20428  // value will be replaced with "sensitive".
 20429  func (s GetMergeCommitOutput) String() string {
 20430  	return awsutil.Prettify(s)
 20431  }
 20432  
 20433  // GoString returns the string representation.
 20434  //
 20435  // API parameter values that are decorated as "sensitive" in the API will not
 20436  // be included in the string output. The member name will be present, but the
 20437  // value will be replaced with "sensitive".
 20438  func (s GetMergeCommitOutput) GoString() string {
 20439  	return s.String()
 20440  }
 20441  
 20442  // SetBaseCommitId sets the BaseCommitId field's value.
 20443  func (s *GetMergeCommitOutput) SetBaseCommitId(v string) *GetMergeCommitOutput {
 20444  	s.BaseCommitId = &v
 20445  	return s
 20446  }
 20447  
 20448  // SetDestinationCommitId sets the DestinationCommitId field's value.
 20449  func (s *GetMergeCommitOutput) SetDestinationCommitId(v string) *GetMergeCommitOutput {
 20450  	s.DestinationCommitId = &v
 20451  	return s
 20452  }
 20453  
 20454  // SetMergedCommitId sets the MergedCommitId field's value.
 20455  func (s *GetMergeCommitOutput) SetMergedCommitId(v string) *GetMergeCommitOutput {
 20456  	s.MergedCommitId = &v
 20457  	return s
 20458  }
 20459  
 20460  // SetSourceCommitId sets the SourceCommitId field's value.
 20461  func (s *GetMergeCommitOutput) SetSourceCommitId(v string) *GetMergeCommitOutput {
 20462  	s.SourceCommitId = &v
 20463  	return s
 20464  }
 20465  
 20466  type GetMergeConflictsInput struct {
 20467  	_ struct{} `type:"structure"`
 20468  
 20469  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 20470  	// is used, which returns a not-mergeable result if the same file has differences
 20471  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 20472  	// mergeable if the same file in both branches has differences on the same line.
 20473  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 20474  
 20475  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 20476  	// automatically merging two versions of a file. The default is NONE, which
 20477  	// requires any conflicts to be resolved manually before the merge operation
 20478  	// is successful.
 20479  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 20480  
 20481  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 20482  	// a commit (for example, a branch name or a full commit ID).
 20483  	//
 20484  	// DestinationCommitSpecifier is a required field
 20485  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 20486  
 20487  	// The maximum number of files to include in the output.
 20488  	MaxConflictFiles *int64 `locationName:"maxConflictFiles" type:"integer"`
 20489  
 20490  	// The merge option or strategy you want to use to merge the code.
 20491  	//
 20492  	// MergeOption is a required field
 20493  	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
 20494  
 20495  	// An enumeration token that, when provided in a request, returns the next batch
 20496  	// of the results.
 20497  	NextToken *string `locationName:"nextToken" type:"string"`
 20498  
 20499  	// The name of the repository where the pull request was created.
 20500  	//
 20501  	// RepositoryName is a required field
 20502  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 20503  
 20504  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 20505  	// a commit (for example, a branch name or a full commit ID).
 20506  	//
 20507  	// SourceCommitSpecifier is a required field
 20508  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 20509  }
 20510  
 20511  // String returns the string representation.
 20512  //
 20513  // API parameter values that are decorated as "sensitive" in the API will not
 20514  // be included in the string output. The member name will be present, but the
 20515  // value will be replaced with "sensitive".
 20516  func (s GetMergeConflictsInput) String() string {
 20517  	return awsutil.Prettify(s)
 20518  }
 20519  
 20520  // GoString returns the string representation.
 20521  //
 20522  // API parameter values that are decorated as "sensitive" in the API will not
 20523  // be included in the string output. The member name will be present, but the
 20524  // value will be replaced with "sensitive".
 20525  func (s GetMergeConflictsInput) GoString() string {
 20526  	return s.String()
 20527  }
 20528  
 20529  // Validate inspects the fields of the type to determine if they are valid.
 20530  func (s *GetMergeConflictsInput) Validate() error {
 20531  	invalidParams := request.ErrInvalidParams{Context: "GetMergeConflictsInput"}
 20532  	if s.DestinationCommitSpecifier == nil {
 20533  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 20534  	}
 20535  	if s.MergeOption == nil {
 20536  		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
 20537  	}
 20538  	if s.RepositoryName == nil {
 20539  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 20540  	}
 20541  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 20542  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 20543  	}
 20544  	if s.SourceCommitSpecifier == nil {
 20545  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 20546  	}
 20547  
 20548  	if invalidParams.Len() > 0 {
 20549  		return invalidParams
 20550  	}
 20551  	return nil
 20552  }
 20553  
 20554  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 20555  func (s *GetMergeConflictsInput) SetConflictDetailLevel(v string) *GetMergeConflictsInput {
 20556  	s.ConflictDetailLevel = &v
 20557  	return s
 20558  }
 20559  
 20560  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 20561  func (s *GetMergeConflictsInput) SetConflictResolutionStrategy(v string) *GetMergeConflictsInput {
 20562  	s.ConflictResolutionStrategy = &v
 20563  	return s
 20564  }
 20565  
 20566  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 20567  func (s *GetMergeConflictsInput) SetDestinationCommitSpecifier(v string) *GetMergeConflictsInput {
 20568  	s.DestinationCommitSpecifier = &v
 20569  	return s
 20570  }
 20571  
 20572  // SetMaxConflictFiles sets the MaxConflictFiles field's value.
 20573  func (s *GetMergeConflictsInput) SetMaxConflictFiles(v int64) *GetMergeConflictsInput {
 20574  	s.MaxConflictFiles = &v
 20575  	return s
 20576  }
 20577  
 20578  // SetMergeOption sets the MergeOption field's value.
 20579  func (s *GetMergeConflictsInput) SetMergeOption(v string) *GetMergeConflictsInput {
 20580  	s.MergeOption = &v
 20581  	return s
 20582  }
 20583  
 20584  // SetNextToken sets the NextToken field's value.
 20585  func (s *GetMergeConflictsInput) SetNextToken(v string) *GetMergeConflictsInput {
 20586  	s.NextToken = &v
 20587  	return s
 20588  }
 20589  
 20590  // SetRepositoryName sets the RepositoryName field's value.
 20591  func (s *GetMergeConflictsInput) SetRepositoryName(v string) *GetMergeConflictsInput {
 20592  	s.RepositoryName = &v
 20593  	return s
 20594  }
 20595  
 20596  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 20597  func (s *GetMergeConflictsInput) SetSourceCommitSpecifier(v string) *GetMergeConflictsInput {
 20598  	s.SourceCommitSpecifier = &v
 20599  	return s
 20600  }
 20601  
 20602  type GetMergeConflictsOutput struct {
 20603  	_ struct{} `type:"structure"`
 20604  
 20605  	// The commit ID of the merge base.
 20606  	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
 20607  
 20608  	// A list of metadata for any conflicting files. If the specified merge strategy
 20609  	// is FAST_FORWARD_MERGE, this list is always empty.
 20610  	//
 20611  	// ConflictMetadataList is a required field
 20612  	ConflictMetadataList []*ConflictMetadata `locationName:"conflictMetadataList" type:"list" required:"true"`
 20613  
 20614  	// The commit ID of the destination commit specifier that was used in the merge
 20615  	// evaluation.
 20616  	//
 20617  	// DestinationCommitId is a required field
 20618  	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
 20619  
 20620  	// A Boolean value that indicates whether the code is mergeable by the specified
 20621  	// merge option.
 20622  	//
 20623  	// Mergeable is a required field
 20624  	Mergeable *bool `locationName:"mergeable" type:"boolean" required:"true"`
 20625  
 20626  	// An enumeration token that can be used in a request to return the next batch
 20627  	// of the results.
 20628  	NextToken *string `locationName:"nextToken" type:"string"`
 20629  
 20630  	// The commit ID of the source commit specifier that was used in the merge evaluation.
 20631  	//
 20632  	// SourceCommitId is a required field
 20633  	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
 20634  }
 20635  
 20636  // String returns the string representation.
 20637  //
 20638  // API parameter values that are decorated as "sensitive" in the API will not
 20639  // be included in the string output. The member name will be present, but the
 20640  // value will be replaced with "sensitive".
 20641  func (s GetMergeConflictsOutput) String() string {
 20642  	return awsutil.Prettify(s)
 20643  }
 20644  
 20645  // GoString returns the string representation.
 20646  //
 20647  // API parameter values that are decorated as "sensitive" in the API will not
 20648  // be included in the string output. The member name will be present, but the
 20649  // value will be replaced with "sensitive".
 20650  func (s GetMergeConflictsOutput) GoString() string {
 20651  	return s.String()
 20652  }
 20653  
 20654  // SetBaseCommitId sets the BaseCommitId field's value.
 20655  func (s *GetMergeConflictsOutput) SetBaseCommitId(v string) *GetMergeConflictsOutput {
 20656  	s.BaseCommitId = &v
 20657  	return s
 20658  }
 20659  
 20660  // SetConflictMetadataList sets the ConflictMetadataList field's value.
 20661  func (s *GetMergeConflictsOutput) SetConflictMetadataList(v []*ConflictMetadata) *GetMergeConflictsOutput {
 20662  	s.ConflictMetadataList = v
 20663  	return s
 20664  }
 20665  
 20666  // SetDestinationCommitId sets the DestinationCommitId field's value.
 20667  func (s *GetMergeConflictsOutput) SetDestinationCommitId(v string) *GetMergeConflictsOutput {
 20668  	s.DestinationCommitId = &v
 20669  	return s
 20670  }
 20671  
 20672  // SetMergeable sets the Mergeable field's value.
 20673  func (s *GetMergeConflictsOutput) SetMergeable(v bool) *GetMergeConflictsOutput {
 20674  	s.Mergeable = &v
 20675  	return s
 20676  }
 20677  
 20678  // SetNextToken sets the NextToken field's value.
 20679  func (s *GetMergeConflictsOutput) SetNextToken(v string) *GetMergeConflictsOutput {
 20680  	s.NextToken = &v
 20681  	return s
 20682  }
 20683  
 20684  // SetSourceCommitId sets the SourceCommitId field's value.
 20685  func (s *GetMergeConflictsOutput) SetSourceCommitId(v string) *GetMergeConflictsOutput {
 20686  	s.SourceCommitId = &v
 20687  	return s
 20688  }
 20689  
 20690  type GetMergeOptionsInput struct {
 20691  	_ struct{} `type:"structure"`
 20692  
 20693  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 20694  	// is used, which returns a not-mergeable result if the same file has differences
 20695  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 20696  	// mergeable if the same file in both branches has differences on the same line.
 20697  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 20698  
 20699  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 20700  	// automatically merging two versions of a file. The default is NONE, which
 20701  	// requires any conflicts to be resolved manually before the merge operation
 20702  	// is successful.
 20703  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 20704  
 20705  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 20706  	// a commit (for example, a branch name or a full commit ID).
 20707  	//
 20708  	// DestinationCommitSpecifier is a required field
 20709  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 20710  
 20711  	// The name of the repository that contains the commits about which you want
 20712  	// to get merge options.
 20713  	//
 20714  	// RepositoryName is a required field
 20715  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 20716  
 20717  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 20718  	// a commit (for example, a branch name or a full commit ID).
 20719  	//
 20720  	// SourceCommitSpecifier is a required field
 20721  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 20722  }
 20723  
 20724  // String returns the string representation.
 20725  //
 20726  // API parameter values that are decorated as "sensitive" in the API will not
 20727  // be included in the string output. The member name will be present, but the
 20728  // value will be replaced with "sensitive".
 20729  func (s GetMergeOptionsInput) String() string {
 20730  	return awsutil.Prettify(s)
 20731  }
 20732  
 20733  // GoString returns the string representation.
 20734  //
 20735  // API parameter values that are decorated as "sensitive" in the API will not
 20736  // be included in the string output. The member name will be present, but the
 20737  // value will be replaced with "sensitive".
 20738  func (s GetMergeOptionsInput) GoString() string {
 20739  	return s.String()
 20740  }
 20741  
 20742  // Validate inspects the fields of the type to determine if they are valid.
 20743  func (s *GetMergeOptionsInput) Validate() error {
 20744  	invalidParams := request.ErrInvalidParams{Context: "GetMergeOptionsInput"}
 20745  	if s.DestinationCommitSpecifier == nil {
 20746  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 20747  	}
 20748  	if s.RepositoryName == nil {
 20749  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 20750  	}
 20751  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 20752  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 20753  	}
 20754  	if s.SourceCommitSpecifier == nil {
 20755  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 20756  	}
 20757  
 20758  	if invalidParams.Len() > 0 {
 20759  		return invalidParams
 20760  	}
 20761  	return nil
 20762  }
 20763  
 20764  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 20765  func (s *GetMergeOptionsInput) SetConflictDetailLevel(v string) *GetMergeOptionsInput {
 20766  	s.ConflictDetailLevel = &v
 20767  	return s
 20768  }
 20769  
 20770  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 20771  func (s *GetMergeOptionsInput) SetConflictResolutionStrategy(v string) *GetMergeOptionsInput {
 20772  	s.ConflictResolutionStrategy = &v
 20773  	return s
 20774  }
 20775  
 20776  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 20777  func (s *GetMergeOptionsInput) SetDestinationCommitSpecifier(v string) *GetMergeOptionsInput {
 20778  	s.DestinationCommitSpecifier = &v
 20779  	return s
 20780  }
 20781  
 20782  // SetRepositoryName sets the RepositoryName field's value.
 20783  func (s *GetMergeOptionsInput) SetRepositoryName(v string) *GetMergeOptionsInput {
 20784  	s.RepositoryName = &v
 20785  	return s
 20786  }
 20787  
 20788  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 20789  func (s *GetMergeOptionsInput) SetSourceCommitSpecifier(v string) *GetMergeOptionsInput {
 20790  	s.SourceCommitSpecifier = &v
 20791  	return s
 20792  }
 20793  
 20794  type GetMergeOptionsOutput struct {
 20795  	_ struct{} `type:"structure"`
 20796  
 20797  	// The commit ID of the merge base.
 20798  	//
 20799  	// BaseCommitId is a required field
 20800  	BaseCommitId *string `locationName:"baseCommitId" type:"string" required:"true"`
 20801  
 20802  	// The commit ID of the destination commit specifier that was used in the merge
 20803  	// evaluation.
 20804  	//
 20805  	// DestinationCommitId is a required field
 20806  	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
 20807  
 20808  	// The merge option or strategy used to merge the code.
 20809  	//
 20810  	// MergeOptions is a required field
 20811  	MergeOptions []*string `locationName:"mergeOptions" type:"list" required:"true"`
 20812  
 20813  	// The commit ID of the source commit specifier that was used in the merge evaluation.
 20814  	//
 20815  	// SourceCommitId is a required field
 20816  	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
 20817  }
 20818  
 20819  // String returns the string representation.
 20820  //
 20821  // API parameter values that are decorated as "sensitive" in the API will not
 20822  // be included in the string output. The member name will be present, but the
 20823  // value will be replaced with "sensitive".
 20824  func (s GetMergeOptionsOutput) String() string {
 20825  	return awsutil.Prettify(s)
 20826  }
 20827  
 20828  // GoString returns the string representation.
 20829  //
 20830  // API parameter values that are decorated as "sensitive" in the API will not
 20831  // be included in the string output. The member name will be present, but the
 20832  // value will be replaced with "sensitive".
 20833  func (s GetMergeOptionsOutput) GoString() string {
 20834  	return s.String()
 20835  }
 20836  
 20837  // SetBaseCommitId sets the BaseCommitId field's value.
 20838  func (s *GetMergeOptionsOutput) SetBaseCommitId(v string) *GetMergeOptionsOutput {
 20839  	s.BaseCommitId = &v
 20840  	return s
 20841  }
 20842  
 20843  // SetDestinationCommitId sets the DestinationCommitId field's value.
 20844  func (s *GetMergeOptionsOutput) SetDestinationCommitId(v string) *GetMergeOptionsOutput {
 20845  	s.DestinationCommitId = &v
 20846  	return s
 20847  }
 20848  
 20849  // SetMergeOptions sets the MergeOptions field's value.
 20850  func (s *GetMergeOptionsOutput) SetMergeOptions(v []*string) *GetMergeOptionsOutput {
 20851  	s.MergeOptions = v
 20852  	return s
 20853  }
 20854  
 20855  // SetSourceCommitId sets the SourceCommitId field's value.
 20856  func (s *GetMergeOptionsOutput) SetSourceCommitId(v string) *GetMergeOptionsOutput {
 20857  	s.SourceCommitId = &v
 20858  	return s
 20859  }
 20860  
 20861  type GetPullRequestApprovalStatesInput struct {
 20862  	_ struct{} `type:"structure"`
 20863  
 20864  	// The system-generated ID for the pull request.
 20865  	//
 20866  	// PullRequestId is a required field
 20867  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 20868  
 20869  	// The system-generated ID for the pull request revision.
 20870  	//
 20871  	// RevisionId is a required field
 20872  	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
 20873  }
 20874  
 20875  // String returns the string representation.
 20876  //
 20877  // API parameter values that are decorated as "sensitive" in the API will not
 20878  // be included in the string output. The member name will be present, but the
 20879  // value will be replaced with "sensitive".
 20880  func (s GetPullRequestApprovalStatesInput) String() string {
 20881  	return awsutil.Prettify(s)
 20882  }
 20883  
 20884  // GoString returns the string representation.
 20885  //
 20886  // API parameter values that are decorated as "sensitive" in the API will not
 20887  // be included in the string output. The member name will be present, but the
 20888  // value will be replaced with "sensitive".
 20889  func (s GetPullRequestApprovalStatesInput) GoString() string {
 20890  	return s.String()
 20891  }
 20892  
 20893  // Validate inspects the fields of the type to determine if they are valid.
 20894  func (s *GetPullRequestApprovalStatesInput) Validate() error {
 20895  	invalidParams := request.ErrInvalidParams{Context: "GetPullRequestApprovalStatesInput"}
 20896  	if s.PullRequestId == nil {
 20897  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 20898  	}
 20899  	if s.RevisionId == nil {
 20900  		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
 20901  	}
 20902  
 20903  	if invalidParams.Len() > 0 {
 20904  		return invalidParams
 20905  	}
 20906  	return nil
 20907  }
 20908  
 20909  // SetPullRequestId sets the PullRequestId field's value.
 20910  func (s *GetPullRequestApprovalStatesInput) SetPullRequestId(v string) *GetPullRequestApprovalStatesInput {
 20911  	s.PullRequestId = &v
 20912  	return s
 20913  }
 20914  
 20915  // SetRevisionId sets the RevisionId field's value.
 20916  func (s *GetPullRequestApprovalStatesInput) SetRevisionId(v string) *GetPullRequestApprovalStatesInput {
 20917  	s.RevisionId = &v
 20918  	return s
 20919  }
 20920  
 20921  type GetPullRequestApprovalStatesOutput struct {
 20922  	_ struct{} `type:"structure"`
 20923  
 20924  	// Information about users who have approved the pull request.
 20925  	Approvals []*Approval `locationName:"approvals" type:"list"`
 20926  }
 20927  
 20928  // String returns the string representation.
 20929  //
 20930  // API parameter values that are decorated as "sensitive" in the API will not
 20931  // be included in the string output. The member name will be present, but the
 20932  // value will be replaced with "sensitive".
 20933  func (s GetPullRequestApprovalStatesOutput) String() string {
 20934  	return awsutil.Prettify(s)
 20935  }
 20936  
 20937  // GoString returns the string representation.
 20938  //
 20939  // API parameter values that are decorated as "sensitive" in the API will not
 20940  // be included in the string output. The member name will be present, but the
 20941  // value will be replaced with "sensitive".
 20942  func (s GetPullRequestApprovalStatesOutput) GoString() string {
 20943  	return s.String()
 20944  }
 20945  
 20946  // SetApprovals sets the Approvals field's value.
 20947  func (s *GetPullRequestApprovalStatesOutput) SetApprovals(v []*Approval) *GetPullRequestApprovalStatesOutput {
 20948  	s.Approvals = v
 20949  	return s
 20950  }
 20951  
 20952  type GetPullRequestInput struct {
 20953  	_ struct{} `type:"structure"`
 20954  
 20955  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 20956  	//
 20957  	// PullRequestId is a required field
 20958  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 20959  }
 20960  
 20961  // String returns the string representation.
 20962  //
 20963  // API parameter values that are decorated as "sensitive" in the API will not
 20964  // be included in the string output. The member name will be present, but the
 20965  // value will be replaced with "sensitive".
 20966  func (s GetPullRequestInput) String() string {
 20967  	return awsutil.Prettify(s)
 20968  }
 20969  
 20970  // GoString returns the string representation.
 20971  //
 20972  // API parameter values that are decorated as "sensitive" in the API will not
 20973  // be included in the string output. The member name will be present, but the
 20974  // value will be replaced with "sensitive".
 20975  func (s GetPullRequestInput) GoString() string {
 20976  	return s.String()
 20977  }
 20978  
 20979  // Validate inspects the fields of the type to determine if they are valid.
 20980  func (s *GetPullRequestInput) Validate() error {
 20981  	invalidParams := request.ErrInvalidParams{Context: "GetPullRequestInput"}
 20982  	if s.PullRequestId == nil {
 20983  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 20984  	}
 20985  
 20986  	if invalidParams.Len() > 0 {
 20987  		return invalidParams
 20988  	}
 20989  	return nil
 20990  }
 20991  
 20992  // SetPullRequestId sets the PullRequestId field's value.
 20993  func (s *GetPullRequestInput) SetPullRequestId(v string) *GetPullRequestInput {
 20994  	s.PullRequestId = &v
 20995  	return s
 20996  }
 20997  
 20998  type GetPullRequestOutput struct {
 20999  	_ struct{} `type:"structure"`
 21000  
 21001  	// Information about the specified pull request.
 21002  	//
 21003  	// PullRequest is a required field
 21004  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
 21005  }
 21006  
 21007  // String returns the string representation.
 21008  //
 21009  // API parameter values that are decorated as "sensitive" in the API will not
 21010  // be included in the string output. The member name will be present, but the
 21011  // value will be replaced with "sensitive".
 21012  func (s GetPullRequestOutput) String() string {
 21013  	return awsutil.Prettify(s)
 21014  }
 21015  
 21016  // GoString returns the string representation.
 21017  //
 21018  // API parameter values that are decorated as "sensitive" in the API will not
 21019  // be included in the string output. The member name will be present, but the
 21020  // value will be replaced with "sensitive".
 21021  func (s GetPullRequestOutput) GoString() string {
 21022  	return s.String()
 21023  }
 21024  
 21025  // SetPullRequest sets the PullRequest field's value.
 21026  func (s *GetPullRequestOutput) SetPullRequest(v *PullRequest) *GetPullRequestOutput {
 21027  	s.PullRequest = v
 21028  	return s
 21029  }
 21030  
 21031  type GetPullRequestOverrideStateInput struct {
 21032  	_ struct{} `type:"structure"`
 21033  
 21034  	// The ID of the pull request for which you want to get information about whether
 21035  	// approval rules have been set aside (overridden).
 21036  	//
 21037  	// PullRequestId is a required field
 21038  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 21039  
 21040  	// The system-generated ID of the revision for the pull request. To retrieve
 21041  	// the most recent revision ID, use GetPullRequest.
 21042  	//
 21043  	// RevisionId is a required field
 21044  	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
 21045  }
 21046  
 21047  // String returns the string representation.
 21048  //
 21049  // API parameter values that are decorated as "sensitive" in the API will not
 21050  // be included in the string output. The member name will be present, but the
 21051  // value will be replaced with "sensitive".
 21052  func (s GetPullRequestOverrideStateInput) String() string {
 21053  	return awsutil.Prettify(s)
 21054  }
 21055  
 21056  // GoString returns the string representation.
 21057  //
 21058  // API parameter values that are decorated as "sensitive" in the API will not
 21059  // be included in the string output. The member name will be present, but the
 21060  // value will be replaced with "sensitive".
 21061  func (s GetPullRequestOverrideStateInput) GoString() string {
 21062  	return s.String()
 21063  }
 21064  
 21065  // Validate inspects the fields of the type to determine if they are valid.
 21066  func (s *GetPullRequestOverrideStateInput) Validate() error {
 21067  	invalidParams := request.ErrInvalidParams{Context: "GetPullRequestOverrideStateInput"}
 21068  	if s.PullRequestId == nil {
 21069  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 21070  	}
 21071  	if s.RevisionId == nil {
 21072  		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
 21073  	}
 21074  
 21075  	if invalidParams.Len() > 0 {
 21076  		return invalidParams
 21077  	}
 21078  	return nil
 21079  }
 21080  
 21081  // SetPullRequestId sets the PullRequestId field's value.
 21082  func (s *GetPullRequestOverrideStateInput) SetPullRequestId(v string) *GetPullRequestOverrideStateInput {
 21083  	s.PullRequestId = &v
 21084  	return s
 21085  }
 21086  
 21087  // SetRevisionId sets the RevisionId field's value.
 21088  func (s *GetPullRequestOverrideStateInput) SetRevisionId(v string) *GetPullRequestOverrideStateInput {
 21089  	s.RevisionId = &v
 21090  	return s
 21091  }
 21092  
 21093  type GetPullRequestOverrideStateOutput struct {
 21094  	_ struct{} `type:"structure"`
 21095  
 21096  	// A Boolean value that indicates whether a pull request has had its rules set
 21097  	// aside (TRUE) or whether all approval rules still apply (FALSE).
 21098  	Overridden *bool `locationName:"overridden" type:"boolean"`
 21099  
 21100  	// The Amazon Resource Name (ARN) of the user or identity that overrode the
 21101  	// rules and their requirements for the pull request.
 21102  	Overrider *string `locationName:"overrider" type:"string"`
 21103  }
 21104  
 21105  // String returns the string representation.
 21106  //
 21107  // API parameter values that are decorated as "sensitive" in the API will not
 21108  // be included in the string output. The member name will be present, but the
 21109  // value will be replaced with "sensitive".
 21110  func (s GetPullRequestOverrideStateOutput) String() string {
 21111  	return awsutil.Prettify(s)
 21112  }
 21113  
 21114  // GoString returns the string representation.
 21115  //
 21116  // API parameter values that are decorated as "sensitive" in the API will not
 21117  // be included in the string output. The member name will be present, but the
 21118  // value will be replaced with "sensitive".
 21119  func (s GetPullRequestOverrideStateOutput) GoString() string {
 21120  	return s.String()
 21121  }
 21122  
 21123  // SetOverridden sets the Overridden field's value.
 21124  func (s *GetPullRequestOverrideStateOutput) SetOverridden(v bool) *GetPullRequestOverrideStateOutput {
 21125  	s.Overridden = &v
 21126  	return s
 21127  }
 21128  
 21129  // SetOverrider sets the Overrider field's value.
 21130  func (s *GetPullRequestOverrideStateOutput) SetOverrider(v string) *GetPullRequestOverrideStateOutput {
 21131  	s.Overrider = &v
 21132  	return s
 21133  }
 21134  
 21135  // Represents the input of a get repository operation.
 21136  type GetRepositoryInput struct {
 21137  	_ struct{} `type:"structure"`
 21138  
 21139  	// The name of the repository to get information about.
 21140  	//
 21141  	// RepositoryName is a required field
 21142  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 21143  }
 21144  
 21145  // String returns the string representation.
 21146  //
 21147  // API parameter values that are decorated as "sensitive" in the API will not
 21148  // be included in the string output. The member name will be present, but the
 21149  // value will be replaced with "sensitive".
 21150  func (s GetRepositoryInput) String() string {
 21151  	return awsutil.Prettify(s)
 21152  }
 21153  
 21154  // GoString returns the string representation.
 21155  //
 21156  // API parameter values that are decorated as "sensitive" in the API will not
 21157  // be included in the string output. The member name will be present, but the
 21158  // value will be replaced with "sensitive".
 21159  func (s GetRepositoryInput) GoString() string {
 21160  	return s.String()
 21161  }
 21162  
 21163  // Validate inspects the fields of the type to determine if they are valid.
 21164  func (s *GetRepositoryInput) Validate() error {
 21165  	invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"}
 21166  	if s.RepositoryName == nil {
 21167  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 21168  	}
 21169  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 21170  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 21171  	}
 21172  
 21173  	if invalidParams.Len() > 0 {
 21174  		return invalidParams
 21175  	}
 21176  	return nil
 21177  }
 21178  
 21179  // SetRepositoryName sets the RepositoryName field's value.
 21180  func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput {
 21181  	s.RepositoryName = &v
 21182  	return s
 21183  }
 21184  
 21185  // Represents the output of a get repository operation.
 21186  type GetRepositoryOutput struct {
 21187  	_ struct{} `type:"structure"`
 21188  
 21189  	// Information about the repository.
 21190  	RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
 21191  }
 21192  
 21193  // String returns the string representation.
 21194  //
 21195  // API parameter values that are decorated as "sensitive" in the API will not
 21196  // be included in the string output. The member name will be present, but the
 21197  // value will be replaced with "sensitive".
 21198  func (s GetRepositoryOutput) String() string {
 21199  	return awsutil.Prettify(s)
 21200  }
 21201  
 21202  // GoString returns the string representation.
 21203  //
 21204  // API parameter values that are decorated as "sensitive" in the API will not
 21205  // be included in the string output. The member name will be present, but the
 21206  // value will be replaced with "sensitive".
 21207  func (s GetRepositoryOutput) GoString() string {
 21208  	return s.String()
 21209  }
 21210  
 21211  // SetRepositoryMetadata sets the RepositoryMetadata field's value.
 21212  func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput {
 21213  	s.RepositoryMetadata = v
 21214  	return s
 21215  }
 21216  
 21217  // Represents the input of a get repository triggers operation.
 21218  type GetRepositoryTriggersInput struct {
 21219  	_ struct{} `type:"structure"`
 21220  
 21221  	// The name of the repository for which the trigger is configured.
 21222  	//
 21223  	// RepositoryName is a required field
 21224  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 21225  }
 21226  
 21227  // String returns the string representation.
 21228  //
 21229  // API parameter values that are decorated as "sensitive" in the API will not
 21230  // be included in the string output. The member name will be present, but the
 21231  // value will be replaced with "sensitive".
 21232  func (s GetRepositoryTriggersInput) String() string {
 21233  	return awsutil.Prettify(s)
 21234  }
 21235  
 21236  // GoString returns the string representation.
 21237  //
 21238  // API parameter values that are decorated as "sensitive" in the API will not
 21239  // be included in the string output. The member name will be present, but the
 21240  // value will be replaced with "sensitive".
 21241  func (s GetRepositoryTriggersInput) GoString() string {
 21242  	return s.String()
 21243  }
 21244  
 21245  // Validate inspects the fields of the type to determine if they are valid.
 21246  func (s *GetRepositoryTriggersInput) Validate() error {
 21247  	invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"}
 21248  	if s.RepositoryName == nil {
 21249  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 21250  	}
 21251  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 21252  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 21253  	}
 21254  
 21255  	if invalidParams.Len() > 0 {
 21256  		return invalidParams
 21257  	}
 21258  	return nil
 21259  }
 21260  
 21261  // SetRepositoryName sets the RepositoryName field's value.
 21262  func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput {
 21263  	s.RepositoryName = &v
 21264  	return s
 21265  }
 21266  
 21267  // Represents the output of a get repository triggers operation.
 21268  type GetRepositoryTriggersOutput struct {
 21269  	_ struct{} `type:"structure"`
 21270  
 21271  	// The system-generated unique ID for the trigger.
 21272  	ConfigurationId *string `locationName:"configurationId" type:"string"`
 21273  
 21274  	// The JSON block of configuration information for each trigger.
 21275  	Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"`
 21276  }
 21277  
 21278  // String returns the string representation.
 21279  //
 21280  // API parameter values that are decorated as "sensitive" in the API will not
 21281  // be included in the string output. The member name will be present, but the
 21282  // value will be replaced with "sensitive".
 21283  func (s GetRepositoryTriggersOutput) String() string {
 21284  	return awsutil.Prettify(s)
 21285  }
 21286  
 21287  // GoString returns the string representation.
 21288  //
 21289  // API parameter values that are decorated as "sensitive" in the API will not
 21290  // be included in the string output. The member name will be present, but the
 21291  // value will be replaced with "sensitive".
 21292  func (s GetRepositoryTriggersOutput) GoString() string {
 21293  	return s.String()
 21294  }
 21295  
 21296  // SetConfigurationId sets the ConfigurationId field's value.
 21297  func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput {
 21298  	s.ConfigurationId = &v
 21299  	return s
 21300  }
 21301  
 21302  // SetTriggers sets the Triggers field's value.
 21303  func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput {
 21304  	s.Triggers = v
 21305  	return s
 21306  }
 21307  
 21308  // The client request token is not valid. Either the token is not in a valid
 21309  // format, or the token has been used in a previous request and cannot be reused.
 21310  type IdempotencyParameterMismatchException struct {
 21311  	_            struct{}                  `type:"structure"`
 21312  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21313  
 21314  	Message_ *string `locationName:"message" type:"string"`
 21315  }
 21316  
 21317  // String returns the string representation.
 21318  //
 21319  // API parameter values that are decorated as "sensitive" in the API will not
 21320  // be included in the string output. The member name will be present, but the
 21321  // value will be replaced with "sensitive".
 21322  func (s IdempotencyParameterMismatchException) String() string {
 21323  	return awsutil.Prettify(s)
 21324  }
 21325  
 21326  // GoString returns the string representation.
 21327  //
 21328  // API parameter values that are decorated as "sensitive" in the API will not
 21329  // be included in the string output. The member name will be present, but the
 21330  // value will be replaced with "sensitive".
 21331  func (s IdempotencyParameterMismatchException) GoString() string {
 21332  	return s.String()
 21333  }
 21334  
 21335  func newErrorIdempotencyParameterMismatchException(v protocol.ResponseMetadata) error {
 21336  	return &IdempotencyParameterMismatchException{
 21337  		RespMetadata: v,
 21338  	}
 21339  }
 21340  
 21341  // Code returns the exception type name.
 21342  func (s *IdempotencyParameterMismatchException) Code() string {
 21343  	return "IdempotencyParameterMismatchException"
 21344  }
 21345  
 21346  // Message returns the exception's message.
 21347  func (s *IdempotencyParameterMismatchException) Message() string {
 21348  	if s.Message_ != nil {
 21349  		return *s.Message_
 21350  	}
 21351  	return ""
 21352  }
 21353  
 21354  // OrigErr always returns nil, satisfies awserr.Error interface.
 21355  func (s *IdempotencyParameterMismatchException) OrigErr() error {
 21356  	return nil
 21357  }
 21358  
 21359  func (s *IdempotencyParameterMismatchException) Error() string {
 21360  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21361  }
 21362  
 21363  // Status code returns the HTTP status code for the request's response error.
 21364  func (s *IdempotencyParameterMismatchException) StatusCode() int {
 21365  	return s.RespMetadata.StatusCode
 21366  }
 21367  
 21368  // RequestID returns the service's response RequestID for request.
 21369  func (s *IdempotencyParameterMismatchException) RequestID() string {
 21370  	return s.RespMetadata.RequestID
 21371  }
 21372  
 21373  // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
 21374  // the full ARN for the user who initiated the change for the pull request,
 21375  // and then try again.
 21376  type InvalidActorArnException struct {
 21377  	_            struct{}                  `type:"structure"`
 21378  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21379  
 21380  	Message_ *string `locationName:"message" type:"string"`
 21381  }
 21382  
 21383  // String returns the string representation.
 21384  //
 21385  // API parameter values that are decorated as "sensitive" in the API will not
 21386  // be included in the string output. The member name will be present, but the
 21387  // value will be replaced with "sensitive".
 21388  func (s InvalidActorArnException) String() string {
 21389  	return awsutil.Prettify(s)
 21390  }
 21391  
 21392  // GoString returns the string representation.
 21393  //
 21394  // API parameter values that are decorated as "sensitive" in the API will not
 21395  // be included in the string output. The member name will be present, but the
 21396  // value will be replaced with "sensitive".
 21397  func (s InvalidActorArnException) GoString() string {
 21398  	return s.String()
 21399  }
 21400  
 21401  func newErrorInvalidActorArnException(v protocol.ResponseMetadata) error {
 21402  	return &InvalidActorArnException{
 21403  		RespMetadata: v,
 21404  	}
 21405  }
 21406  
 21407  // Code returns the exception type name.
 21408  func (s *InvalidActorArnException) Code() string {
 21409  	return "InvalidActorArnException"
 21410  }
 21411  
 21412  // Message returns the exception's message.
 21413  func (s *InvalidActorArnException) Message() string {
 21414  	if s.Message_ != nil {
 21415  		return *s.Message_
 21416  	}
 21417  	return ""
 21418  }
 21419  
 21420  // OrigErr always returns nil, satisfies awserr.Error interface.
 21421  func (s *InvalidActorArnException) OrigErr() error {
 21422  	return nil
 21423  }
 21424  
 21425  func (s *InvalidActorArnException) Error() string {
 21426  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21427  }
 21428  
 21429  // Status code returns the HTTP status code for the request's response error.
 21430  func (s *InvalidActorArnException) StatusCode() int {
 21431  	return s.RespMetadata.StatusCode
 21432  }
 21433  
 21434  // RequestID returns the service's response RequestID for request.
 21435  func (s *InvalidActorArnException) RequestID() string {
 21436  	return s.RespMetadata.RequestID
 21437  }
 21438  
 21439  // The content for the approval rule is not valid.
 21440  type InvalidApprovalRuleContentException struct {
 21441  	_            struct{}                  `type:"structure"`
 21442  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21443  
 21444  	Message_ *string `locationName:"message" type:"string"`
 21445  }
 21446  
 21447  // String returns the string representation.
 21448  //
 21449  // API parameter values that are decorated as "sensitive" in the API will not
 21450  // be included in the string output. The member name will be present, but the
 21451  // value will be replaced with "sensitive".
 21452  func (s InvalidApprovalRuleContentException) String() string {
 21453  	return awsutil.Prettify(s)
 21454  }
 21455  
 21456  // GoString returns the string representation.
 21457  //
 21458  // API parameter values that are decorated as "sensitive" in the API will not
 21459  // be included in the string output. The member name will be present, but the
 21460  // value will be replaced with "sensitive".
 21461  func (s InvalidApprovalRuleContentException) GoString() string {
 21462  	return s.String()
 21463  }
 21464  
 21465  func newErrorInvalidApprovalRuleContentException(v protocol.ResponseMetadata) error {
 21466  	return &InvalidApprovalRuleContentException{
 21467  		RespMetadata: v,
 21468  	}
 21469  }
 21470  
 21471  // Code returns the exception type name.
 21472  func (s *InvalidApprovalRuleContentException) Code() string {
 21473  	return "InvalidApprovalRuleContentException"
 21474  }
 21475  
 21476  // Message returns the exception's message.
 21477  func (s *InvalidApprovalRuleContentException) Message() string {
 21478  	if s.Message_ != nil {
 21479  		return *s.Message_
 21480  	}
 21481  	return ""
 21482  }
 21483  
 21484  // OrigErr always returns nil, satisfies awserr.Error interface.
 21485  func (s *InvalidApprovalRuleContentException) OrigErr() error {
 21486  	return nil
 21487  }
 21488  
 21489  func (s *InvalidApprovalRuleContentException) Error() string {
 21490  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21491  }
 21492  
 21493  // Status code returns the HTTP status code for the request's response error.
 21494  func (s *InvalidApprovalRuleContentException) StatusCode() int {
 21495  	return s.RespMetadata.StatusCode
 21496  }
 21497  
 21498  // RequestID returns the service's response RequestID for request.
 21499  func (s *InvalidApprovalRuleContentException) RequestID() string {
 21500  	return s.RespMetadata.RequestID
 21501  }
 21502  
 21503  // The name for the approval rule is not valid.
 21504  type InvalidApprovalRuleNameException struct {
 21505  	_            struct{}                  `type:"structure"`
 21506  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21507  
 21508  	Message_ *string `locationName:"message" type:"string"`
 21509  }
 21510  
 21511  // String returns the string representation.
 21512  //
 21513  // API parameter values that are decorated as "sensitive" in the API will not
 21514  // be included in the string output. The member name will be present, but the
 21515  // value will be replaced with "sensitive".
 21516  func (s InvalidApprovalRuleNameException) String() string {
 21517  	return awsutil.Prettify(s)
 21518  }
 21519  
 21520  // GoString returns the string representation.
 21521  //
 21522  // API parameter values that are decorated as "sensitive" in the API will not
 21523  // be included in the string output. The member name will be present, but the
 21524  // value will be replaced with "sensitive".
 21525  func (s InvalidApprovalRuleNameException) GoString() string {
 21526  	return s.String()
 21527  }
 21528  
 21529  func newErrorInvalidApprovalRuleNameException(v protocol.ResponseMetadata) error {
 21530  	return &InvalidApprovalRuleNameException{
 21531  		RespMetadata: v,
 21532  	}
 21533  }
 21534  
 21535  // Code returns the exception type name.
 21536  func (s *InvalidApprovalRuleNameException) Code() string {
 21537  	return "InvalidApprovalRuleNameException"
 21538  }
 21539  
 21540  // Message returns the exception's message.
 21541  func (s *InvalidApprovalRuleNameException) Message() string {
 21542  	if s.Message_ != nil {
 21543  		return *s.Message_
 21544  	}
 21545  	return ""
 21546  }
 21547  
 21548  // OrigErr always returns nil, satisfies awserr.Error interface.
 21549  func (s *InvalidApprovalRuleNameException) OrigErr() error {
 21550  	return nil
 21551  }
 21552  
 21553  func (s *InvalidApprovalRuleNameException) Error() string {
 21554  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21555  }
 21556  
 21557  // Status code returns the HTTP status code for the request's response error.
 21558  func (s *InvalidApprovalRuleNameException) StatusCode() int {
 21559  	return s.RespMetadata.StatusCode
 21560  }
 21561  
 21562  // RequestID returns the service's response RequestID for request.
 21563  func (s *InvalidApprovalRuleNameException) RequestID() string {
 21564  	return s.RespMetadata.RequestID
 21565  }
 21566  
 21567  // The content of the approval rule template is not valid.
 21568  type InvalidApprovalRuleTemplateContentException struct {
 21569  	_            struct{}                  `type:"structure"`
 21570  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21571  
 21572  	Message_ *string `locationName:"message" type:"string"`
 21573  }
 21574  
 21575  // String returns the string representation.
 21576  //
 21577  // API parameter values that are decorated as "sensitive" in the API will not
 21578  // be included in the string output. The member name will be present, but the
 21579  // value will be replaced with "sensitive".
 21580  func (s InvalidApprovalRuleTemplateContentException) String() string {
 21581  	return awsutil.Prettify(s)
 21582  }
 21583  
 21584  // GoString returns the string representation.
 21585  //
 21586  // API parameter values that are decorated as "sensitive" in the API will not
 21587  // be included in the string output. The member name will be present, but the
 21588  // value will be replaced with "sensitive".
 21589  func (s InvalidApprovalRuleTemplateContentException) GoString() string {
 21590  	return s.String()
 21591  }
 21592  
 21593  func newErrorInvalidApprovalRuleTemplateContentException(v protocol.ResponseMetadata) error {
 21594  	return &InvalidApprovalRuleTemplateContentException{
 21595  		RespMetadata: v,
 21596  	}
 21597  }
 21598  
 21599  // Code returns the exception type name.
 21600  func (s *InvalidApprovalRuleTemplateContentException) Code() string {
 21601  	return "InvalidApprovalRuleTemplateContentException"
 21602  }
 21603  
 21604  // Message returns the exception's message.
 21605  func (s *InvalidApprovalRuleTemplateContentException) Message() string {
 21606  	if s.Message_ != nil {
 21607  		return *s.Message_
 21608  	}
 21609  	return ""
 21610  }
 21611  
 21612  // OrigErr always returns nil, satisfies awserr.Error interface.
 21613  func (s *InvalidApprovalRuleTemplateContentException) OrigErr() error {
 21614  	return nil
 21615  }
 21616  
 21617  func (s *InvalidApprovalRuleTemplateContentException) Error() string {
 21618  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21619  }
 21620  
 21621  // Status code returns the HTTP status code for the request's response error.
 21622  func (s *InvalidApprovalRuleTemplateContentException) StatusCode() int {
 21623  	return s.RespMetadata.StatusCode
 21624  }
 21625  
 21626  // RequestID returns the service's response RequestID for request.
 21627  func (s *InvalidApprovalRuleTemplateContentException) RequestID() string {
 21628  	return s.RespMetadata.RequestID
 21629  }
 21630  
 21631  // The description for the approval rule template is not valid because it exceeds
 21632  // the maximum characters allowed for a description. For more information about
 21633  // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
 21634  type InvalidApprovalRuleTemplateDescriptionException struct {
 21635  	_            struct{}                  `type:"structure"`
 21636  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21637  
 21638  	Message_ *string `locationName:"message" type:"string"`
 21639  }
 21640  
 21641  // String returns the string representation.
 21642  //
 21643  // API parameter values that are decorated as "sensitive" in the API will not
 21644  // be included in the string output. The member name will be present, but the
 21645  // value will be replaced with "sensitive".
 21646  func (s InvalidApprovalRuleTemplateDescriptionException) String() string {
 21647  	return awsutil.Prettify(s)
 21648  }
 21649  
 21650  // GoString returns the string representation.
 21651  //
 21652  // API parameter values that are decorated as "sensitive" in the API will not
 21653  // be included in the string output. The member name will be present, but the
 21654  // value will be replaced with "sensitive".
 21655  func (s InvalidApprovalRuleTemplateDescriptionException) GoString() string {
 21656  	return s.String()
 21657  }
 21658  
 21659  func newErrorInvalidApprovalRuleTemplateDescriptionException(v protocol.ResponseMetadata) error {
 21660  	return &InvalidApprovalRuleTemplateDescriptionException{
 21661  		RespMetadata: v,
 21662  	}
 21663  }
 21664  
 21665  // Code returns the exception type name.
 21666  func (s *InvalidApprovalRuleTemplateDescriptionException) Code() string {
 21667  	return "InvalidApprovalRuleTemplateDescriptionException"
 21668  }
 21669  
 21670  // Message returns the exception's message.
 21671  func (s *InvalidApprovalRuleTemplateDescriptionException) Message() string {
 21672  	if s.Message_ != nil {
 21673  		return *s.Message_
 21674  	}
 21675  	return ""
 21676  }
 21677  
 21678  // OrigErr always returns nil, satisfies awserr.Error interface.
 21679  func (s *InvalidApprovalRuleTemplateDescriptionException) OrigErr() error {
 21680  	return nil
 21681  }
 21682  
 21683  func (s *InvalidApprovalRuleTemplateDescriptionException) Error() string {
 21684  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21685  }
 21686  
 21687  // Status code returns the HTTP status code for the request's response error.
 21688  func (s *InvalidApprovalRuleTemplateDescriptionException) StatusCode() int {
 21689  	return s.RespMetadata.StatusCode
 21690  }
 21691  
 21692  // RequestID returns the service's response RequestID for request.
 21693  func (s *InvalidApprovalRuleTemplateDescriptionException) RequestID() string {
 21694  	return s.RespMetadata.RequestID
 21695  }
 21696  
 21697  // The name of the approval rule template is not valid. Template names must
 21698  // be between 1 and 100 valid characters in length. For more information about
 21699  // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
 21700  type InvalidApprovalRuleTemplateNameException struct {
 21701  	_            struct{}                  `type:"structure"`
 21702  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21703  
 21704  	Message_ *string `locationName:"message" type:"string"`
 21705  }
 21706  
 21707  // String returns the string representation.
 21708  //
 21709  // API parameter values that are decorated as "sensitive" in the API will not
 21710  // be included in the string output. The member name will be present, but the
 21711  // value will be replaced with "sensitive".
 21712  func (s InvalidApprovalRuleTemplateNameException) String() string {
 21713  	return awsutil.Prettify(s)
 21714  }
 21715  
 21716  // GoString returns the string representation.
 21717  //
 21718  // API parameter values that are decorated as "sensitive" in the API will not
 21719  // be included in the string output. The member name will be present, but the
 21720  // value will be replaced with "sensitive".
 21721  func (s InvalidApprovalRuleTemplateNameException) GoString() string {
 21722  	return s.String()
 21723  }
 21724  
 21725  func newErrorInvalidApprovalRuleTemplateNameException(v protocol.ResponseMetadata) error {
 21726  	return &InvalidApprovalRuleTemplateNameException{
 21727  		RespMetadata: v,
 21728  	}
 21729  }
 21730  
 21731  // Code returns the exception type name.
 21732  func (s *InvalidApprovalRuleTemplateNameException) Code() string {
 21733  	return "InvalidApprovalRuleTemplateNameException"
 21734  }
 21735  
 21736  // Message returns the exception's message.
 21737  func (s *InvalidApprovalRuleTemplateNameException) Message() string {
 21738  	if s.Message_ != nil {
 21739  		return *s.Message_
 21740  	}
 21741  	return ""
 21742  }
 21743  
 21744  // OrigErr always returns nil, satisfies awserr.Error interface.
 21745  func (s *InvalidApprovalRuleTemplateNameException) OrigErr() error {
 21746  	return nil
 21747  }
 21748  
 21749  func (s *InvalidApprovalRuleTemplateNameException) Error() string {
 21750  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21751  }
 21752  
 21753  // Status code returns the HTTP status code for the request's response error.
 21754  func (s *InvalidApprovalRuleTemplateNameException) StatusCode() int {
 21755  	return s.RespMetadata.StatusCode
 21756  }
 21757  
 21758  // RequestID returns the service's response RequestID for request.
 21759  func (s *InvalidApprovalRuleTemplateNameException) RequestID() string {
 21760  	return s.RespMetadata.RequestID
 21761  }
 21762  
 21763  // The state for the approval is not valid. Valid values include APPROVE and
 21764  // REVOKE.
 21765  type InvalidApprovalStateException struct {
 21766  	_            struct{}                  `type:"structure"`
 21767  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21768  
 21769  	Message_ *string `locationName:"message" type:"string"`
 21770  }
 21771  
 21772  // String returns the string representation.
 21773  //
 21774  // API parameter values that are decorated as "sensitive" in the API will not
 21775  // be included in the string output. The member name will be present, but the
 21776  // value will be replaced with "sensitive".
 21777  func (s InvalidApprovalStateException) String() string {
 21778  	return awsutil.Prettify(s)
 21779  }
 21780  
 21781  // GoString returns the string representation.
 21782  //
 21783  // API parameter values that are decorated as "sensitive" in the API will not
 21784  // be included in the string output. The member name will be present, but the
 21785  // value will be replaced with "sensitive".
 21786  func (s InvalidApprovalStateException) GoString() string {
 21787  	return s.String()
 21788  }
 21789  
 21790  func newErrorInvalidApprovalStateException(v protocol.ResponseMetadata) error {
 21791  	return &InvalidApprovalStateException{
 21792  		RespMetadata: v,
 21793  	}
 21794  }
 21795  
 21796  // Code returns the exception type name.
 21797  func (s *InvalidApprovalStateException) Code() string {
 21798  	return "InvalidApprovalStateException"
 21799  }
 21800  
 21801  // Message returns the exception's message.
 21802  func (s *InvalidApprovalStateException) Message() string {
 21803  	if s.Message_ != nil {
 21804  		return *s.Message_
 21805  	}
 21806  	return ""
 21807  }
 21808  
 21809  // OrigErr always returns nil, satisfies awserr.Error interface.
 21810  func (s *InvalidApprovalStateException) OrigErr() error {
 21811  	return nil
 21812  }
 21813  
 21814  func (s *InvalidApprovalStateException) Error() string {
 21815  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21816  }
 21817  
 21818  // Status code returns the HTTP status code for the request's response error.
 21819  func (s *InvalidApprovalStateException) StatusCode() int {
 21820  	return s.RespMetadata.StatusCode
 21821  }
 21822  
 21823  // RequestID returns the service's response RequestID for request.
 21824  func (s *InvalidApprovalStateException) RequestID() string {
 21825  	return s.RespMetadata.RequestID
 21826  }
 21827  
 21828  // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
 21829  // the full ARN for the author of the pull request, and then try again.
 21830  type InvalidAuthorArnException struct {
 21831  	_            struct{}                  `type:"structure"`
 21832  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21833  
 21834  	Message_ *string `locationName:"message" type:"string"`
 21835  }
 21836  
 21837  // String returns the string representation.
 21838  //
 21839  // API parameter values that are decorated as "sensitive" in the API will not
 21840  // be included in the string output. The member name will be present, but the
 21841  // value will be replaced with "sensitive".
 21842  func (s InvalidAuthorArnException) String() string {
 21843  	return awsutil.Prettify(s)
 21844  }
 21845  
 21846  // GoString returns the string representation.
 21847  //
 21848  // API parameter values that are decorated as "sensitive" in the API will not
 21849  // be included in the string output. The member name will be present, but the
 21850  // value will be replaced with "sensitive".
 21851  func (s InvalidAuthorArnException) GoString() string {
 21852  	return s.String()
 21853  }
 21854  
 21855  func newErrorInvalidAuthorArnException(v protocol.ResponseMetadata) error {
 21856  	return &InvalidAuthorArnException{
 21857  		RespMetadata: v,
 21858  	}
 21859  }
 21860  
 21861  // Code returns the exception type name.
 21862  func (s *InvalidAuthorArnException) Code() string {
 21863  	return "InvalidAuthorArnException"
 21864  }
 21865  
 21866  // Message returns the exception's message.
 21867  func (s *InvalidAuthorArnException) Message() string {
 21868  	if s.Message_ != nil {
 21869  		return *s.Message_
 21870  	}
 21871  	return ""
 21872  }
 21873  
 21874  // OrigErr always returns nil, satisfies awserr.Error interface.
 21875  func (s *InvalidAuthorArnException) OrigErr() error {
 21876  	return nil
 21877  }
 21878  
 21879  func (s *InvalidAuthorArnException) Error() string {
 21880  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21881  }
 21882  
 21883  // Status code returns the HTTP status code for the request's response error.
 21884  func (s *InvalidAuthorArnException) StatusCode() int {
 21885  	return s.RespMetadata.StatusCode
 21886  }
 21887  
 21888  // RequestID returns the service's response RequestID for request.
 21889  func (s *InvalidAuthorArnException) RequestID() string {
 21890  	return s.RespMetadata.RequestID
 21891  }
 21892  
 21893  // The specified blob is not valid.
 21894  type InvalidBlobIdException struct {
 21895  	_            struct{}                  `type:"structure"`
 21896  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21897  
 21898  	Message_ *string `locationName:"message" type:"string"`
 21899  }
 21900  
 21901  // String returns the string representation.
 21902  //
 21903  // API parameter values that are decorated as "sensitive" in the API will not
 21904  // be included in the string output. The member name will be present, but the
 21905  // value will be replaced with "sensitive".
 21906  func (s InvalidBlobIdException) String() string {
 21907  	return awsutil.Prettify(s)
 21908  }
 21909  
 21910  // GoString returns the string representation.
 21911  //
 21912  // API parameter values that are decorated as "sensitive" in the API will not
 21913  // be included in the string output. The member name will be present, but the
 21914  // value will be replaced with "sensitive".
 21915  func (s InvalidBlobIdException) GoString() string {
 21916  	return s.String()
 21917  }
 21918  
 21919  func newErrorInvalidBlobIdException(v protocol.ResponseMetadata) error {
 21920  	return &InvalidBlobIdException{
 21921  		RespMetadata: v,
 21922  	}
 21923  }
 21924  
 21925  // Code returns the exception type name.
 21926  func (s *InvalidBlobIdException) Code() string {
 21927  	return "InvalidBlobIdException"
 21928  }
 21929  
 21930  // Message returns the exception's message.
 21931  func (s *InvalidBlobIdException) Message() string {
 21932  	if s.Message_ != nil {
 21933  		return *s.Message_
 21934  	}
 21935  	return ""
 21936  }
 21937  
 21938  // OrigErr always returns nil, satisfies awserr.Error interface.
 21939  func (s *InvalidBlobIdException) OrigErr() error {
 21940  	return nil
 21941  }
 21942  
 21943  func (s *InvalidBlobIdException) Error() string {
 21944  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 21945  }
 21946  
 21947  // Status code returns the HTTP status code for the request's response error.
 21948  func (s *InvalidBlobIdException) StatusCode() int {
 21949  	return s.RespMetadata.StatusCode
 21950  }
 21951  
 21952  // RequestID returns the service's response RequestID for request.
 21953  func (s *InvalidBlobIdException) RequestID() string {
 21954  	return s.RespMetadata.RequestID
 21955  }
 21956  
 21957  // The specified reference name is not valid.
 21958  type InvalidBranchNameException struct {
 21959  	_            struct{}                  `type:"structure"`
 21960  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 21961  
 21962  	Message_ *string `locationName:"message" type:"string"`
 21963  }
 21964  
 21965  // String returns the string representation.
 21966  //
 21967  // API parameter values that are decorated as "sensitive" in the API will not
 21968  // be included in the string output. The member name will be present, but the
 21969  // value will be replaced with "sensitive".
 21970  func (s InvalidBranchNameException) String() string {
 21971  	return awsutil.Prettify(s)
 21972  }
 21973  
 21974  // GoString returns the string representation.
 21975  //
 21976  // API parameter values that are decorated as "sensitive" in the API will not
 21977  // be included in the string output. The member name will be present, but the
 21978  // value will be replaced with "sensitive".
 21979  func (s InvalidBranchNameException) GoString() string {
 21980  	return s.String()
 21981  }
 21982  
 21983  func newErrorInvalidBranchNameException(v protocol.ResponseMetadata) error {
 21984  	return &InvalidBranchNameException{
 21985  		RespMetadata: v,
 21986  	}
 21987  }
 21988  
 21989  // Code returns the exception type name.
 21990  func (s *InvalidBranchNameException) Code() string {
 21991  	return "InvalidBranchNameException"
 21992  }
 21993  
 21994  // Message returns the exception's message.
 21995  func (s *InvalidBranchNameException) Message() string {
 21996  	if s.Message_ != nil {
 21997  		return *s.Message_
 21998  	}
 21999  	return ""
 22000  }
 22001  
 22002  // OrigErr always returns nil, satisfies awserr.Error interface.
 22003  func (s *InvalidBranchNameException) OrigErr() error {
 22004  	return nil
 22005  }
 22006  
 22007  func (s *InvalidBranchNameException) Error() string {
 22008  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22009  }
 22010  
 22011  // Status code returns the HTTP status code for the request's response error.
 22012  func (s *InvalidBranchNameException) StatusCode() int {
 22013  	return s.RespMetadata.StatusCode
 22014  }
 22015  
 22016  // RequestID returns the service's response RequestID for request.
 22017  func (s *InvalidBranchNameException) RequestID() string {
 22018  	return s.RespMetadata.RequestID
 22019  }
 22020  
 22021  // The client request token is not valid.
 22022  type InvalidClientRequestTokenException struct {
 22023  	_            struct{}                  `type:"structure"`
 22024  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22025  
 22026  	Message_ *string `locationName:"message" type:"string"`
 22027  }
 22028  
 22029  // String returns the string representation.
 22030  //
 22031  // API parameter values that are decorated as "sensitive" in the API will not
 22032  // be included in the string output. The member name will be present, but the
 22033  // value will be replaced with "sensitive".
 22034  func (s InvalidClientRequestTokenException) String() string {
 22035  	return awsutil.Prettify(s)
 22036  }
 22037  
 22038  // GoString returns the string representation.
 22039  //
 22040  // API parameter values that are decorated as "sensitive" in the API will not
 22041  // be included in the string output. The member name will be present, but the
 22042  // value will be replaced with "sensitive".
 22043  func (s InvalidClientRequestTokenException) GoString() string {
 22044  	return s.String()
 22045  }
 22046  
 22047  func newErrorInvalidClientRequestTokenException(v protocol.ResponseMetadata) error {
 22048  	return &InvalidClientRequestTokenException{
 22049  		RespMetadata: v,
 22050  	}
 22051  }
 22052  
 22053  // Code returns the exception type name.
 22054  func (s *InvalidClientRequestTokenException) Code() string {
 22055  	return "InvalidClientRequestTokenException"
 22056  }
 22057  
 22058  // Message returns the exception's message.
 22059  func (s *InvalidClientRequestTokenException) Message() string {
 22060  	if s.Message_ != nil {
 22061  		return *s.Message_
 22062  	}
 22063  	return ""
 22064  }
 22065  
 22066  // OrigErr always returns nil, satisfies awserr.Error interface.
 22067  func (s *InvalidClientRequestTokenException) OrigErr() error {
 22068  	return nil
 22069  }
 22070  
 22071  func (s *InvalidClientRequestTokenException) Error() string {
 22072  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22073  }
 22074  
 22075  // Status code returns the HTTP status code for the request's response error.
 22076  func (s *InvalidClientRequestTokenException) StatusCode() int {
 22077  	return s.RespMetadata.StatusCode
 22078  }
 22079  
 22080  // RequestID returns the service's response RequestID for request.
 22081  func (s *InvalidClientRequestTokenException) RequestID() string {
 22082  	return s.RespMetadata.RequestID
 22083  }
 22084  
 22085  // The comment ID is not in a valid format. Make sure that you have provided
 22086  // the full comment ID.
 22087  type InvalidCommentIdException struct {
 22088  	_            struct{}                  `type:"structure"`
 22089  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22090  
 22091  	Message_ *string `locationName:"message" type:"string"`
 22092  }
 22093  
 22094  // String returns the string representation.
 22095  //
 22096  // API parameter values that are decorated as "sensitive" in the API will not
 22097  // be included in the string output. The member name will be present, but the
 22098  // value will be replaced with "sensitive".
 22099  func (s InvalidCommentIdException) String() string {
 22100  	return awsutil.Prettify(s)
 22101  }
 22102  
 22103  // GoString returns the string representation.
 22104  //
 22105  // API parameter values that are decorated as "sensitive" in the API will not
 22106  // be included in the string output. The member name will be present, but the
 22107  // value will be replaced with "sensitive".
 22108  func (s InvalidCommentIdException) GoString() string {
 22109  	return s.String()
 22110  }
 22111  
 22112  func newErrorInvalidCommentIdException(v protocol.ResponseMetadata) error {
 22113  	return &InvalidCommentIdException{
 22114  		RespMetadata: v,
 22115  	}
 22116  }
 22117  
 22118  // Code returns the exception type name.
 22119  func (s *InvalidCommentIdException) Code() string {
 22120  	return "InvalidCommentIdException"
 22121  }
 22122  
 22123  // Message returns the exception's message.
 22124  func (s *InvalidCommentIdException) Message() string {
 22125  	if s.Message_ != nil {
 22126  		return *s.Message_
 22127  	}
 22128  	return ""
 22129  }
 22130  
 22131  // OrigErr always returns nil, satisfies awserr.Error interface.
 22132  func (s *InvalidCommentIdException) OrigErr() error {
 22133  	return nil
 22134  }
 22135  
 22136  func (s *InvalidCommentIdException) Error() string {
 22137  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22138  }
 22139  
 22140  // Status code returns the HTTP status code for the request's response error.
 22141  func (s *InvalidCommentIdException) StatusCode() int {
 22142  	return s.RespMetadata.StatusCode
 22143  }
 22144  
 22145  // RequestID returns the service's response RequestID for request.
 22146  func (s *InvalidCommentIdException) RequestID() string {
 22147  	return s.RespMetadata.RequestID
 22148  }
 22149  
 22150  // The specified commit is not valid.
 22151  type InvalidCommitException struct {
 22152  	_            struct{}                  `type:"structure"`
 22153  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22154  
 22155  	Message_ *string `locationName:"message" type:"string"`
 22156  }
 22157  
 22158  // String returns the string representation.
 22159  //
 22160  // API parameter values that are decorated as "sensitive" in the API will not
 22161  // be included in the string output. The member name will be present, but the
 22162  // value will be replaced with "sensitive".
 22163  func (s InvalidCommitException) String() string {
 22164  	return awsutil.Prettify(s)
 22165  }
 22166  
 22167  // GoString returns the string representation.
 22168  //
 22169  // API parameter values that are decorated as "sensitive" in the API will not
 22170  // be included in the string output. The member name will be present, but the
 22171  // value will be replaced with "sensitive".
 22172  func (s InvalidCommitException) GoString() string {
 22173  	return s.String()
 22174  }
 22175  
 22176  func newErrorInvalidCommitException(v protocol.ResponseMetadata) error {
 22177  	return &InvalidCommitException{
 22178  		RespMetadata: v,
 22179  	}
 22180  }
 22181  
 22182  // Code returns the exception type name.
 22183  func (s *InvalidCommitException) Code() string {
 22184  	return "InvalidCommitException"
 22185  }
 22186  
 22187  // Message returns the exception's message.
 22188  func (s *InvalidCommitException) Message() string {
 22189  	if s.Message_ != nil {
 22190  		return *s.Message_
 22191  	}
 22192  	return ""
 22193  }
 22194  
 22195  // OrigErr always returns nil, satisfies awserr.Error interface.
 22196  func (s *InvalidCommitException) OrigErr() error {
 22197  	return nil
 22198  }
 22199  
 22200  func (s *InvalidCommitException) Error() string {
 22201  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22202  }
 22203  
 22204  // Status code returns the HTTP status code for the request's response error.
 22205  func (s *InvalidCommitException) StatusCode() int {
 22206  	return s.RespMetadata.StatusCode
 22207  }
 22208  
 22209  // RequestID returns the service's response RequestID for request.
 22210  func (s *InvalidCommitException) RequestID() string {
 22211  	return s.RespMetadata.RequestID
 22212  }
 22213  
 22214  // The specified commit ID is not valid.
 22215  type InvalidCommitIdException struct {
 22216  	_            struct{}                  `type:"structure"`
 22217  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22218  
 22219  	Message_ *string `locationName:"message" type:"string"`
 22220  }
 22221  
 22222  // String returns the string representation.
 22223  //
 22224  // API parameter values that are decorated as "sensitive" in the API will not
 22225  // be included in the string output. The member name will be present, but the
 22226  // value will be replaced with "sensitive".
 22227  func (s InvalidCommitIdException) String() string {
 22228  	return awsutil.Prettify(s)
 22229  }
 22230  
 22231  // GoString returns the string representation.
 22232  //
 22233  // API parameter values that are decorated as "sensitive" in the API will not
 22234  // be included in the string output. The member name will be present, but the
 22235  // value will be replaced with "sensitive".
 22236  func (s InvalidCommitIdException) GoString() string {
 22237  	return s.String()
 22238  }
 22239  
 22240  func newErrorInvalidCommitIdException(v protocol.ResponseMetadata) error {
 22241  	return &InvalidCommitIdException{
 22242  		RespMetadata: v,
 22243  	}
 22244  }
 22245  
 22246  // Code returns the exception type name.
 22247  func (s *InvalidCommitIdException) Code() string {
 22248  	return "InvalidCommitIdException"
 22249  }
 22250  
 22251  // Message returns the exception's message.
 22252  func (s *InvalidCommitIdException) Message() string {
 22253  	if s.Message_ != nil {
 22254  		return *s.Message_
 22255  	}
 22256  	return ""
 22257  }
 22258  
 22259  // OrigErr always returns nil, satisfies awserr.Error interface.
 22260  func (s *InvalidCommitIdException) OrigErr() error {
 22261  	return nil
 22262  }
 22263  
 22264  func (s *InvalidCommitIdException) Error() string {
 22265  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22266  }
 22267  
 22268  // Status code returns the HTTP status code for the request's response error.
 22269  func (s *InvalidCommitIdException) StatusCode() int {
 22270  	return s.RespMetadata.StatusCode
 22271  }
 22272  
 22273  // RequestID returns the service's response RequestID for request.
 22274  func (s *InvalidCommitIdException) RequestID() string {
 22275  	return s.RespMetadata.RequestID
 22276  }
 22277  
 22278  // The specified conflict detail level is not valid.
 22279  type InvalidConflictDetailLevelException struct {
 22280  	_            struct{}                  `type:"structure"`
 22281  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22282  
 22283  	Message_ *string `locationName:"message" type:"string"`
 22284  }
 22285  
 22286  // String returns the string representation.
 22287  //
 22288  // API parameter values that are decorated as "sensitive" in the API will not
 22289  // be included in the string output. The member name will be present, but the
 22290  // value will be replaced with "sensitive".
 22291  func (s InvalidConflictDetailLevelException) String() string {
 22292  	return awsutil.Prettify(s)
 22293  }
 22294  
 22295  // GoString returns the string representation.
 22296  //
 22297  // API parameter values that are decorated as "sensitive" in the API will not
 22298  // be included in the string output. The member name will be present, but the
 22299  // value will be replaced with "sensitive".
 22300  func (s InvalidConflictDetailLevelException) GoString() string {
 22301  	return s.String()
 22302  }
 22303  
 22304  func newErrorInvalidConflictDetailLevelException(v protocol.ResponseMetadata) error {
 22305  	return &InvalidConflictDetailLevelException{
 22306  		RespMetadata: v,
 22307  	}
 22308  }
 22309  
 22310  // Code returns the exception type name.
 22311  func (s *InvalidConflictDetailLevelException) Code() string {
 22312  	return "InvalidConflictDetailLevelException"
 22313  }
 22314  
 22315  // Message returns the exception's message.
 22316  func (s *InvalidConflictDetailLevelException) Message() string {
 22317  	if s.Message_ != nil {
 22318  		return *s.Message_
 22319  	}
 22320  	return ""
 22321  }
 22322  
 22323  // OrigErr always returns nil, satisfies awserr.Error interface.
 22324  func (s *InvalidConflictDetailLevelException) OrigErr() error {
 22325  	return nil
 22326  }
 22327  
 22328  func (s *InvalidConflictDetailLevelException) Error() string {
 22329  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22330  }
 22331  
 22332  // Status code returns the HTTP status code for the request's response error.
 22333  func (s *InvalidConflictDetailLevelException) StatusCode() int {
 22334  	return s.RespMetadata.StatusCode
 22335  }
 22336  
 22337  // RequestID returns the service's response RequestID for request.
 22338  func (s *InvalidConflictDetailLevelException) RequestID() string {
 22339  	return s.RespMetadata.RequestID
 22340  }
 22341  
 22342  // The specified conflict resolution list is not valid.
 22343  type InvalidConflictResolutionException struct {
 22344  	_            struct{}                  `type:"structure"`
 22345  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22346  
 22347  	Message_ *string `locationName:"message" type:"string"`
 22348  }
 22349  
 22350  // String returns the string representation.
 22351  //
 22352  // API parameter values that are decorated as "sensitive" in the API will not
 22353  // be included in the string output. The member name will be present, but the
 22354  // value will be replaced with "sensitive".
 22355  func (s InvalidConflictResolutionException) String() string {
 22356  	return awsutil.Prettify(s)
 22357  }
 22358  
 22359  // GoString returns the string representation.
 22360  //
 22361  // API parameter values that are decorated as "sensitive" in the API will not
 22362  // be included in the string output. The member name will be present, but the
 22363  // value will be replaced with "sensitive".
 22364  func (s InvalidConflictResolutionException) GoString() string {
 22365  	return s.String()
 22366  }
 22367  
 22368  func newErrorInvalidConflictResolutionException(v protocol.ResponseMetadata) error {
 22369  	return &InvalidConflictResolutionException{
 22370  		RespMetadata: v,
 22371  	}
 22372  }
 22373  
 22374  // Code returns the exception type name.
 22375  func (s *InvalidConflictResolutionException) Code() string {
 22376  	return "InvalidConflictResolutionException"
 22377  }
 22378  
 22379  // Message returns the exception's message.
 22380  func (s *InvalidConflictResolutionException) Message() string {
 22381  	if s.Message_ != nil {
 22382  		return *s.Message_
 22383  	}
 22384  	return ""
 22385  }
 22386  
 22387  // OrigErr always returns nil, satisfies awserr.Error interface.
 22388  func (s *InvalidConflictResolutionException) OrigErr() error {
 22389  	return nil
 22390  }
 22391  
 22392  func (s *InvalidConflictResolutionException) Error() string {
 22393  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22394  }
 22395  
 22396  // Status code returns the HTTP status code for the request's response error.
 22397  func (s *InvalidConflictResolutionException) StatusCode() int {
 22398  	return s.RespMetadata.StatusCode
 22399  }
 22400  
 22401  // RequestID returns the service's response RequestID for request.
 22402  func (s *InvalidConflictResolutionException) RequestID() string {
 22403  	return s.RespMetadata.RequestID
 22404  }
 22405  
 22406  // The specified conflict resolution strategy is not valid.
 22407  type InvalidConflictResolutionStrategyException struct {
 22408  	_            struct{}                  `type:"structure"`
 22409  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22410  
 22411  	Message_ *string `locationName:"message" type:"string"`
 22412  }
 22413  
 22414  // String returns the string representation.
 22415  //
 22416  // API parameter values that are decorated as "sensitive" in the API will not
 22417  // be included in the string output. The member name will be present, but the
 22418  // value will be replaced with "sensitive".
 22419  func (s InvalidConflictResolutionStrategyException) String() string {
 22420  	return awsutil.Prettify(s)
 22421  }
 22422  
 22423  // GoString returns the string representation.
 22424  //
 22425  // API parameter values that are decorated as "sensitive" in the API will not
 22426  // be included in the string output. The member name will be present, but the
 22427  // value will be replaced with "sensitive".
 22428  func (s InvalidConflictResolutionStrategyException) GoString() string {
 22429  	return s.String()
 22430  }
 22431  
 22432  func newErrorInvalidConflictResolutionStrategyException(v protocol.ResponseMetadata) error {
 22433  	return &InvalidConflictResolutionStrategyException{
 22434  		RespMetadata: v,
 22435  	}
 22436  }
 22437  
 22438  // Code returns the exception type name.
 22439  func (s *InvalidConflictResolutionStrategyException) Code() string {
 22440  	return "InvalidConflictResolutionStrategyException"
 22441  }
 22442  
 22443  // Message returns the exception's message.
 22444  func (s *InvalidConflictResolutionStrategyException) Message() string {
 22445  	if s.Message_ != nil {
 22446  		return *s.Message_
 22447  	}
 22448  	return ""
 22449  }
 22450  
 22451  // OrigErr always returns nil, satisfies awserr.Error interface.
 22452  func (s *InvalidConflictResolutionStrategyException) OrigErr() error {
 22453  	return nil
 22454  }
 22455  
 22456  func (s *InvalidConflictResolutionStrategyException) Error() string {
 22457  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22458  }
 22459  
 22460  // Status code returns the HTTP status code for the request's response error.
 22461  func (s *InvalidConflictResolutionStrategyException) StatusCode() int {
 22462  	return s.RespMetadata.StatusCode
 22463  }
 22464  
 22465  // RequestID returns the service's response RequestID for request.
 22466  func (s *InvalidConflictResolutionStrategyException) RequestID() string {
 22467  	return s.RespMetadata.RequestID
 22468  }
 22469  
 22470  // The specified continuation token is not valid.
 22471  type InvalidContinuationTokenException struct {
 22472  	_            struct{}                  `type:"structure"`
 22473  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22474  
 22475  	Message_ *string `locationName:"message" type:"string"`
 22476  }
 22477  
 22478  // String returns the string representation.
 22479  //
 22480  // API parameter values that are decorated as "sensitive" in the API will not
 22481  // be included in the string output. The member name will be present, but the
 22482  // value will be replaced with "sensitive".
 22483  func (s InvalidContinuationTokenException) String() string {
 22484  	return awsutil.Prettify(s)
 22485  }
 22486  
 22487  // GoString returns the string representation.
 22488  //
 22489  // API parameter values that are decorated as "sensitive" in the API will not
 22490  // be included in the string output. The member name will be present, but the
 22491  // value will be replaced with "sensitive".
 22492  func (s InvalidContinuationTokenException) GoString() string {
 22493  	return s.String()
 22494  }
 22495  
 22496  func newErrorInvalidContinuationTokenException(v protocol.ResponseMetadata) error {
 22497  	return &InvalidContinuationTokenException{
 22498  		RespMetadata: v,
 22499  	}
 22500  }
 22501  
 22502  // Code returns the exception type name.
 22503  func (s *InvalidContinuationTokenException) Code() string {
 22504  	return "InvalidContinuationTokenException"
 22505  }
 22506  
 22507  // Message returns the exception's message.
 22508  func (s *InvalidContinuationTokenException) Message() string {
 22509  	if s.Message_ != nil {
 22510  		return *s.Message_
 22511  	}
 22512  	return ""
 22513  }
 22514  
 22515  // OrigErr always returns nil, satisfies awserr.Error interface.
 22516  func (s *InvalidContinuationTokenException) OrigErr() error {
 22517  	return nil
 22518  }
 22519  
 22520  func (s *InvalidContinuationTokenException) Error() string {
 22521  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22522  }
 22523  
 22524  // Status code returns the HTTP status code for the request's response error.
 22525  func (s *InvalidContinuationTokenException) StatusCode() int {
 22526  	return s.RespMetadata.StatusCode
 22527  }
 22528  
 22529  // RequestID returns the service's response RequestID for request.
 22530  func (s *InvalidContinuationTokenException) RequestID() string {
 22531  	return s.RespMetadata.RequestID
 22532  }
 22533  
 22534  // The specified deletion parameter is not valid.
 22535  type InvalidDeletionParameterException struct {
 22536  	_            struct{}                  `type:"structure"`
 22537  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22538  
 22539  	Message_ *string `locationName:"message" type:"string"`
 22540  }
 22541  
 22542  // String returns the string representation.
 22543  //
 22544  // API parameter values that are decorated as "sensitive" in the API will not
 22545  // be included in the string output. The member name will be present, but the
 22546  // value will be replaced with "sensitive".
 22547  func (s InvalidDeletionParameterException) String() string {
 22548  	return awsutil.Prettify(s)
 22549  }
 22550  
 22551  // GoString returns the string representation.
 22552  //
 22553  // API parameter values that are decorated as "sensitive" in the API will not
 22554  // be included in the string output. The member name will be present, but the
 22555  // value will be replaced with "sensitive".
 22556  func (s InvalidDeletionParameterException) GoString() string {
 22557  	return s.String()
 22558  }
 22559  
 22560  func newErrorInvalidDeletionParameterException(v protocol.ResponseMetadata) error {
 22561  	return &InvalidDeletionParameterException{
 22562  		RespMetadata: v,
 22563  	}
 22564  }
 22565  
 22566  // Code returns the exception type name.
 22567  func (s *InvalidDeletionParameterException) Code() string {
 22568  	return "InvalidDeletionParameterException"
 22569  }
 22570  
 22571  // Message returns the exception's message.
 22572  func (s *InvalidDeletionParameterException) Message() string {
 22573  	if s.Message_ != nil {
 22574  		return *s.Message_
 22575  	}
 22576  	return ""
 22577  }
 22578  
 22579  // OrigErr always returns nil, satisfies awserr.Error interface.
 22580  func (s *InvalidDeletionParameterException) OrigErr() error {
 22581  	return nil
 22582  }
 22583  
 22584  func (s *InvalidDeletionParameterException) Error() string {
 22585  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22586  }
 22587  
 22588  // Status code returns the HTTP status code for the request's response error.
 22589  func (s *InvalidDeletionParameterException) StatusCode() int {
 22590  	return s.RespMetadata.StatusCode
 22591  }
 22592  
 22593  // RequestID returns the service's response RequestID for request.
 22594  func (s *InvalidDeletionParameterException) RequestID() string {
 22595  	return s.RespMetadata.RequestID
 22596  }
 22597  
 22598  // The pull request description is not valid. Descriptions cannot be more than
 22599  // 1,000 characters.
 22600  type InvalidDescriptionException struct {
 22601  	_            struct{}                  `type:"structure"`
 22602  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22603  
 22604  	Message_ *string `locationName:"message" type:"string"`
 22605  }
 22606  
 22607  // String returns the string representation.
 22608  //
 22609  // API parameter values that are decorated as "sensitive" in the API will not
 22610  // be included in the string output. The member name will be present, but the
 22611  // value will be replaced with "sensitive".
 22612  func (s InvalidDescriptionException) String() string {
 22613  	return awsutil.Prettify(s)
 22614  }
 22615  
 22616  // GoString returns the string representation.
 22617  //
 22618  // API parameter values that are decorated as "sensitive" in the API will not
 22619  // be included in the string output. The member name will be present, but the
 22620  // value will be replaced with "sensitive".
 22621  func (s InvalidDescriptionException) GoString() string {
 22622  	return s.String()
 22623  }
 22624  
 22625  func newErrorInvalidDescriptionException(v protocol.ResponseMetadata) error {
 22626  	return &InvalidDescriptionException{
 22627  		RespMetadata: v,
 22628  	}
 22629  }
 22630  
 22631  // Code returns the exception type name.
 22632  func (s *InvalidDescriptionException) Code() string {
 22633  	return "InvalidDescriptionException"
 22634  }
 22635  
 22636  // Message returns the exception's message.
 22637  func (s *InvalidDescriptionException) Message() string {
 22638  	if s.Message_ != nil {
 22639  		return *s.Message_
 22640  	}
 22641  	return ""
 22642  }
 22643  
 22644  // OrigErr always returns nil, satisfies awserr.Error interface.
 22645  func (s *InvalidDescriptionException) OrigErr() error {
 22646  	return nil
 22647  }
 22648  
 22649  func (s *InvalidDescriptionException) Error() string {
 22650  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22651  }
 22652  
 22653  // Status code returns the HTTP status code for the request's response error.
 22654  func (s *InvalidDescriptionException) StatusCode() int {
 22655  	return s.RespMetadata.StatusCode
 22656  }
 22657  
 22658  // RequestID returns the service's response RequestID for request.
 22659  func (s *InvalidDescriptionException) RequestID() string {
 22660  	return s.RespMetadata.RequestID
 22661  }
 22662  
 22663  // The destination commit specifier is not valid. You must provide a valid branch
 22664  // name, tag, or full commit ID.
 22665  type InvalidDestinationCommitSpecifierException struct {
 22666  	_            struct{}                  `type:"structure"`
 22667  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22668  
 22669  	Message_ *string `locationName:"message" type:"string"`
 22670  }
 22671  
 22672  // String returns the string representation.
 22673  //
 22674  // API parameter values that are decorated as "sensitive" in the API will not
 22675  // be included in the string output. The member name will be present, but the
 22676  // value will be replaced with "sensitive".
 22677  func (s InvalidDestinationCommitSpecifierException) String() string {
 22678  	return awsutil.Prettify(s)
 22679  }
 22680  
 22681  // GoString returns the string representation.
 22682  //
 22683  // API parameter values that are decorated as "sensitive" in the API will not
 22684  // be included in the string output. The member name will be present, but the
 22685  // value will be replaced with "sensitive".
 22686  func (s InvalidDestinationCommitSpecifierException) GoString() string {
 22687  	return s.String()
 22688  }
 22689  
 22690  func newErrorInvalidDestinationCommitSpecifierException(v protocol.ResponseMetadata) error {
 22691  	return &InvalidDestinationCommitSpecifierException{
 22692  		RespMetadata: v,
 22693  	}
 22694  }
 22695  
 22696  // Code returns the exception type name.
 22697  func (s *InvalidDestinationCommitSpecifierException) Code() string {
 22698  	return "InvalidDestinationCommitSpecifierException"
 22699  }
 22700  
 22701  // Message returns the exception's message.
 22702  func (s *InvalidDestinationCommitSpecifierException) Message() string {
 22703  	if s.Message_ != nil {
 22704  		return *s.Message_
 22705  	}
 22706  	return ""
 22707  }
 22708  
 22709  // OrigErr always returns nil, satisfies awserr.Error interface.
 22710  func (s *InvalidDestinationCommitSpecifierException) OrigErr() error {
 22711  	return nil
 22712  }
 22713  
 22714  func (s *InvalidDestinationCommitSpecifierException) Error() string {
 22715  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22716  }
 22717  
 22718  // Status code returns the HTTP status code for the request's response error.
 22719  func (s *InvalidDestinationCommitSpecifierException) StatusCode() int {
 22720  	return s.RespMetadata.StatusCode
 22721  }
 22722  
 22723  // RequestID returns the service's response RequestID for request.
 22724  func (s *InvalidDestinationCommitSpecifierException) RequestID() string {
 22725  	return s.RespMetadata.RequestID
 22726  }
 22727  
 22728  // The specified email address either contains one or more characters that are
 22729  // not allowed, or it exceeds the maximum number of characters allowed for an
 22730  // email address.
 22731  type InvalidEmailException struct {
 22732  	_            struct{}                  `type:"structure"`
 22733  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22734  
 22735  	Message_ *string `locationName:"message" type:"string"`
 22736  }
 22737  
 22738  // String returns the string representation.
 22739  //
 22740  // API parameter values that are decorated as "sensitive" in the API will not
 22741  // be included in the string output. The member name will be present, but the
 22742  // value will be replaced with "sensitive".
 22743  func (s InvalidEmailException) String() string {
 22744  	return awsutil.Prettify(s)
 22745  }
 22746  
 22747  // GoString returns the string representation.
 22748  //
 22749  // API parameter values that are decorated as "sensitive" in the API will not
 22750  // be included in the string output. The member name will be present, but the
 22751  // value will be replaced with "sensitive".
 22752  func (s InvalidEmailException) GoString() string {
 22753  	return s.String()
 22754  }
 22755  
 22756  func newErrorInvalidEmailException(v protocol.ResponseMetadata) error {
 22757  	return &InvalidEmailException{
 22758  		RespMetadata: v,
 22759  	}
 22760  }
 22761  
 22762  // Code returns the exception type name.
 22763  func (s *InvalidEmailException) Code() string {
 22764  	return "InvalidEmailException"
 22765  }
 22766  
 22767  // Message returns the exception's message.
 22768  func (s *InvalidEmailException) Message() string {
 22769  	if s.Message_ != nil {
 22770  		return *s.Message_
 22771  	}
 22772  	return ""
 22773  }
 22774  
 22775  // OrigErr always returns nil, satisfies awserr.Error interface.
 22776  func (s *InvalidEmailException) OrigErr() error {
 22777  	return nil
 22778  }
 22779  
 22780  func (s *InvalidEmailException) Error() string {
 22781  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22782  }
 22783  
 22784  // Status code returns the HTTP status code for the request's response error.
 22785  func (s *InvalidEmailException) StatusCode() int {
 22786  	return s.RespMetadata.StatusCode
 22787  }
 22788  
 22789  // RequestID returns the service's response RequestID for request.
 22790  func (s *InvalidEmailException) RequestID() string {
 22791  	return s.RespMetadata.RequestID
 22792  }
 22793  
 22794  // The location of the file is not valid. Make sure that you include the file
 22795  // name and extension.
 22796  type InvalidFileLocationException struct {
 22797  	_            struct{}                  `type:"structure"`
 22798  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22799  
 22800  	Message_ *string `locationName:"message" type:"string"`
 22801  }
 22802  
 22803  // String returns the string representation.
 22804  //
 22805  // API parameter values that are decorated as "sensitive" in the API will not
 22806  // be included in the string output. The member name will be present, but the
 22807  // value will be replaced with "sensitive".
 22808  func (s InvalidFileLocationException) String() string {
 22809  	return awsutil.Prettify(s)
 22810  }
 22811  
 22812  // GoString returns the string representation.
 22813  //
 22814  // API parameter values that are decorated as "sensitive" in the API will not
 22815  // be included in the string output. The member name will be present, but the
 22816  // value will be replaced with "sensitive".
 22817  func (s InvalidFileLocationException) GoString() string {
 22818  	return s.String()
 22819  }
 22820  
 22821  func newErrorInvalidFileLocationException(v protocol.ResponseMetadata) error {
 22822  	return &InvalidFileLocationException{
 22823  		RespMetadata: v,
 22824  	}
 22825  }
 22826  
 22827  // Code returns the exception type name.
 22828  func (s *InvalidFileLocationException) Code() string {
 22829  	return "InvalidFileLocationException"
 22830  }
 22831  
 22832  // Message returns the exception's message.
 22833  func (s *InvalidFileLocationException) Message() string {
 22834  	if s.Message_ != nil {
 22835  		return *s.Message_
 22836  	}
 22837  	return ""
 22838  }
 22839  
 22840  // OrigErr always returns nil, satisfies awserr.Error interface.
 22841  func (s *InvalidFileLocationException) OrigErr() error {
 22842  	return nil
 22843  }
 22844  
 22845  func (s *InvalidFileLocationException) Error() string {
 22846  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22847  }
 22848  
 22849  // Status code returns the HTTP status code for the request's response error.
 22850  func (s *InvalidFileLocationException) StatusCode() int {
 22851  	return s.RespMetadata.StatusCode
 22852  }
 22853  
 22854  // RequestID returns the service's response RequestID for request.
 22855  func (s *InvalidFileLocationException) RequestID() string {
 22856  	return s.RespMetadata.RequestID
 22857  }
 22858  
 22859  // The specified file mode permission is not valid. For a list of valid file
 22860  // mode permissions, see PutFile.
 22861  type InvalidFileModeException struct {
 22862  	_            struct{}                  `type:"structure"`
 22863  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22864  
 22865  	Message_ *string `locationName:"message" type:"string"`
 22866  }
 22867  
 22868  // String returns the string representation.
 22869  //
 22870  // API parameter values that are decorated as "sensitive" in the API will not
 22871  // be included in the string output. The member name will be present, but the
 22872  // value will be replaced with "sensitive".
 22873  func (s InvalidFileModeException) String() string {
 22874  	return awsutil.Prettify(s)
 22875  }
 22876  
 22877  // GoString returns the string representation.
 22878  //
 22879  // API parameter values that are decorated as "sensitive" in the API will not
 22880  // be included in the string output. The member name will be present, but the
 22881  // value will be replaced with "sensitive".
 22882  func (s InvalidFileModeException) GoString() string {
 22883  	return s.String()
 22884  }
 22885  
 22886  func newErrorInvalidFileModeException(v protocol.ResponseMetadata) error {
 22887  	return &InvalidFileModeException{
 22888  		RespMetadata: v,
 22889  	}
 22890  }
 22891  
 22892  // Code returns the exception type name.
 22893  func (s *InvalidFileModeException) Code() string {
 22894  	return "InvalidFileModeException"
 22895  }
 22896  
 22897  // Message returns the exception's message.
 22898  func (s *InvalidFileModeException) Message() string {
 22899  	if s.Message_ != nil {
 22900  		return *s.Message_
 22901  	}
 22902  	return ""
 22903  }
 22904  
 22905  // OrigErr always returns nil, satisfies awserr.Error interface.
 22906  func (s *InvalidFileModeException) OrigErr() error {
 22907  	return nil
 22908  }
 22909  
 22910  func (s *InvalidFileModeException) Error() string {
 22911  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22912  }
 22913  
 22914  // Status code returns the HTTP status code for the request's response error.
 22915  func (s *InvalidFileModeException) StatusCode() int {
 22916  	return s.RespMetadata.StatusCode
 22917  }
 22918  
 22919  // RequestID returns the service's response RequestID for request.
 22920  func (s *InvalidFileModeException) RequestID() string {
 22921  	return s.RespMetadata.RequestID
 22922  }
 22923  
 22924  // The position is not valid. Make sure that the line number exists in the version
 22925  // of the file you want to comment on.
 22926  type InvalidFilePositionException struct {
 22927  	_            struct{}                  `type:"structure"`
 22928  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22929  
 22930  	Message_ *string `locationName:"message" type:"string"`
 22931  }
 22932  
 22933  // String returns the string representation.
 22934  //
 22935  // API parameter values that are decorated as "sensitive" in the API will not
 22936  // be included in the string output. The member name will be present, but the
 22937  // value will be replaced with "sensitive".
 22938  func (s InvalidFilePositionException) String() string {
 22939  	return awsutil.Prettify(s)
 22940  }
 22941  
 22942  // GoString returns the string representation.
 22943  //
 22944  // API parameter values that are decorated as "sensitive" in the API will not
 22945  // be included in the string output. The member name will be present, but the
 22946  // value will be replaced with "sensitive".
 22947  func (s InvalidFilePositionException) GoString() string {
 22948  	return s.String()
 22949  }
 22950  
 22951  func newErrorInvalidFilePositionException(v protocol.ResponseMetadata) error {
 22952  	return &InvalidFilePositionException{
 22953  		RespMetadata: v,
 22954  	}
 22955  }
 22956  
 22957  // Code returns the exception type name.
 22958  func (s *InvalidFilePositionException) Code() string {
 22959  	return "InvalidFilePositionException"
 22960  }
 22961  
 22962  // Message returns the exception's message.
 22963  func (s *InvalidFilePositionException) Message() string {
 22964  	if s.Message_ != nil {
 22965  		return *s.Message_
 22966  	}
 22967  	return ""
 22968  }
 22969  
 22970  // OrigErr always returns nil, satisfies awserr.Error interface.
 22971  func (s *InvalidFilePositionException) OrigErr() error {
 22972  	return nil
 22973  }
 22974  
 22975  func (s *InvalidFilePositionException) Error() string {
 22976  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 22977  }
 22978  
 22979  // Status code returns the HTTP status code for the request's response error.
 22980  func (s *InvalidFilePositionException) StatusCode() int {
 22981  	return s.RespMetadata.StatusCode
 22982  }
 22983  
 22984  // RequestID returns the service's response RequestID for request.
 22985  func (s *InvalidFilePositionException) RequestID() string {
 22986  	return s.RespMetadata.RequestID
 22987  }
 22988  
 22989  // The specified value for the number of conflict files to return is not valid.
 22990  type InvalidMaxConflictFilesException struct {
 22991  	_            struct{}                  `type:"structure"`
 22992  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 22993  
 22994  	Message_ *string `locationName:"message" type:"string"`
 22995  }
 22996  
 22997  // String returns the string representation.
 22998  //
 22999  // API parameter values that are decorated as "sensitive" in the API will not
 23000  // be included in the string output. The member name will be present, but the
 23001  // value will be replaced with "sensitive".
 23002  func (s InvalidMaxConflictFilesException) String() string {
 23003  	return awsutil.Prettify(s)
 23004  }
 23005  
 23006  // GoString returns the string representation.
 23007  //
 23008  // API parameter values that are decorated as "sensitive" in the API will not
 23009  // be included in the string output. The member name will be present, but the
 23010  // value will be replaced with "sensitive".
 23011  func (s InvalidMaxConflictFilesException) GoString() string {
 23012  	return s.String()
 23013  }
 23014  
 23015  func newErrorInvalidMaxConflictFilesException(v protocol.ResponseMetadata) error {
 23016  	return &InvalidMaxConflictFilesException{
 23017  		RespMetadata: v,
 23018  	}
 23019  }
 23020  
 23021  // Code returns the exception type name.
 23022  func (s *InvalidMaxConflictFilesException) Code() string {
 23023  	return "InvalidMaxConflictFilesException"
 23024  }
 23025  
 23026  // Message returns the exception's message.
 23027  func (s *InvalidMaxConflictFilesException) Message() string {
 23028  	if s.Message_ != nil {
 23029  		return *s.Message_
 23030  	}
 23031  	return ""
 23032  }
 23033  
 23034  // OrigErr always returns nil, satisfies awserr.Error interface.
 23035  func (s *InvalidMaxConflictFilesException) OrigErr() error {
 23036  	return nil
 23037  }
 23038  
 23039  func (s *InvalidMaxConflictFilesException) Error() string {
 23040  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23041  }
 23042  
 23043  // Status code returns the HTTP status code for the request's response error.
 23044  func (s *InvalidMaxConflictFilesException) StatusCode() int {
 23045  	return s.RespMetadata.StatusCode
 23046  }
 23047  
 23048  // RequestID returns the service's response RequestID for request.
 23049  func (s *InvalidMaxConflictFilesException) RequestID() string {
 23050  	return s.RespMetadata.RequestID
 23051  }
 23052  
 23053  // The specified value for the number of merge hunks to return is not valid.
 23054  type InvalidMaxMergeHunksException struct {
 23055  	_            struct{}                  `type:"structure"`
 23056  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23057  
 23058  	Message_ *string `locationName:"message" type:"string"`
 23059  }
 23060  
 23061  // String returns the string representation.
 23062  //
 23063  // API parameter values that are decorated as "sensitive" in the API will not
 23064  // be included in the string output. The member name will be present, but the
 23065  // value will be replaced with "sensitive".
 23066  func (s InvalidMaxMergeHunksException) String() string {
 23067  	return awsutil.Prettify(s)
 23068  }
 23069  
 23070  // GoString returns the string representation.
 23071  //
 23072  // API parameter values that are decorated as "sensitive" in the API will not
 23073  // be included in the string output. The member name will be present, but the
 23074  // value will be replaced with "sensitive".
 23075  func (s InvalidMaxMergeHunksException) GoString() string {
 23076  	return s.String()
 23077  }
 23078  
 23079  func newErrorInvalidMaxMergeHunksException(v protocol.ResponseMetadata) error {
 23080  	return &InvalidMaxMergeHunksException{
 23081  		RespMetadata: v,
 23082  	}
 23083  }
 23084  
 23085  // Code returns the exception type name.
 23086  func (s *InvalidMaxMergeHunksException) Code() string {
 23087  	return "InvalidMaxMergeHunksException"
 23088  }
 23089  
 23090  // Message returns the exception's message.
 23091  func (s *InvalidMaxMergeHunksException) Message() string {
 23092  	if s.Message_ != nil {
 23093  		return *s.Message_
 23094  	}
 23095  	return ""
 23096  }
 23097  
 23098  // OrigErr always returns nil, satisfies awserr.Error interface.
 23099  func (s *InvalidMaxMergeHunksException) OrigErr() error {
 23100  	return nil
 23101  }
 23102  
 23103  func (s *InvalidMaxMergeHunksException) Error() string {
 23104  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23105  }
 23106  
 23107  // Status code returns the HTTP status code for the request's response error.
 23108  func (s *InvalidMaxMergeHunksException) StatusCode() int {
 23109  	return s.RespMetadata.StatusCode
 23110  }
 23111  
 23112  // RequestID returns the service's response RequestID for request.
 23113  func (s *InvalidMaxMergeHunksException) RequestID() string {
 23114  	return s.RespMetadata.RequestID
 23115  }
 23116  
 23117  // The specified number of maximum results is not valid.
 23118  type InvalidMaxResultsException struct {
 23119  	_            struct{}                  `type:"structure"`
 23120  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23121  
 23122  	Message_ *string `locationName:"message" type:"string"`
 23123  }
 23124  
 23125  // String returns the string representation.
 23126  //
 23127  // API parameter values that are decorated as "sensitive" in the API will not
 23128  // be included in the string output. The member name will be present, but the
 23129  // value will be replaced with "sensitive".
 23130  func (s InvalidMaxResultsException) String() string {
 23131  	return awsutil.Prettify(s)
 23132  }
 23133  
 23134  // GoString returns the string representation.
 23135  //
 23136  // API parameter values that are decorated as "sensitive" in the API will not
 23137  // be included in the string output. The member name will be present, but the
 23138  // value will be replaced with "sensitive".
 23139  func (s InvalidMaxResultsException) GoString() string {
 23140  	return s.String()
 23141  }
 23142  
 23143  func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error {
 23144  	return &InvalidMaxResultsException{
 23145  		RespMetadata: v,
 23146  	}
 23147  }
 23148  
 23149  // Code returns the exception type name.
 23150  func (s *InvalidMaxResultsException) Code() string {
 23151  	return "InvalidMaxResultsException"
 23152  }
 23153  
 23154  // Message returns the exception's message.
 23155  func (s *InvalidMaxResultsException) Message() string {
 23156  	if s.Message_ != nil {
 23157  		return *s.Message_
 23158  	}
 23159  	return ""
 23160  }
 23161  
 23162  // OrigErr always returns nil, satisfies awserr.Error interface.
 23163  func (s *InvalidMaxResultsException) OrigErr() error {
 23164  	return nil
 23165  }
 23166  
 23167  func (s *InvalidMaxResultsException) Error() string {
 23168  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23169  }
 23170  
 23171  // Status code returns the HTTP status code for the request's response error.
 23172  func (s *InvalidMaxResultsException) StatusCode() int {
 23173  	return s.RespMetadata.StatusCode
 23174  }
 23175  
 23176  // RequestID returns the service's response RequestID for request.
 23177  func (s *InvalidMaxResultsException) RequestID() string {
 23178  	return s.RespMetadata.RequestID
 23179  }
 23180  
 23181  // The specified merge option is not valid for this operation. Not all merge
 23182  // strategies are supported for all operations.
 23183  type InvalidMergeOptionException struct {
 23184  	_            struct{}                  `type:"structure"`
 23185  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23186  
 23187  	Message_ *string `locationName:"message" type:"string"`
 23188  }
 23189  
 23190  // String returns the string representation.
 23191  //
 23192  // API parameter values that are decorated as "sensitive" in the API will not
 23193  // be included in the string output. The member name will be present, but the
 23194  // value will be replaced with "sensitive".
 23195  func (s InvalidMergeOptionException) String() string {
 23196  	return awsutil.Prettify(s)
 23197  }
 23198  
 23199  // GoString returns the string representation.
 23200  //
 23201  // API parameter values that are decorated as "sensitive" in the API will not
 23202  // be included in the string output. The member name will be present, but the
 23203  // value will be replaced with "sensitive".
 23204  func (s InvalidMergeOptionException) GoString() string {
 23205  	return s.String()
 23206  }
 23207  
 23208  func newErrorInvalidMergeOptionException(v protocol.ResponseMetadata) error {
 23209  	return &InvalidMergeOptionException{
 23210  		RespMetadata: v,
 23211  	}
 23212  }
 23213  
 23214  // Code returns the exception type name.
 23215  func (s *InvalidMergeOptionException) Code() string {
 23216  	return "InvalidMergeOptionException"
 23217  }
 23218  
 23219  // Message returns the exception's message.
 23220  func (s *InvalidMergeOptionException) Message() string {
 23221  	if s.Message_ != nil {
 23222  		return *s.Message_
 23223  	}
 23224  	return ""
 23225  }
 23226  
 23227  // OrigErr always returns nil, satisfies awserr.Error interface.
 23228  func (s *InvalidMergeOptionException) OrigErr() error {
 23229  	return nil
 23230  }
 23231  
 23232  func (s *InvalidMergeOptionException) Error() string {
 23233  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23234  }
 23235  
 23236  // Status code returns the HTTP status code for the request's response error.
 23237  func (s *InvalidMergeOptionException) StatusCode() int {
 23238  	return s.RespMetadata.StatusCode
 23239  }
 23240  
 23241  // RequestID returns the service's response RequestID for request.
 23242  func (s *InvalidMergeOptionException) RequestID() string {
 23243  	return s.RespMetadata.RequestID
 23244  }
 23245  
 23246  // The specified sort order is not valid.
 23247  type InvalidOrderException struct {
 23248  	_            struct{}                  `type:"structure"`
 23249  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23250  
 23251  	Message_ *string `locationName:"message" type:"string"`
 23252  }
 23253  
 23254  // String returns the string representation.
 23255  //
 23256  // API parameter values that are decorated as "sensitive" in the API will not
 23257  // be included in the string output. The member name will be present, but the
 23258  // value will be replaced with "sensitive".
 23259  func (s InvalidOrderException) String() string {
 23260  	return awsutil.Prettify(s)
 23261  }
 23262  
 23263  // GoString returns the string representation.
 23264  //
 23265  // API parameter values that are decorated as "sensitive" in the API will not
 23266  // be included in the string output. The member name will be present, but the
 23267  // value will be replaced with "sensitive".
 23268  func (s InvalidOrderException) GoString() string {
 23269  	return s.String()
 23270  }
 23271  
 23272  func newErrorInvalidOrderException(v protocol.ResponseMetadata) error {
 23273  	return &InvalidOrderException{
 23274  		RespMetadata: v,
 23275  	}
 23276  }
 23277  
 23278  // Code returns the exception type name.
 23279  func (s *InvalidOrderException) Code() string {
 23280  	return "InvalidOrderException"
 23281  }
 23282  
 23283  // Message returns the exception's message.
 23284  func (s *InvalidOrderException) Message() string {
 23285  	if s.Message_ != nil {
 23286  		return *s.Message_
 23287  	}
 23288  	return ""
 23289  }
 23290  
 23291  // OrigErr always returns nil, satisfies awserr.Error interface.
 23292  func (s *InvalidOrderException) OrigErr() error {
 23293  	return nil
 23294  }
 23295  
 23296  func (s *InvalidOrderException) Error() string {
 23297  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23298  }
 23299  
 23300  // Status code returns the HTTP status code for the request's response error.
 23301  func (s *InvalidOrderException) StatusCode() int {
 23302  	return s.RespMetadata.StatusCode
 23303  }
 23304  
 23305  // RequestID returns the service's response RequestID for request.
 23306  func (s *InvalidOrderException) RequestID() string {
 23307  	return s.RespMetadata.RequestID
 23308  }
 23309  
 23310  // The override status is not valid. Valid statuses are OVERRIDE and REVOKE.
 23311  type InvalidOverrideStatusException struct {
 23312  	_            struct{}                  `type:"structure"`
 23313  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23314  
 23315  	Message_ *string `locationName:"message" type:"string"`
 23316  }
 23317  
 23318  // String returns the string representation.
 23319  //
 23320  // API parameter values that are decorated as "sensitive" in the API will not
 23321  // be included in the string output. The member name will be present, but the
 23322  // value will be replaced with "sensitive".
 23323  func (s InvalidOverrideStatusException) String() string {
 23324  	return awsutil.Prettify(s)
 23325  }
 23326  
 23327  // GoString returns the string representation.
 23328  //
 23329  // API parameter values that are decorated as "sensitive" in the API will not
 23330  // be included in the string output. The member name will be present, but the
 23331  // value will be replaced with "sensitive".
 23332  func (s InvalidOverrideStatusException) GoString() string {
 23333  	return s.String()
 23334  }
 23335  
 23336  func newErrorInvalidOverrideStatusException(v protocol.ResponseMetadata) error {
 23337  	return &InvalidOverrideStatusException{
 23338  		RespMetadata: v,
 23339  	}
 23340  }
 23341  
 23342  // Code returns the exception type name.
 23343  func (s *InvalidOverrideStatusException) Code() string {
 23344  	return "InvalidOverrideStatusException"
 23345  }
 23346  
 23347  // Message returns the exception's message.
 23348  func (s *InvalidOverrideStatusException) Message() string {
 23349  	if s.Message_ != nil {
 23350  		return *s.Message_
 23351  	}
 23352  	return ""
 23353  }
 23354  
 23355  // OrigErr always returns nil, satisfies awserr.Error interface.
 23356  func (s *InvalidOverrideStatusException) OrigErr() error {
 23357  	return nil
 23358  }
 23359  
 23360  func (s *InvalidOverrideStatusException) Error() string {
 23361  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23362  }
 23363  
 23364  // Status code returns the HTTP status code for the request's response error.
 23365  func (s *InvalidOverrideStatusException) StatusCode() int {
 23366  	return s.RespMetadata.StatusCode
 23367  }
 23368  
 23369  // RequestID returns the service's response RequestID for request.
 23370  func (s *InvalidOverrideStatusException) RequestID() string {
 23371  	return s.RespMetadata.RequestID
 23372  }
 23373  
 23374  // The parent commit ID is not valid. The commit ID cannot be empty, and must
 23375  // match the head commit ID for the branch of the repository where you want
 23376  // to add or update a file.
 23377  type InvalidParentCommitIdException struct {
 23378  	_            struct{}                  `type:"structure"`
 23379  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23380  
 23381  	Message_ *string `locationName:"message" type:"string"`
 23382  }
 23383  
 23384  // String returns the string representation.
 23385  //
 23386  // API parameter values that are decorated as "sensitive" in the API will not
 23387  // be included in the string output. The member name will be present, but the
 23388  // value will be replaced with "sensitive".
 23389  func (s InvalidParentCommitIdException) String() string {
 23390  	return awsutil.Prettify(s)
 23391  }
 23392  
 23393  // GoString returns the string representation.
 23394  //
 23395  // API parameter values that are decorated as "sensitive" in the API will not
 23396  // be included in the string output. The member name will be present, but the
 23397  // value will be replaced with "sensitive".
 23398  func (s InvalidParentCommitIdException) GoString() string {
 23399  	return s.String()
 23400  }
 23401  
 23402  func newErrorInvalidParentCommitIdException(v protocol.ResponseMetadata) error {
 23403  	return &InvalidParentCommitIdException{
 23404  		RespMetadata: v,
 23405  	}
 23406  }
 23407  
 23408  // Code returns the exception type name.
 23409  func (s *InvalidParentCommitIdException) Code() string {
 23410  	return "InvalidParentCommitIdException"
 23411  }
 23412  
 23413  // Message returns the exception's message.
 23414  func (s *InvalidParentCommitIdException) Message() string {
 23415  	if s.Message_ != nil {
 23416  		return *s.Message_
 23417  	}
 23418  	return ""
 23419  }
 23420  
 23421  // OrigErr always returns nil, satisfies awserr.Error interface.
 23422  func (s *InvalidParentCommitIdException) OrigErr() error {
 23423  	return nil
 23424  }
 23425  
 23426  func (s *InvalidParentCommitIdException) Error() string {
 23427  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23428  }
 23429  
 23430  // Status code returns the HTTP status code for the request's response error.
 23431  func (s *InvalidParentCommitIdException) StatusCode() int {
 23432  	return s.RespMetadata.StatusCode
 23433  }
 23434  
 23435  // RequestID returns the service's response RequestID for request.
 23436  func (s *InvalidParentCommitIdException) RequestID() string {
 23437  	return s.RespMetadata.RequestID
 23438  }
 23439  
 23440  // The specified path is not valid.
 23441  type InvalidPathException struct {
 23442  	_            struct{}                  `type:"structure"`
 23443  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23444  
 23445  	Message_ *string `locationName:"message" type:"string"`
 23446  }
 23447  
 23448  // String returns the string representation.
 23449  //
 23450  // API parameter values that are decorated as "sensitive" in the API will not
 23451  // be included in the string output. The member name will be present, but the
 23452  // value will be replaced with "sensitive".
 23453  func (s InvalidPathException) String() string {
 23454  	return awsutil.Prettify(s)
 23455  }
 23456  
 23457  // GoString returns the string representation.
 23458  //
 23459  // API parameter values that are decorated as "sensitive" in the API will not
 23460  // be included in the string output. The member name will be present, but the
 23461  // value will be replaced with "sensitive".
 23462  func (s InvalidPathException) GoString() string {
 23463  	return s.String()
 23464  }
 23465  
 23466  func newErrorInvalidPathException(v protocol.ResponseMetadata) error {
 23467  	return &InvalidPathException{
 23468  		RespMetadata: v,
 23469  	}
 23470  }
 23471  
 23472  // Code returns the exception type name.
 23473  func (s *InvalidPathException) Code() string {
 23474  	return "InvalidPathException"
 23475  }
 23476  
 23477  // Message returns the exception's message.
 23478  func (s *InvalidPathException) Message() string {
 23479  	if s.Message_ != nil {
 23480  		return *s.Message_
 23481  	}
 23482  	return ""
 23483  }
 23484  
 23485  // OrigErr always returns nil, satisfies awserr.Error interface.
 23486  func (s *InvalidPathException) OrigErr() error {
 23487  	return nil
 23488  }
 23489  
 23490  func (s *InvalidPathException) Error() string {
 23491  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23492  }
 23493  
 23494  // Status code returns the HTTP status code for the request's response error.
 23495  func (s *InvalidPathException) StatusCode() int {
 23496  	return s.RespMetadata.StatusCode
 23497  }
 23498  
 23499  // RequestID returns the service's response RequestID for request.
 23500  func (s *InvalidPathException) RequestID() string {
 23501  	return s.RespMetadata.RequestID
 23502  }
 23503  
 23504  // The pull request event type is not valid.
 23505  type InvalidPullRequestEventTypeException struct {
 23506  	_            struct{}                  `type:"structure"`
 23507  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23508  
 23509  	Message_ *string `locationName:"message" type:"string"`
 23510  }
 23511  
 23512  // String returns the string representation.
 23513  //
 23514  // API parameter values that are decorated as "sensitive" in the API will not
 23515  // be included in the string output. The member name will be present, but the
 23516  // value will be replaced with "sensitive".
 23517  func (s InvalidPullRequestEventTypeException) String() string {
 23518  	return awsutil.Prettify(s)
 23519  }
 23520  
 23521  // GoString returns the string representation.
 23522  //
 23523  // API parameter values that are decorated as "sensitive" in the API will not
 23524  // be included in the string output. The member name will be present, but the
 23525  // value will be replaced with "sensitive".
 23526  func (s InvalidPullRequestEventTypeException) GoString() string {
 23527  	return s.String()
 23528  }
 23529  
 23530  func newErrorInvalidPullRequestEventTypeException(v protocol.ResponseMetadata) error {
 23531  	return &InvalidPullRequestEventTypeException{
 23532  		RespMetadata: v,
 23533  	}
 23534  }
 23535  
 23536  // Code returns the exception type name.
 23537  func (s *InvalidPullRequestEventTypeException) Code() string {
 23538  	return "InvalidPullRequestEventTypeException"
 23539  }
 23540  
 23541  // Message returns the exception's message.
 23542  func (s *InvalidPullRequestEventTypeException) Message() string {
 23543  	if s.Message_ != nil {
 23544  		return *s.Message_
 23545  	}
 23546  	return ""
 23547  }
 23548  
 23549  // OrigErr always returns nil, satisfies awserr.Error interface.
 23550  func (s *InvalidPullRequestEventTypeException) OrigErr() error {
 23551  	return nil
 23552  }
 23553  
 23554  func (s *InvalidPullRequestEventTypeException) Error() string {
 23555  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23556  }
 23557  
 23558  // Status code returns the HTTP status code for the request's response error.
 23559  func (s *InvalidPullRequestEventTypeException) StatusCode() int {
 23560  	return s.RespMetadata.StatusCode
 23561  }
 23562  
 23563  // RequestID returns the service's response RequestID for request.
 23564  func (s *InvalidPullRequestEventTypeException) RequestID() string {
 23565  	return s.RespMetadata.RequestID
 23566  }
 23567  
 23568  // The pull request ID is not valid. Make sure that you have provided the full
 23569  // ID and that the pull request is in the specified repository, and then try
 23570  // again.
 23571  type InvalidPullRequestIdException struct {
 23572  	_            struct{}                  `type:"structure"`
 23573  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23574  
 23575  	Message_ *string `locationName:"message" type:"string"`
 23576  }
 23577  
 23578  // String returns the string representation.
 23579  //
 23580  // API parameter values that are decorated as "sensitive" in the API will not
 23581  // be included in the string output. The member name will be present, but the
 23582  // value will be replaced with "sensitive".
 23583  func (s InvalidPullRequestIdException) String() string {
 23584  	return awsutil.Prettify(s)
 23585  }
 23586  
 23587  // GoString returns the string representation.
 23588  //
 23589  // API parameter values that are decorated as "sensitive" in the API will not
 23590  // be included in the string output. The member name will be present, but the
 23591  // value will be replaced with "sensitive".
 23592  func (s InvalidPullRequestIdException) GoString() string {
 23593  	return s.String()
 23594  }
 23595  
 23596  func newErrorInvalidPullRequestIdException(v protocol.ResponseMetadata) error {
 23597  	return &InvalidPullRequestIdException{
 23598  		RespMetadata: v,
 23599  	}
 23600  }
 23601  
 23602  // Code returns the exception type name.
 23603  func (s *InvalidPullRequestIdException) Code() string {
 23604  	return "InvalidPullRequestIdException"
 23605  }
 23606  
 23607  // Message returns the exception's message.
 23608  func (s *InvalidPullRequestIdException) Message() string {
 23609  	if s.Message_ != nil {
 23610  		return *s.Message_
 23611  	}
 23612  	return ""
 23613  }
 23614  
 23615  // OrigErr always returns nil, satisfies awserr.Error interface.
 23616  func (s *InvalidPullRequestIdException) OrigErr() error {
 23617  	return nil
 23618  }
 23619  
 23620  func (s *InvalidPullRequestIdException) Error() string {
 23621  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23622  }
 23623  
 23624  // Status code returns the HTTP status code for the request's response error.
 23625  func (s *InvalidPullRequestIdException) StatusCode() int {
 23626  	return s.RespMetadata.StatusCode
 23627  }
 23628  
 23629  // RequestID returns the service's response RequestID for request.
 23630  func (s *InvalidPullRequestIdException) RequestID() string {
 23631  	return s.RespMetadata.RequestID
 23632  }
 23633  
 23634  // The pull request status is not valid. The only valid values are OPEN and
 23635  // CLOSED.
 23636  type InvalidPullRequestStatusException struct {
 23637  	_            struct{}                  `type:"structure"`
 23638  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23639  
 23640  	Message_ *string `locationName:"message" type:"string"`
 23641  }
 23642  
 23643  // String returns the string representation.
 23644  //
 23645  // API parameter values that are decorated as "sensitive" in the API will not
 23646  // be included in the string output. The member name will be present, but the
 23647  // value will be replaced with "sensitive".
 23648  func (s InvalidPullRequestStatusException) String() string {
 23649  	return awsutil.Prettify(s)
 23650  }
 23651  
 23652  // GoString returns the string representation.
 23653  //
 23654  // API parameter values that are decorated as "sensitive" in the API will not
 23655  // be included in the string output. The member name will be present, but the
 23656  // value will be replaced with "sensitive".
 23657  func (s InvalidPullRequestStatusException) GoString() string {
 23658  	return s.String()
 23659  }
 23660  
 23661  func newErrorInvalidPullRequestStatusException(v protocol.ResponseMetadata) error {
 23662  	return &InvalidPullRequestStatusException{
 23663  		RespMetadata: v,
 23664  	}
 23665  }
 23666  
 23667  // Code returns the exception type name.
 23668  func (s *InvalidPullRequestStatusException) Code() string {
 23669  	return "InvalidPullRequestStatusException"
 23670  }
 23671  
 23672  // Message returns the exception's message.
 23673  func (s *InvalidPullRequestStatusException) Message() string {
 23674  	if s.Message_ != nil {
 23675  		return *s.Message_
 23676  	}
 23677  	return ""
 23678  }
 23679  
 23680  // OrigErr always returns nil, satisfies awserr.Error interface.
 23681  func (s *InvalidPullRequestStatusException) OrigErr() error {
 23682  	return nil
 23683  }
 23684  
 23685  func (s *InvalidPullRequestStatusException) Error() string {
 23686  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23687  }
 23688  
 23689  // Status code returns the HTTP status code for the request's response error.
 23690  func (s *InvalidPullRequestStatusException) StatusCode() int {
 23691  	return s.RespMetadata.StatusCode
 23692  }
 23693  
 23694  // RequestID returns the service's response RequestID for request.
 23695  func (s *InvalidPullRequestStatusException) RequestID() string {
 23696  	return s.RespMetadata.RequestID
 23697  }
 23698  
 23699  // The pull request status update is not valid. The only valid update is from
 23700  // OPEN to CLOSED.
 23701  type InvalidPullRequestStatusUpdateException struct {
 23702  	_            struct{}                  `type:"structure"`
 23703  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23704  
 23705  	Message_ *string `locationName:"message" type:"string"`
 23706  }
 23707  
 23708  // String returns the string representation.
 23709  //
 23710  // API parameter values that are decorated as "sensitive" in the API will not
 23711  // be included in the string output. The member name will be present, but the
 23712  // value will be replaced with "sensitive".
 23713  func (s InvalidPullRequestStatusUpdateException) String() string {
 23714  	return awsutil.Prettify(s)
 23715  }
 23716  
 23717  // GoString returns the string representation.
 23718  //
 23719  // API parameter values that are decorated as "sensitive" in the API will not
 23720  // be included in the string output. The member name will be present, but the
 23721  // value will be replaced with "sensitive".
 23722  func (s InvalidPullRequestStatusUpdateException) GoString() string {
 23723  	return s.String()
 23724  }
 23725  
 23726  func newErrorInvalidPullRequestStatusUpdateException(v protocol.ResponseMetadata) error {
 23727  	return &InvalidPullRequestStatusUpdateException{
 23728  		RespMetadata: v,
 23729  	}
 23730  }
 23731  
 23732  // Code returns the exception type name.
 23733  func (s *InvalidPullRequestStatusUpdateException) Code() string {
 23734  	return "InvalidPullRequestStatusUpdateException"
 23735  }
 23736  
 23737  // Message returns the exception's message.
 23738  func (s *InvalidPullRequestStatusUpdateException) Message() string {
 23739  	if s.Message_ != nil {
 23740  		return *s.Message_
 23741  	}
 23742  	return ""
 23743  }
 23744  
 23745  // OrigErr always returns nil, satisfies awserr.Error interface.
 23746  func (s *InvalidPullRequestStatusUpdateException) OrigErr() error {
 23747  	return nil
 23748  }
 23749  
 23750  func (s *InvalidPullRequestStatusUpdateException) Error() string {
 23751  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23752  }
 23753  
 23754  // Status code returns the HTTP status code for the request's response error.
 23755  func (s *InvalidPullRequestStatusUpdateException) StatusCode() int {
 23756  	return s.RespMetadata.StatusCode
 23757  }
 23758  
 23759  // RequestID returns the service's response RequestID for request.
 23760  func (s *InvalidPullRequestStatusUpdateException) RequestID() string {
 23761  	return s.RespMetadata.RequestID
 23762  }
 23763  
 23764  // The Amazon Resource Name (ARN) of the user or identity is not valid.
 23765  type InvalidReactionUserArnException struct {
 23766  	_            struct{}                  `type:"structure"`
 23767  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23768  
 23769  	Message_ *string `locationName:"message" type:"string"`
 23770  }
 23771  
 23772  // String returns the string representation.
 23773  //
 23774  // API parameter values that are decorated as "sensitive" in the API will not
 23775  // be included in the string output. The member name will be present, but the
 23776  // value will be replaced with "sensitive".
 23777  func (s InvalidReactionUserArnException) String() string {
 23778  	return awsutil.Prettify(s)
 23779  }
 23780  
 23781  // GoString returns the string representation.
 23782  //
 23783  // API parameter values that are decorated as "sensitive" in the API will not
 23784  // be included in the string output. The member name will be present, but the
 23785  // value will be replaced with "sensitive".
 23786  func (s InvalidReactionUserArnException) GoString() string {
 23787  	return s.String()
 23788  }
 23789  
 23790  func newErrorInvalidReactionUserArnException(v protocol.ResponseMetadata) error {
 23791  	return &InvalidReactionUserArnException{
 23792  		RespMetadata: v,
 23793  	}
 23794  }
 23795  
 23796  // Code returns the exception type name.
 23797  func (s *InvalidReactionUserArnException) Code() string {
 23798  	return "InvalidReactionUserArnException"
 23799  }
 23800  
 23801  // Message returns the exception's message.
 23802  func (s *InvalidReactionUserArnException) Message() string {
 23803  	if s.Message_ != nil {
 23804  		return *s.Message_
 23805  	}
 23806  	return ""
 23807  }
 23808  
 23809  // OrigErr always returns nil, satisfies awserr.Error interface.
 23810  func (s *InvalidReactionUserArnException) OrigErr() error {
 23811  	return nil
 23812  }
 23813  
 23814  func (s *InvalidReactionUserArnException) Error() string {
 23815  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23816  }
 23817  
 23818  // Status code returns the HTTP status code for the request's response error.
 23819  func (s *InvalidReactionUserArnException) StatusCode() int {
 23820  	return s.RespMetadata.StatusCode
 23821  }
 23822  
 23823  // RequestID returns the service's response RequestID for request.
 23824  func (s *InvalidReactionUserArnException) RequestID() string {
 23825  	return s.RespMetadata.RequestID
 23826  }
 23827  
 23828  // The value of the reaction is not valid. For more information, see the AWS
 23829  // CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html).
 23830  type InvalidReactionValueException struct {
 23831  	_            struct{}                  `type:"structure"`
 23832  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23833  
 23834  	Message_ *string `locationName:"message" type:"string"`
 23835  }
 23836  
 23837  // String returns the string representation.
 23838  //
 23839  // API parameter values that are decorated as "sensitive" in the API will not
 23840  // be included in the string output. The member name will be present, but the
 23841  // value will be replaced with "sensitive".
 23842  func (s InvalidReactionValueException) String() string {
 23843  	return awsutil.Prettify(s)
 23844  }
 23845  
 23846  // GoString returns the string representation.
 23847  //
 23848  // API parameter values that are decorated as "sensitive" in the API will not
 23849  // be included in the string output. The member name will be present, but the
 23850  // value will be replaced with "sensitive".
 23851  func (s InvalidReactionValueException) GoString() string {
 23852  	return s.String()
 23853  }
 23854  
 23855  func newErrorInvalidReactionValueException(v protocol.ResponseMetadata) error {
 23856  	return &InvalidReactionValueException{
 23857  		RespMetadata: v,
 23858  	}
 23859  }
 23860  
 23861  // Code returns the exception type name.
 23862  func (s *InvalidReactionValueException) Code() string {
 23863  	return "InvalidReactionValueException"
 23864  }
 23865  
 23866  // Message returns the exception's message.
 23867  func (s *InvalidReactionValueException) Message() string {
 23868  	if s.Message_ != nil {
 23869  		return *s.Message_
 23870  	}
 23871  	return ""
 23872  }
 23873  
 23874  // OrigErr always returns nil, satisfies awserr.Error interface.
 23875  func (s *InvalidReactionValueException) OrigErr() error {
 23876  	return nil
 23877  }
 23878  
 23879  func (s *InvalidReactionValueException) Error() string {
 23880  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23881  }
 23882  
 23883  // Status code returns the HTTP status code for the request's response error.
 23884  func (s *InvalidReactionValueException) StatusCode() int {
 23885  	return s.RespMetadata.StatusCode
 23886  }
 23887  
 23888  // RequestID returns the service's response RequestID for request.
 23889  func (s *InvalidReactionValueException) RequestID() string {
 23890  	return s.RespMetadata.RequestID
 23891  }
 23892  
 23893  // The specified reference name format is not valid. Reference names must conform
 23894  // to the Git references format (for example, refs/heads/master). For more information,
 23895  // see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References)
 23896  // or consult your Git documentation.
 23897  type InvalidReferenceNameException struct {
 23898  	_            struct{}                  `type:"structure"`
 23899  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23900  
 23901  	Message_ *string `locationName:"message" type:"string"`
 23902  }
 23903  
 23904  // String returns the string representation.
 23905  //
 23906  // API parameter values that are decorated as "sensitive" in the API will not
 23907  // be included in the string output. The member name will be present, but the
 23908  // value will be replaced with "sensitive".
 23909  func (s InvalidReferenceNameException) String() string {
 23910  	return awsutil.Prettify(s)
 23911  }
 23912  
 23913  // GoString returns the string representation.
 23914  //
 23915  // API parameter values that are decorated as "sensitive" in the API will not
 23916  // be included in the string output. The member name will be present, but the
 23917  // value will be replaced with "sensitive".
 23918  func (s InvalidReferenceNameException) GoString() string {
 23919  	return s.String()
 23920  }
 23921  
 23922  func newErrorInvalidReferenceNameException(v protocol.ResponseMetadata) error {
 23923  	return &InvalidReferenceNameException{
 23924  		RespMetadata: v,
 23925  	}
 23926  }
 23927  
 23928  // Code returns the exception type name.
 23929  func (s *InvalidReferenceNameException) Code() string {
 23930  	return "InvalidReferenceNameException"
 23931  }
 23932  
 23933  // Message returns the exception's message.
 23934  func (s *InvalidReferenceNameException) Message() string {
 23935  	if s.Message_ != nil {
 23936  		return *s.Message_
 23937  	}
 23938  	return ""
 23939  }
 23940  
 23941  // OrigErr always returns nil, satisfies awserr.Error interface.
 23942  func (s *InvalidReferenceNameException) OrigErr() error {
 23943  	return nil
 23944  }
 23945  
 23946  func (s *InvalidReferenceNameException) Error() string {
 23947  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 23948  }
 23949  
 23950  // Status code returns the HTTP status code for the request's response error.
 23951  func (s *InvalidReferenceNameException) StatusCode() int {
 23952  	return s.RespMetadata.StatusCode
 23953  }
 23954  
 23955  // RequestID returns the service's response RequestID for request.
 23956  func (s *InvalidReferenceNameException) RequestID() string {
 23957  	return s.RespMetadata.RequestID
 23958  }
 23959  
 23960  // Either the enum is not in a valid format, or the specified file version enum
 23961  // is not valid in respect to the current file version.
 23962  type InvalidRelativeFileVersionEnumException struct {
 23963  	_            struct{}                  `type:"structure"`
 23964  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 23965  
 23966  	Message_ *string `locationName:"message" type:"string"`
 23967  }
 23968  
 23969  // String returns the string representation.
 23970  //
 23971  // API parameter values that are decorated as "sensitive" in the API will not
 23972  // be included in the string output. The member name will be present, but the
 23973  // value will be replaced with "sensitive".
 23974  func (s InvalidRelativeFileVersionEnumException) String() string {
 23975  	return awsutil.Prettify(s)
 23976  }
 23977  
 23978  // GoString returns the string representation.
 23979  //
 23980  // API parameter values that are decorated as "sensitive" in the API will not
 23981  // be included in the string output. The member name will be present, but the
 23982  // value will be replaced with "sensitive".
 23983  func (s InvalidRelativeFileVersionEnumException) GoString() string {
 23984  	return s.String()
 23985  }
 23986  
 23987  func newErrorInvalidRelativeFileVersionEnumException(v protocol.ResponseMetadata) error {
 23988  	return &InvalidRelativeFileVersionEnumException{
 23989  		RespMetadata: v,
 23990  	}
 23991  }
 23992  
 23993  // Code returns the exception type name.
 23994  func (s *InvalidRelativeFileVersionEnumException) Code() string {
 23995  	return "InvalidRelativeFileVersionEnumException"
 23996  }
 23997  
 23998  // Message returns the exception's message.
 23999  func (s *InvalidRelativeFileVersionEnumException) Message() string {
 24000  	if s.Message_ != nil {
 24001  		return *s.Message_
 24002  	}
 24003  	return ""
 24004  }
 24005  
 24006  // OrigErr always returns nil, satisfies awserr.Error interface.
 24007  func (s *InvalidRelativeFileVersionEnumException) OrigErr() error {
 24008  	return nil
 24009  }
 24010  
 24011  func (s *InvalidRelativeFileVersionEnumException) Error() string {
 24012  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24013  }
 24014  
 24015  // Status code returns the HTTP status code for the request's response error.
 24016  func (s *InvalidRelativeFileVersionEnumException) StatusCode() int {
 24017  	return s.RespMetadata.StatusCode
 24018  }
 24019  
 24020  // RequestID returns the service's response RequestID for request.
 24021  func (s *InvalidRelativeFileVersionEnumException) RequestID() string {
 24022  	return s.RespMetadata.RequestID
 24023  }
 24024  
 24025  // Automerge was specified for resolving the conflict, but the replacement type
 24026  // is not valid or content is missing.
 24027  type InvalidReplacementContentException struct {
 24028  	_            struct{}                  `type:"structure"`
 24029  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24030  
 24031  	Message_ *string `locationName:"message" type:"string"`
 24032  }
 24033  
 24034  // String returns the string representation.
 24035  //
 24036  // API parameter values that are decorated as "sensitive" in the API will not
 24037  // be included in the string output. The member name will be present, but the
 24038  // value will be replaced with "sensitive".
 24039  func (s InvalidReplacementContentException) String() string {
 24040  	return awsutil.Prettify(s)
 24041  }
 24042  
 24043  // GoString returns the string representation.
 24044  //
 24045  // API parameter values that are decorated as "sensitive" in the API will not
 24046  // be included in the string output. The member name will be present, but the
 24047  // value will be replaced with "sensitive".
 24048  func (s InvalidReplacementContentException) GoString() string {
 24049  	return s.String()
 24050  }
 24051  
 24052  func newErrorInvalidReplacementContentException(v protocol.ResponseMetadata) error {
 24053  	return &InvalidReplacementContentException{
 24054  		RespMetadata: v,
 24055  	}
 24056  }
 24057  
 24058  // Code returns the exception type name.
 24059  func (s *InvalidReplacementContentException) Code() string {
 24060  	return "InvalidReplacementContentException"
 24061  }
 24062  
 24063  // Message returns the exception's message.
 24064  func (s *InvalidReplacementContentException) Message() string {
 24065  	if s.Message_ != nil {
 24066  		return *s.Message_
 24067  	}
 24068  	return ""
 24069  }
 24070  
 24071  // OrigErr always returns nil, satisfies awserr.Error interface.
 24072  func (s *InvalidReplacementContentException) OrigErr() error {
 24073  	return nil
 24074  }
 24075  
 24076  func (s *InvalidReplacementContentException) Error() string {
 24077  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24078  }
 24079  
 24080  // Status code returns the HTTP status code for the request's response error.
 24081  func (s *InvalidReplacementContentException) StatusCode() int {
 24082  	return s.RespMetadata.StatusCode
 24083  }
 24084  
 24085  // RequestID returns the service's response RequestID for request.
 24086  func (s *InvalidReplacementContentException) RequestID() string {
 24087  	return s.RespMetadata.RequestID
 24088  }
 24089  
 24090  // Automerge was specified for resolving the conflict, but the specified replacement
 24091  // type is not valid.
 24092  type InvalidReplacementTypeException struct {
 24093  	_            struct{}                  `type:"structure"`
 24094  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24095  
 24096  	Message_ *string `locationName:"message" type:"string"`
 24097  }
 24098  
 24099  // String returns the string representation.
 24100  //
 24101  // API parameter values that are decorated as "sensitive" in the API will not
 24102  // be included in the string output. The member name will be present, but the
 24103  // value will be replaced with "sensitive".
 24104  func (s InvalidReplacementTypeException) String() string {
 24105  	return awsutil.Prettify(s)
 24106  }
 24107  
 24108  // GoString returns the string representation.
 24109  //
 24110  // API parameter values that are decorated as "sensitive" in the API will not
 24111  // be included in the string output. The member name will be present, but the
 24112  // value will be replaced with "sensitive".
 24113  func (s InvalidReplacementTypeException) GoString() string {
 24114  	return s.String()
 24115  }
 24116  
 24117  func newErrorInvalidReplacementTypeException(v protocol.ResponseMetadata) error {
 24118  	return &InvalidReplacementTypeException{
 24119  		RespMetadata: v,
 24120  	}
 24121  }
 24122  
 24123  // Code returns the exception type name.
 24124  func (s *InvalidReplacementTypeException) Code() string {
 24125  	return "InvalidReplacementTypeException"
 24126  }
 24127  
 24128  // Message returns the exception's message.
 24129  func (s *InvalidReplacementTypeException) Message() string {
 24130  	if s.Message_ != nil {
 24131  		return *s.Message_
 24132  	}
 24133  	return ""
 24134  }
 24135  
 24136  // OrigErr always returns nil, satisfies awserr.Error interface.
 24137  func (s *InvalidReplacementTypeException) OrigErr() error {
 24138  	return nil
 24139  }
 24140  
 24141  func (s *InvalidReplacementTypeException) Error() string {
 24142  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24143  }
 24144  
 24145  // Status code returns the HTTP status code for the request's response error.
 24146  func (s *InvalidReplacementTypeException) StatusCode() int {
 24147  	return s.RespMetadata.StatusCode
 24148  }
 24149  
 24150  // RequestID returns the service's response RequestID for request.
 24151  func (s *InvalidReplacementTypeException) RequestID() string {
 24152  	return s.RespMetadata.RequestID
 24153  }
 24154  
 24155  // The specified repository description is not valid.
 24156  type InvalidRepositoryDescriptionException struct {
 24157  	_            struct{}                  `type:"structure"`
 24158  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24159  
 24160  	Message_ *string `locationName:"message" type:"string"`
 24161  }
 24162  
 24163  // String returns the string representation.
 24164  //
 24165  // API parameter values that are decorated as "sensitive" in the API will not
 24166  // be included in the string output. The member name will be present, but the
 24167  // value will be replaced with "sensitive".
 24168  func (s InvalidRepositoryDescriptionException) String() string {
 24169  	return awsutil.Prettify(s)
 24170  }
 24171  
 24172  // GoString returns the string representation.
 24173  //
 24174  // API parameter values that are decorated as "sensitive" in the API will not
 24175  // be included in the string output. The member name will be present, but the
 24176  // value will be replaced with "sensitive".
 24177  func (s InvalidRepositoryDescriptionException) GoString() string {
 24178  	return s.String()
 24179  }
 24180  
 24181  func newErrorInvalidRepositoryDescriptionException(v protocol.ResponseMetadata) error {
 24182  	return &InvalidRepositoryDescriptionException{
 24183  		RespMetadata: v,
 24184  	}
 24185  }
 24186  
 24187  // Code returns the exception type name.
 24188  func (s *InvalidRepositoryDescriptionException) Code() string {
 24189  	return "InvalidRepositoryDescriptionException"
 24190  }
 24191  
 24192  // Message returns the exception's message.
 24193  func (s *InvalidRepositoryDescriptionException) Message() string {
 24194  	if s.Message_ != nil {
 24195  		return *s.Message_
 24196  	}
 24197  	return ""
 24198  }
 24199  
 24200  // OrigErr always returns nil, satisfies awserr.Error interface.
 24201  func (s *InvalidRepositoryDescriptionException) OrigErr() error {
 24202  	return nil
 24203  }
 24204  
 24205  func (s *InvalidRepositoryDescriptionException) Error() string {
 24206  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24207  }
 24208  
 24209  // Status code returns the HTTP status code for the request's response error.
 24210  func (s *InvalidRepositoryDescriptionException) StatusCode() int {
 24211  	return s.RespMetadata.StatusCode
 24212  }
 24213  
 24214  // RequestID returns the service's response RequestID for request.
 24215  func (s *InvalidRepositoryDescriptionException) RequestID() string {
 24216  	return s.RespMetadata.RequestID
 24217  }
 24218  
 24219  // A specified repository name is not valid.
 24220  //
 24221  // This exception occurs only when a specified repository name is not valid.
 24222  // Other exceptions occur when a required repository parameter is missing, or
 24223  // when a specified repository does not exist.
 24224  type InvalidRepositoryNameException struct {
 24225  	_            struct{}                  `type:"structure"`
 24226  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24227  
 24228  	Message_ *string `locationName:"message" type:"string"`
 24229  }
 24230  
 24231  // String returns the string representation.
 24232  //
 24233  // API parameter values that are decorated as "sensitive" in the API will not
 24234  // be included in the string output. The member name will be present, but the
 24235  // value will be replaced with "sensitive".
 24236  func (s InvalidRepositoryNameException) String() string {
 24237  	return awsutil.Prettify(s)
 24238  }
 24239  
 24240  // GoString returns the string representation.
 24241  //
 24242  // API parameter values that are decorated as "sensitive" in the API will not
 24243  // be included in the string output. The member name will be present, but the
 24244  // value will be replaced with "sensitive".
 24245  func (s InvalidRepositoryNameException) GoString() string {
 24246  	return s.String()
 24247  }
 24248  
 24249  func newErrorInvalidRepositoryNameException(v protocol.ResponseMetadata) error {
 24250  	return &InvalidRepositoryNameException{
 24251  		RespMetadata: v,
 24252  	}
 24253  }
 24254  
 24255  // Code returns the exception type name.
 24256  func (s *InvalidRepositoryNameException) Code() string {
 24257  	return "InvalidRepositoryNameException"
 24258  }
 24259  
 24260  // Message returns the exception's message.
 24261  func (s *InvalidRepositoryNameException) Message() string {
 24262  	if s.Message_ != nil {
 24263  		return *s.Message_
 24264  	}
 24265  	return ""
 24266  }
 24267  
 24268  // OrigErr always returns nil, satisfies awserr.Error interface.
 24269  func (s *InvalidRepositoryNameException) OrigErr() error {
 24270  	return nil
 24271  }
 24272  
 24273  func (s *InvalidRepositoryNameException) Error() string {
 24274  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24275  }
 24276  
 24277  // Status code returns the HTTP status code for the request's response error.
 24278  func (s *InvalidRepositoryNameException) StatusCode() int {
 24279  	return s.RespMetadata.StatusCode
 24280  }
 24281  
 24282  // RequestID returns the service's response RequestID for request.
 24283  func (s *InvalidRepositoryNameException) RequestID() string {
 24284  	return s.RespMetadata.RequestID
 24285  }
 24286  
 24287  // One or more branch names specified for the trigger is not valid.
 24288  type InvalidRepositoryTriggerBranchNameException struct {
 24289  	_            struct{}                  `type:"structure"`
 24290  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24291  
 24292  	Message_ *string `locationName:"message" type:"string"`
 24293  }
 24294  
 24295  // String returns the string representation.
 24296  //
 24297  // API parameter values that are decorated as "sensitive" in the API will not
 24298  // be included in the string output. The member name will be present, but the
 24299  // value will be replaced with "sensitive".
 24300  func (s InvalidRepositoryTriggerBranchNameException) String() string {
 24301  	return awsutil.Prettify(s)
 24302  }
 24303  
 24304  // GoString returns the string representation.
 24305  //
 24306  // API parameter values that are decorated as "sensitive" in the API will not
 24307  // be included in the string output. The member name will be present, but the
 24308  // value will be replaced with "sensitive".
 24309  func (s InvalidRepositoryTriggerBranchNameException) GoString() string {
 24310  	return s.String()
 24311  }
 24312  
 24313  func newErrorInvalidRepositoryTriggerBranchNameException(v protocol.ResponseMetadata) error {
 24314  	return &InvalidRepositoryTriggerBranchNameException{
 24315  		RespMetadata: v,
 24316  	}
 24317  }
 24318  
 24319  // Code returns the exception type name.
 24320  func (s *InvalidRepositoryTriggerBranchNameException) Code() string {
 24321  	return "InvalidRepositoryTriggerBranchNameException"
 24322  }
 24323  
 24324  // Message returns the exception's message.
 24325  func (s *InvalidRepositoryTriggerBranchNameException) Message() string {
 24326  	if s.Message_ != nil {
 24327  		return *s.Message_
 24328  	}
 24329  	return ""
 24330  }
 24331  
 24332  // OrigErr always returns nil, satisfies awserr.Error interface.
 24333  func (s *InvalidRepositoryTriggerBranchNameException) OrigErr() error {
 24334  	return nil
 24335  }
 24336  
 24337  func (s *InvalidRepositoryTriggerBranchNameException) Error() string {
 24338  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24339  }
 24340  
 24341  // Status code returns the HTTP status code for the request's response error.
 24342  func (s *InvalidRepositoryTriggerBranchNameException) StatusCode() int {
 24343  	return s.RespMetadata.StatusCode
 24344  }
 24345  
 24346  // RequestID returns the service's response RequestID for request.
 24347  func (s *InvalidRepositoryTriggerBranchNameException) RequestID() string {
 24348  	return s.RespMetadata.RequestID
 24349  }
 24350  
 24351  // The custom data provided for the trigger is not valid.
 24352  type InvalidRepositoryTriggerCustomDataException struct {
 24353  	_            struct{}                  `type:"structure"`
 24354  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24355  
 24356  	Message_ *string `locationName:"message" type:"string"`
 24357  }
 24358  
 24359  // String returns the string representation.
 24360  //
 24361  // API parameter values that are decorated as "sensitive" in the API will not
 24362  // be included in the string output. The member name will be present, but the
 24363  // value will be replaced with "sensitive".
 24364  func (s InvalidRepositoryTriggerCustomDataException) String() string {
 24365  	return awsutil.Prettify(s)
 24366  }
 24367  
 24368  // GoString returns the string representation.
 24369  //
 24370  // API parameter values that are decorated as "sensitive" in the API will not
 24371  // be included in the string output. The member name will be present, but the
 24372  // value will be replaced with "sensitive".
 24373  func (s InvalidRepositoryTriggerCustomDataException) GoString() string {
 24374  	return s.String()
 24375  }
 24376  
 24377  func newErrorInvalidRepositoryTriggerCustomDataException(v protocol.ResponseMetadata) error {
 24378  	return &InvalidRepositoryTriggerCustomDataException{
 24379  		RespMetadata: v,
 24380  	}
 24381  }
 24382  
 24383  // Code returns the exception type name.
 24384  func (s *InvalidRepositoryTriggerCustomDataException) Code() string {
 24385  	return "InvalidRepositoryTriggerCustomDataException"
 24386  }
 24387  
 24388  // Message returns the exception's message.
 24389  func (s *InvalidRepositoryTriggerCustomDataException) Message() string {
 24390  	if s.Message_ != nil {
 24391  		return *s.Message_
 24392  	}
 24393  	return ""
 24394  }
 24395  
 24396  // OrigErr always returns nil, satisfies awserr.Error interface.
 24397  func (s *InvalidRepositoryTriggerCustomDataException) OrigErr() error {
 24398  	return nil
 24399  }
 24400  
 24401  func (s *InvalidRepositoryTriggerCustomDataException) Error() string {
 24402  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24403  }
 24404  
 24405  // Status code returns the HTTP status code for the request's response error.
 24406  func (s *InvalidRepositoryTriggerCustomDataException) StatusCode() int {
 24407  	return s.RespMetadata.StatusCode
 24408  }
 24409  
 24410  // RequestID returns the service's response RequestID for request.
 24411  func (s *InvalidRepositoryTriggerCustomDataException) RequestID() string {
 24412  	return s.RespMetadata.RequestID
 24413  }
 24414  
 24415  // The Amazon Resource Name (ARN) for the trigger is not valid for the specified
 24416  // destination. The most common reason for this error is that the ARN does not
 24417  // meet the requirements for the service type.
 24418  type InvalidRepositoryTriggerDestinationArnException struct {
 24419  	_            struct{}                  `type:"structure"`
 24420  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24421  
 24422  	Message_ *string `locationName:"message" type:"string"`
 24423  }
 24424  
 24425  // String returns the string representation.
 24426  //
 24427  // API parameter values that are decorated as "sensitive" in the API will not
 24428  // be included in the string output. The member name will be present, but the
 24429  // value will be replaced with "sensitive".
 24430  func (s InvalidRepositoryTriggerDestinationArnException) String() string {
 24431  	return awsutil.Prettify(s)
 24432  }
 24433  
 24434  // GoString returns the string representation.
 24435  //
 24436  // API parameter values that are decorated as "sensitive" in the API will not
 24437  // be included in the string output. The member name will be present, but the
 24438  // value will be replaced with "sensitive".
 24439  func (s InvalidRepositoryTriggerDestinationArnException) GoString() string {
 24440  	return s.String()
 24441  }
 24442  
 24443  func newErrorInvalidRepositoryTriggerDestinationArnException(v protocol.ResponseMetadata) error {
 24444  	return &InvalidRepositoryTriggerDestinationArnException{
 24445  		RespMetadata: v,
 24446  	}
 24447  }
 24448  
 24449  // Code returns the exception type name.
 24450  func (s *InvalidRepositoryTriggerDestinationArnException) Code() string {
 24451  	return "InvalidRepositoryTriggerDestinationArnException"
 24452  }
 24453  
 24454  // Message returns the exception's message.
 24455  func (s *InvalidRepositoryTriggerDestinationArnException) Message() string {
 24456  	if s.Message_ != nil {
 24457  		return *s.Message_
 24458  	}
 24459  	return ""
 24460  }
 24461  
 24462  // OrigErr always returns nil, satisfies awserr.Error interface.
 24463  func (s *InvalidRepositoryTriggerDestinationArnException) OrigErr() error {
 24464  	return nil
 24465  }
 24466  
 24467  func (s *InvalidRepositoryTriggerDestinationArnException) Error() string {
 24468  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24469  }
 24470  
 24471  // Status code returns the HTTP status code for the request's response error.
 24472  func (s *InvalidRepositoryTriggerDestinationArnException) StatusCode() int {
 24473  	return s.RespMetadata.StatusCode
 24474  }
 24475  
 24476  // RequestID returns the service's response RequestID for request.
 24477  func (s *InvalidRepositoryTriggerDestinationArnException) RequestID() string {
 24478  	return s.RespMetadata.RequestID
 24479  }
 24480  
 24481  // One or more events specified for the trigger is not valid. Check to make
 24482  // sure that all events specified match the requirements for allowed events.
 24483  type InvalidRepositoryTriggerEventsException struct {
 24484  	_            struct{}                  `type:"structure"`
 24485  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24486  
 24487  	Message_ *string `locationName:"message" type:"string"`
 24488  }
 24489  
 24490  // String returns the string representation.
 24491  //
 24492  // API parameter values that are decorated as "sensitive" in the API will not
 24493  // be included in the string output. The member name will be present, but the
 24494  // value will be replaced with "sensitive".
 24495  func (s InvalidRepositoryTriggerEventsException) String() string {
 24496  	return awsutil.Prettify(s)
 24497  }
 24498  
 24499  // GoString returns the string representation.
 24500  //
 24501  // API parameter values that are decorated as "sensitive" in the API will not
 24502  // be included in the string output. The member name will be present, but the
 24503  // value will be replaced with "sensitive".
 24504  func (s InvalidRepositoryTriggerEventsException) GoString() string {
 24505  	return s.String()
 24506  }
 24507  
 24508  func newErrorInvalidRepositoryTriggerEventsException(v protocol.ResponseMetadata) error {
 24509  	return &InvalidRepositoryTriggerEventsException{
 24510  		RespMetadata: v,
 24511  	}
 24512  }
 24513  
 24514  // Code returns the exception type name.
 24515  func (s *InvalidRepositoryTriggerEventsException) Code() string {
 24516  	return "InvalidRepositoryTriggerEventsException"
 24517  }
 24518  
 24519  // Message returns the exception's message.
 24520  func (s *InvalidRepositoryTriggerEventsException) Message() string {
 24521  	if s.Message_ != nil {
 24522  		return *s.Message_
 24523  	}
 24524  	return ""
 24525  }
 24526  
 24527  // OrigErr always returns nil, satisfies awserr.Error interface.
 24528  func (s *InvalidRepositoryTriggerEventsException) OrigErr() error {
 24529  	return nil
 24530  }
 24531  
 24532  func (s *InvalidRepositoryTriggerEventsException) Error() string {
 24533  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24534  }
 24535  
 24536  // Status code returns the HTTP status code for the request's response error.
 24537  func (s *InvalidRepositoryTriggerEventsException) StatusCode() int {
 24538  	return s.RespMetadata.StatusCode
 24539  }
 24540  
 24541  // RequestID returns the service's response RequestID for request.
 24542  func (s *InvalidRepositoryTriggerEventsException) RequestID() string {
 24543  	return s.RespMetadata.RequestID
 24544  }
 24545  
 24546  // The name of the trigger is not valid.
 24547  type InvalidRepositoryTriggerNameException struct {
 24548  	_            struct{}                  `type:"structure"`
 24549  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24550  
 24551  	Message_ *string `locationName:"message" type:"string"`
 24552  }
 24553  
 24554  // String returns the string representation.
 24555  //
 24556  // API parameter values that are decorated as "sensitive" in the API will not
 24557  // be included in the string output. The member name will be present, but the
 24558  // value will be replaced with "sensitive".
 24559  func (s InvalidRepositoryTriggerNameException) String() string {
 24560  	return awsutil.Prettify(s)
 24561  }
 24562  
 24563  // GoString returns the string representation.
 24564  //
 24565  // API parameter values that are decorated as "sensitive" in the API will not
 24566  // be included in the string output. The member name will be present, but the
 24567  // value will be replaced with "sensitive".
 24568  func (s InvalidRepositoryTriggerNameException) GoString() string {
 24569  	return s.String()
 24570  }
 24571  
 24572  func newErrorInvalidRepositoryTriggerNameException(v protocol.ResponseMetadata) error {
 24573  	return &InvalidRepositoryTriggerNameException{
 24574  		RespMetadata: v,
 24575  	}
 24576  }
 24577  
 24578  // Code returns the exception type name.
 24579  func (s *InvalidRepositoryTriggerNameException) Code() string {
 24580  	return "InvalidRepositoryTriggerNameException"
 24581  }
 24582  
 24583  // Message returns the exception's message.
 24584  func (s *InvalidRepositoryTriggerNameException) Message() string {
 24585  	if s.Message_ != nil {
 24586  		return *s.Message_
 24587  	}
 24588  	return ""
 24589  }
 24590  
 24591  // OrigErr always returns nil, satisfies awserr.Error interface.
 24592  func (s *InvalidRepositoryTriggerNameException) OrigErr() error {
 24593  	return nil
 24594  }
 24595  
 24596  func (s *InvalidRepositoryTriggerNameException) Error() string {
 24597  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24598  }
 24599  
 24600  // Status code returns the HTTP status code for the request's response error.
 24601  func (s *InvalidRepositoryTriggerNameException) StatusCode() int {
 24602  	return s.RespMetadata.StatusCode
 24603  }
 24604  
 24605  // RequestID returns the service's response RequestID for request.
 24606  func (s *InvalidRepositoryTriggerNameException) RequestID() string {
 24607  	return s.RespMetadata.RequestID
 24608  }
 24609  
 24610  // The AWS Region for the trigger target does not match the AWS Region for the
 24611  // repository. Triggers must be created in the same Region as the target for
 24612  // the trigger.
 24613  type InvalidRepositoryTriggerRegionException struct {
 24614  	_            struct{}                  `type:"structure"`
 24615  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24616  
 24617  	Message_ *string `locationName:"message" type:"string"`
 24618  }
 24619  
 24620  // String returns the string representation.
 24621  //
 24622  // API parameter values that are decorated as "sensitive" in the API will not
 24623  // be included in the string output. The member name will be present, but the
 24624  // value will be replaced with "sensitive".
 24625  func (s InvalidRepositoryTriggerRegionException) String() string {
 24626  	return awsutil.Prettify(s)
 24627  }
 24628  
 24629  // GoString returns the string representation.
 24630  //
 24631  // API parameter values that are decorated as "sensitive" in the API will not
 24632  // be included in the string output. The member name will be present, but the
 24633  // value will be replaced with "sensitive".
 24634  func (s InvalidRepositoryTriggerRegionException) GoString() string {
 24635  	return s.String()
 24636  }
 24637  
 24638  func newErrorInvalidRepositoryTriggerRegionException(v protocol.ResponseMetadata) error {
 24639  	return &InvalidRepositoryTriggerRegionException{
 24640  		RespMetadata: v,
 24641  	}
 24642  }
 24643  
 24644  // Code returns the exception type name.
 24645  func (s *InvalidRepositoryTriggerRegionException) Code() string {
 24646  	return "InvalidRepositoryTriggerRegionException"
 24647  }
 24648  
 24649  // Message returns the exception's message.
 24650  func (s *InvalidRepositoryTriggerRegionException) Message() string {
 24651  	if s.Message_ != nil {
 24652  		return *s.Message_
 24653  	}
 24654  	return ""
 24655  }
 24656  
 24657  // OrigErr always returns nil, satisfies awserr.Error interface.
 24658  func (s *InvalidRepositoryTriggerRegionException) OrigErr() error {
 24659  	return nil
 24660  }
 24661  
 24662  func (s *InvalidRepositoryTriggerRegionException) Error() string {
 24663  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24664  }
 24665  
 24666  // Status code returns the HTTP status code for the request's response error.
 24667  func (s *InvalidRepositoryTriggerRegionException) StatusCode() int {
 24668  	return s.RespMetadata.StatusCode
 24669  }
 24670  
 24671  // RequestID returns the service's response RequestID for request.
 24672  func (s *InvalidRepositoryTriggerRegionException) RequestID() string {
 24673  	return s.RespMetadata.RequestID
 24674  }
 24675  
 24676  // The value for the resource ARN is not valid. For more information about resources
 24677  // in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
 24678  // in the AWS CodeCommit User Guide.
 24679  type InvalidResourceArnException struct {
 24680  	_            struct{}                  `type:"structure"`
 24681  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24682  
 24683  	Message_ *string `locationName:"message" type:"string"`
 24684  }
 24685  
 24686  // String returns the string representation.
 24687  //
 24688  // API parameter values that are decorated as "sensitive" in the API will not
 24689  // be included in the string output. The member name will be present, but the
 24690  // value will be replaced with "sensitive".
 24691  func (s InvalidResourceArnException) String() string {
 24692  	return awsutil.Prettify(s)
 24693  }
 24694  
 24695  // GoString returns the string representation.
 24696  //
 24697  // API parameter values that are decorated as "sensitive" in the API will not
 24698  // be included in the string output. The member name will be present, but the
 24699  // value will be replaced with "sensitive".
 24700  func (s InvalidResourceArnException) GoString() string {
 24701  	return s.String()
 24702  }
 24703  
 24704  func newErrorInvalidResourceArnException(v protocol.ResponseMetadata) error {
 24705  	return &InvalidResourceArnException{
 24706  		RespMetadata: v,
 24707  	}
 24708  }
 24709  
 24710  // Code returns the exception type name.
 24711  func (s *InvalidResourceArnException) Code() string {
 24712  	return "InvalidResourceArnException"
 24713  }
 24714  
 24715  // Message returns the exception's message.
 24716  func (s *InvalidResourceArnException) Message() string {
 24717  	if s.Message_ != nil {
 24718  		return *s.Message_
 24719  	}
 24720  	return ""
 24721  }
 24722  
 24723  // OrigErr always returns nil, satisfies awserr.Error interface.
 24724  func (s *InvalidResourceArnException) OrigErr() error {
 24725  	return nil
 24726  }
 24727  
 24728  func (s *InvalidResourceArnException) Error() string {
 24729  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24730  }
 24731  
 24732  // Status code returns the HTTP status code for the request's response error.
 24733  func (s *InvalidResourceArnException) StatusCode() int {
 24734  	return s.RespMetadata.StatusCode
 24735  }
 24736  
 24737  // RequestID returns the service's response RequestID for request.
 24738  func (s *InvalidResourceArnException) RequestID() string {
 24739  	return s.RespMetadata.RequestID
 24740  }
 24741  
 24742  // The revision ID is not valid. Use GetPullRequest to determine the value.
 24743  type InvalidRevisionIdException struct {
 24744  	_            struct{}                  `type:"structure"`
 24745  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24746  
 24747  	Message_ *string `locationName:"message" type:"string"`
 24748  }
 24749  
 24750  // String returns the string representation.
 24751  //
 24752  // API parameter values that are decorated as "sensitive" in the API will not
 24753  // be included in the string output. The member name will be present, but the
 24754  // value will be replaced with "sensitive".
 24755  func (s InvalidRevisionIdException) String() string {
 24756  	return awsutil.Prettify(s)
 24757  }
 24758  
 24759  // GoString returns the string representation.
 24760  //
 24761  // API parameter values that are decorated as "sensitive" in the API will not
 24762  // be included in the string output. The member name will be present, but the
 24763  // value will be replaced with "sensitive".
 24764  func (s InvalidRevisionIdException) GoString() string {
 24765  	return s.String()
 24766  }
 24767  
 24768  func newErrorInvalidRevisionIdException(v protocol.ResponseMetadata) error {
 24769  	return &InvalidRevisionIdException{
 24770  		RespMetadata: v,
 24771  	}
 24772  }
 24773  
 24774  // Code returns the exception type name.
 24775  func (s *InvalidRevisionIdException) Code() string {
 24776  	return "InvalidRevisionIdException"
 24777  }
 24778  
 24779  // Message returns the exception's message.
 24780  func (s *InvalidRevisionIdException) Message() string {
 24781  	if s.Message_ != nil {
 24782  		return *s.Message_
 24783  	}
 24784  	return ""
 24785  }
 24786  
 24787  // OrigErr always returns nil, satisfies awserr.Error interface.
 24788  func (s *InvalidRevisionIdException) OrigErr() error {
 24789  	return nil
 24790  }
 24791  
 24792  func (s *InvalidRevisionIdException) Error() string {
 24793  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24794  }
 24795  
 24796  // Status code returns the HTTP status code for the request's response error.
 24797  func (s *InvalidRevisionIdException) StatusCode() int {
 24798  	return s.RespMetadata.StatusCode
 24799  }
 24800  
 24801  // RequestID returns the service's response RequestID for request.
 24802  func (s *InvalidRevisionIdException) RequestID() string {
 24803  	return s.RespMetadata.RequestID
 24804  }
 24805  
 24806  // The SHA-256 hash signature for the rule content is not valid.
 24807  type InvalidRuleContentSha256Exception struct {
 24808  	_            struct{}                  `type:"structure"`
 24809  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24810  
 24811  	Message_ *string `locationName:"message" type:"string"`
 24812  }
 24813  
 24814  // String returns the string representation.
 24815  //
 24816  // API parameter values that are decorated as "sensitive" in the API will not
 24817  // be included in the string output. The member name will be present, but the
 24818  // value will be replaced with "sensitive".
 24819  func (s InvalidRuleContentSha256Exception) String() string {
 24820  	return awsutil.Prettify(s)
 24821  }
 24822  
 24823  // GoString returns the string representation.
 24824  //
 24825  // API parameter values that are decorated as "sensitive" in the API will not
 24826  // be included in the string output. The member name will be present, but the
 24827  // value will be replaced with "sensitive".
 24828  func (s InvalidRuleContentSha256Exception) GoString() string {
 24829  	return s.String()
 24830  }
 24831  
 24832  func newErrorInvalidRuleContentSha256Exception(v protocol.ResponseMetadata) error {
 24833  	return &InvalidRuleContentSha256Exception{
 24834  		RespMetadata: v,
 24835  	}
 24836  }
 24837  
 24838  // Code returns the exception type name.
 24839  func (s *InvalidRuleContentSha256Exception) Code() string {
 24840  	return "InvalidRuleContentSha256Exception"
 24841  }
 24842  
 24843  // Message returns the exception's message.
 24844  func (s *InvalidRuleContentSha256Exception) Message() string {
 24845  	if s.Message_ != nil {
 24846  		return *s.Message_
 24847  	}
 24848  	return ""
 24849  }
 24850  
 24851  // OrigErr always returns nil, satisfies awserr.Error interface.
 24852  func (s *InvalidRuleContentSha256Exception) OrigErr() error {
 24853  	return nil
 24854  }
 24855  
 24856  func (s *InvalidRuleContentSha256Exception) Error() string {
 24857  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24858  }
 24859  
 24860  // Status code returns the HTTP status code for the request's response error.
 24861  func (s *InvalidRuleContentSha256Exception) StatusCode() int {
 24862  	return s.RespMetadata.StatusCode
 24863  }
 24864  
 24865  // RequestID returns the service's response RequestID for request.
 24866  func (s *InvalidRuleContentSha256Exception) RequestID() string {
 24867  	return s.RespMetadata.RequestID
 24868  }
 24869  
 24870  // The specified sort by value is not valid.
 24871  type InvalidSortByException struct {
 24872  	_            struct{}                  `type:"structure"`
 24873  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24874  
 24875  	Message_ *string `locationName:"message" type:"string"`
 24876  }
 24877  
 24878  // String returns the string representation.
 24879  //
 24880  // API parameter values that are decorated as "sensitive" in the API will not
 24881  // be included in the string output. The member name will be present, but the
 24882  // value will be replaced with "sensitive".
 24883  func (s InvalidSortByException) String() string {
 24884  	return awsutil.Prettify(s)
 24885  }
 24886  
 24887  // GoString returns the string representation.
 24888  //
 24889  // API parameter values that are decorated as "sensitive" in the API will not
 24890  // be included in the string output. The member name will be present, but the
 24891  // value will be replaced with "sensitive".
 24892  func (s InvalidSortByException) GoString() string {
 24893  	return s.String()
 24894  }
 24895  
 24896  func newErrorInvalidSortByException(v protocol.ResponseMetadata) error {
 24897  	return &InvalidSortByException{
 24898  		RespMetadata: v,
 24899  	}
 24900  }
 24901  
 24902  // Code returns the exception type name.
 24903  func (s *InvalidSortByException) Code() string {
 24904  	return "InvalidSortByException"
 24905  }
 24906  
 24907  // Message returns the exception's message.
 24908  func (s *InvalidSortByException) Message() string {
 24909  	if s.Message_ != nil {
 24910  		return *s.Message_
 24911  	}
 24912  	return ""
 24913  }
 24914  
 24915  // OrigErr always returns nil, satisfies awserr.Error interface.
 24916  func (s *InvalidSortByException) OrigErr() error {
 24917  	return nil
 24918  }
 24919  
 24920  func (s *InvalidSortByException) Error() string {
 24921  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24922  }
 24923  
 24924  // Status code returns the HTTP status code for the request's response error.
 24925  func (s *InvalidSortByException) StatusCode() int {
 24926  	return s.RespMetadata.StatusCode
 24927  }
 24928  
 24929  // RequestID returns the service's response RequestID for request.
 24930  func (s *InvalidSortByException) RequestID() string {
 24931  	return s.RespMetadata.RequestID
 24932  }
 24933  
 24934  // The source commit specifier is not valid. You must provide a valid branch
 24935  // name, tag, or full commit ID.
 24936  type InvalidSourceCommitSpecifierException struct {
 24937  	_            struct{}                  `type:"structure"`
 24938  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 24939  
 24940  	Message_ *string `locationName:"message" type:"string"`
 24941  }
 24942  
 24943  // String returns the string representation.
 24944  //
 24945  // API parameter values that are decorated as "sensitive" in the API will not
 24946  // be included in the string output. The member name will be present, but the
 24947  // value will be replaced with "sensitive".
 24948  func (s InvalidSourceCommitSpecifierException) String() string {
 24949  	return awsutil.Prettify(s)
 24950  }
 24951  
 24952  // GoString returns the string representation.
 24953  //
 24954  // API parameter values that are decorated as "sensitive" in the API will not
 24955  // be included in the string output. The member name will be present, but the
 24956  // value will be replaced with "sensitive".
 24957  func (s InvalidSourceCommitSpecifierException) GoString() string {
 24958  	return s.String()
 24959  }
 24960  
 24961  func newErrorInvalidSourceCommitSpecifierException(v protocol.ResponseMetadata) error {
 24962  	return &InvalidSourceCommitSpecifierException{
 24963  		RespMetadata: v,
 24964  	}
 24965  }
 24966  
 24967  // Code returns the exception type name.
 24968  func (s *InvalidSourceCommitSpecifierException) Code() string {
 24969  	return "InvalidSourceCommitSpecifierException"
 24970  }
 24971  
 24972  // Message returns the exception's message.
 24973  func (s *InvalidSourceCommitSpecifierException) Message() string {
 24974  	if s.Message_ != nil {
 24975  		return *s.Message_
 24976  	}
 24977  	return ""
 24978  }
 24979  
 24980  // OrigErr always returns nil, satisfies awserr.Error interface.
 24981  func (s *InvalidSourceCommitSpecifierException) OrigErr() error {
 24982  	return nil
 24983  }
 24984  
 24985  func (s *InvalidSourceCommitSpecifierException) Error() string {
 24986  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 24987  }
 24988  
 24989  // Status code returns the HTTP status code for the request's response error.
 24990  func (s *InvalidSourceCommitSpecifierException) StatusCode() int {
 24991  	return s.RespMetadata.StatusCode
 24992  }
 24993  
 24994  // RequestID returns the service's response RequestID for request.
 24995  func (s *InvalidSourceCommitSpecifierException) RequestID() string {
 24996  	return s.RespMetadata.RequestID
 24997  }
 24998  
 24999  // The specified tag is not valid. Key names cannot be prefixed with aws:.
 25000  type InvalidSystemTagUsageException struct {
 25001  	_            struct{}                  `type:"structure"`
 25002  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25003  
 25004  	Message_ *string `locationName:"message" type:"string"`
 25005  }
 25006  
 25007  // String returns the string representation.
 25008  //
 25009  // API parameter values that are decorated as "sensitive" in the API will not
 25010  // be included in the string output. The member name will be present, but the
 25011  // value will be replaced with "sensitive".
 25012  func (s InvalidSystemTagUsageException) String() string {
 25013  	return awsutil.Prettify(s)
 25014  }
 25015  
 25016  // GoString returns the string representation.
 25017  //
 25018  // API parameter values that are decorated as "sensitive" in the API will not
 25019  // be included in the string output. The member name will be present, but the
 25020  // value will be replaced with "sensitive".
 25021  func (s InvalidSystemTagUsageException) GoString() string {
 25022  	return s.String()
 25023  }
 25024  
 25025  func newErrorInvalidSystemTagUsageException(v protocol.ResponseMetadata) error {
 25026  	return &InvalidSystemTagUsageException{
 25027  		RespMetadata: v,
 25028  	}
 25029  }
 25030  
 25031  // Code returns the exception type name.
 25032  func (s *InvalidSystemTagUsageException) Code() string {
 25033  	return "InvalidSystemTagUsageException"
 25034  }
 25035  
 25036  // Message returns the exception's message.
 25037  func (s *InvalidSystemTagUsageException) Message() string {
 25038  	if s.Message_ != nil {
 25039  		return *s.Message_
 25040  	}
 25041  	return ""
 25042  }
 25043  
 25044  // OrigErr always returns nil, satisfies awserr.Error interface.
 25045  func (s *InvalidSystemTagUsageException) OrigErr() error {
 25046  	return nil
 25047  }
 25048  
 25049  func (s *InvalidSystemTagUsageException) Error() string {
 25050  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25051  }
 25052  
 25053  // Status code returns the HTTP status code for the request's response error.
 25054  func (s *InvalidSystemTagUsageException) StatusCode() int {
 25055  	return s.RespMetadata.StatusCode
 25056  }
 25057  
 25058  // RequestID returns the service's response RequestID for request.
 25059  func (s *InvalidSystemTagUsageException) RequestID() string {
 25060  	return s.RespMetadata.RequestID
 25061  }
 25062  
 25063  // The list of tags is not valid.
 25064  type InvalidTagKeysListException struct {
 25065  	_            struct{}                  `type:"structure"`
 25066  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25067  
 25068  	Message_ *string `locationName:"message" type:"string"`
 25069  }
 25070  
 25071  // String returns the string representation.
 25072  //
 25073  // API parameter values that are decorated as "sensitive" in the API will not
 25074  // be included in the string output. The member name will be present, but the
 25075  // value will be replaced with "sensitive".
 25076  func (s InvalidTagKeysListException) String() string {
 25077  	return awsutil.Prettify(s)
 25078  }
 25079  
 25080  // GoString returns the string representation.
 25081  //
 25082  // API parameter values that are decorated as "sensitive" in the API will not
 25083  // be included in the string output. The member name will be present, but the
 25084  // value will be replaced with "sensitive".
 25085  func (s InvalidTagKeysListException) GoString() string {
 25086  	return s.String()
 25087  }
 25088  
 25089  func newErrorInvalidTagKeysListException(v protocol.ResponseMetadata) error {
 25090  	return &InvalidTagKeysListException{
 25091  		RespMetadata: v,
 25092  	}
 25093  }
 25094  
 25095  // Code returns the exception type name.
 25096  func (s *InvalidTagKeysListException) Code() string {
 25097  	return "InvalidTagKeysListException"
 25098  }
 25099  
 25100  // Message returns the exception's message.
 25101  func (s *InvalidTagKeysListException) Message() string {
 25102  	if s.Message_ != nil {
 25103  		return *s.Message_
 25104  	}
 25105  	return ""
 25106  }
 25107  
 25108  // OrigErr always returns nil, satisfies awserr.Error interface.
 25109  func (s *InvalidTagKeysListException) OrigErr() error {
 25110  	return nil
 25111  }
 25112  
 25113  func (s *InvalidTagKeysListException) Error() string {
 25114  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25115  }
 25116  
 25117  // Status code returns the HTTP status code for the request's response error.
 25118  func (s *InvalidTagKeysListException) StatusCode() int {
 25119  	return s.RespMetadata.StatusCode
 25120  }
 25121  
 25122  // RequestID returns the service's response RequestID for request.
 25123  func (s *InvalidTagKeysListException) RequestID() string {
 25124  	return s.RespMetadata.RequestID
 25125  }
 25126  
 25127  // The map of tags is not valid.
 25128  type InvalidTagsMapException struct {
 25129  	_            struct{}                  `type:"structure"`
 25130  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25131  
 25132  	Message_ *string `locationName:"message" type:"string"`
 25133  }
 25134  
 25135  // String returns the string representation.
 25136  //
 25137  // API parameter values that are decorated as "sensitive" in the API will not
 25138  // be included in the string output. The member name will be present, but the
 25139  // value will be replaced with "sensitive".
 25140  func (s InvalidTagsMapException) String() string {
 25141  	return awsutil.Prettify(s)
 25142  }
 25143  
 25144  // GoString returns the string representation.
 25145  //
 25146  // API parameter values that are decorated as "sensitive" in the API will not
 25147  // be included in the string output. The member name will be present, but the
 25148  // value will be replaced with "sensitive".
 25149  func (s InvalidTagsMapException) GoString() string {
 25150  	return s.String()
 25151  }
 25152  
 25153  func newErrorInvalidTagsMapException(v protocol.ResponseMetadata) error {
 25154  	return &InvalidTagsMapException{
 25155  		RespMetadata: v,
 25156  	}
 25157  }
 25158  
 25159  // Code returns the exception type name.
 25160  func (s *InvalidTagsMapException) Code() string {
 25161  	return "InvalidTagsMapException"
 25162  }
 25163  
 25164  // Message returns the exception's message.
 25165  func (s *InvalidTagsMapException) Message() string {
 25166  	if s.Message_ != nil {
 25167  		return *s.Message_
 25168  	}
 25169  	return ""
 25170  }
 25171  
 25172  // OrigErr always returns nil, satisfies awserr.Error interface.
 25173  func (s *InvalidTagsMapException) OrigErr() error {
 25174  	return nil
 25175  }
 25176  
 25177  func (s *InvalidTagsMapException) Error() string {
 25178  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25179  }
 25180  
 25181  // Status code returns the HTTP status code for the request's response error.
 25182  func (s *InvalidTagsMapException) StatusCode() int {
 25183  	return s.RespMetadata.StatusCode
 25184  }
 25185  
 25186  // RequestID returns the service's response RequestID for request.
 25187  func (s *InvalidTagsMapException) RequestID() string {
 25188  	return s.RespMetadata.RequestID
 25189  }
 25190  
 25191  // The specified target branch is not valid.
 25192  type InvalidTargetBranchException struct {
 25193  	_            struct{}                  `type:"structure"`
 25194  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25195  
 25196  	Message_ *string `locationName:"message" type:"string"`
 25197  }
 25198  
 25199  // String returns the string representation.
 25200  //
 25201  // API parameter values that are decorated as "sensitive" in the API will not
 25202  // be included in the string output. The member name will be present, but the
 25203  // value will be replaced with "sensitive".
 25204  func (s InvalidTargetBranchException) String() string {
 25205  	return awsutil.Prettify(s)
 25206  }
 25207  
 25208  // GoString returns the string representation.
 25209  //
 25210  // API parameter values that are decorated as "sensitive" in the API will not
 25211  // be included in the string output. The member name will be present, but the
 25212  // value will be replaced with "sensitive".
 25213  func (s InvalidTargetBranchException) GoString() string {
 25214  	return s.String()
 25215  }
 25216  
 25217  func newErrorInvalidTargetBranchException(v protocol.ResponseMetadata) error {
 25218  	return &InvalidTargetBranchException{
 25219  		RespMetadata: v,
 25220  	}
 25221  }
 25222  
 25223  // Code returns the exception type name.
 25224  func (s *InvalidTargetBranchException) Code() string {
 25225  	return "InvalidTargetBranchException"
 25226  }
 25227  
 25228  // Message returns the exception's message.
 25229  func (s *InvalidTargetBranchException) Message() string {
 25230  	if s.Message_ != nil {
 25231  		return *s.Message_
 25232  	}
 25233  	return ""
 25234  }
 25235  
 25236  // OrigErr always returns nil, satisfies awserr.Error interface.
 25237  func (s *InvalidTargetBranchException) OrigErr() error {
 25238  	return nil
 25239  }
 25240  
 25241  func (s *InvalidTargetBranchException) Error() string {
 25242  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25243  }
 25244  
 25245  // Status code returns the HTTP status code for the request's response error.
 25246  func (s *InvalidTargetBranchException) StatusCode() int {
 25247  	return s.RespMetadata.StatusCode
 25248  }
 25249  
 25250  // RequestID returns the service's response RequestID for request.
 25251  func (s *InvalidTargetBranchException) RequestID() string {
 25252  	return s.RespMetadata.RequestID
 25253  }
 25254  
 25255  // The target for the pull request is not valid. A target must contain the full
 25256  // values for the repository name, source branch, and destination branch for
 25257  // the pull request.
 25258  type InvalidTargetException struct {
 25259  	_            struct{}                  `type:"structure"`
 25260  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25261  
 25262  	Message_ *string `locationName:"message" type:"string"`
 25263  }
 25264  
 25265  // String returns the string representation.
 25266  //
 25267  // API parameter values that are decorated as "sensitive" in the API will not
 25268  // be included in the string output. The member name will be present, but the
 25269  // value will be replaced with "sensitive".
 25270  func (s InvalidTargetException) String() string {
 25271  	return awsutil.Prettify(s)
 25272  }
 25273  
 25274  // GoString returns the string representation.
 25275  //
 25276  // API parameter values that are decorated as "sensitive" in the API will not
 25277  // be included in the string output. The member name will be present, but the
 25278  // value will be replaced with "sensitive".
 25279  func (s InvalidTargetException) GoString() string {
 25280  	return s.String()
 25281  }
 25282  
 25283  func newErrorInvalidTargetException(v protocol.ResponseMetadata) error {
 25284  	return &InvalidTargetException{
 25285  		RespMetadata: v,
 25286  	}
 25287  }
 25288  
 25289  // Code returns the exception type name.
 25290  func (s *InvalidTargetException) Code() string {
 25291  	return "InvalidTargetException"
 25292  }
 25293  
 25294  // Message returns the exception's message.
 25295  func (s *InvalidTargetException) Message() string {
 25296  	if s.Message_ != nil {
 25297  		return *s.Message_
 25298  	}
 25299  	return ""
 25300  }
 25301  
 25302  // OrigErr always returns nil, satisfies awserr.Error interface.
 25303  func (s *InvalidTargetException) OrigErr() error {
 25304  	return nil
 25305  }
 25306  
 25307  func (s *InvalidTargetException) Error() string {
 25308  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25309  }
 25310  
 25311  // Status code returns the HTTP status code for the request's response error.
 25312  func (s *InvalidTargetException) StatusCode() int {
 25313  	return s.RespMetadata.StatusCode
 25314  }
 25315  
 25316  // RequestID returns the service's response RequestID for request.
 25317  func (s *InvalidTargetException) RequestID() string {
 25318  	return s.RespMetadata.RequestID
 25319  }
 25320  
 25321  // The targets for the pull request is not valid or not in a valid format. Targets
 25322  // are a list of target objects. Each target object must contain the full values
 25323  // for the repository name, source branch, and destination branch for a pull
 25324  // request.
 25325  type InvalidTargetsException struct {
 25326  	_            struct{}                  `type:"structure"`
 25327  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25328  
 25329  	Message_ *string `locationName:"message" type:"string"`
 25330  }
 25331  
 25332  // String returns the string representation.
 25333  //
 25334  // API parameter values that are decorated as "sensitive" in the API will not
 25335  // be included in the string output. The member name will be present, but the
 25336  // value will be replaced with "sensitive".
 25337  func (s InvalidTargetsException) String() string {
 25338  	return awsutil.Prettify(s)
 25339  }
 25340  
 25341  // GoString returns the string representation.
 25342  //
 25343  // API parameter values that are decorated as "sensitive" in the API will not
 25344  // be included in the string output. The member name will be present, but the
 25345  // value will be replaced with "sensitive".
 25346  func (s InvalidTargetsException) GoString() string {
 25347  	return s.String()
 25348  }
 25349  
 25350  func newErrorInvalidTargetsException(v protocol.ResponseMetadata) error {
 25351  	return &InvalidTargetsException{
 25352  		RespMetadata: v,
 25353  	}
 25354  }
 25355  
 25356  // Code returns the exception type name.
 25357  func (s *InvalidTargetsException) Code() string {
 25358  	return "InvalidTargetsException"
 25359  }
 25360  
 25361  // Message returns the exception's message.
 25362  func (s *InvalidTargetsException) Message() string {
 25363  	if s.Message_ != nil {
 25364  		return *s.Message_
 25365  	}
 25366  	return ""
 25367  }
 25368  
 25369  // OrigErr always returns nil, satisfies awserr.Error interface.
 25370  func (s *InvalidTargetsException) OrigErr() error {
 25371  	return nil
 25372  }
 25373  
 25374  func (s *InvalidTargetsException) Error() string {
 25375  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25376  }
 25377  
 25378  // Status code returns the HTTP status code for the request's response error.
 25379  func (s *InvalidTargetsException) StatusCode() int {
 25380  	return s.RespMetadata.StatusCode
 25381  }
 25382  
 25383  // RequestID returns the service's response RequestID for request.
 25384  func (s *InvalidTargetsException) RequestID() string {
 25385  	return s.RespMetadata.RequestID
 25386  }
 25387  
 25388  // The title of the pull request is not valid. Pull request titles cannot exceed
 25389  // 100 characters in length.
 25390  type InvalidTitleException struct {
 25391  	_            struct{}                  `type:"structure"`
 25392  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 25393  
 25394  	Message_ *string `locationName:"message" type:"string"`
 25395  }
 25396  
 25397  // String returns the string representation.
 25398  //
 25399  // API parameter values that are decorated as "sensitive" in the API will not
 25400  // be included in the string output. The member name will be present, but the
 25401  // value will be replaced with "sensitive".
 25402  func (s InvalidTitleException) String() string {
 25403  	return awsutil.Prettify(s)
 25404  }
 25405  
 25406  // GoString returns the string representation.
 25407  //
 25408  // API parameter values that are decorated as "sensitive" in the API will not
 25409  // be included in the string output. The member name will be present, but the
 25410  // value will be replaced with "sensitive".
 25411  func (s InvalidTitleException) GoString() string {
 25412  	return s.String()
 25413  }
 25414  
 25415  func newErrorInvalidTitleException(v protocol.ResponseMetadata) error {
 25416  	return &InvalidTitleException{
 25417  		RespMetadata: v,
 25418  	}
 25419  }
 25420  
 25421  // Code returns the exception type name.
 25422  func (s *InvalidTitleException) Code() string {
 25423  	return "InvalidTitleException"
 25424  }
 25425  
 25426  // Message returns the exception's message.
 25427  func (s *InvalidTitleException) Message() string {
 25428  	if s.Message_ != nil {
 25429  		return *s.Message_
 25430  	}
 25431  	return ""
 25432  }
 25433  
 25434  // OrigErr always returns nil, satisfies awserr.Error interface.
 25435  func (s *InvalidTitleException) OrigErr() error {
 25436  	return nil
 25437  }
 25438  
 25439  func (s *InvalidTitleException) Error() string {
 25440  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 25441  }
 25442  
 25443  // Status code returns the HTTP status code for the request's response error.
 25444  func (s *InvalidTitleException) StatusCode() int {
 25445  	return s.RespMetadata.StatusCode
 25446  }
 25447  
 25448  // RequestID returns the service's response RequestID for request.
 25449  func (s *InvalidTitleException) RequestID() string {
 25450  	return s.RespMetadata.RequestID
 25451  }
 25452  
 25453  // Information about whether a file is binary or textual in a merge or pull
 25454  // request operation.
 25455  type IsBinaryFile struct {
 25456  	_ struct{} `type:"structure"`
 25457  
 25458  	// The binary or non-binary status of a file in the base of a merge or pull
 25459  	// request.
 25460  	Base *bool `locationName:"base" type:"boolean"`
 25461  
 25462  	// The binary or non-binary status of a file in the destination of a merge or
 25463  	// pull request.
 25464  	Destination *bool `locationName:"destination" type:"boolean"`
 25465  
 25466  	// The binary or non-binary status of file in the source of a merge or pull
 25467  	// request.
 25468  	Source *bool `locationName:"source" type:"boolean"`
 25469  }
 25470  
 25471  // String returns the string representation.
 25472  //
 25473  // API parameter values that are decorated as "sensitive" in the API will not
 25474  // be included in the string output. The member name will be present, but the
 25475  // value will be replaced with "sensitive".
 25476  func (s IsBinaryFile) String() string {
 25477  	return awsutil.Prettify(s)
 25478  }
 25479  
 25480  // GoString returns the string representation.
 25481  //
 25482  // API parameter values that are decorated as "sensitive" in the API will not
 25483  // be included in the string output. The member name will be present, but the
 25484  // value will be replaced with "sensitive".
 25485  func (s IsBinaryFile) GoString() string {
 25486  	return s.String()
 25487  }
 25488  
 25489  // SetBase sets the Base field's value.
 25490  func (s *IsBinaryFile) SetBase(v bool) *IsBinaryFile {
 25491  	s.Base = &v
 25492  	return s
 25493  }
 25494  
 25495  // SetDestination sets the Destination field's value.
 25496  func (s *IsBinaryFile) SetDestination(v bool) *IsBinaryFile {
 25497  	s.Destination = &v
 25498  	return s
 25499  }
 25500  
 25501  // SetSource sets the Source field's value.
 25502  func (s *IsBinaryFile) SetSource(v bool) *IsBinaryFile {
 25503  	s.Source = &v
 25504  	return s
 25505  }
 25506  
 25507  type ListApprovalRuleTemplatesInput struct {
 25508  	_ struct{} `type:"structure"`
 25509  
 25510  	// A non-zero, non-negative integer used to limit the number of returned results.
 25511  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 25512  
 25513  	// An enumeration token that, when provided in a request, returns the next batch
 25514  	// of the results.
 25515  	NextToken *string `locationName:"nextToken" type:"string"`
 25516  }
 25517  
 25518  // String returns the string representation.
 25519  //
 25520  // API parameter values that are decorated as "sensitive" in the API will not
 25521  // be included in the string output. The member name will be present, but the
 25522  // value will be replaced with "sensitive".
 25523  func (s ListApprovalRuleTemplatesInput) String() string {
 25524  	return awsutil.Prettify(s)
 25525  }
 25526  
 25527  // GoString returns the string representation.
 25528  //
 25529  // API parameter values that are decorated as "sensitive" in the API will not
 25530  // be included in the string output. The member name will be present, but the
 25531  // value will be replaced with "sensitive".
 25532  func (s ListApprovalRuleTemplatesInput) GoString() string {
 25533  	return s.String()
 25534  }
 25535  
 25536  // SetMaxResults sets the MaxResults field's value.
 25537  func (s *ListApprovalRuleTemplatesInput) SetMaxResults(v int64) *ListApprovalRuleTemplatesInput {
 25538  	s.MaxResults = &v
 25539  	return s
 25540  }
 25541  
 25542  // SetNextToken sets the NextToken field's value.
 25543  func (s *ListApprovalRuleTemplatesInput) SetNextToken(v string) *ListApprovalRuleTemplatesInput {
 25544  	s.NextToken = &v
 25545  	return s
 25546  }
 25547  
 25548  type ListApprovalRuleTemplatesOutput struct {
 25549  	_ struct{} `type:"structure"`
 25550  
 25551  	// The names of all the approval rule templates found in the AWS Region for
 25552  	// your AWS account.
 25553  	ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"`
 25554  
 25555  	// An enumeration token that allows the operation to batch the next results
 25556  	// of the operation.
 25557  	NextToken *string `locationName:"nextToken" type:"string"`
 25558  }
 25559  
 25560  // String returns the string representation.
 25561  //
 25562  // API parameter values that are decorated as "sensitive" in the API will not
 25563  // be included in the string output. The member name will be present, but the
 25564  // value will be replaced with "sensitive".
 25565  func (s ListApprovalRuleTemplatesOutput) String() string {
 25566  	return awsutil.Prettify(s)
 25567  }
 25568  
 25569  // GoString returns the string representation.
 25570  //
 25571  // API parameter values that are decorated as "sensitive" in the API will not
 25572  // be included in the string output. The member name will be present, but the
 25573  // value will be replaced with "sensitive".
 25574  func (s ListApprovalRuleTemplatesOutput) GoString() string {
 25575  	return s.String()
 25576  }
 25577  
 25578  // SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value.
 25579  func (s *ListApprovalRuleTemplatesOutput) SetApprovalRuleTemplateNames(v []*string) *ListApprovalRuleTemplatesOutput {
 25580  	s.ApprovalRuleTemplateNames = v
 25581  	return s
 25582  }
 25583  
 25584  // SetNextToken sets the NextToken field's value.
 25585  func (s *ListApprovalRuleTemplatesOutput) SetNextToken(v string) *ListApprovalRuleTemplatesOutput {
 25586  	s.NextToken = &v
 25587  	return s
 25588  }
 25589  
 25590  type ListAssociatedApprovalRuleTemplatesForRepositoryInput struct {
 25591  	_ struct{} `type:"structure"`
 25592  
 25593  	// A non-zero, non-negative integer used to limit the number of returned results.
 25594  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 25595  
 25596  	// An enumeration token that, when provided in a request, returns the next batch
 25597  	// of the results.
 25598  	NextToken *string `locationName:"nextToken" type:"string"`
 25599  
 25600  	// The name of the repository for which you want to list all associated approval
 25601  	// rule templates.
 25602  	//
 25603  	// RepositoryName is a required field
 25604  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 25605  }
 25606  
 25607  // String returns the string representation.
 25608  //
 25609  // API parameter values that are decorated as "sensitive" in the API will not
 25610  // be included in the string output. The member name will be present, but the
 25611  // value will be replaced with "sensitive".
 25612  func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) String() string {
 25613  	return awsutil.Prettify(s)
 25614  }
 25615  
 25616  // GoString returns the string representation.
 25617  //
 25618  // API parameter values that are decorated as "sensitive" in the API will not
 25619  // be included in the string output. The member name will be present, but the
 25620  // value will be replaced with "sensitive".
 25621  func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) GoString() string {
 25622  	return s.String()
 25623  }
 25624  
 25625  // Validate inspects the fields of the type to determine if they are valid.
 25626  func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) Validate() error {
 25627  	invalidParams := request.ErrInvalidParams{Context: "ListAssociatedApprovalRuleTemplatesForRepositoryInput"}
 25628  	if s.RepositoryName == nil {
 25629  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 25630  	}
 25631  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 25632  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 25633  	}
 25634  
 25635  	if invalidParams.Len() > 0 {
 25636  		return invalidParams
 25637  	}
 25638  	return nil
 25639  }
 25640  
 25641  // SetMaxResults sets the MaxResults field's value.
 25642  func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetMaxResults(v int64) *ListAssociatedApprovalRuleTemplatesForRepositoryInput {
 25643  	s.MaxResults = &v
 25644  	return s
 25645  }
 25646  
 25647  // SetNextToken sets the NextToken field's value.
 25648  func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput {
 25649  	s.NextToken = &v
 25650  	return s
 25651  }
 25652  
 25653  // SetRepositoryName sets the RepositoryName field's value.
 25654  func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetRepositoryName(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput {
 25655  	s.RepositoryName = &v
 25656  	return s
 25657  }
 25658  
 25659  type ListAssociatedApprovalRuleTemplatesForRepositoryOutput struct {
 25660  	_ struct{} `type:"structure"`
 25661  
 25662  	// The names of all approval rule templates associated with the repository.
 25663  	ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"`
 25664  
 25665  	// An enumeration token that allows the operation to batch the next results
 25666  	// of the operation.
 25667  	NextToken *string `locationName:"nextToken" type:"string"`
 25668  }
 25669  
 25670  // String returns the string representation.
 25671  //
 25672  // API parameter values that are decorated as "sensitive" in the API will not
 25673  // be included in the string output. The member name will be present, but the
 25674  // value will be replaced with "sensitive".
 25675  func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) String() string {
 25676  	return awsutil.Prettify(s)
 25677  }
 25678  
 25679  // GoString returns the string representation.
 25680  //
 25681  // API parameter values that are decorated as "sensitive" in the API will not
 25682  // be included in the string output. The member name will be present, but the
 25683  // value will be replaced with "sensitive".
 25684  func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) GoString() string {
 25685  	return s.String()
 25686  }
 25687  
 25688  // SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value.
 25689  func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetApprovalRuleTemplateNames(v []*string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput {
 25690  	s.ApprovalRuleTemplateNames = v
 25691  	return s
 25692  }
 25693  
 25694  // SetNextToken sets the NextToken field's value.
 25695  func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput {
 25696  	s.NextToken = &v
 25697  	return s
 25698  }
 25699  
 25700  // Represents the input of a list branches operation.
 25701  type ListBranchesInput struct {
 25702  	_ struct{} `type:"structure"`
 25703  
 25704  	// An enumeration token that allows the operation to batch the results.
 25705  	NextToken *string `locationName:"nextToken" type:"string"`
 25706  
 25707  	// The name of the repository that contains the branches.
 25708  	//
 25709  	// RepositoryName is a required field
 25710  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 25711  }
 25712  
 25713  // String returns the string representation.
 25714  //
 25715  // API parameter values that are decorated as "sensitive" in the API will not
 25716  // be included in the string output. The member name will be present, but the
 25717  // value will be replaced with "sensitive".
 25718  func (s ListBranchesInput) String() string {
 25719  	return awsutil.Prettify(s)
 25720  }
 25721  
 25722  // GoString returns the string representation.
 25723  //
 25724  // API parameter values that are decorated as "sensitive" in the API will not
 25725  // be included in the string output. The member name will be present, but the
 25726  // value will be replaced with "sensitive".
 25727  func (s ListBranchesInput) GoString() string {
 25728  	return s.String()
 25729  }
 25730  
 25731  // Validate inspects the fields of the type to determine if they are valid.
 25732  func (s *ListBranchesInput) Validate() error {
 25733  	invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"}
 25734  	if s.RepositoryName == nil {
 25735  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 25736  	}
 25737  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 25738  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 25739  	}
 25740  
 25741  	if invalidParams.Len() > 0 {
 25742  		return invalidParams
 25743  	}
 25744  	return nil
 25745  }
 25746  
 25747  // SetNextToken sets the NextToken field's value.
 25748  func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput {
 25749  	s.NextToken = &v
 25750  	return s
 25751  }
 25752  
 25753  // SetRepositoryName sets the RepositoryName field's value.
 25754  func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput {
 25755  	s.RepositoryName = &v
 25756  	return s
 25757  }
 25758  
 25759  // Represents the output of a list branches operation.
 25760  type ListBranchesOutput struct {
 25761  	_ struct{} `type:"structure"`
 25762  
 25763  	// The list of branch names.
 25764  	Branches []*string `locationName:"branches" type:"list"`
 25765  
 25766  	// An enumeration token that returns the batch of the results.
 25767  	NextToken *string `locationName:"nextToken" type:"string"`
 25768  }
 25769  
 25770  // String returns the string representation.
 25771  //
 25772  // API parameter values that are decorated as "sensitive" in the API will not
 25773  // be included in the string output. The member name will be present, but the
 25774  // value will be replaced with "sensitive".
 25775  func (s ListBranchesOutput) String() string {
 25776  	return awsutil.Prettify(s)
 25777  }
 25778  
 25779  // GoString returns the string representation.
 25780  //
 25781  // API parameter values that are decorated as "sensitive" in the API will not
 25782  // be included in the string output. The member name will be present, but the
 25783  // value will be replaced with "sensitive".
 25784  func (s ListBranchesOutput) GoString() string {
 25785  	return s.String()
 25786  }
 25787  
 25788  // SetBranches sets the Branches field's value.
 25789  func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput {
 25790  	s.Branches = v
 25791  	return s
 25792  }
 25793  
 25794  // SetNextToken sets the NextToken field's value.
 25795  func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput {
 25796  	s.NextToken = &v
 25797  	return s
 25798  }
 25799  
 25800  type ListPullRequestsInput struct {
 25801  	_ struct{} `type:"structure"`
 25802  
 25803  	// Optional. The Amazon Resource Name (ARN) of the user who created the pull
 25804  	// request. If used, this filters the results to pull requests created by that
 25805  	// user.
 25806  	AuthorArn *string `locationName:"authorArn" type:"string"`
 25807  
 25808  	// A non-zero, non-negative integer used to limit the number of returned results.
 25809  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 25810  
 25811  	// An enumeration token that, when provided in a request, returns the next batch
 25812  	// of the results.
 25813  	NextToken *string `locationName:"nextToken" type:"string"`
 25814  
 25815  	// Optional. The status of the pull request. If used, this refines the results
 25816  	// to the pull requests that match the specified status.
 25817  	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
 25818  
 25819  	// The name of the repository for which you want to list pull requests.
 25820  	//
 25821  	// RepositoryName is a required field
 25822  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 25823  }
 25824  
 25825  // String returns the string representation.
 25826  //
 25827  // API parameter values that are decorated as "sensitive" in the API will not
 25828  // be included in the string output. The member name will be present, but the
 25829  // value will be replaced with "sensitive".
 25830  func (s ListPullRequestsInput) String() string {
 25831  	return awsutil.Prettify(s)
 25832  }
 25833  
 25834  // GoString returns the string representation.
 25835  //
 25836  // API parameter values that are decorated as "sensitive" in the API will not
 25837  // be included in the string output. The member name will be present, but the
 25838  // value will be replaced with "sensitive".
 25839  func (s ListPullRequestsInput) GoString() string {
 25840  	return s.String()
 25841  }
 25842  
 25843  // Validate inspects the fields of the type to determine if they are valid.
 25844  func (s *ListPullRequestsInput) Validate() error {
 25845  	invalidParams := request.ErrInvalidParams{Context: "ListPullRequestsInput"}
 25846  	if s.RepositoryName == nil {
 25847  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 25848  	}
 25849  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 25850  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 25851  	}
 25852  
 25853  	if invalidParams.Len() > 0 {
 25854  		return invalidParams
 25855  	}
 25856  	return nil
 25857  }
 25858  
 25859  // SetAuthorArn sets the AuthorArn field's value.
 25860  func (s *ListPullRequestsInput) SetAuthorArn(v string) *ListPullRequestsInput {
 25861  	s.AuthorArn = &v
 25862  	return s
 25863  }
 25864  
 25865  // SetMaxResults sets the MaxResults field's value.
 25866  func (s *ListPullRequestsInput) SetMaxResults(v int64) *ListPullRequestsInput {
 25867  	s.MaxResults = &v
 25868  	return s
 25869  }
 25870  
 25871  // SetNextToken sets the NextToken field's value.
 25872  func (s *ListPullRequestsInput) SetNextToken(v string) *ListPullRequestsInput {
 25873  	s.NextToken = &v
 25874  	return s
 25875  }
 25876  
 25877  // SetPullRequestStatus sets the PullRequestStatus field's value.
 25878  func (s *ListPullRequestsInput) SetPullRequestStatus(v string) *ListPullRequestsInput {
 25879  	s.PullRequestStatus = &v
 25880  	return s
 25881  }
 25882  
 25883  // SetRepositoryName sets the RepositoryName field's value.
 25884  func (s *ListPullRequestsInput) SetRepositoryName(v string) *ListPullRequestsInput {
 25885  	s.RepositoryName = &v
 25886  	return s
 25887  }
 25888  
 25889  type ListPullRequestsOutput struct {
 25890  	_ struct{} `type:"structure"`
 25891  
 25892  	// An enumeration token that allows the operation to batch the next results
 25893  	// of the operation.
 25894  	NextToken *string `locationName:"nextToken" type:"string"`
 25895  
 25896  	// The system-generated IDs of the pull requests.
 25897  	//
 25898  	// PullRequestIds is a required field
 25899  	PullRequestIds []*string `locationName:"pullRequestIds" type:"list" required:"true"`
 25900  }
 25901  
 25902  // String returns the string representation.
 25903  //
 25904  // API parameter values that are decorated as "sensitive" in the API will not
 25905  // be included in the string output. The member name will be present, but the
 25906  // value will be replaced with "sensitive".
 25907  func (s ListPullRequestsOutput) String() string {
 25908  	return awsutil.Prettify(s)
 25909  }
 25910  
 25911  // GoString returns the string representation.
 25912  //
 25913  // API parameter values that are decorated as "sensitive" in the API will not
 25914  // be included in the string output. The member name will be present, but the
 25915  // value will be replaced with "sensitive".
 25916  func (s ListPullRequestsOutput) GoString() string {
 25917  	return s.String()
 25918  }
 25919  
 25920  // SetNextToken sets the NextToken field's value.
 25921  func (s *ListPullRequestsOutput) SetNextToken(v string) *ListPullRequestsOutput {
 25922  	s.NextToken = &v
 25923  	return s
 25924  }
 25925  
 25926  // SetPullRequestIds sets the PullRequestIds field's value.
 25927  func (s *ListPullRequestsOutput) SetPullRequestIds(v []*string) *ListPullRequestsOutput {
 25928  	s.PullRequestIds = v
 25929  	return s
 25930  }
 25931  
 25932  type ListRepositoriesForApprovalRuleTemplateInput struct {
 25933  	_ struct{} `type:"structure"`
 25934  
 25935  	// The name of the approval rule template for which you want to list repositories
 25936  	// that are associated with that template.
 25937  	//
 25938  	// ApprovalRuleTemplateName is a required field
 25939  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 25940  
 25941  	// A non-zero, non-negative integer used to limit the number of returned results.
 25942  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
 25943  
 25944  	// An enumeration token that, when provided in a request, returns the next batch
 25945  	// of the results.
 25946  	NextToken *string `locationName:"nextToken" type:"string"`
 25947  }
 25948  
 25949  // String returns the string representation.
 25950  //
 25951  // API parameter values that are decorated as "sensitive" in the API will not
 25952  // be included in the string output. The member name will be present, but the
 25953  // value will be replaced with "sensitive".
 25954  func (s ListRepositoriesForApprovalRuleTemplateInput) String() string {
 25955  	return awsutil.Prettify(s)
 25956  }
 25957  
 25958  // GoString returns the string representation.
 25959  //
 25960  // API parameter values that are decorated as "sensitive" in the API will not
 25961  // be included in the string output. The member name will be present, but the
 25962  // value will be replaced with "sensitive".
 25963  func (s ListRepositoriesForApprovalRuleTemplateInput) GoString() string {
 25964  	return s.String()
 25965  }
 25966  
 25967  // Validate inspects the fields of the type to determine if they are valid.
 25968  func (s *ListRepositoriesForApprovalRuleTemplateInput) Validate() error {
 25969  	invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesForApprovalRuleTemplateInput"}
 25970  	if s.ApprovalRuleTemplateName == nil {
 25971  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 25972  	}
 25973  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 25974  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 25975  	}
 25976  
 25977  	if invalidParams.Len() > 0 {
 25978  		return invalidParams
 25979  	}
 25980  	return nil
 25981  }
 25982  
 25983  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 25984  func (s *ListRepositoriesForApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *ListRepositoriesForApprovalRuleTemplateInput {
 25985  	s.ApprovalRuleTemplateName = &v
 25986  	return s
 25987  }
 25988  
 25989  // SetMaxResults sets the MaxResults field's value.
 25990  func (s *ListRepositoriesForApprovalRuleTemplateInput) SetMaxResults(v int64) *ListRepositoriesForApprovalRuleTemplateInput {
 25991  	s.MaxResults = &v
 25992  	return s
 25993  }
 25994  
 25995  // SetNextToken sets the NextToken field's value.
 25996  func (s *ListRepositoriesForApprovalRuleTemplateInput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateInput {
 25997  	s.NextToken = &v
 25998  	return s
 25999  }
 26000  
 26001  type ListRepositoriesForApprovalRuleTemplateOutput struct {
 26002  	_ struct{} `type:"structure"`
 26003  
 26004  	// An enumeration token that allows the operation to batch the next results
 26005  	// of the operation.
 26006  	NextToken *string `locationName:"nextToken" type:"string"`
 26007  
 26008  	// A list of repository names that are associated with the specified approval
 26009  	// rule template.
 26010  	RepositoryNames []*string `locationName:"repositoryNames" type:"list"`
 26011  }
 26012  
 26013  // String returns the string representation.
 26014  //
 26015  // API parameter values that are decorated as "sensitive" in the API will not
 26016  // be included in the string output. The member name will be present, but the
 26017  // value will be replaced with "sensitive".
 26018  func (s ListRepositoriesForApprovalRuleTemplateOutput) String() string {
 26019  	return awsutil.Prettify(s)
 26020  }
 26021  
 26022  // GoString returns the string representation.
 26023  //
 26024  // API parameter values that are decorated as "sensitive" in the API will not
 26025  // be included in the string output. The member name will be present, but the
 26026  // value will be replaced with "sensitive".
 26027  func (s ListRepositoriesForApprovalRuleTemplateOutput) GoString() string {
 26028  	return s.String()
 26029  }
 26030  
 26031  // SetNextToken sets the NextToken field's value.
 26032  func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateOutput {
 26033  	s.NextToken = &v
 26034  	return s
 26035  }
 26036  
 26037  // SetRepositoryNames sets the RepositoryNames field's value.
 26038  func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetRepositoryNames(v []*string) *ListRepositoriesForApprovalRuleTemplateOutput {
 26039  	s.RepositoryNames = v
 26040  	return s
 26041  }
 26042  
 26043  // Represents the input of a list repositories operation.
 26044  type ListRepositoriesInput struct {
 26045  	_ struct{} `type:"structure"`
 26046  
 26047  	// An enumeration token that allows the operation to batch the results of the
 26048  	// operation. Batch sizes are 1,000 for list repository operations. When the
 26049  	// client sends the token back to AWS CodeCommit, another page of 1,000 records
 26050  	// is retrieved.
 26051  	NextToken *string `locationName:"nextToken" type:"string"`
 26052  
 26053  	// The order in which to sort the results of a list repositories operation.
 26054  	Order *string `locationName:"order" type:"string" enum:"OrderEnum"`
 26055  
 26056  	// The criteria used to sort the results of a list repositories operation.
 26057  	SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"`
 26058  }
 26059  
 26060  // String returns the string representation.
 26061  //
 26062  // API parameter values that are decorated as "sensitive" in the API will not
 26063  // be included in the string output. The member name will be present, but the
 26064  // value will be replaced with "sensitive".
 26065  func (s ListRepositoriesInput) String() string {
 26066  	return awsutil.Prettify(s)
 26067  }
 26068  
 26069  // GoString returns the string representation.
 26070  //
 26071  // API parameter values that are decorated as "sensitive" in the API will not
 26072  // be included in the string output. The member name will be present, but the
 26073  // value will be replaced with "sensitive".
 26074  func (s ListRepositoriesInput) GoString() string {
 26075  	return s.String()
 26076  }
 26077  
 26078  // SetNextToken sets the NextToken field's value.
 26079  func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput {
 26080  	s.NextToken = &v
 26081  	return s
 26082  }
 26083  
 26084  // SetOrder sets the Order field's value.
 26085  func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput {
 26086  	s.Order = &v
 26087  	return s
 26088  }
 26089  
 26090  // SetSortBy sets the SortBy field's value.
 26091  func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput {
 26092  	s.SortBy = &v
 26093  	return s
 26094  }
 26095  
 26096  // Represents the output of a list repositories operation.
 26097  type ListRepositoriesOutput struct {
 26098  	_ struct{} `type:"structure"`
 26099  
 26100  	// An enumeration token that allows the operation to batch the results of the
 26101  	// operation. Batch sizes are 1,000 for list repository operations. When the
 26102  	// client sends the token back to AWS CodeCommit, another page of 1,000 records
 26103  	// is retrieved.
 26104  	NextToken *string `locationName:"nextToken" type:"string"`
 26105  
 26106  	// Lists the repositories called by the list repositories operation.
 26107  	Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"`
 26108  }
 26109  
 26110  // String returns the string representation.
 26111  //
 26112  // API parameter values that are decorated as "sensitive" in the API will not
 26113  // be included in the string output. The member name will be present, but the
 26114  // value will be replaced with "sensitive".
 26115  func (s ListRepositoriesOutput) String() string {
 26116  	return awsutil.Prettify(s)
 26117  }
 26118  
 26119  // GoString returns the string representation.
 26120  //
 26121  // API parameter values that are decorated as "sensitive" in the API will not
 26122  // be included in the string output. The member name will be present, but the
 26123  // value will be replaced with "sensitive".
 26124  func (s ListRepositoriesOutput) GoString() string {
 26125  	return s.String()
 26126  }
 26127  
 26128  // SetNextToken sets the NextToken field's value.
 26129  func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput {
 26130  	s.NextToken = &v
 26131  	return s
 26132  }
 26133  
 26134  // SetRepositories sets the Repositories field's value.
 26135  func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput {
 26136  	s.Repositories = v
 26137  	return s
 26138  }
 26139  
 26140  type ListTagsForResourceInput struct {
 26141  	_ struct{} `type:"structure"`
 26142  
 26143  	// An enumeration token that, when provided in a request, returns the next batch
 26144  	// of the results.
 26145  	NextToken *string `locationName:"nextToken" type:"string"`
 26146  
 26147  	// The Amazon Resource Name (ARN) of the resource for which you want to get
 26148  	// information about tags, if any.
 26149  	//
 26150  	// ResourceArn is a required field
 26151  	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
 26152  }
 26153  
 26154  // String returns the string representation.
 26155  //
 26156  // API parameter values that are decorated as "sensitive" in the API will not
 26157  // be included in the string output. The member name will be present, but the
 26158  // value will be replaced with "sensitive".
 26159  func (s ListTagsForResourceInput) String() string {
 26160  	return awsutil.Prettify(s)
 26161  }
 26162  
 26163  // GoString returns the string representation.
 26164  //
 26165  // API parameter values that are decorated as "sensitive" in the API will not
 26166  // be included in the string output. The member name will be present, but the
 26167  // value will be replaced with "sensitive".
 26168  func (s ListTagsForResourceInput) GoString() string {
 26169  	return s.String()
 26170  }
 26171  
 26172  // Validate inspects the fields of the type to determine if they are valid.
 26173  func (s *ListTagsForResourceInput) Validate() error {
 26174  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
 26175  	if s.ResourceArn == nil {
 26176  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
 26177  	}
 26178  
 26179  	if invalidParams.Len() > 0 {
 26180  		return invalidParams
 26181  	}
 26182  	return nil
 26183  }
 26184  
 26185  // SetNextToken sets the NextToken field's value.
 26186  func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput {
 26187  	s.NextToken = &v
 26188  	return s
 26189  }
 26190  
 26191  // SetResourceArn sets the ResourceArn field's value.
 26192  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
 26193  	s.ResourceArn = &v
 26194  	return s
 26195  }
 26196  
 26197  type ListTagsForResourceOutput struct {
 26198  	_ struct{} `type:"structure"`
 26199  
 26200  	// An enumeration token that allows the operation to batch the next results
 26201  	// of the operation.
 26202  	NextToken *string `locationName:"nextToken" type:"string"`
 26203  
 26204  	// A list of tag key and value pairs associated with the specified resource.
 26205  	Tags map[string]*string `locationName:"tags" type:"map"`
 26206  }
 26207  
 26208  // String returns the string representation.
 26209  //
 26210  // API parameter values that are decorated as "sensitive" in the API will not
 26211  // be included in the string output. The member name will be present, but the
 26212  // value will be replaced with "sensitive".
 26213  func (s ListTagsForResourceOutput) String() string {
 26214  	return awsutil.Prettify(s)
 26215  }
 26216  
 26217  // GoString returns the string representation.
 26218  //
 26219  // API parameter values that are decorated as "sensitive" in the API will not
 26220  // be included in the string output. The member name will be present, but the
 26221  // value will be replaced with "sensitive".
 26222  func (s ListTagsForResourceOutput) GoString() string {
 26223  	return s.String()
 26224  }
 26225  
 26226  // SetNextToken sets the NextToken field's value.
 26227  func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput {
 26228  	s.NextToken = &v
 26229  	return s
 26230  }
 26231  
 26232  // SetTags sets the Tags field's value.
 26233  func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
 26234  	s.Tags = v
 26235  	return s
 26236  }
 26237  
 26238  // Returns information about the location of a change or comment in the comparison
 26239  // between two commits or a pull request.
 26240  type Location struct {
 26241  	_ struct{} `type:"structure"`
 26242  
 26243  	// The name of the file being compared, including its extension and subdirectory,
 26244  	// if any.
 26245  	FilePath *string `locationName:"filePath" type:"string"`
 26246  
 26247  	// The position of a change in a compared file, in line number format.
 26248  	FilePosition *int64 `locationName:"filePosition" type:"long"`
 26249  
 26250  	// In a comparison of commits or a pull request, whether the change is in the
 26251  	// before or after of that comparison.
 26252  	RelativeFileVersion *string `locationName:"relativeFileVersion" type:"string" enum:"RelativeFileVersionEnum"`
 26253  }
 26254  
 26255  // String returns the string representation.
 26256  //
 26257  // API parameter values that are decorated as "sensitive" in the API will not
 26258  // be included in the string output. The member name will be present, but the
 26259  // value will be replaced with "sensitive".
 26260  func (s Location) String() string {
 26261  	return awsutil.Prettify(s)
 26262  }
 26263  
 26264  // GoString returns the string representation.
 26265  //
 26266  // API parameter values that are decorated as "sensitive" in the API will not
 26267  // be included in the string output. The member name will be present, but the
 26268  // value will be replaced with "sensitive".
 26269  func (s Location) GoString() string {
 26270  	return s.String()
 26271  }
 26272  
 26273  // SetFilePath sets the FilePath field's value.
 26274  func (s *Location) SetFilePath(v string) *Location {
 26275  	s.FilePath = &v
 26276  	return s
 26277  }
 26278  
 26279  // SetFilePosition sets the FilePosition field's value.
 26280  func (s *Location) SetFilePosition(v int64) *Location {
 26281  	s.FilePosition = &v
 26282  	return s
 26283  }
 26284  
 26285  // SetRelativeFileVersion sets the RelativeFileVersion field's value.
 26286  func (s *Location) SetRelativeFileVersion(v string) *Location {
 26287  	s.RelativeFileVersion = &v
 26288  	return s
 26289  }
 26290  
 26291  // The pull request cannot be merged automatically into the destination branch.
 26292  // You must manually merge the branches and resolve any conflicts.
 26293  type ManualMergeRequiredException struct {
 26294  	_            struct{}                  `type:"structure"`
 26295  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26296  
 26297  	Message_ *string `locationName:"message" type:"string"`
 26298  }
 26299  
 26300  // String returns the string representation.
 26301  //
 26302  // API parameter values that are decorated as "sensitive" in the API will not
 26303  // be included in the string output. The member name will be present, but the
 26304  // value will be replaced with "sensitive".
 26305  func (s ManualMergeRequiredException) String() string {
 26306  	return awsutil.Prettify(s)
 26307  }
 26308  
 26309  // GoString returns the string representation.
 26310  //
 26311  // API parameter values that are decorated as "sensitive" in the API will not
 26312  // be included in the string output. The member name will be present, but the
 26313  // value will be replaced with "sensitive".
 26314  func (s ManualMergeRequiredException) GoString() string {
 26315  	return s.String()
 26316  }
 26317  
 26318  func newErrorManualMergeRequiredException(v protocol.ResponseMetadata) error {
 26319  	return &ManualMergeRequiredException{
 26320  		RespMetadata: v,
 26321  	}
 26322  }
 26323  
 26324  // Code returns the exception type name.
 26325  func (s *ManualMergeRequiredException) Code() string {
 26326  	return "ManualMergeRequiredException"
 26327  }
 26328  
 26329  // Message returns the exception's message.
 26330  func (s *ManualMergeRequiredException) Message() string {
 26331  	if s.Message_ != nil {
 26332  		return *s.Message_
 26333  	}
 26334  	return ""
 26335  }
 26336  
 26337  // OrigErr always returns nil, satisfies awserr.Error interface.
 26338  func (s *ManualMergeRequiredException) OrigErr() error {
 26339  	return nil
 26340  }
 26341  
 26342  func (s *ManualMergeRequiredException) Error() string {
 26343  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26344  }
 26345  
 26346  // Status code returns the HTTP status code for the request's response error.
 26347  func (s *ManualMergeRequiredException) StatusCode() int {
 26348  	return s.RespMetadata.StatusCode
 26349  }
 26350  
 26351  // RequestID returns the service's response RequestID for request.
 26352  func (s *ManualMergeRequiredException) RequestID() string {
 26353  	return s.RespMetadata.RequestID
 26354  }
 26355  
 26356  // The number of branches for the trigger was exceeded.
 26357  type MaximumBranchesExceededException struct {
 26358  	_            struct{}                  `type:"structure"`
 26359  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26360  
 26361  	Message_ *string `locationName:"message" type:"string"`
 26362  }
 26363  
 26364  // String returns the string representation.
 26365  //
 26366  // API parameter values that are decorated as "sensitive" in the API will not
 26367  // be included in the string output. The member name will be present, but the
 26368  // value will be replaced with "sensitive".
 26369  func (s MaximumBranchesExceededException) String() string {
 26370  	return awsutil.Prettify(s)
 26371  }
 26372  
 26373  // GoString returns the string representation.
 26374  //
 26375  // API parameter values that are decorated as "sensitive" in the API will not
 26376  // be included in the string output. The member name will be present, but the
 26377  // value will be replaced with "sensitive".
 26378  func (s MaximumBranchesExceededException) GoString() string {
 26379  	return s.String()
 26380  }
 26381  
 26382  func newErrorMaximumBranchesExceededException(v protocol.ResponseMetadata) error {
 26383  	return &MaximumBranchesExceededException{
 26384  		RespMetadata: v,
 26385  	}
 26386  }
 26387  
 26388  // Code returns the exception type name.
 26389  func (s *MaximumBranchesExceededException) Code() string {
 26390  	return "MaximumBranchesExceededException"
 26391  }
 26392  
 26393  // Message returns the exception's message.
 26394  func (s *MaximumBranchesExceededException) Message() string {
 26395  	if s.Message_ != nil {
 26396  		return *s.Message_
 26397  	}
 26398  	return ""
 26399  }
 26400  
 26401  // OrigErr always returns nil, satisfies awserr.Error interface.
 26402  func (s *MaximumBranchesExceededException) OrigErr() error {
 26403  	return nil
 26404  }
 26405  
 26406  func (s *MaximumBranchesExceededException) Error() string {
 26407  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26408  }
 26409  
 26410  // Status code returns the HTTP status code for the request's response error.
 26411  func (s *MaximumBranchesExceededException) StatusCode() int {
 26412  	return s.RespMetadata.StatusCode
 26413  }
 26414  
 26415  // RequestID returns the service's response RequestID for request.
 26416  func (s *MaximumBranchesExceededException) RequestID() string {
 26417  	return s.RespMetadata.RequestID
 26418  }
 26419  
 26420  // The number of allowed conflict resolution entries was exceeded.
 26421  type MaximumConflictResolutionEntriesExceededException struct {
 26422  	_            struct{}                  `type:"structure"`
 26423  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26424  
 26425  	Message_ *string `locationName:"message" type:"string"`
 26426  }
 26427  
 26428  // String returns the string representation.
 26429  //
 26430  // API parameter values that are decorated as "sensitive" in the API will not
 26431  // be included in the string output. The member name will be present, but the
 26432  // value will be replaced with "sensitive".
 26433  func (s MaximumConflictResolutionEntriesExceededException) String() string {
 26434  	return awsutil.Prettify(s)
 26435  }
 26436  
 26437  // GoString returns the string representation.
 26438  //
 26439  // API parameter values that are decorated as "sensitive" in the API will not
 26440  // be included in the string output. The member name will be present, but the
 26441  // value will be replaced with "sensitive".
 26442  func (s MaximumConflictResolutionEntriesExceededException) GoString() string {
 26443  	return s.String()
 26444  }
 26445  
 26446  func newErrorMaximumConflictResolutionEntriesExceededException(v protocol.ResponseMetadata) error {
 26447  	return &MaximumConflictResolutionEntriesExceededException{
 26448  		RespMetadata: v,
 26449  	}
 26450  }
 26451  
 26452  // Code returns the exception type name.
 26453  func (s *MaximumConflictResolutionEntriesExceededException) Code() string {
 26454  	return "MaximumConflictResolutionEntriesExceededException"
 26455  }
 26456  
 26457  // Message returns the exception's message.
 26458  func (s *MaximumConflictResolutionEntriesExceededException) Message() string {
 26459  	if s.Message_ != nil {
 26460  		return *s.Message_
 26461  	}
 26462  	return ""
 26463  }
 26464  
 26465  // OrigErr always returns nil, satisfies awserr.Error interface.
 26466  func (s *MaximumConflictResolutionEntriesExceededException) OrigErr() error {
 26467  	return nil
 26468  }
 26469  
 26470  func (s *MaximumConflictResolutionEntriesExceededException) Error() string {
 26471  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26472  }
 26473  
 26474  // Status code returns the HTTP status code for the request's response error.
 26475  func (s *MaximumConflictResolutionEntriesExceededException) StatusCode() int {
 26476  	return s.RespMetadata.StatusCode
 26477  }
 26478  
 26479  // RequestID returns the service's response RequestID for request.
 26480  func (s *MaximumConflictResolutionEntriesExceededException) RequestID() string {
 26481  	return s.RespMetadata.RequestID
 26482  }
 26483  
 26484  // The number of files to load exceeds the allowed limit.
 26485  type MaximumFileContentToLoadExceededException struct {
 26486  	_            struct{}                  `type:"structure"`
 26487  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26488  
 26489  	Message_ *string `locationName:"message" type:"string"`
 26490  }
 26491  
 26492  // String returns the string representation.
 26493  //
 26494  // API parameter values that are decorated as "sensitive" in the API will not
 26495  // be included in the string output. The member name will be present, but the
 26496  // value will be replaced with "sensitive".
 26497  func (s MaximumFileContentToLoadExceededException) String() string {
 26498  	return awsutil.Prettify(s)
 26499  }
 26500  
 26501  // GoString returns the string representation.
 26502  //
 26503  // API parameter values that are decorated as "sensitive" in the API will not
 26504  // be included in the string output. The member name will be present, but the
 26505  // value will be replaced with "sensitive".
 26506  func (s MaximumFileContentToLoadExceededException) GoString() string {
 26507  	return s.String()
 26508  }
 26509  
 26510  func newErrorMaximumFileContentToLoadExceededException(v protocol.ResponseMetadata) error {
 26511  	return &MaximumFileContentToLoadExceededException{
 26512  		RespMetadata: v,
 26513  	}
 26514  }
 26515  
 26516  // Code returns the exception type name.
 26517  func (s *MaximumFileContentToLoadExceededException) Code() string {
 26518  	return "MaximumFileContentToLoadExceededException"
 26519  }
 26520  
 26521  // Message returns the exception's message.
 26522  func (s *MaximumFileContentToLoadExceededException) Message() string {
 26523  	if s.Message_ != nil {
 26524  		return *s.Message_
 26525  	}
 26526  	return ""
 26527  }
 26528  
 26529  // OrigErr always returns nil, satisfies awserr.Error interface.
 26530  func (s *MaximumFileContentToLoadExceededException) OrigErr() error {
 26531  	return nil
 26532  }
 26533  
 26534  func (s *MaximumFileContentToLoadExceededException) Error() string {
 26535  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26536  }
 26537  
 26538  // Status code returns the HTTP status code for the request's response error.
 26539  func (s *MaximumFileContentToLoadExceededException) StatusCode() int {
 26540  	return s.RespMetadata.StatusCode
 26541  }
 26542  
 26543  // RequestID returns the service's response RequestID for request.
 26544  func (s *MaximumFileContentToLoadExceededException) RequestID() string {
 26545  	return s.RespMetadata.RequestID
 26546  }
 26547  
 26548  // The number of specified files to change as part of this commit exceeds the
 26549  // maximum number of files that can be changed in a single commit. Consider
 26550  // using a Git client for these changes.
 26551  type MaximumFileEntriesExceededException struct {
 26552  	_            struct{}                  `type:"structure"`
 26553  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26554  
 26555  	Message_ *string `locationName:"message" type:"string"`
 26556  }
 26557  
 26558  // String returns the string representation.
 26559  //
 26560  // API parameter values that are decorated as "sensitive" in the API will not
 26561  // be included in the string output. The member name will be present, but the
 26562  // value will be replaced with "sensitive".
 26563  func (s MaximumFileEntriesExceededException) String() string {
 26564  	return awsutil.Prettify(s)
 26565  }
 26566  
 26567  // GoString returns the string representation.
 26568  //
 26569  // API parameter values that are decorated as "sensitive" in the API will not
 26570  // be included in the string output. The member name will be present, but the
 26571  // value will be replaced with "sensitive".
 26572  func (s MaximumFileEntriesExceededException) GoString() string {
 26573  	return s.String()
 26574  }
 26575  
 26576  func newErrorMaximumFileEntriesExceededException(v protocol.ResponseMetadata) error {
 26577  	return &MaximumFileEntriesExceededException{
 26578  		RespMetadata: v,
 26579  	}
 26580  }
 26581  
 26582  // Code returns the exception type name.
 26583  func (s *MaximumFileEntriesExceededException) Code() string {
 26584  	return "MaximumFileEntriesExceededException"
 26585  }
 26586  
 26587  // Message returns the exception's message.
 26588  func (s *MaximumFileEntriesExceededException) Message() string {
 26589  	if s.Message_ != nil {
 26590  		return *s.Message_
 26591  	}
 26592  	return ""
 26593  }
 26594  
 26595  // OrigErr always returns nil, satisfies awserr.Error interface.
 26596  func (s *MaximumFileEntriesExceededException) OrigErr() error {
 26597  	return nil
 26598  }
 26599  
 26600  func (s *MaximumFileEntriesExceededException) Error() string {
 26601  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26602  }
 26603  
 26604  // Status code returns the HTTP status code for the request's response error.
 26605  func (s *MaximumFileEntriesExceededException) StatusCode() int {
 26606  	return s.RespMetadata.StatusCode
 26607  }
 26608  
 26609  // RequestID returns the service's response RequestID for request.
 26610  func (s *MaximumFileEntriesExceededException) RequestID() string {
 26611  	return s.RespMetadata.RequestID
 26612  }
 26613  
 26614  // The number of items to compare between the source or destination branches
 26615  // and the merge base has exceeded the maximum allowed.
 26616  type MaximumItemsToCompareExceededException struct {
 26617  	_            struct{}                  `type:"structure"`
 26618  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26619  
 26620  	Message_ *string `locationName:"message" type:"string"`
 26621  }
 26622  
 26623  // String returns the string representation.
 26624  //
 26625  // API parameter values that are decorated as "sensitive" in the API will not
 26626  // be included in the string output. The member name will be present, but the
 26627  // value will be replaced with "sensitive".
 26628  func (s MaximumItemsToCompareExceededException) String() string {
 26629  	return awsutil.Prettify(s)
 26630  }
 26631  
 26632  // GoString returns the string representation.
 26633  //
 26634  // API parameter values that are decorated as "sensitive" in the API will not
 26635  // be included in the string output. The member name will be present, but the
 26636  // value will be replaced with "sensitive".
 26637  func (s MaximumItemsToCompareExceededException) GoString() string {
 26638  	return s.String()
 26639  }
 26640  
 26641  func newErrorMaximumItemsToCompareExceededException(v protocol.ResponseMetadata) error {
 26642  	return &MaximumItemsToCompareExceededException{
 26643  		RespMetadata: v,
 26644  	}
 26645  }
 26646  
 26647  // Code returns the exception type name.
 26648  func (s *MaximumItemsToCompareExceededException) Code() string {
 26649  	return "MaximumItemsToCompareExceededException"
 26650  }
 26651  
 26652  // Message returns the exception's message.
 26653  func (s *MaximumItemsToCompareExceededException) Message() string {
 26654  	if s.Message_ != nil {
 26655  		return *s.Message_
 26656  	}
 26657  	return ""
 26658  }
 26659  
 26660  // OrigErr always returns nil, satisfies awserr.Error interface.
 26661  func (s *MaximumItemsToCompareExceededException) OrigErr() error {
 26662  	return nil
 26663  }
 26664  
 26665  func (s *MaximumItemsToCompareExceededException) Error() string {
 26666  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26667  }
 26668  
 26669  // Status code returns the HTTP status code for the request's response error.
 26670  func (s *MaximumItemsToCompareExceededException) StatusCode() int {
 26671  	return s.RespMetadata.StatusCode
 26672  }
 26673  
 26674  // RequestID returns the service's response RequestID for request.
 26675  func (s *MaximumItemsToCompareExceededException) RequestID() string {
 26676  	return s.RespMetadata.RequestID
 26677  }
 26678  
 26679  // The number of approvals required for the approval rule exceeds the maximum
 26680  // number allowed.
 26681  type MaximumNumberOfApprovalsExceededException struct {
 26682  	_            struct{}                  `type:"structure"`
 26683  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26684  
 26685  	Message_ *string `locationName:"message" type:"string"`
 26686  }
 26687  
 26688  // String returns the string representation.
 26689  //
 26690  // API parameter values that are decorated as "sensitive" in the API will not
 26691  // be included in the string output. The member name will be present, but the
 26692  // value will be replaced with "sensitive".
 26693  func (s MaximumNumberOfApprovalsExceededException) String() string {
 26694  	return awsutil.Prettify(s)
 26695  }
 26696  
 26697  // GoString returns the string representation.
 26698  //
 26699  // API parameter values that are decorated as "sensitive" in the API will not
 26700  // be included in the string output. The member name will be present, but the
 26701  // value will be replaced with "sensitive".
 26702  func (s MaximumNumberOfApprovalsExceededException) GoString() string {
 26703  	return s.String()
 26704  }
 26705  
 26706  func newErrorMaximumNumberOfApprovalsExceededException(v protocol.ResponseMetadata) error {
 26707  	return &MaximumNumberOfApprovalsExceededException{
 26708  		RespMetadata: v,
 26709  	}
 26710  }
 26711  
 26712  // Code returns the exception type name.
 26713  func (s *MaximumNumberOfApprovalsExceededException) Code() string {
 26714  	return "MaximumNumberOfApprovalsExceededException"
 26715  }
 26716  
 26717  // Message returns the exception's message.
 26718  func (s *MaximumNumberOfApprovalsExceededException) Message() string {
 26719  	if s.Message_ != nil {
 26720  		return *s.Message_
 26721  	}
 26722  	return ""
 26723  }
 26724  
 26725  // OrigErr always returns nil, satisfies awserr.Error interface.
 26726  func (s *MaximumNumberOfApprovalsExceededException) OrigErr() error {
 26727  	return nil
 26728  }
 26729  
 26730  func (s *MaximumNumberOfApprovalsExceededException) Error() string {
 26731  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26732  }
 26733  
 26734  // Status code returns the HTTP status code for the request's response error.
 26735  func (s *MaximumNumberOfApprovalsExceededException) StatusCode() int {
 26736  	return s.RespMetadata.StatusCode
 26737  }
 26738  
 26739  // RequestID returns the service's response RequestID for request.
 26740  func (s *MaximumNumberOfApprovalsExceededException) RequestID() string {
 26741  	return s.RespMetadata.RequestID
 26742  }
 26743  
 26744  // You cannot create the pull request because the repository has too many open
 26745  // pull requests. The maximum number of open pull requests for a repository
 26746  // is 1,000. Close one or more open pull requests, and then try again.
 26747  type MaximumOpenPullRequestsExceededException struct {
 26748  	_            struct{}                  `type:"structure"`
 26749  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26750  
 26751  	Message_ *string `locationName:"message" type:"string"`
 26752  }
 26753  
 26754  // String returns the string representation.
 26755  //
 26756  // API parameter values that are decorated as "sensitive" in the API will not
 26757  // be included in the string output. The member name will be present, but the
 26758  // value will be replaced with "sensitive".
 26759  func (s MaximumOpenPullRequestsExceededException) String() string {
 26760  	return awsutil.Prettify(s)
 26761  }
 26762  
 26763  // GoString returns the string representation.
 26764  //
 26765  // API parameter values that are decorated as "sensitive" in the API will not
 26766  // be included in the string output. The member name will be present, but the
 26767  // value will be replaced with "sensitive".
 26768  func (s MaximumOpenPullRequestsExceededException) GoString() string {
 26769  	return s.String()
 26770  }
 26771  
 26772  func newErrorMaximumOpenPullRequestsExceededException(v protocol.ResponseMetadata) error {
 26773  	return &MaximumOpenPullRequestsExceededException{
 26774  		RespMetadata: v,
 26775  	}
 26776  }
 26777  
 26778  // Code returns the exception type name.
 26779  func (s *MaximumOpenPullRequestsExceededException) Code() string {
 26780  	return "MaximumOpenPullRequestsExceededException"
 26781  }
 26782  
 26783  // Message returns the exception's message.
 26784  func (s *MaximumOpenPullRequestsExceededException) Message() string {
 26785  	if s.Message_ != nil {
 26786  		return *s.Message_
 26787  	}
 26788  	return ""
 26789  }
 26790  
 26791  // OrigErr always returns nil, satisfies awserr.Error interface.
 26792  func (s *MaximumOpenPullRequestsExceededException) OrigErr() error {
 26793  	return nil
 26794  }
 26795  
 26796  func (s *MaximumOpenPullRequestsExceededException) Error() string {
 26797  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26798  }
 26799  
 26800  // Status code returns the HTTP status code for the request's response error.
 26801  func (s *MaximumOpenPullRequestsExceededException) StatusCode() int {
 26802  	return s.RespMetadata.StatusCode
 26803  }
 26804  
 26805  // RequestID returns the service's response RequestID for request.
 26806  func (s *MaximumOpenPullRequestsExceededException) RequestID() string {
 26807  	return s.RespMetadata.RequestID
 26808  }
 26809  
 26810  // The maximum number of allowed repository names was exceeded. Currently, this
 26811  // number is 100.
 26812  type MaximumRepositoryNamesExceededException struct {
 26813  	_            struct{}                  `type:"structure"`
 26814  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26815  
 26816  	Message_ *string `locationName:"message" type:"string"`
 26817  }
 26818  
 26819  // String returns the string representation.
 26820  //
 26821  // API parameter values that are decorated as "sensitive" in the API will not
 26822  // be included in the string output. The member name will be present, but the
 26823  // value will be replaced with "sensitive".
 26824  func (s MaximumRepositoryNamesExceededException) String() string {
 26825  	return awsutil.Prettify(s)
 26826  }
 26827  
 26828  // GoString returns the string representation.
 26829  //
 26830  // API parameter values that are decorated as "sensitive" in the API will not
 26831  // be included in the string output. The member name will be present, but the
 26832  // value will be replaced with "sensitive".
 26833  func (s MaximumRepositoryNamesExceededException) GoString() string {
 26834  	return s.String()
 26835  }
 26836  
 26837  func newErrorMaximumRepositoryNamesExceededException(v protocol.ResponseMetadata) error {
 26838  	return &MaximumRepositoryNamesExceededException{
 26839  		RespMetadata: v,
 26840  	}
 26841  }
 26842  
 26843  // Code returns the exception type name.
 26844  func (s *MaximumRepositoryNamesExceededException) Code() string {
 26845  	return "MaximumRepositoryNamesExceededException"
 26846  }
 26847  
 26848  // Message returns the exception's message.
 26849  func (s *MaximumRepositoryNamesExceededException) Message() string {
 26850  	if s.Message_ != nil {
 26851  		return *s.Message_
 26852  	}
 26853  	return ""
 26854  }
 26855  
 26856  // OrigErr always returns nil, satisfies awserr.Error interface.
 26857  func (s *MaximumRepositoryNamesExceededException) OrigErr() error {
 26858  	return nil
 26859  }
 26860  
 26861  func (s *MaximumRepositoryNamesExceededException) Error() string {
 26862  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26863  }
 26864  
 26865  // Status code returns the HTTP status code for the request's response error.
 26866  func (s *MaximumRepositoryNamesExceededException) StatusCode() int {
 26867  	return s.RespMetadata.StatusCode
 26868  }
 26869  
 26870  // RequestID returns the service's response RequestID for request.
 26871  func (s *MaximumRepositoryNamesExceededException) RequestID() string {
 26872  	return s.RespMetadata.RequestID
 26873  }
 26874  
 26875  // The number of triggers allowed for the repository was exceeded.
 26876  type MaximumRepositoryTriggersExceededException struct {
 26877  	_            struct{}                  `type:"structure"`
 26878  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26879  
 26880  	Message_ *string `locationName:"message" type:"string"`
 26881  }
 26882  
 26883  // String returns the string representation.
 26884  //
 26885  // API parameter values that are decorated as "sensitive" in the API will not
 26886  // be included in the string output. The member name will be present, but the
 26887  // value will be replaced with "sensitive".
 26888  func (s MaximumRepositoryTriggersExceededException) String() string {
 26889  	return awsutil.Prettify(s)
 26890  }
 26891  
 26892  // GoString returns the string representation.
 26893  //
 26894  // API parameter values that are decorated as "sensitive" in the API will not
 26895  // be included in the string output. The member name will be present, but the
 26896  // value will be replaced with "sensitive".
 26897  func (s MaximumRepositoryTriggersExceededException) GoString() string {
 26898  	return s.String()
 26899  }
 26900  
 26901  func newErrorMaximumRepositoryTriggersExceededException(v protocol.ResponseMetadata) error {
 26902  	return &MaximumRepositoryTriggersExceededException{
 26903  		RespMetadata: v,
 26904  	}
 26905  }
 26906  
 26907  // Code returns the exception type name.
 26908  func (s *MaximumRepositoryTriggersExceededException) Code() string {
 26909  	return "MaximumRepositoryTriggersExceededException"
 26910  }
 26911  
 26912  // Message returns the exception's message.
 26913  func (s *MaximumRepositoryTriggersExceededException) Message() string {
 26914  	if s.Message_ != nil {
 26915  		return *s.Message_
 26916  	}
 26917  	return ""
 26918  }
 26919  
 26920  // OrigErr always returns nil, satisfies awserr.Error interface.
 26921  func (s *MaximumRepositoryTriggersExceededException) OrigErr() error {
 26922  	return nil
 26923  }
 26924  
 26925  func (s *MaximumRepositoryTriggersExceededException) Error() string {
 26926  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26927  }
 26928  
 26929  // Status code returns the HTTP status code for the request's response error.
 26930  func (s *MaximumRepositoryTriggersExceededException) StatusCode() int {
 26931  	return s.RespMetadata.StatusCode
 26932  }
 26933  
 26934  // RequestID returns the service's response RequestID for request.
 26935  func (s *MaximumRepositoryTriggersExceededException) RequestID() string {
 26936  	return s.RespMetadata.RequestID
 26937  }
 26938  
 26939  // The maximum number of approval rule templates for a repository has been exceeded.
 26940  // You cannot associate more than 25 approval rule templates with a repository.
 26941  type MaximumRuleTemplatesAssociatedWithRepositoryException struct {
 26942  	_            struct{}                  `type:"structure"`
 26943  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 26944  
 26945  	Message_ *string `locationName:"message" type:"string"`
 26946  }
 26947  
 26948  // String returns the string representation.
 26949  //
 26950  // API parameter values that are decorated as "sensitive" in the API will not
 26951  // be included in the string output. The member name will be present, but the
 26952  // value will be replaced with "sensitive".
 26953  func (s MaximumRuleTemplatesAssociatedWithRepositoryException) String() string {
 26954  	return awsutil.Prettify(s)
 26955  }
 26956  
 26957  // GoString returns the string representation.
 26958  //
 26959  // API parameter values that are decorated as "sensitive" in the API will not
 26960  // be included in the string output. The member name will be present, but the
 26961  // value will be replaced with "sensitive".
 26962  func (s MaximumRuleTemplatesAssociatedWithRepositoryException) GoString() string {
 26963  	return s.String()
 26964  }
 26965  
 26966  func newErrorMaximumRuleTemplatesAssociatedWithRepositoryException(v protocol.ResponseMetadata) error {
 26967  	return &MaximumRuleTemplatesAssociatedWithRepositoryException{
 26968  		RespMetadata: v,
 26969  	}
 26970  }
 26971  
 26972  // Code returns the exception type name.
 26973  func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Code() string {
 26974  	return "MaximumRuleTemplatesAssociatedWithRepositoryException"
 26975  }
 26976  
 26977  // Message returns the exception's message.
 26978  func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Message() string {
 26979  	if s.Message_ != nil {
 26980  		return *s.Message_
 26981  	}
 26982  	return ""
 26983  }
 26984  
 26985  // OrigErr always returns nil, satisfies awserr.Error interface.
 26986  func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) OrigErr() error {
 26987  	return nil
 26988  }
 26989  
 26990  func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Error() string {
 26991  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 26992  }
 26993  
 26994  // Status code returns the HTTP status code for the request's response error.
 26995  func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) StatusCode() int {
 26996  	return s.RespMetadata.StatusCode
 26997  }
 26998  
 26999  // RequestID returns the service's response RequestID for request.
 27000  func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) RequestID() string {
 27001  	return s.RespMetadata.RequestID
 27002  }
 27003  
 27004  type MergeBranchesByFastForwardInput struct {
 27005  	_ struct{} `type:"structure"`
 27006  
 27007  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 27008  	// a commit (for example, a branch name or a full commit ID).
 27009  	//
 27010  	// DestinationCommitSpecifier is a required field
 27011  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 27012  
 27013  	// The name of the repository where you want to merge two branches.
 27014  	//
 27015  	// RepositoryName is a required field
 27016  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 27017  
 27018  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 27019  	// a commit (for example, a branch name or a full commit ID).
 27020  	//
 27021  	// SourceCommitSpecifier is a required field
 27022  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 27023  
 27024  	// The branch where the merge is applied.
 27025  	TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"`
 27026  }
 27027  
 27028  // String returns the string representation.
 27029  //
 27030  // API parameter values that are decorated as "sensitive" in the API will not
 27031  // be included in the string output. The member name will be present, but the
 27032  // value will be replaced with "sensitive".
 27033  func (s MergeBranchesByFastForwardInput) String() string {
 27034  	return awsutil.Prettify(s)
 27035  }
 27036  
 27037  // GoString returns the string representation.
 27038  //
 27039  // API parameter values that are decorated as "sensitive" in the API will not
 27040  // be included in the string output. The member name will be present, but the
 27041  // value will be replaced with "sensitive".
 27042  func (s MergeBranchesByFastForwardInput) GoString() string {
 27043  	return s.String()
 27044  }
 27045  
 27046  // Validate inspects the fields of the type to determine if they are valid.
 27047  func (s *MergeBranchesByFastForwardInput) Validate() error {
 27048  	invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByFastForwardInput"}
 27049  	if s.DestinationCommitSpecifier == nil {
 27050  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 27051  	}
 27052  	if s.RepositoryName == nil {
 27053  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 27054  	}
 27055  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 27056  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 27057  	}
 27058  	if s.SourceCommitSpecifier == nil {
 27059  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 27060  	}
 27061  	if s.TargetBranch != nil && len(*s.TargetBranch) < 1 {
 27062  		invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1))
 27063  	}
 27064  
 27065  	if invalidParams.Len() > 0 {
 27066  		return invalidParams
 27067  	}
 27068  	return nil
 27069  }
 27070  
 27071  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 27072  func (s *MergeBranchesByFastForwardInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByFastForwardInput {
 27073  	s.DestinationCommitSpecifier = &v
 27074  	return s
 27075  }
 27076  
 27077  // SetRepositoryName sets the RepositoryName field's value.
 27078  func (s *MergeBranchesByFastForwardInput) SetRepositoryName(v string) *MergeBranchesByFastForwardInput {
 27079  	s.RepositoryName = &v
 27080  	return s
 27081  }
 27082  
 27083  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 27084  func (s *MergeBranchesByFastForwardInput) SetSourceCommitSpecifier(v string) *MergeBranchesByFastForwardInput {
 27085  	s.SourceCommitSpecifier = &v
 27086  	return s
 27087  }
 27088  
 27089  // SetTargetBranch sets the TargetBranch field's value.
 27090  func (s *MergeBranchesByFastForwardInput) SetTargetBranch(v string) *MergeBranchesByFastForwardInput {
 27091  	s.TargetBranch = &v
 27092  	return s
 27093  }
 27094  
 27095  type MergeBranchesByFastForwardOutput struct {
 27096  	_ struct{} `type:"structure"`
 27097  
 27098  	// The commit ID of the merge in the destination or target branch.
 27099  	CommitId *string `locationName:"commitId" type:"string"`
 27100  
 27101  	// The tree ID of the merge in the destination or target branch.
 27102  	TreeId *string `locationName:"treeId" type:"string"`
 27103  }
 27104  
 27105  // String returns the string representation.
 27106  //
 27107  // API parameter values that are decorated as "sensitive" in the API will not
 27108  // be included in the string output. The member name will be present, but the
 27109  // value will be replaced with "sensitive".
 27110  func (s MergeBranchesByFastForwardOutput) String() string {
 27111  	return awsutil.Prettify(s)
 27112  }
 27113  
 27114  // GoString returns the string representation.
 27115  //
 27116  // API parameter values that are decorated as "sensitive" in the API will not
 27117  // be included in the string output. The member name will be present, but the
 27118  // value will be replaced with "sensitive".
 27119  func (s MergeBranchesByFastForwardOutput) GoString() string {
 27120  	return s.String()
 27121  }
 27122  
 27123  // SetCommitId sets the CommitId field's value.
 27124  func (s *MergeBranchesByFastForwardOutput) SetCommitId(v string) *MergeBranchesByFastForwardOutput {
 27125  	s.CommitId = &v
 27126  	return s
 27127  }
 27128  
 27129  // SetTreeId sets the TreeId field's value.
 27130  func (s *MergeBranchesByFastForwardOutput) SetTreeId(v string) *MergeBranchesByFastForwardOutput {
 27131  	s.TreeId = &v
 27132  	return s
 27133  }
 27134  
 27135  type MergeBranchesBySquashInput struct {
 27136  	_ struct{} `type:"structure"`
 27137  
 27138  	// The name of the author who created the commit. This information is used as
 27139  	// both the author and committer for the commit.
 27140  	AuthorName *string `locationName:"authorName" type:"string"`
 27141  
 27142  	// The commit message for the merge.
 27143  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 27144  
 27145  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 27146  	// is used, which returns a not-mergeable result if the same file has differences
 27147  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 27148  	// mergeable if the same file in both branches has differences on the same line.
 27149  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 27150  
 27151  	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
 27152  	// when resolving conflicts during a merge.
 27153  	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
 27154  
 27155  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 27156  	// automatically merging two versions of a file. The default is NONE, which
 27157  	// requires any conflicts to be resolved manually before the merge operation
 27158  	// is successful.
 27159  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 27160  
 27161  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 27162  	// a commit (for example, a branch name or a full commit ID).
 27163  	//
 27164  	// DestinationCommitSpecifier is a required field
 27165  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 27166  
 27167  	// The email address of the person merging the branches. This information is
 27168  	// used in the commit information for the merge.
 27169  	Email *string `locationName:"email" type:"string"`
 27170  
 27171  	// If the commit contains deletions, whether to keep a folder or folder structure
 27172  	// if the changes leave the folders empty. If this is specified as true, a .gitkeep
 27173  	// file is created for empty folders. The default is false.
 27174  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 27175  
 27176  	// The name of the repository where you want to merge two branches.
 27177  	//
 27178  	// RepositoryName is a required field
 27179  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 27180  
 27181  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 27182  	// a commit (for example, a branch name or a full commit ID).
 27183  	//
 27184  	// SourceCommitSpecifier is a required field
 27185  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 27186  
 27187  	// The branch where the merge is applied.
 27188  	TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"`
 27189  }
 27190  
 27191  // String returns the string representation.
 27192  //
 27193  // API parameter values that are decorated as "sensitive" in the API will not
 27194  // be included in the string output. The member name will be present, but the
 27195  // value will be replaced with "sensitive".
 27196  func (s MergeBranchesBySquashInput) String() string {
 27197  	return awsutil.Prettify(s)
 27198  }
 27199  
 27200  // GoString returns the string representation.
 27201  //
 27202  // API parameter values that are decorated as "sensitive" in the API will not
 27203  // be included in the string output. The member name will be present, but the
 27204  // value will be replaced with "sensitive".
 27205  func (s MergeBranchesBySquashInput) GoString() string {
 27206  	return s.String()
 27207  }
 27208  
 27209  // Validate inspects the fields of the type to determine if they are valid.
 27210  func (s *MergeBranchesBySquashInput) Validate() error {
 27211  	invalidParams := request.ErrInvalidParams{Context: "MergeBranchesBySquashInput"}
 27212  	if s.DestinationCommitSpecifier == nil {
 27213  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 27214  	}
 27215  	if s.RepositoryName == nil {
 27216  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 27217  	}
 27218  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 27219  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 27220  	}
 27221  	if s.SourceCommitSpecifier == nil {
 27222  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 27223  	}
 27224  	if s.TargetBranch != nil && len(*s.TargetBranch) < 1 {
 27225  		invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1))
 27226  	}
 27227  	if s.ConflictResolution != nil {
 27228  		if err := s.ConflictResolution.Validate(); err != nil {
 27229  			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
 27230  		}
 27231  	}
 27232  
 27233  	if invalidParams.Len() > 0 {
 27234  		return invalidParams
 27235  	}
 27236  	return nil
 27237  }
 27238  
 27239  // SetAuthorName sets the AuthorName field's value.
 27240  func (s *MergeBranchesBySquashInput) SetAuthorName(v string) *MergeBranchesBySquashInput {
 27241  	s.AuthorName = &v
 27242  	return s
 27243  }
 27244  
 27245  // SetCommitMessage sets the CommitMessage field's value.
 27246  func (s *MergeBranchesBySquashInput) SetCommitMessage(v string) *MergeBranchesBySquashInput {
 27247  	s.CommitMessage = &v
 27248  	return s
 27249  }
 27250  
 27251  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 27252  func (s *MergeBranchesBySquashInput) SetConflictDetailLevel(v string) *MergeBranchesBySquashInput {
 27253  	s.ConflictDetailLevel = &v
 27254  	return s
 27255  }
 27256  
 27257  // SetConflictResolution sets the ConflictResolution field's value.
 27258  func (s *MergeBranchesBySquashInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesBySquashInput {
 27259  	s.ConflictResolution = v
 27260  	return s
 27261  }
 27262  
 27263  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 27264  func (s *MergeBranchesBySquashInput) SetConflictResolutionStrategy(v string) *MergeBranchesBySquashInput {
 27265  	s.ConflictResolutionStrategy = &v
 27266  	return s
 27267  }
 27268  
 27269  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 27270  func (s *MergeBranchesBySquashInput) SetDestinationCommitSpecifier(v string) *MergeBranchesBySquashInput {
 27271  	s.DestinationCommitSpecifier = &v
 27272  	return s
 27273  }
 27274  
 27275  // SetEmail sets the Email field's value.
 27276  func (s *MergeBranchesBySquashInput) SetEmail(v string) *MergeBranchesBySquashInput {
 27277  	s.Email = &v
 27278  	return s
 27279  }
 27280  
 27281  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 27282  func (s *MergeBranchesBySquashInput) SetKeepEmptyFolders(v bool) *MergeBranchesBySquashInput {
 27283  	s.KeepEmptyFolders = &v
 27284  	return s
 27285  }
 27286  
 27287  // SetRepositoryName sets the RepositoryName field's value.
 27288  func (s *MergeBranchesBySquashInput) SetRepositoryName(v string) *MergeBranchesBySquashInput {
 27289  	s.RepositoryName = &v
 27290  	return s
 27291  }
 27292  
 27293  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 27294  func (s *MergeBranchesBySquashInput) SetSourceCommitSpecifier(v string) *MergeBranchesBySquashInput {
 27295  	s.SourceCommitSpecifier = &v
 27296  	return s
 27297  }
 27298  
 27299  // SetTargetBranch sets the TargetBranch field's value.
 27300  func (s *MergeBranchesBySquashInput) SetTargetBranch(v string) *MergeBranchesBySquashInput {
 27301  	s.TargetBranch = &v
 27302  	return s
 27303  }
 27304  
 27305  type MergeBranchesBySquashOutput struct {
 27306  	_ struct{} `type:"structure"`
 27307  
 27308  	// The commit ID of the merge in the destination or target branch.
 27309  	CommitId *string `locationName:"commitId" type:"string"`
 27310  
 27311  	// The tree ID of the merge in the destination or target branch.
 27312  	TreeId *string `locationName:"treeId" type:"string"`
 27313  }
 27314  
 27315  // String returns the string representation.
 27316  //
 27317  // API parameter values that are decorated as "sensitive" in the API will not
 27318  // be included in the string output. The member name will be present, but the
 27319  // value will be replaced with "sensitive".
 27320  func (s MergeBranchesBySquashOutput) String() string {
 27321  	return awsutil.Prettify(s)
 27322  }
 27323  
 27324  // GoString returns the string representation.
 27325  //
 27326  // API parameter values that are decorated as "sensitive" in the API will not
 27327  // be included in the string output. The member name will be present, but the
 27328  // value will be replaced with "sensitive".
 27329  func (s MergeBranchesBySquashOutput) GoString() string {
 27330  	return s.String()
 27331  }
 27332  
 27333  // SetCommitId sets the CommitId field's value.
 27334  func (s *MergeBranchesBySquashOutput) SetCommitId(v string) *MergeBranchesBySquashOutput {
 27335  	s.CommitId = &v
 27336  	return s
 27337  }
 27338  
 27339  // SetTreeId sets the TreeId field's value.
 27340  func (s *MergeBranchesBySquashOutput) SetTreeId(v string) *MergeBranchesBySquashOutput {
 27341  	s.TreeId = &v
 27342  	return s
 27343  }
 27344  
 27345  type MergeBranchesByThreeWayInput struct {
 27346  	_ struct{} `type:"structure"`
 27347  
 27348  	// The name of the author who created the commit. This information is used as
 27349  	// both the author and committer for the commit.
 27350  	AuthorName *string `locationName:"authorName" type:"string"`
 27351  
 27352  	// The commit message to include in the commit information for the merge.
 27353  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 27354  
 27355  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 27356  	// is used, which returns a not-mergeable result if the same file has differences
 27357  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 27358  	// mergeable if the same file in both branches has differences on the same line.
 27359  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 27360  
 27361  	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
 27362  	// when resolving conflicts during a merge.
 27363  	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
 27364  
 27365  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 27366  	// automatically merging two versions of a file. The default is NONE, which
 27367  	// requires any conflicts to be resolved manually before the merge operation
 27368  	// is successful.
 27369  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 27370  
 27371  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 27372  	// a commit (for example, a branch name or a full commit ID).
 27373  	//
 27374  	// DestinationCommitSpecifier is a required field
 27375  	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
 27376  
 27377  	// The email address of the person merging the branches. This information is
 27378  	// used in the commit information for the merge.
 27379  	Email *string `locationName:"email" type:"string"`
 27380  
 27381  	// If the commit contains deletions, whether to keep a folder or folder structure
 27382  	// if the changes leave the folders empty. If true, a .gitkeep file is created
 27383  	// for empty folders. The default is false.
 27384  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 27385  
 27386  	// The name of the repository where you want to merge two branches.
 27387  	//
 27388  	// RepositoryName is a required field
 27389  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 27390  
 27391  	// The branch, tag, HEAD, or other fully qualified reference used to identify
 27392  	// a commit (for example, a branch name or a full commit ID).
 27393  	//
 27394  	// SourceCommitSpecifier is a required field
 27395  	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
 27396  
 27397  	// The branch where the merge is applied.
 27398  	TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"`
 27399  }
 27400  
 27401  // String returns the string representation.
 27402  //
 27403  // API parameter values that are decorated as "sensitive" in the API will not
 27404  // be included in the string output. The member name will be present, but the
 27405  // value will be replaced with "sensitive".
 27406  func (s MergeBranchesByThreeWayInput) String() string {
 27407  	return awsutil.Prettify(s)
 27408  }
 27409  
 27410  // GoString returns the string representation.
 27411  //
 27412  // API parameter values that are decorated as "sensitive" in the API will not
 27413  // be included in the string output. The member name will be present, but the
 27414  // value will be replaced with "sensitive".
 27415  func (s MergeBranchesByThreeWayInput) GoString() string {
 27416  	return s.String()
 27417  }
 27418  
 27419  // Validate inspects the fields of the type to determine if they are valid.
 27420  func (s *MergeBranchesByThreeWayInput) Validate() error {
 27421  	invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByThreeWayInput"}
 27422  	if s.DestinationCommitSpecifier == nil {
 27423  		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
 27424  	}
 27425  	if s.RepositoryName == nil {
 27426  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 27427  	}
 27428  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 27429  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 27430  	}
 27431  	if s.SourceCommitSpecifier == nil {
 27432  		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
 27433  	}
 27434  	if s.TargetBranch != nil && len(*s.TargetBranch) < 1 {
 27435  		invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1))
 27436  	}
 27437  	if s.ConflictResolution != nil {
 27438  		if err := s.ConflictResolution.Validate(); err != nil {
 27439  			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
 27440  		}
 27441  	}
 27442  
 27443  	if invalidParams.Len() > 0 {
 27444  		return invalidParams
 27445  	}
 27446  	return nil
 27447  }
 27448  
 27449  // SetAuthorName sets the AuthorName field's value.
 27450  func (s *MergeBranchesByThreeWayInput) SetAuthorName(v string) *MergeBranchesByThreeWayInput {
 27451  	s.AuthorName = &v
 27452  	return s
 27453  }
 27454  
 27455  // SetCommitMessage sets the CommitMessage field's value.
 27456  func (s *MergeBranchesByThreeWayInput) SetCommitMessage(v string) *MergeBranchesByThreeWayInput {
 27457  	s.CommitMessage = &v
 27458  	return s
 27459  }
 27460  
 27461  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 27462  func (s *MergeBranchesByThreeWayInput) SetConflictDetailLevel(v string) *MergeBranchesByThreeWayInput {
 27463  	s.ConflictDetailLevel = &v
 27464  	return s
 27465  }
 27466  
 27467  // SetConflictResolution sets the ConflictResolution field's value.
 27468  func (s *MergeBranchesByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesByThreeWayInput {
 27469  	s.ConflictResolution = v
 27470  	return s
 27471  }
 27472  
 27473  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 27474  func (s *MergeBranchesByThreeWayInput) SetConflictResolutionStrategy(v string) *MergeBranchesByThreeWayInput {
 27475  	s.ConflictResolutionStrategy = &v
 27476  	return s
 27477  }
 27478  
 27479  // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
 27480  func (s *MergeBranchesByThreeWayInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByThreeWayInput {
 27481  	s.DestinationCommitSpecifier = &v
 27482  	return s
 27483  }
 27484  
 27485  // SetEmail sets the Email field's value.
 27486  func (s *MergeBranchesByThreeWayInput) SetEmail(v string) *MergeBranchesByThreeWayInput {
 27487  	s.Email = &v
 27488  	return s
 27489  }
 27490  
 27491  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 27492  func (s *MergeBranchesByThreeWayInput) SetKeepEmptyFolders(v bool) *MergeBranchesByThreeWayInput {
 27493  	s.KeepEmptyFolders = &v
 27494  	return s
 27495  }
 27496  
 27497  // SetRepositoryName sets the RepositoryName field's value.
 27498  func (s *MergeBranchesByThreeWayInput) SetRepositoryName(v string) *MergeBranchesByThreeWayInput {
 27499  	s.RepositoryName = &v
 27500  	return s
 27501  }
 27502  
 27503  // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
 27504  func (s *MergeBranchesByThreeWayInput) SetSourceCommitSpecifier(v string) *MergeBranchesByThreeWayInput {
 27505  	s.SourceCommitSpecifier = &v
 27506  	return s
 27507  }
 27508  
 27509  // SetTargetBranch sets the TargetBranch field's value.
 27510  func (s *MergeBranchesByThreeWayInput) SetTargetBranch(v string) *MergeBranchesByThreeWayInput {
 27511  	s.TargetBranch = &v
 27512  	return s
 27513  }
 27514  
 27515  type MergeBranchesByThreeWayOutput struct {
 27516  	_ struct{} `type:"structure"`
 27517  
 27518  	// The commit ID of the merge in the destination or target branch.
 27519  	CommitId *string `locationName:"commitId" type:"string"`
 27520  
 27521  	// The tree ID of the merge in the destination or target branch.
 27522  	TreeId *string `locationName:"treeId" type:"string"`
 27523  }
 27524  
 27525  // String returns the string representation.
 27526  //
 27527  // API parameter values that are decorated as "sensitive" in the API will not
 27528  // be included in the string output. The member name will be present, but the
 27529  // value will be replaced with "sensitive".
 27530  func (s MergeBranchesByThreeWayOutput) String() string {
 27531  	return awsutil.Prettify(s)
 27532  }
 27533  
 27534  // GoString returns the string representation.
 27535  //
 27536  // API parameter values that are decorated as "sensitive" in the API will not
 27537  // be included in the string output. The member name will be present, but the
 27538  // value will be replaced with "sensitive".
 27539  func (s MergeBranchesByThreeWayOutput) GoString() string {
 27540  	return s.String()
 27541  }
 27542  
 27543  // SetCommitId sets the CommitId field's value.
 27544  func (s *MergeBranchesByThreeWayOutput) SetCommitId(v string) *MergeBranchesByThreeWayOutput {
 27545  	s.CommitId = &v
 27546  	return s
 27547  }
 27548  
 27549  // SetTreeId sets the TreeId field's value.
 27550  func (s *MergeBranchesByThreeWayOutput) SetTreeId(v string) *MergeBranchesByThreeWayOutput {
 27551  	s.TreeId = &v
 27552  	return s
 27553  }
 27554  
 27555  // Information about merge hunks in a merge or pull request operation.
 27556  type MergeHunk struct {
 27557  	_ struct{} `type:"structure"`
 27558  
 27559  	// Information about the merge hunk in the base of a merge or pull request.
 27560  	Base *MergeHunkDetail `locationName:"base" type:"structure"`
 27561  
 27562  	// Information about the merge hunk in the destination of a merge or pull request.
 27563  	Destination *MergeHunkDetail `locationName:"destination" type:"structure"`
 27564  
 27565  	// A Boolean value indicating whether a combination of hunks contains a conflict.
 27566  	// Conflicts occur when the same file or the same lines in a file were modified
 27567  	// in both the source and destination of a merge or pull request. Valid values
 27568  	// include true, false, and null. True when the hunk represents a conflict and
 27569  	// one or more files contains a line conflict. File mode conflicts in a merge
 27570  	// do not set this to true.
 27571  	IsConflict *bool `locationName:"isConflict" type:"boolean"`
 27572  
 27573  	// Information about the merge hunk in the source of a merge or pull request.
 27574  	Source *MergeHunkDetail `locationName:"source" type:"structure"`
 27575  }
 27576  
 27577  // String returns the string representation.
 27578  //
 27579  // API parameter values that are decorated as "sensitive" in the API will not
 27580  // be included in the string output. The member name will be present, but the
 27581  // value will be replaced with "sensitive".
 27582  func (s MergeHunk) String() string {
 27583  	return awsutil.Prettify(s)
 27584  }
 27585  
 27586  // GoString returns the string representation.
 27587  //
 27588  // API parameter values that are decorated as "sensitive" in the API will not
 27589  // be included in the string output. The member name will be present, but the
 27590  // value will be replaced with "sensitive".
 27591  func (s MergeHunk) GoString() string {
 27592  	return s.String()
 27593  }
 27594  
 27595  // SetBase sets the Base field's value.
 27596  func (s *MergeHunk) SetBase(v *MergeHunkDetail) *MergeHunk {
 27597  	s.Base = v
 27598  	return s
 27599  }
 27600  
 27601  // SetDestination sets the Destination field's value.
 27602  func (s *MergeHunk) SetDestination(v *MergeHunkDetail) *MergeHunk {
 27603  	s.Destination = v
 27604  	return s
 27605  }
 27606  
 27607  // SetIsConflict sets the IsConflict field's value.
 27608  func (s *MergeHunk) SetIsConflict(v bool) *MergeHunk {
 27609  	s.IsConflict = &v
 27610  	return s
 27611  }
 27612  
 27613  // SetSource sets the Source field's value.
 27614  func (s *MergeHunk) SetSource(v *MergeHunkDetail) *MergeHunk {
 27615  	s.Source = v
 27616  	return s
 27617  }
 27618  
 27619  // Information about the details of a merge hunk that contains a conflict in
 27620  // a merge or pull request operation.
 27621  type MergeHunkDetail struct {
 27622  	_ struct{} `type:"structure"`
 27623  
 27624  	// The end position of the hunk in the merge result.
 27625  	EndLine *int64 `locationName:"endLine" type:"integer"`
 27626  
 27627  	// The base-64 encoded content of the hunk merged region that might contain
 27628  	// a conflict.
 27629  	HunkContent *string `locationName:"hunkContent" type:"string"`
 27630  
 27631  	// The start position of the hunk in the merge result.
 27632  	StartLine *int64 `locationName:"startLine" type:"integer"`
 27633  }
 27634  
 27635  // String returns the string representation.
 27636  //
 27637  // API parameter values that are decorated as "sensitive" in the API will not
 27638  // be included in the string output. The member name will be present, but the
 27639  // value will be replaced with "sensitive".
 27640  func (s MergeHunkDetail) String() string {
 27641  	return awsutil.Prettify(s)
 27642  }
 27643  
 27644  // GoString returns the string representation.
 27645  //
 27646  // API parameter values that are decorated as "sensitive" in the API will not
 27647  // be included in the string output. The member name will be present, but the
 27648  // value will be replaced with "sensitive".
 27649  func (s MergeHunkDetail) GoString() string {
 27650  	return s.String()
 27651  }
 27652  
 27653  // SetEndLine sets the EndLine field's value.
 27654  func (s *MergeHunkDetail) SetEndLine(v int64) *MergeHunkDetail {
 27655  	s.EndLine = &v
 27656  	return s
 27657  }
 27658  
 27659  // SetHunkContent sets the HunkContent field's value.
 27660  func (s *MergeHunkDetail) SetHunkContent(v string) *MergeHunkDetail {
 27661  	s.HunkContent = &v
 27662  	return s
 27663  }
 27664  
 27665  // SetStartLine sets the StartLine field's value.
 27666  func (s *MergeHunkDetail) SetStartLine(v int64) *MergeHunkDetail {
 27667  	s.StartLine = &v
 27668  	return s
 27669  }
 27670  
 27671  // Returns information about a merge or potential merge between a source reference
 27672  // and a destination reference in a pull request.
 27673  type MergeMetadata struct {
 27674  	_ struct{} `type:"structure"`
 27675  
 27676  	// A Boolean value indicating whether the merge has been made.
 27677  	IsMerged *bool `locationName:"isMerged" type:"boolean"`
 27678  
 27679  	// The commit ID for the merge commit, if any.
 27680  	MergeCommitId *string `locationName:"mergeCommitId" type:"string"`
 27681  
 27682  	// The merge strategy used in the merge.
 27683  	MergeOption *string `locationName:"mergeOption" type:"string" enum:"MergeOptionTypeEnum"`
 27684  
 27685  	// The Amazon Resource Name (ARN) of the user who merged the branches.
 27686  	MergedBy *string `locationName:"mergedBy" type:"string"`
 27687  }
 27688  
 27689  // String returns the string representation.
 27690  //
 27691  // API parameter values that are decorated as "sensitive" in the API will not
 27692  // be included in the string output. The member name will be present, but the
 27693  // value will be replaced with "sensitive".
 27694  func (s MergeMetadata) String() string {
 27695  	return awsutil.Prettify(s)
 27696  }
 27697  
 27698  // GoString returns the string representation.
 27699  //
 27700  // API parameter values that are decorated as "sensitive" in the API will not
 27701  // be included in the string output. The member name will be present, but the
 27702  // value will be replaced with "sensitive".
 27703  func (s MergeMetadata) GoString() string {
 27704  	return s.String()
 27705  }
 27706  
 27707  // SetIsMerged sets the IsMerged field's value.
 27708  func (s *MergeMetadata) SetIsMerged(v bool) *MergeMetadata {
 27709  	s.IsMerged = &v
 27710  	return s
 27711  }
 27712  
 27713  // SetMergeCommitId sets the MergeCommitId field's value.
 27714  func (s *MergeMetadata) SetMergeCommitId(v string) *MergeMetadata {
 27715  	s.MergeCommitId = &v
 27716  	return s
 27717  }
 27718  
 27719  // SetMergeOption sets the MergeOption field's value.
 27720  func (s *MergeMetadata) SetMergeOption(v string) *MergeMetadata {
 27721  	s.MergeOption = &v
 27722  	return s
 27723  }
 27724  
 27725  // SetMergedBy sets the MergedBy field's value.
 27726  func (s *MergeMetadata) SetMergedBy(v string) *MergeMetadata {
 27727  	s.MergedBy = &v
 27728  	return s
 27729  }
 27730  
 27731  // Information about the file operation conflicts in a merge operation.
 27732  type MergeOperations struct {
 27733  	_ struct{} `type:"structure"`
 27734  
 27735  	// The operation on a file in the destination of a merge or pull request.
 27736  	Destination *string `locationName:"destination" type:"string" enum:"ChangeTypeEnum"`
 27737  
 27738  	// The operation (add, modify, or delete) on a file in the source of a merge
 27739  	// or pull request.
 27740  	Source *string `locationName:"source" type:"string" enum:"ChangeTypeEnum"`
 27741  }
 27742  
 27743  // String returns the string representation.
 27744  //
 27745  // API parameter values that are decorated as "sensitive" in the API will not
 27746  // be included in the string output. The member name will be present, but the
 27747  // value will be replaced with "sensitive".
 27748  func (s MergeOperations) String() string {
 27749  	return awsutil.Prettify(s)
 27750  }
 27751  
 27752  // GoString returns the string representation.
 27753  //
 27754  // API parameter values that are decorated as "sensitive" in the API will not
 27755  // be included in the string output. The member name will be present, but the
 27756  // value will be replaced with "sensitive".
 27757  func (s MergeOperations) GoString() string {
 27758  	return s.String()
 27759  }
 27760  
 27761  // SetDestination sets the Destination field's value.
 27762  func (s *MergeOperations) SetDestination(v string) *MergeOperations {
 27763  	s.Destination = &v
 27764  	return s
 27765  }
 27766  
 27767  // SetSource sets the Source field's value.
 27768  func (s *MergeOperations) SetSource(v string) *MergeOperations {
 27769  	s.Source = &v
 27770  	return s
 27771  }
 27772  
 27773  // A merge option or stategy is required, and none was provided.
 27774  type MergeOptionRequiredException struct {
 27775  	_            struct{}                  `type:"structure"`
 27776  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 27777  
 27778  	Message_ *string `locationName:"message" type:"string"`
 27779  }
 27780  
 27781  // String returns the string representation.
 27782  //
 27783  // API parameter values that are decorated as "sensitive" in the API will not
 27784  // be included in the string output. The member name will be present, but the
 27785  // value will be replaced with "sensitive".
 27786  func (s MergeOptionRequiredException) String() string {
 27787  	return awsutil.Prettify(s)
 27788  }
 27789  
 27790  // GoString returns the string representation.
 27791  //
 27792  // API parameter values that are decorated as "sensitive" in the API will not
 27793  // be included in the string output. The member name will be present, but the
 27794  // value will be replaced with "sensitive".
 27795  func (s MergeOptionRequiredException) GoString() string {
 27796  	return s.String()
 27797  }
 27798  
 27799  func newErrorMergeOptionRequiredException(v protocol.ResponseMetadata) error {
 27800  	return &MergeOptionRequiredException{
 27801  		RespMetadata: v,
 27802  	}
 27803  }
 27804  
 27805  // Code returns the exception type name.
 27806  func (s *MergeOptionRequiredException) Code() string {
 27807  	return "MergeOptionRequiredException"
 27808  }
 27809  
 27810  // Message returns the exception's message.
 27811  func (s *MergeOptionRequiredException) Message() string {
 27812  	if s.Message_ != nil {
 27813  		return *s.Message_
 27814  	}
 27815  	return ""
 27816  }
 27817  
 27818  // OrigErr always returns nil, satisfies awserr.Error interface.
 27819  func (s *MergeOptionRequiredException) OrigErr() error {
 27820  	return nil
 27821  }
 27822  
 27823  func (s *MergeOptionRequiredException) Error() string {
 27824  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 27825  }
 27826  
 27827  // Status code returns the HTTP status code for the request's response error.
 27828  func (s *MergeOptionRequiredException) StatusCode() int {
 27829  	return s.RespMetadata.StatusCode
 27830  }
 27831  
 27832  // RequestID returns the service's response RequestID for request.
 27833  func (s *MergeOptionRequiredException) RequestID() string {
 27834  	return s.RespMetadata.RequestID
 27835  }
 27836  
 27837  type MergePullRequestByFastForwardInput struct {
 27838  	_ struct{} `type:"structure"`
 27839  
 27840  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 27841  	//
 27842  	// PullRequestId is a required field
 27843  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 27844  
 27845  	// The name of the repository where the pull request was created.
 27846  	//
 27847  	// RepositoryName is a required field
 27848  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 27849  
 27850  	// The full commit ID of the original or updated commit in the pull request
 27851  	// source branch. Pass this value if you want an exception thrown if the current
 27852  	// commit ID of the tip of the source branch does not match this commit ID.
 27853  	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
 27854  }
 27855  
 27856  // String returns the string representation.
 27857  //
 27858  // API parameter values that are decorated as "sensitive" in the API will not
 27859  // be included in the string output. The member name will be present, but the
 27860  // value will be replaced with "sensitive".
 27861  func (s MergePullRequestByFastForwardInput) String() string {
 27862  	return awsutil.Prettify(s)
 27863  }
 27864  
 27865  // GoString returns the string representation.
 27866  //
 27867  // API parameter values that are decorated as "sensitive" in the API will not
 27868  // be included in the string output. The member name will be present, but the
 27869  // value will be replaced with "sensitive".
 27870  func (s MergePullRequestByFastForwardInput) GoString() string {
 27871  	return s.String()
 27872  }
 27873  
 27874  // Validate inspects the fields of the type to determine if they are valid.
 27875  func (s *MergePullRequestByFastForwardInput) Validate() error {
 27876  	invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByFastForwardInput"}
 27877  	if s.PullRequestId == nil {
 27878  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 27879  	}
 27880  	if s.RepositoryName == nil {
 27881  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 27882  	}
 27883  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 27884  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 27885  	}
 27886  
 27887  	if invalidParams.Len() > 0 {
 27888  		return invalidParams
 27889  	}
 27890  	return nil
 27891  }
 27892  
 27893  // SetPullRequestId sets the PullRequestId field's value.
 27894  func (s *MergePullRequestByFastForwardInput) SetPullRequestId(v string) *MergePullRequestByFastForwardInput {
 27895  	s.PullRequestId = &v
 27896  	return s
 27897  }
 27898  
 27899  // SetRepositoryName sets the RepositoryName field's value.
 27900  func (s *MergePullRequestByFastForwardInput) SetRepositoryName(v string) *MergePullRequestByFastForwardInput {
 27901  	s.RepositoryName = &v
 27902  	return s
 27903  }
 27904  
 27905  // SetSourceCommitId sets the SourceCommitId field's value.
 27906  func (s *MergePullRequestByFastForwardInput) SetSourceCommitId(v string) *MergePullRequestByFastForwardInput {
 27907  	s.SourceCommitId = &v
 27908  	return s
 27909  }
 27910  
 27911  type MergePullRequestByFastForwardOutput struct {
 27912  	_ struct{} `type:"structure"`
 27913  
 27914  	// Information about the specified pull request, including the merge.
 27915  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
 27916  }
 27917  
 27918  // String returns the string representation.
 27919  //
 27920  // API parameter values that are decorated as "sensitive" in the API will not
 27921  // be included in the string output. The member name will be present, but the
 27922  // value will be replaced with "sensitive".
 27923  func (s MergePullRequestByFastForwardOutput) String() string {
 27924  	return awsutil.Prettify(s)
 27925  }
 27926  
 27927  // GoString returns the string representation.
 27928  //
 27929  // API parameter values that are decorated as "sensitive" in the API will not
 27930  // be included in the string output. The member name will be present, but the
 27931  // value will be replaced with "sensitive".
 27932  func (s MergePullRequestByFastForwardOutput) GoString() string {
 27933  	return s.String()
 27934  }
 27935  
 27936  // SetPullRequest sets the PullRequest field's value.
 27937  func (s *MergePullRequestByFastForwardOutput) SetPullRequest(v *PullRequest) *MergePullRequestByFastForwardOutput {
 27938  	s.PullRequest = v
 27939  	return s
 27940  }
 27941  
 27942  type MergePullRequestBySquashInput struct {
 27943  	_ struct{} `type:"structure"`
 27944  
 27945  	// The name of the author who created the commit. This information is used as
 27946  	// both the author and committer for the commit.
 27947  	AuthorName *string `locationName:"authorName" type:"string"`
 27948  
 27949  	// The commit message to include in the commit information for the merge.
 27950  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 27951  
 27952  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 27953  	// is used, which returns a not-mergeable result if the same file has differences
 27954  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 27955  	// mergeable if the same file in both branches has differences on the same line.
 27956  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 27957  
 27958  	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
 27959  	// when resolving conflicts during a merge.
 27960  	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
 27961  
 27962  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 27963  	// automatically merging two versions of a file. The default is NONE, which
 27964  	// requires any conflicts to be resolved manually before the merge operation
 27965  	// is successful.
 27966  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 27967  
 27968  	// The email address of the person merging the branches. This information is
 27969  	// used in the commit information for the merge.
 27970  	Email *string `locationName:"email" type:"string"`
 27971  
 27972  	// If the commit contains deletions, whether to keep a folder or folder structure
 27973  	// if the changes leave the folders empty. If true, a .gitkeep file is created
 27974  	// for empty folders. The default is false.
 27975  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 27976  
 27977  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 27978  	//
 27979  	// PullRequestId is a required field
 27980  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 27981  
 27982  	// The name of the repository where the pull request was created.
 27983  	//
 27984  	// RepositoryName is a required field
 27985  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 27986  
 27987  	// The full commit ID of the original or updated commit in the pull request
 27988  	// source branch. Pass this value if you want an exception thrown if the current
 27989  	// commit ID of the tip of the source branch does not match this commit ID.
 27990  	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
 27991  }
 27992  
 27993  // String returns the string representation.
 27994  //
 27995  // API parameter values that are decorated as "sensitive" in the API will not
 27996  // be included in the string output. The member name will be present, but the
 27997  // value will be replaced with "sensitive".
 27998  func (s MergePullRequestBySquashInput) String() string {
 27999  	return awsutil.Prettify(s)
 28000  }
 28001  
 28002  // GoString returns the string representation.
 28003  //
 28004  // API parameter values that are decorated as "sensitive" in the API will not
 28005  // be included in the string output. The member name will be present, but the
 28006  // value will be replaced with "sensitive".
 28007  func (s MergePullRequestBySquashInput) GoString() string {
 28008  	return s.String()
 28009  }
 28010  
 28011  // Validate inspects the fields of the type to determine if they are valid.
 28012  func (s *MergePullRequestBySquashInput) Validate() error {
 28013  	invalidParams := request.ErrInvalidParams{Context: "MergePullRequestBySquashInput"}
 28014  	if s.PullRequestId == nil {
 28015  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 28016  	}
 28017  	if s.RepositoryName == nil {
 28018  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 28019  	}
 28020  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 28021  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 28022  	}
 28023  	if s.ConflictResolution != nil {
 28024  		if err := s.ConflictResolution.Validate(); err != nil {
 28025  			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
 28026  		}
 28027  	}
 28028  
 28029  	if invalidParams.Len() > 0 {
 28030  		return invalidParams
 28031  	}
 28032  	return nil
 28033  }
 28034  
 28035  // SetAuthorName sets the AuthorName field's value.
 28036  func (s *MergePullRequestBySquashInput) SetAuthorName(v string) *MergePullRequestBySquashInput {
 28037  	s.AuthorName = &v
 28038  	return s
 28039  }
 28040  
 28041  // SetCommitMessage sets the CommitMessage field's value.
 28042  func (s *MergePullRequestBySquashInput) SetCommitMessage(v string) *MergePullRequestBySquashInput {
 28043  	s.CommitMessage = &v
 28044  	return s
 28045  }
 28046  
 28047  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 28048  func (s *MergePullRequestBySquashInput) SetConflictDetailLevel(v string) *MergePullRequestBySquashInput {
 28049  	s.ConflictDetailLevel = &v
 28050  	return s
 28051  }
 28052  
 28053  // SetConflictResolution sets the ConflictResolution field's value.
 28054  func (s *MergePullRequestBySquashInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestBySquashInput {
 28055  	s.ConflictResolution = v
 28056  	return s
 28057  }
 28058  
 28059  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 28060  func (s *MergePullRequestBySquashInput) SetConflictResolutionStrategy(v string) *MergePullRequestBySquashInput {
 28061  	s.ConflictResolutionStrategy = &v
 28062  	return s
 28063  }
 28064  
 28065  // SetEmail sets the Email field's value.
 28066  func (s *MergePullRequestBySquashInput) SetEmail(v string) *MergePullRequestBySquashInput {
 28067  	s.Email = &v
 28068  	return s
 28069  }
 28070  
 28071  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 28072  func (s *MergePullRequestBySquashInput) SetKeepEmptyFolders(v bool) *MergePullRequestBySquashInput {
 28073  	s.KeepEmptyFolders = &v
 28074  	return s
 28075  }
 28076  
 28077  // SetPullRequestId sets the PullRequestId field's value.
 28078  func (s *MergePullRequestBySquashInput) SetPullRequestId(v string) *MergePullRequestBySquashInput {
 28079  	s.PullRequestId = &v
 28080  	return s
 28081  }
 28082  
 28083  // SetRepositoryName sets the RepositoryName field's value.
 28084  func (s *MergePullRequestBySquashInput) SetRepositoryName(v string) *MergePullRequestBySquashInput {
 28085  	s.RepositoryName = &v
 28086  	return s
 28087  }
 28088  
 28089  // SetSourceCommitId sets the SourceCommitId field's value.
 28090  func (s *MergePullRequestBySquashInput) SetSourceCommitId(v string) *MergePullRequestBySquashInput {
 28091  	s.SourceCommitId = &v
 28092  	return s
 28093  }
 28094  
 28095  type MergePullRequestBySquashOutput struct {
 28096  	_ struct{} `type:"structure"`
 28097  
 28098  	// Returns information about a pull request.
 28099  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
 28100  }
 28101  
 28102  // String returns the string representation.
 28103  //
 28104  // API parameter values that are decorated as "sensitive" in the API will not
 28105  // be included in the string output. The member name will be present, but the
 28106  // value will be replaced with "sensitive".
 28107  func (s MergePullRequestBySquashOutput) String() string {
 28108  	return awsutil.Prettify(s)
 28109  }
 28110  
 28111  // GoString returns the string representation.
 28112  //
 28113  // API parameter values that are decorated as "sensitive" in the API will not
 28114  // be included in the string output. The member name will be present, but the
 28115  // value will be replaced with "sensitive".
 28116  func (s MergePullRequestBySquashOutput) GoString() string {
 28117  	return s.String()
 28118  }
 28119  
 28120  // SetPullRequest sets the PullRequest field's value.
 28121  func (s *MergePullRequestBySquashOutput) SetPullRequest(v *PullRequest) *MergePullRequestBySquashOutput {
 28122  	s.PullRequest = v
 28123  	return s
 28124  }
 28125  
 28126  type MergePullRequestByThreeWayInput struct {
 28127  	_ struct{} `type:"structure"`
 28128  
 28129  	// The name of the author who created the commit. This information is used as
 28130  	// both the author and committer for the commit.
 28131  	AuthorName *string `locationName:"authorName" type:"string"`
 28132  
 28133  	// The commit message to include in the commit information for the merge.
 28134  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 28135  
 28136  	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
 28137  	// is used, which returns a not-mergeable result if the same file has differences
 28138  	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
 28139  	// mergeable if the same file in both branches has differences on the same line.
 28140  	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
 28141  
 28142  	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
 28143  	// when resolving conflicts during a merge.
 28144  	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
 28145  
 28146  	// Specifies which branch to use when resolving conflicts, or whether to attempt
 28147  	// automatically merging two versions of a file. The default is NONE, which
 28148  	// requires any conflicts to be resolved manually before the merge operation
 28149  	// is successful.
 28150  	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
 28151  
 28152  	// The email address of the person merging the branches. This information is
 28153  	// used in the commit information for the merge.
 28154  	Email *string `locationName:"email" type:"string"`
 28155  
 28156  	// If the commit contains deletions, whether to keep a folder or folder structure
 28157  	// if the changes leave the folders empty. If true, a .gitkeep file is created
 28158  	// for empty folders. The default is false.
 28159  	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
 28160  
 28161  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 28162  	//
 28163  	// PullRequestId is a required field
 28164  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 28165  
 28166  	// The name of the repository where the pull request was created.
 28167  	//
 28168  	// RepositoryName is a required field
 28169  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 28170  
 28171  	// The full commit ID of the original or updated commit in the pull request
 28172  	// source branch. Pass this value if you want an exception thrown if the current
 28173  	// commit ID of the tip of the source branch does not match this commit ID.
 28174  	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
 28175  }
 28176  
 28177  // String returns the string representation.
 28178  //
 28179  // API parameter values that are decorated as "sensitive" in the API will not
 28180  // be included in the string output. The member name will be present, but the
 28181  // value will be replaced with "sensitive".
 28182  func (s MergePullRequestByThreeWayInput) String() string {
 28183  	return awsutil.Prettify(s)
 28184  }
 28185  
 28186  // GoString returns the string representation.
 28187  //
 28188  // API parameter values that are decorated as "sensitive" in the API will not
 28189  // be included in the string output. The member name will be present, but the
 28190  // value will be replaced with "sensitive".
 28191  func (s MergePullRequestByThreeWayInput) GoString() string {
 28192  	return s.String()
 28193  }
 28194  
 28195  // Validate inspects the fields of the type to determine if they are valid.
 28196  func (s *MergePullRequestByThreeWayInput) Validate() error {
 28197  	invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByThreeWayInput"}
 28198  	if s.PullRequestId == nil {
 28199  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 28200  	}
 28201  	if s.RepositoryName == nil {
 28202  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 28203  	}
 28204  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 28205  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 28206  	}
 28207  	if s.ConflictResolution != nil {
 28208  		if err := s.ConflictResolution.Validate(); err != nil {
 28209  			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
 28210  		}
 28211  	}
 28212  
 28213  	if invalidParams.Len() > 0 {
 28214  		return invalidParams
 28215  	}
 28216  	return nil
 28217  }
 28218  
 28219  // SetAuthorName sets the AuthorName field's value.
 28220  func (s *MergePullRequestByThreeWayInput) SetAuthorName(v string) *MergePullRequestByThreeWayInput {
 28221  	s.AuthorName = &v
 28222  	return s
 28223  }
 28224  
 28225  // SetCommitMessage sets the CommitMessage field's value.
 28226  func (s *MergePullRequestByThreeWayInput) SetCommitMessage(v string) *MergePullRequestByThreeWayInput {
 28227  	s.CommitMessage = &v
 28228  	return s
 28229  }
 28230  
 28231  // SetConflictDetailLevel sets the ConflictDetailLevel field's value.
 28232  func (s *MergePullRequestByThreeWayInput) SetConflictDetailLevel(v string) *MergePullRequestByThreeWayInput {
 28233  	s.ConflictDetailLevel = &v
 28234  	return s
 28235  }
 28236  
 28237  // SetConflictResolution sets the ConflictResolution field's value.
 28238  func (s *MergePullRequestByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestByThreeWayInput {
 28239  	s.ConflictResolution = v
 28240  	return s
 28241  }
 28242  
 28243  // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
 28244  func (s *MergePullRequestByThreeWayInput) SetConflictResolutionStrategy(v string) *MergePullRequestByThreeWayInput {
 28245  	s.ConflictResolutionStrategy = &v
 28246  	return s
 28247  }
 28248  
 28249  // SetEmail sets the Email field's value.
 28250  func (s *MergePullRequestByThreeWayInput) SetEmail(v string) *MergePullRequestByThreeWayInput {
 28251  	s.Email = &v
 28252  	return s
 28253  }
 28254  
 28255  // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
 28256  func (s *MergePullRequestByThreeWayInput) SetKeepEmptyFolders(v bool) *MergePullRequestByThreeWayInput {
 28257  	s.KeepEmptyFolders = &v
 28258  	return s
 28259  }
 28260  
 28261  // SetPullRequestId sets the PullRequestId field's value.
 28262  func (s *MergePullRequestByThreeWayInput) SetPullRequestId(v string) *MergePullRequestByThreeWayInput {
 28263  	s.PullRequestId = &v
 28264  	return s
 28265  }
 28266  
 28267  // SetRepositoryName sets the RepositoryName field's value.
 28268  func (s *MergePullRequestByThreeWayInput) SetRepositoryName(v string) *MergePullRequestByThreeWayInput {
 28269  	s.RepositoryName = &v
 28270  	return s
 28271  }
 28272  
 28273  // SetSourceCommitId sets the SourceCommitId field's value.
 28274  func (s *MergePullRequestByThreeWayInput) SetSourceCommitId(v string) *MergePullRequestByThreeWayInput {
 28275  	s.SourceCommitId = &v
 28276  	return s
 28277  }
 28278  
 28279  type MergePullRequestByThreeWayOutput struct {
 28280  	_ struct{} `type:"structure"`
 28281  
 28282  	// Returns information about a pull request.
 28283  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
 28284  }
 28285  
 28286  // String returns the string representation.
 28287  //
 28288  // API parameter values that are decorated as "sensitive" in the API will not
 28289  // be included in the string output. The member name will be present, but the
 28290  // value will be replaced with "sensitive".
 28291  func (s MergePullRequestByThreeWayOutput) String() string {
 28292  	return awsutil.Prettify(s)
 28293  }
 28294  
 28295  // GoString returns the string representation.
 28296  //
 28297  // API parameter values that are decorated as "sensitive" in the API will not
 28298  // be included in the string output. The member name will be present, but the
 28299  // value will be replaced with "sensitive".
 28300  func (s MergePullRequestByThreeWayOutput) GoString() string {
 28301  	return s.String()
 28302  }
 28303  
 28304  // SetPullRequest sets the PullRequest field's value.
 28305  func (s *MergePullRequestByThreeWayOutput) SetPullRequest(v *PullRequest) *MergePullRequestByThreeWayOutput {
 28306  	s.PullRequest = v
 28307  	return s
 28308  }
 28309  
 28310  // More than one conflict resolution entries exists for the conflict. A conflict
 28311  // can have only one conflict resolution entry.
 28312  type MultipleConflictResolutionEntriesException struct {
 28313  	_            struct{}                  `type:"structure"`
 28314  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28315  
 28316  	Message_ *string `locationName:"message" type:"string"`
 28317  }
 28318  
 28319  // String returns the string representation.
 28320  //
 28321  // API parameter values that are decorated as "sensitive" in the API will not
 28322  // be included in the string output. The member name will be present, but the
 28323  // value will be replaced with "sensitive".
 28324  func (s MultipleConflictResolutionEntriesException) String() string {
 28325  	return awsutil.Prettify(s)
 28326  }
 28327  
 28328  // GoString returns the string representation.
 28329  //
 28330  // API parameter values that are decorated as "sensitive" in the API will not
 28331  // be included in the string output. The member name will be present, but the
 28332  // value will be replaced with "sensitive".
 28333  func (s MultipleConflictResolutionEntriesException) GoString() string {
 28334  	return s.String()
 28335  }
 28336  
 28337  func newErrorMultipleConflictResolutionEntriesException(v protocol.ResponseMetadata) error {
 28338  	return &MultipleConflictResolutionEntriesException{
 28339  		RespMetadata: v,
 28340  	}
 28341  }
 28342  
 28343  // Code returns the exception type name.
 28344  func (s *MultipleConflictResolutionEntriesException) Code() string {
 28345  	return "MultipleConflictResolutionEntriesException"
 28346  }
 28347  
 28348  // Message returns the exception's message.
 28349  func (s *MultipleConflictResolutionEntriesException) Message() string {
 28350  	if s.Message_ != nil {
 28351  		return *s.Message_
 28352  	}
 28353  	return ""
 28354  }
 28355  
 28356  // OrigErr always returns nil, satisfies awserr.Error interface.
 28357  func (s *MultipleConflictResolutionEntriesException) OrigErr() error {
 28358  	return nil
 28359  }
 28360  
 28361  func (s *MultipleConflictResolutionEntriesException) Error() string {
 28362  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28363  }
 28364  
 28365  // Status code returns the HTTP status code for the request's response error.
 28366  func (s *MultipleConflictResolutionEntriesException) StatusCode() int {
 28367  	return s.RespMetadata.StatusCode
 28368  }
 28369  
 28370  // RequestID returns the service's response RequestID for request.
 28371  func (s *MultipleConflictResolutionEntriesException) RequestID() string {
 28372  	return s.RespMetadata.RequestID
 28373  }
 28374  
 28375  // You cannot include more than one repository in a pull request. Make sure
 28376  // you have specified only one repository name in your request, and then try
 28377  // again.
 28378  type MultipleRepositoriesInPullRequestException struct {
 28379  	_            struct{}                  `type:"structure"`
 28380  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28381  
 28382  	Message_ *string `locationName:"message" type:"string"`
 28383  }
 28384  
 28385  // String returns the string representation.
 28386  //
 28387  // API parameter values that are decorated as "sensitive" in the API will not
 28388  // be included in the string output. The member name will be present, but the
 28389  // value will be replaced with "sensitive".
 28390  func (s MultipleRepositoriesInPullRequestException) String() string {
 28391  	return awsutil.Prettify(s)
 28392  }
 28393  
 28394  // GoString returns the string representation.
 28395  //
 28396  // API parameter values that are decorated as "sensitive" in the API will not
 28397  // be included in the string output. The member name will be present, but the
 28398  // value will be replaced with "sensitive".
 28399  func (s MultipleRepositoriesInPullRequestException) GoString() string {
 28400  	return s.String()
 28401  }
 28402  
 28403  func newErrorMultipleRepositoriesInPullRequestException(v protocol.ResponseMetadata) error {
 28404  	return &MultipleRepositoriesInPullRequestException{
 28405  		RespMetadata: v,
 28406  	}
 28407  }
 28408  
 28409  // Code returns the exception type name.
 28410  func (s *MultipleRepositoriesInPullRequestException) Code() string {
 28411  	return "MultipleRepositoriesInPullRequestException"
 28412  }
 28413  
 28414  // Message returns the exception's message.
 28415  func (s *MultipleRepositoriesInPullRequestException) Message() string {
 28416  	if s.Message_ != nil {
 28417  		return *s.Message_
 28418  	}
 28419  	return ""
 28420  }
 28421  
 28422  // OrigErr always returns nil, satisfies awserr.Error interface.
 28423  func (s *MultipleRepositoriesInPullRequestException) OrigErr() error {
 28424  	return nil
 28425  }
 28426  
 28427  func (s *MultipleRepositoriesInPullRequestException) Error() string {
 28428  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28429  }
 28430  
 28431  // Status code returns the HTTP status code for the request's response error.
 28432  func (s *MultipleRepositoriesInPullRequestException) StatusCode() int {
 28433  	return s.RespMetadata.StatusCode
 28434  }
 28435  
 28436  // RequestID returns the service's response RequestID for request.
 28437  func (s *MultipleRepositoriesInPullRequestException) RequestID() string {
 28438  	return s.RespMetadata.RequestID
 28439  }
 28440  
 28441  // The user name is not valid because it has exceeded the character limit for
 28442  // author names.
 28443  type NameLengthExceededException struct {
 28444  	_            struct{}                  `type:"structure"`
 28445  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28446  
 28447  	Message_ *string `locationName:"message" type:"string"`
 28448  }
 28449  
 28450  // String returns the string representation.
 28451  //
 28452  // API parameter values that are decorated as "sensitive" in the API will not
 28453  // be included in the string output. The member name will be present, but the
 28454  // value will be replaced with "sensitive".
 28455  func (s NameLengthExceededException) String() string {
 28456  	return awsutil.Prettify(s)
 28457  }
 28458  
 28459  // GoString returns the string representation.
 28460  //
 28461  // API parameter values that are decorated as "sensitive" in the API will not
 28462  // be included in the string output. The member name will be present, but the
 28463  // value will be replaced with "sensitive".
 28464  func (s NameLengthExceededException) GoString() string {
 28465  	return s.String()
 28466  }
 28467  
 28468  func newErrorNameLengthExceededException(v protocol.ResponseMetadata) error {
 28469  	return &NameLengthExceededException{
 28470  		RespMetadata: v,
 28471  	}
 28472  }
 28473  
 28474  // Code returns the exception type name.
 28475  func (s *NameLengthExceededException) Code() string {
 28476  	return "NameLengthExceededException"
 28477  }
 28478  
 28479  // Message returns the exception's message.
 28480  func (s *NameLengthExceededException) Message() string {
 28481  	if s.Message_ != nil {
 28482  		return *s.Message_
 28483  	}
 28484  	return ""
 28485  }
 28486  
 28487  // OrigErr always returns nil, satisfies awserr.Error interface.
 28488  func (s *NameLengthExceededException) OrigErr() error {
 28489  	return nil
 28490  }
 28491  
 28492  func (s *NameLengthExceededException) Error() string {
 28493  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28494  }
 28495  
 28496  // Status code returns the HTTP status code for the request's response error.
 28497  func (s *NameLengthExceededException) StatusCode() int {
 28498  	return s.RespMetadata.StatusCode
 28499  }
 28500  
 28501  // RequestID returns the service's response RequestID for request.
 28502  func (s *NameLengthExceededException) RequestID() string {
 28503  	return s.RespMetadata.RequestID
 28504  }
 28505  
 28506  // The commit cannot be created because no changes will be made to the repository
 28507  // as a result of this commit. A commit must contain at least one change.
 28508  type NoChangeException struct {
 28509  	_            struct{}                  `type:"structure"`
 28510  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28511  
 28512  	Message_ *string `locationName:"message" type:"string"`
 28513  }
 28514  
 28515  // String returns the string representation.
 28516  //
 28517  // API parameter values that are decorated as "sensitive" in the API will not
 28518  // be included in the string output. The member name will be present, but the
 28519  // value will be replaced with "sensitive".
 28520  func (s NoChangeException) String() string {
 28521  	return awsutil.Prettify(s)
 28522  }
 28523  
 28524  // GoString returns the string representation.
 28525  //
 28526  // API parameter values that are decorated as "sensitive" in the API will not
 28527  // be included in the string output. The member name will be present, but the
 28528  // value will be replaced with "sensitive".
 28529  func (s NoChangeException) GoString() string {
 28530  	return s.String()
 28531  }
 28532  
 28533  func newErrorNoChangeException(v protocol.ResponseMetadata) error {
 28534  	return &NoChangeException{
 28535  		RespMetadata: v,
 28536  	}
 28537  }
 28538  
 28539  // Code returns the exception type name.
 28540  func (s *NoChangeException) Code() string {
 28541  	return "NoChangeException"
 28542  }
 28543  
 28544  // Message returns the exception's message.
 28545  func (s *NoChangeException) Message() string {
 28546  	if s.Message_ != nil {
 28547  		return *s.Message_
 28548  	}
 28549  	return ""
 28550  }
 28551  
 28552  // OrigErr always returns nil, satisfies awserr.Error interface.
 28553  func (s *NoChangeException) OrigErr() error {
 28554  	return nil
 28555  }
 28556  
 28557  func (s *NoChangeException) Error() string {
 28558  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28559  }
 28560  
 28561  // Status code returns the HTTP status code for the request's response error.
 28562  func (s *NoChangeException) StatusCode() int {
 28563  	return s.RespMetadata.StatusCode
 28564  }
 28565  
 28566  // RequestID returns the service's response RequestID for request.
 28567  func (s *NoChangeException) RequestID() string {
 28568  	return s.RespMetadata.RequestID
 28569  }
 28570  
 28571  // The maximum number of approval rule templates has been exceeded for this
 28572  // AWS Region.
 28573  type NumberOfRuleTemplatesExceededException struct {
 28574  	_            struct{}                  `type:"structure"`
 28575  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28576  
 28577  	Message_ *string `locationName:"message" type:"string"`
 28578  }
 28579  
 28580  // String returns the string representation.
 28581  //
 28582  // API parameter values that are decorated as "sensitive" in the API will not
 28583  // be included in the string output. The member name will be present, but the
 28584  // value will be replaced with "sensitive".
 28585  func (s NumberOfRuleTemplatesExceededException) String() string {
 28586  	return awsutil.Prettify(s)
 28587  }
 28588  
 28589  // GoString returns the string representation.
 28590  //
 28591  // API parameter values that are decorated as "sensitive" in the API will not
 28592  // be included in the string output. The member name will be present, but the
 28593  // value will be replaced with "sensitive".
 28594  func (s NumberOfRuleTemplatesExceededException) GoString() string {
 28595  	return s.String()
 28596  }
 28597  
 28598  func newErrorNumberOfRuleTemplatesExceededException(v protocol.ResponseMetadata) error {
 28599  	return &NumberOfRuleTemplatesExceededException{
 28600  		RespMetadata: v,
 28601  	}
 28602  }
 28603  
 28604  // Code returns the exception type name.
 28605  func (s *NumberOfRuleTemplatesExceededException) Code() string {
 28606  	return "NumberOfRuleTemplatesExceededException"
 28607  }
 28608  
 28609  // Message returns the exception's message.
 28610  func (s *NumberOfRuleTemplatesExceededException) Message() string {
 28611  	if s.Message_ != nil {
 28612  		return *s.Message_
 28613  	}
 28614  	return ""
 28615  }
 28616  
 28617  // OrigErr always returns nil, satisfies awserr.Error interface.
 28618  func (s *NumberOfRuleTemplatesExceededException) OrigErr() error {
 28619  	return nil
 28620  }
 28621  
 28622  func (s *NumberOfRuleTemplatesExceededException) Error() string {
 28623  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28624  }
 28625  
 28626  // Status code returns the HTTP status code for the request's response error.
 28627  func (s *NumberOfRuleTemplatesExceededException) StatusCode() int {
 28628  	return s.RespMetadata.StatusCode
 28629  }
 28630  
 28631  // RequestID returns the service's response RequestID for request.
 28632  func (s *NumberOfRuleTemplatesExceededException) RequestID() string {
 28633  	return s.RespMetadata.RequestID
 28634  }
 28635  
 28636  // The approval rule cannot be added. The pull request has the maximum number
 28637  // of approval rules associated with it.
 28638  type NumberOfRulesExceededException struct {
 28639  	_            struct{}                  `type:"structure"`
 28640  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28641  
 28642  	Message_ *string `locationName:"message" type:"string"`
 28643  }
 28644  
 28645  // String returns the string representation.
 28646  //
 28647  // API parameter values that are decorated as "sensitive" in the API will not
 28648  // be included in the string output. The member name will be present, but the
 28649  // value will be replaced with "sensitive".
 28650  func (s NumberOfRulesExceededException) String() string {
 28651  	return awsutil.Prettify(s)
 28652  }
 28653  
 28654  // GoString returns the string representation.
 28655  //
 28656  // API parameter values that are decorated as "sensitive" in the API will not
 28657  // be included in the string output. The member name will be present, but the
 28658  // value will be replaced with "sensitive".
 28659  func (s NumberOfRulesExceededException) GoString() string {
 28660  	return s.String()
 28661  }
 28662  
 28663  func newErrorNumberOfRulesExceededException(v protocol.ResponseMetadata) error {
 28664  	return &NumberOfRulesExceededException{
 28665  		RespMetadata: v,
 28666  	}
 28667  }
 28668  
 28669  // Code returns the exception type name.
 28670  func (s *NumberOfRulesExceededException) Code() string {
 28671  	return "NumberOfRulesExceededException"
 28672  }
 28673  
 28674  // Message returns the exception's message.
 28675  func (s *NumberOfRulesExceededException) Message() string {
 28676  	if s.Message_ != nil {
 28677  		return *s.Message_
 28678  	}
 28679  	return ""
 28680  }
 28681  
 28682  // OrigErr always returns nil, satisfies awserr.Error interface.
 28683  func (s *NumberOfRulesExceededException) OrigErr() error {
 28684  	return nil
 28685  }
 28686  
 28687  func (s *NumberOfRulesExceededException) Error() string {
 28688  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28689  }
 28690  
 28691  // Status code returns the HTTP status code for the request's response error.
 28692  func (s *NumberOfRulesExceededException) StatusCode() int {
 28693  	return s.RespMetadata.StatusCode
 28694  }
 28695  
 28696  // RequestID returns the service's response RequestID for request.
 28697  func (s *NumberOfRulesExceededException) RequestID() string {
 28698  	return s.RespMetadata.RequestID
 28699  }
 28700  
 28701  // Information about the type of an object in a merge operation.
 28702  type ObjectTypes struct {
 28703  	_ struct{} `type:"structure"`
 28704  
 28705  	// The type of the object in the base commit of the merge.
 28706  	Base *string `locationName:"base" type:"string" enum:"ObjectTypeEnum"`
 28707  
 28708  	// The type of the object in the destination branch.
 28709  	Destination *string `locationName:"destination" type:"string" enum:"ObjectTypeEnum"`
 28710  
 28711  	// The type of the object in the source branch.
 28712  	Source *string `locationName:"source" type:"string" enum:"ObjectTypeEnum"`
 28713  }
 28714  
 28715  // String returns the string representation.
 28716  //
 28717  // API parameter values that are decorated as "sensitive" in the API will not
 28718  // be included in the string output. The member name will be present, but the
 28719  // value will be replaced with "sensitive".
 28720  func (s ObjectTypes) String() string {
 28721  	return awsutil.Prettify(s)
 28722  }
 28723  
 28724  // GoString returns the string representation.
 28725  //
 28726  // API parameter values that are decorated as "sensitive" in the API will not
 28727  // be included in the string output. The member name will be present, but the
 28728  // value will be replaced with "sensitive".
 28729  func (s ObjectTypes) GoString() string {
 28730  	return s.String()
 28731  }
 28732  
 28733  // SetBase sets the Base field's value.
 28734  func (s *ObjectTypes) SetBase(v string) *ObjectTypes {
 28735  	s.Base = &v
 28736  	return s
 28737  }
 28738  
 28739  // SetDestination sets the Destination field's value.
 28740  func (s *ObjectTypes) SetDestination(v string) *ObjectTypes {
 28741  	s.Destination = &v
 28742  	return s
 28743  }
 28744  
 28745  // SetSource sets the Source field's value.
 28746  func (s *ObjectTypes) SetSource(v string) *ObjectTypes {
 28747  	s.Source = &v
 28748  	return s
 28749  }
 28750  
 28751  // Returns information about the template that created the approval rule for
 28752  // a pull request.
 28753  type OriginApprovalRuleTemplate struct {
 28754  	_ struct{} `type:"structure"`
 28755  
 28756  	// The ID of the template that created the approval rule.
 28757  	ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string"`
 28758  
 28759  	// The name of the template that created the approval rule.
 28760  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string"`
 28761  }
 28762  
 28763  // String returns the string representation.
 28764  //
 28765  // API parameter values that are decorated as "sensitive" in the API will not
 28766  // be included in the string output. The member name will be present, but the
 28767  // value will be replaced with "sensitive".
 28768  func (s OriginApprovalRuleTemplate) String() string {
 28769  	return awsutil.Prettify(s)
 28770  }
 28771  
 28772  // GoString returns the string representation.
 28773  //
 28774  // API parameter values that are decorated as "sensitive" in the API will not
 28775  // be included in the string output. The member name will be present, but the
 28776  // value will be replaced with "sensitive".
 28777  func (s OriginApprovalRuleTemplate) GoString() string {
 28778  	return s.String()
 28779  }
 28780  
 28781  // SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value.
 28782  func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateId(v string) *OriginApprovalRuleTemplate {
 28783  	s.ApprovalRuleTemplateId = &v
 28784  	return s
 28785  }
 28786  
 28787  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 28788  func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *OriginApprovalRuleTemplate {
 28789  	s.ApprovalRuleTemplateName = &v
 28790  	return s
 28791  }
 28792  
 28793  // The pull request has already had its approval rules set to override.
 28794  type OverrideAlreadySetException struct {
 28795  	_            struct{}                  `type:"structure"`
 28796  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28797  
 28798  	Message_ *string `locationName:"message" type:"string"`
 28799  }
 28800  
 28801  // String returns the string representation.
 28802  //
 28803  // API parameter values that are decorated as "sensitive" in the API will not
 28804  // be included in the string output. The member name will be present, but the
 28805  // value will be replaced with "sensitive".
 28806  func (s OverrideAlreadySetException) String() string {
 28807  	return awsutil.Prettify(s)
 28808  }
 28809  
 28810  // GoString returns the string representation.
 28811  //
 28812  // API parameter values that are decorated as "sensitive" in the API will not
 28813  // be included in the string output. The member name will be present, but the
 28814  // value will be replaced with "sensitive".
 28815  func (s OverrideAlreadySetException) GoString() string {
 28816  	return s.String()
 28817  }
 28818  
 28819  func newErrorOverrideAlreadySetException(v protocol.ResponseMetadata) error {
 28820  	return &OverrideAlreadySetException{
 28821  		RespMetadata: v,
 28822  	}
 28823  }
 28824  
 28825  // Code returns the exception type name.
 28826  func (s *OverrideAlreadySetException) Code() string {
 28827  	return "OverrideAlreadySetException"
 28828  }
 28829  
 28830  // Message returns the exception's message.
 28831  func (s *OverrideAlreadySetException) Message() string {
 28832  	if s.Message_ != nil {
 28833  		return *s.Message_
 28834  	}
 28835  	return ""
 28836  }
 28837  
 28838  // OrigErr always returns nil, satisfies awserr.Error interface.
 28839  func (s *OverrideAlreadySetException) OrigErr() error {
 28840  	return nil
 28841  }
 28842  
 28843  func (s *OverrideAlreadySetException) Error() string {
 28844  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 28845  }
 28846  
 28847  // Status code returns the HTTP status code for the request's response error.
 28848  func (s *OverrideAlreadySetException) StatusCode() int {
 28849  	return s.RespMetadata.StatusCode
 28850  }
 28851  
 28852  // RequestID returns the service's response RequestID for request.
 28853  func (s *OverrideAlreadySetException) RequestID() string {
 28854  	return s.RespMetadata.RequestID
 28855  }
 28856  
 28857  type OverridePullRequestApprovalRulesInput struct {
 28858  	_ struct{} `type:"structure"`
 28859  
 28860  	// Whether you want to set aside approval rule requirements for the pull request
 28861  	// (OVERRIDE) or revoke a previous override and apply approval rule requirements
 28862  	// (REVOKE). REVOKE status is not stored.
 28863  	//
 28864  	// OverrideStatus is a required field
 28865  	OverrideStatus *string `locationName:"overrideStatus" type:"string" required:"true" enum:"OverrideStatus"`
 28866  
 28867  	// The system-generated ID of the pull request for which you want to override
 28868  	// all approval rule requirements. To get this information, use GetPullRequest.
 28869  	//
 28870  	// PullRequestId is a required field
 28871  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 28872  
 28873  	// The system-generated ID of the most recent revision of the pull request.
 28874  	// You cannot override approval rules for anything but the most recent revision
 28875  	// of a pull request. To get the revision ID, use GetPullRequest.
 28876  	//
 28877  	// RevisionId is a required field
 28878  	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
 28879  }
 28880  
 28881  // String returns the string representation.
 28882  //
 28883  // API parameter values that are decorated as "sensitive" in the API will not
 28884  // be included in the string output. The member name will be present, but the
 28885  // value will be replaced with "sensitive".
 28886  func (s OverridePullRequestApprovalRulesInput) String() string {
 28887  	return awsutil.Prettify(s)
 28888  }
 28889  
 28890  // GoString returns the string representation.
 28891  //
 28892  // API parameter values that are decorated as "sensitive" in the API will not
 28893  // be included in the string output. The member name will be present, but the
 28894  // value will be replaced with "sensitive".
 28895  func (s OverridePullRequestApprovalRulesInput) GoString() string {
 28896  	return s.String()
 28897  }
 28898  
 28899  // Validate inspects the fields of the type to determine if they are valid.
 28900  func (s *OverridePullRequestApprovalRulesInput) Validate() error {
 28901  	invalidParams := request.ErrInvalidParams{Context: "OverridePullRequestApprovalRulesInput"}
 28902  	if s.OverrideStatus == nil {
 28903  		invalidParams.Add(request.NewErrParamRequired("OverrideStatus"))
 28904  	}
 28905  	if s.PullRequestId == nil {
 28906  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 28907  	}
 28908  	if s.RevisionId == nil {
 28909  		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
 28910  	}
 28911  
 28912  	if invalidParams.Len() > 0 {
 28913  		return invalidParams
 28914  	}
 28915  	return nil
 28916  }
 28917  
 28918  // SetOverrideStatus sets the OverrideStatus field's value.
 28919  func (s *OverridePullRequestApprovalRulesInput) SetOverrideStatus(v string) *OverridePullRequestApprovalRulesInput {
 28920  	s.OverrideStatus = &v
 28921  	return s
 28922  }
 28923  
 28924  // SetPullRequestId sets the PullRequestId field's value.
 28925  func (s *OverridePullRequestApprovalRulesInput) SetPullRequestId(v string) *OverridePullRequestApprovalRulesInput {
 28926  	s.PullRequestId = &v
 28927  	return s
 28928  }
 28929  
 28930  // SetRevisionId sets the RevisionId field's value.
 28931  func (s *OverridePullRequestApprovalRulesInput) SetRevisionId(v string) *OverridePullRequestApprovalRulesInput {
 28932  	s.RevisionId = &v
 28933  	return s
 28934  }
 28935  
 28936  type OverridePullRequestApprovalRulesOutput struct {
 28937  	_ struct{} `type:"structure"`
 28938  }
 28939  
 28940  // String returns the string representation.
 28941  //
 28942  // API parameter values that are decorated as "sensitive" in the API will not
 28943  // be included in the string output. The member name will be present, but the
 28944  // value will be replaced with "sensitive".
 28945  func (s OverridePullRequestApprovalRulesOutput) String() string {
 28946  	return awsutil.Prettify(s)
 28947  }
 28948  
 28949  // GoString returns the string representation.
 28950  //
 28951  // API parameter values that are decorated as "sensitive" in the API will not
 28952  // be included in the string output. The member name will be present, but the
 28953  // value will be replaced with "sensitive".
 28954  func (s OverridePullRequestApprovalRulesOutput) GoString() string {
 28955  	return s.String()
 28956  }
 28957  
 28958  // An override status is required, but no value was provided. Valid values include
 28959  // OVERRIDE and REVOKE.
 28960  type OverrideStatusRequiredException struct {
 28961  	_            struct{}                  `type:"structure"`
 28962  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 28963  
 28964  	Message_ *string `locationName:"message" type:"string"`
 28965  }
 28966  
 28967  // String returns the string representation.
 28968  //
 28969  // API parameter values that are decorated as "sensitive" in the API will not
 28970  // be included in the string output. The member name will be present, but the
 28971  // value will be replaced with "sensitive".
 28972  func (s OverrideStatusRequiredException) String() string {
 28973  	return awsutil.Prettify(s)
 28974  }
 28975  
 28976  // GoString returns the string representation.
 28977  //
 28978  // API parameter values that are decorated as "sensitive" in the API will not
 28979  // be included in the string output. The member name will be present, but the
 28980  // value will be replaced with "sensitive".
 28981  func (s OverrideStatusRequiredException) GoString() string {
 28982  	return s.String()
 28983  }
 28984  
 28985  func newErrorOverrideStatusRequiredException(v protocol.ResponseMetadata) error {
 28986  	return &OverrideStatusRequiredException{
 28987  		RespMetadata: v,
 28988  	}
 28989  }
 28990  
 28991  // Code returns the exception type name.
 28992  func (s *OverrideStatusRequiredException) Code() string {
 28993  	return "OverrideStatusRequiredException"
 28994  }
 28995  
 28996  // Message returns the exception's message.
 28997  func (s *OverrideStatusRequiredException) Message() string {
 28998  	if s.Message_ != nil {
 28999  		return *s.Message_
 29000  	}
 29001  	return ""
 29002  }
 29003  
 29004  // OrigErr always returns nil, satisfies awserr.Error interface.
 29005  func (s *OverrideStatusRequiredException) OrigErr() error {
 29006  	return nil
 29007  }
 29008  
 29009  func (s *OverrideStatusRequiredException) Error() string {
 29010  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 29011  }
 29012  
 29013  // Status code returns the HTTP status code for the request's response error.
 29014  func (s *OverrideStatusRequiredException) StatusCode() int {
 29015  	return s.RespMetadata.StatusCode
 29016  }
 29017  
 29018  // RequestID returns the service's response RequestID for request.
 29019  func (s *OverrideStatusRequiredException) RequestID() string {
 29020  	return s.RespMetadata.RequestID
 29021  }
 29022  
 29023  // The parent commit ID is not valid because it does not exist. The specified
 29024  // parent commit ID does not exist in the specified branch of the repository.
 29025  type ParentCommitDoesNotExistException struct {
 29026  	_            struct{}                  `type:"structure"`
 29027  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 29028  
 29029  	Message_ *string `locationName:"message" type:"string"`
 29030  }
 29031  
 29032  // String returns the string representation.
 29033  //
 29034  // API parameter values that are decorated as "sensitive" in the API will not
 29035  // be included in the string output. The member name will be present, but the
 29036  // value will be replaced with "sensitive".
 29037  func (s ParentCommitDoesNotExistException) String() string {
 29038  	return awsutil.Prettify(s)
 29039  }
 29040  
 29041  // GoString returns the string representation.
 29042  //
 29043  // API parameter values that are decorated as "sensitive" in the API will not
 29044  // be included in the string output. The member name will be present, but the
 29045  // value will be replaced with "sensitive".
 29046  func (s ParentCommitDoesNotExistException) GoString() string {
 29047  	return s.String()
 29048  }
 29049  
 29050  func newErrorParentCommitDoesNotExistException(v protocol.ResponseMetadata) error {
 29051  	return &ParentCommitDoesNotExistException{
 29052  		RespMetadata: v,
 29053  	}
 29054  }
 29055  
 29056  // Code returns the exception type name.
 29057  func (s *ParentCommitDoesNotExistException) Code() string {
 29058  	return "ParentCommitDoesNotExistException"
 29059  }
 29060  
 29061  // Message returns the exception's message.
 29062  func (s *ParentCommitDoesNotExistException) Message() string {
 29063  	if s.Message_ != nil {
 29064  		return *s.Message_
 29065  	}
 29066  	return ""
 29067  }
 29068  
 29069  // OrigErr always returns nil, satisfies awserr.Error interface.
 29070  func (s *ParentCommitDoesNotExistException) OrigErr() error {
 29071  	return nil
 29072  }
 29073  
 29074  func (s *ParentCommitDoesNotExistException) Error() string {
 29075  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 29076  }
 29077  
 29078  // Status code returns the HTTP status code for the request's response error.
 29079  func (s *ParentCommitDoesNotExistException) StatusCode() int {
 29080  	return s.RespMetadata.StatusCode
 29081  }
 29082  
 29083  // RequestID returns the service's response RequestID for request.
 29084  func (s *ParentCommitDoesNotExistException) RequestID() string {
 29085  	return s.RespMetadata.RequestID
 29086  }
 29087  
 29088  // The file could not be added because the provided parent commit ID is not
 29089  // the current tip of the specified branch. To view the full commit ID of the
 29090  // current head of the branch, use GetBranch.
 29091  type ParentCommitIdOutdatedException struct {
 29092  	_            struct{}                  `type:"structure"`
 29093  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 29094  
 29095  	Message_ *string `locationName:"message" type:"string"`
 29096  }
 29097  
 29098  // String returns the string representation.
 29099  //
 29100  // API parameter values that are decorated as "sensitive" in the API will not
 29101  // be included in the string output. The member name will be present, but the
 29102  // value will be replaced with "sensitive".
 29103  func (s ParentCommitIdOutdatedException) String() string {
 29104  	return awsutil.Prettify(s)
 29105  }
 29106  
 29107  // GoString returns the string representation.
 29108  //
 29109  // API parameter values that are decorated as "sensitive" in the API will not
 29110  // be included in the string output. The member name will be present, but the
 29111  // value will be replaced with "sensitive".
 29112  func (s ParentCommitIdOutdatedException) GoString() string {
 29113  	return s.String()
 29114  }
 29115  
 29116  func newErrorParentCommitIdOutdatedException(v protocol.ResponseMetadata) error {
 29117  	return &ParentCommitIdOutdatedException{
 29118  		RespMetadata: v,
 29119  	}
 29120  }
 29121  
 29122  // Code returns the exception type name.
 29123  func (s *ParentCommitIdOutdatedException) Code() string {
 29124  	return "ParentCommitIdOutdatedException"
 29125  }
 29126  
 29127  // Message returns the exception's message.
 29128  func (s *ParentCommitIdOutdatedException) Message() string {
 29129  	if s.Message_ != nil {
 29130  		return *s.Message_
 29131  	}
 29132  	return ""
 29133  }
 29134  
 29135  // OrigErr always returns nil, satisfies awserr.Error interface.
 29136  func (s *ParentCommitIdOutdatedException) OrigErr() error {
 29137  	return nil
 29138  }
 29139  
 29140  func (s *ParentCommitIdOutdatedException) Error() string {
 29141  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 29142  }
 29143  
 29144  // Status code returns the HTTP status code for the request's response error.
 29145  func (s *ParentCommitIdOutdatedException) StatusCode() int {
 29146  	return s.RespMetadata.StatusCode
 29147  }
 29148  
 29149  // RequestID returns the service's response RequestID for request.
 29150  func (s *ParentCommitIdOutdatedException) RequestID() string {
 29151  	return s.RespMetadata.RequestID
 29152  }
 29153  
 29154  // A parent commit ID is required. To view the full commit ID of a branch in
 29155  // a repository, use GetBranch or a Git command (for example, git pull or git
 29156  // log).
 29157  type ParentCommitIdRequiredException struct {
 29158  	_            struct{}                  `type:"structure"`
 29159  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 29160  
 29161  	Message_ *string `locationName:"message" type:"string"`
 29162  }
 29163  
 29164  // String returns the string representation.
 29165  //
 29166  // API parameter values that are decorated as "sensitive" in the API will not
 29167  // be included in the string output. The member name will be present, but the
 29168  // value will be replaced with "sensitive".
 29169  func (s ParentCommitIdRequiredException) String() string {
 29170  	return awsutil.Prettify(s)
 29171  }
 29172  
 29173  // GoString returns the string representation.
 29174  //
 29175  // API parameter values that are decorated as "sensitive" in the API will not
 29176  // be included in the string output. The member name will be present, but the
 29177  // value will be replaced with "sensitive".
 29178  func (s ParentCommitIdRequiredException) GoString() string {
 29179  	return s.String()
 29180  }
 29181  
 29182  func newErrorParentCommitIdRequiredException(v protocol.ResponseMetadata) error {
 29183  	return &ParentCommitIdRequiredException{
 29184  		RespMetadata: v,
 29185  	}
 29186  }
 29187  
 29188  // Code returns the exception type name.
 29189  func (s *ParentCommitIdRequiredException) Code() string {
 29190  	return "ParentCommitIdRequiredException"
 29191  }
 29192  
 29193  // Message returns the exception's message.
 29194  func (s *ParentCommitIdRequiredException) Message() string {
 29195  	if s.Message_ != nil {
 29196  		return *s.Message_
 29197  	}
 29198  	return ""
 29199  }
 29200  
 29201  // OrigErr always returns nil, satisfies awserr.Error interface.
 29202  func (s *ParentCommitIdRequiredException) OrigErr() error {
 29203  	return nil
 29204  }
 29205  
 29206  func (s *ParentCommitIdRequiredException) Error() string {
 29207  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 29208  }
 29209  
 29210  // Status code returns the HTTP status code for the request's response error.
 29211  func (s *ParentCommitIdRequiredException) StatusCode() int {
 29212  	return s.RespMetadata.StatusCode
 29213  }
 29214  
 29215  // RequestID returns the service's response RequestID for request.
 29216  func (s *ParentCommitIdRequiredException) RequestID() string {
 29217  	return s.RespMetadata.RequestID
 29218  }
 29219  
 29220  // The specified path does not exist.
 29221  type PathDoesNotExistException struct {
 29222  	_            struct{}                  `type:"structure"`
 29223  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 29224  
 29225  	Message_ *string `locationName:"message" type:"string"`
 29226  }
 29227  
 29228  // String returns the string representation.
 29229  //
 29230  // API parameter values that are decorated as "sensitive" in the API will not
 29231  // be included in the string output. The member name will be present, but the
 29232  // value will be replaced with "sensitive".
 29233  func (s PathDoesNotExistException) String() string {
 29234  	return awsutil.Prettify(s)
 29235  }
 29236  
 29237  // GoString returns the string representation.
 29238  //
 29239  // API parameter values that are decorated as "sensitive" in the API will not
 29240  // be included in the string output. The member name will be present, but the
 29241  // value will be replaced with "sensitive".
 29242  func (s PathDoesNotExistException) GoString() string {
 29243  	return s.String()
 29244  }
 29245  
 29246  func newErrorPathDoesNotExistException(v protocol.ResponseMetadata) error {
 29247  	return &PathDoesNotExistException{
 29248  		RespMetadata: v,
 29249  	}
 29250  }
 29251  
 29252  // Code returns the exception type name.
 29253  func (s *PathDoesNotExistException) Code() string {
 29254  	return "PathDoesNotExistException"
 29255  }
 29256  
 29257  // Message returns the exception's message.
 29258  func (s *PathDoesNotExistException) Message() string {
 29259  	if s.Message_ != nil {
 29260  		return *s.Message_
 29261  	}
 29262  	return ""
 29263  }
 29264  
 29265  // OrigErr always returns nil, satisfies awserr.Error interface.
 29266  func (s *PathDoesNotExistException) OrigErr() error {
 29267  	return nil
 29268  }
 29269  
 29270  func (s *PathDoesNotExistException) Error() string {
 29271  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 29272  }
 29273  
 29274  // Status code returns the HTTP status code for the request's response error.
 29275  func (s *PathDoesNotExistException) StatusCode() int {
 29276  	return s.RespMetadata.StatusCode
 29277  }
 29278  
 29279  // RequestID returns the service's response RequestID for request.
 29280  func (s *PathDoesNotExistException) RequestID() string {
 29281  	return s.RespMetadata.RequestID
 29282  }
 29283  
 29284  // The folderPath for a location cannot be null.
 29285  type PathRequiredException struct {
 29286  	_            struct{}                  `type:"structure"`
 29287  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 29288  
 29289  	Message_ *string `locationName:"message" type:"string"`
 29290  }
 29291  
 29292  // String returns the string representation.
 29293  //
 29294  // API parameter values that are decorated as "sensitive" in the API will not
 29295  // be included in the string output. The member name will be present, but the
 29296  // value will be replaced with "sensitive".
 29297  func (s PathRequiredException) String() string {
 29298  	return awsutil.Prettify(s)
 29299  }
 29300  
 29301  // GoString returns the string representation.
 29302  //
 29303  // API parameter values that are decorated as "sensitive" in the API will not
 29304  // be included in the string output. The member name will be present, but the
 29305  // value will be replaced with "sensitive".
 29306  func (s PathRequiredException) GoString() string {
 29307  	return s.String()
 29308  }
 29309  
 29310  func newErrorPathRequiredException(v protocol.ResponseMetadata) error {
 29311  	return &PathRequiredException{
 29312  		RespMetadata: v,
 29313  	}
 29314  }
 29315  
 29316  // Code returns the exception type name.
 29317  func (s *PathRequiredException) Code() string {
 29318  	return "PathRequiredException"
 29319  }
 29320  
 29321  // Message returns the exception's message.
 29322  func (s *PathRequiredException) Message() string {
 29323  	if s.Message_ != nil {
 29324  		return *s.Message_
 29325  	}
 29326  	return ""
 29327  }
 29328  
 29329  // OrigErr always returns nil, satisfies awserr.Error interface.
 29330  func (s *PathRequiredException) OrigErr() error {
 29331  	return nil
 29332  }
 29333  
 29334  func (s *PathRequiredException) Error() string {
 29335  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 29336  }
 29337  
 29338  // Status code returns the HTTP status code for the request's response error.
 29339  func (s *PathRequiredException) StatusCode() int {
 29340  	return s.RespMetadata.StatusCode
 29341  }
 29342  
 29343  // RequestID returns the service's response RequestID for request.
 29344  func (s *PathRequiredException) RequestID() string {
 29345  	return s.RespMetadata.RequestID
 29346  }
 29347  
 29348  type PostCommentForComparedCommitInput struct {
 29349  	_ struct{} `type:"structure"`
 29350  
 29351  	// To establish the directionality of the comparison, the full commit ID of
 29352  	// the after commit.
 29353  	//
 29354  	// AfterCommitId is a required field
 29355  	AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
 29356  
 29357  	// To establish the directionality of the comparison, the full commit ID of
 29358  	// the before commit. Required for commenting on any commit unless that commit
 29359  	// is the initial commit.
 29360  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 29361  
 29362  	// A unique, client-generated idempotency token that, when provided in a request,
 29363  	// ensures the request cannot be repeated with a changed parameter. If a request
 29364  	// is received with the same parameters and a token is included, the request
 29365  	// returns information about the initial request that used that token.
 29366  	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
 29367  
 29368  	// The content of the comment you want to make.
 29369  	//
 29370  	// Content is a required field
 29371  	Content *string `locationName:"content" type:"string" required:"true"`
 29372  
 29373  	// The location of the comparison where you want to comment.
 29374  	Location *Location `locationName:"location" type:"structure"`
 29375  
 29376  	// The name of the repository where you want to post a comment on the comparison
 29377  	// between commits.
 29378  	//
 29379  	// RepositoryName is a required field
 29380  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 29381  }
 29382  
 29383  // String returns the string representation.
 29384  //
 29385  // API parameter values that are decorated as "sensitive" in the API will not
 29386  // be included in the string output. The member name will be present, but the
 29387  // value will be replaced with "sensitive".
 29388  func (s PostCommentForComparedCommitInput) String() string {
 29389  	return awsutil.Prettify(s)
 29390  }
 29391  
 29392  // GoString returns the string representation.
 29393  //
 29394  // API parameter values that are decorated as "sensitive" in the API will not
 29395  // be included in the string output. The member name will be present, but the
 29396  // value will be replaced with "sensitive".
 29397  func (s PostCommentForComparedCommitInput) GoString() string {
 29398  	return s.String()
 29399  }
 29400  
 29401  // Validate inspects the fields of the type to determine if they are valid.
 29402  func (s *PostCommentForComparedCommitInput) Validate() error {
 29403  	invalidParams := request.ErrInvalidParams{Context: "PostCommentForComparedCommitInput"}
 29404  	if s.AfterCommitId == nil {
 29405  		invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
 29406  	}
 29407  	if s.Content == nil {
 29408  		invalidParams.Add(request.NewErrParamRequired("Content"))
 29409  	}
 29410  	if s.RepositoryName == nil {
 29411  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 29412  	}
 29413  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 29414  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 29415  	}
 29416  
 29417  	if invalidParams.Len() > 0 {
 29418  		return invalidParams
 29419  	}
 29420  	return nil
 29421  }
 29422  
 29423  // SetAfterCommitId sets the AfterCommitId field's value.
 29424  func (s *PostCommentForComparedCommitInput) SetAfterCommitId(v string) *PostCommentForComparedCommitInput {
 29425  	s.AfterCommitId = &v
 29426  	return s
 29427  }
 29428  
 29429  // SetBeforeCommitId sets the BeforeCommitId field's value.
 29430  func (s *PostCommentForComparedCommitInput) SetBeforeCommitId(v string) *PostCommentForComparedCommitInput {
 29431  	s.BeforeCommitId = &v
 29432  	return s
 29433  }
 29434  
 29435  // SetClientRequestToken sets the ClientRequestToken field's value.
 29436  func (s *PostCommentForComparedCommitInput) SetClientRequestToken(v string) *PostCommentForComparedCommitInput {
 29437  	s.ClientRequestToken = &v
 29438  	return s
 29439  }
 29440  
 29441  // SetContent sets the Content field's value.
 29442  func (s *PostCommentForComparedCommitInput) SetContent(v string) *PostCommentForComparedCommitInput {
 29443  	s.Content = &v
 29444  	return s
 29445  }
 29446  
 29447  // SetLocation sets the Location field's value.
 29448  func (s *PostCommentForComparedCommitInput) SetLocation(v *Location) *PostCommentForComparedCommitInput {
 29449  	s.Location = v
 29450  	return s
 29451  }
 29452  
 29453  // SetRepositoryName sets the RepositoryName field's value.
 29454  func (s *PostCommentForComparedCommitInput) SetRepositoryName(v string) *PostCommentForComparedCommitInput {
 29455  	s.RepositoryName = &v
 29456  	return s
 29457  }
 29458  
 29459  type PostCommentForComparedCommitOutput struct {
 29460  	_ struct{} `type:"structure"`
 29461  
 29462  	// In the directionality you established, the blob ID of the after blob.
 29463  	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
 29464  
 29465  	// In the directionality you established, the full commit ID of the after commit.
 29466  	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
 29467  
 29468  	// In the directionality you established, the blob ID of the before blob.
 29469  	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
 29470  
 29471  	// In the directionality you established, the full commit ID of the before commit.
 29472  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 29473  
 29474  	// The content of the comment you posted.
 29475  	Comment *Comment `locationName:"comment" type:"structure"`
 29476  
 29477  	// The location of the comment in the comparison between the two commits.
 29478  	Location *Location `locationName:"location" type:"structure"`
 29479  
 29480  	// The name of the repository where you posted a comment on the comparison between
 29481  	// commits.
 29482  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 29483  }
 29484  
 29485  // String returns the string representation.
 29486  //
 29487  // API parameter values that are decorated as "sensitive" in the API will not
 29488  // be included in the string output. The member name will be present, but the
 29489  // value will be replaced with "sensitive".
 29490  func (s PostCommentForComparedCommitOutput) String() string {
 29491  	return awsutil.Prettify(s)
 29492  }
 29493  
 29494  // GoString returns the string representation.
 29495  //
 29496  // API parameter values that are decorated as "sensitive" in the API will not
 29497  // be included in the string output. The member name will be present, but the
 29498  // value will be replaced with "sensitive".
 29499  func (s PostCommentForComparedCommitOutput) GoString() string {
 29500  	return s.String()
 29501  }
 29502  
 29503  // SetAfterBlobId sets the AfterBlobId field's value.
 29504  func (s *PostCommentForComparedCommitOutput) SetAfterBlobId(v string) *PostCommentForComparedCommitOutput {
 29505  	s.AfterBlobId = &v
 29506  	return s
 29507  }
 29508  
 29509  // SetAfterCommitId sets the AfterCommitId field's value.
 29510  func (s *PostCommentForComparedCommitOutput) SetAfterCommitId(v string) *PostCommentForComparedCommitOutput {
 29511  	s.AfterCommitId = &v
 29512  	return s
 29513  }
 29514  
 29515  // SetBeforeBlobId sets the BeforeBlobId field's value.
 29516  func (s *PostCommentForComparedCommitOutput) SetBeforeBlobId(v string) *PostCommentForComparedCommitOutput {
 29517  	s.BeforeBlobId = &v
 29518  	return s
 29519  }
 29520  
 29521  // SetBeforeCommitId sets the BeforeCommitId field's value.
 29522  func (s *PostCommentForComparedCommitOutput) SetBeforeCommitId(v string) *PostCommentForComparedCommitOutput {
 29523  	s.BeforeCommitId = &v
 29524  	return s
 29525  }
 29526  
 29527  // SetComment sets the Comment field's value.
 29528  func (s *PostCommentForComparedCommitOutput) SetComment(v *Comment) *PostCommentForComparedCommitOutput {
 29529  	s.Comment = v
 29530  	return s
 29531  }
 29532  
 29533  // SetLocation sets the Location field's value.
 29534  func (s *PostCommentForComparedCommitOutput) SetLocation(v *Location) *PostCommentForComparedCommitOutput {
 29535  	s.Location = v
 29536  	return s
 29537  }
 29538  
 29539  // SetRepositoryName sets the RepositoryName field's value.
 29540  func (s *PostCommentForComparedCommitOutput) SetRepositoryName(v string) *PostCommentForComparedCommitOutput {
 29541  	s.RepositoryName = &v
 29542  	return s
 29543  }
 29544  
 29545  type PostCommentForPullRequestInput struct {
 29546  	_ struct{} `type:"structure"`
 29547  
 29548  	// The full commit ID of the commit in the source branch that is the current
 29549  	// tip of the branch for the pull request when you post the comment.
 29550  	//
 29551  	// AfterCommitId is a required field
 29552  	AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
 29553  
 29554  	// The full commit ID of the commit in the destination branch that was the tip
 29555  	// of the branch at the time the pull request was created.
 29556  	//
 29557  	// BeforeCommitId is a required field
 29558  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string" required:"true"`
 29559  
 29560  	// A unique, client-generated idempotency token that, when provided in a request,
 29561  	// ensures the request cannot be repeated with a changed parameter. If a request
 29562  	// is received with the same parameters and a token is included, the request
 29563  	// returns information about the initial request that used that token.
 29564  	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
 29565  
 29566  	// The content of your comment on the change.
 29567  	//
 29568  	// Content is a required field
 29569  	Content *string `locationName:"content" type:"string" required:"true"`
 29570  
 29571  	// The location of the change where you want to post your comment. If no location
 29572  	// is provided, the comment is posted as a general comment on the pull request
 29573  	// difference between the before commit ID and the after commit ID.
 29574  	Location *Location `locationName:"location" type:"structure"`
 29575  
 29576  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 29577  	//
 29578  	// PullRequestId is a required field
 29579  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 29580  
 29581  	// The name of the repository where you want to post a comment on a pull request.
 29582  	//
 29583  	// RepositoryName is a required field
 29584  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 29585  }
 29586  
 29587  // String returns the string representation.
 29588  //
 29589  // API parameter values that are decorated as "sensitive" in the API will not
 29590  // be included in the string output. The member name will be present, but the
 29591  // value will be replaced with "sensitive".
 29592  func (s PostCommentForPullRequestInput) String() string {
 29593  	return awsutil.Prettify(s)
 29594  }
 29595  
 29596  // GoString returns the string representation.
 29597  //
 29598  // API parameter values that are decorated as "sensitive" in the API will not
 29599  // be included in the string output. The member name will be present, but the
 29600  // value will be replaced with "sensitive".
 29601  func (s PostCommentForPullRequestInput) GoString() string {
 29602  	return s.String()
 29603  }
 29604  
 29605  // Validate inspects the fields of the type to determine if they are valid.
 29606  func (s *PostCommentForPullRequestInput) Validate() error {
 29607  	invalidParams := request.ErrInvalidParams{Context: "PostCommentForPullRequestInput"}
 29608  	if s.AfterCommitId == nil {
 29609  		invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
 29610  	}
 29611  	if s.BeforeCommitId == nil {
 29612  		invalidParams.Add(request.NewErrParamRequired("BeforeCommitId"))
 29613  	}
 29614  	if s.Content == nil {
 29615  		invalidParams.Add(request.NewErrParamRequired("Content"))
 29616  	}
 29617  	if s.PullRequestId == nil {
 29618  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 29619  	}
 29620  	if s.RepositoryName == nil {
 29621  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 29622  	}
 29623  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 29624  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 29625  	}
 29626  
 29627  	if invalidParams.Len() > 0 {
 29628  		return invalidParams
 29629  	}
 29630  	return nil
 29631  }
 29632  
 29633  // SetAfterCommitId sets the AfterCommitId field's value.
 29634  func (s *PostCommentForPullRequestInput) SetAfterCommitId(v string) *PostCommentForPullRequestInput {
 29635  	s.AfterCommitId = &v
 29636  	return s
 29637  }
 29638  
 29639  // SetBeforeCommitId sets the BeforeCommitId field's value.
 29640  func (s *PostCommentForPullRequestInput) SetBeforeCommitId(v string) *PostCommentForPullRequestInput {
 29641  	s.BeforeCommitId = &v
 29642  	return s
 29643  }
 29644  
 29645  // SetClientRequestToken sets the ClientRequestToken field's value.
 29646  func (s *PostCommentForPullRequestInput) SetClientRequestToken(v string) *PostCommentForPullRequestInput {
 29647  	s.ClientRequestToken = &v
 29648  	return s
 29649  }
 29650  
 29651  // SetContent sets the Content field's value.
 29652  func (s *PostCommentForPullRequestInput) SetContent(v string) *PostCommentForPullRequestInput {
 29653  	s.Content = &v
 29654  	return s
 29655  }
 29656  
 29657  // SetLocation sets the Location field's value.
 29658  func (s *PostCommentForPullRequestInput) SetLocation(v *Location) *PostCommentForPullRequestInput {
 29659  	s.Location = v
 29660  	return s
 29661  }
 29662  
 29663  // SetPullRequestId sets the PullRequestId field's value.
 29664  func (s *PostCommentForPullRequestInput) SetPullRequestId(v string) *PostCommentForPullRequestInput {
 29665  	s.PullRequestId = &v
 29666  	return s
 29667  }
 29668  
 29669  // SetRepositoryName sets the RepositoryName field's value.
 29670  func (s *PostCommentForPullRequestInput) SetRepositoryName(v string) *PostCommentForPullRequestInput {
 29671  	s.RepositoryName = &v
 29672  	return s
 29673  }
 29674  
 29675  type PostCommentForPullRequestOutput struct {
 29676  	_ struct{} `type:"structure"`
 29677  
 29678  	// In the directionality of the pull request, the blob ID of the after blob.
 29679  	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
 29680  
 29681  	// The full commit ID of the commit in the destination branch where the pull
 29682  	// request is merged.
 29683  	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
 29684  
 29685  	// In the directionality of the pull request, the blob ID of the before blob.
 29686  	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
 29687  
 29688  	// The full commit ID of the commit in the source branch used to create the
 29689  	// pull request, or in the case of an updated pull request, the full commit
 29690  	// ID of the commit used to update the pull request.
 29691  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 29692  
 29693  	// The content of the comment you posted.
 29694  	Comment *Comment `locationName:"comment" type:"structure"`
 29695  
 29696  	// The location of the change where you posted your comment.
 29697  	Location *Location `locationName:"location" type:"structure"`
 29698  
 29699  	// The system-generated ID of the pull request.
 29700  	PullRequestId *string `locationName:"pullRequestId" type:"string"`
 29701  
 29702  	// The name of the repository where you posted a comment on a pull request.
 29703  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 29704  }
 29705  
 29706  // String returns the string representation.
 29707  //
 29708  // API parameter values that are decorated as "sensitive" in the API will not
 29709  // be included in the string output. The member name will be present, but the
 29710  // value will be replaced with "sensitive".
 29711  func (s PostCommentForPullRequestOutput) String() string {
 29712  	return awsutil.Prettify(s)
 29713  }
 29714  
 29715  // GoString returns the string representation.
 29716  //
 29717  // API parameter values that are decorated as "sensitive" in the API will not
 29718  // be included in the string output. The member name will be present, but the
 29719  // value will be replaced with "sensitive".
 29720  func (s PostCommentForPullRequestOutput) GoString() string {
 29721  	return s.String()
 29722  }
 29723  
 29724  // SetAfterBlobId sets the AfterBlobId field's value.
 29725  func (s *PostCommentForPullRequestOutput) SetAfterBlobId(v string) *PostCommentForPullRequestOutput {
 29726  	s.AfterBlobId = &v
 29727  	return s
 29728  }
 29729  
 29730  // SetAfterCommitId sets the AfterCommitId field's value.
 29731  func (s *PostCommentForPullRequestOutput) SetAfterCommitId(v string) *PostCommentForPullRequestOutput {
 29732  	s.AfterCommitId = &v
 29733  	return s
 29734  }
 29735  
 29736  // SetBeforeBlobId sets the BeforeBlobId field's value.
 29737  func (s *PostCommentForPullRequestOutput) SetBeforeBlobId(v string) *PostCommentForPullRequestOutput {
 29738  	s.BeforeBlobId = &v
 29739  	return s
 29740  }
 29741  
 29742  // SetBeforeCommitId sets the BeforeCommitId field's value.
 29743  func (s *PostCommentForPullRequestOutput) SetBeforeCommitId(v string) *PostCommentForPullRequestOutput {
 29744  	s.BeforeCommitId = &v
 29745  	return s
 29746  }
 29747  
 29748  // SetComment sets the Comment field's value.
 29749  func (s *PostCommentForPullRequestOutput) SetComment(v *Comment) *PostCommentForPullRequestOutput {
 29750  	s.Comment = v
 29751  	return s
 29752  }
 29753  
 29754  // SetLocation sets the Location field's value.
 29755  func (s *PostCommentForPullRequestOutput) SetLocation(v *Location) *PostCommentForPullRequestOutput {
 29756  	s.Location = v
 29757  	return s
 29758  }
 29759  
 29760  // SetPullRequestId sets the PullRequestId field's value.
 29761  func (s *PostCommentForPullRequestOutput) SetPullRequestId(v string) *PostCommentForPullRequestOutput {
 29762  	s.PullRequestId = &v
 29763  	return s
 29764  }
 29765  
 29766  // SetRepositoryName sets the RepositoryName field's value.
 29767  func (s *PostCommentForPullRequestOutput) SetRepositoryName(v string) *PostCommentForPullRequestOutput {
 29768  	s.RepositoryName = &v
 29769  	return s
 29770  }
 29771  
 29772  type PostCommentReplyInput struct {
 29773  	_ struct{} `type:"structure"`
 29774  
 29775  	// A unique, client-generated idempotency token that, when provided in a request,
 29776  	// ensures the request cannot be repeated with a changed parameter. If a request
 29777  	// is received with the same parameters and a token is included, the request
 29778  	// returns information about the initial request that used that token.
 29779  	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
 29780  
 29781  	// The contents of your reply to a comment.
 29782  	//
 29783  	// Content is a required field
 29784  	Content *string `locationName:"content" type:"string" required:"true"`
 29785  
 29786  	// The system-generated ID of the comment to which you want to reply. To get
 29787  	// this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
 29788  	//
 29789  	// InReplyTo is a required field
 29790  	InReplyTo *string `locationName:"inReplyTo" type:"string" required:"true"`
 29791  }
 29792  
 29793  // String returns the string representation.
 29794  //
 29795  // API parameter values that are decorated as "sensitive" in the API will not
 29796  // be included in the string output. The member name will be present, but the
 29797  // value will be replaced with "sensitive".
 29798  func (s PostCommentReplyInput) String() string {
 29799  	return awsutil.Prettify(s)
 29800  }
 29801  
 29802  // GoString returns the string representation.
 29803  //
 29804  // API parameter values that are decorated as "sensitive" in the API will not
 29805  // be included in the string output. The member name will be present, but the
 29806  // value will be replaced with "sensitive".
 29807  func (s PostCommentReplyInput) GoString() string {
 29808  	return s.String()
 29809  }
 29810  
 29811  // Validate inspects the fields of the type to determine if they are valid.
 29812  func (s *PostCommentReplyInput) Validate() error {
 29813  	invalidParams := request.ErrInvalidParams{Context: "PostCommentReplyInput"}
 29814  	if s.Content == nil {
 29815  		invalidParams.Add(request.NewErrParamRequired("Content"))
 29816  	}
 29817  	if s.InReplyTo == nil {
 29818  		invalidParams.Add(request.NewErrParamRequired("InReplyTo"))
 29819  	}
 29820  
 29821  	if invalidParams.Len() > 0 {
 29822  		return invalidParams
 29823  	}
 29824  	return nil
 29825  }
 29826  
 29827  // SetClientRequestToken sets the ClientRequestToken field's value.
 29828  func (s *PostCommentReplyInput) SetClientRequestToken(v string) *PostCommentReplyInput {
 29829  	s.ClientRequestToken = &v
 29830  	return s
 29831  }
 29832  
 29833  // SetContent sets the Content field's value.
 29834  func (s *PostCommentReplyInput) SetContent(v string) *PostCommentReplyInput {
 29835  	s.Content = &v
 29836  	return s
 29837  }
 29838  
 29839  // SetInReplyTo sets the InReplyTo field's value.
 29840  func (s *PostCommentReplyInput) SetInReplyTo(v string) *PostCommentReplyInput {
 29841  	s.InReplyTo = &v
 29842  	return s
 29843  }
 29844  
 29845  type PostCommentReplyOutput struct {
 29846  	_ struct{} `type:"structure"`
 29847  
 29848  	// Information about the reply to a comment.
 29849  	Comment *Comment `locationName:"comment" type:"structure"`
 29850  }
 29851  
 29852  // String returns the string representation.
 29853  //
 29854  // API parameter values that are decorated as "sensitive" in the API will not
 29855  // be included in the string output. The member name will be present, but the
 29856  // value will be replaced with "sensitive".
 29857  func (s PostCommentReplyOutput) String() string {
 29858  	return awsutil.Prettify(s)
 29859  }
 29860  
 29861  // GoString returns the string representation.
 29862  //
 29863  // API parameter values that are decorated as "sensitive" in the API will not
 29864  // be included in the string output. The member name will be present, but the
 29865  // value will be replaced with "sensitive".
 29866  func (s PostCommentReplyOutput) GoString() string {
 29867  	return s.String()
 29868  }
 29869  
 29870  // SetComment sets the Comment field's value.
 29871  func (s *PostCommentReplyOutput) SetComment(v *Comment) *PostCommentReplyOutput {
 29872  	s.Comment = v
 29873  	return s
 29874  }
 29875  
 29876  // Returns information about a pull request.
 29877  type PullRequest struct {
 29878  	_ struct{} `type:"structure"`
 29879  
 29880  	// The approval rules applied to the pull request.
 29881  	ApprovalRules []*ApprovalRule `locationName:"approvalRules" type:"list"`
 29882  
 29883  	// The Amazon Resource Name (ARN) of the user who created the pull request.
 29884  	AuthorArn *string `locationName:"authorArn" type:"string"`
 29885  
 29886  	// A unique, client-generated idempotency token that, when provided in a request,
 29887  	// ensures the request cannot be repeated with a changed parameter. If a request
 29888  	// is received with the same parameters and a token is included, the request
 29889  	// returns information about the initial request that used that token.
 29890  	ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
 29891  
 29892  	// The date and time the pull request was originally created, in timestamp format.
 29893  	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
 29894  
 29895  	// The user-defined description of the pull request. This description can be
 29896  	// used to clarify what should be reviewed and other details of the request.
 29897  	Description *string `locationName:"description" type:"string"`
 29898  
 29899  	// The day and time of the last user or system activity on the pull request,
 29900  	// in timestamp format.
 29901  	LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"`
 29902  
 29903  	// The system-generated ID of the pull request.
 29904  	PullRequestId *string `locationName:"pullRequestId" type:"string"`
 29905  
 29906  	// The status of the pull request. Pull request status can only change from
 29907  	// OPEN to CLOSED.
 29908  	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
 29909  
 29910  	// The targets of the pull request, including the source branch and destination
 29911  	// branch for the pull request.
 29912  	PullRequestTargets []*PullRequestTarget `locationName:"pullRequestTargets" type:"list"`
 29913  
 29914  	// The system-generated revision ID for the pull request.
 29915  	RevisionId *string `locationName:"revisionId" type:"string"`
 29916  
 29917  	// The user-defined title of the pull request. This title is displayed in the
 29918  	// list of pull requests to other repository users.
 29919  	Title *string `locationName:"title" type:"string"`
 29920  }
 29921  
 29922  // String returns the string representation.
 29923  //
 29924  // API parameter values that are decorated as "sensitive" in the API will not
 29925  // be included in the string output. The member name will be present, but the
 29926  // value will be replaced with "sensitive".
 29927  func (s PullRequest) String() string {
 29928  	return awsutil.Prettify(s)
 29929  }
 29930  
 29931  // GoString returns the string representation.
 29932  //
 29933  // API parameter values that are decorated as "sensitive" in the API will not
 29934  // be included in the string output. The member name will be present, but the
 29935  // value will be replaced with "sensitive".
 29936  func (s PullRequest) GoString() string {
 29937  	return s.String()
 29938  }
 29939  
 29940  // SetApprovalRules sets the ApprovalRules field's value.
 29941  func (s *PullRequest) SetApprovalRules(v []*ApprovalRule) *PullRequest {
 29942  	s.ApprovalRules = v
 29943  	return s
 29944  }
 29945  
 29946  // SetAuthorArn sets the AuthorArn field's value.
 29947  func (s *PullRequest) SetAuthorArn(v string) *PullRequest {
 29948  	s.AuthorArn = &v
 29949  	return s
 29950  }
 29951  
 29952  // SetClientRequestToken sets the ClientRequestToken field's value.
 29953  func (s *PullRequest) SetClientRequestToken(v string) *PullRequest {
 29954  	s.ClientRequestToken = &v
 29955  	return s
 29956  }
 29957  
 29958  // SetCreationDate sets the CreationDate field's value.
 29959  func (s *PullRequest) SetCreationDate(v time.Time) *PullRequest {
 29960  	s.CreationDate = &v
 29961  	return s
 29962  }
 29963  
 29964  // SetDescription sets the Description field's value.
 29965  func (s *PullRequest) SetDescription(v string) *PullRequest {
 29966  	s.Description = &v
 29967  	return s
 29968  }
 29969  
 29970  // SetLastActivityDate sets the LastActivityDate field's value.
 29971  func (s *PullRequest) SetLastActivityDate(v time.Time) *PullRequest {
 29972  	s.LastActivityDate = &v
 29973  	return s
 29974  }
 29975  
 29976  // SetPullRequestId sets the PullRequestId field's value.
 29977  func (s *PullRequest) SetPullRequestId(v string) *PullRequest {
 29978  	s.PullRequestId = &v
 29979  	return s
 29980  }
 29981  
 29982  // SetPullRequestStatus sets the PullRequestStatus field's value.
 29983  func (s *PullRequest) SetPullRequestStatus(v string) *PullRequest {
 29984  	s.PullRequestStatus = &v
 29985  	return s
 29986  }
 29987  
 29988  // SetPullRequestTargets sets the PullRequestTargets field's value.
 29989  func (s *PullRequest) SetPullRequestTargets(v []*PullRequestTarget) *PullRequest {
 29990  	s.PullRequestTargets = v
 29991  	return s
 29992  }
 29993  
 29994  // SetRevisionId sets the RevisionId field's value.
 29995  func (s *PullRequest) SetRevisionId(v string) *PullRequest {
 29996  	s.RevisionId = &v
 29997  	return s
 29998  }
 29999  
 30000  // SetTitle sets the Title field's value.
 30001  func (s *PullRequest) SetTitle(v string) *PullRequest {
 30002  	s.Title = &v
 30003  	return s
 30004  }
 30005  
 30006  // The pull request status cannot be updated because it is already closed.
 30007  type PullRequestAlreadyClosedException struct {
 30008  	_            struct{}                  `type:"structure"`
 30009  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30010  
 30011  	Message_ *string `locationName:"message" type:"string"`
 30012  }
 30013  
 30014  // String returns the string representation.
 30015  //
 30016  // API parameter values that are decorated as "sensitive" in the API will not
 30017  // be included in the string output. The member name will be present, but the
 30018  // value will be replaced with "sensitive".
 30019  func (s PullRequestAlreadyClosedException) String() string {
 30020  	return awsutil.Prettify(s)
 30021  }
 30022  
 30023  // GoString returns the string representation.
 30024  //
 30025  // API parameter values that are decorated as "sensitive" in the API will not
 30026  // be included in the string output. The member name will be present, but the
 30027  // value will be replaced with "sensitive".
 30028  func (s PullRequestAlreadyClosedException) GoString() string {
 30029  	return s.String()
 30030  }
 30031  
 30032  func newErrorPullRequestAlreadyClosedException(v protocol.ResponseMetadata) error {
 30033  	return &PullRequestAlreadyClosedException{
 30034  		RespMetadata: v,
 30035  	}
 30036  }
 30037  
 30038  // Code returns the exception type name.
 30039  func (s *PullRequestAlreadyClosedException) Code() string {
 30040  	return "PullRequestAlreadyClosedException"
 30041  }
 30042  
 30043  // Message returns the exception's message.
 30044  func (s *PullRequestAlreadyClosedException) Message() string {
 30045  	if s.Message_ != nil {
 30046  		return *s.Message_
 30047  	}
 30048  	return ""
 30049  }
 30050  
 30051  // OrigErr always returns nil, satisfies awserr.Error interface.
 30052  func (s *PullRequestAlreadyClosedException) OrigErr() error {
 30053  	return nil
 30054  }
 30055  
 30056  func (s *PullRequestAlreadyClosedException) Error() string {
 30057  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 30058  }
 30059  
 30060  // Status code returns the HTTP status code for the request's response error.
 30061  func (s *PullRequestAlreadyClosedException) StatusCode() int {
 30062  	return s.RespMetadata.StatusCode
 30063  }
 30064  
 30065  // RequestID returns the service's response RequestID for request.
 30066  func (s *PullRequestAlreadyClosedException) RequestID() string {
 30067  	return s.RespMetadata.RequestID
 30068  }
 30069  
 30070  // The pull request cannot be merged because one or more approval rules applied
 30071  // to the pull request have conditions that have not been met.
 30072  type PullRequestApprovalRulesNotSatisfiedException struct {
 30073  	_            struct{}                  `type:"structure"`
 30074  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30075  
 30076  	Message_ *string `locationName:"message" type:"string"`
 30077  }
 30078  
 30079  // String returns the string representation.
 30080  //
 30081  // API parameter values that are decorated as "sensitive" in the API will not
 30082  // be included in the string output. The member name will be present, but the
 30083  // value will be replaced with "sensitive".
 30084  func (s PullRequestApprovalRulesNotSatisfiedException) String() string {
 30085  	return awsutil.Prettify(s)
 30086  }
 30087  
 30088  // GoString returns the string representation.
 30089  //
 30090  // API parameter values that are decorated as "sensitive" in the API will not
 30091  // be included in the string output. The member name will be present, but the
 30092  // value will be replaced with "sensitive".
 30093  func (s PullRequestApprovalRulesNotSatisfiedException) GoString() string {
 30094  	return s.String()
 30095  }
 30096  
 30097  func newErrorPullRequestApprovalRulesNotSatisfiedException(v protocol.ResponseMetadata) error {
 30098  	return &PullRequestApprovalRulesNotSatisfiedException{
 30099  		RespMetadata: v,
 30100  	}
 30101  }
 30102  
 30103  // Code returns the exception type name.
 30104  func (s *PullRequestApprovalRulesNotSatisfiedException) Code() string {
 30105  	return "PullRequestApprovalRulesNotSatisfiedException"
 30106  }
 30107  
 30108  // Message returns the exception's message.
 30109  func (s *PullRequestApprovalRulesNotSatisfiedException) Message() string {
 30110  	if s.Message_ != nil {
 30111  		return *s.Message_
 30112  	}
 30113  	return ""
 30114  }
 30115  
 30116  // OrigErr always returns nil, satisfies awserr.Error interface.
 30117  func (s *PullRequestApprovalRulesNotSatisfiedException) OrigErr() error {
 30118  	return nil
 30119  }
 30120  
 30121  func (s *PullRequestApprovalRulesNotSatisfiedException) Error() string {
 30122  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 30123  }
 30124  
 30125  // Status code returns the HTTP status code for the request's response error.
 30126  func (s *PullRequestApprovalRulesNotSatisfiedException) StatusCode() int {
 30127  	return s.RespMetadata.StatusCode
 30128  }
 30129  
 30130  // RequestID returns the service's response RequestID for request.
 30131  func (s *PullRequestApprovalRulesNotSatisfiedException) RequestID() string {
 30132  	return s.RespMetadata.RequestID
 30133  }
 30134  
 30135  // The approval cannot be applied because the user approving the pull request
 30136  // matches the user who created the pull request. You cannot approve a pull
 30137  // request that you created.
 30138  type PullRequestCannotBeApprovedByAuthorException struct {
 30139  	_            struct{}                  `type:"structure"`
 30140  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30141  
 30142  	Message_ *string `locationName:"message" type:"string"`
 30143  }
 30144  
 30145  // String returns the string representation.
 30146  //
 30147  // API parameter values that are decorated as "sensitive" in the API will not
 30148  // be included in the string output. The member name will be present, but the
 30149  // value will be replaced with "sensitive".
 30150  func (s PullRequestCannotBeApprovedByAuthorException) String() string {
 30151  	return awsutil.Prettify(s)
 30152  }
 30153  
 30154  // GoString returns the string representation.
 30155  //
 30156  // API parameter values that are decorated as "sensitive" in the API will not
 30157  // be included in the string output. The member name will be present, but the
 30158  // value will be replaced with "sensitive".
 30159  func (s PullRequestCannotBeApprovedByAuthorException) GoString() string {
 30160  	return s.String()
 30161  }
 30162  
 30163  func newErrorPullRequestCannotBeApprovedByAuthorException(v protocol.ResponseMetadata) error {
 30164  	return &PullRequestCannotBeApprovedByAuthorException{
 30165  		RespMetadata: v,
 30166  	}
 30167  }
 30168  
 30169  // Code returns the exception type name.
 30170  func (s *PullRequestCannotBeApprovedByAuthorException) Code() string {
 30171  	return "PullRequestCannotBeApprovedByAuthorException"
 30172  }
 30173  
 30174  // Message returns the exception's message.
 30175  func (s *PullRequestCannotBeApprovedByAuthorException) Message() string {
 30176  	if s.Message_ != nil {
 30177  		return *s.Message_
 30178  	}
 30179  	return ""
 30180  }
 30181  
 30182  // OrigErr always returns nil, satisfies awserr.Error interface.
 30183  func (s *PullRequestCannotBeApprovedByAuthorException) OrigErr() error {
 30184  	return nil
 30185  }
 30186  
 30187  func (s *PullRequestCannotBeApprovedByAuthorException) Error() string {
 30188  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 30189  }
 30190  
 30191  // Status code returns the HTTP status code for the request's response error.
 30192  func (s *PullRequestCannotBeApprovedByAuthorException) StatusCode() int {
 30193  	return s.RespMetadata.StatusCode
 30194  }
 30195  
 30196  // RequestID returns the service's response RequestID for request.
 30197  func (s *PullRequestCannotBeApprovedByAuthorException) RequestID() string {
 30198  	return s.RespMetadata.RequestID
 30199  }
 30200  
 30201  // Metadata about the pull request that is used when comparing the pull request
 30202  // source with its destination.
 30203  type PullRequestCreatedEventMetadata struct {
 30204  	_ struct{} `type:"structure"`
 30205  
 30206  	// The commit ID of the tip of the branch specified as the destination branch
 30207  	// when the pull request was created.
 30208  	DestinationCommitId *string `locationName:"destinationCommitId" type:"string"`
 30209  
 30210  	// The commit ID of the most recent commit that the source branch and the destination
 30211  	// branch have in common.
 30212  	MergeBase *string `locationName:"mergeBase" type:"string"`
 30213  
 30214  	// The name of the repository where the pull request was created.
 30215  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 30216  
 30217  	// The commit ID on the source branch used when the pull request was created.
 30218  	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
 30219  }
 30220  
 30221  // String returns the string representation.
 30222  //
 30223  // API parameter values that are decorated as "sensitive" in the API will not
 30224  // be included in the string output. The member name will be present, but the
 30225  // value will be replaced with "sensitive".
 30226  func (s PullRequestCreatedEventMetadata) String() string {
 30227  	return awsutil.Prettify(s)
 30228  }
 30229  
 30230  // GoString returns the string representation.
 30231  //
 30232  // API parameter values that are decorated as "sensitive" in the API will not
 30233  // be included in the string output. The member name will be present, but the
 30234  // value will be replaced with "sensitive".
 30235  func (s PullRequestCreatedEventMetadata) GoString() string {
 30236  	return s.String()
 30237  }
 30238  
 30239  // SetDestinationCommitId sets the DestinationCommitId field's value.
 30240  func (s *PullRequestCreatedEventMetadata) SetDestinationCommitId(v string) *PullRequestCreatedEventMetadata {
 30241  	s.DestinationCommitId = &v
 30242  	return s
 30243  }
 30244  
 30245  // SetMergeBase sets the MergeBase field's value.
 30246  func (s *PullRequestCreatedEventMetadata) SetMergeBase(v string) *PullRequestCreatedEventMetadata {
 30247  	s.MergeBase = &v
 30248  	return s
 30249  }
 30250  
 30251  // SetRepositoryName sets the RepositoryName field's value.
 30252  func (s *PullRequestCreatedEventMetadata) SetRepositoryName(v string) *PullRequestCreatedEventMetadata {
 30253  	s.RepositoryName = &v
 30254  	return s
 30255  }
 30256  
 30257  // SetSourceCommitId sets the SourceCommitId field's value.
 30258  func (s *PullRequestCreatedEventMetadata) SetSourceCommitId(v string) *PullRequestCreatedEventMetadata {
 30259  	s.SourceCommitId = &v
 30260  	return s
 30261  }
 30262  
 30263  // The pull request ID could not be found. Make sure that you have specified
 30264  // the correct repository name and pull request ID, and then try again.
 30265  type PullRequestDoesNotExistException struct {
 30266  	_            struct{}                  `type:"structure"`
 30267  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30268  
 30269  	Message_ *string `locationName:"message" type:"string"`
 30270  }
 30271  
 30272  // String returns the string representation.
 30273  //
 30274  // API parameter values that are decorated as "sensitive" in the API will not
 30275  // be included in the string output. The member name will be present, but the
 30276  // value will be replaced with "sensitive".
 30277  func (s PullRequestDoesNotExistException) String() string {
 30278  	return awsutil.Prettify(s)
 30279  }
 30280  
 30281  // GoString returns the string representation.
 30282  //
 30283  // API parameter values that are decorated as "sensitive" in the API will not
 30284  // be included in the string output. The member name will be present, but the
 30285  // value will be replaced with "sensitive".
 30286  func (s PullRequestDoesNotExistException) GoString() string {
 30287  	return s.String()
 30288  }
 30289  
 30290  func newErrorPullRequestDoesNotExistException(v protocol.ResponseMetadata) error {
 30291  	return &PullRequestDoesNotExistException{
 30292  		RespMetadata: v,
 30293  	}
 30294  }
 30295  
 30296  // Code returns the exception type name.
 30297  func (s *PullRequestDoesNotExistException) Code() string {
 30298  	return "PullRequestDoesNotExistException"
 30299  }
 30300  
 30301  // Message returns the exception's message.
 30302  func (s *PullRequestDoesNotExistException) Message() string {
 30303  	if s.Message_ != nil {
 30304  		return *s.Message_
 30305  	}
 30306  	return ""
 30307  }
 30308  
 30309  // OrigErr always returns nil, satisfies awserr.Error interface.
 30310  func (s *PullRequestDoesNotExistException) OrigErr() error {
 30311  	return nil
 30312  }
 30313  
 30314  func (s *PullRequestDoesNotExistException) Error() string {
 30315  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 30316  }
 30317  
 30318  // Status code returns the HTTP status code for the request's response error.
 30319  func (s *PullRequestDoesNotExistException) StatusCode() int {
 30320  	return s.RespMetadata.StatusCode
 30321  }
 30322  
 30323  // RequestID returns the service's response RequestID for request.
 30324  func (s *PullRequestDoesNotExistException) RequestID() string {
 30325  	return s.RespMetadata.RequestID
 30326  }
 30327  
 30328  // Returns information about a pull request event.
 30329  type PullRequestEvent struct {
 30330  	_ struct{} `type:"structure"`
 30331  
 30332  	// The Amazon Resource Name (ARN) of the user whose actions resulted in the
 30333  	// event. Examples include updating the pull request with more commits or changing
 30334  	// the status of a pull request.
 30335  	ActorArn *string `locationName:"actorArn" type:"string"`
 30336  
 30337  	// Information about a pull request event.
 30338  	ApprovalRuleEventMetadata *ApprovalRuleEventMetadata `locationName:"approvalRuleEventMetadata" type:"structure"`
 30339  
 30340  	// Information about an approval rule override event for a pull request.
 30341  	ApprovalRuleOverriddenEventMetadata *ApprovalRuleOverriddenEventMetadata `locationName:"approvalRuleOverriddenEventMetadata" type:"structure"`
 30342  
 30343  	// Information about an approval state change for a pull request.
 30344  	ApprovalStateChangedEventMetadata *ApprovalStateChangedEventMetadata `locationName:"approvalStateChangedEventMetadata" type:"structure"`
 30345  
 30346  	// The day and time of the pull request event, in timestamp format.
 30347  	EventDate *time.Time `locationName:"eventDate" type:"timestamp"`
 30348  
 30349  	// Information about the source and destination branches for the pull request.
 30350  	PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"`
 30351  
 30352  	// The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED)
 30353  	// or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
 30354  	PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"`
 30355  
 30356  	// The system-generated ID of the pull request.
 30357  	PullRequestId *string `locationName:"pullRequestId" type:"string"`
 30358  
 30359  	// Information about the change in mergability state for the pull request event.
 30360  	PullRequestMergedStateChangedEventMetadata *PullRequestMergedStateChangedEventMetadata `locationName:"pullRequestMergedStateChangedEventMetadata" type:"structure"`
 30361  
 30362  	// Information about the updated source branch for the pull request event.
 30363  	PullRequestSourceReferenceUpdatedEventMetadata *PullRequestSourceReferenceUpdatedEventMetadata `locationName:"pullRequestSourceReferenceUpdatedEventMetadata" type:"structure"`
 30364  
 30365  	// Information about the change in status for the pull request event.
 30366  	PullRequestStatusChangedEventMetadata *PullRequestStatusChangedEventMetadata `locationName:"pullRequestStatusChangedEventMetadata" type:"structure"`
 30367  }
 30368  
 30369  // String returns the string representation.
 30370  //
 30371  // API parameter values that are decorated as "sensitive" in the API will not
 30372  // be included in the string output. The member name will be present, but the
 30373  // value will be replaced with "sensitive".
 30374  func (s PullRequestEvent) String() string {
 30375  	return awsutil.Prettify(s)
 30376  }
 30377  
 30378  // GoString returns the string representation.
 30379  //
 30380  // API parameter values that are decorated as "sensitive" in the API will not
 30381  // be included in the string output. The member name will be present, but the
 30382  // value will be replaced with "sensitive".
 30383  func (s PullRequestEvent) GoString() string {
 30384  	return s.String()
 30385  }
 30386  
 30387  // SetActorArn sets the ActorArn field's value.
 30388  func (s *PullRequestEvent) SetActorArn(v string) *PullRequestEvent {
 30389  	s.ActorArn = &v
 30390  	return s
 30391  }
 30392  
 30393  // SetApprovalRuleEventMetadata sets the ApprovalRuleEventMetadata field's value.
 30394  func (s *PullRequestEvent) SetApprovalRuleEventMetadata(v *ApprovalRuleEventMetadata) *PullRequestEvent {
 30395  	s.ApprovalRuleEventMetadata = v
 30396  	return s
 30397  }
 30398  
 30399  // SetApprovalRuleOverriddenEventMetadata sets the ApprovalRuleOverriddenEventMetadata field's value.
 30400  func (s *PullRequestEvent) SetApprovalRuleOverriddenEventMetadata(v *ApprovalRuleOverriddenEventMetadata) *PullRequestEvent {
 30401  	s.ApprovalRuleOverriddenEventMetadata = v
 30402  	return s
 30403  }
 30404  
 30405  // SetApprovalStateChangedEventMetadata sets the ApprovalStateChangedEventMetadata field's value.
 30406  func (s *PullRequestEvent) SetApprovalStateChangedEventMetadata(v *ApprovalStateChangedEventMetadata) *PullRequestEvent {
 30407  	s.ApprovalStateChangedEventMetadata = v
 30408  	return s
 30409  }
 30410  
 30411  // SetEventDate sets the EventDate field's value.
 30412  func (s *PullRequestEvent) SetEventDate(v time.Time) *PullRequestEvent {
 30413  	s.EventDate = &v
 30414  	return s
 30415  }
 30416  
 30417  // SetPullRequestCreatedEventMetadata sets the PullRequestCreatedEventMetadata field's value.
 30418  func (s *PullRequestEvent) SetPullRequestCreatedEventMetadata(v *PullRequestCreatedEventMetadata) *PullRequestEvent {
 30419  	s.PullRequestCreatedEventMetadata = v
 30420  	return s
 30421  }
 30422  
 30423  // SetPullRequestEventType sets the PullRequestEventType field's value.
 30424  func (s *PullRequestEvent) SetPullRequestEventType(v string) *PullRequestEvent {
 30425  	s.PullRequestEventType = &v
 30426  	return s
 30427  }
 30428  
 30429  // SetPullRequestId sets the PullRequestId field's value.
 30430  func (s *PullRequestEvent) SetPullRequestId(v string) *PullRequestEvent {
 30431  	s.PullRequestId = &v
 30432  	return s
 30433  }
 30434  
 30435  // SetPullRequestMergedStateChangedEventMetadata sets the PullRequestMergedStateChangedEventMetadata field's value.
 30436  func (s *PullRequestEvent) SetPullRequestMergedStateChangedEventMetadata(v *PullRequestMergedStateChangedEventMetadata) *PullRequestEvent {
 30437  	s.PullRequestMergedStateChangedEventMetadata = v
 30438  	return s
 30439  }
 30440  
 30441  // SetPullRequestSourceReferenceUpdatedEventMetadata sets the PullRequestSourceReferenceUpdatedEventMetadata field's value.
 30442  func (s *PullRequestEvent) SetPullRequestSourceReferenceUpdatedEventMetadata(v *PullRequestSourceReferenceUpdatedEventMetadata) *PullRequestEvent {
 30443  	s.PullRequestSourceReferenceUpdatedEventMetadata = v
 30444  	return s
 30445  }
 30446  
 30447  // SetPullRequestStatusChangedEventMetadata sets the PullRequestStatusChangedEventMetadata field's value.
 30448  func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullRequestStatusChangedEventMetadata) *PullRequestEvent {
 30449  	s.PullRequestStatusChangedEventMetadata = v
 30450  	return s
 30451  }
 30452  
 30453  // A pull request ID is required, but none was provided.
 30454  type PullRequestIdRequiredException struct {
 30455  	_            struct{}                  `type:"structure"`
 30456  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30457  
 30458  	Message_ *string `locationName:"message" type:"string"`
 30459  }
 30460  
 30461  // String returns the string representation.
 30462  //
 30463  // API parameter values that are decorated as "sensitive" in the API will not
 30464  // be included in the string output. The member name will be present, but the
 30465  // value will be replaced with "sensitive".
 30466  func (s PullRequestIdRequiredException) String() string {
 30467  	return awsutil.Prettify(s)
 30468  }
 30469  
 30470  // GoString returns the string representation.
 30471  //
 30472  // API parameter values that are decorated as "sensitive" in the API will not
 30473  // be included in the string output. The member name will be present, but the
 30474  // value will be replaced with "sensitive".
 30475  func (s PullRequestIdRequiredException) GoString() string {
 30476  	return s.String()
 30477  }
 30478  
 30479  func newErrorPullRequestIdRequiredException(v protocol.ResponseMetadata) error {
 30480  	return &PullRequestIdRequiredException{
 30481  		RespMetadata: v,
 30482  	}
 30483  }
 30484  
 30485  // Code returns the exception type name.
 30486  func (s *PullRequestIdRequiredException) Code() string {
 30487  	return "PullRequestIdRequiredException"
 30488  }
 30489  
 30490  // Message returns the exception's message.
 30491  func (s *PullRequestIdRequiredException) Message() string {
 30492  	if s.Message_ != nil {
 30493  		return *s.Message_
 30494  	}
 30495  	return ""
 30496  }
 30497  
 30498  // OrigErr always returns nil, satisfies awserr.Error interface.
 30499  func (s *PullRequestIdRequiredException) OrigErr() error {
 30500  	return nil
 30501  }
 30502  
 30503  func (s *PullRequestIdRequiredException) Error() string {
 30504  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 30505  }
 30506  
 30507  // Status code returns the HTTP status code for the request's response error.
 30508  func (s *PullRequestIdRequiredException) StatusCode() int {
 30509  	return s.RespMetadata.StatusCode
 30510  }
 30511  
 30512  // RequestID returns the service's response RequestID for request.
 30513  func (s *PullRequestIdRequiredException) RequestID() string {
 30514  	return s.RespMetadata.RequestID
 30515  }
 30516  
 30517  // Returns information about the change in the merge state for a pull request
 30518  // event.
 30519  type PullRequestMergedStateChangedEventMetadata struct {
 30520  	_ struct{} `type:"structure"`
 30521  
 30522  	// The name of the branch that the pull request is merged into.
 30523  	DestinationReference *string `locationName:"destinationReference" type:"string"`
 30524  
 30525  	// Information about the merge state change event.
 30526  	MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"`
 30527  
 30528  	// The name of the repository where the pull request was created.
 30529  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 30530  }
 30531  
 30532  // String returns the string representation.
 30533  //
 30534  // API parameter values that are decorated as "sensitive" in the API will not
 30535  // be included in the string output. The member name will be present, but the
 30536  // value will be replaced with "sensitive".
 30537  func (s PullRequestMergedStateChangedEventMetadata) String() string {
 30538  	return awsutil.Prettify(s)
 30539  }
 30540  
 30541  // GoString returns the string representation.
 30542  //
 30543  // API parameter values that are decorated as "sensitive" in the API will not
 30544  // be included in the string output. The member name will be present, but the
 30545  // value will be replaced with "sensitive".
 30546  func (s PullRequestMergedStateChangedEventMetadata) GoString() string {
 30547  	return s.String()
 30548  }
 30549  
 30550  // SetDestinationReference sets the DestinationReference field's value.
 30551  func (s *PullRequestMergedStateChangedEventMetadata) SetDestinationReference(v string) *PullRequestMergedStateChangedEventMetadata {
 30552  	s.DestinationReference = &v
 30553  	return s
 30554  }
 30555  
 30556  // SetMergeMetadata sets the MergeMetadata field's value.
 30557  func (s *PullRequestMergedStateChangedEventMetadata) SetMergeMetadata(v *MergeMetadata) *PullRequestMergedStateChangedEventMetadata {
 30558  	s.MergeMetadata = v
 30559  	return s
 30560  }
 30561  
 30562  // SetRepositoryName sets the RepositoryName field's value.
 30563  func (s *PullRequestMergedStateChangedEventMetadata) SetRepositoryName(v string) *PullRequestMergedStateChangedEventMetadata {
 30564  	s.RepositoryName = &v
 30565  	return s
 30566  }
 30567  
 30568  // Information about an update to the source branch of a pull request.
 30569  type PullRequestSourceReferenceUpdatedEventMetadata struct {
 30570  	_ struct{} `type:"structure"`
 30571  
 30572  	// The full commit ID of the commit in the source branch that was the tip of
 30573  	// the branch at the time the pull request was updated.
 30574  	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
 30575  
 30576  	// The full commit ID of the commit in the destination branch that was the tip
 30577  	// of the branch at the time the pull request was updated.
 30578  	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
 30579  
 30580  	// The commit ID of the most recent commit that the source branch and the destination
 30581  	// branch have in common.
 30582  	MergeBase *string `locationName:"mergeBase" type:"string"`
 30583  
 30584  	// The name of the repository where the pull request was updated.
 30585  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 30586  }
 30587  
 30588  // String returns the string representation.
 30589  //
 30590  // API parameter values that are decorated as "sensitive" in the API will not
 30591  // be included in the string output. The member name will be present, but the
 30592  // value will be replaced with "sensitive".
 30593  func (s PullRequestSourceReferenceUpdatedEventMetadata) String() string {
 30594  	return awsutil.Prettify(s)
 30595  }
 30596  
 30597  // GoString returns the string representation.
 30598  //
 30599  // API parameter values that are decorated as "sensitive" in the API will not
 30600  // be included in the string output. The member name will be present, but the
 30601  // value will be replaced with "sensitive".
 30602  func (s PullRequestSourceReferenceUpdatedEventMetadata) GoString() string {
 30603  	return s.String()
 30604  }
 30605  
 30606  // SetAfterCommitId sets the AfterCommitId field's value.
 30607  func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetAfterCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
 30608  	s.AfterCommitId = &v
 30609  	return s
 30610  }
 30611  
 30612  // SetBeforeCommitId sets the BeforeCommitId field's value.
 30613  func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetBeforeCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
 30614  	s.BeforeCommitId = &v
 30615  	return s
 30616  }
 30617  
 30618  // SetMergeBase sets the MergeBase field's value.
 30619  func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetMergeBase(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
 30620  	s.MergeBase = &v
 30621  	return s
 30622  }
 30623  
 30624  // SetRepositoryName sets the RepositoryName field's value.
 30625  func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetRepositoryName(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
 30626  	s.RepositoryName = &v
 30627  	return s
 30628  }
 30629  
 30630  // Information about a change to the status of a pull request.
 30631  type PullRequestStatusChangedEventMetadata struct {
 30632  	_ struct{} `type:"structure"`
 30633  
 30634  	// The changed status of the pull request.
 30635  	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
 30636  }
 30637  
 30638  // String returns the string representation.
 30639  //
 30640  // API parameter values that are decorated as "sensitive" in the API will not
 30641  // be included in the string output. The member name will be present, but the
 30642  // value will be replaced with "sensitive".
 30643  func (s PullRequestStatusChangedEventMetadata) String() string {
 30644  	return awsutil.Prettify(s)
 30645  }
 30646  
 30647  // GoString returns the string representation.
 30648  //
 30649  // API parameter values that are decorated as "sensitive" in the API will not
 30650  // be included in the string output. The member name will be present, but the
 30651  // value will be replaced with "sensitive".
 30652  func (s PullRequestStatusChangedEventMetadata) GoString() string {
 30653  	return s.String()
 30654  }
 30655  
 30656  // SetPullRequestStatus sets the PullRequestStatus field's value.
 30657  func (s *PullRequestStatusChangedEventMetadata) SetPullRequestStatus(v string) *PullRequestStatusChangedEventMetadata {
 30658  	s.PullRequestStatus = &v
 30659  	return s
 30660  }
 30661  
 30662  // A pull request status is required, but none was provided.
 30663  type PullRequestStatusRequiredException struct {
 30664  	_            struct{}                  `type:"structure"`
 30665  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30666  
 30667  	Message_ *string `locationName:"message" type:"string"`
 30668  }
 30669  
 30670  // String returns the string representation.
 30671  //
 30672  // API parameter values that are decorated as "sensitive" in the API will not
 30673  // be included in the string output. The member name will be present, but the
 30674  // value will be replaced with "sensitive".
 30675  func (s PullRequestStatusRequiredException) String() string {
 30676  	return awsutil.Prettify(s)
 30677  }
 30678  
 30679  // GoString returns the string representation.
 30680  //
 30681  // API parameter values that are decorated as "sensitive" in the API will not
 30682  // be included in the string output. The member name will be present, but the
 30683  // value will be replaced with "sensitive".
 30684  func (s PullRequestStatusRequiredException) GoString() string {
 30685  	return s.String()
 30686  }
 30687  
 30688  func newErrorPullRequestStatusRequiredException(v protocol.ResponseMetadata) error {
 30689  	return &PullRequestStatusRequiredException{
 30690  		RespMetadata: v,
 30691  	}
 30692  }
 30693  
 30694  // Code returns the exception type name.
 30695  func (s *PullRequestStatusRequiredException) Code() string {
 30696  	return "PullRequestStatusRequiredException"
 30697  }
 30698  
 30699  // Message returns the exception's message.
 30700  func (s *PullRequestStatusRequiredException) Message() string {
 30701  	if s.Message_ != nil {
 30702  		return *s.Message_
 30703  	}
 30704  	return ""
 30705  }
 30706  
 30707  // OrigErr always returns nil, satisfies awserr.Error interface.
 30708  func (s *PullRequestStatusRequiredException) OrigErr() error {
 30709  	return nil
 30710  }
 30711  
 30712  func (s *PullRequestStatusRequiredException) Error() string {
 30713  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 30714  }
 30715  
 30716  // Status code returns the HTTP status code for the request's response error.
 30717  func (s *PullRequestStatusRequiredException) StatusCode() int {
 30718  	return s.RespMetadata.StatusCode
 30719  }
 30720  
 30721  // RequestID returns the service's response RequestID for request.
 30722  func (s *PullRequestStatusRequiredException) RequestID() string {
 30723  	return s.RespMetadata.RequestID
 30724  }
 30725  
 30726  // Returns information about a pull request target.
 30727  type PullRequestTarget struct {
 30728  	_ struct{} `type:"structure"`
 30729  
 30730  	// The full commit ID that is the tip of the destination branch. This is the
 30731  	// commit where the pull request was or will be merged.
 30732  	DestinationCommit *string `locationName:"destinationCommit" type:"string"`
 30733  
 30734  	// The branch of the repository where the pull request changes are merged. Also
 30735  	// known as the destination branch.
 30736  	DestinationReference *string `locationName:"destinationReference" type:"string"`
 30737  
 30738  	// The commit ID of the most recent commit that the source branch and the destination
 30739  	// branch have in common.
 30740  	MergeBase *string `locationName:"mergeBase" type:"string"`
 30741  
 30742  	// Returns metadata about the state of the merge, including whether the merge
 30743  	// has been made.
 30744  	MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"`
 30745  
 30746  	// The name of the repository that contains the pull request source and destination
 30747  	// branches.
 30748  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 30749  
 30750  	// The full commit ID of the tip of the source branch used to create the pull
 30751  	// request. If the pull request branch is updated by a push while the pull request
 30752  	// is open, the commit ID changes to reflect the new tip of the branch.
 30753  	SourceCommit *string `locationName:"sourceCommit" type:"string"`
 30754  
 30755  	// The branch of the repository that contains the changes for the pull request.
 30756  	// Also known as the source branch.
 30757  	SourceReference *string `locationName:"sourceReference" type:"string"`
 30758  }
 30759  
 30760  // String returns the string representation.
 30761  //
 30762  // API parameter values that are decorated as "sensitive" in the API will not
 30763  // be included in the string output. The member name will be present, but the
 30764  // value will be replaced with "sensitive".
 30765  func (s PullRequestTarget) String() string {
 30766  	return awsutil.Prettify(s)
 30767  }
 30768  
 30769  // GoString returns the string representation.
 30770  //
 30771  // API parameter values that are decorated as "sensitive" in the API will not
 30772  // be included in the string output. The member name will be present, but the
 30773  // value will be replaced with "sensitive".
 30774  func (s PullRequestTarget) GoString() string {
 30775  	return s.String()
 30776  }
 30777  
 30778  // SetDestinationCommit sets the DestinationCommit field's value.
 30779  func (s *PullRequestTarget) SetDestinationCommit(v string) *PullRequestTarget {
 30780  	s.DestinationCommit = &v
 30781  	return s
 30782  }
 30783  
 30784  // SetDestinationReference sets the DestinationReference field's value.
 30785  func (s *PullRequestTarget) SetDestinationReference(v string) *PullRequestTarget {
 30786  	s.DestinationReference = &v
 30787  	return s
 30788  }
 30789  
 30790  // SetMergeBase sets the MergeBase field's value.
 30791  func (s *PullRequestTarget) SetMergeBase(v string) *PullRequestTarget {
 30792  	s.MergeBase = &v
 30793  	return s
 30794  }
 30795  
 30796  // SetMergeMetadata sets the MergeMetadata field's value.
 30797  func (s *PullRequestTarget) SetMergeMetadata(v *MergeMetadata) *PullRequestTarget {
 30798  	s.MergeMetadata = v
 30799  	return s
 30800  }
 30801  
 30802  // SetRepositoryName sets the RepositoryName field's value.
 30803  func (s *PullRequestTarget) SetRepositoryName(v string) *PullRequestTarget {
 30804  	s.RepositoryName = &v
 30805  	return s
 30806  }
 30807  
 30808  // SetSourceCommit sets the SourceCommit field's value.
 30809  func (s *PullRequestTarget) SetSourceCommit(v string) *PullRequestTarget {
 30810  	s.SourceCommit = &v
 30811  	return s
 30812  }
 30813  
 30814  // SetSourceReference sets the SourceReference field's value.
 30815  func (s *PullRequestTarget) SetSourceReference(v string) *PullRequestTarget {
 30816  	s.SourceReference = &v
 30817  	return s
 30818  }
 30819  
 30820  type PutCommentReactionInput struct {
 30821  	_ struct{} `type:"structure"`
 30822  
 30823  	// The ID of the comment to which you want to add or update a reaction.
 30824  	//
 30825  	// CommentId is a required field
 30826  	CommentId *string `locationName:"commentId" type:"string" required:"true"`
 30827  
 30828  	// The emoji reaction you want to add or update. To remove a reaction, provide
 30829  	// a value of blank or null. You can also provide the value of none. For information
 30830  	// about emoji reaction values supported in AWS CodeCommit, see the AWS CodeCommit
 30831  	// User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table).
 30832  	//
 30833  	// ReactionValue is a required field
 30834  	ReactionValue *string `locationName:"reactionValue" type:"string" required:"true"`
 30835  }
 30836  
 30837  // String returns the string representation.
 30838  //
 30839  // API parameter values that are decorated as "sensitive" in the API will not
 30840  // be included in the string output. The member name will be present, but the
 30841  // value will be replaced with "sensitive".
 30842  func (s PutCommentReactionInput) String() string {
 30843  	return awsutil.Prettify(s)
 30844  }
 30845  
 30846  // GoString returns the string representation.
 30847  //
 30848  // API parameter values that are decorated as "sensitive" in the API will not
 30849  // be included in the string output. The member name will be present, but the
 30850  // value will be replaced with "sensitive".
 30851  func (s PutCommentReactionInput) GoString() string {
 30852  	return s.String()
 30853  }
 30854  
 30855  // Validate inspects the fields of the type to determine if they are valid.
 30856  func (s *PutCommentReactionInput) Validate() error {
 30857  	invalidParams := request.ErrInvalidParams{Context: "PutCommentReactionInput"}
 30858  	if s.CommentId == nil {
 30859  		invalidParams.Add(request.NewErrParamRequired("CommentId"))
 30860  	}
 30861  	if s.ReactionValue == nil {
 30862  		invalidParams.Add(request.NewErrParamRequired("ReactionValue"))
 30863  	}
 30864  
 30865  	if invalidParams.Len() > 0 {
 30866  		return invalidParams
 30867  	}
 30868  	return nil
 30869  }
 30870  
 30871  // SetCommentId sets the CommentId field's value.
 30872  func (s *PutCommentReactionInput) SetCommentId(v string) *PutCommentReactionInput {
 30873  	s.CommentId = &v
 30874  	return s
 30875  }
 30876  
 30877  // SetReactionValue sets the ReactionValue field's value.
 30878  func (s *PutCommentReactionInput) SetReactionValue(v string) *PutCommentReactionInput {
 30879  	s.ReactionValue = &v
 30880  	return s
 30881  }
 30882  
 30883  type PutCommentReactionOutput struct {
 30884  	_ struct{} `type:"structure"`
 30885  }
 30886  
 30887  // String returns the string representation.
 30888  //
 30889  // API parameter values that are decorated as "sensitive" in the API will not
 30890  // be included in the string output. The member name will be present, but the
 30891  // value will be replaced with "sensitive".
 30892  func (s PutCommentReactionOutput) String() string {
 30893  	return awsutil.Prettify(s)
 30894  }
 30895  
 30896  // GoString returns the string representation.
 30897  //
 30898  // API parameter values that are decorated as "sensitive" in the API will not
 30899  // be included in the string output. The member name will be present, but the
 30900  // value will be replaced with "sensitive".
 30901  func (s PutCommentReactionOutput) GoString() string {
 30902  	return s.String()
 30903  }
 30904  
 30905  // Information about a file added or updated as part of a commit.
 30906  type PutFileEntry struct {
 30907  	_ struct{} `type:"structure"`
 30908  
 30909  	// The content of the file, if a source file is not specified.
 30910  	// FileContent is automatically base64 encoded/decoded by the SDK.
 30911  	FileContent []byte `locationName:"fileContent" type:"blob"`
 30912  
 30913  	// The extrapolated file mode permissions for the file. Valid values include
 30914  	// EXECUTABLE and NORMAL.
 30915  	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
 30916  
 30917  	// The full path to the file in the repository, including the name of the file.
 30918  	//
 30919  	// FilePath is a required field
 30920  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 30921  
 30922  	// The name and full path of the file that contains the changes you want to
 30923  	// make as part of the commit, if you are not providing the file content directly.
 30924  	SourceFile *SourceFileSpecifier `locationName:"sourceFile" type:"structure"`
 30925  }
 30926  
 30927  // String returns the string representation.
 30928  //
 30929  // API parameter values that are decorated as "sensitive" in the API will not
 30930  // be included in the string output. The member name will be present, but the
 30931  // value will be replaced with "sensitive".
 30932  func (s PutFileEntry) String() string {
 30933  	return awsutil.Prettify(s)
 30934  }
 30935  
 30936  // GoString returns the string representation.
 30937  //
 30938  // API parameter values that are decorated as "sensitive" in the API will not
 30939  // be included in the string output. The member name will be present, but the
 30940  // value will be replaced with "sensitive".
 30941  func (s PutFileEntry) GoString() string {
 30942  	return s.String()
 30943  }
 30944  
 30945  // Validate inspects the fields of the type to determine if they are valid.
 30946  func (s *PutFileEntry) Validate() error {
 30947  	invalidParams := request.ErrInvalidParams{Context: "PutFileEntry"}
 30948  	if s.FilePath == nil {
 30949  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 30950  	}
 30951  	if s.SourceFile != nil {
 30952  		if err := s.SourceFile.Validate(); err != nil {
 30953  			invalidParams.AddNested("SourceFile", err.(request.ErrInvalidParams))
 30954  		}
 30955  	}
 30956  
 30957  	if invalidParams.Len() > 0 {
 30958  		return invalidParams
 30959  	}
 30960  	return nil
 30961  }
 30962  
 30963  // SetFileContent sets the FileContent field's value.
 30964  func (s *PutFileEntry) SetFileContent(v []byte) *PutFileEntry {
 30965  	s.FileContent = v
 30966  	return s
 30967  }
 30968  
 30969  // SetFileMode sets the FileMode field's value.
 30970  func (s *PutFileEntry) SetFileMode(v string) *PutFileEntry {
 30971  	s.FileMode = &v
 30972  	return s
 30973  }
 30974  
 30975  // SetFilePath sets the FilePath field's value.
 30976  func (s *PutFileEntry) SetFilePath(v string) *PutFileEntry {
 30977  	s.FilePath = &v
 30978  	return s
 30979  }
 30980  
 30981  // SetSourceFile sets the SourceFile field's value.
 30982  func (s *PutFileEntry) SetSourceFile(v *SourceFileSpecifier) *PutFileEntry {
 30983  	s.SourceFile = v
 30984  	return s
 30985  }
 30986  
 30987  // The commit cannot be created because one or more files specified in the commit
 30988  // reference both a file and a folder.
 30989  type PutFileEntryConflictException struct {
 30990  	_            struct{}                  `type:"structure"`
 30991  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 30992  
 30993  	Message_ *string `locationName:"message" type:"string"`
 30994  }
 30995  
 30996  // String returns the string representation.
 30997  //
 30998  // API parameter values that are decorated as "sensitive" in the API will not
 30999  // be included in the string output. The member name will be present, but the
 31000  // value will be replaced with "sensitive".
 31001  func (s PutFileEntryConflictException) String() string {
 31002  	return awsutil.Prettify(s)
 31003  }
 31004  
 31005  // GoString returns the string representation.
 31006  //
 31007  // API parameter values that are decorated as "sensitive" in the API will not
 31008  // be included in the string output. The member name will be present, but the
 31009  // value will be replaced with "sensitive".
 31010  func (s PutFileEntryConflictException) GoString() string {
 31011  	return s.String()
 31012  }
 31013  
 31014  func newErrorPutFileEntryConflictException(v protocol.ResponseMetadata) error {
 31015  	return &PutFileEntryConflictException{
 31016  		RespMetadata: v,
 31017  	}
 31018  }
 31019  
 31020  // Code returns the exception type name.
 31021  func (s *PutFileEntryConflictException) Code() string {
 31022  	return "PutFileEntryConflictException"
 31023  }
 31024  
 31025  // Message returns the exception's message.
 31026  func (s *PutFileEntryConflictException) Message() string {
 31027  	if s.Message_ != nil {
 31028  		return *s.Message_
 31029  	}
 31030  	return ""
 31031  }
 31032  
 31033  // OrigErr always returns nil, satisfies awserr.Error interface.
 31034  func (s *PutFileEntryConflictException) OrigErr() error {
 31035  	return nil
 31036  }
 31037  
 31038  func (s *PutFileEntryConflictException) Error() string {
 31039  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31040  }
 31041  
 31042  // Status code returns the HTTP status code for the request's response error.
 31043  func (s *PutFileEntryConflictException) StatusCode() int {
 31044  	return s.RespMetadata.StatusCode
 31045  }
 31046  
 31047  // RequestID returns the service's response RequestID for request.
 31048  func (s *PutFileEntryConflictException) RequestID() string {
 31049  	return s.RespMetadata.RequestID
 31050  }
 31051  
 31052  type PutFileInput struct {
 31053  	_ struct{} `type:"structure"`
 31054  
 31055  	// The name of the branch where you want to add or update the file. If this
 31056  	// is an empty repository, this branch is created.
 31057  	//
 31058  	// BranchName is a required field
 31059  	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
 31060  
 31061  	// A message about why this file was added or updated. Although it is optional,
 31062  	// a message makes the commit history for your repository more useful.
 31063  	CommitMessage *string `locationName:"commitMessage" type:"string"`
 31064  
 31065  	// An email address for the person adding or updating the file.
 31066  	Email *string `locationName:"email" type:"string"`
 31067  
 31068  	// The content of the file, in binary object format.
 31069  	// FileContent is automatically base64 encoded/decoded by the SDK.
 31070  	//
 31071  	// FileContent is a required field
 31072  	FileContent []byte `locationName:"fileContent" type:"blob" required:"true"`
 31073  
 31074  	// The file mode permissions of the blob. Valid file mode permissions are listed
 31075  	// here.
 31076  	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
 31077  
 31078  	// The name of the file you want to add or update, including the relative path
 31079  	// to the file in the repository.
 31080  	//
 31081  	// If the path does not currently exist in the repository, the path is created
 31082  	// as part of adding the file.
 31083  	//
 31084  	// FilePath is a required field
 31085  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 31086  
 31087  	// The name of the person adding or updating the file. Although it is optional,
 31088  	// a name makes the commit history for your repository more useful.
 31089  	Name *string `locationName:"name" type:"string"`
 31090  
 31091  	// The full commit ID of the head commit in the branch where you want to add
 31092  	// or update the file. If this is an empty repository, no commit ID is required.
 31093  	// If this is not an empty repository, a commit ID is required.
 31094  	//
 31095  	// The commit ID must match the ID of the head commit at the time of the operation.
 31096  	// Otherwise, an error occurs, and the file is not added or updated.
 31097  	ParentCommitId *string `locationName:"parentCommitId" type:"string"`
 31098  
 31099  	// The name of the repository where you want to add or update the file.
 31100  	//
 31101  	// RepositoryName is a required field
 31102  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 31103  }
 31104  
 31105  // String returns the string representation.
 31106  //
 31107  // API parameter values that are decorated as "sensitive" in the API will not
 31108  // be included in the string output. The member name will be present, but the
 31109  // value will be replaced with "sensitive".
 31110  func (s PutFileInput) String() string {
 31111  	return awsutil.Prettify(s)
 31112  }
 31113  
 31114  // GoString returns the string representation.
 31115  //
 31116  // API parameter values that are decorated as "sensitive" in the API will not
 31117  // be included in the string output. The member name will be present, but the
 31118  // value will be replaced with "sensitive".
 31119  func (s PutFileInput) GoString() string {
 31120  	return s.String()
 31121  }
 31122  
 31123  // Validate inspects the fields of the type to determine if they are valid.
 31124  func (s *PutFileInput) Validate() error {
 31125  	invalidParams := request.ErrInvalidParams{Context: "PutFileInput"}
 31126  	if s.BranchName == nil {
 31127  		invalidParams.Add(request.NewErrParamRequired("BranchName"))
 31128  	}
 31129  	if s.BranchName != nil && len(*s.BranchName) < 1 {
 31130  		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
 31131  	}
 31132  	if s.FileContent == nil {
 31133  		invalidParams.Add(request.NewErrParamRequired("FileContent"))
 31134  	}
 31135  	if s.FilePath == nil {
 31136  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 31137  	}
 31138  	if s.RepositoryName == nil {
 31139  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 31140  	}
 31141  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 31142  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 31143  	}
 31144  
 31145  	if invalidParams.Len() > 0 {
 31146  		return invalidParams
 31147  	}
 31148  	return nil
 31149  }
 31150  
 31151  // SetBranchName sets the BranchName field's value.
 31152  func (s *PutFileInput) SetBranchName(v string) *PutFileInput {
 31153  	s.BranchName = &v
 31154  	return s
 31155  }
 31156  
 31157  // SetCommitMessage sets the CommitMessage field's value.
 31158  func (s *PutFileInput) SetCommitMessage(v string) *PutFileInput {
 31159  	s.CommitMessage = &v
 31160  	return s
 31161  }
 31162  
 31163  // SetEmail sets the Email field's value.
 31164  func (s *PutFileInput) SetEmail(v string) *PutFileInput {
 31165  	s.Email = &v
 31166  	return s
 31167  }
 31168  
 31169  // SetFileContent sets the FileContent field's value.
 31170  func (s *PutFileInput) SetFileContent(v []byte) *PutFileInput {
 31171  	s.FileContent = v
 31172  	return s
 31173  }
 31174  
 31175  // SetFileMode sets the FileMode field's value.
 31176  func (s *PutFileInput) SetFileMode(v string) *PutFileInput {
 31177  	s.FileMode = &v
 31178  	return s
 31179  }
 31180  
 31181  // SetFilePath sets the FilePath field's value.
 31182  func (s *PutFileInput) SetFilePath(v string) *PutFileInput {
 31183  	s.FilePath = &v
 31184  	return s
 31185  }
 31186  
 31187  // SetName sets the Name field's value.
 31188  func (s *PutFileInput) SetName(v string) *PutFileInput {
 31189  	s.Name = &v
 31190  	return s
 31191  }
 31192  
 31193  // SetParentCommitId sets the ParentCommitId field's value.
 31194  func (s *PutFileInput) SetParentCommitId(v string) *PutFileInput {
 31195  	s.ParentCommitId = &v
 31196  	return s
 31197  }
 31198  
 31199  // SetRepositoryName sets the RepositoryName field's value.
 31200  func (s *PutFileInput) SetRepositoryName(v string) *PutFileInput {
 31201  	s.RepositoryName = &v
 31202  	return s
 31203  }
 31204  
 31205  type PutFileOutput struct {
 31206  	_ struct{} `type:"structure"`
 31207  
 31208  	// The ID of the blob, which is its SHA-1 pointer.
 31209  	//
 31210  	// BlobId is a required field
 31211  	BlobId *string `locationName:"blobId" type:"string" required:"true"`
 31212  
 31213  	// The full SHA ID of the commit that contains this file change.
 31214  	//
 31215  	// CommitId is a required field
 31216  	CommitId *string `locationName:"commitId" type:"string" required:"true"`
 31217  
 31218  	// The full SHA-1 pointer of the tree information for the commit that contains
 31219  	// this file change.
 31220  	//
 31221  	// TreeId is a required field
 31222  	TreeId *string `locationName:"treeId" type:"string" required:"true"`
 31223  }
 31224  
 31225  // String returns the string representation.
 31226  //
 31227  // API parameter values that are decorated as "sensitive" in the API will not
 31228  // be included in the string output. The member name will be present, but the
 31229  // value will be replaced with "sensitive".
 31230  func (s PutFileOutput) String() string {
 31231  	return awsutil.Prettify(s)
 31232  }
 31233  
 31234  // GoString returns the string representation.
 31235  //
 31236  // API parameter values that are decorated as "sensitive" in the API will not
 31237  // be included in the string output. The member name will be present, but the
 31238  // value will be replaced with "sensitive".
 31239  func (s PutFileOutput) GoString() string {
 31240  	return s.String()
 31241  }
 31242  
 31243  // SetBlobId sets the BlobId field's value.
 31244  func (s *PutFileOutput) SetBlobId(v string) *PutFileOutput {
 31245  	s.BlobId = &v
 31246  	return s
 31247  }
 31248  
 31249  // SetCommitId sets the CommitId field's value.
 31250  func (s *PutFileOutput) SetCommitId(v string) *PutFileOutput {
 31251  	s.CommitId = &v
 31252  	return s
 31253  }
 31254  
 31255  // SetTreeId sets the TreeId field's value.
 31256  func (s *PutFileOutput) SetTreeId(v string) *PutFileOutput {
 31257  	s.TreeId = &v
 31258  	return s
 31259  }
 31260  
 31261  // Represents the input of a put repository triggers operation.
 31262  type PutRepositoryTriggersInput struct {
 31263  	_ struct{} `type:"structure"`
 31264  
 31265  	// The name of the repository where you want to create or update the trigger.
 31266  	//
 31267  	// RepositoryName is a required field
 31268  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 31269  
 31270  	// The JSON block of configuration information for each trigger.
 31271  	//
 31272  	// Triggers is a required field
 31273  	Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"`
 31274  }
 31275  
 31276  // String returns the string representation.
 31277  //
 31278  // API parameter values that are decorated as "sensitive" in the API will not
 31279  // be included in the string output. The member name will be present, but the
 31280  // value will be replaced with "sensitive".
 31281  func (s PutRepositoryTriggersInput) String() string {
 31282  	return awsutil.Prettify(s)
 31283  }
 31284  
 31285  // GoString returns the string representation.
 31286  //
 31287  // API parameter values that are decorated as "sensitive" in the API will not
 31288  // be included in the string output. The member name will be present, but the
 31289  // value will be replaced with "sensitive".
 31290  func (s PutRepositoryTriggersInput) GoString() string {
 31291  	return s.String()
 31292  }
 31293  
 31294  // Validate inspects the fields of the type to determine if they are valid.
 31295  func (s *PutRepositoryTriggersInput) Validate() error {
 31296  	invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"}
 31297  	if s.RepositoryName == nil {
 31298  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 31299  	}
 31300  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 31301  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 31302  	}
 31303  	if s.Triggers == nil {
 31304  		invalidParams.Add(request.NewErrParamRequired("Triggers"))
 31305  	}
 31306  	if s.Triggers != nil {
 31307  		for i, v := range s.Triggers {
 31308  			if v == nil {
 31309  				continue
 31310  			}
 31311  			if err := v.Validate(); err != nil {
 31312  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
 31313  			}
 31314  		}
 31315  	}
 31316  
 31317  	if invalidParams.Len() > 0 {
 31318  		return invalidParams
 31319  	}
 31320  	return nil
 31321  }
 31322  
 31323  // SetRepositoryName sets the RepositoryName field's value.
 31324  func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput {
 31325  	s.RepositoryName = &v
 31326  	return s
 31327  }
 31328  
 31329  // SetTriggers sets the Triggers field's value.
 31330  func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput {
 31331  	s.Triggers = v
 31332  	return s
 31333  }
 31334  
 31335  // Represents the output of a put repository triggers operation.
 31336  type PutRepositoryTriggersOutput struct {
 31337  	_ struct{} `type:"structure"`
 31338  
 31339  	// The system-generated unique ID for the create or update operation.
 31340  	ConfigurationId *string `locationName:"configurationId" type:"string"`
 31341  }
 31342  
 31343  // String returns the string representation.
 31344  //
 31345  // API parameter values that are decorated as "sensitive" in the API will not
 31346  // be included in the string output. The member name will be present, but the
 31347  // value will be replaced with "sensitive".
 31348  func (s PutRepositoryTriggersOutput) String() string {
 31349  	return awsutil.Prettify(s)
 31350  }
 31351  
 31352  // GoString returns the string representation.
 31353  //
 31354  // API parameter values that are decorated as "sensitive" in the API will not
 31355  // be included in the string output. The member name will be present, but the
 31356  // value will be replaced with "sensitive".
 31357  func (s PutRepositoryTriggersOutput) GoString() string {
 31358  	return s.String()
 31359  }
 31360  
 31361  // SetConfigurationId sets the ConfigurationId field's value.
 31362  func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput {
 31363  	s.ConfigurationId = &v
 31364  	return s
 31365  }
 31366  
 31367  // Information about the reaction values provided by users on a comment.
 31368  type ReactionForComment struct {
 31369  	_ struct{} `type:"structure"`
 31370  
 31371  	// The reaction for a specified comment.
 31372  	Reaction *ReactionValueFormats `locationName:"reaction" type:"structure"`
 31373  
 31374  	// The Amazon Resource Names (ARNs) of users who have provided reactions to
 31375  	// the comment.
 31376  	ReactionUsers []*string `locationName:"reactionUsers" type:"list"`
 31377  
 31378  	// A numerical count of users who reacted with the specified emoji whose identities
 31379  	// have been subsequently deleted from IAM. While these IAM users or roles no
 31380  	// longer exist, the reactions might still appear in total reaction counts.
 31381  	ReactionsFromDeletedUsersCount *int64 `locationName:"reactionsFromDeletedUsersCount" type:"integer"`
 31382  }
 31383  
 31384  // String returns the string representation.
 31385  //
 31386  // API parameter values that are decorated as "sensitive" in the API will not
 31387  // be included in the string output. The member name will be present, but the
 31388  // value will be replaced with "sensitive".
 31389  func (s ReactionForComment) String() string {
 31390  	return awsutil.Prettify(s)
 31391  }
 31392  
 31393  // GoString returns the string representation.
 31394  //
 31395  // API parameter values that are decorated as "sensitive" in the API will not
 31396  // be included in the string output. The member name will be present, but the
 31397  // value will be replaced with "sensitive".
 31398  func (s ReactionForComment) GoString() string {
 31399  	return s.String()
 31400  }
 31401  
 31402  // SetReaction sets the Reaction field's value.
 31403  func (s *ReactionForComment) SetReaction(v *ReactionValueFormats) *ReactionForComment {
 31404  	s.Reaction = v
 31405  	return s
 31406  }
 31407  
 31408  // SetReactionUsers sets the ReactionUsers field's value.
 31409  func (s *ReactionForComment) SetReactionUsers(v []*string) *ReactionForComment {
 31410  	s.ReactionUsers = v
 31411  	return s
 31412  }
 31413  
 31414  // SetReactionsFromDeletedUsersCount sets the ReactionsFromDeletedUsersCount field's value.
 31415  func (s *ReactionForComment) SetReactionsFromDeletedUsersCount(v int64) *ReactionForComment {
 31416  	s.ReactionsFromDeletedUsersCount = &v
 31417  	return s
 31418  }
 31419  
 31420  // The number of reactions has been exceeded. Reactions are limited to one reaction
 31421  // per user for each individual comment ID.
 31422  type ReactionLimitExceededException struct {
 31423  	_            struct{}                  `type:"structure"`
 31424  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31425  
 31426  	Message_ *string `locationName:"message" type:"string"`
 31427  }
 31428  
 31429  // String returns the string representation.
 31430  //
 31431  // API parameter values that are decorated as "sensitive" in the API will not
 31432  // be included in the string output. The member name will be present, but the
 31433  // value will be replaced with "sensitive".
 31434  func (s ReactionLimitExceededException) String() string {
 31435  	return awsutil.Prettify(s)
 31436  }
 31437  
 31438  // GoString returns the string representation.
 31439  //
 31440  // API parameter values that are decorated as "sensitive" in the API will not
 31441  // be included in the string output. The member name will be present, but the
 31442  // value will be replaced with "sensitive".
 31443  func (s ReactionLimitExceededException) GoString() string {
 31444  	return s.String()
 31445  }
 31446  
 31447  func newErrorReactionLimitExceededException(v protocol.ResponseMetadata) error {
 31448  	return &ReactionLimitExceededException{
 31449  		RespMetadata: v,
 31450  	}
 31451  }
 31452  
 31453  // Code returns the exception type name.
 31454  func (s *ReactionLimitExceededException) Code() string {
 31455  	return "ReactionLimitExceededException"
 31456  }
 31457  
 31458  // Message returns the exception's message.
 31459  func (s *ReactionLimitExceededException) Message() string {
 31460  	if s.Message_ != nil {
 31461  		return *s.Message_
 31462  	}
 31463  	return ""
 31464  }
 31465  
 31466  // OrigErr always returns nil, satisfies awserr.Error interface.
 31467  func (s *ReactionLimitExceededException) OrigErr() error {
 31468  	return nil
 31469  }
 31470  
 31471  func (s *ReactionLimitExceededException) Error() string {
 31472  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31473  }
 31474  
 31475  // Status code returns the HTTP status code for the request's response error.
 31476  func (s *ReactionLimitExceededException) StatusCode() int {
 31477  	return s.RespMetadata.StatusCode
 31478  }
 31479  
 31480  // RequestID returns the service's response RequestID for request.
 31481  func (s *ReactionLimitExceededException) RequestID() string {
 31482  	return s.RespMetadata.RequestID
 31483  }
 31484  
 31485  // Information about the values for reactions to a comment. AWS CodeCommit supports
 31486  // a limited set of reactions.
 31487  type ReactionValueFormats struct {
 31488  	_ struct{} `type:"structure"`
 31489  
 31490  	// The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted
 31491  	// slightly differently on different operating systems.
 31492  	Emoji *string `locationName:"emoji" type:"string"`
 31493  
 31494  	// The emoji short code for the reaction. Short codes are interpreted slightly
 31495  	// differently on different operating systems.
 31496  	ShortCode *string `locationName:"shortCode" type:"string"`
 31497  
 31498  	// The Unicode codepoint for the reaction.
 31499  	Unicode *string `locationName:"unicode" type:"string"`
 31500  }
 31501  
 31502  // String returns the string representation.
 31503  //
 31504  // API parameter values that are decorated as "sensitive" in the API will not
 31505  // be included in the string output. The member name will be present, but the
 31506  // value will be replaced with "sensitive".
 31507  func (s ReactionValueFormats) String() string {
 31508  	return awsutil.Prettify(s)
 31509  }
 31510  
 31511  // GoString returns the string representation.
 31512  //
 31513  // API parameter values that are decorated as "sensitive" in the API will not
 31514  // be included in the string output. The member name will be present, but the
 31515  // value will be replaced with "sensitive".
 31516  func (s ReactionValueFormats) GoString() string {
 31517  	return s.String()
 31518  }
 31519  
 31520  // SetEmoji sets the Emoji field's value.
 31521  func (s *ReactionValueFormats) SetEmoji(v string) *ReactionValueFormats {
 31522  	s.Emoji = &v
 31523  	return s
 31524  }
 31525  
 31526  // SetShortCode sets the ShortCode field's value.
 31527  func (s *ReactionValueFormats) SetShortCode(v string) *ReactionValueFormats {
 31528  	s.ShortCode = &v
 31529  	return s
 31530  }
 31531  
 31532  // SetUnicode sets the Unicode field's value.
 31533  func (s *ReactionValueFormats) SetUnicode(v string) *ReactionValueFormats {
 31534  	s.Unicode = &v
 31535  	return s
 31536  }
 31537  
 31538  // A reaction value is required.
 31539  type ReactionValueRequiredException struct {
 31540  	_            struct{}                  `type:"structure"`
 31541  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31542  
 31543  	Message_ *string `locationName:"message" type:"string"`
 31544  }
 31545  
 31546  // String returns the string representation.
 31547  //
 31548  // API parameter values that are decorated as "sensitive" in the API will not
 31549  // be included in the string output. The member name will be present, but the
 31550  // value will be replaced with "sensitive".
 31551  func (s ReactionValueRequiredException) String() string {
 31552  	return awsutil.Prettify(s)
 31553  }
 31554  
 31555  // GoString returns the string representation.
 31556  //
 31557  // API parameter values that are decorated as "sensitive" in the API will not
 31558  // be included in the string output. The member name will be present, but the
 31559  // value will be replaced with "sensitive".
 31560  func (s ReactionValueRequiredException) GoString() string {
 31561  	return s.String()
 31562  }
 31563  
 31564  func newErrorReactionValueRequiredException(v protocol.ResponseMetadata) error {
 31565  	return &ReactionValueRequiredException{
 31566  		RespMetadata: v,
 31567  	}
 31568  }
 31569  
 31570  // Code returns the exception type name.
 31571  func (s *ReactionValueRequiredException) Code() string {
 31572  	return "ReactionValueRequiredException"
 31573  }
 31574  
 31575  // Message returns the exception's message.
 31576  func (s *ReactionValueRequiredException) Message() string {
 31577  	if s.Message_ != nil {
 31578  		return *s.Message_
 31579  	}
 31580  	return ""
 31581  }
 31582  
 31583  // OrigErr always returns nil, satisfies awserr.Error interface.
 31584  func (s *ReactionValueRequiredException) OrigErr() error {
 31585  	return nil
 31586  }
 31587  
 31588  func (s *ReactionValueRequiredException) Error() string {
 31589  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31590  }
 31591  
 31592  // Status code returns the HTTP status code for the request's response error.
 31593  func (s *ReactionValueRequiredException) StatusCode() int {
 31594  	return s.RespMetadata.StatusCode
 31595  }
 31596  
 31597  // RequestID returns the service's response RequestID for request.
 31598  func (s *ReactionValueRequiredException) RequestID() string {
 31599  	return s.RespMetadata.RequestID
 31600  }
 31601  
 31602  // The specified reference does not exist. You must provide a full commit ID.
 31603  type ReferenceDoesNotExistException struct {
 31604  	_            struct{}                  `type:"structure"`
 31605  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31606  
 31607  	Message_ *string `locationName:"message" type:"string"`
 31608  }
 31609  
 31610  // String returns the string representation.
 31611  //
 31612  // API parameter values that are decorated as "sensitive" in the API will not
 31613  // be included in the string output. The member name will be present, but the
 31614  // value will be replaced with "sensitive".
 31615  func (s ReferenceDoesNotExistException) String() string {
 31616  	return awsutil.Prettify(s)
 31617  }
 31618  
 31619  // GoString returns the string representation.
 31620  //
 31621  // API parameter values that are decorated as "sensitive" in the API will not
 31622  // be included in the string output. The member name will be present, but the
 31623  // value will be replaced with "sensitive".
 31624  func (s ReferenceDoesNotExistException) GoString() string {
 31625  	return s.String()
 31626  }
 31627  
 31628  func newErrorReferenceDoesNotExistException(v protocol.ResponseMetadata) error {
 31629  	return &ReferenceDoesNotExistException{
 31630  		RespMetadata: v,
 31631  	}
 31632  }
 31633  
 31634  // Code returns the exception type name.
 31635  func (s *ReferenceDoesNotExistException) Code() string {
 31636  	return "ReferenceDoesNotExistException"
 31637  }
 31638  
 31639  // Message returns the exception's message.
 31640  func (s *ReferenceDoesNotExistException) Message() string {
 31641  	if s.Message_ != nil {
 31642  		return *s.Message_
 31643  	}
 31644  	return ""
 31645  }
 31646  
 31647  // OrigErr always returns nil, satisfies awserr.Error interface.
 31648  func (s *ReferenceDoesNotExistException) OrigErr() error {
 31649  	return nil
 31650  }
 31651  
 31652  func (s *ReferenceDoesNotExistException) Error() string {
 31653  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31654  }
 31655  
 31656  // Status code returns the HTTP status code for the request's response error.
 31657  func (s *ReferenceDoesNotExistException) StatusCode() int {
 31658  	return s.RespMetadata.StatusCode
 31659  }
 31660  
 31661  // RequestID returns the service's response RequestID for request.
 31662  func (s *ReferenceDoesNotExistException) RequestID() string {
 31663  	return s.RespMetadata.RequestID
 31664  }
 31665  
 31666  // A reference name is required, but none was provided.
 31667  type ReferenceNameRequiredException struct {
 31668  	_            struct{}                  `type:"structure"`
 31669  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31670  
 31671  	Message_ *string `locationName:"message" type:"string"`
 31672  }
 31673  
 31674  // String returns the string representation.
 31675  //
 31676  // API parameter values that are decorated as "sensitive" in the API will not
 31677  // be included in the string output. The member name will be present, but the
 31678  // value will be replaced with "sensitive".
 31679  func (s ReferenceNameRequiredException) String() string {
 31680  	return awsutil.Prettify(s)
 31681  }
 31682  
 31683  // GoString returns the string representation.
 31684  //
 31685  // API parameter values that are decorated as "sensitive" in the API will not
 31686  // be included in the string output. The member name will be present, but the
 31687  // value will be replaced with "sensitive".
 31688  func (s ReferenceNameRequiredException) GoString() string {
 31689  	return s.String()
 31690  }
 31691  
 31692  func newErrorReferenceNameRequiredException(v protocol.ResponseMetadata) error {
 31693  	return &ReferenceNameRequiredException{
 31694  		RespMetadata: v,
 31695  	}
 31696  }
 31697  
 31698  // Code returns the exception type name.
 31699  func (s *ReferenceNameRequiredException) Code() string {
 31700  	return "ReferenceNameRequiredException"
 31701  }
 31702  
 31703  // Message returns the exception's message.
 31704  func (s *ReferenceNameRequiredException) Message() string {
 31705  	if s.Message_ != nil {
 31706  		return *s.Message_
 31707  	}
 31708  	return ""
 31709  }
 31710  
 31711  // OrigErr always returns nil, satisfies awserr.Error interface.
 31712  func (s *ReferenceNameRequiredException) OrigErr() error {
 31713  	return nil
 31714  }
 31715  
 31716  func (s *ReferenceNameRequiredException) Error() string {
 31717  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31718  }
 31719  
 31720  // Status code returns the HTTP status code for the request's response error.
 31721  func (s *ReferenceNameRequiredException) StatusCode() int {
 31722  	return s.RespMetadata.StatusCode
 31723  }
 31724  
 31725  // RequestID returns the service's response RequestID for request.
 31726  func (s *ReferenceNameRequiredException) RequestID() string {
 31727  	return s.RespMetadata.RequestID
 31728  }
 31729  
 31730  // The specified reference is not a supported type.
 31731  type ReferenceTypeNotSupportedException struct {
 31732  	_            struct{}                  `type:"structure"`
 31733  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31734  
 31735  	Message_ *string `locationName:"message" type:"string"`
 31736  }
 31737  
 31738  // String returns the string representation.
 31739  //
 31740  // API parameter values that are decorated as "sensitive" in the API will not
 31741  // be included in the string output. The member name will be present, but the
 31742  // value will be replaced with "sensitive".
 31743  func (s ReferenceTypeNotSupportedException) String() string {
 31744  	return awsutil.Prettify(s)
 31745  }
 31746  
 31747  // GoString returns the string representation.
 31748  //
 31749  // API parameter values that are decorated as "sensitive" in the API will not
 31750  // be included in the string output. The member name will be present, but the
 31751  // value will be replaced with "sensitive".
 31752  func (s ReferenceTypeNotSupportedException) GoString() string {
 31753  	return s.String()
 31754  }
 31755  
 31756  func newErrorReferenceTypeNotSupportedException(v protocol.ResponseMetadata) error {
 31757  	return &ReferenceTypeNotSupportedException{
 31758  		RespMetadata: v,
 31759  	}
 31760  }
 31761  
 31762  // Code returns the exception type name.
 31763  func (s *ReferenceTypeNotSupportedException) Code() string {
 31764  	return "ReferenceTypeNotSupportedException"
 31765  }
 31766  
 31767  // Message returns the exception's message.
 31768  func (s *ReferenceTypeNotSupportedException) Message() string {
 31769  	if s.Message_ != nil {
 31770  		return *s.Message_
 31771  	}
 31772  	return ""
 31773  }
 31774  
 31775  // OrigErr always returns nil, satisfies awserr.Error interface.
 31776  func (s *ReferenceTypeNotSupportedException) OrigErr() error {
 31777  	return nil
 31778  }
 31779  
 31780  func (s *ReferenceTypeNotSupportedException) Error() string {
 31781  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31782  }
 31783  
 31784  // Status code returns the HTTP status code for the request's response error.
 31785  func (s *ReferenceTypeNotSupportedException) StatusCode() int {
 31786  	return s.RespMetadata.StatusCode
 31787  }
 31788  
 31789  // RequestID returns the service's response RequestID for request.
 31790  func (s *ReferenceTypeNotSupportedException) RequestID() string {
 31791  	return s.RespMetadata.RequestID
 31792  }
 31793  
 31794  // Information about a replacement content entry in the conflict of a merge
 31795  // or pull request operation.
 31796  type ReplaceContentEntry struct {
 31797  	_ struct{} `type:"structure"`
 31798  
 31799  	// The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
 31800  	// Content is automatically base64 encoded/decoded by the SDK.
 31801  	Content []byte `locationName:"content" type:"blob"`
 31802  
 31803  	// The file mode to apply during conflict resoltion.
 31804  	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
 31805  
 31806  	// The path of the conflicting file.
 31807  	//
 31808  	// FilePath is a required field
 31809  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 31810  
 31811  	// The replacement type to use when determining how to resolve the conflict.
 31812  	//
 31813  	// ReplacementType is a required field
 31814  	ReplacementType *string `locationName:"replacementType" type:"string" required:"true" enum:"ReplacementTypeEnum"`
 31815  }
 31816  
 31817  // String returns the string representation.
 31818  //
 31819  // API parameter values that are decorated as "sensitive" in the API will not
 31820  // be included in the string output. The member name will be present, but the
 31821  // value will be replaced with "sensitive".
 31822  func (s ReplaceContentEntry) String() string {
 31823  	return awsutil.Prettify(s)
 31824  }
 31825  
 31826  // GoString returns the string representation.
 31827  //
 31828  // API parameter values that are decorated as "sensitive" in the API will not
 31829  // be included in the string output. The member name will be present, but the
 31830  // value will be replaced with "sensitive".
 31831  func (s ReplaceContentEntry) GoString() string {
 31832  	return s.String()
 31833  }
 31834  
 31835  // Validate inspects the fields of the type to determine if they are valid.
 31836  func (s *ReplaceContentEntry) Validate() error {
 31837  	invalidParams := request.ErrInvalidParams{Context: "ReplaceContentEntry"}
 31838  	if s.FilePath == nil {
 31839  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 31840  	}
 31841  	if s.ReplacementType == nil {
 31842  		invalidParams.Add(request.NewErrParamRequired("ReplacementType"))
 31843  	}
 31844  
 31845  	if invalidParams.Len() > 0 {
 31846  		return invalidParams
 31847  	}
 31848  	return nil
 31849  }
 31850  
 31851  // SetContent sets the Content field's value.
 31852  func (s *ReplaceContentEntry) SetContent(v []byte) *ReplaceContentEntry {
 31853  	s.Content = v
 31854  	return s
 31855  }
 31856  
 31857  // SetFileMode sets the FileMode field's value.
 31858  func (s *ReplaceContentEntry) SetFileMode(v string) *ReplaceContentEntry {
 31859  	s.FileMode = &v
 31860  	return s
 31861  }
 31862  
 31863  // SetFilePath sets the FilePath field's value.
 31864  func (s *ReplaceContentEntry) SetFilePath(v string) *ReplaceContentEntry {
 31865  	s.FilePath = &v
 31866  	return s
 31867  }
 31868  
 31869  // SetReplacementType sets the ReplacementType field's value.
 31870  func (s *ReplaceContentEntry) SetReplacementType(v string) *ReplaceContentEntry {
 31871  	s.ReplacementType = &v
 31872  	return s
 31873  }
 31874  
 31875  // USE_NEW_CONTENT was specified, but no replacement content has been provided.
 31876  type ReplacementContentRequiredException struct {
 31877  	_            struct{}                  `type:"structure"`
 31878  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31879  
 31880  	Message_ *string `locationName:"message" type:"string"`
 31881  }
 31882  
 31883  // String returns the string representation.
 31884  //
 31885  // API parameter values that are decorated as "sensitive" in the API will not
 31886  // be included in the string output. The member name will be present, but the
 31887  // value will be replaced with "sensitive".
 31888  func (s ReplacementContentRequiredException) String() string {
 31889  	return awsutil.Prettify(s)
 31890  }
 31891  
 31892  // GoString returns the string representation.
 31893  //
 31894  // API parameter values that are decorated as "sensitive" in the API will not
 31895  // be included in the string output. The member name will be present, but the
 31896  // value will be replaced with "sensitive".
 31897  func (s ReplacementContentRequiredException) GoString() string {
 31898  	return s.String()
 31899  }
 31900  
 31901  func newErrorReplacementContentRequiredException(v protocol.ResponseMetadata) error {
 31902  	return &ReplacementContentRequiredException{
 31903  		RespMetadata: v,
 31904  	}
 31905  }
 31906  
 31907  // Code returns the exception type name.
 31908  func (s *ReplacementContentRequiredException) Code() string {
 31909  	return "ReplacementContentRequiredException"
 31910  }
 31911  
 31912  // Message returns the exception's message.
 31913  func (s *ReplacementContentRequiredException) Message() string {
 31914  	if s.Message_ != nil {
 31915  		return *s.Message_
 31916  	}
 31917  	return ""
 31918  }
 31919  
 31920  // OrigErr always returns nil, satisfies awserr.Error interface.
 31921  func (s *ReplacementContentRequiredException) OrigErr() error {
 31922  	return nil
 31923  }
 31924  
 31925  func (s *ReplacementContentRequiredException) Error() string {
 31926  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31927  }
 31928  
 31929  // Status code returns the HTTP status code for the request's response error.
 31930  func (s *ReplacementContentRequiredException) StatusCode() int {
 31931  	return s.RespMetadata.StatusCode
 31932  }
 31933  
 31934  // RequestID returns the service's response RequestID for request.
 31935  func (s *ReplacementContentRequiredException) RequestID() string {
 31936  	return s.RespMetadata.RequestID
 31937  }
 31938  
 31939  // A replacement type is required.
 31940  type ReplacementTypeRequiredException struct {
 31941  	_            struct{}                  `type:"structure"`
 31942  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 31943  
 31944  	Message_ *string `locationName:"message" type:"string"`
 31945  }
 31946  
 31947  // String returns the string representation.
 31948  //
 31949  // API parameter values that are decorated as "sensitive" in the API will not
 31950  // be included in the string output. The member name will be present, but the
 31951  // value will be replaced with "sensitive".
 31952  func (s ReplacementTypeRequiredException) String() string {
 31953  	return awsutil.Prettify(s)
 31954  }
 31955  
 31956  // GoString returns the string representation.
 31957  //
 31958  // API parameter values that are decorated as "sensitive" in the API will not
 31959  // be included in the string output. The member name will be present, but the
 31960  // value will be replaced with "sensitive".
 31961  func (s ReplacementTypeRequiredException) GoString() string {
 31962  	return s.String()
 31963  }
 31964  
 31965  func newErrorReplacementTypeRequiredException(v protocol.ResponseMetadata) error {
 31966  	return &ReplacementTypeRequiredException{
 31967  		RespMetadata: v,
 31968  	}
 31969  }
 31970  
 31971  // Code returns the exception type name.
 31972  func (s *ReplacementTypeRequiredException) Code() string {
 31973  	return "ReplacementTypeRequiredException"
 31974  }
 31975  
 31976  // Message returns the exception's message.
 31977  func (s *ReplacementTypeRequiredException) Message() string {
 31978  	if s.Message_ != nil {
 31979  		return *s.Message_
 31980  	}
 31981  	return ""
 31982  }
 31983  
 31984  // OrigErr always returns nil, satisfies awserr.Error interface.
 31985  func (s *ReplacementTypeRequiredException) OrigErr() error {
 31986  	return nil
 31987  }
 31988  
 31989  func (s *ReplacementTypeRequiredException) Error() string {
 31990  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 31991  }
 31992  
 31993  // Status code returns the HTTP status code for the request's response error.
 31994  func (s *ReplacementTypeRequiredException) StatusCode() int {
 31995  	return s.RespMetadata.StatusCode
 31996  }
 31997  
 31998  // RequestID returns the service's response RequestID for request.
 31999  func (s *ReplacementTypeRequiredException) RequestID() string {
 32000  	return s.RespMetadata.RequestID
 32001  }
 32002  
 32003  // The specified repository does not exist.
 32004  type RepositoryDoesNotExistException struct {
 32005  	_            struct{}                  `type:"structure"`
 32006  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32007  
 32008  	Message_ *string `locationName:"message" type:"string"`
 32009  }
 32010  
 32011  // String returns the string representation.
 32012  //
 32013  // API parameter values that are decorated as "sensitive" in the API will not
 32014  // be included in the string output. The member name will be present, but the
 32015  // value will be replaced with "sensitive".
 32016  func (s RepositoryDoesNotExistException) String() string {
 32017  	return awsutil.Prettify(s)
 32018  }
 32019  
 32020  // GoString returns the string representation.
 32021  //
 32022  // API parameter values that are decorated as "sensitive" in the API will not
 32023  // be included in the string output. The member name will be present, but the
 32024  // value will be replaced with "sensitive".
 32025  func (s RepositoryDoesNotExistException) GoString() string {
 32026  	return s.String()
 32027  }
 32028  
 32029  func newErrorRepositoryDoesNotExistException(v protocol.ResponseMetadata) error {
 32030  	return &RepositoryDoesNotExistException{
 32031  		RespMetadata: v,
 32032  	}
 32033  }
 32034  
 32035  // Code returns the exception type name.
 32036  func (s *RepositoryDoesNotExistException) Code() string {
 32037  	return "RepositoryDoesNotExistException"
 32038  }
 32039  
 32040  // Message returns the exception's message.
 32041  func (s *RepositoryDoesNotExistException) Message() string {
 32042  	if s.Message_ != nil {
 32043  		return *s.Message_
 32044  	}
 32045  	return ""
 32046  }
 32047  
 32048  // OrigErr always returns nil, satisfies awserr.Error interface.
 32049  func (s *RepositoryDoesNotExistException) OrigErr() error {
 32050  	return nil
 32051  }
 32052  
 32053  func (s *RepositoryDoesNotExistException) Error() string {
 32054  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32055  }
 32056  
 32057  // Status code returns the HTTP status code for the request's response error.
 32058  func (s *RepositoryDoesNotExistException) StatusCode() int {
 32059  	return s.RespMetadata.StatusCode
 32060  }
 32061  
 32062  // RequestID returns the service's response RequestID for request.
 32063  func (s *RepositoryDoesNotExistException) RequestID() string {
 32064  	return s.RespMetadata.RequestID
 32065  }
 32066  
 32067  // A repository resource limit was exceeded.
 32068  type RepositoryLimitExceededException struct {
 32069  	_            struct{}                  `type:"structure"`
 32070  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32071  
 32072  	Message_ *string `locationName:"message" type:"string"`
 32073  }
 32074  
 32075  // String returns the string representation.
 32076  //
 32077  // API parameter values that are decorated as "sensitive" in the API will not
 32078  // be included in the string output. The member name will be present, but the
 32079  // value will be replaced with "sensitive".
 32080  func (s RepositoryLimitExceededException) String() string {
 32081  	return awsutil.Prettify(s)
 32082  }
 32083  
 32084  // GoString returns the string representation.
 32085  //
 32086  // API parameter values that are decorated as "sensitive" in the API will not
 32087  // be included in the string output. The member name will be present, but the
 32088  // value will be replaced with "sensitive".
 32089  func (s RepositoryLimitExceededException) GoString() string {
 32090  	return s.String()
 32091  }
 32092  
 32093  func newErrorRepositoryLimitExceededException(v protocol.ResponseMetadata) error {
 32094  	return &RepositoryLimitExceededException{
 32095  		RespMetadata: v,
 32096  	}
 32097  }
 32098  
 32099  // Code returns the exception type name.
 32100  func (s *RepositoryLimitExceededException) Code() string {
 32101  	return "RepositoryLimitExceededException"
 32102  }
 32103  
 32104  // Message returns the exception's message.
 32105  func (s *RepositoryLimitExceededException) Message() string {
 32106  	if s.Message_ != nil {
 32107  		return *s.Message_
 32108  	}
 32109  	return ""
 32110  }
 32111  
 32112  // OrigErr always returns nil, satisfies awserr.Error interface.
 32113  func (s *RepositoryLimitExceededException) OrigErr() error {
 32114  	return nil
 32115  }
 32116  
 32117  func (s *RepositoryLimitExceededException) Error() string {
 32118  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32119  }
 32120  
 32121  // Status code returns the HTTP status code for the request's response error.
 32122  func (s *RepositoryLimitExceededException) StatusCode() int {
 32123  	return s.RespMetadata.StatusCode
 32124  }
 32125  
 32126  // RequestID returns the service's response RequestID for request.
 32127  func (s *RepositoryLimitExceededException) RequestID() string {
 32128  	return s.RespMetadata.RequestID
 32129  }
 32130  
 32131  // Information about a repository.
 32132  type RepositoryMetadata struct {
 32133  	_ struct{} `type:"structure"`
 32134  
 32135  	// The ID of the AWS account associated with the repository.
 32136  	AccountId *string `locationName:"accountId" type:"string"`
 32137  
 32138  	// The Amazon Resource Name (ARN) of the repository.
 32139  	Arn *string `type:"string"`
 32140  
 32141  	// The URL to use for cloning the repository over HTTPS.
 32142  	CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"`
 32143  
 32144  	// The URL to use for cloning the repository over SSH.
 32145  	CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"`
 32146  
 32147  	// The date and time the repository was created, in timestamp format.
 32148  	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
 32149  
 32150  	// The repository's default branch name.
 32151  	DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"`
 32152  
 32153  	// The date and time the repository was last modified, in timestamp format.
 32154  	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
 32155  
 32156  	// A comment or description about the repository.
 32157  	RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
 32158  
 32159  	// The ID of the repository.
 32160  	RepositoryId *string `locationName:"repositoryId" type:"string"`
 32161  
 32162  	// The repository's name.
 32163  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 32164  }
 32165  
 32166  // String returns the string representation.
 32167  //
 32168  // API parameter values that are decorated as "sensitive" in the API will not
 32169  // be included in the string output. The member name will be present, but the
 32170  // value will be replaced with "sensitive".
 32171  func (s RepositoryMetadata) String() string {
 32172  	return awsutil.Prettify(s)
 32173  }
 32174  
 32175  // GoString returns the string representation.
 32176  //
 32177  // API parameter values that are decorated as "sensitive" in the API will not
 32178  // be included in the string output. The member name will be present, but the
 32179  // value will be replaced with "sensitive".
 32180  func (s RepositoryMetadata) GoString() string {
 32181  	return s.String()
 32182  }
 32183  
 32184  // SetAccountId sets the AccountId field's value.
 32185  func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata {
 32186  	s.AccountId = &v
 32187  	return s
 32188  }
 32189  
 32190  // SetArn sets the Arn field's value.
 32191  func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata {
 32192  	s.Arn = &v
 32193  	return s
 32194  }
 32195  
 32196  // SetCloneUrlHttp sets the CloneUrlHttp field's value.
 32197  func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata {
 32198  	s.CloneUrlHttp = &v
 32199  	return s
 32200  }
 32201  
 32202  // SetCloneUrlSsh sets the CloneUrlSsh field's value.
 32203  func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata {
 32204  	s.CloneUrlSsh = &v
 32205  	return s
 32206  }
 32207  
 32208  // SetCreationDate sets the CreationDate field's value.
 32209  func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata {
 32210  	s.CreationDate = &v
 32211  	return s
 32212  }
 32213  
 32214  // SetDefaultBranch sets the DefaultBranch field's value.
 32215  func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata {
 32216  	s.DefaultBranch = &v
 32217  	return s
 32218  }
 32219  
 32220  // SetLastModifiedDate sets the LastModifiedDate field's value.
 32221  func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata {
 32222  	s.LastModifiedDate = &v
 32223  	return s
 32224  }
 32225  
 32226  // SetRepositoryDescription sets the RepositoryDescription field's value.
 32227  func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata {
 32228  	s.RepositoryDescription = &v
 32229  	return s
 32230  }
 32231  
 32232  // SetRepositoryId sets the RepositoryId field's value.
 32233  func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata {
 32234  	s.RepositoryId = &v
 32235  	return s
 32236  }
 32237  
 32238  // SetRepositoryName sets the RepositoryName field's value.
 32239  func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata {
 32240  	s.RepositoryName = &v
 32241  	return s
 32242  }
 32243  
 32244  // The specified repository name already exists.
 32245  type RepositoryNameExistsException struct {
 32246  	_            struct{}                  `type:"structure"`
 32247  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32248  
 32249  	Message_ *string `locationName:"message" type:"string"`
 32250  }
 32251  
 32252  // String returns the string representation.
 32253  //
 32254  // API parameter values that are decorated as "sensitive" in the API will not
 32255  // be included in the string output. The member name will be present, but the
 32256  // value will be replaced with "sensitive".
 32257  func (s RepositoryNameExistsException) String() string {
 32258  	return awsutil.Prettify(s)
 32259  }
 32260  
 32261  // GoString returns the string representation.
 32262  //
 32263  // API parameter values that are decorated as "sensitive" in the API will not
 32264  // be included in the string output. The member name will be present, but the
 32265  // value will be replaced with "sensitive".
 32266  func (s RepositoryNameExistsException) GoString() string {
 32267  	return s.String()
 32268  }
 32269  
 32270  func newErrorRepositoryNameExistsException(v protocol.ResponseMetadata) error {
 32271  	return &RepositoryNameExistsException{
 32272  		RespMetadata: v,
 32273  	}
 32274  }
 32275  
 32276  // Code returns the exception type name.
 32277  func (s *RepositoryNameExistsException) Code() string {
 32278  	return "RepositoryNameExistsException"
 32279  }
 32280  
 32281  // Message returns the exception's message.
 32282  func (s *RepositoryNameExistsException) Message() string {
 32283  	if s.Message_ != nil {
 32284  		return *s.Message_
 32285  	}
 32286  	return ""
 32287  }
 32288  
 32289  // OrigErr always returns nil, satisfies awserr.Error interface.
 32290  func (s *RepositoryNameExistsException) OrigErr() error {
 32291  	return nil
 32292  }
 32293  
 32294  func (s *RepositoryNameExistsException) Error() string {
 32295  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32296  }
 32297  
 32298  // Status code returns the HTTP status code for the request's response error.
 32299  func (s *RepositoryNameExistsException) StatusCode() int {
 32300  	return s.RespMetadata.StatusCode
 32301  }
 32302  
 32303  // RequestID returns the service's response RequestID for request.
 32304  func (s *RepositoryNameExistsException) RequestID() string {
 32305  	return s.RespMetadata.RequestID
 32306  }
 32307  
 32308  // Information about a repository name and ID.
 32309  type RepositoryNameIdPair struct {
 32310  	_ struct{} `type:"structure"`
 32311  
 32312  	// The ID associated with the repository.
 32313  	RepositoryId *string `locationName:"repositoryId" type:"string"`
 32314  
 32315  	// The name associated with the repository.
 32316  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
 32317  }
 32318  
 32319  // String returns the string representation.
 32320  //
 32321  // API parameter values that are decorated as "sensitive" in the API will not
 32322  // be included in the string output. The member name will be present, but the
 32323  // value will be replaced with "sensitive".
 32324  func (s RepositoryNameIdPair) String() string {
 32325  	return awsutil.Prettify(s)
 32326  }
 32327  
 32328  // GoString returns the string representation.
 32329  //
 32330  // API parameter values that are decorated as "sensitive" in the API will not
 32331  // be included in the string output. The member name will be present, but the
 32332  // value will be replaced with "sensitive".
 32333  func (s RepositoryNameIdPair) GoString() string {
 32334  	return s.String()
 32335  }
 32336  
 32337  // SetRepositoryId sets the RepositoryId field's value.
 32338  func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair {
 32339  	s.RepositoryId = &v
 32340  	return s
 32341  }
 32342  
 32343  // SetRepositoryName sets the RepositoryName field's value.
 32344  func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair {
 32345  	s.RepositoryName = &v
 32346  	return s
 32347  }
 32348  
 32349  // A repository name is required, but was not specified.
 32350  type RepositoryNameRequiredException struct {
 32351  	_            struct{}                  `type:"structure"`
 32352  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32353  
 32354  	Message_ *string `locationName:"message" type:"string"`
 32355  }
 32356  
 32357  // String returns the string representation.
 32358  //
 32359  // API parameter values that are decorated as "sensitive" in the API will not
 32360  // be included in the string output. The member name will be present, but the
 32361  // value will be replaced with "sensitive".
 32362  func (s RepositoryNameRequiredException) String() string {
 32363  	return awsutil.Prettify(s)
 32364  }
 32365  
 32366  // GoString returns the string representation.
 32367  //
 32368  // API parameter values that are decorated as "sensitive" in the API will not
 32369  // be included in the string output. The member name will be present, but the
 32370  // value will be replaced with "sensitive".
 32371  func (s RepositoryNameRequiredException) GoString() string {
 32372  	return s.String()
 32373  }
 32374  
 32375  func newErrorRepositoryNameRequiredException(v protocol.ResponseMetadata) error {
 32376  	return &RepositoryNameRequiredException{
 32377  		RespMetadata: v,
 32378  	}
 32379  }
 32380  
 32381  // Code returns the exception type name.
 32382  func (s *RepositoryNameRequiredException) Code() string {
 32383  	return "RepositoryNameRequiredException"
 32384  }
 32385  
 32386  // Message returns the exception's message.
 32387  func (s *RepositoryNameRequiredException) Message() string {
 32388  	if s.Message_ != nil {
 32389  		return *s.Message_
 32390  	}
 32391  	return ""
 32392  }
 32393  
 32394  // OrigErr always returns nil, satisfies awserr.Error interface.
 32395  func (s *RepositoryNameRequiredException) OrigErr() error {
 32396  	return nil
 32397  }
 32398  
 32399  func (s *RepositoryNameRequiredException) Error() string {
 32400  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32401  }
 32402  
 32403  // Status code returns the HTTP status code for the request's response error.
 32404  func (s *RepositoryNameRequiredException) StatusCode() int {
 32405  	return s.RespMetadata.StatusCode
 32406  }
 32407  
 32408  // RequestID returns the service's response RequestID for request.
 32409  func (s *RepositoryNameRequiredException) RequestID() string {
 32410  	return s.RespMetadata.RequestID
 32411  }
 32412  
 32413  // At least one repository name object is required, but was not specified.
 32414  type RepositoryNamesRequiredException struct {
 32415  	_            struct{}                  `type:"structure"`
 32416  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32417  
 32418  	Message_ *string `locationName:"message" type:"string"`
 32419  }
 32420  
 32421  // String returns the string representation.
 32422  //
 32423  // API parameter values that are decorated as "sensitive" in the API will not
 32424  // be included in the string output. The member name will be present, but the
 32425  // value will be replaced with "sensitive".
 32426  func (s RepositoryNamesRequiredException) String() string {
 32427  	return awsutil.Prettify(s)
 32428  }
 32429  
 32430  // GoString returns the string representation.
 32431  //
 32432  // API parameter values that are decorated as "sensitive" in the API will not
 32433  // be included in the string output. The member name will be present, but the
 32434  // value will be replaced with "sensitive".
 32435  func (s RepositoryNamesRequiredException) GoString() string {
 32436  	return s.String()
 32437  }
 32438  
 32439  func newErrorRepositoryNamesRequiredException(v protocol.ResponseMetadata) error {
 32440  	return &RepositoryNamesRequiredException{
 32441  		RespMetadata: v,
 32442  	}
 32443  }
 32444  
 32445  // Code returns the exception type name.
 32446  func (s *RepositoryNamesRequiredException) Code() string {
 32447  	return "RepositoryNamesRequiredException"
 32448  }
 32449  
 32450  // Message returns the exception's message.
 32451  func (s *RepositoryNamesRequiredException) Message() string {
 32452  	if s.Message_ != nil {
 32453  		return *s.Message_
 32454  	}
 32455  	return ""
 32456  }
 32457  
 32458  // OrigErr always returns nil, satisfies awserr.Error interface.
 32459  func (s *RepositoryNamesRequiredException) OrigErr() error {
 32460  	return nil
 32461  }
 32462  
 32463  func (s *RepositoryNamesRequiredException) Error() string {
 32464  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32465  }
 32466  
 32467  // Status code returns the HTTP status code for the request's response error.
 32468  func (s *RepositoryNamesRequiredException) StatusCode() int {
 32469  	return s.RespMetadata.StatusCode
 32470  }
 32471  
 32472  // RequestID returns the service's response RequestID for request.
 32473  func (s *RepositoryNamesRequiredException) RequestID() string {
 32474  	return s.RespMetadata.RequestID
 32475  }
 32476  
 32477  // The repository does not contain any pull requests with that pull request
 32478  // ID. Use GetPullRequest to verify the correct repository name for the pull
 32479  // request ID.
 32480  type RepositoryNotAssociatedWithPullRequestException struct {
 32481  	_            struct{}                  `type:"structure"`
 32482  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32483  
 32484  	Message_ *string `locationName:"message" type:"string"`
 32485  }
 32486  
 32487  // String returns the string representation.
 32488  //
 32489  // API parameter values that are decorated as "sensitive" in the API will not
 32490  // be included in the string output. The member name will be present, but the
 32491  // value will be replaced with "sensitive".
 32492  func (s RepositoryNotAssociatedWithPullRequestException) String() string {
 32493  	return awsutil.Prettify(s)
 32494  }
 32495  
 32496  // GoString returns the string representation.
 32497  //
 32498  // API parameter values that are decorated as "sensitive" in the API will not
 32499  // be included in the string output. The member name will be present, but the
 32500  // value will be replaced with "sensitive".
 32501  func (s RepositoryNotAssociatedWithPullRequestException) GoString() string {
 32502  	return s.String()
 32503  }
 32504  
 32505  func newErrorRepositoryNotAssociatedWithPullRequestException(v protocol.ResponseMetadata) error {
 32506  	return &RepositoryNotAssociatedWithPullRequestException{
 32507  		RespMetadata: v,
 32508  	}
 32509  }
 32510  
 32511  // Code returns the exception type name.
 32512  func (s *RepositoryNotAssociatedWithPullRequestException) Code() string {
 32513  	return "RepositoryNotAssociatedWithPullRequestException"
 32514  }
 32515  
 32516  // Message returns the exception's message.
 32517  func (s *RepositoryNotAssociatedWithPullRequestException) Message() string {
 32518  	if s.Message_ != nil {
 32519  		return *s.Message_
 32520  	}
 32521  	return ""
 32522  }
 32523  
 32524  // OrigErr always returns nil, satisfies awserr.Error interface.
 32525  func (s *RepositoryNotAssociatedWithPullRequestException) OrigErr() error {
 32526  	return nil
 32527  }
 32528  
 32529  func (s *RepositoryNotAssociatedWithPullRequestException) Error() string {
 32530  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32531  }
 32532  
 32533  // Status code returns the HTTP status code for the request's response error.
 32534  func (s *RepositoryNotAssociatedWithPullRequestException) StatusCode() int {
 32535  	return s.RespMetadata.StatusCode
 32536  }
 32537  
 32538  // RequestID returns the service's response RequestID for request.
 32539  func (s *RepositoryNotAssociatedWithPullRequestException) RequestID() string {
 32540  	return s.RespMetadata.RequestID
 32541  }
 32542  
 32543  // Information about a trigger for a repository.
 32544  type RepositoryTrigger struct {
 32545  	_ struct{} `type:"structure"`
 32546  
 32547  	// The branches to be included in the trigger configuration. If you specify
 32548  	// an empty array, the trigger applies to all branches.
 32549  	//
 32550  	// Although no content is required in the array, you must include the array
 32551  	// itself.
 32552  	Branches []*string `locationName:"branches" type:"list"`
 32553  
 32554  	// Any custom data associated with the trigger to be included in the information
 32555  	// sent to the target of the trigger.
 32556  	CustomData *string `locationName:"customData" type:"string"`
 32557  
 32558  	// The ARN of the resource that is the target for a trigger (for example, the
 32559  	// ARN of a topic in Amazon SNS).
 32560  	//
 32561  	// DestinationArn is a required field
 32562  	DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"`
 32563  
 32564  	// The repository events that cause the trigger to run actions in another service,
 32565  	// such as sending a notification through Amazon SNS.
 32566  	//
 32567  	// The valid value "all" cannot be used with any other values.
 32568  	//
 32569  	// Events is a required field
 32570  	Events []*string `locationName:"events" type:"list" required:"true"`
 32571  
 32572  	// The name of the trigger.
 32573  	//
 32574  	// Name is a required field
 32575  	Name *string `locationName:"name" type:"string" required:"true"`
 32576  }
 32577  
 32578  // String returns the string representation.
 32579  //
 32580  // API parameter values that are decorated as "sensitive" in the API will not
 32581  // be included in the string output. The member name will be present, but the
 32582  // value will be replaced with "sensitive".
 32583  func (s RepositoryTrigger) String() string {
 32584  	return awsutil.Prettify(s)
 32585  }
 32586  
 32587  // GoString returns the string representation.
 32588  //
 32589  // API parameter values that are decorated as "sensitive" in the API will not
 32590  // be included in the string output. The member name will be present, but the
 32591  // value will be replaced with "sensitive".
 32592  func (s RepositoryTrigger) GoString() string {
 32593  	return s.String()
 32594  }
 32595  
 32596  // Validate inspects the fields of the type to determine if they are valid.
 32597  func (s *RepositoryTrigger) Validate() error {
 32598  	invalidParams := request.ErrInvalidParams{Context: "RepositoryTrigger"}
 32599  	if s.DestinationArn == nil {
 32600  		invalidParams.Add(request.NewErrParamRequired("DestinationArn"))
 32601  	}
 32602  	if s.Events == nil {
 32603  		invalidParams.Add(request.NewErrParamRequired("Events"))
 32604  	}
 32605  	if s.Name == nil {
 32606  		invalidParams.Add(request.NewErrParamRequired("Name"))
 32607  	}
 32608  
 32609  	if invalidParams.Len() > 0 {
 32610  		return invalidParams
 32611  	}
 32612  	return nil
 32613  }
 32614  
 32615  // SetBranches sets the Branches field's value.
 32616  func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger {
 32617  	s.Branches = v
 32618  	return s
 32619  }
 32620  
 32621  // SetCustomData sets the CustomData field's value.
 32622  func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger {
 32623  	s.CustomData = &v
 32624  	return s
 32625  }
 32626  
 32627  // SetDestinationArn sets the DestinationArn field's value.
 32628  func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger {
 32629  	s.DestinationArn = &v
 32630  	return s
 32631  }
 32632  
 32633  // SetEvents sets the Events field's value.
 32634  func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger {
 32635  	s.Events = v
 32636  	return s
 32637  }
 32638  
 32639  // SetName sets the Name field's value.
 32640  func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger {
 32641  	s.Name = &v
 32642  	return s
 32643  }
 32644  
 32645  // At least one branch name is required, but was not specified in the trigger
 32646  // configuration.
 32647  type RepositoryTriggerBranchNameListRequiredException struct {
 32648  	_            struct{}                  `type:"structure"`
 32649  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32650  
 32651  	Message_ *string `locationName:"message" type:"string"`
 32652  }
 32653  
 32654  // String returns the string representation.
 32655  //
 32656  // API parameter values that are decorated as "sensitive" in the API will not
 32657  // be included in the string output. The member name will be present, but the
 32658  // value will be replaced with "sensitive".
 32659  func (s RepositoryTriggerBranchNameListRequiredException) String() string {
 32660  	return awsutil.Prettify(s)
 32661  }
 32662  
 32663  // GoString returns the string representation.
 32664  //
 32665  // API parameter values that are decorated as "sensitive" in the API will not
 32666  // be included in the string output. The member name will be present, but the
 32667  // value will be replaced with "sensitive".
 32668  func (s RepositoryTriggerBranchNameListRequiredException) GoString() string {
 32669  	return s.String()
 32670  }
 32671  
 32672  func newErrorRepositoryTriggerBranchNameListRequiredException(v protocol.ResponseMetadata) error {
 32673  	return &RepositoryTriggerBranchNameListRequiredException{
 32674  		RespMetadata: v,
 32675  	}
 32676  }
 32677  
 32678  // Code returns the exception type name.
 32679  func (s *RepositoryTriggerBranchNameListRequiredException) Code() string {
 32680  	return "RepositoryTriggerBranchNameListRequiredException"
 32681  }
 32682  
 32683  // Message returns the exception's message.
 32684  func (s *RepositoryTriggerBranchNameListRequiredException) Message() string {
 32685  	if s.Message_ != nil {
 32686  		return *s.Message_
 32687  	}
 32688  	return ""
 32689  }
 32690  
 32691  // OrigErr always returns nil, satisfies awserr.Error interface.
 32692  func (s *RepositoryTriggerBranchNameListRequiredException) OrigErr() error {
 32693  	return nil
 32694  }
 32695  
 32696  func (s *RepositoryTriggerBranchNameListRequiredException) Error() string {
 32697  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32698  }
 32699  
 32700  // Status code returns the HTTP status code for the request's response error.
 32701  func (s *RepositoryTriggerBranchNameListRequiredException) StatusCode() int {
 32702  	return s.RespMetadata.StatusCode
 32703  }
 32704  
 32705  // RequestID returns the service's response RequestID for request.
 32706  func (s *RepositoryTriggerBranchNameListRequiredException) RequestID() string {
 32707  	return s.RespMetadata.RequestID
 32708  }
 32709  
 32710  // A destination ARN for the target service for the trigger is required, but
 32711  // was not specified.
 32712  type RepositoryTriggerDestinationArnRequiredException struct {
 32713  	_            struct{}                  `type:"structure"`
 32714  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32715  
 32716  	Message_ *string `locationName:"message" type:"string"`
 32717  }
 32718  
 32719  // String returns the string representation.
 32720  //
 32721  // API parameter values that are decorated as "sensitive" in the API will not
 32722  // be included in the string output. The member name will be present, but the
 32723  // value will be replaced with "sensitive".
 32724  func (s RepositoryTriggerDestinationArnRequiredException) String() string {
 32725  	return awsutil.Prettify(s)
 32726  }
 32727  
 32728  // GoString returns the string representation.
 32729  //
 32730  // API parameter values that are decorated as "sensitive" in the API will not
 32731  // be included in the string output. The member name will be present, but the
 32732  // value will be replaced with "sensitive".
 32733  func (s RepositoryTriggerDestinationArnRequiredException) GoString() string {
 32734  	return s.String()
 32735  }
 32736  
 32737  func newErrorRepositoryTriggerDestinationArnRequiredException(v protocol.ResponseMetadata) error {
 32738  	return &RepositoryTriggerDestinationArnRequiredException{
 32739  		RespMetadata: v,
 32740  	}
 32741  }
 32742  
 32743  // Code returns the exception type name.
 32744  func (s *RepositoryTriggerDestinationArnRequiredException) Code() string {
 32745  	return "RepositoryTriggerDestinationArnRequiredException"
 32746  }
 32747  
 32748  // Message returns the exception's message.
 32749  func (s *RepositoryTriggerDestinationArnRequiredException) Message() string {
 32750  	if s.Message_ != nil {
 32751  		return *s.Message_
 32752  	}
 32753  	return ""
 32754  }
 32755  
 32756  // OrigErr always returns nil, satisfies awserr.Error interface.
 32757  func (s *RepositoryTriggerDestinationArnRequiredException) OrigErr() error {
 32758  	return nil
 32759  }
 32760  
 32761  func (s *RepositoryTriggerDestinationArnRequiredException) Error() string {
 32762  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32763  }
 32764  
 32765  // Status code returns the HTTP status code for the request's response error.
 32766  func (s *RepositoryTriggerDestinationArnRequiredException) StatusCode() int {
 32767  	return s.RespMetadata.StatusCode
 32768  }
 32769  
 32770  // RequestID returns the service's response RequestID for request.
 32771  func (s *RepositoryTriggerDestinationArnRequiredException) RequestID() string {
 32772  	return s.RespMetadata.RequestID
 32773  }
 32774  
 32775  // At least one event for the trigger is required, but was not specified.
 32776  type RepositoryTriggerEventsListRequiredException struct {
 32777  	_            struct{}                  `type:"structure"`
 32778  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32779  
 32780  	Message_ *string `locationName:"message" type:"string"`
 32781  }
 32782  
 32783  // String returns the string representation.
 32784  //
 32785  // API parameter values that are decorated as "sensitive" in the API will not
 32786  // be included in the string output. The member name will be present, but the
 32787  // value will be replaced with "sensitive".
 32788  func (s RepositoryTriggerEventsListRequiredException) String() string {
 32789  	return awsutil.Prettify(s)
 32790  }
 32791  
 32792  // GoString returns the string representation.
 32793  //
 32794  // API parameter values that are decorated as "sensitive" in the API will not
 32795  // be included in the string output. The member name will be present, but the
 32796  // value will be replaced with "sensitive".
 32797  func (s RepositoryTriggerEventsListRequiredException) GoString() string {
 32798  	return s.String()
 32799  }
 32800  
 32801  func newErrorRepositoryTriggerEventsListRequiredException(v protocol.ResponseMetadata) error {
 32802  	return &RepositoryTriggerEventsListRequiredException{
 32803  		RespMetadata: v,
 32804  	}
 32805  }
 32806  
 32807  // Code returns the exception type name.
 32808  func (s *RepositoryTriggerEventsListRequiredException) Code() string {
 32809  	return "RepositoryTriggerEventsListRequiredException"
 32810  }
 32811  
 32812  // Message returns the exception's message.
 32813  func (s *RepositoryTriggerEventsListRequiredException) Message() string {
 32814  	if s.Message_ != nil {
 32815  		return *s.Message_
 32816  	}
 32817  	return ""
 32818  }
 32819  
 32820  // OrigErr always returns nil, satisfies awserr.Error interface.
 32821  func (s *RepositoryTriggerEventsListRequiredException) OrigErr() error {
 32822  	return nil
 32823  }
 32824  
 32825  func (s *RepositoryTriggerEventsListRequiredException) Error() string {
 32826  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32827  }
 32828  
 32829  // Status code returns the HTTP status code for the request's response error.
 32830  func (s *RepositoryTriggerEventsListRequiredException) StatusCode() int {
 32831  	return s.RespMetadata.StatusCode
 32832  }
 32833  
 32834  // RequestID returns the service's response RequestID for request.
 32835  func (s *RepositoryTriggerEventsListRequiredException) RequestID() string {
 32836  	return s.RespMetadata.RequestID
 32837  }
 32838  
 32839  // A trigger failed to run.
 32840  type RepositoryTriggerExecutionFailure struct {
 32841  	_ struct{} `type:"structure"`
 32842  
 32843  	// Message information about the trigger that did not run.
 32844  	FailureMessage *string `locationName:"failureMessage" type:"string"`
 32845  
 32846  	// The name of the trigger that did not run.
 32847  	Trigger *string `locationName:"trigger" type:"string"`
 32848  }
 32849  
 32850  // String returns the string representation.
 32851  //
 32852  // API parameter values that are decorated as "sensitive" in the API will not
 32853  // be included in the string output. The member name will be present, but the
 32854  // value will be replaced with "sensitive".
 32855  func (s RepositoryTriggerExecutionFailure) String() string {
 32856  	return awsutil.Prettify(s)
 32857  }
 32858  
 32859  // GoString returns the string representation.
 32860  //
 32861  // API parameter values that are decorated as "sensitive" in the API will not
 32862  // be included in the string output. The member name will be present, but the
 32863  // value will be replaced with "sensitive".
 32864  func (s RepositoryTriggerExecutionFailure) GoString() string {
 32865  	return s.String()
 32866  }
 32867  
 32868  // SetFailureMessage sets the FailureMessage field's value.
 32869  func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure {
 32870  	s.FailureMessage = &v
 32871  	return s
 32872  }
 32873  
 32874  // SetTrigger sets the Trigger field's value.
 32875  func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure {
 32876  	s.Trigger = &v
 32877  	return s
 32878  }
 32879  
 32880  // A name for the trigger is required, but was not specified.
 32881  type RepositoryTriggerNameRequiredException struct {
 32882  	_            struct{}                  `type:"structure"`
 32883  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32884  
 32885  	Message_ *string `locationName:"message" type:"string"`
 32886  }
 32887  
 32888  // String returns the string representation.
 32889  //
 32890  // API parameter values that are decorated as "sensitive" in the API will not
 32891  // be included in the string output. The member name will be present, but the
 32892  // value will be replaced with "sensitive".
 32893  func (s RepositoryTriggerNameRequiredException) String() string {
 32894  	return awsutil.Prettify(s)
 32895  }
 32896  
 32897  // GoString returns the string representation.
 32898  //
 32899  // API parameter values that are decorated as "sensitive" in the API will not
 32900  // be included in the string output. The member name will be present, but the
 32901  // value will be replaced with "sensitive".
 32902  func (s RepositoryTriggerNameRequiredException) GoString() string {
 32903  	return s.String()
 32904  }
 32905  
 32906  func newErrorRepositoryTriggerNameRequiredException(v protocol.ResponseMetadata) error {
 32907  	return &RepositoryTriggerNameRequiredException{
 32908  		RespMetadata: v,
 32909  	}
 32910  }
 32911  
 32912  // Code returns the exception type name.
 32913  func (s *RepositoryTriggerNameRequiredException) Code() string {
 32914  	return "RepositoryTriggerNameRequiredException"
 32915  }
 32916  
 32917  // Message returns the exception's message.
 32918  func (s *RepositoryTriggerNameRequiredException) Message() string {
 32919  	if s.Message_ != nil {
 32920  		return *s.Message_
 32921  	}
 32922  	return ""
 32923  }
 32924  
 32925  // OrigErr always returns nil, satisfies awserr.Error interface.
 32926  func (s *RepositoryTriggerNameRequiredException) OrigErr() error {
 32927  	return nil
 32928  }
 32929  
 32930  func (s *RepositoryTriggerNameRequiredException) Error() string {
 32931  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32932  }
 32933  
 32934  // Status code returns the HTTP status code for the request's response error.
 32935  func (s *RepositoryTriggerNameRequiredException) StatusCode() int {
 32936  	return s.RespMetadata.StatusCode
 32937  }
 32938  
 32939  // RequestID returns the service's response RequestID for request.
 32940  func (s *RepositoryTriggerNameRequiredException) RequestID() string {
 32941  	return s.RespMetadata.RequestID
 32942  }
 32943  
 32944  // The list of triggers for the repository is required, but was not specified.
 32945  type RepositoryTriggersListRequiredException struct {
 32946  	_            struct{}                  `type:"structure"`
 32947  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 32948  
 32949  	Message_ *string `locationName:"message" type:"string"`
 32950  }
 32951  
 32952  // String returns the string representation.
 32953  //
 32954  // API parameter values that are decorated as "sensitive" in the API will not
 32955  // be included in the string output. The member name will be present, but the
 32956  // value will be replaced with "sensitive".
 32957  func (s RepositoryTriggersListRequiredException) String() string {
 32958  	return awsutil.Prettify(s)
 32959  }
 32960  
 32961  // GoString returns the string representation.
 32962  //
 32963  // API parameter values that are decorated as "sensitive" in the API will not
 32964  // be included in the string output. The member name will be present, but the
 32965  // value will be replaced with "sensitive".
 32966  func (s RepositoryTriggersListRequiredException) GoString() string {
 32967  	return s.String()
 32968  }
 32969  
 32970  func newErrorRepositoryTriggersListRequiredException(v protocol.ResponseMetadata) error {
 32971  	return &RepositoryTriggersListRequiredException{
 32972  		RespMetadata: v,
 32973  	}
 32974  }
 32975  
 32976  // Code returns the exception type name.
 32977  func (s *RepositoryTriggersListRequiredException) Code() string {
 32978  	return "RepositoryTriggersListRequiredException"
 32979  }
 32980  
 32981  // Message returns the exception's message.
 32982  func (s *RepositoryTriggersListRequiredException) Message() string {
 32983  	if s.Message_ != nil {
 32984  		return *s.Message_
 32985  	}
 32986  	return ""
 32987  }
 32988  
 32989  // OrigErr always returns nil, satisfies awserr.Error interface.
 32990  func (s *RepositoryTriggersListRequiredException) OrigErr() error {
 32991  	return nil
 32992  }
 32993  
 32994  func (s *RepositoryTriggersListRequiredException) Error() string {
 32995  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 32996  }
 32997  
 32998  // Status code returns the HTTP status code for the request's response error.
 32999  func (s *RepositoryTriggersListRequiredException) StatusCode() int {
 33000  	return s.RespMetadata.StatusCode
 33001  }
 33002  
 33003  // RequestID returns the service's response RequestID for request.
 33004  func (s *RepositoryTriggersListRequiredException) RequestID() string {
 33005  	return s.RespMetadata.RequestID
 33006  }
 33007  
 33008  // A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required.
 33009  // For a list of valid resources in AWS CodeCommit, see CodeCommit Resources
 33010  // and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
 33011  // in the AWS CodeCommit User Guide.
 33012  type ResourceArnRequiredException struct {
 33013  	_            struct{}                  `type:"structure"`
 33014  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33015  
 33016  	Message_ *string `locationName:"message" type:"string"`
 33017  }
 33018  
 33019  // String returns the string representation.
 33020  //
 33021  // API parameter values that are decorated as "sensitive" in the API will not
 33022  // be included in the string output. The member name will be present, but the
 33023  // value will be replaced with "sensitive".
 33024  func (s ResourceArnRequiredException) String() string {
 33025  	return awsutil.Prettify(s)
 33026  }
 33027  
 33028  // GoString returns the string representation.
 33029  //
 33030  // API parameter values that are decorated as "sensitive" in the API will not
 33031  // be included in the string output. The member name will be present, but the
 33032  // value will be replaced with "sensitive".
 33033  func (s ResourceArnRequiredException) GoString() string {
 33034  	return s.String()
 33035  }
 33036  
 33037  func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error {
 33038  	return &ResourceArnRequiredException{
 33039  		RespMetadata: v,
 33040  	}
 33041  }
 33042  
 33043  // Code returns the exception type name.
 33044  func (s *ResourceArnRequiredException) Code() string {
 33045  	return "ResourceArnRequiredException"
 33046  }
 33047  
 33048  // Message returns the exception's message.
 33049  func (s *ResourceArnRequiredException) Message() string {
 33050  	if s.Message_ != nil {
 33051  		return *s.Message_
 33052  	}
 33053  	return ""
 33054  }
 33055  
 33056  // OrigErr always returns nil, satisfies awserr.Error interface.
 33057  func (s *ResourceArnRequiredException) OrigErr() error {
 33058  	return nil
 33059  }
 33060  
 33061  func (s *ResourceArnRequiredException) Error() string {
 33062  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33063  }
 33064  
 33065  // Status code returns the HTTP status code for the request's response error.
 33066  func (s *ResourceArnRequiredException) StatusCode() int {
 33067  	return s.RespMetadata.StatusCode
 33068  }
 33069  
 33070  // RequestID returns the service's response RequestID for request.
 33071  func (s *ResourceArnRequiredException) RequestID() string {
 33072  	return s.RespMetadata.RequestID
 33073  }
 33074  
 33075  // The commit cannot be created because one of the changes specifies copying
 33076  // or moving a .gitkeep file.
 33077  type RestrictedSourceFileException struct {
 33078  	_            struct{}                  `type:"structure"`
 33079  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33080  
 33081  	Message_ *string `locationName:"message" type:"string"`
 33082  }
 33083  
 33084  // String returns the string representation.
 33085  //
 33086  // API parameter values that are decorated as "sensitive" in the API will not
 33087  // be included in the string output. The member name will be present, but the
 33088  // value will be replaced with "sensitive".
 33089  func (s RestrictedSourceFileException) String() string {
 33090  	return awsutil.Prettify(s)
 33091  }
 33092  
 33093  // GoString returns the string representation.
 33094  //
 33095  // API parameter values that are decorated as "sensitive" in the API will not
 33096  // be included in the string output. The member name will be present, but the
 33097  // value will be replaced with "sensitive".
 33098  func (s RestrictedSourceFileException) GoString() string {
 33099  	return s.String()
 33100  }
 33101  
 33102  func newErrorRestrictedSourceFileException(v protocol.ResponseMetadata) error {
 33103  	return &RestrictedSourceFileException{
 33104  		RespMetadata: v,
 33105  	}
 33106  }
 33107  
 33108  // Code returns the exception type name.
 33109  func (s *RestrictedSourceFileException) Code() string {
 33110  	return "RestrictedSourceFileException"
 33111  }
 33112  
 33113  // Message returns the exception's message.
 33114  func (s *RestrictedSourceFileException) Message() string {
 33115  	if s.Message_ != nil {
 33116  		return *s.Message_
 33117  	}
 33118  	return ""
 33119  }
 33120  
 33121  // OrigErr always returns nil, satisfies awserr.Error interface.
 33122  func (s *RestrictedSourceFileException) OrigErr() error {
 33123  	return nil
 33124  }
 33125  
 33126  func (s *RestrictedSourceFileException) Error() string {
 33127  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33128  }
 33129  
 33130  // Status code returns the HTTP status code for the request's response error.
 33131  func (s *RestrictedSourceFileException) StatusCode() int {
 33132  	return s.RespMetadata.StatusCode
 33133  }
 33134  
 33135  // RequestID returns the service's response RequestID for request.
 33136  func (s *RestrictedSourceFileException) RequestID() string {
 33137  	return s.RespMetadata.RequestID
 33138  }
 33139  
 33140  // A revision ID is required, but was not provided.
 33141  type RevisionIdRequiredException struct {
 33142  	_            struct{}                  `type:"structure"`
 33143  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33144  
 33145  	Message_ *string `locationName:"message" type:"string"`
 33146  }
 33147  
 33148  // String returns the string representation.
 33149  //
 33150  // API parameter values that are decorated as "sensitive" in the API will not
 33151  // be included in the string output. The member name will be present, but the
 33152  // value will be replaced with "sensitive".
 33153  func (s RevisionIdRequiredException) String() string {
 33154  	return awsutil.Prettify(s)
 33155  }
 33156  
 33157  // GoString returns the string representation.
 33158  //
 33159  // API parameter values that are decorated as "sensitive" in the API will not
 33160  // be included in the string output. The member name will be present, but the
 33161  // value will be replaced with "sensitive".
 33162  func (s RevisionIdRequiredException) GoString() string {
 33163  	return s.String()
 33164  }
 33165  
 33166  func newErrorRevisionIdRequiredException(v protocol.ResponseMetadata) error {
 33167  	return &RevisionIdRequiredException{
 33168  		RespMetadata: v,
 33169  	}
 33170  }
 33171  
 33172  // Code returns the exception type name.
 33173  func (s *RevisionIdRequiredException) Code() string {
 33174  	return "RevisionIdRequiredException"
 33175  }
 33176  
 33177  // Message returns the exception's message.
 33178  func (s *RevisionIdRequiredException) Message() string {
 33179  	if s.Message_ != nil {
 33180  		return *s.Message_
 33181  	}
 33182  	return ""
 33183  }
 33184  
 33185  // OrigErr always returns nil, satisfies awserr.Error interface.
 33186  func (s *RevisionIdRequiredException) OrigErr() error {
 33187  	return nil
 33188  }
 33189  
 33190  func (s *RevisionIdRequiredException) Error() string {
 33191  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33192  }
 33193  
 33194  // Status code returns the HTTP status code for the request's response error.
 33195  func (s *RevisionIdRequiredException) StatusCode() int {
 33196  	return s.RespMetadata.StatusCode
 33197  }
 33198  
 33199  // RequestID returns the service's response RequestID for request.
 33200  func (s *RevisionIdRequiredException) RequestID() string {
 33201  	return s.RespMetadata.RequestID
 33202  }
 33203  
 33204  // The revision ID provided in the request does not match the current revision
 33205  // ID. Use GetPullRequest to retrieve the current revision ID.
 33206  type RevisionNotCurrentException struct {
 33207  	_            struct{}                  `type:"structure"`
 33208  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33209  
 33210  	Message_ *string `locationName:"message" type:"string"`
 33211  }
 33212  
 33213  // String returns the string representation.
 33214  //
 33215  // API parameter values that are decorated as "sensitive" in the API will not
 33216  // be included in the string output. The member name will be present, but the
 33217  // value will be replaced with "sensitive".
 33218  func (s RevisionNotCurrentException) String() string {
 33219  	return awsutil.Prettify(s)
 33220  }
 33221  
 33222  // GoString returns the string representation.
 33223  //
 33224  // API parameter values that are decorated as "sensitive" in the API will not
 33225  // be included in the string output. The member name will be present, but the
 33226  // value will be replaced with "sensitive".
 33227  func (s RevisionNotCurrentException) GoString() string {
 33228  	return s.String()
 33229  }
 33230  
 33231  func newErrorRevisionNotCurrentException(v protocol.ResponseMetadata) error {
 33232  	return &RevisionNotCurrentException{
 33233  		RespMetadata: v,
 33234  	}
 33235  }
 33236  
 33237  // Code returns the exception type name.
 33238  func (s *RevisionNotCurrentException) Code() string {
 33239  	return "RevisionNotCurrentException"
 33240  }
 33241  
 33242  // Message returns the exception's message.
 33243  func (s *RevisionNotCurrentException) Message() string {
 33244  	if s.Message_ != nil {
 33245  		return *s.Message_
 33246  	}
 33247  	return ""
 33248  }
 33249  
 33250  // OrigErr always returns nil, satisfies awserr.Error interface.
 33251  func (s *RevisionNotCurrentException) OrigErr() error {
 33252  	return nil
 33253  }
 33254  
 33255  func (s *RevisionNotCurrentException) Error() string {
 33256  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33257  }
 33258  
 33259  // Status code returns the HTTP status code for the request's response error.
 33260  func (s *RevisionNotCurrentException) StatusCode() int {
 33261  	return s.RespMetadata.StatusCode
 33262  }
 33263  
 33264  // RequestID returns the service's response RequestID for request.
 33265  func (s *RevisionNotCurrentException) RequestID() string {
 33266  	return s.RespMetadata.RequestID
 33267  }
 33268  
 33269  // The file was not added or updated because the content of the file is exactly
 33270  // the same as the content of that file in the repository and branch that you
 33271  // specified.
 33272  type SameFileContentException struct {
 33273  	_            struct{}                  `type:"structure"`
 33274  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33275  
 33276  	Message_ *string `locationName:"message" type:"string"`
 33277  }
 33278  
 33279  // String returns the string representation.
 33280  //
 33281  // API parameter values that are decorated as "sensitive" in the API will not
 33282  // be included in the string output. The member name will be present, but the
 33283  // value will be replaced with "sensitive".
 33284  func (s SameFileContentException) String() string {
 33285  	return awsutil.Prettify(s)
 33286  }
 33287  
 33288  // GoString returns the string representation.
 33289  //
 33290  // API parameter values that are decorated as "sensitive" in the API will not
 33291  // be included in the string output. The member name will be present, but the
 33292  // value will be replaced with "sensitive".
 33293  func (s SameFileContentException) GoString() string {
 33294  	return s.String()
 33295  }
 33296  
 33297  func newErrorSameFileContentException(v protocol.ResponseMetadata) error {
 33298  	return &SameFileContentException{
 33299  		RespMetadata: v,
 33300  	}
 33301  }
 33302  
 33303  // Code returns the exception type name.
 33304  func (s *SameFileContentException) Code() string {
 33305  	return "SameFileContentException"
 33306  }
 33307  
 33308  // Message returns the exception's message.
 33309  func (s *SameFileContentException) Message() string {
 33310  	if s.Message_ != nil {
 33311  		return *s.Message_
 33312  	}
 33313  	return ""
 33314  }
 33315  
 33316  // OrigErr always returns nil, satisfies awserr.Error interface.
 33317  func (s *SameFileContentException) OrigErr() error {
 33318  	return nil
 33319  }
 33320  
 33321  func (s *SameFileContentException) Error() string {
 33322  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33323  }
 33324  
 33325  // Status code returns the HTTP status code for the request's response error.
 33326  func (s *SameFileContentException) StatusCode() int {
 33327  	return s.RespMetadata.StatusCode
 33328  }
 33329  
 33330  // RequestID returns the service's response RequestID for request.
 33331  func (s *SameFileContentException) RequestID() string {
 33332  	return s.RespMetadata.RequestID
 33333  }
 33334  
 33335  // The commit cannot be created because one or more changes in this commit duplicate
 33336  // actions in the same file path. For example, you cannot make the same delete
 33337  // request to the same file in the same file path twice, or make a delete request
 33338  // and a move request to the same file as part of the same commit.
 33339  type SamePathRequestException struct {
 33340  	_            struct{}                  `type:"structure"`
 33341  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33342  
 33343  	Message_ *string `locationName:"message" type:"string"`
 33344  }
 33345  
 33346  // String returns the string representation.
 33347  //
 33348  // API parameter values that are decorated as "sensitive" in the API will not
 33349  // be included in the string output. The member name will be present, but the
 33350  // value will be replaced with "sensitive".
 33351  func (s SamePathRequestException) String() string {
 33352  	return awsutil.Prettify(s)
 33353  }
 33354  
 33355  // GoString returns the string representation.
 33356  //
 33357  // API parameter values that are decorated as "sensitive" in the API will not
 33358  // be included in the string output. The member name will be present, but the
 33359  // value will be replaced with "sensitive".
 33360  func (s SamePathRequestException) GoString() string {
 33361  	return s.String()
 33362  }
 33363  
 33364  func newErrorSamePathRequestException(v protocol.ResponseMetadata) error {
 33365  	return &SamePathRequestException{
 33366  		RespMetadata: v,
 33367  	}
 33368  }
 33369  
 33370  // Code returns the exception type name.
 33371  func (s *SamePathRequestException) Code() string {
 33372  	return "SamePathRequestException"
 33373  }
 33374  
 33375  // Message returns the exception's message.
 33376  func (s *SamePathRequestException) Message() string {
 33377  	if s.Message_ != nil {
 33378  		return *s.Message_
 33379  	}
 33380  	return ""
 33381  }
 33382  
 33383  // OrigErr always returns nil, satisfies awserr.Error interface.
 33384  func (s *SamePathRequestException) OrigErr() error {
 33385  	return nil
 33386  }
 33387  
 33388  func (s *SamePathRequestException) Error() string {
 33389  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33390  }
 33391  
 33392  // Status code returns the HTTP status code for the request's response error.
 33393  func (s *SamePathRequestException) StatusCode() int {
 33394  	return s.RespMetadata.StatusCode
 33395  }
 33396  
 33397  // RequestID returns the service's response RequestID for request.
 33398  func (s *SamePathRequestException) RequestID() string {
 33399  	return s.RespMetadata.RequestID
 33400  }
 33401  
 33402  // Information about the file mode changes.
 33403  type SetFileModeEntry struct {
 33404  	_ struct{} `type:"structure"`
 33405  
 33406  	// The file mode for the file.
 33407  	//
 33408  	// FileMode is a required field
 33409  	FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"`
 33410  
 33411  	// The full path to the file, including the name of the file.
 33412  	//
 33413  	// FilePath is a required field
 33414  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 33415  }
 33416  
 33417  // String returns the string representation.
 33418  //
 33419  // API parameter values that are decorated as "sensitive" in the API will not
 33420  // be included in the string output. The member name will be present, but the
 33421  // value will be replaced with "sensitive".
 33422  func (s SetFileModeEntry) String() string {
 33423  	return awsutil.Prettify(s)
 33424  }
 33425  
 33426  // GoString returns the string representation.
 33427  //
 33428  // API parameter values that are decorated as "sensitive" in the API will not
 33429  // be included in the string output. The member name will be present, but the
 33430  // value will be replaced with "sensitive".
 33431  func (s SetFileModeEntry) GoString() string {
 33432  	return s.String()
 33433  }
 33434  
 33435  // Validate inspects the fields of the type to determine if they are valid.
 33436  func (s *SetFileModeEntry) Validate() error {
 33437  	invalidParams := request.ErrInvalidParams{Context: "SetFileModeEntry"}
 33438  	if s.FileMode == nil {
 33439  		invalidParams.Add(request.NewErrParamRequired("FileMode"))
 33440  	}
 33441  	if s.FilePath == nil {
 33442  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 33443  	}
 33444  
 33445  	if invalidParams.Len() > 0 {
 33446  		return invalidParams
 33447  	}
 33448  	return nil
 33449  }
 33450  
 33451  // SetFileMode sets the FileMode field's value.
 33452  func (s *SetFileModeEntry) SetFileMode(v string) *SetFileModeEntry {
 33453  	s.FileMode = &v
 33454  	return s
 33455  }
 33456  
 33457  // SetFilePath sets the FilePath field's value.
 33458  func (s *SetFileModeEntry) SetFilePath(v string) *SetFileModeEntry {
 33459  	s.FilePath = &v
 33460  	return s
 33461  }
 33462  
 33463  // The source branch and destination branch for the pull request are the same.
 33464  // You must specify different branches for the source and destination.
 33465  type SourceAndDestinationAreSameException struct {
 33466  	_            struct{}                  `type:"structure"`
 33467  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33468  
 33469  	Message_ *string `locationName:"message" type:"string"`
 33470  }
 33471  
 33472  // String returns the string representation.
 33473  //
 33474  // API parameter values that are decorated as "sensitive" in the API will not
 33475  // be included in the string output. The member name will be present, but the
 33476  // value will be replaced with "sensitive".
 33477  func (s SourceAndDestinationAreSameException) String() string {
 33478  	return awsutil.Prettify(s)
 33479  }
 33480  
 33481  // GoString returns the string representation.
 33482  //
 33483  // API parameter values that are decorated as "sensitive" in the API will not
 33484  // be included in the string output. The member name will be present, but the
 33485  // value will be replaced with "sensitive".
 33486  func (s SourceAndDestinationAreSameException) GoString() string {
 33487  	return s.String()
 33488  }
 33489  
 33490  func newErrorSourceAndDestinationAreSameException(v protocol.ResponseMetadata) error {
 33491  	return &SourceAndDestinationAreSameException{
 33492  		RespMetadata: v,
 33493  	}
 33494  }
 33495  
 33496  // Code returns the exception type name.
 33497  func (s *SourceAndDestinationAreSameException) Code() string {
 33498  	return "SourceAndDestinationAreSameException"
 33499  }
 33500  
 33501  // Message returns the exception's message.
 33502  func (s *SourceAndDestinationAreSameException) Message() string {
 33503  	if s.Message_ != nil {
 33504  		return *s.Message_
 33505  	}
 33506  	return ""
 33507  }
 33508  
 33509  // OrigErr always returns nil, satisfies awserr.Error interface.
 33510  func (s *SourceAndDestinationAreSameException) OrigErr() error {
 33511  	return nil
 33512  }
 33513  
 33514  func (s *SourceAndDestinationAreSameException) Error() string {
 33515  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33516  }
 33517  
 33518  // Status code returns the HTTP status code for the request's response error.
 33519  func (s *SourceAndDestinationAreSameException) StatusCode() int {
 33520  	return s.RespMetadata.StatusCode
 33521  }
 33522  
 33523  // RequestID returns the service's response RequestID for request.
 33524  func (s *SourceAndDestinationAreSameException) RequestID() string {
 33525  	return s.RespMetadata.RequestID
 33526  }
 33527  
 33528  // The commit cannot be created because no source files or file content have
 33529  // been specified for the commit.
 33530  type SourceFileOrContentRequiredException struct {
 33531  	_            struct{}                  `type:"structure"`
 33532  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33533  
 33534  	Message_ *string `locationName:"message" type:"string"`
 33535  }
 33536  
 33537  // String returns the string representation.
 33538  //
 33539  // API parameter values that are decorated as "sensitive" in the API will not
 33540  // be included in the string output. The member name will be present, but the
 33541  // value will be replaced with "sensitive".
 33542  func (s SourceFileOrContentRequiredException) String() string {
 33543  	return awsutil.Prettify(s)
 33544  }
 33545  
 33546  // GoString returns the string representation.
 33547  //
 33548  // API parameter values that are decorated as "sensitive" in the API will not
 33549  // be included in the string output. The member name will be present, but the
 33550  // value will be replaced with "sensitive".
 33551  func (s SourceFileOrContentRequiredException) GoString() string {
 33552  	return s.String()
 33553  }
 33554  
 33555  func newErrorSourceFileOrContentRequiredException(v protocol.ResponseMetadata) error {
 33556  	return &SourceFileOrContentRequiredException{
 33557  		RespMetadata: v,
 33558  	}
 33559  }
 33560  
 33561  // Code returns the exception type name.
 33562  func (s *SourceFileOrContentRequiredException) Code() string {
 33563  	return "SourceFileOrContentRequiredException"
 33564  }
 33565  
 33566  // Message returns the exception's message.
 33567  func (s *SourceFileOrContentRequiredException) Message() string {
 33568  	if s.Message_ != nil {
 33569  		return *s.Message_
 33570  	}
 33571  	return ""
 33572  }
 33573  
 33574  // OrigErr always returns nil, satisfies awserr.Error interface.
 33575  func (s *SourceFileOrContentRequiredException) OrigErr() error {
 33576  	return nil
 33577  }
 33578  
 33579  func (s *SourceFileOrContentRequiredException) Error() string {
 33580  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33581  }
 33582  
 33583  // Status code returns the HTTP status code for the request's response error.
 33584  func (s *SourceFileOrContentRequiredException) StatusCode() int {
 33585  	return s.RespMetadata.StatusCode
 33586  }
 33587  
 33588  // RequestID returns the service's response RequestID for request.
 33589  func (s *SourceFileOrContentRequiredException) RequestID() string {
 33590  	return s.RespMetadata.RequestID
 33591  }
 33592  
 33593  // Information about a source file that is part of changes made in a commit.
 33594  type SourceFileSpecifier struct {
 33595  	_ struct{} `type:"structure"`
 33596  
 33597  	// The full path to the file, including the name of the file.
 33598  	//
 33599  	// FilePath is a required field
 33600  	FilePath *string `locationName:"filePath" type:"string" required:"true"`
 33601  
 33602  	// Whether to remove the source file from the parent commit.
 33603  	IsMove *bool `locationName:"isMove" type:"boolean"`
 33604  }
 33605  
 33606  // String returns the string representation.
 33607  //
 33608  // API parameter values that are decorated as "sensitive" in the API will not
 33609  // be included in the string output. The member name will be present, but the
 33610  // value will be replaced with "sensitive".
 33611  func (s SourceFileSpecifier) String() string {
 33612  	return awsutil.Prettify(s)
 33613  }
 33614  
 33615  // GoString returns the string representation.
 33616  //
 33617  // API parameter values that are decorated as "sensitive" in the API will not
 33618  // be included in the string output. The member name will be present, but the
 33619  // value will be replaced with "sensitive".
 33620  func (s SourceFileSpecifier) GoString() string {
 33621  	return s.String()
 33622  }
 33623  
 33624  // Validate inspects the fields of the type to determine if they are valid.
 33625  func (s *SourceFileSpecifier) Validate() error {
 33626  	invalidParams := request.ErrInvalidParams{Context: "SourceFileSpecifier"}
 33627  	if s.FilePath == nil {
 33628  		invalidParams.Add(request.NewErrParamRequired("FilePath"))
 33629  	}
 33630  
 33631  	if invalidParams.Len() > 0 {
 33632  		return invalidParams
 33633  	}
 33634  	return nil
 33635  }
 33636  
 33637  // SetFilePath sets the FilePath field's value.
 33638  func (s *SourceFileSpecifier) SetFilePath(v string) *SourceFileSpecifier {
 33639  	s.FilePath = &v
 33640  	return s
 33641  }
 33642  
 33643  // SetIsMove sets the IsMove field's value.
 33644  func (s *SourceFileSpecifier) SetIsMove(v bool) *SourceFileSpecifier {
 33645  	s.IsMove = &v
 33646  	return s
 33647  }
 33648  
 33649  // Returns information about a submodule reference in a repository folder.
 33650  type SubModule struct {
 33651  	_ struct{} `type:"structure"`
 33652  
 33653  	// The fully qualified path to the folder that contains the reference to the
 33654  	// submodule.
 33655  	AbsolutePath *string `locationName:"absolutePath" type:"string"`
 33656  
 33657  	// The commit ID that contains the reference to the submodule.
 33658  	CommitId *string `locationName:"commitId" type:"string"`
 33659  
 33660  	// The relative path of the submodule from the folder where the query originated.
 33661  	RelativePath *string `locationName:"relativePath" type:"string"`
 33662  }
 33663  
 33664  // String returns the string representation.
 33665  //
 33666  // API parameter values that are decorated as "sensitive" in the API will not
 33667  // be included in the string output. The member name will be present, but the
 33668  // value will be replaced with "sensitive".
 33669  func (s SubModule) String() string {
 33670  	return awsutil.Prettify(s)
 33671  }
 33672  
 33673  // GoString returns the string representation.
 33674  //
 33675  // API parameter values that are decorated as "sensitive" in the API will not
 33676  // be included in the string output. The member name will be present, but the
 33677  // value will be replaced with "sensitive".
 33678  func (s SubModule) GoString() string {
 33679  	return s.String()
 33680  }
 33681  
 33682  // SetAbsolutePath sets the AbsolutePath field's value.
 33683  func (s *SubModule) SetAbsolutePath(v string) *SubModule {
 33684  	s.AbsolutePath = &v
 33685  	return s
 33686  }
 33687  
 33688  // SetCommitId sets the CommitId field's value.
 33689  func (s *SubModule) SetCommitId(v string) *SubModule {
 33690  	s.CommitId = &v
 33691  	return s
 33692  }
 33693  
 33694  // SetRelativePath sets the RelativePath field's value.
 33695  func (s *SubModule) SetRelativePath(v string) *SubModule {
 33696  	s.RelativePath = &v
 33697  	return s
 33698  }
 33699  
 33700  // Returns information about a symbolic link in a repository folder.
 33701  type SymbolicLink struct {
 33702  	_ struct{} `type:"structure"`
 33703  
 33704  	// The fully qualified path to the folder that contains the symbolic link.
 33705  	AbsolutePath *string `locationName:"absolutePath" type:"string"`
 33706  
 33707  	// The blob ID that contains the information about the symbolic link.
 33708  	BlobId *string `locationName:"blobId" type:"string"`
 33709  
 33710  	// The file mode permissions of the blob that cotains information about the
 33711  	// symbolic link.
 33712  	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
 33713  
 33714  	// The relative path of the symbolic link from the folder where the query originated.
 33715  	RelativePath *string `locationName:"relativePath" type:"string"`
 33716  }
 33717  
 33718  // String returns the string representation.
 33719  //
 33720  // API parameter values that are decorated as "sensitive" in the API will not
 33721  // be included in the string output. The member name will be present, but the
 33722  // value will be replaced with "sensitive".
 33723  func (s SymbolicLink) String() string {
 33724  	return awsutil.Prettify(s)
 33725  }
 33726  
 33727  // GoString returns the string representation.
 33728  //
 33729  // API parameter values that are decorated as "sensitive" in the API will not
 33730  // be included in the string output. The member name will be present, but the
 33731  // value will be replaced with "sensitive".
 33732  func (s SymbolicLink) GoString() string {
 33733  	return s.String()
 33734  }
 33735  
 33736  // SetAbsolutePath sets the AbsolutePath field's value.
 33737  func (s *SymbolicLink) SetAbsolutePath(v string) *SymbolicLink {
 33738  	s.AbsolutePath = &v
 33739  	return s
 33740  }
 33741  
 33742  // SetBlobId sets the BlobId field's value.
 33743  func (s *SymbolicLink) SetBlobId(v string) *SymbolicLink {
 33744  	s.BlobId = &v
 33745  	return s
 33746  }
 33747  
 33748  // SetFileMode sets the FileMode field's value.
 33749  func (s *SymbolicLink) SetFileMode(v string) *SymbolicLink {
 33750  	s.FileMode = &v
 33751  	return s
 33752  }
 33753  
 33754  // SetRelativePath sets the RelativePath field's value.
 33755  func (s *SymbolicLink) SetRelativePath(v string) *SymbolicLink {
 33756  	s.RelativePath = &v
 33757  	return s
 33758  }
 33759  
 33760  // A list of tag keys is required. The list cannot be empty or null.
 33761  type TagKeysListRequiredException struct {
 33762  	_            struct{}                  `type:"structure"`
 33763  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33764  
 33765  	Message_ *string `locationName:"message" type:"string"`
 33766  }
 33767  
 33768  // String returns the string representation.
 33769  //
 33770  // API parameter values that are decorated as "sensitive" in the API will not
 33771  // be included in the string output. The member name will be present, but the
 33772  // value will be replaced with "sensitive".
 33773  func (s TagKeysListRequiredException) String() string {
 33774  	return awsutil.Prettify(s)
 33775  }
 33776  
 33777  // GoString returns the string representation.
 33778  //
 33779  // API parameter values that are decorated as "sensitive" in the API will not
 33780  // be included in the string output. The member name will be present, but the
 33781  // value will be replaced with "sensitive".
 33782  func (s TagKeysListRequiredException) GoString() string {
 33783  	return s.String()
 33784  }
 33785  
 33786  func newErrorTagKeysListRequiredException(v protocol.ResponseMetadata) error {
 33787  	return &TagKeysListRequiredException{
 33788  		RespMetadata: v,
 33789  	}
 33790  }
 33791  
 33792  // Code returns the exception type name.
 33793  func (s *TagKeysListRequiredException) Code() string {
 33794  	return "TagKeysListRequiredException"
 33795  }
 33796  
 33797  // Message returns the exception's message.
 33798  func (s *TagKeysListRequiredException) Message() string {
 33799  	if s.Message_ != nil {
 33800  		return *s.Message_
 33801  	}
 33802  	return ""
 33803  }
 33804  
 33805  // OrigErr always returns nil, satisfies awserr.Error interface.
 33806  func (s *TagKeysListRequiredException) OrigErr() error {
 33807  	return nil
 33808  }
 33809  
 33810  func (s *TagKeysListRequiredException) Error() string {
 33811  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33812  }
 33813  
 33814  // Status code returns the HTTP status code for the request's response error.
 33815  func (s *TagKeysListRequiredException) StatusCode() int {
 33816  	return s.RespMetadata.StatusCode
 33817  }
 33818  
 33819  // RequestID returns the service's response RequestID for request.
 33820  func (s *TagKeysListRequiredException) RequestID() string {
 33821  	return s.RespMetadata.RequestID
 33822  }
 33823  
 33824  // The tag policy is not valid.
 33825  type TagPolicyException struct {
 33826  	_            struct{}                  `type:"structure"`
 33827  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33828  
 33829  	Message_ *string `locationName:"message" type:"string"`
 33830  }
 33831  
 33832  // String returns the string representation.
 33833  //
 33834  // API parameter values that are decorated as "sensitive" in the API will not
 33835  // be included in the string output. The member name will be present, but the
 33836  // value will be replaced with "sensitive".
 33837  func (s TagPolicyException) String() string {
 33838  	return awsutil.Prettify(s)
 33839  }
 33840  
 33841  // GoString returns the string representation.
 33842  //
 33843  // API parameter values that are decorated as "sensitive" in the API will not
 33844  // be included in the string output. The member name will be present, but the
 33845  // value will be replaced with "sensitive".
 33846  func (s TagPolicyException) GoString() string {
 33847  	return s.String()
 33848  }
 33849  
 33850  func newErrorTagPolicyException(v protocol.ResponseMetadata) error {
 33851  	return &TagPolicyException{
 33852  		RespMetadata: v,
 33853  	}
 33854  }
 33855  
 33856  // Code returns the exception type name.
 33857  func (s *TagPolicyException) Code() string {
 33858  	return "TagPolicyException"
 33859  }
 33860  
 33861  // Message returns the exception's message.
 33862  func (s *TagPolicyException) Message() string {
 33863  	if s.Message_ != nil {
 33864  		return *s.Message_
 33865  	}
 33866  	return ""
 33867  }
 33868  
 33869  // OrigErr always returns nil, satisfies awserr.Error interface.
 33870  func (s *TagPolicyException) OrigErr() error {
 33871  	return nil
 33872  }
 33873  
 33874  func (s *TagPolicyException) Error() string {
 33875  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 33876  }
 33877  
 33878  // Status code returns the HTTP status code for the request's response error.
 33879  func (s *TagPolicyException) StatusCode() int {
 33880  	return s.RespMetadata.StatusCode
 33881  }
 33882  
 33883  // RequestID returns the service's response RequestID for request.
 33884  func (s *TagPolicyException) RequestID() string {
 33885  	return s.RespMetadata.RequestID
 33886  }
 33887  
 33888  type TagResourceInput struct {
 33889  	_ struct{} `type:"structure"`
 33890  
 33891  	// The Amazon Resource Name (ARN) of the resource to which you want to add or
 33892  	// update tags.
 33893  	//
 33894  	// ResourceArn is a required field
 33895  	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
 33896  
 33897  	// The key-value pair to use when tagging this repository.
 33898  	//
 33899  	// Tags is a required field
 33900  	Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
 33901  }
 33902  
 33903  // String returns the string representation.
 33904  //
 33905  // API parameter values that are decorated as "sensitive" in the API will not
 33906  // be included in the string output. The member name will be present, but the
 33907  // value will be replaced with "sensitive".
 33908  func (s TagResourceInput) String() string {
 33909  	return awsutil.Prettify(s)
 33910  }
 33911  
 33912  // GoString returns the string representation.
 33913  //
 33914  // API parameter values that are decorated as "sensitive" in the API will not
 33915  // be included in the string output. The member name will be present, but the
 33916  // value will be replaced with "sensitive".
 33917  func (s TagResourceInput) GoString() string {
 33918  	return s.String()
 33919  }
 33920  
 33921  // Validate inspects the fields of the type to determine if they are valid.
 33922  func (s *TagResourceInput) Validate() error {
 33923  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
 33924  	if s.ResourceArn == nil {
 33925  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
 33926  	}
 33927  	if s.Tags == nil {
 33928  		invalidParams.Add(request.NewErrParamRequired("Tags"))
 33929  	}
 33930  
 33931  	if invalidParams.Len() > 0 {
 33932  		return invalidParams
 33933  	}
 33934  	return nil
 33935  }
 33936  
 33937  // SetResourceArn sets the ResourceArn field's value.
 33938  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
 33939  	s.ResourceArn = &v
 33940  	return s
 33941  }
 33942  
 33943  // SetTags sets the Tags field's value.
 33944  func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
 33945  	s.Tags = v
 33946  	return s
 33947  }
 33948  
 33949  type TagResourceOutput struct {
 33950  	_ struct{} `type:"structure"`
 33951  }
 33952  
 33953  // String returns the string representation.
 33954  //
 33955  // API parameter values that are decorated as "sensitive" in the API will not
 33956  // be included in the string output. The member name will be present, but the
 33957  // value will be replaced with "sensitive".
 33958  func (s TagResourceOutput) String() string {
 33959  	return awsutil.Prettify(s)
 33960  }
 33961  
 33962  // GoString returns the string representation.
 33963  //
 33964  // API parameter values that are decorated as "sensitive" in the API will not
 33965  // be included in the string output. The member name will be present, but the
 33966  // value will be replaced with "sensitive".
 33967  func (s TagResourceOutput) GoString() string {
 33968  	return s.String()
 33969  }
 33970  
 33971  // A map of tags is required.
 33972  type TagsMapRequiredException struct {
 33973  	_            struct{}                  `type:"structure"`
 33974  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 33975  
 33976  	Message_ *string `locationName:"message" type:"string"`
 33977  }
 33978  
 33979  // String returns the string representation.
 33980  //
 33981  // API parameter values that are decorated as "sensitive" in the API will not
 33982  // be included in the string output. The member name will be present, but the
 33983  // value will be replaced with "sensitive".
 33984  func (s TagsMapRequiredException) String() string {
 33985  	return awsutil.Prettify(s)
 33986  }
 33987  
 33988  // GoString returns the string representation.
 33989  //
 33990  // API parameter values that are decorated as "sensitive" in the API will not
 33991  // be included in the string output. The member name will be present, but the
 33992  // value will be replaced with "sensitive".
 33993  func (s TagsMapRequiredException) GoString() string {
 33994  	return s.String()
 33995  }
 33996  
 33997  func newErrorTagsMapRequiredException(v protocol.ResponseMetadata) error {
 33998  	return &TagsMapRequiredException{
 33999  		RespMetadata: v,
 34000  	}
 34001  }
 34002  
 34003  // Code returns the exception type name.
 34004  func (s *TagsMapRequiredException) Code() string {
 34005  	return "TagsMapRequiredException"
 34006  }
 34007  
 34008  // Message returns the exception's message.
 34009  func (s *TagsMapRequiredException) Message() string {
 34010  	if s.Message_ != nil {
 34011  		return *s.Message_
 34012  	}
 34013  	return ""
 34014  }
 34015  
 34016  // OrigErr always returns nil, satisfies awserr.Error interface.
 34017  func (s *TagsMapRequiredException) OrigErr() error {
 34018  	return nil
 34019  }
 34020  
 34021  func (s *TagsMapRequiredException) Error() string {
 34022  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34023  }
 34024  
 34025  // Status code returns the HTTP status code for the request's response error.
 34026  func (s *TagsMapRequiredException) StatusCode() int {
 34027  	return s.RespMetadata.StatusCode
 34028  }
 34029  
 34030  // RequestID returns the service's response RequestID for request.
 34031  func (s *TagsMapRequiredException) RequestID() string {
 34032  	return s.RespMetadata.RequestID
 34033  }
 34034  
 34035  // Returns information about a target for a pull request.
 34036  type Target struct {
 34037  	_ struct{} `type:"structure"`
 34038  
 34039  	// The branch of the repository where the pull request changes are merged. Also
 34040  	// known as the destination branch.
 34041  	DestinationReference *string `locationName:"destinationReference" type:"string"`
 34042  
 34043  	// The name of the repository that contains the pull request.
 34044  	//
 34045  	// RepositoryName is a required field
 34046  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 34047  
 34048  	// The branch of the repository that contains the changes for the pull request.
 34049  	// Also known as the source branch.
 34050  	//
 34051  	// SourceReference is a required field
 34052  	SourceReference *string `locationName:"sourceReference" type:"string" required:"true"`
 34053  }
 34054  
 34055  // String returns the string representation.
 34056  //
 34057  // API parameter values that are decorated as "sensitive" in the API will not
 34058  // be included in the string output. The member name will be present, but the
 34059  // value will be replaced with "sensitive".
 34060  func (s Target) String() string {
 34061  	return awsutil.Prettify(s)
 34062  }
 34063  
 34064  // GoString returns the string representation.
 34065  //
 34066  // API parameter values that are decorated as "sensitive" in the API will not
 34067  // be included in the string output. The member name will be present, but the
 34068  // value will be replaced with "sensitive".
 34069  func (s Target) GoString() string {
 34070  	return s.String()
 34071  }
 34072  
 34073  // Validate inspects the fields of the type to determine if they are valid.
 34074  func (s *Target) Validate() error {
 34075  	invalidParams := request.ErrInvalidParams{Context: "Target"}
 34076  	if s.RepositoryName == nil {
 34077  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 34078  	}
 34079  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 34080  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 34081  	}
 34082  	if s.SourceReference == nil {
 34083  		invalidParams.Add(request.NewErrParamRequired("SourceReference"))
 34084  	}
 34085  
 34086  	if invalidParams.Len() > 0 {
 34087  		return invalidParams
 34088  	}
 34089  	return nil
 34090  }
 34091  
 34092  // SetDestinationReference sets the DestinationReference field's value.
 34093  func (s *Target) SetDestinationReference(v string) *Target {
 34094  	s.DestinationReference = &v
 34095  	return s
 34096  }
 34097  
 34098  // SetRepositoryName sets the RepositoryName field's value.
 34099  func (s *Target) SetRepositoryName(v string) *Target {
 34100  	s.RepositoryName = &v
 34101  	return s
 34102  }
 34103  
 34104  // SetSourceReference sets the SourceReference field's value.
 34105  func (s *Target) SetSourceReference(v string) *Target {
 34106  	s.SourceReference = &v
 34107  	return s
 34108  }
 34109  
 34110  // A pull request target is required. It cannot be empty or null. A pull request
 34111  // target must contain the full values for the repository name, source branch,
 34112  // and destination branch for the pull request.
 34113  type TargetRequiredException struct {
 34114  	_            struct{}                  `type:"structure"`
 34115  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 34116  
 34117  	Message_ *string `locationName:"message" type:"string"`
 34118  }
 34119  
 34120  // String returns the string representation.
 34121  //
 34122  // API parameter values that are decorated as "sensitive" in the API will not
 34123  // be included in the string output. The member name will be present, but the
 34124  // value will be replaced with "sensitive".
 34125  func (s TargetRequiredException) String() string {
 34126  	return awsutil.Prettify(s)
 34127  }
 34128  
 34129  // GoString returns the string representation.
 34130  //
 34131  // API parameter values that are decorated as "sensitive" in the API will not
 34132  // be included in the string output. The member name will be present, but the
 34133  // value will be replaced with "sensitive".
 34134  func (s TargetRequiredException) GoString() string {
 34135  	return s.String()
 34136  }
 34137  
 34138  func newErrorTargetRequiredException(v protocol.ResponseMetadata) error {
 34139  	return &TargetRequiredException{
 34140  		RespMetadata: v,
 34141  	}
 34142  }
 34143  
 34144  // Code returns the exception type name.
 34145  func (s *TargetRequiredException) Code() string {
 34146  	return "TargetRequiredException"
 34147  }
 34148  
 34149  // Message returns the exception's message.
 34150  func (s *TargetRequiredException) Message() string {
 34151  	if s.Message_ != nil {
 34152  		return *s.Message_
 34153  	}
 34154  	return ""
 34155  }
 34156  
 34157  // OrigErr always returns nil, satisfies awserr.Error interface.
 34158  func (s *TargetRequiredException) OrigErr() error {
 34159  	return nil
 34160  }
 34161  
 34162  func (s *TargetRequiredException) Error() string {
 34163  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34164  }
 34165  
 34166  // Status code returns the HTTP status code for the request's response error.
 34167  func (s *TargetRequiredException) StatusCode() int {
 34168  	return s.RespMetadata.StatusCode
 34169  }
 34170  
 34171  // RequestID returns the service's response RequestID for request.
 34172  func (s *TargetRequiredException) RequestID() string {
 34173  	return s.RespMetadata.RequestID
 34174  }
 34175  
 34176  // An array of target objects is required. It cannot be empty or null.
 34177  type TargetsRequiredException struct {
 34178  	_            struct{}                  `type:"structure"`
 34179  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 34180  
 34181  	Message_ *string `locationName:"message" type:"string"`
 34182  }
 34183  
 34184  // String returns the string representation.
 34185  //
 34186  // API parameter values that are decorated as "sensitive" in the API will not
 34187  // be included in the string output. The member name will be present, but the
 34188  // value will be replaced with "sensitive".
 34189  func (s TargetsRequiredException) String() string {
 34190  	return awsutil.Prettify(s)
 34191  }
 34192  
 34193  // GoString returns the string representation.
 34194  //
 34195  // API parameter values that are decorated as "sensitive" in the API will not
 34196  // be included in the string output. The member name will be present, but the
 34197  // value will be replaced with "sensitive".
 34198  func (s TargetsRequiredException) GoString() string {
 34199  	return s.String()
 34200  }
 34201  
 34202  func newErrorTargetsRequiredException(v protocol.ResponseMetadata) error {
 34203  	return &TargetsRequiredException{
 34204  		RespMetadata: v,
 34205  	}
 34206  }
 34207  
 34208  // Code returns the exception type name.
 34209  func (s *TargetsRequiredException) Code() string {
 34210  	return "TargetsRequiredException"
 34211  }
 34212  
 34213  // Message returns the exception's message.
 34214  func (s *TargetsRequiredException) Message() string {
 34215  	if s.Message_ != nil {
 34216  		return *s.Message_
 34217  	}
 34218  	return ""
 34219  }
 34220  
 34221  // OrigErr always returns nil, satisfies awserr.Error interface.
 34222  func (s *TargetsRequiredException) OrigErr() error {
 34223  	return nil
 34224  }
 34225  
 34226  func (s *TargetsRequiredException) Error() string {
 34227  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34228  }
 34229  
 34230  // Status code returns the HTTP status code for the request's response error.
 34231  func (s *TargetsRequiredException) StatusCode() int {
 34232  	return s.RespMetadata.StatusCode
 34233  }
 34234  
 34235  // RequestID returns the service's response RequestID for request.
 34236  func (s *TargetsRequiredException) RequestID() string {
 34237  	return s.RespMetadata.RequestID
 34238  }
 34239  
 34240  // Represents the input of a test repository triggers operation.
 34241  type TestRepositoryTriggersInput struct {
 34242  	_ struct{} `type:"structure"`
 34243  
 34244  	// The name of the repository in which to test the triggers.
 34245  	//
 34246  	// RepositoryName is a required field
 34247  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 34248  
 34249  	// The list of triggers to test.
 34250  	//
 34251  	// Triggers is a required field
 34252  	Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"`
 34253  }
 34254  
 34255  // String returns the string representation.
 34256  //
 34257  // API parameter values that are decorated as "sensitive" in the API will not
 34258  // be included in the string output. The member name will be present, but the
 34259  // value will be replaced with "sensitive".
 34260  func (s TestRepositoryTriggersInput) String() string {
 34261  	return awsutil.Prettify(s)
 34262  }
 34263  
 34264  // GoString returns the string representation.
 34265  //
 34266  // API parameter values that are decorated as "sensitive" in the API will not
 34267  // be included in the string output. The member name will be present, but the
 34268  // value will be replaced with "sensitive".
 34269  func (s TestRepositoryTriggersInput) GoString() string {
 34270  	return s.String()
 34271  }
 34272  
 34273  // Validate inspects the fields of the type to determine if they are valid.
 34274  func (s *TestRepositoryTriggersInput) Validate() error {
 34275  	invalidParams := request.ErrInvalidParams{Context: "TestRepositoryTriggersInput"}
 34276  	if s.RepositoryName == nil {
 34277  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 34278  	}
 34279  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 34280  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 34281  	}
 34282  	if s.Triggers == nil {
 34283  		invalidParams.Add(request.NewErrParamRequired("Triggers"))
 34284  	}
 34285  	if s.Triggers != nil {
 34286  		for i, v := range s.Triggers {
 34287  			if v == nil {
 34288  				continue
 34289  			}
 34290  			if err := v.Validate(); err != nil {
 34291  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
 34292  			}
 34293  		}
 34294  	}
 34295  
 34296  	if invalidParams.Len() > 0 {
 34297  		return invalidParams
 34298  	}
 34299  	return nil
 34300  }
 34301  
 34302  // SetRepositoryName sets the RepositoryName field's value.
 34303  func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput {
 34304  	s.RepositoryName = &v
 34305  	return s
 34306  }
 34307  
 34308  // SetTriggers sets the Triggers field's value.
 34309  func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput {
 34310  	s.Triggers = v
 34311  	return s
 34312  }
 34313  
 34314  // Represents the output of a test repository triggers operation.
 34315  type TestRepositoryTriggersOutput struct {
 34316  	_ struct{} `type:"structure"`
 34317  
 34318  	// The list of triggers that were not tested. This list provides the names of
 34319  	// the triggers that could not be tested, separated by commas.
 34320  	FailedExecutions []*RepositoryTriggerExecutionFailure `locationName:"failedExecutions" type:"list"`
 34321  
 34322  	// The list of triggers that were successfully tested. This list provides the
 34323  	// names of the triggers that were successfully tested, separated by commas.
 34324  	SuccessfulExecutions []*string `locationName:"successfulExecutions" type:"list"`
 34325  }
 34326  
 34327  // String returns the string representation.
 34328  //
 34329  // API parameter values that are decorated as "sensitive" in the API will not
 34330  // be included in the string output. The member name will be present, but the
 34331  // value will be replaced with "sensitive".
 34332  func (s TestRepositoryTriggersOutput) String() string {
 34333  	return awsutil.Prettify(s)
 34334  }
 34335  
 34336  // GoString returns the string representation.
 34337  //
 34338  // API parameter values that are decorated as "sensitive" in the API will not
 34339  // be included in the string output. The member name will be present, but the
 34340  // value will be replaced with "sensitive".
 34341  func (s TestRepositoryTriggersOutput) GoString() string {
 34342  	return s.String()
 34343  }
 34344  
 34345  // SetFailedExecutions sets the FailedExecutions field's value.
 34346  func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput {
 34347  	s.FailedExecutions = v
 34348  	return s
 34349  }
 34350  
 34351  // SetSuccessfulExecutions sets the SuccessfulExecutions field's value.
 34352  func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput {
 34353  	s.SuccessfulExecutions = v
 34354  	return s
 34355  }
 34356  
 34357  // The tip of the source branch in the destination repository does not match
 34358  // the tip of the source branch specified in your request. The pull request
 34359  // might have been updated. Make sure that you have the latest changes.
 34360  type TipOfSourceReferenceIsDifferentException struct {
 34361  	_            struct{}                  `type:"structure"`
 34362  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 34363  
 34364  	Message_ *string `locationName:"message" type:"string"`
 34365  }
 34366  
 34367  // String returns the string representation.
 34368  //
 34369  // API parameter values that are decorated as "sensitive" in the API will not
 34370  // be included in the string output. The member name will be present, but the
 34371  // value will be replaced with "sensitive".
 34372  func (s TipOfSourceReferenceIsDifferentException) String() string {
 34373  	return awsutil.Prettify(s)
 34374  }
 34375  
 34376  // GoString returns the string representation.
 34377  //
 34378  // API parameter values that are decorated as "sensitive" in the API will not
 34379  // be included in the string output. The member name will be present, but the
 34380  // value will be replaced with "sensitive".
 34381  func (s TipOfSourceReferenceIsDifferentException) GoString() string {
 34382  	return s.String()
 34383  }
 34384  
 34385  func newErrorTipOfSourceReferenceIsDifferentException(v protocol.ResponseMetadata) error {
 34386  	return &TipOfSourceReferenceIsDifferentException{
 34387  		RespMetadata: v,
 34388  	}
 34389  }
 34390  
 34391  // Code returns the exception type name.
 34392  func (s *TipOfSourceReferenceIsDifferentException) Code() string {
 34393  	return "TipOfSourceReferenceIsDifferentException"
 34394  }
 34395  
 34396  // Message returns the exception's message.
 34397  func (s *TipOfSourceReferenceIsDifferentException) Message() string {
 34398  	if s.Message_ != nil {
 34399  		return *s.Message_
 34400  	}
 34401  	return ""
 34402  }
 34403  
 34404  // OrigErr always returns nil, satisfies awserr.Error interface.
 34405  func (s *TipOfSourceReferenceIsDifferentException) OrigErr() error {
 34406  	return nil
 34407  }
 34408  
 34409  func (s *TipOfSourceReferenceIsDifferentException) Error() string {
 34410  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34411  }
 34412  
 34413  // Status code returns the HTTP status code for the request's response error.
 34414  func (s *TipOfSourceReferenceIsDifferentException) StatusCode() int {
 34415  	return s.RespMetadata.StatusCode
 34416  }
 34417  
 34418  // RequestID returns the service's response RequestID for request.
 34419  func (s *TipOfSourceReferenceIsDifferentException) RequestID() string {
 34420  	return s.RespMetadata.RequestID
 34421  }
 34422  
 34423  // The divergence between the tips of the provided commit specifiers is too
 34424  // great to determine whether there might be any merge conflicts. Locally compare
 34425  // the specifiers using git diff or a diff tool.
 34426  type TipsDivergenceExceededException struct {
 34427  	_            struct{}                  `type:"structure"`
 34428  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 34429  
 34430  	Message_ *string `locationName:"message" type:"string"`
 34431  }
 34432  
 34433  // String returns the string representation.
 34434  //
 34435  // API parameter values that are decorated as "sensitive" in the API will not
 34436  // be included in the string output. The member name will be present, but the
 34437  // value will be replaced with "sensitive".
 34438  func (s TipsDivergenceExceededException) String() string {
 34439  	return awsutil.Prettify(s)
 34440  }
 34441  
 34442  // GoString returns the string representation.
 34443  //
 34444  // API parameter values that are decorated as "sensitive" in the API will not
 34445  // be included in the string output. The member name will be present, but the
 34446  // value will be replaced with "sensitive".
 34447  func (s TipsDivergenceExceededException) GoString() string {
 34448  	return s.String()
 34449  }
 34450  
 34451  func newErrorTipsDivergenceExceededException(v protocol.ResponseMetadata) error {
 34452  	return &TipsDivergenceExceededException{
 34453  		RespMetadata: v,
 34454  	}
 34455  }
 34456  
 34457  // Code returns the exception type name.
 34458  func (s *TipsDivergenceExceededException) Code() string {
 34459  	return "TipsDivergenceExceededException"
 34460  }
 34461  
 34462  // Message returns the exception's message.
 34463  func (s *TipsDivergenceExceededException) Message() string {
 34464  	if s.Message_ != nil {
 34465  		return *s.Message_
 34466  	}
 34467  	return ""
 34468  }
 34469  
 34470  // OrigErr always returns nil, satisfies awserr.Error interface.
 34471  func (s *TipsDivergenceExceededException) OrigErr() error {
 34472  	return nil
 34473  }
 34474  
 34475  func (s *TipsDivergenceExceededException) Error() string {
 34476  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34477  }
 34478  
 34479  // Status code returns the HTTP status code for the request's response error.
 34480  func (s *TipsDivergenceExceededException) StatusCode() int {
 34481  	return s.RespMetadata.StatusCode
 34482  }
 34483  
 34484  // RequestID returns the service's response RequestID for request.
 34485  func (s *TipsDivergenceExceededException) RequestID() string {
 34486  	return s.RespMetadata.RequestID
 34487  }
 34488  
 34489  // A pull request title is required. It cannot be empty or null.
 34490  type TitleRequiredException struct {
 34491  	_            struct{}                  `type:"structure"`
 34492  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 34493  
 34494  	Message_ *string `locationName:"message" type:"string"`
 34495  }
 34496  
 34497  // String returns the string representation.
 34498  //
 34499  // API parameter values that are decorated as "sensitive" in the API will not
 34500  // be included in the string output. The member name will be present, but the
 34501  // value will be replaced with "sensitive".
 34502  func (s TitleRequiredException) String() string {
 34503  	return awsutil.Prettify(s)
 34504  }
 34505  
 34506  // GoString returns the string representation.
 34507  //
 34508  // API parameter values that are decorated as "sensitive" in the API will not
 34509  // be included in the string output. The member name will be present, but the
 34510  // value will be replaced with "sensitive".
 34511  func (s TitleRequiredException) GoString() string {
 34512  	return s.String()
 34513  }
 34514  
 34515  func newErrorTitleRequiredException(v protocol.ResponseMetadata) error {
 34516  	return &TitleRequiredException{
 34517  		RespMetadata: v,
 34518  	}
 34519  }
 34520  
 34521  // Code returns the exception type name.
 34522  func (s *TitleRequiredException) Code() string {
 34523  	return "TitleRequiredException"
 34524  }
 34525  
 34526  // Message returns the exception's message.
 34527  func (s *TitleRequiredException) Message() string {
 34528  	if s.Message_ != nil {
 34529  		return *s.Message_
 34530  	}
 34531  	return ""
 34532  }
 34533  
 34534  // OrigErr always returns nil, satisfies awserr.Error interface.
 34535  func (s *TitleRequiredException) OrigErr() error {
 34536  	return nil
 34537  }
 34538  
 34539  func (s *TitleRequiredException) Error() string {
 34540  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34541  }
 34542  
 34543  // Status code returns the HTTP status code for the request's response error.
 34544  func (s *TitleRequiredException) StatusCode() int {
 34545  	return s.RespMetadata.StatusCode
 34546  }
 34547  
 34548  // RequestID returns the service's response RequestID for request.
 34549  func (s *TitleRequiredException) RequestID() string {
 34550  	return s.RespMetadata.RequestID
 34551  }
 34552  
 34553  // The maximum number of tags for an AWS CodeCommit resource has been exceeded.
 34554  type TooManyTagsException struct {
 34555  	_            struct{}                  `type:"structure"`
 34556  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 34557  
 34558  	Message_ *string `locationName:"message" type:"string"`
 34559  }
 34560  
 34561  // String returns the string representation.
 34562  //
 34563  // API parameter values that are decorated as "sensitive" in the API will not
 34564  // be included in the string output. The member name will be present, but the
 34565  // value will be replaced with "sensitive".
 34566  func (s TooManyTagsException) String() string {
 34567  	return awsutil.Prettify(s)
 34568  }
 34569  
 34570  // GoString returns the string representation.
 34571  //
 34572  // API parameter values that are decorated as "sensitive" in the API will not
 34573  // be included in the string output. The member name will be present, but the
 34574  // value will be replaced with "sensitive".
 34575  func (s TooManyTagsException) GoString() string {
 34576  	return s.String()
 34577  }
 34578  
 34579  func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
 34580  	return &TooManyTagsException{
 34581  		RespMetadata: v,
 34582  	}
 34583  }
 34584  
 34585  // Code returns the exception type name.
 34586  func (s *TooManyTagsException) Code() string {
 34587  	return "TooManyTagsException"
 34588  }
 34589  
 34590  // Message returns the exception's message.
 34591  func (s *TooManyTagsException) Message() string {
 34592  	if s.Message_ != nil {
 34593  		return *s.Message_
 34594  	}
 34595  	return ""
 34596  }
 34597  
 34598  // OrigErr always returns nil, satisfies awserr.Error interface.
 34599  func (s *TooManyTagsException) OrigErr() error {
 34600  	return nil
 34601  }
 34602  
 34603  func (s *TooManyTagsException) Error() string {
 34604  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 34605  }
 34606  
 34607  // Status code returns the HTTP status code for the request's response error.
 34608  func (s *TooManyTagsException) StatusCode() int {
 34609  	return s.RespMetadata.StatusCode
 34610  }
 34611  
 34612  // RequestID returns the service's response RequestID for request.
 34613  func (s *TooManyTagsException) RequestID() string {
 34614  	return s.RespMetadata.RequestID
 34615  }
 34616  
 34617  type UntagResourceInput struct {
 34618  	_ struct{} `type:"structure"`
 34619  
 34620  	// The Amazon Resource Name (ARN) of the resource to which you want to remove
 34621  	// tags.
 34622  	//
 34623  	// ResourceArn is a required field
 34624  	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
 34625  
 34626  	// The tag key for each tag that you want to remove from the resource.
 34627  	//
 34628  	// TagKeys is a required field
 34629  	TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
 34630  }
 34631  
 34632  // String returns the string representation.
 34633  //
 34634  // API parameter values that are decorated as "sensitive" in the API will not
 34635  // be included in the string output. The member name will be present, but the
 34636  // value will be replaced with "sensitive".
 34637  func (s UntagResourceInput) String() string {
 34638  	return awsutil.Prettify(s)
 34639  }
 34640  
 34641  // GoString returns the string representation.
 34642  //
 34643  // API parameter values that are decorated as "sensitive" in the API will not
 34644  // be included in the string output. The member name will be present, but the
 34645  // value will be replaced with "sensitive".
 34646  func (s UntagResourceInput) GoString() string {
 34647  	return s.String()
 34648  }
 34649  
 34650  // Validate inspects the fields of the type to determine if they are valid.
 34651  func (s *UntagResourceInput) Validate() error {
 34652  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
 34653  	if s.ResourceArn == nil {
 34654  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
 34655  	}
 34656  	if s.TagKeys == nil {
 34657  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
 34658  	}
 34659  
 34660  	if invalidParams.Len() > 0 {
 34661  		return invalidParams
 34662  	}
 34663  	return nil
 34664  }
 34665  
 34666  // SetResourceArn sets the ResourceArn field's value.
 34667  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
 34668  	s.ResourceArn = &v
 34669  	return s
 34670  }
 34671  
 34672  // SetTagKeys sets the TagKeys field's value.
 34673  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
 34674  	s.TagKeys = v
 34675  	return s
 34676  }
 34677  
 34678  type UntagResourceOutput struct {
 34679  	_ struct{} `type:"structure"`
 34680  }
 34681  
 34682  // String returns the string representation.
 34683  //
 34684  // API parameter values that are decorated as "sensitive" in the API will not
 34685  // be included in the string output. The member name will be present, but the
 34686  // value will be replaced with "sensitive".
 34687  func (s UntagResourceOutput) String() string {
 34688  	return awsutil.Prettify(s)
 34689  }
 34690  
 34691  // GoString returns the string representation.
 34692  //
 34693  // API parameter values that are decorated as "sensitive" in the API will not
 34694  // be included in the string output. The member name will be present, but the
 34695  // value will be replaced with "sensitive".
 34696  func (s UntagResourceOutput) GoString() string {
 34697  	return s.String()
 34698  }
 34699  
 34700  type UpdateApprovalRuleTemplateContentInput struct {
 34701  	_ struct{} `type:"structure"`
 34702  
 34703  	// The name of the approval rule template where you want to update the content
 34704  	// of the rule.
 34705  	//
 34706  	// ApprovalRuleTemplateName is a required field
 34707  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 34708  
 34709  	// The SHA-256 hash signature for the content of the approval rule. You can
 34710  	// retrieve this information by using GetPullRequest.
 34711  	ExistingRuleContentSha256 *string `locationName:"existingRuleContentSha256" type:"string"`
 34712  
 34713  	// The content that replaces the existing content of the rule. Content statements
 34714  	// must be complete. You cannot provide only the changes.
 34715  	//
 34716  	// NewRuleContent is a required field
 34717  	NewRuleContent *string `locationName:"newRuleContent" min:"1" type:"string" required:"true"`
 34718  }
 34719  
 34720  // String returns the string representation.
 34721  //
 34722  // API parameter values that are decorated as "sensitive" in the API will not
 34723  // be included in the string output. The member name will be present, but the
 34724  // value will be replaced with "sensitive".
 34725  func (s UpdateApprovalRuleTemplateContentInput) String() string {
 34726  	return awsutil.Prettify(s)
 34727  }
 34728  
 34729  // GoString returns the string representation.
 34730  //
 34731  // API parameter values that are decorated as "sensitive" in the API will not
 34732  // be included in the string output. The member name will be present, but the
 34733  // value will be replaced with "sensitive".
 34734  func (s UpdateApprovalRuleTemplateContentInput) GoString() string {
 34735  	return s.String()
 34736  }
 34737  
 34738  // Validate inspects the fields of the type to determine if they are valid.
 34739  func (s *UpdateApprovalRuleTemplateContentInput) Validate() error {
 34740  	invalidParams := request.ErrInvalidParams{Context: "UpdateApprovalRuleTemplateContentInput"}
 34741  	if s.ApprovalRuleTemplateName == nil {
 34742  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 34743  	}
 34744  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 34745  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 34746  	}
 34747  	if s.NewRuleContent == nil {
 34748  		invalidParams.Add(request.NewErrParamRequired("NewRuleContent"))
 34749  	}
 34750  	if s.NewRuleContent != nil && len(*s.NewRuleContent) < 1 {
 34751  		invalidParams.Add(request.NewErrParamMinLen("NewRuleContent", 1))
 34752  	}
 34753  
 34754  	if invalidParams.Len() > 0 {
 34755  		return invalidParams
 34756  	}
 34757  	return nil
 34758  }
 34759  
 34760  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 34761  func (s *UpdateApprovalRuleTemplateContentInput) SetApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateContentInput {
 34762  	s.ApprovalRuleTemplateName = &v
 34763  	return s
 34764  }
 34765  
 34766  // SetExistingRuleContentSha256 sets the ExistingRuleContentSha256 field's value.
 34767  func (s *UpdateApprovalRuleTemplateContentInput) SetExistingRuleContentSha256(v string) *UpdateApprovalRuleTemplateContentInput {
 34768  	s.ExistingRuleContentSha256 = &v
 34769  	return s
 34770  }
 34771  
 34772  // SetNewRuleContent sets the NewRuleContent field's value.
 34773  func (s *UpdateApprovalRuleTemplateContentInput) SetNewRuleContent(v string) *UpdateApprovalRuleTemplateContentInput {
 34774  	s.NewRuleContent = &v
 34775  	return s
 34776  }
 34777  
 34778  type UpdateApprovalRuleTemplateContentOutput struct {
 34779  	_ struct{} `type:"structure"`
 34780  
 34781  	// Returns information about an approval rule template.
 34782  	//
 34783  	// ApprovalRuleTemplate is a required field
 34784  	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
 34785  }
 34786  
 34787  // String returns the string representation.
 34788  //
 34789  // API parameter values that are decorated as "sensitive" in the API will not
 34790  // be included in the string output. The member name will be present, but the
 34791  // value will be replaced with "sensitive".
 34792  func (s UpdateApprovalRuleTemplateContentOutput) String() string {
 34793  	return awsutil.Prettify(s)
 34794  }
 34795  
 34796  // GoString returns the string representation.
 34797  //
 34798  // API parameter values that are decorated as "sensitive" in the API will not
 34799  // be included in the string output. The member name will be present, but the
 34800  // value will be replaced with "sensitive".
 34801  func (s UpdateApprovalRuleTemplateContentOutput) GoString() string {
 34802  	return s.String()
 34803  }
 34804  
 34805  // SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
 34806  func (s *UpdateApprovalRuleTemplateContentOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *UpdateApprovalRuleTemplateContentOutput {
 34807  	s.ApprovalRuleTemplate = v
 34808  	return s
 34809  }
 34810  
 34811  type UpdateApprovalRuleTemplateDescriptionInput struct {
 34812  	_ struct{} `type:"structure"`
 34813  
 34814  	// The updated description of the approval rule template.
 34815  	//
 34816  	// ApprovalRuleTemplateDescription is a required field
 34817  	ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string" required:"true"`
 34818  
 34819  	// The name of the template for which you want to update the description.
 34820  	//
 34821  	// ApprovalRuleTemplateName is a required field
 34822  	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
 34823  }
 34824  
 34825  // String returns the string representation.
 34826  //
 34827  // API parameter values that are decorated as "sensitive" in the API will not
 34828  // be included in the string output. The member name will be present, but the
 34829  // value will be replaced with "sensitive".
 34830  func (s UpdateApprovalRuleTemplateDescriptionInput) String() string {
 34831  	return awsutil.Prettify(s)
 34832  }
 34833  
 34834  // GoString returns the string representation.
 34835  //
 34836  // API parameter values that are decorated as "sensitive" in the API will not
 34837  // be included in the string output. The member name will be present, but the
 34838  // value will be replaced with "sensitive".
 34839  func (s UpdateApprovalRuleTemplateDescriptionInput) GoString() string {
 34840  	return s.String()
 34841  }
 34842  
 34843  // Validate inspects the fields of the type to determine if they are valid.
 34844  func (s *UpdateApprovalRuleTemplateDescriptionInput) Validate() error {
 34845  	invalidParams := request.ErrInvalidParams{Context: "UpdateApprovalRuleTemplateDescriptionInput"}
 34846  	if s.ApprovalRuleTemplateDescription == nil {
 34847  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateDescription"))
 34848  	}
 34849  	if s.ApprovalRuleTemplateName == nil {
 34850  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
 34851  	}
 34852  	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
 34853  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
 34854  	}
 34855  
 34856  	if invalidParams.Len() > 0 {
 34857  		return invalidParams
 34858  	}
 34859  	return nil
 34860  }
 34861  
 34862  // SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value.
 34863  func (s *UpdateApprovalRuleTemplateDescriptionInput) SetApprovalRuleTemplateDescription(v string) *UpdateApprovalRuleTemplateDescriptionInput {
 34864  	s.ApprovalRuleTemplateDescription = &v
 34865  	return s
 34866  }
 34867  
 34868  // SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
 34869  func (s *UpdateApprovalRuleTemplateDescriptionInput) SetApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateDescriptionInput {
 34870  	s.ApprovalRuleTemplateName = &v
 34871  	return s
 34872  }
 34873  
 34874  type UpdateApprovalRuleTemplateDescriptionOutput struct {
 34875  	_ struct{} `type:"structure"`
 34876  
 34877  	// The structure and content of the updated approval rule template.
 34878  	//
 34879  	// ApprovalRuleTemplate is a required field
 34880  	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
 34881  }
 34882  
 34883  // String returns the string representation.
 34884  //
 34885  // API parameter values that are decorated as "sensitive" in the API will not
 34886  // be included in the string output. The member name will be present, but the
 34887  // value will be replaced with "sensitive".
 34888  func (s UpdateApprovalRuleTemplateDescriptionOutput) String() string {
 34889  	return awsutil.Prettify(s)
 34890  }
 34891  
 34892  // GoString returns the string representation.
 34893  //
 34894  // API parameter values that are decorated as "sensitive" in the API will not
 34895  // be included in the string output. The member name will be present, but the
 34896  // value will be replaced with "sensitive".
 34897  func (s UpdateApprovalRuleTemplateDescriptionOutput) GoString() string {
 34898  	return s.String()
 34899  }
 34900  
 34901  // SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
 34902  func (s *UpdateApprovalRuleTemplateDescriptionOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *UpdateApprovalRuleTemplateDescriptionOutput {
 34903  	s.ApprovalRuleTemplate = v
 34904  	return s
 34905  }
 34906  
 34907  type UpdateApprovalRuleTemplateNameInput struct {
 34908  	_ struct{} `type:"structure"`
 34909  
 34910  	// The new name you want to apply to the approval rule template.
 34911  	//
 34912  	// NewApprovalRuleTemplateName is a required field
 34913  	NewApprovalRuleTemplateName *string `locationName:"newApprovalRuleTemplateName" min:"1" type:"string" required:"true"`
 34914  
 34915  	// The current name of the approval rule template.
 34916  	//
 34917  	// OldApprovalRuleTemplateName is a required field
 34918  	OldApprovalRuleTemplateName *string `locationName:"oldApprovalRuleTemplateName" min:"1" type:"string" required:"true"`
 34919  }
 34920  
 34921  // String returns the string representation.
 34922  //
 34923  // API parameter values that are decorated as "sensitive" in the API will not
 34924  // be included in the string output. The member name will be present, but the
 34925  // value will be replaced with "sensitive".
 34926  func (s UpdateApprovalRuleTemplateNameInput) String() string {
 34927  	return awsutil.Prettify(s)
 34928  }
 34929  
 34930  // GoString returns the string representation.
 34931  //
 34932  // API parameter values that are decorated as "sensitive" in the API will not
 34933  // be included in the string output. The member name will be present, but the
 34934  // value will be replaced with "sensitive".
 34935  func (s UpdateApprovalRuleTemplateNameInput) GoString() string {
 34936  	return s.String()
 34937  }
 34938  
 34939  // Validate inspects the fields of the type to determine if they are valid.
 34940  func (s *UpdateApprovalRuleTemplateNameInput) Validate() error {
 34941  	invalidParams := request.ErrInvalidParams{Context: "UpdateApprovalRuleTemplateNameInput"}
 34942  	if s.NewApprovalRuleTemplateName == nil {
 34943  		invalidParams.Add(request.NewErrParamRequired("NewApprovalRuleTemplateName"))
 34944  	}
 34945  	if s.NewApprovalRuleTemplateName != nil && len(*s.NewApprovalRuleTemplateName) < 1 {
 34946  		invalidParams.Add(request.NewErrParamMinLen("NewApprovalRuleTemplateName", 1))
 34947  	}
 34948  	if s.OldApprovalRuleTemplateName == nil {
 34949  		invalidParams.Add(request.NewErrParamRequired("OldApprovalRuleTemplateName"))
 34950  	}
 34951  	if s.OldApprovalRuleTemplateName != nil && len(*s.OldApprovalRuleTemplateName) < 1 {
 34952  		invalidParams.Add(request.NewErrParamMinLen("OldApprovalRuleTemplateName", 1))
 34953  	}
 34954  
 34955  	if invalidParams.Len() > 0 {
 34956  		return invalidParams
 34957  	}
 34958  	return nil
 34959  }
 34960  
 34961  // SetNewApprovalRuleTemplateName sets the NewApprovalRuleTemplateName field's value.
 34962  func (s *UpdateApprovalRuleTemplateNameInput) SetNewApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateNameInput {
 34963  	s.NewApprovalRuleTemplateName = &v
 34964  	return s
 34965  }
 34966  
 34967  // SetOldApprovalRuleTemplateName sets the OldApprovalRuleTemplateName field's value.
 34968  func (s *UpdateApprovalRuleTemplateNameInput) SetOldApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateNameInput {
 34969  	s.OldApprovalRuleTemplateName = &v
 34970  	return s
 34971  }
 34972  
 34973  type UpdateApprovalRuleTemplateNameOutput struct {
 34974  	_ struct{} `type:"structure"`
 34975  
 34976  	// The structure and content of the updated approval rule template.
 34977  	//
 34978  	// ApprovalRuleTemplate is a required field
 34979  	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
 34980  }
 34981  
 34982  // String returns the string representation.
 34983  //
 34984  // API parameter values that are decorated as "sensitive" in the API will not
 34985  // be included in the string output. The member name will be present, but the
 34986  // value will be replaced with "sensitive".
 34987  func (s UpdateApprovalRuleTemplateNameOutput) String() string {
 34988  	return awsutil.Prettify(s)
 34989  }
 34990  
 34991  // GoString returns the string representation.
 34992  //
 34993  // API parameter values that are decorated as "sensitive" in the API will not
 34994  // be included in the string output. The member name will be present, but the
 34995  // value will be replaced with "sensitive".
 34996  func (s UpdateApprovalRuleTemplateNameOutput) GoString() string {
 34997  	return s.String()
 34998  }
 34999  
 35000  // SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
 35001  func (s *UpdateApprovalRuleTemplateNameOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *UpdateApprovalRuleTemplateNameOutput {
 35002  	s.ApprovalRuleTemplate = v
 35003  	return s
 35004  }
 35005  
 35006  type UpdateCommentInput struct {
 35007  	_ struct{} `type:"structure"`
 35008  
 35009  	// The system-generated ID of the comment you want to update. To get this ID,
 35010  	// use GetCommentsForComparedCommit or GetCommentsForPullRequest.
 35011  	//
 35012  	// CommentId is a required field
 35013  	CommentId *string `locationName:"commentId" type:"string" required:"true"`
 35014  
 35015  	// The updated content to replace the existing content of the comment.
 35016  	//
 35017  	// Content is a required field
 35018  	Content *string `locationName:"content" type:"string" required:"true"`
 35019  }
 35020  
 35021  // String returns the string representation.
 35022  //
 35023  // API parameter values that are decorated as "sensitive" in the API will not
 35024  // be included in the string output. The member name will be present, but the
 35025  // value will be replaced with "sensitive".
 35026  func (s UpdateCommentInput) String() string {
 35027  	return awsutil.Prettify(s)
 35028  }
 35029  
 35030  // GoString returns the string representation.
 35031  //
 35032  // API parameter values that are decorated as "sensitive" in the API will not
 35033  // be included in the string output. The member name will be present, but the
 35034  // value will be replaced with "sensitive".
 35035  func (s UpdateCommentInput) GoString() string {
 35036  	return s.String()
 35037  }
 35038  
 35039  // Validate inspects the fields of the type to determine if they are valid.
 35040  func (s *UpdateCommentInput) Validate() error {
 35041  	invalidParams := request.ErrInvalidParams{Context: "UpdateCommentInput"}
 35042  	if s.CommentId == nil {
 35043  		invalidParams.Add(request.NewErrParamRequired("CommentId"))
 35044  	}
 35045  	if s.Content == nil {
 35046  		invalidParams.Add(request.NewErrParamRequired("Content"))
 35047  	}
 35048  
 35049  	if invalidParams.Len() > 0 {
 35050  		return invalidParams
 35051  	}
 35052  	return nil
 35053  }
 35054  
 35055  // SetCommentId sets the CommentId field's value.
 35056  func (s *UpdateCommentInput) SetCommentId(v string) *UpdateCommentInput {
 35057  	s.CommentId = &v
 35058  	return s
 35059  }
 35060  
 35061  // SetContent sets the Content field's value.
 35062  func (s *UpdateCommentInput) SetContent(v string) *UpdateCommentInput {
 35063  	s.Content = &v
 35064  	return s
 35065  }
 35066  
 35067  type UpdateCommentOutput struct {
 35068  	_ struct{} `type:"structure"`
 35069  
 35070  	// Information about the updated comment.
 35071  	Comment *Comment `locationName:"comment" type:"structure"`
 35072  }
 35073  
 35074  // String returns the string representation.
 35075  //
 35076  // API parameter values that are decorated as "sensitive" in the API will not
 35077  // be included in the string output. The member name will be present, but the
 35078  // value will be replaced with "sensitive".
 35079  func (s UpdateCommentOutput) String() string {
 35080  	return awsutil.Prettify(s)
 35081  }
 35082  
 35083  // GoString returns the string representation.
 35084  //
 35085  // API parameter values that are decorated as "sensitive" in the API will not
 35086  // be included in the string output. The member name will be present, but the
 35087  // value will be replaced with "sensitive".
 35088  func (s UpdateCommentOutput) GoString() string {
 35089  	return s.String()
 35090  }
 35091  
 35092  // SetComment sets the Comment field's value.
 35093  func (s *UpdateCommentOutput) SetComment(v *Comment) *UpdateCommentOutput {
 35094  	s.Comment = v
 35095  	return s
 35096  }
 35097  
 35098  // Represents the input of an update default branch operation.
 35099  type UpdateDefaultBranchInput struct {
 35100  	_ struct{} `type:"structure"`
 35101  
 35102  	// The name of the branch to set as the default.
 35103  	//
 35104  	// DefaultBranchName is a required field
 35105  	DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"`
 35106  
 35107  	// The name of the repository to set or change the default branch for.
 35108  	//
 35109  	// RepositoryName is a required field
 35110  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 35111  }
 35112  
 35113  // String returns the string representation.
 35114  //
 35115  // API parameter values that are decorated as "sensitive" in the API will not
 35116  // be included in the string output. The member name will be present, but the
 35117  // value will be replaced with "sensitive".
 35118  func (s UpdateDefaultBranchInput) String() string {
 35119  	return awsutil.Prettify(s)
 35120  }
 35121  
 35122  // GoString returns the string representation.
 35123  //
 35124  // API parameter values that are decorated as "sensitive" in the API will not
 35125  // be included in the string output. The member name will be present, but the
 35126  // value will be replaced with "sensitive".
 35127  func (s UpdateDefaultBranchInput) GoString() string {
 35128  	return s.String()
 35129  }
 35130  
 35131  // Validate inspects the fields of the type to determine if they are valid.
 35132  func (s *UpdateDefaultBranchInput) Validate() error {
 35133  	invalidParams := request.ErrInvalidParams{Context: "UpdateDefaultBranchInput"}
 35134  	if s.DefaultBranchName == nil {
 35135  		invalidParams.Add(request.NewErrParamRequired("DefaultBranchName"))
 35136  	}
 35137  	if s.DefaultBranchName != nil && len(*s.DefaultBranchName) < 1 {
 35138  		invalidParams.Add(request.NewErrParamMinLen("DefaultBranchName", 1))
 35139  	}
 35140  	if s.RepositoryName == nil {
 35141  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 35142  	}
 35143  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 35144  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 35145  	}
 35146  
 35147  	if invalidParams.Len() > 0 {
 35148  		return invalidParams
 35149  	}
 35150  	return nil
 35151  }
 35152  
 35153  // SetDefaultBranchName sets the DefaultBranchName field's value.
 35154  func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput {
 35155  	s.DefaultBranchName = &v
 35156  	return s
 35157  }
 35158  
 35159  // SetRepositoryName sets the RepositoryName field's value.
 35160  func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput {
 35161  	s.RepositoryName = &v
 35162  	return s
 35163  }
 35164  
 35165  type UpdateDefaultBranchOutput struct {
 35166  	_ struct{} `type:"structure"`
 35167  }
 35168  
 35169  // String returns the string representation.
 35170  //
 35171  // API parameter values that are decorated as "sensitive" in the API will not
 35172  // be included in the string output. The member name will be present, but the
 35173  // value will be replaced with "sensitive".
 35174  func (s UpdateDefaultBranchOutput) String() string {
 35175  	return awsutil.Prettify(s)
 35176  }
 35177  
 35178  // GoString returns the string representation.
 35179  //
 35180  // API parameter values that are decorated as "sensitive" in the API will not
 35181  // be included in the string output. The member name will be present, but the
 35182  // value will be replaced with "sensitive".
 35183  func (s UpdateDefaultBranchOutput) GoString() string {
 35184  	return s.String()
 35185  }
 35186  
 35187  type UpdatePullRequestApprovalRuleContentInput struct {
 35188  	_ struct{} `type:"structure"`
 35189  
 35190  	// The name of the approval rule you want to update.
 35191  	//
 35192  	// ApprovalRuleName is a required field
 35193  	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"`
 35194  
 35195  	// The SHA-256 hash signature for the content of the approval rule. You can
 35196  	// retrieve this information by using GetPullRequest.
 35197  	ExistingRuleContentSha256 *string `locationName:"existingRuleContentSha256" type:"string"`
 35198  
 35199  	// The updated content for the approval rule.
 35200  	//
 35201  	// When you update the content of the approval rule, you can specify approvers
 35202  	// in an approval pool in one of two ways:
 35203  	//
 35204  	//    * CodeCommitApprovers: This option only requires an AWS account and a
 35205  	//    resource. It can be used for both IAM users and federated access users
 35206  	//    whose name matches the provided resource name. This is a very powerful
 35207  	//    option that offers a great deal of flexibility. For example, if you specify
 35208  	//    the AWS account 123456789012 and Mary_Major, all of the following are
 35209  	//    counted as approvals coming from that user: An IAM user in the account
 35210  	//    (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified
 35211  	//    in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
 35212  	//    This option does not recognize an active session of someone assuming the
 35213  	//    role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major)
 35214  	//    unless you include a wildcard (*Mary_Major).
 35215  	//
 35216  	//    * Fully qualified ARN: This option allows you to specify the fully qualified
 35217  	//    Amazon Resource Name (ARN) of the IAM user or role.
 35218  	//
 35219  	// For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers
 35220  	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
 35221  	// in the IAM User Guide.
 35222  	//
 35223  	// NewRuleContent is a required field
 35224  	NewRuleContent *string `locationName:"newRuleContent" min:"1" type:"string" required:"true"`
 35225  
 35226  	// The system-generated ID of the pull request.
 35227  	//
 35228  	// PullRequestId is a required field
 35229  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 35230  }
 35231  
 35232  // String returns the string representation.
 35233  //
 35234  // API parameter values that are decorated as "sensitive" in the API will not
 35235  // be included in the string output. The member name will be present, but the
 35236  // value will be replaced with "sensitive".
 35237  func (s UpdatePullRequestApprovalRuleContentInput) String() string {
 35238  	return awsutil.Prettify(s)
 35239  }
 35240  
 35241  // GoString returns the string representation.
 35242  //
 35243  // API parameter values that are decorated as "sensitive" in the API will not
 35244  // be included in the string output. The member name will be present, but the
 35245  // value will be replaced with "sensitive".
 35246  func (s UpdatePullRequestApprovalRuleContentInput) GoString() string {
 35247  	return s.String()
 35248  }
 35249  
 35250  // Validate inspects the fields of the type to determine if they are valid.
 35251  func (s *UpdatePullRequestApprovalRuleContentInput) Validate() error {
 35252  	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestApprovalRuleContentInput"}
 35253  	if s.ApprovalRuleName == nil {
 35254  		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName"))
 35255  	}
 35256  	if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 {
 35257  		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1))
 35258  	}
 35259  	if s.NewRuleContent == nil {
 35260  		invalidParams.Add(request.NewErrParamRequired("NewRuleContent"))
 35261  	}
 35262  	if s.NewRuleContent != nil && len(*s.NewRuleContent) < 1 {
 35263  		invalidParams.Add(request.NewErrParamMinLen("NewRuleContent", 1))
 35264  	}
 35265  	if s.PullRequestId == nil {
 35266  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 35267  	}
 35268  
 35269  	if invalidParams.Len() > 0 {
 35270  		return invalidParams
 35271  	}
 35272  	return nil
 35273  }
 35274  
 35275  // SetApprovalRuleName sets the ApprovalRuleName field's value.
 35276  func (s *UpdatePullRequestApprovalRuleContentInput) SetApprovalRuleName(v string) *UpdatePullRequestApprovalRuleContentInput {
 35277  	s.ApprovalRuleName = &v
 35278  	return s
 35279  }
 35280  
 35281  // SetExistingRuleContentSha256 sets the ExistingRuleContentSha256 field's value.
 35282  func (s *UpdatePullRequestApprovalRuleContentInput) SetExistingRuleContentSha256(v string) *UpdatePullRequestApprovalRuleContentInput {
 35283  	s.ExistingRuleContentSha256 = &v
 35284  	return s
 35285  }
 35286  
 35287  // SetNewRuleContent sets the NewRuleContent field's value.
 35288  func (s *UpdatePullRequestApprovalRuleContentInput) SetNewRuleContent(v string) *UpdatePullRequestApprovalRuleContentInput {
 35289  	s.NewRuleContent = &v
 35290  	return s
 35291  }
 35292  
 35293  // SetPullRequestId sets the PullRequestId field's value.
 35294  func (s *UpdatePullRequestApprovalRuleContentInput) SetPullRequestId(v string) *UpdatePullRequestApprovalRuleContentInput {
 35295  	s.PullRequestId = &v
 35296  	return s
 35297  }
 35298  
 35299  type UpdatePullRequestApprovalRuleContentOutput struct {
 35300  	_ struct{} `type:"structure"`
 35301  
 35302  	// Information about the updated approval rule.
 35303  	//
 35304  	// ApprovalRule is a required field
 35305  	ApprovalRule *ApprovalRule `locationName:"approvalRule" type:"structure" required:"true"`
 35306  }
 35307  
 35308  // String returns the string representation.
 35309  //
 35310  // API parameter values that are decorated as "sensitive" in the API will not
 35311  // be included in the string output. The member name will be present, but the
 35312  // value will be replaced with "sensitive".
 35313  func (s UpdatePullRequestApprovalRuleContentOutput) String() string {
 35314  	return awsutil.Prettify(s)
 35315  }
 35316  
 35317  // GoString returns the string representation.
 35318  //
 35319  // API parameter values that are decorated as "sensitive" in the API will not
 35320  // be included in the string output. The member name will be present, but the
 35321  // value will be replaced with "sensitive".
 35322  func (s UpdatePullRequestApprovalRuleContentOutput) GoString() string {
 35323  	return s.String()
 35324  }
 35325  
 35326  // SetApprovalRule sets the ApprovalRule field's value.
 35327  func (s *UpdatePullRequestApprovalRuleContentOutput) SetApprovalRule(v *ApprovalRule) *UpdatePullRequestApprovalRuleContentOutput {
 35328  	s.ApprovalRule = v
 35329  	return s
 35330  }
 35331  
 35332  type UpdatePullRequestApprovalStateInput struct {
 35333  	_ struct{} `type:"structure"`
 35334  
 35335  	// The approval state to associate with the user on the pull request.
 35336  	//
 35337  	// ApprovalState is a required field
 35338  	ApprovalState *string `locationName:"approvalState" type:"string" required:"true" enum:"ApprovalState"`
 35339  
 35340  	// The system-generated ID of the pull request.
 35341  	//
 35342  	// PullRequestId is a required field
 35343  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 35344  
 35345  	// The system-generated ID of the revision.
 35346  	//
 35347  	// RevisionId is a required field
 35348  	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
 35349  }
 35350  
 35351  // String returns the string representation.
 35352  //
 35353  // API parameter values that are decorated as "sensitive" in the API will not
 35354  // be included in the string output. The member name will be present, but the
 35355  // value will be replaced with "sensitive".
 35356  func (s UpdatePullRequestApprovalStateInput) String() string {
 35357  	return awsutil.Prettify(s)
 35358  }
 35359  
 35360  // GoString returns the string representation.
 35361  //
 35362  // API parameter values that are decorated as "sensitive" in the API will not
 35363  // be included in the string output. The member name will be present, but the
 35364  // value will be replaced with "sensitive".
 35365  func (s UpdatePullRequestApprovalStateInput) GoString() string {
 35366  	return s.String()
 35367  }
 35368  
 35369  // Validate inspects the fields of the type to determine if they are valid.
 35370  func (s *UpdatePullRequestApprovalStateInput) Validate() error {
 35371  	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestApprovalStateInput"}
 35372  	if s.ApprovalState == nil {
 35373  		invalidParams.Add(request.NewErrParamRequired("ApprovalState"))
 35374  	}
 35375  	if s.PullRequestId == nil {
 35376  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 35377  	}
 35378  	if s.RevisionId == nil {
 35379  		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
 35380  	}
 35381  
 35382  	if invalidParams.Len() > 0 {
 35383  		return invalidParams
 35384  	}
 35385  	return nil
 35386  }
 35387  
 35388  // SetApprovalState sets the ApprovalState field's value.
 35389  func (s *UpdatePullRequestApprovalStateInput) SetApprovalState(v string) *UpdatePullRequestApprovalStateInput {
 35390  	s.ApprovalState = &v
 35391  	return s
 35392  }
 35393  
 35394  // SetPullRequestId sets the PullRequestId field's value.
 35395  func (s *UpdatePullRequestApprovalStateInput) SetPullRequestId(v string) *UpdatePullRequestApprovalStateInput {
 35396  	s.PullRequestId = &v
 35397  	return s
 35398  }
 35399  
 35400  // SetRevisionId sets the RevisionId field's value.
 35401  func (s *UpdatePullRequestApprovalStateInput) SetRevisionId(v string) *UpdatePullRequestApprovalStateInput {
 35402  	s.RevisionId = &v
 35403  	return s
 35404  }
 35405  
 35406  type UpdatePullRequestApprovalStateOutput struct {
 35407  	_ struct{} `type:"structure"`
 35408  }
 35409  
 35410  // String returns the string representation.
 35411  //
 35412  // API parameter values that are decorated as "sensitive" in the API will not
 35413  // be included in the string output. The member name will be present, but the
 35414  // value will be replaced with "sensitive".
 35415  func (s UpdatePullRequestApprovalStateOutput) String() string {
 35416  	return awsutil.Prettify(s)
 35417  }
 35418  
 35419  // GoString returns the string representation.
 35420  //
 35421  // API parameter values that are decorated as "sensitive" in the API will not
 35422  // be included in the string output. The member name will be present, but the
 35423  // value will be replaced with "sensitive".
 35424  func (s UpdatePullRequestApprovalStateOutput) GoString() string {
 35425  	return s.String()
 35426  }
 35427  
 35428  type UpdatePullRequestDescriptionInput struct {
 35429  	_ struct{} `type:"structure"`
 35430  
 35431  	// The updated content of the description for the pull request. This content
 35432  	// replaces the existing description.
 35433  	//
 35434  	// Description is a required field
 35435  	Description *string `locationName:"description" type:"string" required:"true"`
 35436  
 35437  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 35438  	//
 35439  	// PullRequestId is a required field
 35440  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 35441  }
 35442  
 35443  // String returns the string representation.
 35444  //
 35445  // API parameter values that are decorated as "sensitive" in the API will not
 35446  // be included in the string output. The member name will be present, but the
 35447  // value will be replaced with "sensitive".
 35448  func (s UpdatePullRequestDescriptionInput) String() string {
 35449  	return awsutil.Prettify(s)
 35450  }
 35451  
 35452  // GoString returns the string representation.
 35453  //
 35454  // API parameter values that are decorated as "sensitive" in the API will not
 35455  // be included in the string output. The member name will be present, but the
 35456  // value will be replaced with "sensitive".
 35457  func (s UpdatePullRequestDescriptionInput) GoString() string {
 35458  	return s.String()
 35459  }
 35460  
 35461  // Validate inspects the fields of the type to determine if they are valid.
 35462  func (s *UpdatePullRequestDescriptionInput) Validate() error {
 35463  	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestDescriptionInput"}
 35464  	if s.Description == nil {
 35465  		invalidParams.Add(request.NewErrParamRequired("Description"))
 35466  	}
 35467  	if s.PullRequestId == nil {
 35468  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 35469  	}
 35470  
 35471  	if invalidParams.Len() > 0 {
 35472  		return invalidParams
 35473  	}
 35474  	return nil
 35475  }
 35476  
 35477  // SetDescription sets the Description field's value.
 35478  func (s *UpdatePullRequestDescriptionInput) SetDescription(v string) *UpdatePullRequestDescriptionInput {
 35479  	s.Description = &v
 35480  	return s
 35481  }
 35482  
 35483  // SetPullRequestId sets the PullRequestId field's value.
 35484  func (s *UpdatePullRequestDescriptionInput) SetPullRequestId(v string) *UpdatePullRequestDescriptionInput {
 35485  	s.PullRequestId = &v
 35486  	return s
 35487  }
 35488  
 35489  type UpdatePullRequestDescriptionOutput struct {
 35490  	_ struct{} `type:"structure"`
 35491  
 35492  	// Information about the updated pull request.
 35493  	//
 35494  	// PullRequest is a required field
 35495  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
 35496  }
 35497  
 35498  // String returns the string representation.
 35499  //
 35500  // API parameter values that are decorated as "sensitive" in the API will not
 35501  // be included in the string output. The member name will be present, but the
 35502  // value will be replaced with "sensitive".
 35503  func (s UpdatePullRequestDescriptionOutput) String() string {
 35504  	return awsutil.Prettify(s)
 35505  }
 35506  
 35507  // GoString returns the string representation.
 35508  //
 35509  // API parameter values that are decorated as "sensitive" in the API will not
 35510  // be included in the string output. The member name will be present, but the
 35511  // value will be replaced with "sensitive".
 35512  func (s UpdatePullRequestDescriptionOutput) GoString() string {
 35513  	return s.String()
 35514  }
 35515  
 35516  // SetPullRequest sets the PullRequest field's value.
 35517  func (s *UpdatePullRequestDescriptionOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestDescriptionOutput {
 35518  	s.PullRequest = v
 35519  	return s
 35520  }
 35521  
 35522  type UpdatePullRequestStatusInput struct {
 35523  	_ struct{} `type:"structure"`
 35524  
 35525  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 35526  	//
 35527  	// PullRequestId is a required field
 35528  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 35529  
 35530  	// The status of the pull request. The only valid operations are to update the
 35531  	// status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.
 35532  	//
 35533  	// PullRequestStatus is a required field
 35534  	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" required:"true" enum:"PullRequestStatusEnum"`
 35535  }
 35536  
 35537  // String returns the string representation.
 35538  //
 35539  // API parameter values that are decorated as "sensitive" in the API will not
 35540  // be included in the string output. The member name will be present, but the
 35541  // value will be replaced with "sensitive".
 35542  func (s UpdatePullRequestStatusInput) String() string {
 35543  	return awsutil.Prettify(s)
 35544  }
 35545  
 35546  // GoString returns the string representation.
 35547  //
 35548  // API parameter values that are decorated as "sensitive" in the API will not
 35549  // be included in the string output. The member name will be present, but the
 35550  // value will be replaced with "sensitive".
 35551  func (s UpdatePullRequestStatusInput) GoString() string {
 35552  	return s.String()
 35553  }
 35554  
 35555  // Validate inspects the fields of the type to determine if they are valid.
 35556  func (s *UpdatePullRequestStatusInput) Validate() error {
 35557  	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestStatusInput"}
 35558  	if s.PullRequestId == nil {
 35559  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 35560  	}
 35561  	if s.PullRequestStatus == nil {
 35562  		invalidParams.Add(request.NewErrParamRequired("PullRequestStatus"))
 35563  	}
 35564  
 35565  	if invalidParams.Len() > 0 {
 35566  		return invalidParams
 35567  	}
 35568  	return nil
 35569  }
 35570  
 35571  // SetPullRequestId sets the PullRequestId field's value.
 35572  func (s *UpdatePullRequestStatusInput) SetPullRequestId(v string) *UpdatePullRequestStatusInput {
 35573  	s.PullRequestId = &v
 35574  	return s
 35575  }
 35576  
 35577  // SetPullRequestStatus sets the PullRequestStatus field's value.
 35578  func (s *UpdatePullRequestStatusInput) SetPullRequestStatus(v string) *UpdatePullRequestStatusInput {
 35579  	s.PullRequestStatus = &v
 35580  	return s
 35581  }
 35582  
 35583  type UpdatePullRequestStatusOutput struct {
 35584  	_ struct{} `type:"structure"`
 35585  
 35586  	// Information about the pull request.
 35587  	//
 35588  	// PullRequest is a required field
 35589  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
 35590  }
 35591  
 35592  // String returns the string representation.
 35593  //
 35594  // API parameter values that are decorated as "sensitive" in the API will not
 35595  // be included in the string output. The member name will be present, but the
 35596  // value will be replaced with "sensitive".
 35597  func (s UpdatePullRequestStatusOutput) String() string {
 35598  	return awsutil.Prettify(s)
 35599  }
 35600  
 35601  // GoString returns the string representation.
 35602  //
 35603  // API parameter values that are decorated as "sensitive" in the API will not
 35604  // be included in the string output. The member name will be present, but the
 35605  // value will be replaced with "sensitive".
 35606  func (s UpdatePullRequestStatusOutput) GoString() string {
 35607  	return s.String()
 35608  }
 35609  
 35610  // SetPullRequest sets the PullRequest field's value.
 35611  func (s *UpdatePullRequestStatusOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestStatusOutput {
 35612  	s.PullRequest = v
 35613  	return s
 35614  }
 35615  
 35616  type UpdatePullRequestTitleInput struct {
 35617  	_ struct{} `type:"structure"`
 35618  
 35619  	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
 35620  	//
 35621  	// PullRequestId is a required field
 35622  	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
 35623  
 35624  	// The updated title of the pull request. This replaces the existing title.
 35625  	//
 35626  	// Title is a required field
 35627  	Title *string `locationName:"title" type:"string" required:"true"`
 35628  }
 35629  
 35630  // String returns the string representation.
 35631  //
 35632  // API parameter values that are decorated as "sensitive" in the API will not
 35633  // be included in the string output. The member name will be present, but the
 35634  // value will be replaced with "sensitive".
 35635  func (s UpdatePullRequestTitleInput) String() string {
 35636  	return awsutil.Prettify(s)
 35637  }
 35638  
 35639  // GoString returns the string representation.
 35640  //
 35641  // API parameter values that are decorated as "sensitive" in the API will not
 35642  // be included in the string output. The member name will be present, but the
 35643  // value will be replaced with "sensitive".
 35644  func (s UpdatePullRequestTitleInput) GoString() string {
 35645  	return s.String()
 35646  }
 35647  
 35648  // Validate inspects the fields of the type to determine if they are valid.
 35649  func (s *UpdatePullRequestTitleInput) Validate() error {
 35650  	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestTitleInput"}
 35651  	if s.PullRequestId == nil {
 35652  		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
 35653  	}
 35654  	if s.Title == nil {
 35655  		invalidParams.Add(request.NewErrParamRequired("Title"))
 35656  	}
 35657  
 35658  	if invalidParams.Len() > 0 {
 35659  		return invalidParams
 35660  	}
 35661  	return nil
 35662  }
 35663  
 35664  // SetPullRequestId sets the PullRequestId field's value.
 35665  func (s *UpdatePullRequestTitleInput) SetPullRequestId(v string) *UpdatePullRequestTitleInput {
 35666  	s.PullRequestId = &v
 35667  	return s
 35668  }
 35669  
 35670  // SetTitle sets the Title field's value.
 35671  func (s *UpdatePullRequestTitleInput) SetTitle(v string) *UpdatePullRequestTitleInput {
 35672  	s.Title = &v
 35673  	return s
 35674  }
 35675  
 35676  type UpdatePullRequestTitleOutput struct {
 35677  	_ struct{} `type:"structure"`
 35678  
 35679  	// Information about the updated pull request.
 35680  	//
 35681  	// PullRequest is a required field
 35682  	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
 35683  }
 35684  
 35685  // String returns the string representation.
 35686  //
 35687  // API parameter values that are decorated as "sensitive" in the API will not
 35688  // be included in the string output. The member name will be present, but the
 35689  // value will be replaced with "sensitive".
 35690  func (s UpdatePullRequestTitleOutput) String() string {
 35691  	return awsutil.Prettify(s)
 35692  }
 35693  
 35694  // GoString returns the string representation.
 35695  //
 35696  // API parameter values that are decorated as "sensitive" in the API will not
 35697  // be included in the string output. The member name will be present, but the
 35698  // value will be replaced with "sensitive".
 35699  func (s UpdatePullRequestTitleOutput) GoString() string {
 35700  	return s.String()
 35701  }
 35702  
 35703  // SetPullRequest sets the PullRequest field's value.
 35704  func (s *UpdatePullRequestTitleOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestTitleOutput {
 35705  	s.PullRequest = v
 35706  	return s
 35707  }
 35708  
 35709  // Represents the input of an update repository description operation.
 35710  type UpdateRepositoryDescriptionInput struct {
 35711  	_ struct{} `type:"structure"`
 35712  
 35713  	// The new comment or description for the specified repository. Repository descriptions
 35714  	// are limited to 1,000 characters.
 35715  	RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
 35716  
 35717  	// The name of the repository to set or change the comment or description for.
 35718  	//
 35719  	// RepositoryName is a required field
 35720  	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
 35721  }
 35722  
 35723  // String returns the string representation.
 35724  //
 35725  // API parameter values that are decorated as "sensitive" in the API will not
 35726  // be included in the string output. The member name will be present, but the
 35727  // value will be replaced with "sensitive".
 35728  func (s UpdateRepositoryDescriptionInput) String() string {
 35729  	return awsutil.Prettify(s)
 35730  }
 35731  
 35732  // GoString returns the string representation.
 35733  //
 35734  // API parameter values that are decorated as "sensitive" in the API will not
 35735  // be included in the string output. The member name will be present, but the
 35736  // value will be replaced with "sensitive".
 35737  func (s UpdateRepositoryDescriptionInput) GoString() string {
 35738  	return s.String()
 35739  }
 35740  
 35741  // Validate inspects the fields of the type to determine if they are valid.
 35742  func (s *UpdateRepositoryDescriptionInput) Validate() error {
 35743  	invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryDescriptionInput"}
 35744  	if s.RepositoryName == nil {
 35745  		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
 35746  	}
 35747  	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
 35748  		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
 35749  	}
 35750  
 35751  	if invalidParams.Len() > 0 {
 35752  		return invalidParams
 35753  	}
 35754  	return nil
 35755  }
 35756  
 35757  // SetRepositoryDescription sets the RepositoryDescription field's value.
 35758  func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput {
 35759  	s.RepositoryDescription = &v
 35760  	return s
 35761  }
 35762  
 35763  // SetRepositoryName sets the RepositoryName field's value.
 35764  func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput {
 35765  	s.RepositoryName = &v
 35766  	return s
 35767  }
 35768  
 35769  type UpdateRepositoryDescriptionOutput struct {
 35770  	_ struct{} `type:"structure"`
 35771  }
 35772  
 35773  // String returns the string representation.
 35774  //
 35775  // API parameter values that are decorated as "sensitive" in the API will not
 35776  // be included in the string output. The member name will be present, but the
 35777  // value will be replaced with "sensitive".
 35778  func (s UpdateRepositoryDescriptionOutput) String() string {
 35779  	return awsutil.Prettify(s)
 35780  }
 35781  
 35782  // GoString returns the string representation.
 35783  //
 35784  // API parameter values that are decorated as "sensitive" in the API will not
 35785  // be included in the string output. The member name will be present, but the
 35786  // value will be replaced with "sensitive".
 35787  func (s UpdateRepositoryDescriptionOutput) GoString() string {
 35788  	return s.String()
 35789  }
 35790  
 35791  // Represents the input of an update repository description operation.
 35792  type UpdateRepositoryNameInput struct {
 35793  	_ struct{} `type:"structure"`
 35794  
 35795  	// The new name for the repository.
 35796  	//
 35797  	// NewName is a required field
 35798  	NewName *string `locationName:"newName" min:"1" type:"string" required:"true"`
 35799  
 35800  	// The current name of the repository.
 35801  	//
 35802  	// OldName is a required field
 35803  	OldName *string `locationName:"oldName" min:"1" type:"string" required:"true"`
 35804  }
 35805  
 35806  // String returns the string representation.
 35807  //
 35808  // API parameter values that are decorated as "sensitive" in the API will not
 35809  // be included in the string output. The member name will be present, but the
 35810  // value will be replaced with "sensitive".
 35811  func (s UpdateRepositoryNameInput) String() string {
 35812  	return awsutil.Prettify(s)
 35813  }
 35814  
 35815  // GoString returns the string representation.
 35816  //
 35817  // API parameter values that are decorated as "sensitive" in the API will not
 35818  // be included in the string output. The member name will be present, but the
 35819  // value will be replaced with "sensitive".
 35820  func (s UpdateRepositoryNameInput) GoString() string {
 35821  	return s.String()
 35822  }
 35823  
 35824  // Validate inspects the fields of the type to determine if they are valid.
 35825  func (s *UpdateRepositoryNameInput) Validate() error {
 35826  	invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryNameInput"}
 35827  	if s.NewName == nil {
 35828  		invalidParams.Add(request.NewErrParamRequired("NewName"))
 35829  	}
 35830  	if s.NewName != nil && len(*s.NewName) < 1 {
 35831  		invalidParams.Add(request.NewErrParamMinLen("NewName", 1))
 35832  	}
 35833  	if s.OldName == nil {
 35834  		invalidParams.Add(request.NewErrParamRequired("OldName"))
 35835  	}
 35836  	if s.OldName != nil && len(*s.OldName) < 1 {
 35837  		invalidParams.Add(request.NewErrParamMinLen("OldName", 1))
 35838  	}
 35839  
 35840  	if invalidParams.Len() > 0 {
 35841  		return invalidParams
 35842  	}
 35843  	return nil
 35844  }
 35845  
 35846  // SetNewName sets the NewName field's value.
 35847  func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput {
 35848  	s.NewName = &v
 35849  	return s
 35850  }
 35851  
 35852  // SetOldName sets the OldName field's value.
 35853  func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput {
 35854  	s.OldName = &v
 35855  	return s
 35856  }
 35857  
 35858  type UpdateRepositoryNameOutput struct {
 35859  	_ struct{} `type:"structure"`
 35860  }
 35861  
 35862  // String returns the string representation.
 35863  //
 35864  // API parameter values that are decorated as "sensitive" in the API will not
 35865  // be included in the string output. The member name will be present, but the
 35866  // value will be replaced with "sensitive".
 35867  func (s UpdateRepositoryNameOutput) String() string {
 35868  	return awsutil.Prettify(s)
 35869  }
 35870  
 35871  // GoString returns the string representation.
 35872  //
 35873  // API parameter values that are decorated as "sensitive" in the API will not
 35874  // be included in the string output. The member name will be present, but the
 35875  // value will be replaced with "sensitive".
 35876  func (s UpdateRepositoryNameOutput) GoString() string {
 35877  	return s.String()
 35878  }
 35879  
 35880  // Information about the user who made a specified commit.
 35881  type UserInfo struct {
 35882  	_ struct{} `type:"structure"`
 35883  
 35884  	// The date when the specified commit was commited, in timestamp format with
 35885  	// GMT offset.
 35886  	Date *string `locationName:"date" type:"string"`
 35887  
 35888  	// The email address associated with the user who made the commit, if any.
 35889  	Email *string `locationName:"email" type:"string"`
 35890  
 35891  	// The name of the user who made the specified commit.
 35892  	Name *string `locationName:"name" type:"string"`
 35893  }
 35894  
 35895  // String returns the string representation.
 35896  //
 35897  // API parameter values that are decorated as "sensitive" in the API will not
 35898  // be included in the string output. The member name will be present, but the
 35899  // value will be replaced with "sensitive".
 35900  func (s UserInfo) String() string {
 35901  	return awsutil.Prettify(s)
 35902  }
 35903  
 35904  // GoString returns the string representation.
 35905  //
 35906  // API parameter values that are decorated as "sensitive" in the API will not
 35907  // be included in the string output. The member name will be present, but the
 35908  // value will be replaced with "sensitive".
 35909  func (s UserInfo) GoString() string {
 35910  	return s.String()
 35911  }
 35912  
 35913  // SetDate sets the Date field's value.
 35914  func (s *UserInfo) SetDate(v string) *UserInfo {
 35915  	s.Date = &v
 35916  	return s
 35917  }
 35918  
 35919  // SetEmail sets the Email field's value.
 35920  func (s *UserInfo) SetEmail(v string) *UserInfo {
 35921  	s.Email = &v
 35922  	return s
 35923  }
 35924  
 35925  // SetName sets the Name field's value.
 35926  func (s *UserInfo) SetName(v string) *UserInfo {
 35927  	s.Name = &v
 35928  	return s
 35929  }
 35930  
 35931  const (
 35932  	// ApprovalStateApprove is a ApprovalState enum value
 35933  	ApprovalStateApprove = "APPROVE"
 35934  
 35935  	// ApprovalStateRevoke is a ApprovalState enum value
 35936  	ApprovalStateRevoke = "REVOKE"
 35937  )
 35938  
 35939  // ApprovalState_Values returns all elements of the ApprovalState enum
 35940  func ApprovalState_Values() []string {
 35941  	return []string{
 35942  		ApprovalStateApprove,
 35943  		ApprovalStateRevoke,
 35944  	}
 35945  }
 35946  
 35947  const (
 35948  	// ChangeTypeEnumA is a ChangeTypeEnum enum value
 35949  	ChangeTypeEnumA = "A"
 35950  
 35951  	// ChangeTypeEnumM is a ChangeTypeEnum enum value
 35952  	ChangeTypeEnumM = "M"
 35953  
 35954  	// ChangeTypeEnumD is a ChangeTypeEnum enum value
 35955  	ChangeTypeEnumD = "D"
 35956  )
 35957  
 35958  // ChangeTypeEnum_Values returns all elements of the ChangeTypeEnum enum
 35959  func ChangeTypeEnum_Values() []string {
 35960  	return []string{
 35961  		ChangeTypeEnumA,
 35962  		ChangeTypeEnumM,
 35963  		ChangeTypeEnumD,
 35964  	}
 35965  }
 35966  
 35967  const (
 35968  	// ConflictDetailLevelTypeEnumFileLevel is a ConflictDetailLevelTypeEnum enum value
 35969  	ConflictDetailLevelTypeEnumFileLevel = "FILE_LEVEL"
 35970  
 35971  	// ConflictDetailLevelTypeEnumLineLevel is a ConflictDetailLevelTypeEnum enum value
 35972  	ConflictDetailLevelTypeEnumLineLevel = "LINE_LEVEL"
 35973  )
 35974  
 35975  // ConflictDetailLevelTypeEnum_Values returns all elements of the ConflictDetailLevelTypeEnum enum
 35976  func ConflictDetailLevelTypeEnum_Values() []string {
 35977  	return []string{
 35978  		ConflictDetailLevelTypeEnumFileLevel,
 35979  		ConflictDetailLevelTypeEnumLineLevel,
 35980  	}
 35981  }
 35982  
 35983  const (
 35984  	// ConflictResolutionStrategyTypeEnumNone is a ConflictResolutionStrategyTypeEnum enum value
 35985  	ConflictResolutionStrategyTypeEnumNone = "NONE"
 35986  
 35987  	// ConflictResolutionStrategyTypeEnumAcceptSource is a ConflictResolutionStrategyTypeEnum enum value
 35988  	ConflictResolutionStrategyTypeEnumAcceptSource = "ACCEPT_SOURCE"
 35989  
 35990  	// ConflictResolutionStrategyTypeEnumAcceptDestination is a ConflictResolutionStrategyTypeEnum enum value
 35991  	ConflictResolutionStrategyTypeEnumAcceptDestination = "ACCEPT_DESTINATION"
 35992  
 35993  	// ConflictResolutionStrategyTypeEnumAutomerge is a ConflictResolutionStrategyTypeEnum enum value
 35994  	ConflictResolutionStrategyTypeEnumAutomerge = "AUTOMERGE"
 35995  )
 35996  
 35997  // ConflictResolutionStrategyTypeEnum_Values returns all elements of the ConflictResolutionStrategyTypeEnum enum
 35998  func ConflictResolutionStrategyTypeEnum_Values() []string {
 35999  	return []string{
 36000  		ConflictResolutionStrategyTypeEnumNone,
 36001  		ConflictResolutionStrategyTypeEnumAcceptSource,
 36002  		ConflictResolutionStrategyTypeEnumAcceptDestination,
 36003  		ConflictResolutionStrategyTypeEnumAutomerge,
 36004  	}
 36005  }
 36006  
 36007  const (
 36008  	// FileModeTypeEnumExecutable is a FileModeTypeEnum enum value
 36009  	FileModeTypeEnumExecutable = "EXECUTABLE"
 36010  
 36011  	// FileModeTypeEnumNormal is a FileModeTypeEnum enum value
 36012  	FileModeTypeEnumNormal = "NORMAL"
 36013  
 36014  	// FileModeTypeEnumSymlink is a FileModeTypeEnum enum value
 36015  	FileModeTypeEnumSymlink = "SYMLINK"
 36016  )
 36017  
 36018  // FileModeTypeEnum_Values returns all elements of the FileModeTypeEnum enum
 36019  func FileModeTypeEnum_Values() []string {
 36020  	return []string{
 36021  		FileModeTypeEnumExecutable,
 36022  		FileModeTypeEnumNormal,
 36023  		FileModeTypeEnumSymlink,
 36024  	}
 36025  }
 36026  
 36027  const (
 36028  	// MergeOptionTypeEnumFastForwardMerge is a MergeOptionTypeEnum enum value
 36029  	MergeOptionTypeEnumFastForwardMerge = "FAST_FORWARD_MERGE"
 36030  
 36031  	// MergeOptionTypeEnumSquashMerge is a MergeOptionTypeEnum enum value
 36032  	MergeOptionTypeEnumSquashMerge = "SQUASH_MERGE"
 36033  
 36034  	// MergeOptionTypeEnumThreeWayMerge is a MergeOptionTypeEnum enum value
 36035  	MergeOptionTypeEnumThreeWayMerge = "THREE_WAY_MERGE"
 36036  )
 36037  
 36038  // MergeOptionTypeEnum_Values returns all elements of the MergeOptionTypeEnum enum
 36039  func MergeOptionTypeEnum_Values() []string {
 36040  	return []string{
 36041  		MergeOptionTypeEnumFastForwardMerge,
 36042  		MergeOptionTypeEnumSquashMerge,
 36043  		MergeOptionTypeEnumThreeWayMerge,
 36044  	}
 36045  }
 36046  
 36047  const (
 36048  	// ObjectTypeEnumFile is a ObjectTypeEnum enum value
 36049  	ObjectTypeEnumFile = "FILE"
 36050  
 36051  	// ObjectTypeEnumDirectory is a ObjectTypeEnum enum value
 36052  	ObjectTypeEnumDirectory = "DIRECTORY"
 36053  
 36054  	// ObjectTypeEnumGitLink is a ObjectTypeEnum enum value
 36055  	ObjectTypeEnumGitLink = "GIT_LINK"
 36056  
 36057  	// ObjectTypeEnumSymbolicLink is a ObjectTypeEnum enum value
 36058  	ObjectTypeEnumSymbolicLink = "SYMBOLIC_LINK"
 36059  )
 36060  
 36061  // ObjectTypeEnum_Values returns all elements of the ObjectTypeEnum enum
 36062  func ObjectTypeEnum_Values() []string {
 36063  	return []string{
 36064  		ObjectTypeEnumFile,
 36065  		ObjectTypeEnumDirectory,
 36066  		ObjectTypeEnumGitLink,
 36067  		ObjectTypeEnumSymbolicLink,
 36068  	}
 36069  }
 36070  
 36071  const (
 36072  	// OrderEnumAscending is a OrderEnum enum value
 36073  	OrderEnumAscending = "ascending"
 36074  
 36075  	// OrderEnumDescending is a OrderEnum enum value
 36076  	OrderEnumDescending = "descending"
 36077  )
 36078  
 36079  // OrderEnum_Values returns all elements of the OrderEnum enum
 36080  func OrderEnum_Values() []string {
 36081  	return []string{
 36082  		OrderEnumAscending,
 36083  		OrderEnumDescending,
 36084  	}
 36085  }
 36086  
 36087  const (
 36088  	// OverrideStatusOverride is a OverrideStatus enum value
 36089  	OverrideStatusOverride = "OVERRIDE"
 36090  
 36091  	// OverrideStatusRevoke is a OverrideStatus enum value
 36092  	OverrideStatusRevoke = "REVOKE"
 36093  )
 36094  
 36095  // OverrideStatus_Values returns all elements of the OverrideStatus enum
 36096  func OverrideStatus_Values() []string {
 36097  	return []string{
 36098  		OverrideStatusOverride,
 36099  		OverrideStatusRevoke,
 36100  	}
 36101  }
 36102  
 36103  const (
 36104  	// PullRequestEventTypePullRequestCreated is a PullRequestEventType enum value
 36105  	PullRequestEventTypePullRequestCreated = "PULL_REQUEST_CREATED"
 36106  
 36107  	// PullRequestEventTypePullRequestStatusChanged is a PullRequestEventType enum value
 36108  	PullRequestEventTypePullRequestStatusChanged = "PULL_REQUEST_STATUS_CHANGED"
 36109  
 36110  	// PullRequestEventTypePullRequestSourceReferenceUpdated is a PullRequestEventType enum value
 36111  	PullRequestEventTypePullRequestSourceReferenceUpdated = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED"
 36112  
 36113  	// PullRequestEventTypePullRequestMergeStateChanged is a PullRequestEventType enum value
 36114  	PullRequestEventTypePullRequestMergeStateChanged = "PULL_REQUEST_MERGE_STATE_CHANGED"
 36115  
 36116  	// PullRequestEventTypePullRequestApprovalRuleCreated is a PullRequestEventType enum value
 36117  	PullRequestEventTypePullRequestApprovalRuleCreated = "PULL_REQUEST_APPROVAL_RULE_CREATED"
 36118  
 36119  	// PullRequestEventTypePullRequestApprovalRuleUpdated is a PullRequestEventType enum value
 36120  	PullRequestEventTypePullRequestApprovalRuleUpdated = "PULL_REQUEST_APPROVAL_RULE_UPDATED"
 36121  
 36122  	// PullRequestEventTypePullRequestApprovalRuleDeleted is a PullRequestEventType enum value
 36123  	PullRequestEventTypePullRequestApprovalRuleDeleted = "PULL_REQUEST_APPROVAL_RULE_DELETED"
 36124  
 36125  	// PullRequestEventTypePullRequestApprovalRuleOverridden is a PullRequestEventType enum value
 36126  	PullRequestEventTypePullRequestApprovalRuleOverridden = "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"
 36127  
 36128  	// PullRequestEventTypePullRequestApprovalStateChanged is a PullRequestEventType enum value
 36129  	PullRequestEventTypePullRequestApprovalStateChanged = "PULL_REQUEST_APPROVAL_STATE_CHANGED"
 36130  )
 36131  
 36132  // PullRequestEventType_Values returns all elements of the PullRequestEventType enum
 36133  func PullRequestEventType_Values() []string {
 36134  	return []string{
 36135  		PullRequestEventTypePullRequestCreated,
 36136  		PullRequestEventTypePullRequestStatusChanged,
 36137  		PullRequestEventTypePullRequestSourceReferenceUpdated,
 36138  		PullRequestEventTypePullRequestMergeStateChanged,
 36139  		PullRequestEventTypePullRequestApprovalRuleCreated,
 36140  		PullRequestEventTypePullRequestApprovalRuleUpdated,
 36141  		PullRequestEventTypePullRequestApprovalRuleDeleted,
 36142  		PullRequestEventTypePullRequestApprovalRuleOverridden,
 36143  		PullRequestEventTypePullRequestApprovalStateChanged,
 36144  	}
 36145  }
 36146  
 36147  const (
 36148  	// PullRequestStatusEnumOpen is a PullRequestStatusEnum enum value
 36149  	PullRequestStatusEnumOpen = "OPEN"
 36150  
 36151  	// PullRequestStatusEnumClosed is a PullRequestStatusEnum enum value
 36152  	PullRequestStatusEnumClosed = "CLOSED"
 36153  )
 36154  
 36155  // PullRequestStatusEnum_Values returns all elements of the PullRequestStatusEnum enum
 36156  func PullRequestStatusEnum_Values() []string {
 36157  	return []string{
 36158  		PullRequestStatusEnumOpen,
 36159  		PullRequestStatusEnumClosed,
 36160  	}
 36161  }
 36162  
 36163  const (
 36164  	// RelativeFileVersionEnumBefore is a RelativeFileVersionEnum enum value
 36165  	RelativeFileVersionEnumBefore = "BEFORE"
 36166  
 36167  	// RelativeFileVersionEnumAfter is a RelativeFileVersionEnum enum value
 36168  	RelativeFileVersionEnumAfter = "AFTER"
 36169  )
 36170  
 36171  // RelativeFileVersionEnum_Values returns all elements of the RelativeFileVersionEnum enum
 36172  func RelativeFileVersionEnum_Values() []string {
 36173  	return []string{
 36174  		RelativeFileVersionEnumBefore,
 36175  		RelativeFileVersionEnumAfter,
 36176  	}
 36177  }
 36178  
 36179  const (
 36180  	// ReplacementTypeEnumKeepBase is a ReplacementTypeEnum enum value
 36181  	ReplacementTypeEnumKeepBase = "KEEP_BASE"
 36182  
 36183  	// ReplacementTypeEnumKeepSource is a ReplacementTypeEnum enum value
 36184  	ReplacementTypeEnumKeepSource = "KEEP_SOURCE"
 36185  
 36186  	// ReplacementTypeEnumKeepDestination is a ReplacementTypeEnum enum value
 36187  	ReplacementTypeEnumKeepDestination = "KEEP_DESTINATION"
 36188  
 36189  	// ReplacementTypeEnumUseNewContent is a ReplacementTypeEnum enum value
 36190  	ReplacementTypeEnumUseNewContent = "USE_NEW_CONTENT"
 36191  )
 36192  
 36193  // ReplacementTypeEnum_Values returns all elements of the ReplacementTypeEnum enum
 36194  func ReplacementTypeEnum_Values() []string {
 36195  	return []string{
 36196  		ReplacementTypeEnumKeepBase,
 36197  		ReplacementTypeEnumKeepSource,
 36198  		ReplacementTypeEnumKeepDestination,
 36199  		ReplacementTypeEnumUseNewContent,
 36200  	}
 36201  }
 36202  
 36203  const (
 36204  	// RepositoryTriggerEventEnumAll is a RepositoryTriggerEventEnum enum value
 36205  	RepositoryTriggerEventEnumAll = "all"
 36206  
 36207  	// RepositoryTriggerEventEnumUpdateReference is a RepositoryTriggerEventEnum enum value
 36208  	RepositoryTriggerEventEnumUpdateReference = "updateReference"
 36209  
 36210  	// RepositoryTriggerEventEnumCreateReference is a RepositoryTriggerEventEnum enum value
 36211  	RepositoryTriggerEventEnumCreateReference = "createReference"
 36212  
 36213  	// RepositoryTriggerEventEnumDeleteReference is a RepositoryTriggerEventEnum enum value
 36214  	RepositoryTriggerEventEnumDeleteReference = "deleteReference"
 36215  )
 36216  
 36217  // RepositoryTriggerEventEnum_Values returns all elements of the RepositoryTriggerEventEnum enum
 36218  func RepositoryTriggerEventEnum_Values() []string {
 36219  	return []string{
 36220  		RepositoryTriggerEventEnumAll,
 36221  		RepositoryTriggerEventEnumUpdateReference,
 36222  		RepositoryTriggerEventEnumCreateReference,
 36223  		RepositoryTriggerEventEnumDeleteReference,
 36224  	}
 36225  }
 36226  
 36227  const (
 36228  	// SortByEnumRepositoryName is a SortByEnum enum value
 36229  	SortByEnumRepositoryName = "repositoryName"
 36230  
 36231  	// SortByEnumLastModifiedDate is a SortByEnum enum value
 36232  	SortByEnumLastModifiedDate = "lastModifiedDate"
 36233  )
 36234  
 36235  // SortByEnum_Values returns all elements of the SortByEnum enum
 36236  func SortByEnum_Values() []string {
 36237  	return []string{
 36238  		SortByEnumRepositoryName,
 36239  		SortByEnumLastModifiedDate,
 36240  	}
 36241  }