1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package codecommit
4
5import (
6	"fmt"
7	"time"
8
9	"github.com/aws/aws-sdk-go/aws"
10	"github.com/aws/aws-sdk-go/aws/awsutil"
11	"github.com/aws/aws-sdk-go/aws/request"
12	"github.com/aws/aws-sdk-go/private/protocol"
13	"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
14)
15
16const 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
42func (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
123func (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.
137func (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
144const 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
170func (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
235func (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.
249func (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
256const 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
282func (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
384func (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.
398func (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
405const 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
431func (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
496func (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.
510func (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
517const 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
543func (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
609func (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.
623func (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
630const 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
656func (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
720func (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.
734func (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
741const 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
767func (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
829func (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.
843func (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
850const 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
876func (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
957func (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.
971func (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
978const 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
1004func (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
1191func (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.
1205func (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
1212const 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
1238func (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
1368func (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.
1382func (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
1389const 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
1415func (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
1495func (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.
1509func (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
1516const 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
1542func (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
1617func (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.
1631func (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
1638const 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
1664func (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
1833func (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.
1847func (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
1854const 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
1880func (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
1923func (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.
1937func (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
1944const 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
1970func (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
2039func (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.
2053func (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
2060const 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
2086func (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
2130func (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.
2144func (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
2151const 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
2177func (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
2291func (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.
2305func (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
2312const 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
2338func (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
2412func (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.
2426func (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
2433const 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
2459func (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
2518func (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.
2532func (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
2539const 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
2565func (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
2682func (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.
2696func (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//
2720func (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.
2731func (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
2755const 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
2781func (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
2860func (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.
2874func (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//
2898func (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.
2909func (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
2933const 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
2959func (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
3033func (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.
3047func (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
3054const 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
3080func (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
3147func (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.
3161func (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
3168const 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
3194func (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
3236func (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.
3250func (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
3257const 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
3283func (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
3354func (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.
3368func (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
3375const 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
3401func (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
3468func (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.
3482func (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
3489const 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
3515func (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
3578func (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.
3592func (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
3599const 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
3625func (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
3685func (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.
3699func (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//
3723func (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.
3734func (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
3758const 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
3784func (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
3867func (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.
3881func (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//
3905func (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.
3916func (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
3940const 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
3966func (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
4066func (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.
4080func (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//
4104func (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.
4115func (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
4139const 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
4165func (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
4232func (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.
4246func (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
4253const 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
4279func (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
4369func (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.
4383func (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//
4407func (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.
4418func (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
4442const 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
4468func (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
4547func (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.
4561func (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
4568const 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
4594func (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
4668func (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.
4682func (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
4689const 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
4715func (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
4788func (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.
4802func (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
4809const 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
4835func (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
4948func (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.
4962func (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//
4986func (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.
4997func (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
5021const 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
5047func (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
5134func (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.
5148func (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
5155const 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
5181func (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
5237func (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.
5251func (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
5258const 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
5284func (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
5348func (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.
5362func (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
5369const 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
5395func (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
5459func (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.
5473func (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
5480const 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
5506func (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
5569func (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.
5583func (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
5590const 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
5616func (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
5673func (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.
5687func (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
5694const 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
5720func (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
5763func (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.
5777func (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//
5801func (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.
5812func (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
5836const 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
5862func (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
5931func (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.
5945func (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//
5969func (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.
5980func (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
6004const 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
6030func (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
6096func (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.
6110func (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//
6134func (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.
6145func (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
6169const 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
6195func (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
6276func (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.
6290func (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//
6314func (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.
6325func (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
6349const 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
6375func (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
6419func (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.
6433func (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//
6457func (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.
6468func (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
6492const 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
6518func (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
6587func (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.
6601func (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//
6625func (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.
6636func (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
6660const 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
6686func (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
6739func (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.
6753func (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
6760const 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
6786func (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
6884func (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.
6898func (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
6905const 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
6931func (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
7103func (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.
7117func (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
7124const 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
7150func (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
7322func (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.
7336func (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
7343const 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
7369func (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
7473func (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.
7487func (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
7494const 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
7520func (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
7695func (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.
7709func (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
7716const 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
7742func (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
7918func (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.
7932func (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
7939const 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
7965func (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
8046func (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.
8060func (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
8067const 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
8093func (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
8209func (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.
8223func (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
8230const 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
8256func (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
8389func (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.
8403func (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
8410const 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
8436func (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
8498func (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.
8512func (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
8519const 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
8545func (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
8603func (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.
8617func (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
8624const 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
8650func (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
8803func (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.
8817func (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
8824const 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
8850func (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
8953func (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.
8967func (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
8974const 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
9000func (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
9068func (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.
9082func (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
9089const 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
9115func (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
9221func (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.
9235func (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
9242const 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
9268func (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
9336func (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.
9350func (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
9357const 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
9383func (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
9437func (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.
9451func (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
9458const 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
9484func (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
9531func (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.
9545func (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
9552const 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
9578func (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
9625func (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.
9639func (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
9646const 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
9672func (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
9727func (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.
9741func (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
9748const 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
9774func (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
9845func (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.
9859func (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
9866const 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
9892func (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
9976func (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.
9990func (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
9997const 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
10023func (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
10110func (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.
10124func (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
10131const 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
10157func (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
10205func (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.
10219func (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
10226const 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
10252func (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
10319func (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.
10333func (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
10340const 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
10366func (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
10417func (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.
10431func (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
10438const 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
10464func (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
10531func (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.
10545func (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
10552const 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
10578func (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
10629func (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.
10643func (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.
10651type 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
10659func (s ActorDoesNotExistException) String() string {
10660	return awsutil.Prettify(s)
10661}
10662
10663// GoString returns the string representation
10664func (s ActorDoesNotExistException) GoString() string {
10665	return s.String()
10666}
10667
10668func newErrorActorDoesNotExistException(v protocol.ResponseMetadata) error {
10669	return &ActorDoesNotExistException{
10670		RespMetadata: v,
10671	}
10672}
10673
10674// Code returns the exception type name.
10675func (s *ActorDoesNotExistException) Code() string {
10676	return "ActorDoesNotExistException"
10677}
10678
10679// Message returns the exception's message.
10680func (s *ActorDoesNotExistException) Message() string {
10681	if s.Message_ != nil {
10682		return *s.Message_
10683	}
10684	return ""
10685}
10686
10687// OrigErr always returns nil, satisfies awserr.Error interface.
10688func (s *ActorDoesNotExistException) OrigErr() error {
10689	return nil
10690}
10691
10692func (s *ActorDoesNotExistException) Error() string {
10693	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
10694}
10695
10696// Status code returns the HTTP status code for the request's response error.
10697func (s *ActorDoesNotExistException) StatusCode() int {
10698	return s.RespMetadata.StatusCode
10699}
10700
10701// RequestID returns the service's response RequestID for request.
10702func (s *ActorDoesNotExistException) RequestID() string {
10703	return s.RespMetadata.RequestID
10704}
10705
10706// Returns information about a specific approval on a pull request.
10707type Approval struct {
10708	_ struct{} `type:"structure"`
10709
10710	// The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
10711	ApprovalState *string `locationName:"approvalState" type:"string" enum:"ApprovalState"`
10712
10713	// The Amazon Resource Name (ARN) of the user.
10714	UserArn *string `locationName:"userArn" type:"string"`
10715}
10716
10717// String returns the string representation
10718func (s Approval) String() string {
10719	return awsutil.Prettify(s)
10720}
10721
10722// GoString returns the string representation
10723func (s Approval) GoString() string {
10724	return s.String()
10725}
10726
10727// SetApprovalState sets the ApprovalState field's value.
10728func (s *Approval) SetApprovalState(v string) *Approval {
10729	s.ApprovalState = &v
10730	return s
10731}
10732
10733// SetUserArn sets the UserArn field's value.
10734func (s *Approval) SetUserArn(v string) *Approval {
10735	s.UserArn = &v
10736	return s
10737}
10738
10739// Returns information about an approval rule.
10740type ApprovalRule struct {
10741	_ struct{} `type:"structure"`
10742
10743	// The content of the approval rule.
10744	ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string"`
10745
10746	// The system-generated ID of the approval rule.
10747	ApprovalRuleId *string `locationName:"approvalRuleId" type:"string"`
10748
10749	// The name of the approval rule.
10750	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string"`
10751
10752	// The date the approval rule was created, in timestamp format.
10753	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
10754
10755	// The date the approval rule was most recently changed, in timestamp format.
10756	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
10757
10758	// The Amazon Resource Name (ARN) of the user who made the most recent changes
10759	// to the approval rule.
10760	LastModifiedUser *string `locationName:"lastModifiedUser" type:"string"`
10761
10762	// The approval rule template used to create the rule.
10763	OriginApprovalRuleTemplate *OriginApprovalRuleTemplate `locationName:"originApprovalRuleTemplate" type:"structure"`
10764
10765	// The SHA-256 hash signature for the content of the approval rule.
10766	RuleContentSha256 *string `locationName:"ruleContentSha256" type:"string"`
10767}
10768
10769// String returns the string representation
10770func (s ApprovalRule) String() string {
10771	return awsutil.Prettify(s)
10772}
10773
10774// GoString returns the string representation
10775func (s ApprovalRule) GoString() string {
10776	return s.String()
10777}
10778
10779// SetApprovalRuleContent sets the ApprovalRuleContent field's value.
10780func (s *ApprovalRule) SetApprovalRuleContent(v string) *ApprovalRule {
10781	s.ApprovalRuleContent = &v
10782	return s
10783}
10784
10785// SetApprovalRuleId sets the ApprovalRuleId field's value.
10786func (s *ApprovalRule) SetApprovalRuleId(v string) *ApprovalRule {
10787	s.ApprovalRuleId = &v
10788	return s
10789}
10790
10791// SetApprovalRuleName sets the ApprovalRuleName field's value.
10792func (s *ApprovalRule) SetApprovalRuleName(v string) *ApprovalRule {
10793	s.ApprovalRuleName = &v
10794	return s
10795}
10796
10797// SetCreationDate sets the CreationDate field's value.
10798func (s *ApprovalRule) SetCreationDate(v time.Time) *ApprovalRule {
10799	s.CreationDate = &v
10800	return s
10801}
10802
10803// SetLastModifiedDate sets the LastModifiedDate field's value.
10804func (s *ApprovalRule) SetLastModifiedDate(v time.Time) *ApprovalRule {
10805	s.LastModifiedDate = &v
10806	return s
10807}
10808
10809// SetLastModifiedUser sets the LastModifiedUser field's value.
10810func (s *ApprovalRule) SetLastModifiedUser(v string) *ApprovalRule {
10811	s.LastModifiedUser = &v
10812	return s
10813}
10814
10815// SetOriginApprovalRuleTemplate sets the OriginApprovalRuleTemplate field's value.
10816func (s *ApprovalRule) SetOriginApprovalRuleTemplate(v *OriginApprovalRuleTemplate) *ApprovalRule {
10817	s.OriginApprovalRuleTemplate = v
10818	return s
10819}
10820
10821// SetRuleContentSha256 sets the RuleContentSha256 field's value.
10822func (s *ApprovalRule) SetRuleContentSha256(v string) *ApprovalRule {
10823	s.RuleContentSha256 = &v
10824	return s
10825}
10826
10827// The content for the approval rule is empty. You must provide some content
10828// for an approval rule. The content cannot be null.
10829type ApprovalRuleContentRequiredException struct {
10830	_            struct{}                  `type:"structure"`
10831	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
10832
10833	Message_ *string `locationName:"message" type:"string"`
10834}
10835
10836// String returns the string representation
10837func (s ApprovalRuleContentRequiredException) String() string {
10838	return awsutil.Prettify(s)
10839}
10840
10841// GoString returns the string representation
10842func (s ApprovalRuleContentRequiredException) GoString() string {
10843	return s.String()
10844}
10845
10846func newErrorApprovalRuleContentRequiredException(v protocol.ResponseMetadata) error {
10847	return &ApprovalRuleContentRequiredException{
10848		RespMetadata: v,
10849	}
10850}
10851
10852// Code returns the exception type name.
10853func (s *ApprovalRuleContentRequiredException) Code() string {
10854	return "ApprovalRuleContentRequiredException"
10855}
10856
10857// Message returns the exception's message.
10858func (s *ApprovalRuleContentRequiredException) Message() string {
10859	if s.Message_ != nil {
10860		return *s.Message_
10861	}
10862	return ""
10863}
10864
10865// OrigErr always returns nil, satisfies awserr.Error interface.
10866func (s *ApprovalRuleContentRequiredException) OrigErr() error {
10867	return nil
10868}
10869
10870func (s *ApprovalRuleContentRequiredException) Error() string {
10871	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
10872}
10873
10874// Status code returns the HTTP status code for the request's response error.
10875func (s *ApprovalRuleContentRequiredException) StatusCode() int {
10876	return s.RespMetadata.StatusCode
10877}
10878
10879// RequestID returns the service's response RequestID for request.
10880func (s *ApprovalRuleContentRequiredException) RequestID() string {
10881	return s.RespMetadata.RequestID
10882}
10883
10884// The specified approval rule does not exist.
10885type ApprovalRuleDoesNotExistException struct {
10886	_            struct{}                  `type:"structure"`
10887	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
10888
10889	Message_ *string `locationName:"message" type:"string"`
10890}
10891
10892// String returns the string representation
10893func (s ApprovalRuleDoesNotExistException) String() string {
10894	return awsutil.Prettify(s)
10895}
10896
10897// GoString returns the string representation
10898func (s ApprovalRuleDoesNotExistException) GoString() string {
10899	return s.String()
10900}
10901
10902func newErrorApprovalRuleDoesNotExistException(v protocol.ResponseMetadata) error {
10903	return &ApprovalRuleDoesNotExistException{
10904		RespMetadata: v,
10905	}
10906}
10907
10908// Code returns the exception type name.
10909func (s *ApprovalRuleDoesNotExistException) Code() string {
10910	return "ApprovalRuleDoesNotExistException"
10911}
10912
10913// Message returns the exception's message.
10914func (s *ApprovalRuleDoesNotExistException) Message() string {
10915	if s.Message_ != nil {
10916		return *s.Message_
10917	}
10918	return ""
10919}
10920
10921// OrigErr always returns nil, satisfies awserr.Error interface.
10922func (s *ApprovalRuleDoesNotExistException) OrigErr() error {
10923	return nil
10924}
10925
10926func (s *ApprovalRuleDoesNotExistException) Error() string {
10927	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
10928}
10929
10930// Status code returns the HTTP status code for the request's response error.
10931func (s *ApprovalRuleDoesNotExistException) StatusCode() int {
10932	return s.RespMetadata.StatusCode
10933}
10934
10935// RequestID returns the service's response RequestID for request.
10936func (s *ApprovalRuleDoesNotExistException) RequestID() string {
10937	return s.RespMetadata.RequestID
10938}
10939
10940// Returns information about an event for an approval rule.
10941type ApprovalRuleEventMetadata struct {
10942	_ struct{} `type:"structure"`
10943
10944	// The content of the approval rule.
10945	ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string"`
10946
10947	// The system-generated ID of the approval rule.
10948	ApprovalRuleId *string `locationName:"approvalRuleId" type:"string"`
10949
10950	// The name of the approval rule.
10951	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string"`
10952}
10953
10954// String returns the string representation
10955func (s ApprovalRuleEventMetadata) String() string {
10956	return awsutil.Prettify(s)
10957}
10958
10959// GoString returns the string representation
10960func (s ApprovalRuleEventMetadata) GoString() string {
10961	return s.String()
10962}
10963
10964// SetApprovalRuleContent sets the ApprovalRuleContent field's value.
10965func (s *ApprovalRuleEventMetadata) SetApprovalRuleContent(v string) *ApprovalRuleEventMetadata {
10966	s.ApprovalRuleContent = &v
10967	return s
10968}
10969
10970// SetApprovalRuleId sets the ApprovalRuleId field's value.
10971func (s *ApprovalRuleEventMetadata) SetApprovalRuleId(v string) *ApprovalRuleEventMetadata {
10972	s.ApprovalRuleId = &v
10973	return s
10974}
10975
10976// SetApprovalRuleName sets the ApprovalRuleName field's value.
10977func (s *ApprovalRuleEventMetadata) SetApprovalRuleName(v string) *ApprovalRuleEventMetadata {
10978	s.ApprovalRuleName = &v
10979	return s
10980}
10981
10982// An approval rule with that name already exists. Approval rule names must
10983// be unique within the scope of a pull request.
10984type ApprovalRuleNameAlreadyExistsException struct {
10985	_            struct{}                  `type:"structure"`
10986	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
10987
10988	Message_ *string `locationName:"message" type:"string"`
10989}
10990
10991// String returns the string representation
10992func (s ApprovalRuleNameAlreadyExistsException) String() string {
10993	return awsutil.Prettify(s)
10994}
10995
10996// GoString returns the string representation
10997func (s ApprovalRuleNameAlreadyExistsException) GoString() string {
10998	return s.String()
10999}
11000
11001func newErrorApprovalRuleNameAlreadyExistsException(v protocol.ResponseMetadata) error {
11002	return &ApprovalRuleNameAlreadyExistsException{
11003		RespMetadata: v,
11004	}
11005}
11006
11007// Code returns the exception type name.
11008func (s *ApprovalRuleNameAlreadyExistsException) Code() string {
11009	return "ApprovalRuleNameAlreadyExistsException"
11010}
11011
11012// Message returns the exception's message.
11013func (s *ApprovalRuleNameAlreadyExistsException) Message() string {
11014	if s.Message_ != nil {
11015		return *s.Message_
11016	}
11017	return ""
11018}
11019
11020// OrigErr always returns nil, satisfies awserr.Error interface.
11021func (s *ApprovalRuleNameAlreadyExistsException) OrigErr() error {
11022	return nil
11023}
11024
11025func (s *ApprovalRuleNameAlreadyExistsException) Error() string {
11026	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11027}
11028
11029// Status code returns the HTTP status code for the request's response error.
11030func (s *ApprovalRuleNameAlreadyExistsException) StatusCode() int {
11031	return s.RespMetadata.StatusCode
11032}
11033
11034// RequestID returns the service's response RequestID for request.
11035func (s *ApprovalRuleNameAlreadyExistsException) RequestID() string {
11036	return s.RespMetadata.RequestID
11037}
11038
11039// An approval rule name is required, but was not specified.
11040type ApprovalRuleNameRequiredException struct {
11041	_            struct{}                  `type:"structure"`
11042	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11043
11044	Message_ *string `locationName:"message" type:"string"`
11045}
11046
11047// String returns the string representation
11048func (s ApprovalRuleNameRequiredException) String() string {
11049	return awsutil.Prettify(s)
11050}
11051
11052// GoString returns the string representation
11053func (s ApprovalRuleNameRequiredException) GoString() string {
11054	return s.String()
11055}
11056
11057func newErrorApprovalRuleNameRequiredException(v protocol.ResponseMetadata) error {
11058	return &ApprovalRuleNameRequiredException{
11059		RespMetadata: v,
11060	}
11061}
11062
11063// Code returns the exception type name.
11064func (s *ApprovalRuleNameRequiredException) Code() string {
11065	return "ApprovalRuleNameRequiredException"
11066}
11067
11068// Message returns the exception's message.
11069func (s *ApprovalRuleNameRequiredException) 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.
11077func (s *ApprovalRuleNameRequiredException) OrigErr() error {
11078	return nil
11079}
11080
11081func (s *ApprovalRuleNameRequiredException) 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.
11086func (s *ApprovalRuleNameRequiredException) StatusCode() int {
11087	return s.RespMetadata.StatusCode
11088}
11089
11090// RequestID returns the service's response RequestID for request.
11091func (s *ApprovalRuleNameRequiredException) RequestID() string {
11092	return s.RespMetadata.RequestID
11093}
11094
11095// Returns information about an override event for approval rules for a pull
11096// request.
11097type ApprovalRuleOverriddenEventMetadata struct {
11098	_ struct{} `type:"structure"`
11099
11100	// The status of the override event.
11101	OverrideStatus *string `locationName:"overrideStatus" type:"string" enum:"OverrideStatus"`
11102
11103	// The revision ID of the pull request when the override event occurred.
11104	RevisionId *string `locationName:"revisionId" type:"string"`
11105}
11106
11107// String returns the string representation
11108func (s ApprovalRuleOverriddenEventMetadata) String() string {
11109	return awsutil.Prettify(s)
11110}
11111
11112// GoString returns the string representation
11113func (s ApprovalRuleOverriddenEventMetadata) GoString() string {
11114	return s.String()
11115}
11116
11117// SetOverrideStatus sets the OverrideStatus field's value.
11118func (s *ApprovalRuleOverriddenEventMetadata) SetOverrideStatus(v string) *ApprovalRuleOverriddenEventMetadata {
11119	s.OverrideStatus = &v
11120	return s
11121}
11122
11123// SetRevisionId sets the RevisionId field's value.
11124func (s *ApprovalRuleOverriddenEventMetadata) SetRevisionId(v string) *ApprovalRuleOverriddenEventMetadata {
11125	s.RevisionId = &v
11126	return s
11127}
11128
11129// Returns information about an approval rule template.
11130type ApprovalRuleTemplate struct {
11131	_ struct{} `type:"structure"`
11132
11133	// The content of the approval rule template.
11134	ApprovalRuleTemplateContent *string `locationName:"approvalRuleTemplateContent" min:"1" type:"string"`
11135
11136	// The description of the approval rule template.
11137	ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string"`
11138
11139	// The system-generated ID of the approval rule template.
11140	ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string"`
11141
11142	// The name of the approval rule template.
11143	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string"`
11144
11145	// The date the approval rule template was created, in timestamp format.
11146	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
11147
11148	// The date the approval rule template was most recently changed, in timestamp
11149	// format.
11150	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
11151
11152	// The Amazon Resource Name (ARN) of the user who made the most recent changes
11153	// to the approval rule template.
11154	LastModifiedUser *string `locationName:"lastModifiedUser" type:"string"`
11155
11156	// The SHA-256 hash signature for the content of the approval rule template.
11157	RuleContentSha256 *string `locationName:"ruleContentSha256" type:"string"`
11158}
11159
11160// String returns the string representation
11161func (s ApprovalRuleTemplate) String() string {
11162	return awsutil.Prettify(s)
11163}
11164
11165// GoString returns the string representation
11166func (s ApprovalRuleTemplate) GoString() string {
11167	return s.String()
11168}
11169
11170// SetApprovalRuleTemplateContent sets the ApprovalRuleTemplateContent field's value.
11171func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateContent(v string) *ApprovalRuleTemplate {
11172	s.ApprovalRuleTemplateContent = &v
11173	return s
11174}
11175
11176// SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value.
11177func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateDescription(v string) *ApprovalRuleTemplate {
11178	s.ApprovalRuleTemplateDescription = &v
11179	return s
11180}
11181
11182// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value.
11183func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateId(v string) *ApprovalRuleTemplate {
11184	s.ApprovalRuleTemplateId = &v
11185	return s
11186}
11187
11188// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
11189func (s *ApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *ApprovalRuleTemplate {
11190	s.ApprovalRuleTemplateName = &v
11191	return s
11192}
11193
11194// SetCreationDate sets the CreationDate field's value.
11195func (s *ApprovalRuleTemplate) SetCreationDate(v time.Time) *ApprovalRuleTemplate {
11196	s.CreationDate = &v
11197	return s
11198}
11199
11200// SetLastModifiedDate sets the LastModifiedDate field's value.
11201func (s *ApprovalRuleTemplate) SetLastModifiedDate(v time.Time) *ApprovalRuleTemplate {
11202	s.LastModifiedDate = &v
11203	return s
11204}
11205
11206// SetLastModifiedUser sets the LastModifiedUser field's value.
11207func (s *ApprovalRuleTemplate) SetLastModifiedUser(v string) *ApprovalRuleTemplate {
11208	s.LastModifiedUser = &v
11209	return s
11210}
11211
11212// SetRuleContentSha256 sets the RuleContentSha256 field's value.
11213func (s *ApprovalRuleTemplate) SetRuleContentSha256(v string) *ApprovalRuleTemplate {
11214	s.RuleContentSha256 = &v
11215	return s
11216}
11217
11218// The content for the approval rule template is empty. You must provide some
11219// content for an approval rule template. The content cannot be null.
11220type ApprovalRuleTemplateContentRequiredException struct {
11221	_            struct{}                  `type:"structure"`
11222	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11223
11224	Message_ *string `locationName:"message" type:"string"`
11225}
11226
11227// String returns the string representation
11228func (s ApprovalRuleTemplateContentRequiredException) String() string {
11229	return awsutil.Prettify(s)
11230}
11231
11232// GoString returns the string representation
11233func (s ApprovalRuleTemplateContentRequiredException) GoString() string {
11234	return s.String()
11235}
11236
11237func newErrorApprovalRuleTemplateContentRequiredException(v protocol.ResponseMetadata) error {
11238	return &ApprovalRuleTemplateContentRequiredException{
11239		RespMetadata: v,
11240	}
11241}
11242
11243// Code returns the exception type name.
11244func (s *ApprovalRuleTemplateContentRequiredException) Code() string {
11245	return "ApprovalRuleTemplateContentRequiredException"
11246}
11247
11248// Message returns the exception's message.
11249func (s *ApprovalRuleTemplateContentRequiredException) Message() string {
11250	if s.Message_ != nil {
11251		return *s.Message_
11252	}
11253	return ""
11254}
11255
11256// OrigErr always returns nil, satisfies awserr.Error interface.
11257func (s *ApprovalRuleTemplateContentRequiredException) OrigErr() error {
11258	return nil
11259}
11260
11261func (s *ApprovalRuleTemplateContentRequiredException) Error() string {
11262	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11263}
11264
11265// Status code returns the HTTP status code for the request's response error.
11266func (s *ApprovalRuleTemplateContentRequiredException) StatusCode() int {
11267	return s.RespMetadata.StatusCode
11268}
11269
11270// RequestID returns the service's response RequestID for request.
11271func (s *ApprovalRuleTemplateContentRequiredException) RequestID() string {
11272	return s.RespMetadata.RequestID
11273}
11274
11275// The specified approval rule template does not exist. Verify that the name
11276// is correct and that you are signed in to the AWS Region where the template
11277// was created, and then try again.
11278type ApprovalRuleTemplateDoesNotExistException struct {
11279	_            struct{}                  `type:"structure"`
11280	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11281
11282	Message_ *string `locationName:"message" type:"string"`
11283}
11284
11285// String returns the string representation
11286func (s ApprovalRuleTemplateDoesNotExistException) String() string {
11287	return awsutil.Prettify(s)
11288}
11289
11290// GoString returns the string representation
11291func (s ApprovalRuleTemplateDoesNotExistException) GoString() string {
11292	return s.String()
11293}
11294
11295func newErrorApprovalRuleTemplateDoesNotExistException(v protocol.ResponseMetadata) error {
11296	return &ApprovalRuleTemplateDoesNotExistException{
11297		RespMetadata: v,
11298	}
11299}
11300
11301// Code returns the exception type name.
11302func (s *ApprovalRuleTemplateDoesNotExistException) Code() string {
11303	return "ApprovalRuleTemplateDoesNotExistException"
11304}
11305
11306// Message returns the exception's message.
11307func (s *ApprovalRuleTemplateDoesNotExistException) Message() string {
11308	if s.Message_ != nil {
11309		return *s.Message_
11310	}
11311	return ""
11312}
11313
11314// OrigErr always returns nil, satisfies awserr.Error interface.
11315func (s *ApprovalRuleTemplateDoesNotExistException) OrigErr() error {
11316	return nil
11317}
11318
11319func (s *ApprovalRuleTemplateDoesNotExistException) Error() string {
11320	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11321}
11322
11323// Status code returns the HTTP status code for the request's response error.
11324func (s *ApprovalRuleTemplateDoesNotExistException) StatusCode() int {
11325	return s.RespMetadata.StatusCode
11326}
11327
11328// RequestID returns the service's response RequestID for request.
11329func (s *ApprovalRuleTemplateDoesNotExistException) RequestID() string {
11330	return s.RespMetadata.RequestID
11331}
11332
11333// The approval rule template is associated with one or more repositories. You
11334// cannot delete a template that is associated with a repository. Remove all
11335// associations, and then try again.
11336type ApprovalRuleTemplateInUseException struct {
11337	_            struct{}                  `type:"structure"`
11338	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11339
11340	Message_ *string `locationName:"message" type:"string"`
11341}
11342
11343// String returns the string representation
11344func (s ApprovalRuleTemplateInUseException) String() string {
11345	return awsutil.Prettify(s)
11346}
11347
11348// GoString returns the string representation
11349func (s ApprovalRuleTemplateInUseException) GoString() string {
11350	return s.String()
11351}
11352
11353func newErrorApprovalRuleTemplateInUseException(v protocol.ResponseMetadata) error {
11354	return &ApprovalRuleTemplateInUseException{
11355		RespMetadata: v,
11356	}
11357}
11358
11359// Code returns the exception type name.
11360func (s *ApprovalRuleTemplateInUseException) Code() string {
11361	return "ApprovalRuleTemplateInUseException"
11362}
11363
11364// Message returns the exception's message.
11365func (s *ApprovalRuleTemplateInUseException) Message() string {
11366	if s.Message_ != nil {
11367		return *s.Message_
11368	}
11369	return ""
11370}
11371
11372// OrigErr always returns nil, satisfies awserr.Error interface.
11373func (s *ApprovalRuleTemplateInUseException) OrigErr() error {
11374	return nil
11375}
11376
11377func (s *ApprovalRuleTemplateInUseException) Error() string {
11378	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11379}
11380
11381// Status code returns the HTTP status code for the request's response error.
11382func (s *ApprovalRuleTemplateInUseException) StatusCode() int {
11383	return s.RespMetadata.StatusCode
11384}
11385
11386// RequestID returns the service's response RequestID for request.
11387func (s *ApprovalRuleTemplateInUseException) RequestID() string {
11388	return s.RespMetadata.RequestID
11389}
11390
11391// You cannot create an approval rule template with that name because a template
11392// with that name already exists in this AWS Region for your AWS account. Approval
11393// rule template names must be unique.
11394type ApprovalRuleTemplateNameAlreadyExistsException struct {
11395	_            struct{}                  `type:"structure"`
11396	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11397
11398	Message_ *string `locationName:"message" type:"string"`
11399}
11400
11401// String returns the string representation
11402func (s ApprovalRuleTemplateNameAlreadyExistsException) String() string {
11403	return awsutil.Prettify(s)
11404}
11405
11406// GoString returns the string representation
11407func (s ApprovalRuleTemplateNameAlreadyExistsException) GoString() string {
11408	return s.String()
11409}
11410
11411func newErrorApprovalRuleTemplateNameAlreadyExistsException(v protocol.ResponseMetadata) error {
11412	return &ApprovalRuleTemplateNameAlreadyExistsException{
11413		RespMetadata: v,
11414	}
11415}
11416
11417// Code returns the exception type name.
11418func (s *ApprovalRuleTemplateNameAlreadyExistsException) Code() string {
11419	return "ApprovalRuleTemplateNameAlreadyExistsException"
11420}
11421
11422// Message returns the exception's message.
11423func (s *ApprovalRuleTemplateNameAlreadyExistsException) Message() string {
11424	if s.Message_ != nil {
11425		return *s.Message_
11426	}
11427	return ""
11428}
11429
11430// OrigErr always returns nil, satisfies awserr.Error interface.
11431func (s *ApprovalRuleTemplateNameAlreadyExistsException) OrigErr() error {
11432	return nil
11433}
11434
11435func (s *ApprovalRuleTemplateNameAlreadyExistsException) Error() string {
11436	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11437}
11438
11439// Status code returns the HTTP status code for the request's response error.
11440func (s *ApprovalRuleTemplateNameAlreadyExistsException) StatusCode() int {
11441	return s.RespMetadata.StatusCode
11442}
11443
11444// RequestID returns the service's response RequestID for request.
11445func (s *ApprovalRuleTemplateNameAlreadyExistsException) RequestID() string {
11446	return s.RespMetadata.RequestID
11447}
11448
11449// An approval rule template name is required, but was not specified.
11450type ApprovalRuleTemplateNameRequiredException struct {
11451	_            struct{}                  `type:"structure"`
11452	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11453
11454	Message_ *string `locationName:"message" type:"string"`
11455}
11456
11457// String returns the string representation
11458func (s ApprovalRuleTemplateNameRequiredException) String() string {
11459	return awsutil.Prettify(s)
11460}
11461
11462// GoString returns the string representation
11463func (s ApprovalRuleTemplateNameRequiredException) GoString() string {
11464	return s.String()
11465}
11466
11467func newErrorApprovalRuleTemplateNameRequiredException(v protocol.ResponseMetadata) error {
11468	return &ApprovalRuleTemplateNameRequiredException{
11469		RespMetadata: v,
11470	}
11471}
11472
11473// Code returns the exception type name.
11474func (s *ApprovalRuleTemplateNameRequiredException) Code() string {
11475	return "ApprovalRuleTemplateNameRequiredException"
11476}
11477
11478// Message returns the exception's message.
11479func (s *ApprovalRuleTemplateNameRequiredException) Message() string {
11480	if s.Message_ != nil {
11481		return *s.Message_
11482	}
11483	return ""
11484}
11485
11486// OrigErr always returns nil, satisfies awserr.Error interface.
11487func (s *ApprovalRuleTemplateNameRequiredException) OrigErr() error {
11488	return nil
11489}
11490
11491func (s *ApprovalRuleTemplateNameRequiredException) Error() string {
11492	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11493}
11494
11495// Status code returns the HTTP status code for the request's response error.
11496func (s *ApprovalRuleTemplateNameRequiredException) StatusCode() int {
11497	return s.RespMetadata.StatusCode
11498}
11499
11500// RequestID returns the service's response RequestID for request.
11501func (s *ApprovalRuleTemplateNameRequiredException) RequestID() string {
11502	return s.RespMetadata.RequestID
11503}
11504
11505// Returns information about a change in the approval state for a pull request.
11506type ApprovalStateChangedEventMetadata struct {
11507	_ struct{} `type:"structure"`
11508
11509	// The approval status for the pull request.
11510	ApprovalStatus *string `locationName:"approvalStatus" type:"string" enum:"ApprovalState"`
11511
11512	// The revision ID of the pull request when the approval state changed.
11513	RevisionId *string `locationName:"revisionId" type:"string"`
11514}
11515
11516// String returns the string representation
11517func (s ApprovalStateChangedEventMetadata) String() string {
11518	return awsutil.Prettify(s)
11519}
11520
11521// GoString returns the string representation
11522func (s ApprovalStateChangedEventMetadata) GoString() string {
11523	return s.String()
11524}
11525
11526// SetApprovalStatus sets the ApprovalStatus field's value.
11527func (s *ApprovalStateChangedEventMetadata) SetApprovalStatus(v string) *ApprovalStateChangedEventMetadata {
11528	s.ApprovalStatus = &v
11529	return s
11530}
11531
11532// SetRevisionId sets the RevisionId field's value.
11533func (s *ApprovalStateChangedEventMetadata) SetRevisionId(v string) *ApprovalStateChangedEventMetadata {
11534	s.RevisionId = &v
11535	return s
11536}
11537
11538// An approval state is required, but was not specified.
11539type ApprovalStateRequiredException struct {
11540	_            struct{}                  `type:"structure"`
11541	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
11542
11543	Message_ *string `locationName:"message" type:"string"`
11544}
11545
11546// String returns the string representation
11547func (s ApprovalStateRequiredException) String() string {
11548	return awsutil.Prettify(s)
11549}
11550
11551// GoString returns the string representation
11552func (s ApprovalStateRequiredException) GoString() string {
11553	return s.String()
11554}
11555
11556func newErrorApprovalStateRequiredException(v protocol.ResponseMetadata) error {
11557	return &ApprovalStateRequiredException{
11558		RespMetadata: v,
11559	}
11560}
11561
11562// Code returns the exception type name.
11563func (s *ApprovalStateRequiredException) Code() string {
11564	return "ApprovalStateRequiredException"
11565}
11566
11567// Message returns the exception's message.
11568func (s *ApprovalStateRequiredException) Message() string {
11569	if s.Message_ != nil {
11570		return *s.Message_
11571	}
11572	return ""
11573}
11574
11575// OrigErr always returns nil, satisfies awserr.Error interface.
11576func (s *ApprovalStateRequiredException) OrigErr() error {
11577	return nil
11578}
11579
11580func (s *ApprovalStateRequiredException) Error() string {
11581	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11582}
11583
11584// Status code returns the HTTP status code for the request's response error.
11585func (s *ApprovalStateRequiredException) StatusCode() int {
11586	return s.RespMetadata.StatusCode
11587}
11588
11589// RequestID returns the service's response RequestID for request.
11590func (s *ApprovalStateRequiredException) RequestID() string {
11591	return s.RespMetadata.RequestID
11592}
11593
11594type AssociateApprovalRuleTemplateWithRepositoryInput struct {
11595	_ struct{} `type:"structure"`
11596
11597	// The name for the approval rule template.
11598	//
11599	// ApprovalRuleTemplateName is a required field
11600	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
11601
11602	// The name of the repository that you want to associate with the template.
11603	//
11604	// RepositoryName is a required field
11605	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
11606}
11607
11608// String returns the string representation
11609func (s AssociateApprovalRuleTemplateWithRepositoryInput) String() string {
11610	return awsutil.Prettify(s)
11611}
11612
11613// GoString returns the string representation
11614func (s AssociateApprovalRuleTemplateWithRepositoryInput) GoString() string {
11615	return s.String()
11616}
11617
11618// Validate inspects the fields of the type to determine if they are valid.
11619func (s *AssociateApprovalRuleTemplateWithRepositoryInput) Validate() error {
11620	invalidParams := request.ErrInvalidParams{Context: "AssociateApprovalRuleTemplateWithRepositoryInput"}
11621	if s.ApprovalRuleTemplateName == nil {
11622		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
11623	}
11624	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
11625		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
11626	}
11627	if s.RepositoryName == nil {
11628		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
11629	}
11630	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
11631		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
11632	}
11633
11634	if invalidParams.Len() > 0 {
11635		return invalidParams
11636	}
11637	return nil
11638}
11639
11640// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
11641func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetApprovalRuleTemplateName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput {
11642	s.ApprovalRuleTemplateName = &v
11643	return s
11644}
11645
11646// SetRepositoryName sets the RepositoryName field's value.
11647func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetRepositoryName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput {
11648	s.RepositoryName = &v
11649	return s
11650}
11651
11652type AssociateApprovalRuleTemplateWithRepositoryOutput struct {
11653	_ struct{} `type:"structure"`
11654}
11655
11656// String returns the string representation
11657func (s AssociateApprovalRuleTemplateWithRepositoryOutput) String() string {
11658	return awsutil.Prettify(s)
11659}
11660
11661// GoString returns the string representation
11662func (s AssociateApprovalRuleTemplateWithRepositoryOutput) GoString() string {
11663	return s.String()
11664}
11665
11666// The specified Amazon Resource Name (ARN) does not exist in the AWS account.
11667type AuthorDoesNotExistException 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
11675func (s AuthorDoesNotExistException) String() string {
11676	return awsutil.Prettify(s)
11677}
11678
11679// GoString returns the string representation
11680func (s AuthorDoesNotExistException) GoString() string {
11681	return s.String()
11682}
11683
11684func newErrorAuthorDoesNotExistException(v protocol.ResponseMetadata) error {
11685	return &AuthorDoesNotExistException{
11686		RespMetadata: v,
11687	}
11688}
11689
11690// Code returns the exception type name.
11691func (s *AuthorDoesNotExistException) Code() string {
11692	return "AuthorDoesNotExistException"
11693}
11694
11695// Message returns the exception's message.
11696func (s *AuthorDoesNotExistException) Message() string {
11697	if s.Message_ != nil {
11698		return *s.Message_
11699	}
11700	return ""
11701}
11702
11703// OrigErr always returns nil, satisfies awserr.Error interface.
11704func (s *AuthorDoesNotExistException) OrigErr() error {
11705	return nil
11706}
11707
11708func (s *AuthorDoesNotExistException) Error() string {
11709	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
11710}
11711
11712// Status code returns the HTTP status code for the request's response error.
11713func (s *AuthorDoesNotExistException) StatusCode() int {
11714	return s.RespMetadata.StatusCode
11715}
11716
11717// RequestID returns the service's response RequestID for request.
11718func (s *AuthorDoesNotExistException) RequestID() string {
11719	return s.RespMetadata.RequestID
11720}
11721
11722// Returns information about errors in a BatchAssociateApprovalRuleTemplateWithRepositories
11723// operation.
11724type BatchAssociateApprovalRuleTemplateWithRepositoriesError struct {
11725	_ struct{} `type:"structure"`
11726
11727	// An error code that specifies whether the repository name was not valid or
11728	// not found.
11729	ErrorCode *string `locationName:"errorCode" type:"string"`
11730
11731	// An error message that provides details about why the repository name was
11732	// not found or not valid.
11733	ErrorMessage *string `locationName:"errorMessage" type:"string"`
11734
11735	// The name of the repository where the association was not made.
11736	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
11737}
11738
11739// String returns the string representation
11740func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) String() string {
11741	return awsutil.Prettify(s)
11742}
11743
11744// GoString returns the string representation
11745func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) GoString() string {
11746	return s.String()
11747}
11748
11749// SetErrorCode sets the ErrorCode field's value.
11750func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorCode(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError {
11751	s.ErrorCode = &v
11752	return s
11753}
11754
11755// SetErrorMessage sets the ErrorMessage field's value.
11756func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorMessage(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError {
11757	s.ErrorMessage = &v
11758	return s
11759}
11760
11761// SetRepositoryName sets the RepositoryName field's value.
11762func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetRepositoryName(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError {
11763	s.RepositoryName = &v
11764	return s
11765}
11766
11767type BatchAssociateApprovalRuleTemplateWithRepositoriesInput struct {
11768	_ struct{} `type:"structure"`
11769
11770	// The name of the template you want to associate with one or more repositories.
11771	//
11772	// ApprovalRuleTemplateName is a required field
11773	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
11774
11775	// The names of the repositories you want to associate with the template.
11776	//
11777	// The length constraint limit is for each string in the array. The array itself
11778	// can be empty.
11779	//
11780	// RepositoryNames is a required field
11781	RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
11782}
11783
11784// String returns the string representation
11785func (s BatchAssociateApprovalRuleTemplateWithRepositoriesInput) String() string {
11786	return awsutil.Prettify(s)
11787}
11788
11789// GoString returns the string representation
11790func (s BatchAssociateApprovalRuleTemplateWithRepositoriesInput) GoString() string {
11791	return s.String()
11792}
11793
11794// Validate inspects the fields of the type to determine if they are valid.
11795func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) Validate() error {
11796	invalidParams := request.ErrInvalidParams{Context: "BatchAssociateApprovalRuleTemplateWithRepositoriesInput"}
11797	if s.ApprovalRuleTemplateName == nil {
11798		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
11799	}
11800	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
11801		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
11802	}
11803	if s.RepositoryNames == nil {
11804		invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
11805	}
11806
11807	if invalidParams.Len() > 0 {
11808		return invalidParams
11809	}
11810	return nil
11811}
11812
11813// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
11814func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) SetApprovalRuleTemplateName(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesInput {
11815	s.ApprovalRuleTemplateName = &v
11816	return s
11817}
11818
11819// SetRepositoryNames sets the RepositoryNames field's value.
11820func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesInput) SetRepositoryNames(v []*string) *BatchAssociateApprovalRuleTemplateWithRepositoriesInput {
11821	s.RepositoryNames = v
11822	return s
11823}
11824
11825type BatchAssociateApprovalRuleTemplateWithRepositoriesOutput struct {
11826	_ struct{} `type:"structure"`
11827
11828	// A list of names of the repositories that have been associated with the template.
11829	//
11830	// AssociatedRepositoryNames is a required field
11831	AssociatedRepositoryNames []*string `locationName:"associatedRepositoryNames" type:"list" required:"true"`
11832
11833	// A list of any errors that might have occurred while attempting to create
11834	// the association between the template and the repositories.
11835	//
11836	// Errors is a required field
11837	Errors []*BatchAssociateApprovalRuleTemplateWithRepositoriesError `locationName:"errors" type:"list" required:"true"`
11838}
11839
11840// String returns the string representation
11841func (s BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) String() string {
11842	return awsutil.Prettify(s)
11843}
11844
11845// GoString returns the string representation
11846func (s BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) GoString() string {
11847	return s.String()
11848}
11849
11850// SetAssociatedRepositoryNames sets the AssociatedRepositoryNames field's value.
11851func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) SetAssociatedRepositoryNames(v []*string) *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput {
11852	s.AssociatedRepositoryNames = v
11853	return s
11854}
11855
11856// SetErrors sets the Errors field's value.
11857func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput) SetErrors(v []*BatchAssociateApprovalRuleTemplateWithRepositoriesError) *BatchAssociateApprovalRuleTemplateWithRepositoriesOutput {
11858	s.Errors = v
11859	return s
11860}
11861
11862// Returns information about errors in a BatchDescribeMergeConflicts operation.
11863type BatchDescribeMergeConflictsError struct {
11864	_ struct{} `type:"structure"`
11865
11866	// The name of the exception.
11867	//
11868	// ExceptionName is a required field
11869	ExceptionName *string `locationName:"exceptionName" type:"string" required:"true"`
11870
11871	// The path to the file.
11872	//
11873	// FilePath is a required field
11874	FilePath *string `locationName:"filePath" type:"string" required:"true"`
11875
11876	// The message provided by the exception.
11877	//
11878	// Message is a required field
11879	Message *string `locationName:"message" type:"string" required:"true"`
11880}
11881
11882// String returns the string representation
11883func (s BatchDescribeMergeConflictsError) String() string {
11884	return awsutil.Prettify(s)
11885}
11886
11887// GoString returns the string representation
11888func (s BatchDescribeMergeConflictsError) GoString() string {
11889	return s.String()
11890}
11891
11892// SetExceptionName sets the ExceptionName field's value.
11893func (s *BatchDescribeMergeConflictsError) SetExceptionName(v string) *BatchDescribeMergeConflictsError {
11894	s.ExceptionName = &v
11895	return s
11896}
11897
11898// SetFilePath sets the FilePath field's value.
11899func (s *BatchDescribeMergeConflictsError) SetFilePath(v string) *BatchDescribeMergeConflictsError {
11900	s.FilePath = &v
11901	return s
11902}
11903
11904// SetMessage sets the Message field's value.
11905func (s *BatchDescribeMergeConflictsError) SetMessage(v string) *BatchDescribeMergeConflictsError {
11906	s.Message = &v
11907	return s
11908}
11909
11910type BatchDescribeMergeConflictsInput struct {
11911	_ struct{} `type:"structure"`
11912
11913	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
11914	// is used, which returns a not-mergeable result if the same file has differences
11915	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
11916	// mergeable if the same file in both branches has differences on the same line.
11917	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
11918
11919	// Specifies which branch to use when resolving conflicts, or whether to attempt
11920	// automatically merging two versions of a file. The default is NONE, which
11921	// requires any conflicts to be resolved manually before the merge operation
11922	// is successful.
11923	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
11924
11925	// The branch, tag, HEAD, or other fully qualified reference used to identify
11926	// a commit (for example, a branch name or a full commit ID).
11927	//
11928	// DestinationCommitSpecifier is a required field
11929	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
11930
11931	// The path of the target files used to describe the conflicts. If not specified,
11932	// the default is all conflict files.
11933	FilePaths []*string `locationName:"filePaths" type:"list"`
11934
11935	// The maximum number of files to include in the output.
11936	MaxConflictFiles *int64 `locationName:"maxConflictFiles" type:"integer"`
11937
11938	// The maximum number of merge hunks to include in the output.
11939	MaxMergeHunks *int64 `locationName:"maxMergeHunks" type:"integer"`
11940
11941	// The merge option or strategy you want to use to merge the code.
11942	//
11943	// MergeOption is a required field
11944	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
11945
11946	// An enumeration token that, when provided in a request, returns the next batch
11947	// of the results.
11948	NextToken *string `locationName:"nextToken" type:"string"`
11949
11950	// The name of the repository that contains the merge conflicts you want to
11951	// review.
11952	//
11953	// RepositoryName is a required field
11954	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
11955
11956	// The branch, tag, HEAD, or other fully qualified reference used to identify
11957	// a commit (for example, a branch name or a full commit ID).
11958	//
11959	// SourceCommitSpecifier is a required field
11960	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
11961}
11962
11963// String returns the string representation
11964func (s BatchDescribeMergeConflictsInput) String() string {
11965	return awsutil.Prettify(s)
11966}
11967
11968// GoString returns the string representation
11969func (s BatchDescribeMergeConflictsInput) GoString() string {
11970	return s.String()
11971}
11972
11973// Validate inspects the fields of the type to determine if they are valid.
11974func (s *BatchDescribeMergeConflictsInput) Validate() error {
11975	invalidParams := request.ErrInvalidParams{Context: "BatchDescribeMergeConflictsInput"}
11976	if s.DestinationCommitSpecifier == nil {
11977		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
11978	}
11979	if s.MergeOption == nil {
11980		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
11981	}
11982	if s.RepositoryName == nil {
11983		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
11984	}
11985	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
11986		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
11987	}
11988	if s.SourceCommitSpecifier == nil {
11989		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
11990	}
11991
11992	if invalidParams.Len() > 0 {
11993		return invalidParams
11994	}
11995	return nil
11996}
11997
11998// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
11999func (s *BatchDescribeMergeConflictsInput) SetConflictDetailLevel(v string) *BatchDescribeMergeConflictsInput {
12000	s.ConflictDetailLevel = &v
12001	return s
12002}
12003
12004// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
12005func (s *BatchDescribeMergeConflictsInput) SetConflictResolutionStrategy(v string) *BatchDescribeMergeConflictsInput {
12006	s.ConflictResolutionStrategy = &v
12007	return s
12008}
12009
12010// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
12011func (s *BatchDescribeMergeConflictsInput) SetDestinationCommitSpecifier(v string) *BatchDescribeMergeConflictsInput {
12012	s.DestinationCommitSpecifier = &v
12013	return s
12014}
12015
12016// SetFilePaths sets the FilePaths field's value.
12017func (s *BatchDescribeMergeConflictsInput) SetFilePaths(v []*string) *BatchDescribeMergeConflictsInput {
12018	s.FilePaths = v
12019	return s
12020}
12021
12022// SetMaxConflictFiles sets the MaxConflictFiles field's value.
12023func (s *BatchDescribeMergeConflictsInput) SetMaxConflictFiles(v int64) *BatchDescribeMergeConflictsInput {
12024	s.MaxConflictFiles = &v
12025	return s
12026}
12027
12028// SetMaxMergeHunks sets the MaxMergeHunks field's value.
12029func (s *BatchDescribeMergeConflictsInput) SetMaxMergeHunks(v int64) *BatchDescribeMergeConflictsInput {
12030	s.MaxMergeHunks = &v
12031	return s
12032}
12033
12034// SetMergeOption sets the MergeOption field's value.
12035func (s *BatchDescribeMergeConflictsInput) SetMergeOption(v string) *BatchDescribeMergeConflictsInput {
12036	s.MergeOption = &v
12037	return s
12038}
12039
12040// SetNextToken sets the NextToken field's value.
12041func (s *BatchDescribeMergeConflictsInput) SetNextToken(v string) *BatchDescribeMergeConflictsInput {
12042	s.NextToken = &v
12043	return s
12044}
12045
12046// SetRepositoryName sets the RepositoryName field's value.
12047func (s *BatchDescribeMergeConflictsInput) SetRepositoryName(v string) *BatchDescribeMergeConflictsInput {
12048	s.RepositoryName = &v
12049	return s
12050}
12051
12052// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
12053func (s *BatchDescribeMergeConflictsInput) SetSourceCommitSpecifier(v string) *BatchDescribeMergeConflictsInput {
12054	s.SourceCommitSpecifier = &v
12055	return s
12056}
12057
12058type BatchDescribeMergeConflictsOutput struct {
12059	_ struct{} `type:"structure"`
12060
12061	// The commit ID of the merge base.
12062	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
12063
12064	// A list of conflicts for each file, including the conflict metadata and the
12065	// hunks of the differences between the files.
12066	//
12067	// Conflicts is a required field
12068	Conflicts []*Conflict `locationName:"conflicts" type:"list" required:"true"`
12069
12070	// The commit ID of the destination commit specifier that was used in the merge
12071	// evaluation.
12072	//
12073	// DestinationCommitId is a required field
12074	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
12075
12076	// A list of any errors returned while describing the merge conflicts for each
12077	// file.
12078	Errors []*BatchDescribeMergeConflictsError `locationName:"errors" type:"list"`
12079
12080	// An enumeration token that can be used in a request to return the next batch
12081	// of the results.
12082	NextToken *string `locationName:"nextToken" type:"string"`
12083
12084	// The commit ID of the source commit specifier that was used in the merge evaluation.
12085	//
12086	// SourceCommitId is a required field
12087	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
12088}
12089
12090// String returns the string representation
12091func (s BatchDescribeMergeConflictsOutput) String() string {
12092	return awsutil.Prettify(s)
12093}
12094
12095// GoString returns the string representation
12096func (s BatchDescribeMergeConflictsOutput) GoString() string {
12097	return s.String()
12098}
12099
12100// SetBaseCommitId sets the BaseCommitId field's value.
12101func (s *BatchDescribeMergeConflictsOutput) SetBaseCommitId(v string) *BatchDescribeMergeConflictsOutput {
12102	s.BaseCommitId = &v
12103	return s
12104}
12105
12106// SetConflicts sets the Conflicts field's value.
12107func (s *BatchDescribeMergeConflictsOutput) SetConflicts(v []*Conflict) *BatchDescribeMergeConflictsOutput {
12108	s.Conflicts = v
12109	return s
12110}
12111
12112// SetDestinationCommitId sets the DestinationCommitId field's value.
12113func (s *BatchDescribeMergeConflictsOutput) SetDestinationCommitId(v string) *BatchDescribeMergeConflictsOutput {
12114	s.DestinationCommitId = &v
12115	return s
12116}
12117
12118// SetErrors sets the Errors field's value.
12119func (s *BatchDescribeMergeConflictsOutput) SetErrors(v []*BatchDescribeMergeConflictsError) *BatchDescribeMergeConflictsOutput {
12120	s.Errors = v
12121	return s
12122}
12123
12124// SetNextToken sets the NextToken field's value.
12125func (s *BatchDescribeMergeConflictsOutput) SetNextToken(v string) *BatchDescribeMergeConflictsOutput {
12126	s.NextToken = &v
12127	return s
12128}
12129
12130// SetSourceCommitId sets the SourceCommitId field's value.
12131func (s *BatchDescribeMergeConflictsOutput) SetSourceCommitId(v string) *BatchDescribeMergeConflictsOutput {
12132	s.SourceCommitId = &v
12133	return s
12134}
12135
12136// Returns information about errors in a BatchDisassociateApprovalRuleTemplateFromRepositories
12137// operation.
12138type BatchDisassociateApprovalRuleTemplateFromRepositoriesError struct {
12139	_ struct{} `type:"structure"`
12140
12141	// An error code that specifies whether the repository name was not valid or
12142	// not found.
12143	ErrorCode *string `locationName:"errorCode" type:"string"`
12144
12145	// An error message that provides details about why the repository name was
12146	// either not found or not valid.
12147	ErrorMessage *string `locationName:"errorMessage" type:"string"`
12148
12149	// The name of the repository where the association with the template was not
12150	// able to be removed.
12151	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
12152}
12153
12154// String returns the string representation
12155func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesError) String() string {
12156	return awsutil.Prettify(s)
12157}
12158
12159// GoString returns the string representation
12160func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesError) GoString() string {
12161	return s.String()
12162}
12163
12164// SetErrorCode sets the ErrorCode field's value.
12165func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesError) SetErrorCode(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesError {
12166	s.ErrorCode = &v
12167	return s
12168}
12169
12170// SetErrorMessage sets the ErrorMessage field's value.
12171func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesError) SetErrorMessage(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesError {
12172	s.ErrorMessage = &v
12173	return s
12174}
12175
12176// SetRepositoryName sets the RepositoryName field's value.
12177func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesError) SetRepositoryName(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesError {
12178	s.RepositoryName = &v
12179	return s
12180}
12181
12182type BatchDisassociateApprovalRuleTemplateFromRepositoriesInput struct {
12183	_ struct{} `type:"structure"`
12184
12185	// The name of the template that you want to disassociate from one or more repositories.
12186	//
12187	// ApprovalRuleTemplateName is a required field
12188	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
12189
12190	// The repository names that you want to disassociate from the approval rule
12191	// template.
12192	//
12193	// The length constraint limit is for each string in the array. The array itself
12194	// can be empty.
12195	//
12196	// RepositoryNames is a required field
12197	RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
12198}
12199
12200// String returns the string representation
12201func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) String() string {
12202	return awsutil.Prettify(s)
12203}
12204
12205// GoString returns the string representation
12206func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) GoString() string {
12207	return s.String()
12208}
12209
12210// Validate inspects the fields of the type to determine if they are valid.
12211func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) Validate() error {
12212	invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateApprovalRuleTemplateFromRepositoriesInput"}
12213	if s.ApprovalRuleTemplateName == nil {
12214		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
12215	}
12216	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
12217		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
12218	}
12219	if s.RepositoryNames == nil {
12220		invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
12221	}
12222
12223	if invalidParams.Len() > 0 {
12224		return invalidParams
12225	}
12226	return nil
12227}
12228
12229// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
12230func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) SetApprovalRuleTemplateName(v string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput {
12231	s.ApprovalRuleTemplateName = &v
12232	return s
12233}
12234
12235// SetRepositoryNames sets the RepositoryNames field's value.
12236func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) SetRepositoryNames(v []*string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput {
12237	s.RepositoryNames = v
12238	return s
12239}
12240
12241type BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput struct {
12242	_ struct{} `type:"structure"`
12243
12244	// A list of repository names that have had their association with the template
12245	// removed.
12246	//
12247	// DisassociatedRepositoryNames is a required field
12248	DisassociatedRepositoryNames []*string `locationName:"disassociatedRepositoryNames" type:"list" required:"true"`
12249
12250	// A list of any errors that might have occurred while attempting to remove
12251	// the association between the template and the repositories.
12252	//
12253	// Errors is a required field
12254	Errors []*BatchDisassociateApprovalRuleTemplateFromRepositoriesError `locationName:"errors" type:"list" required:"true"`
12255}
12256
12257// String returns the string representation
12258func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) String() string {
12259	return awsutil.Prettify(s)
12260}
12261
12262// GoString returns the string representation
12263func (s BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) GoString() string {
12264	return s.String()
12265}
12266
12267// SetDisassociatedRepositoryNames sets the DisassociatedRepositoryNames field's value.
12268func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) SetDisassociatedRepositoryNames(v []*string) *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput {
12269	s.DisassociatedRepositoryNames = v
12270	return s
12271}
12272
12273// SetErrors sets the Errors field's value.
12274func (s *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput) SetErrors(v []*BatchDisassociateApprovalRuleTemplateFromRepositoriesError) *BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput {
12275	s.Errors = v
12276	return s
12277}
12278
12279// Returns information about errors in a BatchGetCommits operation.
12280type BatchGetCommitsError struct {
12281	_ struct{} `type:"structure"`
12282
12283	// A commit ID that either could not be found or was not in a valid format.
12284	CommitId *string `locationName:"commitId" type:"string"`
12285
12286	// An error code that specifies whether the commit ID was not valid or not found.
12287	ErrorCode *string `locationName:"errorCode" type:"string"`
12288
12289	// An error message that provides detail about why the commit ID either was
12290	// not found or was not valid.
12291	ErrorMessage *string `locationName:"errorMessage" type:"string"`
12292}
12293
12294// String returns the string representation
12295func (s BatchGetCommitsError) String() string {
12296	return awsutil.Prettify(s)
12297}
12298
12299// GoString returns the string representation
12300func (s BatchGetCommitsError) GoString() string {
12301	return s.String()
12302}
12303
12304// SetCommitId sets the CommitId field's value.
12305func (s *BatchGetCommitsError) SetCommitId(v string) *BatchGetCommitsError {
12306	s.CommitId = &v
12307	return s
12308}
12309
12310// SetErrorCode sets the ErrorCode field's value.
12311func (s *BatchGetCommitsError) SetErrorCode(v string) *BatchGetCommitsError {
12312	s.ErrorCode = &v
12313	return s
12314}
12315
12316// SetErrorMessage sets the ErrorMessage field's value.
12317func (s *BatchGetCommitsError) SetErrorMessage(v string) *BatchGetCommitsError {
12318	s.ErrorMessage = &v
12319	return s
12320}
12321
12322type BatchGetCommitsInput struct {
12323	_ struct{} `type:"structure"`
12324
12325	// The full commit IDs of the commits to get information about.
12326	//
12327	// You must supply the full SHA IDs of each commit. You cannot use shortened
12328	// SHA IDs.
12329	//
12330	// CommitIds is a required field
12331	CommitIds []*string `locationName:"commitIds" type:"list" required:"true"`
12332
12333	// The name of the repository that contains the commits.
12334	//
12335	// RepositoryName is a required field
12336	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
12337}
12338
12339// String returns the string representation
12340func (s BatchGetCommitsInput) String() string {
12341	return awsutil.Prettify(s)
12342}
12343
12344// GoString returns the string representation
12345func (s BatchGetCommitsInput) GoString() string {
12346	return s.String()
12347}
12348
12349// Validate inspects the fields of the type to determine if they are valid.
12350func (s *BatchGetCommitsInput) Validate() error {
12351	invalidParams := request.ErrInvalidParams{Context: "BatchGetCommitsInput"}
12352	if s.CommitIds == nil {
12353		invalidParams.Add(request.NewErrParamRequired("CommitIds"))
12354	}
12355	if s.RepositoryName == nil {
12356		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
12357	}
12358	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
12359		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
12360	}
12361
12362	if invalidParams.Len() > 0 {
12363		return invalidParams
12364	}
12365	return nil
12366}
12367
12368// SetCommitIds sets the CommitIds field's value.
12369func (s *BatchGetCommitsInput) SetCommitIds(v []*string) *BatchGetCommitsInput {
12370	s.CommitIds = v
12371	return s
12372}
12373
12374// SetRepositoryName sets the RepositoryName field's value.
12375func (s *BatchGetCommitsInput) SetRepositoryName(v string) *BatchGetCommitsInput {
12376	s.RepositoryName = &v
12377	return s
12378}
12379
12380type BatchGetCommitsOutput struct {
12381	_ struct{} `type:"structure"`
12382
12383	// An array of commit data type objects, each of which contains information
12384	// about a specified commit.
12385	Commits []*Commit `locationName:"commits" type:"list"`
12386
12387	// Returns any commit IDs for which information could not be found. For example,
12388	// if one of the commit IDs was a shortened SHA ID or that commit was not found
12389	// in the specified repository, the ID returns an error object with more information.
12390	Errors []*BatchGetCommitsError `locationName:"errors" type:"list"`
12391}
12392
12393// String returns the string representation
12394func (s BatchGetCommitsOutput) String() string {
12395	return awsutil.Prettify(s)
12396}
12397
12398// GoString returns the string representation
12399func (s BatchGetCommitsOutput) GoString() string {
12400	return s.String()
12401}
12402
12403// SetCommits sets the Commits field's value.
12404func (s *BatchGetCommitsOutput) SetCommits(v []*Commit) *BatchGetCommitsOutput {
12405	s.Commits = v
12406	return s
12407}
12408
12409// SetErrors sets the Errors field's value.
12410func (s *BatchGetCommitsOutput) SetErrors(v []*BatchGetCommitsError) *BatchGetCommitsOutput {
12411	s.Errors = v
12412	return s
12413}
12414
12415// Represents the input of a batch get repositories operation.
12416type BatchGetRepositoriesInput struct {
12417	_ struct{} `type:"structure"`
12418
12419	// The names of the repositories to get information about.
12420	//
12421	// The length constraint limit is for each string in the array. The array itself
12422	// can be empty.
12423	//
12424	// RepositoryNames is a required field
12425	RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
12426}
12427
12428// String returns the string representation
12429func (s BatchGetRepositoriesInput) String() string {
12430	return awsutil.Prettify(s)
12431}
12432
12433// GoString returns the string representation
12434func (s BatchGetRepositoriesInput) GoString() string {
12435	return s.String()
12436}
12437
12438// Validate inspects the fields of the type to determine if they are valid.
12439func (s *BatchGetRepositoriesInput) Validate() error {
12440	invalidParams := request.ErrInvalidParams{Context: "BatchGetRepositoriesInput"}
12441	if s.RepositoryNames == nil {
12442		invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
12443	}
12444
12445	if invalidParams.Len() > 0 {
12446		return invalidParams
12447	}
12448	return nil
12449}
12450
12451// SetRepositoryNames sets the RepositoryNames field's value.
12452func (s *BatchGetRepositoriesInput) SetRepositoryNames(v []*string) *BatchGetRepositoriesInput {
12453	s.RepositoryNames = v
12454	return s
12455}
12456
12457// Represents the output of a batch get repositories operation.
12458type BatchGetRepositoriesOutput struct {
12459	_ struct{} `type:"structure"`
12460
12461	// A list of repositories returned by the batch get repositories operation.
12462	Repositories []*RepositoryMetadata `locationName:"repositories" type:"list"`
12463
12464	// Returns a list of repository names for which information could not be found.
12465	RepositoriesNotFound []*string `locationName:"repositoriesNotFound" type:"list"`
12466}
12467
12468// String returns the string representation
12469func (s BatchGetRepositoriesOutput) String() string {
12470	return awsutil.Prettify(s)
12471}
12472
12473// GoString returns the string representation
12474func (s BatchGetRepositoriesOutput) GoString() string {
12475	return s.String()
12476}
12477
12478// SetRepositories sets the Repositories field's value.
12479func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput {
12480	s.Repositories = v
12481	return s
12482}
12483
12484// SetRepositoriesNotFound sets the RepositoriesNotFound field's value.
12485func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput {
12486	s.RepositoriesNotFound = v
12487	return s
12488}
12489
12490// The before commit ID and the after commit ID are the same, which is not valid.
12491// The before commit ID and the after commit ID must be different commit IDs.
12492type BeforeCommitIdAndAfterCommitIdAreSameException struct {
12493	_            struct{}                  `type:"structure"`
12494	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12495
12496	Message_ *string `locationName:"message" type:"string"`
12497}
12498
12499// String returns the string representation
12500func (s BeforeCommitIdAndAfterCommitIdAreSameException) String() string {
12501	return awsutil.Prettify(s)
12502}
12503
12504// GoString returns the string representation
12505func (s BeforeCommitIdAndAfterCommitIdAreSameException) GoString() string {
12506	return s.String()
12507}
12508
12509func newErrorBeforeCommitIdAndAfterCommitIdAreSameException(v protocol.ResponseMetadata) error {
12510	return &BeforeCommitIdAndAfterCommitIdAreSameException{
12511		RespMetadata: v,
12512	}
12513}
12514
12515// Code returns the exception type name.
12516func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Code() string {
12517	return "BeforeCommitIdAndAfterCommitIdAreSameException"
12518}
12519
12520// Message returns the exception's message.
12521func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Message() string {
12522	if s.Message_ != nil {
12523		return *s.Message_
12524	}
12525	return ""
12526}
12527
12528// OrigErr always returns nil, satisfies awserr.Error interface.
12529func (s *BeforeCommitIdAndAfterCommitIdAreSameException) OrigErr() error {
12530	return nil
12531}
12532
12533func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Error() string {
12534	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12535}
12536
12537// Status code returns the HTTP status code for the request's response error.
12538func (s *BeforeCommitIdAndAfterCommitIdAreSameException) StatusCode() int {
12539	return s.RespMetadata.StatusCode
12540}
12541
12542// RequestID returns the service's response RequestID for request.
12543func (s *BeforeCommitIdAndAfterCommitIdAreSameException) RequestID() string {
12544	return s.RespMetadata.RequestID
12545}
12546
12547// The specified blob does not exist.
12548type BlobIdDoesNotExistException struct {
12549	_            struct{}                  `type:"structure"`
12550	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12551
12552	Message_ *string `locationName:"message" type:"string"`
12553}
12554
12555// String returns the string representation
12556func (s BlobIdDoesNotExistException) String() string {
12557	return awsutil.Prettify(s)
12558}
12559
12560// GoString returns the string representation
12561func (s BlobIdDoesNotExistException) GoString() string {
12562	return s.String()
12563}
12564
12565func newErrorBlobIdDoesNotExistException(v protocol.ResponseMetadata) error {
12566	return &BlobIdDoesNotExistException{
12567		RespMetadata: v,
12568	}
12569}
12570
12571// Code returns the exception type name.
12572func (s *BlobIdDoesNotExistException) Code() string {
12573	return "BlobIdDoesNotExistException"
12574}
12575
12576// Message returns the exception's message.
12577func (s *BlobIdDoesNotExistException) Message() string {
12578	if s.Message_ != nil {
12579		return *s.Message_
12580	}
12581	return ""
12582}
12583
12584// OrigErr always returns nil, satisfies awserr.Error interface.
12585func (s *BlobIdDoesNotExistException) OrigErr() error {
12586	return nil
12587}
12588
12589func (s *BlobIdDoesNotExistException) Error() string {
12590	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12591}
12592
12593// Status code returns the HTTP status code for the request's response error.
12594func (s *BlobIdDoesNotExistException) StatusCode() int {
12595	return s.RespMetadata.StatusCode
12596}
12597
12598// RequestID returns the service's response RequestID for request.
12599func (s *BlobIdDoesNotExistException) RequestID() string {
12600	return s.RespMetadata.RequestID
12601}
12602
12603// A blob ID is required, but was not specified.
12604type BlobIdRequiredException struct {
12605	_            struct{}                  `type:"structure"`
12606	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12607
12608	Message_ *string `locationName:"message" type:"string"`
12609}
12610
12611// String returns the string representation
12612func (s BlobIdRequiredException) String() string {
12613	return awsutil.Prettify(s)
12614}
12615
12616// GoString returns the string representation
12617func (s BlobIdRequiredException) GoString() string {
12618	return s.String()
12619}
12620
12621func newErrorBlobIdRequiredException(v protocol.ResponseMetadata) error {
12622	return &BlobIdRequiredException{
12623		RespMetadata: v,
12624	}
12625}
12626
12627// Code returns the exception type name.
12628func (s *BlobIdRequiredException) Code() string {
12629	return "BlobIdRequiredException"
12630}
12631
12632// Message returns the exception's message.
12633func (s *BlobIdRequiredException) Message() string {
12634	if s.Message_ != nil {
12635		return *s.Message_
12636	}
12637	return ""
12638}
12639
12640// OrigErr always returns nil, satisfies awserr.Error interface.
12641func (s *BlobIdRequiredException) OrigErr() error {
12642	return nil
12643}
12644
12645func (s *BlobIdRequiredException) Error() string {
12646	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12647}
12648
12649// Status code returns the HTTP status code for the request's response error.
12650func (s *BlobIdRequiredException) StatusCode() int {
12651	return s.RespMetadata.StatusCode
12652}
12653
12654// RequestID returns the service's response RequestID for request.
12655func (s *BlobIdRequiredException) RequestID() string {
12656	return s.RespMetadata.RequestID
12657}
12658
12659// Returns information about a specific Git blob object.
12660type BlobMetadata struct {
12661	_ struct{} `type:"structure"`
12662
12663	// The full ID of the blob.
12664	BlobId *string `locationName:"blobId" type:"string"`
12665
12666	// The file mode permissions of the blob. File mode permission codes include:
12667	//
12668	//    * 100644 indicates read/write
12669	//
12670	//    * 100755 indicates read/write/execute
12671	//
12672	//    * 160000 indicates a submodule
12673	//
12674	//    * 120000 indicates a symlink
12675	Mode *string `locationName:"mode" type:"string"`
12676
12677	// The path to the blob and associated file name, if any.
12678	Path *string `locationName:"path" type:"string"`
12679}
12680
12681// String returns the string representation
12682func (s BlobMetadata) String() string {
12683	return awsutil.Prettify(s)
12684}
12685
12686// GoString returns the string representation
12687func (s BlobMetadata) GoString() string {
12688	return s.String()
12689}
12690
12691// SetBlobId sets the BlobId field's value.
12692func (s *BlobMetadata) SetBlobId(v string) *BlobMetadata {
12693	s.BlobId = &v
12694	return s
12695}
12696
12697// SetMode sets the Mode field's value.
12698func (s *BlobMetadata) SetMode(v string) *BlobMetadata {
12699	s.Mode = &v
12700	return s
12701}
12702
12703// SetPath sets the Path field's value.
12704func (s *BlobMetadata) SetPath(v string) *BlobMetadata {
12705	s.Path = &v
12706	return s
12707}
12708
12709// The specified branch does not exist.
12710type BranchDoesNotExistException struct {
12711	_            struct{}                  `type:"structure"`
12712	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12713
12714	Message_ *string `locationName:"message" type:"string"`
12715}
12716
12717// String returns the string representation
12718func (s BranchDoesNotExistException) String() string {
12719	return awsutil.Prettify(s)
12720}
12721
12722// GoString returns the string representation
12723func (s BranchDoesNotExistException) GoString() string {
12724	return s.String()
12725}
12726
12727func newErrorBranchDoesNotExistException(v protocol.ResponseMetadata) error {
12728	return &BranchDoesNotExistException{
12729		RespMetadata: v,
12730	}
12731}
12732
12733// Code returns the exception type name.
12734func (s *BranchDoesNotExistException) Code() string {
12735	return "BranchDoesNotExistException"
12736}
12737
12738// Message returns the exception's message.
12739func (s *BranchDoesNotExistException) Message() string {
12740	if s.Message_ != nil {
12741		return *s.Message_
12742	}
12743	return ""
12744}
12745
12746// OrigErr always returns nil, satisfies awserr.Error interface.
12747func (s *BranchDoesNotExistException) OrigErr() error {
12748	return nil
12749}
12750
12751func (s *BranchDoesNotExistException) Error() string {
12752	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12753}
12754
12755// Status code returns the HTTP status code for the request's response error.
12756func (s *BranchDoesNotExistException) StatusCode() int {
12757	return s.RespMetadata.StatusCode
12758}
12759
12760// RequestID returns the service's response RequestID for request.
12761func (s *BranchDoesNotExistException) RequestID() string {
12762	return s.RespMetadata.RequestID
12763}
12764
12765// Returns information about a branch.
12766type BranchInfo struct {
12767	_ struct{} `type:"structure"`
12768
12769	// The name of the branch.
12770	BranchName *string `locationName:"branchName" min:"1" type:"string"`
12771
12772	// The ID of the last commit made to the branch.
12773	CommitId *string `locationName:"commitId" type:"string"`
12774}
12775
12776// String returns the string representation
12777func (s BranchInfo) String() string {
12778	return awsutil.Prettify(s)
12779}
12780
12781// GoString returns the string representation
12782func (s BranchInfo) GoString() string {
12783	return s.String()
12784}
12785
12786// SetBranchName sets the BranchName field's value.
12787func (s *BranchInfo) SetBranchName(v string) *BranchInfo {
12788	s.BranchName = &v
12789	return s
12790}
12791
12792// SetCommitId sets the CommitId field's value.
12793func (s *BranchInfo) SetCommitId(v string) *BranchInfo {
12794	s.CommitId = &v
12795	return s
12796}
12797
12798// Cannot create the branch with the specified name because the commit conflicts
12799// with an existing branch with the same name. Branch names must be unique.
12800type BranchNameExistsException struct {
12801	_            struct{}                  `type:"structure"`
12802	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12803
12804	Message_ *string `locationName:"message" type:"string"`
12805}
12806
12807// String returns the string representation
12808func (s BranchNameExistsException) String() string {
12809	return awsutil.Prettify(s)
12810}
12811
12812// GoString returns the string representation
12813func (s BranchNameExistsException) GoString() string {
12814	return s.String()
12815}
12816
12817func newErrorBranchNameExistsException(v protocol.ResponseMetadata) error {
12818	return &BranchNameExistsException{
12819		RespMetadata: v,
12820	}
12821}
12822
12823// Code returns the exception type name.
12824func (s *BranchNameExistsException) Code() string {
12825	return "BranchNameExistsException"
12826}
12827
12828// Message returns the exception's message.
12829func (s *BranchNameExistsException) Message() string {
12830	if s.Message_ != nil {
12831		return *s.Message_
12832	}
12833	return ""
12834}
12835
12836// OrigErr always returns nil, satisfies awserr.Error interface.
12837func (s *BranchNameExistsException) OrigErr() error {
12838	return nil
12839}
12840
12841func (s *BranchNameExistsException) Error() string {
12842	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12843}
12844
12845// Status code returns the HTTP status code for the request's response error.
12846func (s *BranchNameExistsException) StatusCode() int {
12847	return s.RespMetadata.StatusCode
12848}
12849
12850// RequestID returns the service's response RequestID for request.
12851func (s *BranchNameExistsException) RequestID() string {
12852	return s.RespMetadata.RequestID
12853}
12854
12855// The specified branch name is not valid because it is a tag name. Enter the
12856// name of a branch in the repository. For a list of valid branch names, use
12857// ListBranches.
12858type BranchNameIsTagNameException struct {
12859	_            struct{}                  `type:"structure"`
12860	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12861
12862	Message_ *string `locationName:"message" type:"string"`
12863}
12864
12865// String returns the string representation
12866func (s BranchNameIsTagNameException) String() string {
12867	return awsutil.Prettify(s)
12868}
12869
12870// GoString returns the string representation
12871func (s BranchNameIsTagNameException) GoString() string {
12872	return s.String()
12873}
12874
12875func newErrorBranchNameIsTagNameException(v protocol.ResponseMetadata) error {
12876	return &BranchNameIsTagNameException{
12877		RespMetadata: v,
12878	}
12879}
12880
12881// Code returns the exception type name.
12882func (s *BranchNameIsTagNameException) Code() string {
12883	return "BranchNameIsTagNameException"
12884}
12885
12886// Message returns the exception's message.
12887func (s *BranchNameIsTagNameException) Message() string {
12888	if s.Message_ != nil {
12889		return *s.Message_
12890	}
12891	return ""
12892}
12893
12894// OrigErr always returns nil, satisfies awserr.Error interface.
12895func (s *BranchNameIsTagNameException) OrigErr() error {
12896	return nil
12897}
12898
12899func (s *BranchNameIsTagNameException) Error() string {
12900	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12901}
12902
12903// Status code returns the HTTP status code for the request's response error.
12904func (s *BranchNameIsTagNameException) StatusCode() int {
12905	return s.RespMetadata.StatusCode
12906}
12907
12908// RequestID returns the service's response RequestID for request.
12909func (s *BranchNameIsTagNameException) RequestID() string {
12910	return s.RespMetadata.RequestID
12911}
12912
12913// A branch name is required, but was not specified.
12914type BranchNameRequiredException struct {
12915	_            struct{}                  `type:"structure"`
12916	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12917
12918	Message_ *string `locationName:"message" type:"string"`
12919}
12920
12921// String returns the string representation
12922func (s BranchNameRequiredException) String() string {
12923	return awsutil.Prettify(s)
12924}
12925
12926// GoString returns the string representation
12927func (s BranchNameRequiredException) GoString() string {
12928	return s.String()
12929}
12930
12931func newErrorBranchNameRequiredException(v protocol.ResponseMetadata) error {
12932	return &BranchNameRequiredException{
12933		RespMetadata: v,
12934	}
12935}
12936
12937// Code returns the exception type name.
12938func (s *BranchNameRequiredException) Code() string {
12939	return "BranchNameRequiredException"
12940}
12941
12942// Message returns the exception's message.
12943func (s *BranchNameRequiredException) Message() string {
12944	if s.Message_ != nil {
12945		return *s.Message_
12946	}
12947	return ""
12948}
12949
12950// OrigErr always returns nil, satisfies awserr.Error interface.
12951func (s *BranchNameRequiredException) OrigErr() error {
12952	return nil
12953}
12954
12955func (s *BranchNameRequiredException) Error() string {
12956	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
12957}
12958
12959// Status code returns the HTTP status code for the request's response error.
12960func (s *BranchNameRequiredException) StatusCode() int {
12961	return s.RespMetadata.StatusCode
12962}
12963
12964// RequestID returns the service's response RequestID for request.
12965func (s *BranchNameRequiredException) RequestID() string {
12966	return s.RespMetadata.RequestID
12967}
12968
12969// The approval rule cannot be deleted from the pull request because it was
12970// created by an approval rule template and applied to the pull request automatically.
12971type CannotDeleteApprovalRuleFromTemplateException struct {
12972	_            struct{}                  `type:"structure"`
12973	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
12974
12975	Message_ *string `locationName:"message" type:"string"`
12976}
12977
12978// String returns the string representation
12979func (s CannotDeleteApprovalRuleFromTemplateException) String() string {
12980	return awsutil.Prettify(s)
12981}
12982
12983// GoString returns the string representation
12984func (s CannotDeleteApprovalRuleFromTemplateException) GoString() string {
12985	return s.String()
12986}
12987
12988func newErrorCannotDeleteApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error {
12989	return &CannotDeleteApprovalRuleFromTemplateException{
12990		RespMetadata: v,
12991	}
12992}
12993
12994// Code returns the exception type name.
12995func (s *CannotDeleteApprovalRuleFromTemplateException) Code() string {
12996	return "CannotDeleteApprovalRuleFromTemplateException"
12997}
12998
12999// Message returns the exception's message.
13000func (s *CannotDeleteApprovalRuleFromTemplateException) Message() string {
13001	if s.Message_ != nil {
13002		return *s.Message_
13003	}
13004	return ""
13005}
13006
13007// OrigErr always returns nil, satisfies awserr.Error interface.
13008func (s *CannotDeleteApprovalRuleFromTemplateException) OrigErr() error {
13009	return nil
13010}
13011
13012func (s *CannotDeleteApprovalRuleFromTemplateException) Error() string {
13013	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13014}
13015
13016// Status code returns the HTTP status code for the request's response error.
13017func (s *CannotDeleteApprovalRuleFromTemplateException) StatusCode() int {
13018	return s.RespMetadata.StatusCode
13019}
13020
13021// RequestID returns the service's response RequestID for request.
13022func (s *CannotDeleteApprovalRuleFromTemplateException) RequestID() string {
13023	return s.RespMetadata.RequestID
13024}
13025
13026// The approval rule cannot be modified for the pull request because it was
13027// created by an approval rule template and applied to the pull request automatically.
13028type CannotModifyApprovalRuleFromTemplateException struct {
13029	_            struct{}                  `type:"structure"`
13030	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13031
13032	Message_ *string `locationName:"message" type:"string"`
13033}
13034
13035// String returns the string representation
13036func (s CannotModifyApprovalRuleFromTemplateException) String() string {
13037	return awsutil.Prettify(s)
13038}
13039
13040// GoString returns the string representation
13041func (s CannotModifyApprovalRuleFromTemplateException) GoString() string {
13042	return s.String()
13043}
13044
13045func newErrorCannotModifyApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error {
13046	return &CannotModifyApprovalRuleFromTemplateException{
13047		RespMetadata: v,
13048	}
13049}
13050
13051// Code returns the exception type name.
13052func (s *CannotModifyApprovalRuleFromTemplateException) Code() string {
13053	return "CannotModifyApprovalRuleFromTemplateException"
13054}
13055
13056// Message returns the exception's message.
13057func (s *CannotModifyApprovalRuleFromTemplateException) Message() string {
13058	if s.Message_ != nil {
13059		return *s.Message_
13060	}
13061	return ""
13062}
13063
13064// OrigErr always returns nil, satisfies awserr.Error interface.
13065func (s *CannotModifyApprovalRuleFromTemplateException) OrigErr() error {
13066	return nil
13067}
13068
13069func (s *CannotModifyApprovalRuleFromTemplateException) Error() string {
13070	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13071}
13072
13073// Status code returns the HTTP status code for the request's response error.
13074func (s *CannotModifyApprovalRuleFromTemplateException) StatusCode() int {
13075	return s.RespMetadata.StatusCode
13076}
13077
13078// RequestID returns the service's response RequestID for request.
13079func (s *CannotModifyApprovalRuleFromTemplateException) RequestID() string {
13080	return s.RespMetadata.RequestID
13081}
13082
13083// A client request token is required. A client request token is an unique,
13084// client-generated idempotency token that, when provided in a request, ensures
13085// the request cannot be repeated with a changed parameter. If a request is
13086// received with the same parameters and a token is included, the request returns
13087// information about the initial request that used that token.
13088type ClientRequestTokenRequiredException struct {
13089	_            struct{}                  `type:"structure"`
13090	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13091
13092	Message_ *string `locationName:"message" type:"string"`
13093}
13094
13095// String returns the string representation
13096func (s ClientRequestTokenRequiredException) String() string {
13097	return awsutil.Prettify(s)
13098}
13099
13100// GoString returns the string representation
13101func (s ClientRequestTokenRequiredException) GoString() string {
13102	return s.String()
13103}
13104
13105func newErrorClientRequestTokenRequiredException(v protocol.ResponseMetadata) error {
13106	return &ClientRequestTokenRequiredException{
13107		RespMetadata: v,
13108	}
13109}
13110
13111// Code returns the exception type name.
13112func (s *ClientRequestTokenRequiredException) Code() string {
13113	return "ClientRequestTokenRequiredException"
13114}
13115
13116// Message returns the exception's message.
13117func (s *ClientRequestTokenRequiredException) Message() string {
13118	if s.Message_ != nil {
13119		return *s.Message_
13120	}
13121	return ""
13122}
13123
13124// OrigErr always returns nil, satisfies awserr.Error interface.
13125func (s *ClientRequestTokenRequiredException) OrigErr() error {
13126	return nil
13127}
13128
13129func (s *ClientRequestTokenRequiredException) Error() string {
13130	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13131}
13132
13133// Status code returns the HTTP status code for the request's response error.
13134func (s *ClientRequestTokenRequiredException) StatusCode() int {
13135	return s.RespMetadata.StatusCode
13136}
13137
13138// RequestID returns the service's response RequestID for request.
13139func (s *ClientRequestTokenRequiredException) RequestID() string {
13140	return s.RespMetadata.RequestID
13141}
13142
13143// Returns information about a specific comment.
13144type Comment struct {
13145	_ struct{} `type:"structure"`
13146
13147	// The Amazon Resource Name (ARN) of the person who posted the comment.
13148	AuthorArn *string `locationName:"authorArn" type:"string"`
13149
13150	// The emoji reactions to a comment, if any, submitted by the user whose credentials
13151	// are associated with the call to the API.
13152	CallerReactions []*string `locationName:"callerReactions" type:"list"`
13153
13154	// A unique, client-generated idempotency token that, when provided in a request,
13155	// ensures the request cannot be repeated with a changed parameter. If a request
13156	// is received with the same parameters and a token is included, the request
13157	// returns information about the initial request that used that token.
13158	ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
13159
13160	// The system-generated comment ID.
13161	CommentId *string `locationName:"commentId" type:"string"`
13162
13163	// The content of the comment.
13164	Content *string `locationName:"content" type:"string"`
13165
13166	// The date and time the comment was created, in timestamp format.
13167	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
13168
13169	// A Boolean value indicating whether the comment has been deleted.
13170	Deleted *bool `locationName:"deleted" type:"boolean"`
13171
13172	// The ID of the comment for which this comment is a reply, if any.
13173	InReplyTo *string `locationName:"inReplyTo" type:"string"`
13174
13175	// The date and time the comment was most recently modified, in timestamp format.
13176	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
13177
13178	// A string to integer map that represents the number of individual users who
13179	// have responded to a comment with the specified reactions.
13180	ReactionCounts map[string]*int64 `locationName:"reactionCounts" type:"map"`
13181}
13182
13183// String returns the string representation
13184func (s Comment) String() string {
13185	return awsutil.Prettify(s)
13186}
13187
13188// GoString returns the string representation
13189func (s Comment) GoString() string {
13190	return s.String()
13191}
13192
13193// SetAuthorArn sets the AuthorArn field's value.
13194func (s *Comment) SetAuthorArn(v string) *Comment {
13195	s.AuthorArn = &v
13196	return s
13197}
13198
13199// SetCallerReactions sets the CallerReactions field's value.
13200func (s *Comment) SetCallerReactions(v []*string) *Comment {
13201	s.CallerReactions = v
13202	return s
13203}
13204
13205// SetClientRequestToken sets the ClientRequestToken field's value.
13206func (s *Comment) SetClientRequestToken(v string) *Comment {
13207	s.ClientRequestToken = &v
13208	return s
13209}
13210
13211// SetCommentId sets the CommentId field's value.
13212func (s *Comment) SetCommentId(v string) *Comment {
13213	s.CommentId = &v
13214	return s
13215}
13216
13217// SetContent sets the Content field's value.
13218func (s *Comment) SetContent(v string) *Comment {
13219	s.Content = &v
13220	return s
13221}
13222
13223// SetCreationDate sets the CreationDate field's value.
13224func (s *Comment) SetCreationDate(v time.Time) *Comment {
13225	s.CreationDate = &v
13226	return s
13227}
13228
13229// SetDeleted sets the Deleted field's value.
13230func (s *Comment) SetDeleted(v bool) *Comment {
13231	s.Deleted = &v
13232	return s
13233}
13234
13235// SetInReplyTo sets the InReplyTo field's value.
13236func (s *Comment) SetInReplyTo(v string) *Comment {
13237	s.InReplyTo = &v
13238	return s
13239}
13240
13241// SetLastModifiedDate sets the LastModifiedDate field's value.
13242func (s *Comment) SetLastModifiedDate(v time.Time) *Comment {
13243	s.LastModifiedDate = &v
13244	return s
13245}
13246
13247// SetReactionCounts sets the ReactionCounts field's value.
13248func (s *Comment) SetReactionCounts(v map[string]*int64) *Comment {
13249	s.ReactionCounts = v
13250	return s
13251}
13252
13253// The comment is empty. You must provide some content for a comment. The content
13254// cannot be null.
13255type CommentContentRequiredException struct {
13256	_            struct{}                  `type:"structure"`
13257	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13258
13259	Message_ *string `locationName:"message" type:"string"`
13260}
13261
13262// String returns the string representation
13263func (s CommentContentRequiredException) String() string {
13264	return awsutil.Prettify(s)
13265}
13266
13267// GoString returns the string representation
13268func (s CommentContentRequiredException) GoString() string {
13269	return s.String()
13270}
13271
13272func newErrorCommentContentRequiredException(v protocol.ResponseMetadata) error {
13273	return &CommentContentRequiredException{
13274		RespMetadata: v,
13275	}
13276}
13277
13278// Code returns the exception type name.
13279func (s *CommentContentRequiredException) Code() string {
13280	return "CommentContentRequiredException"
13281}
13282
13283// Message returns the exception's message.
13284func (s *CommentContentRequiredException) Message() string {
13285	if s.Message_ != nil {
13286		return *s.Message_
13287	}
13288	return ""
13289}
13290
13291// OrigErr always returns nil, satisfies awserr.Error interface.
13292func (s *CommentContentRequiredException) OrigErr() error {
13293	return nil
13294}
13295
13296func (s *CommentContentRequiredException) Error() string {
13297	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13298}
13299
13300// Status code returns the HTTP status code for the request's response error.
13301func (s *CommentContentRequiredException) StatusCode() int {
13302	return s.RespMetadata.StatusCode
13303}
13304
13305// RequestID returns the service's response RequestID for request.
13306func (s *CommentContentRequiredException) RequestID() string {
13307	return s.RespMetadata.RequestID
13308}
13309
13310// The comment is too large. Comments are limited to 1,000 characters.
13311type CommentContentSizeLimitExceededException struct {
13312	_            struct{}                  `type:"structure"`
13313	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13314
13315	Message_ *string `locationName:"message" type:"string"`
13316}
13317
13318// String returns the string representation
13319func (s CommentContentSizeLimitExceededException) String() string {
13320	return awsutil.Prettify(s)
13321}
13322
13323// GoString returns the string representation
13324func (s CommentContentSizeLimitExceededException) GoString() string {
13325	return s.String()
13326}
13327
13328func newErrorCommentContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
13329	return &CommentContentSizeLimitExceededException{
13330		RespMetadata: v,
13331	}
13332}
13333
13334// Code returns the exception type name.
13335func (s *CommentContentSizeLimitExceededException) Code() string {
13336	return "CommentContentSizeLimitExceededException"
13337}
13338
13339// Message returns the exception's message.
13340func (s *CommentContentSizeLimitExceededException) Message() string {
13341	if s.Message_ != nil {
13342		return *s.Message_
13343	}
13344	return ""
13345}
13346
13347// OrigErr always returns nil, satisfies awserr.Error interface.
13348func (s *CommentContentSizeLimitExceededException) OrigErr() error {
13349	return nil
13350}
13351
13352func (s *CommentContentSizeLimitExceededException) Error() string {
13353	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13354}
13355
13356// Status code returns the HTTP status code for the request's response error.
13357func (s *CommentContentSizeLimitExceededException) StatusCode() int {
13358	return s.RespMetadata.StatusCode
13359}
13360
13361// RequestID returns the service's response RequestID for request.
13362func (s *CommentContentSizeLimitExceededException) RequestID() string {
13363	return s.RespMetadata.RequestID
13364}
13365
13366// This comment has already been deleted. You cannot edit or delete a deleted
13367// comment.
13368type CommentDeletedException struct {
13369	_            struct{}                  `type:"structure"`
13370	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13371
13372	Message_ *string `locationName:"message" type:"string"`
13373}
13374
13375// String returns the string representation
13376func (s CommentDeletedException) String() string {
13377	return awsutil.Prettify(s)
13378}
13379
13380// GoString returns the string representation
13381func (s CommentDeletedException) GoString() string {
13382	return s.String()
13383}
13384
13385func newErrorCommentDeletedException(v protocol.ResponseMetadata) error {
13386	return &CommentDeletedException{
13387		RespMetadata: v,
13388	}
13389}
13390
13391// Code returns the exception type name.
13392func (s *CommentDeletedException) Code() string {
13393	return "CommentDeletedException"
13394}
13395
13396// Message returns the exception's message.
13397func (s *CommentDeletedException) Message() string {
13398	if s.Message_ != nil {
13399		return *s.Message_
13400	}
13401	return ""
13402}
13403
13404// OrigErr always returns nil, satisfies awserr.Error interface.
13405func (s *CommentDeletedException) OrigErr() error {
13406	return nil
13407}
13408
13409func (s *CommentDeletedException) Error() string {
13410	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13411}
13412
13413// Status code returns the HTTP status code for the request's response error.
13414func (s *CommentDeletedException) StatusCode() int {
13415	return s.RespMetadata.StatusCode
13416}
13417
13418// RequestID returns the service's response RequestID for request.
13419func (s *CommentDeletedException) RequestID() string {
13420	return s.RespMetadata.RequestID
13421}
13422
13423// No comment exists with the provided ID. Verify that you have used the correct
13424// ID, and then try again.
13425type CommentDoesNotExistException struct {
13426	_            struct{}                  `type:"structure"`
13427	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13428
13429	Message_ *string `locationName:"message" type:"string"`
13430}
13431
13432// String returns the string representation
13433func (s CommentDoesNotExistException) String() string {
13434	return awsutil.Prettify(s)
13435}
13436
13437// GoString returns the string representation
13438func (s CommentDoesNotExistException) GoString() string {
13439	return s.String()
13440}
13441
13442func newErrorCommentDoesNotExistException(v protocol.ResponseMetadata) error {
13443	return &CommentDoesNotExistException{
13444		RespMetadata: v,
13445	}
13446}
13447
13448// Code returns the exception type name.
13449func (s *CommentDoesNotExistException) Code() string {
13450	return "CommentDoesNotExistException"
13451}
13452
13453// Message returns the exception's message.
13454func (s *CommentDoesNotExistException) Message() string {
13455	if s.Message_ != nil {
13456		return *s.Message_
13457	}
13458	return ""
13459}
13460
13461// OrigErr always returns nil, satisfies awserr.Error interface.
13462func (s *CommentDoesNotExistException) OrigErr() error {
13463	return nil
13464}
13465
13466func (s *CommentDoesNotExistException) Error() string {
13467	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13468}
13469
13470// Status code returns the HTTP status code for the request's response error.
13471func (s *CommentDoesNotExistException) StatusCode() int {
13472	return s.RespMetadata.StatusCode
13473}
13474
13475// RequestID returns the service's response RequestID for request.
13476func (s *CommentDoesNotExistException) RequestID() string {
13477	return s.RespMetadata.RequestID
13478}
13479
13480// The comment ID is missing or null. A comment ID is required.
13481type CommentIdRequiredException struct {
13482	_            struct{}                  `type:"structure"`
13483	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13484
13485	Message_ *string `locationName:"message" type:"string"`
13486}
13487
13488// String returns the string representation
13489func (s CommentIdRequiredException) String() string {
13490	return awsutil.Prettify(s)
13491}
13492
13493// GoString returns the string representation
13494func (s CommentIdRequiredException) GoString() string {
13495	return s.String()
13496}
13497
13498func newErrorCommentIdRequiredException(v protocol.ResponseMetadata) error {
13499	return &CommentIdRequiredException{
13500		RespMetadata: v,
13501	}
13502}
13503
13504// Code returns the exception type name.
13505func (s *CommentIdRequiredException) Code() string {
13506	return "CommentIdRequiredException"
13507}
13508
13509// Message returns the exception's message.
13510func (s *CommentIdRequiredException) Message() string {
13511	if s.Message_ != nil {
13512		return *s.Message_
13513	}
13514	return ""
13515}
13516
13517// OrigErr always returns nil, satisfies awserr.Error interface.
13518func (s *CommentIdRequiredException) OrigErr() error {
13519	return nil
13520}
13521
13522func (s *CommentIdRequiredException) Error() string {
13523	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13524}
13525
13526// Status code returns the HTTP status code for the request's response error.
13527func (s *CommentIdRequiredException) StatusCode() int {
13528	return s.RespMetadata.StatusCode
13529}
13530
13531// RequestID returns the service's response RequestID for request.
13532func (s *CommentIdRequiredException) RequestID() string {
13533	return s.RespMetadata.RequestID
13534}
13535
13536// You cannot modify or delete this comment. Only comment authors can modify
13537// or delete their comments.
13538type CommentNotCreatedByCallerException struct {
13539	_            struct{}                  `type:"structure"`
13540	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13541
13542	Message_ *string `locationName:"message" type:"string"`
13543}
13544
13545// String returns the string representation
13546func (s CommentNotCreatedByCallerException) String() string {
13547	return awsutil.Prettify(s)
13548}
13549
13550// GoString returns the string representation
13551func (s CommentNotCreatedByCallerException) GoString() string {
13552	return s.String()
13553}
13554
13555func newErrorCommentNotCreatedByCallerException(v protocol.ResponseMetadata) error {
13556	return &CommentNotCreatedByCallerException{
13557		RespMetadata: v,
13558	}
13559}
13560
13561// Code returns the exception type name.
13562func (s *CommentNotCreatedByCallerException) Code() string {
13563	return "CommentNotCreatedByCallerException"
13564}
13565
13566// Message returns the exception's message.
13567func (s *CommentNotCreatedByCallerException) Message() string {
13568	if s.Message_ != nil {
13569		return *s.Message_
13570	}
13571	return ""
13572}
13573
13574// OrigErr always returns nil, satisfies awserr.Error interface.
13575func (s *CommentNotCreatedByCallerException) OrigErr() error {
13576	return nil
13577}
13578
13579func (s *CommentNotCreatedByCallerException) Error() string {
13580	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13581}
13582
13583// Status code returns the HTTP status code for the request's response error.
13584func (s *CommentNotCreatedByCallerException) StatusCode() int {
13585	return s.RespMetadata.StatusCode
13586}
13587
13588// RequestID returns the service's response RequestID for request.
13589func (s *CommentNotCreatedByCallerException) RequestID() string {
13590	return s.RespMetadata.RequestID
13591}
13592
13593// Returns information about comments on the comparison between two commits.
13594type CommentsForComparedCommit struct {
13595	_ struct{} `type:"structure"`
13596
13597	// The full blob ID of the commit used to establish the after of the comparison.
13598	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
13599
13600	// The full commit ID of the commit used to establish the after of the comparison.
13601	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
13602
13603	// The full blob ID of the commit used to establish the before of the comparison.
13604	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
13605
13606	// The full commit ID of the commit used to establish the before of the comparison.
13607	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
13608
13609	// An array of comment objects. Each comment object contains information about
13610	// a comment on the comparison between commits.
13611	Comments []*Comment `locationName:"comments" type:"list"`
13612
13613	// Location information about the comment on the comparison, including the file
13614	// name, line number, and whether the version of the file where the comment
13615	// was made is BEFORE or AFTER.
13616	Location *Location `locationName:"location" type:"structure"`
13617
13618	// The name of the repository that contains the compared commits.
13619	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
13620}
13621
13622// String returns the string representation
13623func (s CommentsForComparedCommit) String() string {
13624	return awsutil.Prettify(s)
13625}
13626
13627// GoString returns the string representation
13628func (s CommentsForComparedCommit) GoString() string {
13629	return s.String()
13630}
13631
13632// SetAfterBlobId sets the AfterBlobId field's value.
13633func (s *CommentsForComparedCommit) SetAfterBlobId(v string) *CommentsForComparedCommit {
13634	s.AfterBlobId = &v
13635	return s
13636}
13637
13638// SetAfterCommitId sets the AfterCommitId field's value.
13639func (s *CommentsForComparedCommit) SetAfterCommitId(v string) *CommentsForComparedCommit {
13640	s.AfterCommitId = &v
13641	return s
13642}
13643
13644// SetBeforeBlobId sets the BeforeBlobId field's value.
13645func (s *CommentsForComparedCommit) SetBeforeBlobId(v string) *CommentsForComparedCommit {
13646	s.BeforeBlobId = &v
13647	return s
13648}
13649
13650// SetBeforeCommitId sets the BeforeCommitId field's value.
13651func (s *CommentsForComparedCommit) SetBeforeCommitId(v string) *CommentsForComparedCommit {
13652	s.BeforeCommitId = &v
13653	return s
13654}
13655
13656// SetComments sets the Comments field's value.
13657func (s *CommentsForComparedCommit) SetComments(v []*Comment) *CommentsForComparedCommit {
13658	s.Comments = v
13659	return s
13660}
13661
13662// SetLocation sets the Location field's value.
13663func (s *CommentsForComparedCommit) SetLocation(v *Location) *CommentsForComparedCommit {
13664	s.Location = v
13665	return s
13666}
13667
13668// SetRepositoryName sets the RepositoryName field's value.
13669func (s *CommentsForComparedCommit) SetRepositoryName(v string) *CommentsForComparedCommit {
13670	s.RepositoryName = &v
13671	return s
13672}
13673
13674// Returns information about comments on a pull request.
13675type CommentsForPullRequest struct {
13676	_ struct{} `type:"structure"`
13677
13678	// The full blob ID of the file on which you want to comment on the source commit.
13679	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
13680
13681	// The full commit ID of the commit that was the tip of the source branch at
13682	// the time the comment was made.
13683	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
13684
13685	// The full blob ID of the file on which you want to comment on the destination
13686	// commit.
13687	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
13688
13689	// The full commit ID of the commit that was the tip of the destination branch
13690	// when the pull request was created. This commit is superceded by the after
13691	// commit in the source branch when and if you merge the source branch into
13692	// the destination branch.
13693	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
13694
13695	// An array of comment objects. Each comment object contains information about
13696	// a comment on the pull request.
13697	Comments []*Comment `locationName:"comments" type:"list"`
13698
13699	// Location information about the comment on the pull request, including the
13700	// file name, line number, and whether the version of the file where the comment
13701	// was made is BEFORE (destination branch) or AFTER (source branch).
13702	Location *Location `locationName:"location" type:"structure"`
13703
13704	// The system-generated ID of the pull request.
13705	PullRequestId *string `locationName:"pullRequestId" type:"string"`
13706
13707	// The name of the repository that contains the pull request.
13708	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
13709}
13710
13711// String returns the string representation
13712func (s CommentsForPullRequest) String() string {
13713	return awsutil.Prettify(s)
13714}
13715
13716// GoString returns the string representation
13717func (s CommentsForPullRequest) GoString() string {
13718	return s.String()
13719}
13720
13721// SetAfterBlobId sets the AfterBlobId field's value.
13722func (s *CommentsForPullRequest) SetAfterBlobId(v string) *CommentsForPullRequest {
13723	s.AfterBlobId = &v
13724	return s
13725}
13726
13727// SetAfterCommitId sets the AfterCommitId field's value.
13728func (s *CommentsForPullRequest) SetAfterCommitId(v string) *CommentsForPullRequest {
13729	s.AfterCommitId = &v
13730	return s
13731}
13732
13733// SetBeforeBlobId sets the BeforeBlobId field's value.
13734func (s *CommentsForPullRequest) SetBeforeBlobId(v string) *CommentsForPullRequest {
13735	s.BeforeBlobId = &v
13736	return s
13737}
13738
13739// SetBeforeCommitId sets the BeforeCommitId field's value.
13740func (s *CommentsForPullRequest) SetBeforeCommitId(v string) *CommentsForPullRequest {
13741	s.BeforeCommitId = &v
13742	return s
13743}
13744
13745// SetComments sets the Comments field's value.
13746func (s *CommentsForPullRequest) SetComments(v []*Comment) *CommentsForPullRequest {
13747	s.Comments = v
13748	return s
13749}
13750
13751// SetLocation sets the Location field's value.
13752func (s *CommentsForPullRequest) SetLocation(v *Location) *CommentsForPullRequest {
13753	s.Location = v
13754	return s
13755}
13756
13757// SetPullRequestId sets the PullRequestId field's value.
13758func (s *CommentsForPullRequest) SetPullRequestId(v string) *CommentsForPullRequest {
13759	s.PullRequestId = &v
13760	return s
13761}
13762
13763// SetRepositoryName sets the RepositoryName field's value.
13764func (s *CommentsForPullRequest) SetRepositoryName(v string) *CommentsForPullRequest {
13765	s.RepositoryName = &v
13766	return s
13767}
13768
13769// Returns information about a specific commit.
13770type Commit struct {
13771	_ struct{} `type:"structure"`
13772
13773	// Any other data associated with the specified commit.
13774	AdditionalData *string `locationName:"additionalData" type:"string"`
13775
13776	// Information about the author of the specified commit. Information includes
13777	// the date in timestamp format with GMT offset, the name of the author, and
13778	// the email address for the author, as configured in Git.
13779	Author *UserInfo `locationName:"author" type:"structure"`
13780
13781	// The full SHA ID of the specified commit.
13782	CommitId *string `locationName:"commitId" type:"string"`
13783
13784	// Information about the person who committed the specified commit, also known
13785	// as the committer. Information includes the date in timestamp format with
13786	// GMT offset, the name of the committer, and the email address for the committer,
13787	// as configured in Git.
13788	//
13789	// For more information about the difference between an author and a committer
13790	// in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html)
13791	// in Pro Git by Scott Chacon and Ben Straub.
13792	Committer *UserInfo `locationName:"committer" type:"structure"`
13793
13794	// The commit message associated with the specified commit.
13795	Message *string `locationName:"message" type:"string"`
13796
13797	// A list of parent commits for the specified commit. Each parent commit ID
13798	// is the full commit ID.
13799	Parents []*string `locationName:"parents" type:"list"`
13800
13801	// Tree information for the specified commit.
13802	TreeId *string `locationName:"treeId" type:"string"`
13803}
13804
13805// String returns the string representation
13806func (s Commit) String() string {
13807	return awsutil.Prettify(s)
13808}
13809
13810// GoString returns the string representation
13811func (s Commit) GoString() string {
13812	return s.String()
13813}
13814
13815// SetAdditionalData sets the AdditionalData field's value.
13816func (s *Commit) SetAdditionalData(v string) *Commit {
13817	s.AdditionalData = &v
13818	return s
13819}
13820
13821// SetAuthor sets the Author field's value.
13822func (s *Commit) SetAuthor(v *UserInfo) *Commit {
13823	s.Author = v
13824	return s
13825}
13826
13827// SetCommitId sets the CommitId field's value.
13828func (s *Commit) SetCommitId(v string) *Commit {
13829	s.CommitId = &v
13830	return s
13831}
13832
13833// SetCommitter sets the Committer field's value.
13834func (s *Commit) SetCommitter(v *UserInfo) *Commit {
13835	s.Committer = v
13836	return s
13837}
13838
13839// SetMessage sets the Message field's value.
13840func (s *Commit) SetMessage(v string) *Commit {
13841	s.Message = &v
13842	return s
13843}
13844
13845// SetParents sets the Parents field's value.
13846func (s *Commit) SetParents(v []*string) *Commit {
13847	s.Parents = v
13848	return s
13849}
13850
13851// SetTreeId sets the TreeId field's value.
13852func (s *Commit) SetTreeId(v string) *Commit {
13853	s.TreeId = &v
13854	return s
13855}
13856
13857// The specified commit does not exist or no commit was specified, and the specified
13858// repository has no default branch.
13859type CommitDoesNotExistException struct {
13860	_            struct{}                  `type:"structure"`
13861	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13862
13863	Message_ *string `locationName:"message" type:"string"`
13864}
13865
13866// String returns the string representation
13867func (s CommitDoesNotExistException) String() string {
13868	return awsutil.Prettify(s)
13869}
13870
13871// GoString returns the string representation
13872func (s CommitDoesNotExistException) GoString() string {
13873	return s.String()
13874}
13875
13876func newErrorCommitDoesNotExistException(v protocol.ResponseMetadata) error {
13877	return &CommitDoesNotExistException{
13878		RespMetadata: v,
13879	}
13880}
13881
13882// Code returns the exception type name.
13883func (s *CommitDoesNotExistException) Code() string {
13884	return "CommitDoesNotExistException"
13885}
13886
13887// Message returns the exception's message.
13888func (s *CommitDoesNotExistException) Message() string {
13889	if s.Message_ != nil {
13890		return *s.Message_
13891	}
13892	return ""
13893}
13894
13895// OrigErr always returns nil, satisfies awserr.Error interface.
13896func (s *CommitDoesNotExistException) OrigErr() error {
13897	return nil
13898}
13899
13900func (s *CommitDoesNotExistException) Error() string {
13901	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13902}
13903
13904// Status code returns the HTTP status code for the request's response error.
13905func (s *CommitDoesNotExistException) StatusCode() int {
13906	return s.RespMetadata.StatusCode
13907}
13908
13909// RequestID returns the service's response RequestID for request.
13910func (s *CommitDoesNotExistException) RequestID() string {
13911	return s.RespMetadata.RequestID
13912}
13913
13914// The specified commit ID does not exist.
13915type CommitIdDoesNotExistException struct {
13916	_            struct{}                  `type:"structure"`
13917	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13918
13919	Message_ *string `locationName:"message" type:"string"`
13920}
13921
13922// String returns the string representation
13923func (s CommitIdDoesNotExistException) String() string {
13924	return awsutil.Prettify(s)
13925}
13926
13927// GoString returns the string representation
13928func (s CommitIdDoesNotExistException) GoString() string {
13929	return s.String()
13930}
13931
13932func newErrorCommitIdDoesNotExistException(v protocol.ResponseMetadata) error {
13933	return &CommitIdDoesNotExistException{
13934		RespMetadata: v,
13935	}
13936}
13937
13938// Code returns the exception type name.
13939func (s *CommitIdDoesNotExistException) Code() string {
13940	return "CommitIdDoesNotExistException"
13941}
13942
13943// Message returns the exception's message.
13944func (s *CommitIdDoesNotExistException) Message() string {
13945	if s.Message_ != nil {
13946		return *s.Message_
13947	}
13948	return ""
13949}
13950
13951// OrigErr always returns nil, satisfies awserr.Error interface.
13952func (s *CommitIdDoesNotExistException) OrigErr() error {
13953	return nil
13954}
13955
13956func (s *CommitIdDoesNotExistException) Error() string {
13957	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
13958}
13959
13960// Status code returns the HTTP status code for the request's response error.
13961func (s *CommitIdDoesNotExistException) StatusCode() int {
13962	return s.RespMetadata.StatusCode
13963}
13964
13965// RequestID returns the service's response RequestID for request.
13966func (s *CommitIdDoesNotExistException) RequestID() string {
13967	return s.RespMetadata.RequestID
13968}
13969
13970// A commit ID was not specified.
13971type CommitIdRequiredException struct {
13972	_            struct{}                  `type:"structure"`
13973	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
13974
13975	Message_ *string `locationName:"message" type:"string"`
13976}
13977
13978// String returns the string representation
13979func (s CommitIdRequiredException) String() string {
13980	return awsutil.Prettify(s)
13981}
13982
13983// GoString returns the string representation
13984func (s CommitIdRequiredException) GoString() string {
13985	return s.String()
13986}
13987
13988func newErrorCommitIdRequiredException(v protocol.ResponseMetadata) error {
13989	return &CommitIdRequiredException{
13990		RespMetadata: v,
13991	}
13992}
13993
13994// Code returns the exception type name.
13995func (s *CommitIdRequiredException) Code() string {
13996	return "CommitIdRequiredException"
13997}
13998
13999// Message returns the exception's message.
14000func (s *CommitIdRequiredException) Message() string {
14001	if s.Message_ != nil {
14002		return *s.Message_
14003	}
14004	return ""
14005}
14006
14007// OrigErr always returns nil, satisfies awserr.Error interface.
14008func (s *CommitIdRequiredException) OrigErr() error {
14009	return nil
14010}
14011
14012func (s *CommitIdRequiredException) Error() string {
14013	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
14014}
14015
14016// Status code returns the HTTP status code for the request's response error.
14017func (s *CommitIdRequiredException) StatusCode() int {
14018	return s.RespMetadata.StatusCode
14019}
14020
14021// RequestID returns the service's response RequestID for request.
14022func (s *CommitIdRequiredException) RequestID() string {
14023	return s.RespMetadata.RequestID
14024}
14025
14026// The maximum number of allowed commit IDs in a batch request is 100. Verify
14027// that your batch requests contains no more than 100 commit IDs, and then try
14028// again.
14029type CommitIdsLimitExceededException struct {
14030	_            struct{}                  `type:"structure"`
14031	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
14032
14033	Message_ *string `locationName:"message" type:"string"`
14034}
14035
14036// String returns the string representation
14037func (s CommitIdsLimitExceededException) String() string {
14038	return awsutil.Prettify(s)
14039}
14040
14041// GoString returns the string representation
14042func (s CommitIdsLimitExceededException) GoString() string {
14043	return s.String()
14044}
14045
14046func newErrorCommitIdsLimitExceededException(v protocol.ResponseMetadata) error {
14047	return &CommitIdsLimitExceededException{
14048		RespMetadata: v,
14049	}
14050}
14051
14052// Code returns the exception type name.
14053func (s *CommitIdsLimitExceededException) Code() string {
14054	return "CommitIdsLimitExceededException"
14055}
14056
14057// Message returns the exception's message.
14058func (s *CommitIdsLimitExceededException) Message() string {
14059	if s.Message_ != nil {
14060		return *s.Message_
14061	}
14062	return ""
14063}
14064
14065// OrigErr always returns nil, satisfies awserr.Error interface.
14066func (s *CommitIdsLimitExceededException) OrigErr() error {
14067	return nil
14068}
14069
14070func (s *CommitIdsLimitExceededException) Error() string {
14071	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
14072}
14073
14074// Status code returns the HTTP status code for the request's response error.
14075func (s *CommitIdsLimitExceededException) StatusCode() int {
14076	return s.RespMetadata.StatusCode
14077}
14078
14079// RequestID returns the service's response RequestID for request.
14080func (s *CommitIdsLimitExceededException) RequestID() string {
14081	return s.RespMetadata.RequestID
14082}
14083
14084// A list of commit IDs is required, but was either not specified or the list
14085// was empty.
14086type CommitIdsListRequiredException struct {
14087	_            struct{}                  `type:"structure"`
14088	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
14089
14090	Message_ *string `locationName:"message" type:"string"`
14091}
14092
14093// String returns the string representation
14094func (s CommitIdsListRequiredException) String() string {
14095	return awsutil.Prettify(s)
14096}
14097
14098// GoString returns the string representation
14099func (s CommitIdsListRequiredException) GoString() string {
14100	return s.String()
14101}
14102
14103func newErrorCommitIdsListRequiredException(v protocol.ResponseMetadata) error {
14104	return &CommitIdsListRequiredException{
14105		RespMetadata: v,
14106	}
14107}
14108
14109// Code returns the exception type name.
14110func (s *CommitIdsListRequiredException) Code() string {
14111	return "CommitIdsListRequiredException"
14112}
14113
14114// Message returns the exception's message.
14115func (s *CommitIdsListRequiredException) Message() string {
14116	if s.Message_ != nil {
14117		return *s.Message_
14118	}
14119	return ""
14120}
14121
14122// OrigErr always returns nil, satisfies awserr.Error interface.
14123func (s *CommitIdsListRequiredException) OrigErr() error {
14124	return nil
14125}
14126
14127func (s *CommitIdsListRequiredException) Error() string {
14128	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
14129}
14130
14131// Status code returns the HTTP status code for the request's response error.
14132func (s *CommitIdsListRequiredException) StatusCode() int {
14133	return s.RespMetadata.StatusCode
14134}
14135
14136// RequestID returns the service's response RequestID for request.
14137func (s *CommitIdsListRequiredException) RequestID() string {
14138	return s.RespMetadata.RequestID
14139}
14140
14141// The commit message is too long. Provide a shorter string.
14142type CommitMessageLengthExceededException struct {
14143	_            struct{}                  `type:"structure"`
14144	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
14145
14146	Message_ *string `locationName:"message" type:"string"`
14147}
14148
14149// String returns the string representation
14150func (s CommitMessageLengthExceededException) String() string {
14151	return awsutil.Prettify(s)
14152}
14153
14154// GoString returns the string representation
14155func (s CommitMessageLengthExceededException) GoString() string {
14156	return s.String()
14157}
14158
14159func newErrorCommitMessageLengthExceededException(v protocol.ResponseMetadata) error {
14160	return &CommitMessageLengthExceededException{
14161		RespMetadata: v,
14162	}
14163}
14164
14165// Code returns the exception type name.
14166func (s *CommitMessageLengthExceededException) Code() string {
14167	return "CommitMessageLengthExceededException"
14168}
14169
14170// Message returns the exception's message.
14171func (s *CommitMessageLengthExceededException) Message() string {
14172	if s.Message_ != nil {
14173		return *s.Message_
14174	}
14175	return ""
14176}
14177
14178// OrigErr always returns nil, satisfies awserr.Error interface.
14179func (s *CommitMessageLengthExceededException) OrigErr() error {
14180	return nil
14181}
14182
14183func (s *CommitMessageLengthExceededException) Error() string {
14184	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
14185}
14186
14187// Status code returns the HTTP status code for the request's response error.
14188func (s *CommitMessageLengthExceededException) StatusCode() int {
14189	return s.RespMetadata.StatusCode
14190}
14191
14192// RequestID returns the service's response RequestID for request.
14193func (s *CommitMessageLengthExceededException) RequestID() string {
14194	return s.RespMetadata.RequestID
14195}
14196
14197// A commit was not specified.
14198type CommitRequiredException struct {
14199	_            struct{}                  `type:"structure"`
14200	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
14201
14202	Message_ *string `locationName:"message" type:"string"`
14203}
14204
14205// String returns the string representation
14206func (s CommitRequiredException) String() string {
14207	return awsutil.Prettify(s)
14208}
14209
14210// GoString returns the string representation
14211func (s CommitRequiredException) GoString() string {
14212	return s.String()
14213}
14214
14215func newErrorCommitRequiredException(v protocol.ResponseMetadata) error {
14216	return &CommitRequiredException{
14217		RespMetadata: v,
14218	}
14219}
14220
14221// Code returns the exception type name.
14222func (s *CommitRequiredException) Code() string {
14223	return "CommitRequiredException"
14224}
14225
14226// Message returns the exception's message.
14227func (s *CommitRequiredException) Message() string {
14228	if s.Message_ != nil {
14229		return *s.Message_
14230	}
14231	return ""
14232}
14233
14234// OrigErr always returns nil, satisfies awserr.Error interface.
14235func (s *CommitRequiredException) OrigErr() error {
14236	return nil
14237}
14238
14239func (s *CommitRequiredException) Error() string {
14240	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
14241}
14242
14243// Status code returns the HTTP status code for the request's response error.
14244func (s *CommitRequiredException) StatusCode() int {
14245	return s.RespMetadata.StatusCode
14246}
14247
14248// RequestID returns the service's response RequestID for request.
14249func (s *CommitRequiredException) RequestID() string {
14250	return s.RespMetadata.RequestID
14251}
14252
14253// The merge cannot be completed because the target branch has been modified.
14254// Another user might have modified the target branch while the merge was in
14255// progress. Wait a few minutes, and then try again.
14256type ConcurrentReferenceUpdateException struct {
14257	_            struct{}                  `type:"structure"`
14258	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
14259
14260	Message_ *string `locationName:"message" type:"string"`
14261}
14262
14263// String returns the string representation
14264func (s ConcurrentReferenceUpdateException) String() string {
14265	return awsutil.Prettify(s)
14266}
14267
14268// GoString returns the string representation
14269func (s ConcurrentReferenceUpdateException) GoString() string {
14270	return s.String()
14271}
14272
14273func newErrorConcurrentReferenceUpdateException(v protocol.ResponseMetadata) error {
14274	return &ConcurrentReferenceUpdateException{
14275		RespMetadata: v,
14276	}
14277}
14278
14279// Code returns the exception type name.
14280func (s *ConcurrentReferenceUpdateException) Code() string {
14281	return "ConcurrentReferenceUpdateException"
14282}
14283
14284// Message returns the exception's message.
14285func (s *ConcurrentReferenceUpdateException) Message() string {
14286	if s.Message_ != nil {
14287		return *s.Message_
14288	}
14289	return ""
14290}
14291
14292// OrigErr always returns nil, satisfies awserr.Error interface.
14293func (s *ConcurrentReferenceUpdateException) OrigErr() error {
14294	return nil
14295}
14296
14297func (s *ConcurrentReferenceUpdateException) Error() string {
14298	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
14299}
14300
14301// Status code returns the HTTP status code for the request's response error.
14302func (s *ConcurrentReferenceUpdateException) StatusCode() int {
14303	return s.RespMetadata.StatusCode
14304}
14305
14306// RequestID returns the service's response RequestID for request.
14307func (s *ConcurrentReferenceUpdateException) RequestID() string {
14308	return s.RespMetadata.RequestID
14309}
14310
14311// Information about conflicts in a merge operation.
14312type Conflict struct {
14313	_ struct{} `type:"structure"`
14314
14315	// Metadata about a conflict in a merge operation.
14316	ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure"`
14317
14318	// A list of hunks that contain the differences between files or lines causing
14319	// the conflict.
14320	MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list"`
14321}
14322
14323// String returns the string representation
14324func (s Conflict) String() string {
14325	return awsutil.Prettify(s)
14326}
14327
14328// GoString returns the string representation
14329func (s Conflict) GoString() string {
14330	return s.String()
14331}
14332
14333// SetConflictMetadata sets the ConflictMetadata field's value.
14334func (s *Conflict) SetConflictMetadata(v *ConflictMetadata) *Conflict {
14335	s.ConflictMetadata = v
14336	return s
14337}
14338
14339// SetMergeHunks sets the MergeHunks field's value.
14340func (s *Conflict) SetMergeHunks(v []*MergeHunk) *Conflict {
14341	s.MergeHunks = v
14342	return s
14343}
14344
14345// Information about the metadata for a conflict in a merge operation.
14346type ConflictMetadata struct {
14347	_ struct{} `type:"structure"`
14348
14349	// A boolean value indicating whether there are conflicts in the content of
14350	// a file.
14351	ContentConflict *bool `locationName:"contentConflict" type:"boolean"`
14352
14353	// A boolean value indicating whether there are conflicts in the file mode of
14354	// a file.
14355	FileModeConflict *bool `locationName:"fileModeConflict" type:"boolean"`
14356
14357	// The file modes of the file in the source, destination, and base of the merge.
14358	FileModes *FileModes `locationName:"fileModes" type:"structure"`
14359
14360	// The path of the file that contains conflicts.
14361	FilePath *string `locationName:"filePath" type:"string"`
14362
14363	// The file sizes of the file in the source, destination, and base of the merge.
14364	FileSizes *FileSizes `locationName:"fileSizes" type:"structure"`
14365
14366	// A boolean value (true or false) indicating whether the file is binary or
14367	// textual in the source, destination, and base of the merge.
14368	IsBinaryFile *IsBinaryFile `locationName:"isBinaryFile" type:"structure"`
14369
14370	// Whether an add, modify, or delete operation caused the conflict between the
14371	// source and destination of the merge.
14372	MergeOperations *MergeOperations `locationName:"mergeOperations" type:"structure"`
14373
14374	// The number of conflicts, including both hunk conflicts and metadata conflicts.
14375	NumberOfConflicts *int64 `locationName:"numberOfConflicts" type:"integer"`
14376
14377	// A boolean value (true or false) indicating whether there are conflicts between
14378	// the branches in the object type of a file, folder, or submodule.
14379	ObjectTypeConflict *bool `locationName:"objectTypeConflict" type:"boolean"`
14380
14381	// Information about any object type conflicts in a merge operation.
14382	ObjectTypes *ObjectTypes `locationName:"objectTypes" type:"structure"`
14383}
14384
14385// String returns the string representation
14386func (s ConflictMetadata) String() string {
14387	return awsutil.Prettify(s)
14388}
14389
14390// GoString returns the string representation
14391func (s ConflictMetadata) GoString() string {
14392	return s.String()
14393}
14394
14395// SetContentConflict sets the ContentConflict field's value.
14396func (s *ConflictMetadata) SetContentConflict(v bool) *ConflictMetadata {
14397	s.ContentConflict = &v
14398	return s
14399}
14400
14401// SetFileModeConflict sets the FileModeConflict field's value.
14402func (s *ConflictMetadata) SetFileModeConflict(v bool) *ConflictMetadata {
14403	s.FileModeConflict = &v
14404	return s
14405}
14406
14407// SetFileModes sets the FileModes field's value.
14408func (s *ConflictMetadata) SetFileModes(v *FileModes) *ConflictMetadata {
14409	s.FileModes = v
14410	return s
14411}
14412
14413// SetFilePath sets the FilePath field's value.
14414func (s *ConflictMetadata) SetFilePath(v string) *ConflictMetadata {
14415	s.FilePath = &v
14416	return s
14417}
14418
14419// SetFileSizes sets the FileSizes field's value.
14420func (s *ConflictMetadata) SetFileSizes(v *FileSizes) *ConflictMetadata {
14421	s.FileSizes = v
14422	return s
14423}
14424
14425// SetIsBinaryFile sets the IsBinaryFile field's value.
14426func (s *ConflictMetadata) SetIsBinaryFile(v *IsBinaryFile) *ConflictMetadata {
14427	s.IsBinaryFile = v
14428	return s
14429}
14430
14431// SetMergeOperations sets the MergeOperations field's value.
14432func (s *ConflictMetadata) SetMergeOperations(v *MergeOperations) *ConflictMetadata {
14433	s.MergeOperations = v
14434	return s
14435}
14436
14437// SetNumberOfConflicts sets the NumberOfConflicts field's value.
14438func (s *ConflictMetadata) SetNumberOfConflicts(v int64) *ConflictMetadata {
14439	s.NumberOfConflicts = &v
14440	return s
14441}
14442
14443// SetObjectTypeConflict sets the ObjectTypeConflict field's value.
14444func (s *ConflictMetadata) SetObjectTypeConflict(v bool) *ConflictMetadata {
14445	s.ObjectTypeConflict = &v
14446	return s
14447}
14448
14449// SetObjectTypes sets the ObjectTypes field's value.
14450func (s *ConflictMetadata) SetObjectTypes(v *ObjectTypes) *ConflictMetadata {
14451	s.ObjectTypes = v
14452	return s
14453}
14454
14455// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
14456// when resolving conflicts during a merge.
14457type ConflictResolution struct {
14458	_ struct{} `type:"structure"`
14459
14460	// Files to be deleted as part of the merge conflict resolution.
14461	DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"`
14462
14463	// Files to have content replaced as part of the merge conflict resolution.
14464	ReplaceContents []*ReplaceContentEntry `locationName:"replaceContents" type:"list"`
14465
14466	// File modes that are set as part of the merge conflict resolution.
14467	SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"`
14468}
14469
14470// String returns the string representation
14471func (s ConflictResolution) String() string {
14472	return awsutil.Prettify(s)
14473}
14474
14475// GoString returns the string representation
14476func (s ConflictResolution) GoString() string {
14477	return s.String()
14478}
14479
14480// Validate inspects the fields of the type to determine if they are valid.
14481func (s *ConflictResolution) Validate() error {
14482	invalidParams := request.ErrInvalidParams{Context: "ConflictResolution"}
14483	if s.DeleteFiles != nil {
14484		for i, v := range s.DeleteFiles {
14485			if v == nil {
14486				continue
14487			}
14488			if err := v.Validate(); err != nil {
14489				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams))
14490			}
14491		}
14492	}
14493	if s.ReplaceContents != nil {
14494		for i, v := range s.ReplaceContents {
14495			if v == nil {
14496				continue
14497			}
14498			if err := v.Validate(); err != nil {
14499				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplaceContents", i), err.(request.ErrInvalidParams))
14500			}
14501		}
14502	}
14503	if s.SetFileModes != nil {
14504		for i, v := range s.SetFileModes {
14505			if v == nil {
14506				continue
14507			}
14508			if err := v.Validate(); err != nil {
14509				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams))
14510			}
14511		}
14512	}
14513
14514	if invalidParams.Len() > 0 {
14515		return invalidParams
14516	}
14517	return nil
14518}
14519
14520// SetDeleteFiles sets the DeleteFiles field's value.
14521func (s *ConflictResolution) SetDeleteFiles(v []*DeleteFileEntry) *ConflictResolution {
14522	s.DeleteFiles = v
14523	return s
14524}
14525
14526// SetReplaceContents sets the ReplaceContents field's value.
14527func (s *ConflictResolution) SetReplaceContents(v []*ReplaceContentEntry) *ConflictResolution {
14528	s.ReplaceContents = v
14529	return s
14530}
14531
14532// SetSetFileModes sets the SetFileModes field's value.
14533func (s *ConflictResolution) SetSetFileModes(v []*SetFileModeEntry) *ConflictResolution {
14534	s.SetFileModes = v
14535	return s
14536}
14537
14538type CreateApprovalRuleTemplateInput struct {
14539	_ struct{} `type:"structure"`
14540
14541	// The content of the approval rule that is created on pull requests in associated
14542	// repositories. If you specify one or more destination references (branches),
14543	// approval rules are created in an associated repository only if their destination
14544	// references (branches) match those specified in the template.
14545	//
14546	// When you create the content of the approval rule template, you can specify
14547	// approvers in an approval pool in one of two ways:
14548	//
14549	//    * CodeCommitApprovers: This option only requires an AWS account and a
14550	//    resource. It can be used for both IAM users and federated access users
14551	//    whose name matches the provided resource name. This is a very powerful
14552	//    option that offers a great deal of flexibility. For example, if you specify
14553	//    the AWS account 123456789012 and Mary_Major, all of the following are
14554	//    counted as approvals coming from that user: An IAM user in the account
14555	//    (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified
14556	//    in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
14557	//    This option does not recognize an active session of someone assuming the
14558	//    role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major)
14559	//    unless you include a wildcard (*Mary_Major).
14560	//
14561	//    * Fully qualified ARN: This option allows you to specify the fully qualified
14562	//    Amazon Resource Name (ARN) of the IAM user or role.
14563	//
14564	// For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers
14565	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
14566	// in the IAM User Guide.
14567	//
14568	// ApprovalRuleTemplateContent is a required field
14569	ApprovalRuleTemplateContent *string `locationName:"approvalRuleTemplateContent" min:"1" type:"string" required:"true"`
14570
14571	// The description of the approval rule template. Consider providing a description
14572	// that explains what this template does and when it might be appropriate to
14573	// associate it with repositories.
14574	ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string"`
14575
14576	// The name of the approval rule template. Provide descriptive names, because
14577	// this name is applied to the approval rules created automatically in associated
14578	// repositories.
14579	//
14580	// ApprovalRuleTemplateName is a required field
14581	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
14582}
14583
14584// String returns the string representation
14585func (s CreateApprovalRuleTemplateInput) String() string {
14586	return awsutil.Prettify(s)
14587}
14588
14589// GoString returns the string representation
14590func (s CreateApprovalRuleTemplateInput) GoString() string {
14591	return s.String()
14592}
14593
14594// Validate inspects the fields of the type to determine if they are valid.
14595func (s *CreateApprovalRuleTemplateInput) Validate() error {
14596	invalidParams := request.ErrInvalidParams{Context: "CreateApprovalRuleTemplateInput"}
14597	if s.ApprovalRuleTemplateContent == nil {
14598		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateContent"))
14599	}
14600	if s.ApprovalRuleTemplateContent != nil && len(*s.ApprovalRuleTemplateContent) < 1 {
14601		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateContent", 1))
14602	}
14603	if s.ApprovalRuleTemplateName == nil {
14604		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
14605	}
14606	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
14607		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
14608	}
14609
14610	if invalidParams.Len() > 0 {
14611		return invalidParams
14612	}
14613	return nil
14614}
14615
14616// SetApprovalRuleTemplateContent sets the ApprovalRuleTemplateContent field's value.
14617func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateContent(v string) *CreateApprovalRuleTemplateInput {
14618	s.ApprovalRuleTemplateContent = &v
14619	return s
14620}
14621
14622// SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value.
14623func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateDescription(v string) *CreateApprovalRuleTemplateInput {
14624	s.ApprovalRuleTemplateDescription = &v
14625	return s
14626}
14627
14628// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
14629func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *CreateApprovalRuleTemplateInput {
14630	s.ApprovalRuleTemplateName = &v
14631	return s
14632}
14633
14634type CreateApprovalRuleTemplateOutput struct {
14635	_ struct{} `type:"structure"`
14636
14637	// The content and structure of the created approval rule template.
14638	//
14639	// ApprovalRuleTemplate is a required field
14640	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
14641}
14642
14643// String returns the string representation
14644func (s CreateApprovalRuleTemplateOutput) String() string {
14645	return awsutil.Prettify(s)
14646}
14647
14648// GoString returns the string representation
14649func (s CreateApprovalRuleTemplateOutput) GoString() string {
14650	return s.String()
14651}
14652
14653// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
14654func (s *CreateApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *CreateApprovalRuleTemplateOutput {
14655	s.ApprovalRuleTemplate = v
14656	return s
14657}
14658
14659// Represents the input of a create branch operation.
14660type CreateBranchInput struct {
14661	_ struct{} `type:"structure"`
14662
14663	// The name of the new branch to create.
14664	//
14665	// BranchName is a required field
14666	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
14667
14668	// The ID of the commit to point the new branch to.
14669	//
14670	// CommitId is a required field
14671	CommitId *string `locationName:"commitId" type:"string" required:"true"`
14672
14673	// The name of the repository in which you want to create the new branch.
14674	//
14675	// RepositoryName is a required field
14676	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
14677}
14678
14679// String returns the string representation
14680func (s CreateBranchInput) String() string {
14681	return awsutil.Prettify(s)
14682}
14683
14684// GoString returns the string representation
14685func (s CreateBranchInput) GoString() string {
14686	return s.String()
14687}
14688
14689// Validate inspects the fields of the type to determine if they are valid.
14690func (s *CreateBranchInput) Validate() error {
14691	invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"}
14692	if s.BranchName == nil {
14693		invalidParams.Add(request.NewErrParamRequired("BranchName"))
14694	}
14695	if s.BranchName != nil && len(*s.BranchName) < 1 {
14696		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
14697	}
14698	if s.CommitId == nil {
14699		invalidParams.Add(request.NewErrParamRequired("CommitId"))
14700	}
14701	if s.RepositoryName == nil {
14702		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
14703	}
14704	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
14705		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
14706	}
14707
14708	if invalidParams.Len() > 0 {
14709		return invalidParams
14710	}
14711	return nil
14712}
14713
14714// SetBranchName sets the BranchName field's value.
14715func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput {
14716	s.BranchName = &v
14717	return s
14718}
14719
14720// SetCommitId sets the CommitId field's value.
14721func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput {
14722	s.CommitId = &v
14723	return s
14724}
14725
14726// SetRepositoryName sets the RepositoryName field's value.
14727func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput {
14728	s.RepositoryName = &v
14729	return s
14730}
14731
14732type CreateBranchOutput struct {
14733	_ struct{} `type:"structure"`
14734}
14735
14736// String returns the string representation
14737func (s CreateBranchOutput) String() string {
14738	return awsutil.Prettify(s)
14739}
14740
14741// GoString returns the string representation
14742func (s CreateBranchOutput) GoString() string {
14743	return s.String()
14744}
14745
14746type CreateCommitInput struct {
14747	_ struct{} `type:"structure"`
14748
14749	// The name of the author who created the commit. This information is used as
14750	// both the author and committer for the commit.
14751	AuthorName *string `locationName:"authorName" type:"string"`
14752
14753	// The name of the branch where you create the commit.
14754	//
14755	// BranchName is a required field
14756	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
14757
14758	// The commit message you want to include in the commit. Commit messages are
14759	// limited to 256 KB. If no message is specified, a default message is used.
14760	CommitMessage *string `locationName:"commitMessage" type:"string"`
14761
14762	// The files to delete in this commit. These files still exist in earlier commits.
14763	DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"`
14764
14765	// The email address of the person who created the commit.
14766	Email *string `locationName:"email" type:"string"`
14767
14768	// If the commit contains deletions, whether to keep a folder or folder structure
14769	// if the changes leave the folders empty. If true, a ..gitkeep file is created
14770	// for empty folders. The default is false.
14771	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
14772
14773	// The ID of the commit that is the parent of the commit you create. Not required
14774	// if this is an empty repository.
14775	ParentCommitId *string `locationName:"parentCommitId" type:"string"`
14776
14777	// The files to add or update in this commit.
14778	PutFiles []*PutFileEntry `locationName:"putFiles" type:"list"`
14779
14780	// The name of the repository where you create the commit.
14781	//
14782	// RepositoryName is a required field
14783	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
14784
14785	// The file modes to update for files in this commit.
14786	SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"`
14787}
14788
14789// String returns the string representation
14790func (s CreateCommitInput) String() string {
14791	return awsutil.Prettify(s)
14792}
14793
14794// GoString returns the string representation
14795func (s CreateCommitInput) GoString() string {
14796	return s.String()
14797}
14798
14799// Validate inspects the fields of the type to determine if they are valid.
14800func (s *CreateCommitInput) Validate() error {
14801	invalidParams := request.ErrInvalidParams{Context: "CreateCommitInput"}
14802	if s.BranchName == nil {
14803		invalidParams.Add(request.NewErrParamRequired("BranchName"))
14804	}
14805	if s.BranchName != nil && len(*s.BranchName) < 1 {
14806		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
14807	}
14808	if s.RepositoryName == nil {
14809		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
14810	}
14811	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
14812		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
14813	}
14814	if s.DeleteFiles != nil {
14815		for i, v := range s.DeleteFiles {
14816			if v == nil {
14817				continue
14818			}
14819			if err := v.Validate(); err != nil {
14820				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams))
14821			}
14822		}
14823	}
14824	if s.PutFiles != nil {
14825		for i, v := range s.PutFiles {
14826			if v == nil {
14827				continue
14828			}
14829			if err := v.Validate(); err != nil {
14830				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PutFiles", i), err.(request.ErrInvalidParams))
14831			}
14832		}
14833	}
14834	if s.SetFileModes != nil {
14835		for i, v := range s.SetFileModes {
14836			if v == nil {
14837				continue
14838			}
14839			if err := v.Validate(); err != nil {
14840				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams))
14841			}
14842		}
14843	}
14844
14845	if invalidParams.Len() > 0 {
14846		return invalidParams
14847	}
14848	return nil
14849}
14850
14851// SetAuthorName sets the AuthorName field's value.
14852func (s *CreateCommitInput) SetAuthorName(v string) *CreateCommitInput {
14853	s.AuthorName = &v
14854	return s
14855}
14856
14857// SetBranchName sets the BranchName field's value.
14858func (s *CreateCommitInput) SetBranchName(v string) *CreateCommitInput {
14859	s.BranchName = &v
14860	return s
14861}
14862
14863// SetCommitMessage sets the CommitMessage field's value.
14864func (s *CreateCommitInput) SetCommitMessage(v string) *CreateCommitInput {
14865	s.CommitMessage = &v
14866	return s
14867}
14868
14869// SetDeleteFiles sets the DeleteFiles field's value.
14870func (s *CreateCommitInput) SetDeleteFiles(v []*DeleteFileEntry) *CreateCommitInput {
14871	s.DeleteFiles = v
14872	return s
14873}
14874
14875// SetEmail sets the Email field's value.
14876func (s *CreateCommitInput) SetEmail(v string) *CreateCommitInput {
14877	s.Email = &v
14878	return s
14879}
14880
14881// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
14882func (s *CreateCommitInput) SetKeepEmptyFolders(v bool) *CreateCommitInput {
14883	s.KeepEmptyFolders = &v
14884	return s
14885}
14886
14887// SetParentCommitId sets the ParentCommitId field's value.
14888func (s *CreateCommitInput) SetParentCommitId(v string) *CreateCommitInput {
14889	s.ParentCommitId = &v
14890	return s
14891}
14892
14893// SetPutFiles sets the PutFiles field's value.
14894func (s *CreateCommitInput) SetPutFiles(v []*PutFileEntry) *CreateCommitInput {
14895	s.PutFiles = v
14896	return s
14897}
14898
14899// SetRepositoryName sets the RepositoryName field's value.
14900func (s *CreateCommitInput) SetRepositoryName(v string) *CreateCommitInput {
14901	s.RepositoryName = &v
14902	return s
14903}
14904
14905// SetSetFileModes sets the SetFileModes field's value.
14906func (s *CreateCommitInput) SetSetFileModes(v []*SetFileModeEntry) *CreateCommitInput {
14907	s.SetFileModes = v
14908	return s
14909}
14910
14911type CreateCommitOutput struct {
14912	_ struct{} `type:"structure"`
14913
14914	// The full commit ID of the commit that contains your committed file changes.
14915	CommitId *string `locationName:"commitId" type:"string"`
14916
14917	// The files added as part of the committed file changes.
14918	FilesAdded []*FileMetadata `locationName:"filesAdded" type:"list"`
14919
14920	// The files deleted as part of the committed file changes.
14921	FilesDeleted []*FileMetadata `locationName:"filesDeleted" type:"list"`
14922
14923	// The files updated as part of the commited file changes.
14924	FilesUpdated []*FileMetadata `locationName:"filesUpdated" type:"list"`
14925
14926	// The full SHA-1 pointer of the tree information for the commit that contains
14927	// the commited file changes.
14928	TreeId *string `locationName:"treeId" type:"string"`
14929}
14930
14931// String returns the string representation
14932func (s CreateCommitOutput) String() string {
14933	return awsutil.Prettify(s)
14934}
14935
14936// GoString returns the string representation
14937func (s CreateCommitOutput) GoString() string {
14938	return s.String()
14939}
14940
14941// SetCommitId sets the CommitId field's value.
14942func (s *CreateCommitOutput) SetCommitId(v string) *CreateCommitOutput {
14943	s.CommitId = &v
14944	return s
14945}
14946
14947// SetFilesAdded sets the FilesAdded field's value.
14948func (s *CreateCommitOutput) SetFilesAdded(v []*FileMetadata) *CreateCommitOutput {
14949	s.FilesAdded = v
14950	return s
14951}
14952
14953// SetFilesDeleted sets the FilesDeleted field's value.
14954func (s *CreateCommitOutput) SetFilesDeleted(v []*FileMetadata) *CreateCommitOutput {
14955	s.FilesDeleted = v
14956	return s
14957}
14958
14959// SetFilesUpdated sets the FilesUpdated field's value.
14960func (s *CreateCommitOutput) SetFilesUpdated(v []*FileMetadata) *CreateCommitOutput {
14961	s.FilesUpdated = v
14962	return s
14963}
14964
14965// SetTreeId sets the TreeId field's value.
14966func (s *CreateCommitOutput) SetTreeId(v string) *CreateCommitOutput {
14967	s.TreeId = &v
14968	return s
14969}
14970
14971type CreatePullRequestApprovalRuleInput struct {
14972	_ struct{} `type:"structure"`
14973
14974	// The content of the approval rule, including the number of approvals needed
14975	// and the structure of an approval pool defined for approvals, if any. For
14976	// more information about approval pools, see the AWS CodeCommit User Guide.
14977	//
14978	// When you create the content of the approval rule, you can specify approvers
14979	// in an approval pool in one of two ways:
14980	//
14981	//    * CodeCommitApprovers: This option only requires an AWS account and a
14982	//    resource. It can be used for both IAM users and federated access users
14983	//    whose name matches the provided resource name. This is a very powerful
14984	//    option that offers a great deal of flexibility. For example, if you specify
14985	//    the AWS account 123456789012 and Mary_Major, all of the following would
14986	//    be counted as approvals coming from that user: An IAM user in the account
14987	//    (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified
14988	//    in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
14989	//    This option does not recognize an active session of someone assuming the
14990	//    role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major)
14991	//    unless you include a wildcard (*Mary_Major).
14992	//
14993	//    * Fully qualified ARN: This option allows you to specify the fully qualified
14994	//    Amazon Resource Name (ARN) of the IAM user or role.
14995	//
14996	// For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers
14997	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
14998	// in the IAM User Guide.
14999	//
15000	// ApprovalRuleContent is a required field
15001	ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string" required:"true"`
15002
15003	// The name for the approval rule.
15004	//
15005	// ApprovalRuleName is a required field
15006	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"`
15007
15008	// The system-generated ID of the pull request for which you want to create
15009	// the approval rule.
15010	//
15011	// PullRequestId is a required field
15012	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
15013}
15014
15015// String returns the string representation
15016func (s CreatePullRequestApprovalRuleInput) String() string {
15017	return awsutil.Prettify(s)
15018}
15019
15020// GoString returns the string representation
15021func (s CreatePullRequestApprovalRuleInput) GoString() string {
15022	return s.String()
15023}
15024
15025// Validate inspects the fields of the type to determine if they are valid.
15026func (s *CreatePullRequestApprovalRuleInput) Validate() error {
15027	invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestApprovalRuleInput"}
15028	if s.ApprovalRuleContent == nil {
15029		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleContent"))
15030	}
15031	if s.ApprovalRuleContent != nil && len(*s.ApprovalRuleContent) < 1 {
15032		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleContent", 1))
15033	}
15034	if s.ApprovalRuleName == nil {
15035		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName"))
15036	}
15037	if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 {
15038		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1))
15039	}
15040	if s.PullRequestId == nil {
15041		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
15042	}
15043
15044	if invalidParams.Len() > 0 {
15045		return invalidParams
15046	}
15047	return nil
15048}
15049
15050// SetApprovalRuleContent sets the ApprovalRuleContent field's value.
15051func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleContent(v string) *CreatePullRequestApprovalRuleInput {
15052	s.ApprovalRuleContent = &v
15053	return s
15054}
15055
15056// SetApprovalRuleName sets the ApprovalRuleName field's value.
15057func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *CreatePullRequestApprovalRuleInput {
15058	s.ApprovalRuleName = &v
15059	return s
15060}
15061
15062// SetPullRequestId sets the PullRequestId field's value.
15063func (s *CreatePullRequestApprovalRuleInput) SetPullRequestId(v string) *CreatePullRequestApprovalRuleInput {
15064	s.PullRequestId = &v
15065	return s
15066}
15067
15068type CreatePullRequestApprovalRuleOutput struct {
15069	_ struct{} `type:"structure"`
15070
15071	// Information about the created approval rule.
15072	//
15073	// ApprovalRule is a required field
15074	ApprovalRule *ApprovalRule `locationName:"approvalRule" type:"structure" required:"true"`
15075}
15076
15077// String returns the string representation
15078func (s CreatePullRequestApprovalRuleOutput) String() string {
15079	return awsutil.Prettify(s)
15080}
15081
15082// GoString returns the string representation
15083func (s CreatePullRequestApprovalRuleOutput) GoString() string {
15084	return s.String()
15085}
15086
15087// SetApprovalRule sets the ApprovalRule field's value.
15088func (s *CreatePullRequestApprovalRuleOutput) SetApprovalRule(v *ApprovalRule) *CreatePullRequestApprovalRuleOutput {
15089	s.ApprovalRule = v
15090	return s
15091}
15092
15093type CreatePullRequestInput struct {
15094	_ struct{} `type:"structure"`
15095
15096	// A unique, client-generated idempotency token that, when provided in a request,
15097	// ensures the request cannot be repeated with a changed parameter. If a request
15098	// is received with the same parameters and a token is included, the request
15099	// returns information about the initial request that used that token.
15100	//
15101	// The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK,
15102	// an idempotency token is created for you.
15103	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
15104
15105	// A description of the pull request.
15106	Description *string `locationName:"description" type:"string"`
15107
15108	// The targets for the pull request, including the source of the code to be
15109	// reviewed (the source branch) and the destination where the creator of the
15110	// pull request intends the code to be merged after the pull request is closed
15111	// (the destination branch).
15112	//
15113	// Targets is a required field
15114	Targets []*Target `locationName:"targets" type:"list" required:"true"`
15115
15116	// The title of the pull request. This title is used to identify the pull request
15117	// to other users in the repository.
15118	//
15119	// Title is a required field
15120	Title *string `locationName:"title" type:"string" required:"true"`
15121}
15122
15123// String returns the string representation
15124func (s CreatePullRequestInput) String() string {
15125	return awsutil.Prettify(s)
15126}
15127
15128// GoString returns the string representation
15129func (s CreatePullRequestInput) GoString() string {
15130	return s.String()
15131}
15132
15133// Validate inspects the fields of the type to determine if they are valid.
15134func (s *CreatePullRequestInput) Validate() error {
15135	invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestInput"}
15136	if s.Targets == nil {
15137		invalidParams.Add(request.NewErrParamRequired("Targets"))
15138	}
15139	if s.Title == nil {
15140		invalidParams.Add(request.NewErrParamRequired("Title"))
15141	}
15142	if s.Targets != nil {
15143		for i, v := range s.Targets {
15144			if v == nil {
15145				continue
15146			}
15147			if err := v.Validate(); err != nil {
15148				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
15149			}
15150		}
15151	}
15152
15153	if invalidParams.Len() > 0 {
15154		return invalidParams
15155	}
15156	return nil
15157}
15158
15159// SetClientRequestToken sets the ClientRequestToken field's value.
15160func (s *CreatePullRequestInput) SetClientRequestToken(v string) *CreatePullRequestInput {
15161	s.ClientRequestToken = &v
15162	return s
15163}
15164
15165// SetDescription sets the Description field's value.
15166func (s *CreatePullRequestInput) SetDescription(v string) *CreatePullRequestInput {
15167	s.Description = &v
15168	return s
15169}
15170
15171// SetTargets sets the Targets field's value.
15172func (s *CreatePullRequestInput) SetTargets(v []*Target) *CreatePullRequestInput {
15173	s.Targets = v
15174	return s
15175}
15176
15177// SetTitle sets the Title field's value.
15178func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput {
15179	s.Title = &v
15180	return s
15181}
15182
15183type CreatePullRequestOutput struct {
15184	_ struct{} `type:"structure"`
15185
15186	// Information about the newly created pull request.
15187	//
15188	// PullRequest is a required field
15189	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
15190}
15191
15192// String returns the string representation
15193func (s CreatePullRequestOutput) String() string {
15194	return awsutil.Prettify(s)
15195}
15196
15197// GoString returns the string representation
15198func (s CreatePullRequestOutput) GoString() string {
15199	return s.String()
15200}
15201
15202// SetPullRequest sets the PullRequest field's value.
15203func (s *CreatePullRequestOutput) SetPullRequest(v *PullRequest) *CreatePullRequestOutput {
15204	s.PullRequest = v
15205	return s
15206}
15207
15208// Represents the input of a create repository operation.
15209type CreateRepositoryInput struct {
15210	_ struct{} `type:"structure"`
15211
15212	// A comment or description about the new repository.
15213	//
15214	// The description field for a repository accepts all HTML characters and all
15215	// valid Unicode characters. Applications that do not HTML-encode the description
15216	// and display it in a webpage can expose users to potentially malicious code.
15217	// Make sure that you HTML-encode the description field in any application that
15218	// uses this API to display the repository description on a webpage.
15219	RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
15220
15221	// The name of the new repository to be created.
15222	//
15223	// The repository name must be unique across the calling AWS account. Repository
15224	// names are limited to 100 alphanumeric, dash, and underscore characters, and
15225	// cannot include certain characters. For more information about the limits
15226	// on repository names, see Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
15227	// in the AWS CodeCommit User Guide. The suffix .git is prohibited.
15228	//
15229	// RepositoryName is a required field
15230	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
15231
15232	// One or more tag key-value pairs to use when tagging this repository.
15233	Tags map[string]*string `locationName:"tags" type:"map"`
15234}
15235
15236// String returns the string representation
15237func (s CreateRepositoryInput) String() string {
15238	return awsutil.Prettify(s)
15239}
15240
15241// GoString returns the string representation
15242func (s CreateRepositoryInput) GoString() string {
15243	return s.String()
15244}
15245
15246// Validate inspects the fields of the type to determine if they are valid.
15247func (s *CreateRepositoryInput) Validate() error {
15248	invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"}
15249	if s.RepositoryName == nil {
15250		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
15251	}
15252	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
15253		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
15254	}
15255
15256	if invalidParams.Len() > 0 {
15257		return invalidParams
15258	}
15259	return nil
15260}
15261
15262// SetRepositoryDescription sets the RepositoryDescription field's value.
15263func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput {
15264	s.RepositoryDescription = &v
15265	return s
15266}
15267
15268// SetRepositoryName sets the RepositoryName field's value.
15269func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput {
15270	s.RepositoryName = &v
15271	return s
15272}
15273
15274// SetTags sets the Tags field's value.
15275func (s *CreateRepositoryInput) SetTags(v map[string]*string) *CreateRepositoryInput {
15276	s.Tags = v
15277	return s
15278}
15279
15280// Represents the output of a create repository operation.
15281type CreateRepositoryOutput struct {
15282	_ struct{} `type:"structure"`
15283
15284	// Information about the newly created repository.
15285	RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
15286}
15287
15288// String returns the string representation
15289func (s CreateRepositoryOutput) String() string {
15290	return awsutil.Prettify(s)
15291}
15292
15293// GoString returns the string representation
15294func (s CreateRepositoryOutput) GoString() string {
15295	return s.String()
15296}
15297
15298// SetRepositoryMetadata sets the RepositoryMetadata field's value.
15299func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput {
15300	s.RepositoryMetadata = v
15301	return s
15302}
15303
15304type CreateUnreferencedMergeCommitInput struct {
15305	_ struct{} `type:"structure"`
15306
15307	// The name of the author who created the unreferenced commit. This information
15308	// is used as both the author and committer for the commit.
15309	AuthorName *string `locationName:"authorName" type:"string"`
15310
15311	// The commit message for the unreferenced commit.
15312	CommitMessage *string `locationName:"commitMessage" type:"string"`
15313
15314	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
15315	// is used, which returns a not-mergeable result if the same file has differences
15316	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
15317	// mergeable if the same file in both branches has differences on the same line.
15318	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
15319
15320	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
15321	// when resolving conflicts during a merge.
15322	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
15323
15324	// Specifies which branch to use when resolving conflicts, or whether to attempt
15325	// automatically merging two versions of a file. The default is NONE, which
15326	// requires any conflicts to be resolved manually before the merge operation
15327	// is successful.
15328	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
15329
15330	// The branch, tag, HEAD, or other fully qualified reference used to identify
15331	// a commit (for example, a branch name or a full commit ID).
15332	//
15333	// DestinationCommitSpecifier is a required field
15334	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
15335
15336	// The email address for the person who created the unreferenced commit.
15337	Email *string `locationName:"email" type:"string"`
15338
15339	// If the commit contains deletions, whether to keep a folder or folder structure
15340	// if the changes leave the folders empty. If this is specified as true, a .gitkeep
15341	// file is created for empty folders. The default is false.
15342	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
15343
15344	// The merge option or strategy you want to use to merge the code.
15345	//
15346	// MergeOption is a required field
15347	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
15348
15349	// The name of the repository where you want to create the unreferenced merge
15350	// commit.
15351	//
15352	// RepositoryName is a required field
15353	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
15354
15355	// The branch, tag, HEAD, or other fully qualified reference used to identify
15356	// a commit (for example, a branch name or a full commit ID).
15357	//
15358	// SourceCommitSpecifier is a required field
15359	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
15360}
15361
15362// String returns the string representation
15363func (s CreateUnreferencedMergeCommitInput) String() string {
15364	return awsutil.Prettify(s)
15365}
15366
15367// GoString returns the string representation
15368func (s CreateUnreferencedMergeCommitInput) GoString() string {
15369	return s.String()
15370}
15371
15372// Validate inspects the fields of the type to determine if they are valid.
15373func (s *CreateUnreferencedMergeCommitInput) Validate() error {
15374	invalidParams := request.ErrInvalidParams{Context: "CreateUnreferencedMergeCommitInput"}
15375	if s.DestinationCommitSpecifier == nil {
15376		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
15377	}
15378	if s.MergeOption == nil {
15379		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
15380	}
15381	if s.RepositoryName == nil {
15382		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
15383	}
15384	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
15385		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
15386	}
15387	if s.SourceCommitSpecifier == nil {
15388		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
15389	}
15390	if s.ConflictResolution != nil {
15391		if err := s.ConflictResolution.Validate(); err != nil {
15392			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
15393		}
15394	}
15395
15396	if invalidParams.Len() > 0 {
15397		return invalidParams
15398	}
15399	return nil
15400}
15401
15402// SetAuthorName sets the AuthorName field's value.
15403func (s *CreateUnreferencedMergeCommitInput) SetAuthorName(v string) *CreateUnreferencedMergeCommitInput {
15404	s.AuthorName = &v
15405	return s
15406}
15407
15408// SetCommitMessage sets the CommitMessage field's value.
15409func (s *CreateUnreferencedMergeCommitInput) SetCommitMessage(v string) *CreateUnreferencedMergeCommitInput {
15410	s.CommitMessage = &v
15411	return s
15412}
15413
15414// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
15415func (s *CreateUnreferencedMergeCommitInput) SetConflictDetailLevel(v string) *CreateUnreferencedMergeCommitInput {
15416	s.ConflictDetailLevel = &v
15417	return s
15418}
15419
15420// SetConflictResolution sets the ConflictResolution field's value.
15421func (s *CreateUnreferencedMergeCommitInput) SetConflictResolution(v *ConflictResolution) *CreateUnreferencedMergeCommitInput {
15422	s.ConflictResolution = v
15423	return s
15424}
15425
15426// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
15427func (s *CreateUnreferencedMergeCommitInput) SetConflictResolutionStrategy(v string) *CreateUnreferencedMergeCommitInput {
15428	s.ConflictResolutionStrategy = &v
15429	return s
15430}
15431
15432// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
15433func (s *CreateUnreferencedMergeCommitInput) SetDestinationCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput {
15434	s.DestinationCommitSpecifier = &v
15435	return s
15436}
15437
15438// SetEmail sets the Email field's value.
15439func (s *CreateUnreferencedMergeCommitInput) SetEmail(v string) *CreateUnreferencedMergeCommitInput {
15440	s.Email = &v
15441	return s
15442}
15443
15444// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
15445func (s *CreateUnreferencedMergeCommitInput) SetKeepEmptyFolders(v bool) *CreateUnreferencedMergeCommitInput {
15446	s.KeepEmptyFolders = &v
15447	return s
15448}
15449
15450// SetMergeOption sets the MergeOption field's value.
15451func (s *CreateUnreferencedMergeCommitInput) SetMergeOption(v string) *CreateUnreferencedMergeCommitInput {
15452	s.MergeOption = &v
15453	return s
15454}
15455
15456// SetRepositoryName sets the RepositoryName field's value.
15457func (s *CreateUnreferencedMergeCommitInput) SetRepositoryName(v string) *CreateUnreferencedMergeCommitInput {
15458	s.RepositoryName = &v
15459	return s
15460}
15461
15462// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
15463func (s *CreateUnreferencedMergeCommitInput) SetSourceCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput {
15464	s.SourceCommitSpecifier = &v
15465	return s
15466}
15467
15468type CreateUnreferencedMergeCommitOutput struct {
15469	_ struct{} `type:"structure"`
15470
15471	// The full commit ID of the commit that contains your merge results.
15472	CommitId *string `locationName:"commitId" type:"string"`
15473
15474	// The full SHA-1 pointer of the tree information for the commit that contains
15475	// the merge results.
15476	TreeId *string `locationName:"treeId" type:"string"`
15477}
15478
15479// String returns the string representation
15480func (s CreateUnreferencedMergeCommitOutput) String() string {
15481	return awsutil.Prettify(s)
15482}
15483
15484// GoString returns the string representation
15485func (s CreateUnreferencedMergeCommitOutput) GoString() string {
15486	return s.String()
15487}
15488
15489// SetCommitId sets the CommitId field's value.
15490func (s *CreateUnreferencedMergeCommitOutput) SetCommitId(v string) *CreateUnreferencedMergeCommitOutput {
15491	s.CommitId = &v
15492	return s
15493}
15494
15495// SetTreeId sets the TreeId field's value.
15496func (s *CreateUnreferencedMergeCommitOutput) SetTreeId(v string) *CreateUnreferencedMergeCommitOutput {
15497	s.TreeId = &v
15498	return s
15499}
15500
15501// The specified branch is the default branch for the repository, and cannot
15502// be deleted. To delete this branch, you must first set another branch as the
15503// default branch.
15504type DefaultBranchCannotBeDeletedException struct {
15505	_            struct{}                  `type:"structure"`
15506	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
15507
15508	Message_ *string `locationName:"message" type:"string"`
15509}
15510
15511// String returns the string representation
15512func (s DefaultBranchCannotBeDeletedException) String() string {
15513	return awsutil.Prettify(s)
15514}
15515
15516// GoString returns the string representation
15517func (s DefaultBranchCannotBeDeletedException) GoString() string {
15518	return s.String()
15519}
15520
15521func newErrorDefaultBranchCannotBeDeletedException(v protocol.ResponseMetadata) error {
15522	return &DefaultBranchCannotBeDeletedException{
15523		RespMetadata: v,
15524	}
15525}
15526
15527// Code returns the exception type name.
15528func (s *DefaultBranchCannotBeDeletedException) Code() string {
15529	return "DefaultBranchCannotBeDeletedException"
15530}
15531
15532// Message returns the exception's message.
15533func (s *DefaultBranchCannotBeDeletedException) Message() string {
15534	if s.Message_ != nil {
15535		return *s.Message_
15536	}
15537	return ""
15538}
15539
15540// OrigErr always returns nil, satisfies awserr.Error interface.
15541func (s *DefaultBranchCannotBeDeletedException) OrigErr() error {
15542	return nil
15543}
15544
15545func (s *DefaultBranchCannotBeDeletedException) Error() string {
15546	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
15547}
15548
15549// Status code returns the HTTP status code for the request's response error.
15550func (s *DefaultBranchCannotBeDeletedException) StatusCode() int {
15551	return s.RespMetadata.StatusCode
15552}
15553
15554// RequestID returns the service's response RequestID for request.
15555func (s *DefaultBranchCannotBeDeletedException) RequestID() string {
15556	return s.RespMetadata.RequestID
15557}
15558
15559type DeleteApprovalRuleTemplateInput struct {
15560	_ struct{} `type:"structure"`
15561
15562	// The name of the approval rule template to delete.
15563	//
15564	// ApprovalRuleTemplateName is a required field
15565	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
15566}
15567
15568// String returns the string representation
15569func (s DeleteApprovalRuleTemplateInput) String() string {
15570	return awsutil.Prettify(s)
15571}
15572
15573// GoString returns the string representation
15574func (s DeleteApprovalRuleTemplateInput) GoString() string {
15575	return s.String()
15576}
15577
15578// Validate inspects the fields of the type to determine if they are valid.
15579func (s *DeleteApprovalRuleTemplateInput) Validate() error {
15580	invalidParams := request.ErrInvalidParams{Context: "DeleteApprovalRuleTemplateInput"}
15581	if s.ApprovalRuleTemplateName == nil {
15582		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
15583	}
15584	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
15585		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
15586	}
15587
15588	if invalidParams.Len() > 0 {
15589		return invalidParams
15590	}
15591	return nil
15592}
15593
15594// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
15595func (s *DeleteApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *DeleteApprovalRuleTemplateInput {
15596	s.ApprovalRuleTemplateName = &v
15597	return s
15598}
15599
15600type DeleteApprovalRuleTemplateOutput struct {
15601	_ struct{} `type:"structure"`
15602
15603	// The system-generated ID of the deleted approval rule template. If the template
15604	// has been previously deleted, the only response is a 200 OK.
15605	//
15606	// ApprovalRuleTemplateId is a required field
15607	ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string" required:"true"`
15608}
15609
15610// String returns the string representation
15611func (s DeleteApprovalRuleTemplateOutput) String() string {
15612	return awsutil.Prettify(s)
15613}
15614
15615// GoString returns the string representation
15616func (s DeleteApprovalRuleTemplateOutput) GoString() string {
15617	return s.String()
15618}
15619
15620// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value.
15621func (s *DeleteApprovalRuleTemplateOutput) SetApprovalRuleTemplateId(v string) *DeleteApprovalRuleTemplateOutput {
15622	s.ApprovalRuleTemplateId = &v
15623	return s
15624}
15625
15626// Represents the input of a delete branch operation.
15627type DeleteBranchInput struct {
15628	_ struct{} `type:"structure"`
15629
15630	// The name of the branch to delete.
15631	//
15632	// BranchName is a required field
15633	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
15634
15635	// The name of the repository that contains the branch to be deleted.
15636	//
15637	// RepositoryName is a required field
15638	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
15639}
15640
15641// String returns the string representation
15642func (s DeleteBranchInput) String() string {
15643	return awsutil.Prettify(s)
15644}
15645
15646// GoString returns the string representation
15647func (s DeleteBranchInput) GoString() string {
15648	return s.String()
15649}
15650
15651// Validate inspects the fields of the type to determine if they are valid.
15652func (s *DeleteBranchInput) Validate() error {
15653	invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"}
15654	if s.BranchName == nil {
15655		invalidParams.Add(request.NewErrParamRequired("BranchName"))
15656	}
15657	if s.BranchName != nil && len(*s.BranchName) < 1 {
15658		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
15659	}
15660	if s.RepositoryName == nil {
15661		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
15662	}
15663	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
15664		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
15665	}
15666
15667	if invalidParams.Len() > 0 {
15668		return invalidParams
15669	}
15670	return nil
15671}
15672
15673// SetBranchName sets the BranchName field's value.
15674func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput {
15675	s.BranchName = &v
15676	return s
15677}
15678
15679// SetRepositoryName sets the RepositoryName field's value.
15680func (s *DeleteBranchInput) SetRepositoryName(v string) *DeleteBranchInput {
15681	s.RepositoryName = &v
15682	return s
15683}
15684
15685// Represents the output of a delete branch operation.
15686type DeleteBranchOutput struct {
15687	_ struct{} `type:"structure"`
15688
15689	// Information about the branch deleted by the operation, including the branch
15690	// name and the commit ID that was the tip of the branch.
15691	DeletedBranch *BranchInfo `locationName:"deletedBranch" type:"structure"`
15692}
15693
15694// String returns the string representation
15695func (s DeleteBranchOutput) String() string {
15696	return awsutil.Prettify(s)
15697}
15698
15699// GoString returns the string representation
15700func (s DeleteBranchOutput) GoString() string {
15701	return s.String()
15702}
15703
15704// SetDeletedBranch sets the DeletedBranch field's value.
15705func (s *DeleteBranchOutput) SetDeletedBranch(v *BranchInfo) *DeleteBranchOutput {
15706	s.DeletedBranch = v
15707	return s
15708}
15709
15710type DeleteCommentContentInput struct {
15711	_ struct{} `type:"structure"`
15712
15713	// The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
15714	// or GetCommentsForPullRequest.
15715	//
15716	// CommentId is a required field
15717	CommentId *string `locationName:"commentId" type:"string" required:"true"`
15718}
15719
15720// String returns the string representation
15721func (s DeleteCommentContentInput) String() string {
15722	return awsutil.Prettify(s)
15723}
15724
15725// GoString returns the string representation
15726func (s DeleteCommentContentInput) GoString() string {
15727	return s.String()
15728}
15729
15730// Validate inspects the fields of the type to determine if they are valid.
15731func (s *DeleteCommentContentInput) Validate() error {
15732	invalidParams := request.ErrInvalidParams{Context: "DeleteCommentContentInput"}
15733	if s.CommentId == nil {
15734		invalidParams.Add(request.NewErrParamRequired("CommentId"))
15735	}
15736
15737	if invalidParams.Len() > 0 {
15738		return invalidParams
15739	}
15740	return nil
15741}
15742
15743// SetCommentId sets the CommentId field's value.
15744func (s *DeleteCommentContentInput) SetCommentId(v string) *DeleteCommentContentInput {
15745	s.CommentId = &v
15746	return s
15747}
15748
15749type DeleteCommentContentOutput struct {
15750	_ struct{} `type:"structure"`
15751
15752	// Information about the comment you just deleted.
15753	Comment *Comment `locationName:"comment" type:"structure"`
15754}
15755
15756// String returns the string representation
15757func (s DeleteCommentContentOutput) String() string {
15758	return awsutil.Prettify(s)
15759}
15760
15761// GoString returns the string representation
15762func (s DeleteCommentContentOutput) GoString() string {
15763	return s.String()
15764}
15765
15766// SetComment sets the Comment field's value.
15767func (s *DeleteCommentContentOutput) SetComment(v *Comment) *DeleteCommentContentOutput {
15768	s.Comment = v
15769	return s
15770}
15771
15772// A file that is deleted as part of a commit.
15773type DeleteFileEntry struct {
15774	_ struct{} `type:"structure"`
15775
15776	// The full path of the file to be deleted, including the name of the file.
15777	//
15778	// FilePath is a required field
15779	FilePath *string `locationName:"filePath" type:"string" required:"true"`
15780}
15781
15782// String returns the string representation
15783func (s DeleteFileEntry) String() string {
15784	return awsutil.Prettify(s)
15785}
15786
15787// GoString returns the string representation
15788func (s DeleteFileEntry) GoString() string {
15789	return s.String()
15790}
15791
15792// Validate inspects the fields of the type to determine if they are valid.
15793func (s *DeleteFileEntry) Validate() error {
15794	invalidParams := request.ErrInvalidParams{Context: "DeleteFileEntry"}
15795	if s.FilePath == nil {
15796		invalidParams.Add(request.NewErrParamRequired("FilePath"))
15797	}
15798
15799	if invalidParams.Len() > 0 {
15800		return invalidParams
15801	}
15802	return nil
15803}
15804
15805// SetFilePath sets the FilePath field's value.
15806func (s *DeleteFileEntry) SetFilePath(v string) *DeleteFileEntry {
15807	s.FilePath = &v
15808	return s
15809}
15810
15811type DeleteFileInput struct {
15812	_ struct{} `type:"structure"`
15813
15814	// The name of the branch where the commit that deletes the file is made.
15815	//
15816	// BranchName is a required field
15817	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
15818
15819	// The commit message you want to include as part of deleting the file. Commit
15820	// messages are limited to 256 KB. If no message is specified, a default message
15821	// is used.
15822	CommitMessage *string `locationName:"commitMessage" type:"string"`
15823
15824	// The email address for the commit that deletes the file. If no email address
15825	// is specified, the email address is left blank.
15826	Email *string `locationName:"email" type:"string"`
15827
15828	// The fully qualified path to the file that to be deleted, including the full
15829	// name and extension of that file. For example, /examples/file.md is a fully
15830	// qualified path to a file named file.md in a folder named examples.
15831	//
15832	// FilePath is a required field
15833	FilePath *string `locationName:"filePath" type:"string" required:"true"`
15834
15835	// If a file is the only object in the folder or directory, specifies whether
15836	// to delete the folder or directory that contains the file. By default, empty
15837	// folders are deleted. This includes empty folders that are part of the directory
15838	// structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and
15839	// dir2 and dir3 are empty, deleting the last file in dir4 also deletes the
15840	// empty folders dir4, dir3, and dir2.
15841	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
15842
15843	// The name of the author of the commit that deletes the file. If no name is
15844	// specified, the user's ARN is used as the author name and committer name.
15845	Name *string `locationName:"name" type:"string"`
15846
15847	// The ID of the commit that is the tip of the branch where you want to create
15848	// the commit that deletes the file. This must be the HEAD commit for the branch.
15849	// The commit that deletes the file is created from this commit ID.
15850	//
15851	// ParentCommitId is a required field
15852	ParentCommitId *string `locationName:"parentCommitId" type:"string" required:"true"`
15853
15854	// The name of the repository that contains the file to delete.
15855	//
15856	// RepositoryName is a required field
15857	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
15858}
15859
15860// String returns the string representation
15861func (s DeleteFileInput) String() string {
15862	return awsutil.Prettify(s)
15863}
15864
15865// GoString returns the string representation
15866func (s DeleteFileInput) GoString() string {
15867	return s.String()
15868}
15869
15870// Validate inspects the fields of the type to determine if they are valid.
15871func (s *DeleteFileInput) Validate() error {
15872	invalidParams := request.ErrInvalidParams{Context: "DeleteFileInput"}
15873	if s.BranchName == nil {
15874		invalidParams.Add(request.NewErrParamRequired("BranchName"))
15875	}
15876	if s.BranchName != nil && len(*s.BranchName) < 1 {
15877		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
15878	}
15879	if s.FilePath == nil {
15880		invalidParams.Add(request.NewErrParamRequired("FilePath"))
15881	}
15882	if s.ParentCommitId == nil {
15883		invalidParams.Add(request.NewErrParamRequired("ParentCommitId"))
15884	}
15885	if s.RepositoryName == nil {
15886		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
15887	}
15888	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
15889		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
15890	}
15891
15892	if invalidParams.Len() > 0 {
15893		return invalidParams
15894	}
15895	return nil
15896}
15897
15898// SetBranchName sets the BranchName field's value.
15899func (s *DeleteFileInput) SetBranchName(v string) *DeleteFileInput {
15900	s.BranchName = &v
15901	return s
15902}
15903
15904// SetCommitMessage sets the CommitMessage field's value.
15905func (s *DeleteFileInput) SetCommitMessage(v string) *DeleteFileInput {
15906	s.CommitMessage = &v
15907	return s
15908}
15909
15910// SetEmail sets the Email field's value.
15911func (s *DeleteFileInput) SetEmail(v string) *DeleteFileInput {
15912	s.Email = &v
15913	return s
15914}
15915
15916// SetFilePath sets the FilePath field's value.
15917func (s *DeleteFileInput) SetFilePath(v string) *DeleteFileInput {
15918	s.FilePath = &v
15919	return s
15920}
15921
15922// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
15923func (s *DeleteFileInput) SetKeepEmptyFolders(v bool) *DeleteFileInput {
15924	s.KeepEmptyFolders = &v
15925	return s
15926}
15927
15928// SetName sets the Name field's value.
15929func (s *DeleteFileInput) SetName(v string) *DeleteFileInput {
15930	s.Name = &v
15931	return s
15932}
15933
15934// SetParentCommitId sets the ParentCommitId field's value.
15935func (s *DeleteFileInput) SetParentCommitId(v string) *DeleteFileInput {
15936	s.ParentCommitId = &v
15937	return s
15938}
15939
15940// SetRepositoryName sets the RepositoryName field's value.
15941func (s *DeleteFileInput) SetRepositoryName(v string) *DeleteFileInput {
15942	s.RepositoryName = &v
15943	return s
15944}
15945
15946type DeleteFileOutput struct {
15947	_ struct{} `type:"structure"`
15948
15949	// The blob ID removed from the tree as part of deleting the file.
15950	//
15951	// BlobId is a required field
15952	BlobId *string `locationName:"blobId" type:"string" required:"true"`
15953
15954	// The full commit ID of the commit that contains the change that deletes the
15955	// file.
15956	//
15957	// CommitId is a required field
15958	CommitId *string `locationName:"commitId" type:"string" required:"true"`
15959
15960	// The fully qualified path to the file to be deleted, including the full name
15961	// and extension of that file.
15962	//
15963	// FilePath is a required field
15964	FilePath *string `locationName:"filePath" type:"string" required:"true"`
15965
15966	// The full SHA-1 pointer of the tree information for the commit that contains
15967	// the delete file change.
15968	//
15969	// TreeId is a required field
15970	TreeId *string `locationName:"treeId" type:"string" required:"true"`
15971}
15972
15973// String returns the string representation
15974func (s DeleteFileOutput) String() string {
15975	return awsutil.Prettify(s)
15976}
15977
15978// GoString returns the string representation
15979func (s DeleteFileOutput) GoString() string {
15980	return s.String()
15981}
15982
15983// SetBlobId sets the BlobId field's value.
15984func (s *DeleteFileOutput) SetBlobId(v string) *DeleteFileOutput {
15985	s.BlobId = &v
15986	return s
15987}
15988
15989// SetCommitId sets the CommitId field's value.
15990func (s *DeleteFileOutput) SetCommitId(v string) *DeleteFileOutput {
15991	s.CommitId = &v
15992	return s
15993}
15994
15995// SetFilePath sets the FilePath field's value.
15996func (s *DeleteFileOutput) SetFilePath(v string) *DeleteFileOutput {
15997	s.FilePath = &v
15998	return s
15999}
16000
16001// SetTreeId sets the TreeId field's value.
16002func (s *DeleteFileOutput) SetTreeId(v string) *DeleteFileOutput {
16003	s.TreeId = &v
16004	return s
16005}
16006
16007type DeletePullRequestApprovalRuleInput struct {
16008	_ struct{} `type:"structure"`
16009
16010	// The name of the approval rule you want to delete.
16011	//
16012	// ApprovalRuleName is a required field
16013	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"`
16014
16015	// The system-generated ID of the pull request that contains the approval rule
16016	// you want to delete.
16017	//
16018	// PullRequestId is a required field
16019	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
16020}
16021
16022// String returns the string representation
16023func (s DeletePullRequestApprovalRuleInput) String() string {
16024	return awsutil.Prettify(s)
16025}
16026
16027// GoString returns the string representation
16028func (s DeletePullRequestApprovalRuleInput) GoString() string {
16029	return s.String()
16030}
16031
16032// Validate inspects the fields of the type to determine if they are valid.
16033func (s *DeletePullRequestApprovalRuleInput) Validate() error {
16034	invalidParams := request.ErrInvalidParams{Context: "DeletePullRequestApprovalRuleInput"}
16035	if s.ApprovalRuleName == nil {
16036		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName"))
16037	}
16038	if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 {
16039		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1))
16040	}
16041	if s.PullRequestId == nil {
16042		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
16043	}
16044
16045	if invalidParams.Len() > 0 {
16046		return invalidParams
16047	}
16048	return nil
16049}
16050
16051// SetApprovalRuleName sets the ApprovalRuleName field's value.
16052func (s *DeletePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *DeletePullRequestApprovalRuleInput {
16053	s.ApprovalRuleName = &v
16054	return s
16055}
16056
16057// SetPullRequestId sets the PullRequestId field's value.
16058func (s *DeletePullRequestApprovalRuleInput) SetPullRequestId(v string) *DeletePullRequestApprovalRuleInput {
16059	s.PullRequestId = &v
16060	return s
16061}
16062
16063type DeletePullRequestApprovalRuleOutput struct {
16064	_ struct{} `type:"structure"`
16065
16066	// The ID of the deleted approval rule.
16067	//
16068	// If the approval rule was deleted in an earlier API call, the response is
16069	// 200 OK without content.
16070	//
16071	// ApprovalRuleId is a required field
16072	ApprovalRuleId *string `locationName:"approvalRuleId" type:"string" required:"true"`
16073}
16074
16075// String returns the string representation
16076func (s DeletePullRequestApprovalRuleOutput) String() string {
16077	return awsutil.Prettify(s)
16078}
16079
16080// GoString returns the string representation
16081func (s DeletePullRequestApprovalRuleOutput) GoString() string {
16082	return s.String()
16083}
16084
16085// SetApprovalRuleId sets the ApprovalRuleId field's value.
16086func (s *DeletePullRequestApprovalRuleOutput) SetApprovalRuleId(v string) *DeletePullRequestApprovalRuleOutput {
16087	s.ApprovalRuleId = &v
16088	return s
16089}
16090
16091// Represents the input of a delete repository operation.
16092type DeleteRepositoryInput struct {
16093	_ struct{} `type:"structure"`
16094
16095	// The name of the repository to delete.
16096	//
16097	// RepositoryName is a required field
16098	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
16099}
16100
16101// String returns the string representation
16102func (s DeleteRepositoryInput) String() string {
16103	return awsutil.Prettify(s)
16104}
16105
16106// GoString returns the string representation
16107func (s DeleteRepositoryInput) GoString() string {
16108	return s.String()
16109}
16110
16111// Validate inspects the fields of the type to determine if they are valid.
16112func (s *DeleteRepositoryInput) Validate() error {
16113	invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"}
16114	if s.RepositoryName == nil {
16115		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
16116	}
16117	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
16118		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
16119	}
16120
16121	if invalidParams.Len() > 0 {
16122		return invalidParams
16123	}
16124	return nil
16125}
16126
16127// SetRepositoryName sets the RepositoryName field's value.
16128func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput {
16129	s.RepositoryName = &v
16130	return s
16131}
16132
16133// Represents the output of a delete repository operation.
16134type DeleteRepositoryOutput struct {
16135	_ struct{} `type:"structure"`
16136
16137	// The ID of the repository that was deleted.
16138	RepositoryId *string `locationName:"repositoryId" type:"string"`
16139}
16140
16141// String returns the string representation
16142func (s DeleteRepositoryOutput) String() string {
16143	return awsutil.Prettify(s)
16144}
16145
16146// GoString returns the string representation
16147func (s DeleteRepositoryOutput) GoString() string {
16148	return s.String()
16149}
16150
16151// SetRepositoryId sets the RepositoryId field's value.
16152func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput {
16153	s.RepositoryId = &v
16154	return s
16155}
16156
16157type DescribeMergeConflictsInput struct {
16158	_ struct{} `type:"structure"`
16159
16160	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
16161	// is used, which returns a not-mergeable result if the same file has differences
16162	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
16163	// mergeable if the same file in both branches has differences on the same line.
16164	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
16165
16166	// Specifies which branch to use when resolving conflicts, or whether to attempt
16167	// automatically merging two versions of a file. The default is NONE, which
16168	// requires any conflicts to be resolved manually before the merge operation
16169	// is successful.
16170	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
16171
16172	// The branch, tag, HEAD, or other fully qualified reference used to identify
16173	// a commit (for example, a branch name or a full commit ID).
16174	//
16175	// DestinationCommitSpecifier is a required field
16176	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
16177
16178	// The path of the target files used to describe the conflicts.
16179	//
16180	// FilePath is a required field
16181	FilePath *string `locationName:"filePath" type:"string" required:"true"`
16182
16183	// The maximum number of merge hunks to include in the output.
16184	MaxMergeHunks *int64 `locationName:"maxMergeHunks" type:"integer"`
16185
16186	// The merge option or strategy you want to use to merge the code.
16187	//
16188	// MergeOption is a required field
16189	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
16190
16191	// An enumeration token that, when provided in a request, returns the next batch
16192	// of the results.
16193	NextToken *string `locationName:"nextToken" type:"string"`
16194
16195	// The name of the repository where you want to get information about a merge
16196	// conflict.
16197	//
16198	// RepositoryName is a required field
16199	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
16200
16201	// The branch, tag, HEAD, or other fully qualified reference used to identify
16202	// a commit (for example, a branch name or a full commit ID).
16203	//
16204	// SourceCommitSpecifier is a required field
16205	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
16206}
16207
16208// String returns the string representation
16209func (s DescribeMergeConflictsInput) String() string {
16210	return awsutil.Prettify(s)
16211}
16212
16213// GoString returns the string representation
16214func (s DescribeMergeConflictsInput) GoString() string {
16215	return s.String()
16216}
16217
16218// Validate inspects the fields of the type to determine if they are valid.
16219func (s *DescribeMergeConflictsInput) Validate() error {
16220	invalidParams := request.ErrInvalidParams{Context: "DescribeMergeConflictsInput"}
16221	if s.DestinationCommitSpecifier == nil {
16222		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
16223	}
16224	if s.FilePath == nil {
16225		invalidParams.Add(request.NewErrParamRequired("FilePath"))
16226	}
16227	if s.MergeOption == nil {
16228		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
16229	}
16230	if s.RepositoryName == nil {
16231		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
16232	}
16233	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
16234		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
16235	}
16236	if s.SourceCommitSpecifier == nil {
16237		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
16238	}
16239
16240	if invalidParams.Len() > 0 {
16241		return invalidParams
16242	}
16243	return nil
16244}
16245
16246// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
16247func (s *DescribeMergeConflictsInput) SetConflictDetailLevel(v string) *DescribeMergeConflictsInput {
16248	s.ConflictDetailLevel = &v
16249	return s
16250}
16251
16252// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
16253func (s *DescribeMergeConflictsInput) SetConflictResolutionStrategy(v string) *DescribeMergeConflictsInput {
16254	s.ConflictResolutionStrategy = &v
16255	return s
16256}
16257
16258// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
16259func (s *DescribeMergeConflictsInput) SetDestinationCommitSpecifier(v string) *DescribeMergeConflictsInput {
16260	s.DestinationCommitSpecifier = &v
16261	return s
16262}
16263
16264// SetFilePath sets the FilePath field's value.
16265func (s *DescribeMergeConflictsInput) SetFilePath(v string) *DescribeMergeConflictsInput {
16266	s.FilePath = &v
16267	return s
16268}
16269
16270// SetMaxMergeHunks sets the MaxMergeHunks field's value.
16271func (s *DescribeMergeConflictsInput) SetMaxMergeHunks(v int64) *DescribeMergeConflictsInput {
16272	s.MaxMergeHunks = &v
16273	return s
16274}
16275
16276// SetMergeOption sets the MergeOption field's value.
16277func (s *DescribeMergeConflictsInput) SetMergeOption(v string) *DescribeMergeConflictsInput {
16278	s.MergeOption = &v
16279	return s
16280}
16281
16282// SetNextToken sets the NextToken field's value.
16283func (s *DescribeMergeConflictsInput) SetNextToken(v string) *DescribeMergeConflictsInput {
16284	s.NextToken = &v
16285	return s
16286}
16287
16288// SetRepositoryName sets the RepositoryName field's value.
16289func (s *DescribeMergeConflictsInput) SetRepositoryName(v string) *DescribeMergeConflictsInput {
16290	s.RepositoryName = &v
16291	return s
16292}
16293
16294// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
16295func (s *DescribeMergeConflictsInput) SetSourceCommitSpecifier(v string) *DescribeMergeConflictsInput {
16296	s.SourceCommitSpecifier = &v
16297	return s
16298}
16299
16300type DescribeMergeConflictsOutput struct {
16301	_ struct{} `type:"structure"`
16302
16303	// The commit ID of the merge base.
16304	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
16305
16306	// Contains metadata about the conflicts found in the merge.
16307	//
16308	// ConflictMetadata is a required field
16309	ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure" required:"true"`
16310
16311	// The commit ID of the destination commit specifier that was used in the merge
16312	// evaluation.
16313	//
16314	// DestinationCommitId is a required field
16315	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
16316
16317	// A list of merge hunks of the differences between the files or lines.
16318	//
16319	// MergeHunks is a required field
16320	MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list" required:"true"`
16321
16322	// An enumeration token that can be used in a request to return the next batch
16323	// of the results.
16324	NextToken *string `locationName:"nextToken" type:"string"`
16325
16326	// The commit ID of the source commit specifier that was used in the merge evaluation.
16327	//
16328	// SourceCommitId is a required field
16329	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
16330}
16331
16332// String returns the string representation
16333func (s DescribeMergeConflictsOutput) String() string {
16334	return awsutil.Prettify(s)
16335}
16336
16337// GoString returns the string representation
16338func (s DescribeMergeConflictsOutput) GoString() string {
16339	return s.String()
16340}
16341
16342// SetBaseCommitId sets the BaseCommitId field's value.
16343func (s *DescribeMergeConflictsOutput) SetBaseCommitId(v string) *DescribeMergeConflictsOutput {
16344	s.BaseCommitId = &v
16345	return s
16346}
16347
16348// SetConflictMetadata sets the ConflictMetadata field's value.
16349func (s *DescribeMergeConflictsOutput) SetConflictMetadata(v *ConflictMetadata) *DescribeMergeConflictsOutput {
16350	s.ConflictMetadata = v
16351	return s
16352}
16353
16354// SetDestinationCommitId sets the DestinationCommitId field's value.
16355func (s *DescribeMergeConflictsOutput) SetDestinationCommitId(v string) *DescribeMergeConflictsOutput {
16356	s.DestinationCommitId = &v
16357	return s
16358}
16359
16360// SetMergeHunks sets the MergeHunks field's value.
16361func (s *DescribeMergeConflictsOutput) SetMergeHunks(v []*MergeHunk) *DescribeMergeConflictsOutput {
16362	s.MergeHunks = v
16363	return s
16364}
16365
16366// SetNextToken sets the NextToken field's value.
16367func (s *DescribeMergeConflictsOutput) SetNextToken(v string) *DescribeMergeConflictsOutput {
16368	s.NextToken = &v
16369	return s
16370}
16371
16372// SetSourceCommitId sets the SourceCommitId field's value.
16373func (s *DescribeMergeConflictsOutput) SetSourceCommitId(v string) *DescribeMergeConflictsOutput {
16374	s.SourceCommitId = &v
16375	return s
16376}
16377
16378type DescribePullRequestEventsInput struct {
16379	_ struct{} `type:"structure"`
16380
16381	// The Amazon Resource Name (ARN) of the user whose actions resulted in the
16382	// event. Examples include updating the pull request with more commits or changing
16383	// the status of a pull request.
16384	ActorArn *string `locationName:"actorArn" type:"string"`
16385
16386	// A non-zero, non-negative integer used to limit the number of returned results.
16387	// The default is 100 events, which is also the maximum number of events that
16388	// can be returned in a result.
16389	MaxResults *int64 `locationName:"maxResults" type:"integer"`
16390
16391	// An enumeration token that, when provided in a request, returns the next batch
16392	// of the results.
16393	NextToken *string `locationName:"nextToken" type:"string"`
16394
16395	// Optional. The pull request event type about which you want to return information.
16396	PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"`
16397
16398	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
16399	//
16400	// PullRequestId is a required field
16401	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
16402}
16403
16404// String returns the string representation
16405func (s DescribePullRequestEventsInput) String() string {
16406	return awsutil.Prettify(s)
16407}
16408
16409// GoString returns the string representation
16410func (s DescribePullRequestEventsInput) GoString() string {
16411	return s.String()
16412}
16413
16414// Validate inspects the fields of the type to determine if they are valid.
16415func (s *DescribePullRequestEventsInput) Validate() error {
16416	invalidParams := request.ErrInvalidParams{Context: "DescribePullRequestEventsInput"}
16417	if s.PullRequestId == nil {
16418		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
16419	}
16420
16421	if invalidParams.Len() > 0 {
16422		return invalidParams
16423	}
16424	return nil
16425}
16426
16427// SetActorArn sets the ActorArn field's value.
16428func (s *DescribePullRequestEventsInput) SetActorArn(v string) *DescribePullRequestEventsInput {
16429	s.ActorArn = &v
16430	return s
16431}
16432
16433// SetMaxResults sets the MaxResults field's value.
16434func (s *DescribePullRequestEventsInput) SetMaxResults(v int64) *DescribePullRequestEventsInput {
16435	s.MaxResults = &v
16436	return s
16437}
16438
16439// SetNextToken sets the NextToken field's value.
16440func (s *DescribePullRequestEventsInput) SetNextToken(v string) *DescribePullRequestEventsInput {
16441	s.NextToken = &v
16442	return s
16443}
16444
16445// SetPullRequestEventType sets the PullRequestEventType field's value.
16446func (s *DescribePullRequestEventsInput) SetPullRequestEventType(v string) *DescribePullRequestEventsInput {
16447	s.PullRequestEventType = &v
16448	return s
16449}
16450
16451// SetPullRequestId sets the PullRequestId field's value.
16452func (s *DescribePullRequestEventsInput) SetPullRequestId(v string) *DescribePullRequestEventsInput {
16453	s.PullRequestId = &v
16454	return s
16455}
16456
16457type DescribePullRequestEventsOutput struct {
16458	_ struct{} `type:"structure"`
16459
16460	// An enumeration token that can be used in a request to return the next batch
16461	// of the results.
16462	NextToken *string `locationName:"nextToken" type:"string"`
16463
16464	// Information about the pull request events.
16465	//
16466	// PullRequestEvents is a required field
16467	PullRequestEvents []*PullRequestEvent `locationName:"pullRequestEvents" type:"list" required:"true"`
16468}
16469
16470// String returns the string representation
16471func (s DescribePullRequestEventsOutput) String() string {
16472	return awsutil.Prettify(s)
16473}
16474
16475// GoString returns the string representation
16476func (s DescribePullRequestEventsOutput) GoString() string {
16477	return s.String()
16478}
16479
16480// SetNextToken sets the NextToken field's value.
16481func (s *DescribePullRequestEventsOutput) SetNextToken(v string) *DescribePullRequestEventsOutput {
16482	s.NextToken = &v
16483	return s
16484}
16485
16486// SetPullRequestEvents sets the PullRequestEvents field's value.
16487func (s *DescribePullRequestEventsOutput) SetPullRequestEvents(v []*PullRequestEvent) *DescribePullRequestEventsOutput {
16488	s.PullRequestEvents = v
16489	return s
16490}
16491
16492// Returns information about a set of differences for a commit specifier.
16493type Difference struct {
16494	_ struct{} `type:"structure"`
16495
16496	// Information about an afterBlob data type object, including the ID, the file
16497	// mode permission code, and the path.
16498	AfterBlob *BlobMetadata `locationName:"afterBlob" type:"structure"`
16499
16500	// Information about a beforeBlob data type object, including the ID, the file
16501	// mode permission code, and the path.
16502	BeforeBlob *BlobMetadata `locationName:"beforeBlob" type:"structure"`
16503
16504	// Whether the change type of the difference is an addition (A), deletion (D),
16505	// or modification (M).
16506	ChangeType *string `locationName:"changeType" type:"string" enum:"ChangeTypeEnum"`
16507}
16508
16509// String returns the string representation
16510func (s Difference) String() string {
16511	return awsutil.Prettify(s)
16512}
16513
16514// GoString returns the string representation
16515func (s Difference) GoString() string {
16516	return s.String()
16517}
16518
16519// SetAfterBlob sets the AfterBlob field's value.
16520func (s *Difference) SetAfterBlob(v *BlobMetadata) *Difference {
16521	s.AfterBlob = v
16522	return s
16523}
16524
16525// SetBeforeBlob sets the BeforeBlob field's value.
16526func (s *Difference) SetBeforeBlob(v *BlobMetadata) *Difference {
16527	s.BeforeBlob = v
16528	return s
16529}
16530
16531// SetChangeType sets the ChangeType field's value.
16532func (s *Difference) SetChangeType(v string) *Difference {
16533	s.ChangeType = &v
16534	return s
16535}
16536
16537// A file cannot be added to the repository because the specified path name
16538// has the same name as a file that already exists in this repository. Either
16539// provide a different name for the file, or specify a different path for the
16540// file.
16541type DirectoryNameConflictsWithFileNameException struct {
16542	_            struct{}                  `type:"structure"`
16543	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
16544
16545	Message_ *string `locationName:"message" type:"string"`
16546}
16547
16548// String returns the string representation
16549func (s DirectoryNameConflictsWithFileNameException) String() string {
16550	return awsutil.Prettify(s)
16551}
16552
16553// GoString returns the string representation
16554func (s DirectoryNameConflictsWithFileNameException) GoString() string {
16555	return s.String()
16556}
16557
16558func newErrorDirectoryNameConflictsWithFileNameException(v protocol.ResponseMetadata) error {
16559	return &DirectoryNameConflictsWithFileNameException{
16560		RespMetadata: v,
16561	}
16562}
16563
16564// Code returns the exception type name.
16565func (s *DirectoryNameConflictsWithFileNameException) Code() string {
16566	return "DirectoryNameConflictsWithFileNameException"
16567}
16568
16569// Message returns the exception's message.
16570func (s *DirectoryNameConflictsWithFileNameException) Message() string {
16571	if s.Message_ != nil {
16572		return *s.Message_
16573	}
16574	return ""
16575}
16576
16577// OrigErr always returns nil, satisfies awserr.Error interface.
16578func (s *DirectoryNameConflictsWithFileNameException) OrigErr() error {
16579	return nil
16580}
16581
16582func (s *DirectoryNameConflictsWithFileNameException) Error() string {
16583	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
16584}
16585
16586// Status code returns the HTTP status code for the request's response error.
16587func (s *DirectoryNameConflictsWithFileNameException) StatusCode() int {
16588	return s.RespMetadata.StatusCode
16589}
16590
16591// RequestID returns the service's response RequestID for request.
16592func (s *DirectoryNameConflictsWithFileNameException) RequestID() string {
16593	return s.RespMetadata.RequestID
16594}
16595
16596type DisassociateApprovalRuleTemplateFromRepositoryInput struct {
16597	_ struct{} `type:"structure"`
16598
16599	// The name of the approval rule template to disassociate from a specified repository.
16600	//
16601	// ApprovalRuleTemplateName is a required field
16602	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
16603
16604	// The name of the repository you want to disassociate from the template.
16605	//
16606	// RepositoryName is a required field
16607	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
16608}
16609
16610// String returns the string representation
16611func (s DisassociateApprovalRuleTemplateFromRepositoryInput) String() string {
16612	return awsutil.Prettify(s)
16613}
16614
16615// GoString returns the string representation
16616func (s DisassociateApprovalRuleTemplateFromRepositoryInput) GoString() string {
16617	return s.String()
16618}
16619
16620// Validate inspects the fields of the type to determine if they are valid.
16621func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) Validate() error {
16622	invalidParams := request.ErrInvalidParams{Context: "DisassociateApprovalRuleTemplateFromRepositoryInput"}
16623	if s.ApprovalRuleTemplateName == nil {
16624		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
16625	}
16626	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
16627		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
16628	}
16629	if s.RepositoryName == nil {
16630		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
16631	}
16632	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
16633		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
16634	}
16635
16636	if invalidParams.Len() > 0 {
16637		return invalidParams
16638	}
16639	return nil
16640}
16641
16642// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
16643func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetApprovalRuleTemplateName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput {
16644	s.ApprovalRuleTemplateName = &v
16645	return s
16646}
16647
16648// SetRepositoryName sets the RepositoryName field's value.
16649func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetRepositoryName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput {
16650	s.RepositoryName = &v
16651	return s
16652}
16653
16654type DisassociateApprovalRuleTemplateFromRepositoryOutput struct {
16655	_ struct{} `type:"structure"`
16656}
16657
16658// String returns the string representation
16659func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) String() string {
16660	return awsutil.Prettify(s)
16661}
16662
16663// GoString returns the string representation
16664func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) GoString() string {
16665	return s.String()
16666}
16667
16668// An encryption integrity check failed.
16669type EncryptionIntegrityChecksFailedException struct {
16670	_            struct{}                  `type:"structure"`
16671	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
16672
16673	Message_ *string `locationName:"message" type:"string"`
16674}
16675
16676// String returns the string representation
16677func (s EncryptionIntegrityChecksFailedException) String() string {
16678	return awsutil.Prettify(s)
16679}
16680
16681// GoString returns the string representation
16682func (s EncryptionIntegrityChecksFailedException) GoString() string {
16683	return s.String()
16684}
16685
16686func newErrorEncryptionIntegrityChecksFailedException(v protocol.ResponseMetadata) error {
16687	return &EncryptionIntegrityChecksFailedException{
16688		RespMetadata: v,
16689	}
16690}
16691
16692// Code returns the exception type name.
16693func (s *EncryptionIntegrityChecksFailedException) Code() string {
16694	return "EncryptionIntegrityChecksFailedException"
16695}
16696
16697// Message returns the exception's message.
16698func (s *EncryptionIntegrityChecksFailedException) Message() string {
16699	if s.Message_ != nil {
16700		return *s.Message_
16701	}
16702	return ""
16703}
16704
16705// OrigErr always returns nil, satisfies awserr.Error interface.
16706func (s *EncryptionIntegrityChecksFailedException) OrigErr() error {
16707	return nil
16708}
16709
16710func (s *EncryptionIntegrityChecksFailedException) Error() string {
16711	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
16712}
16713
16714// Status code returns the HTTP status code for the request's response error.
16715func (s *EncryptionIntegrityChecksFailedException) StatusCode() int {
16716	return s.RespMetadata.StatusCode
16717}
16718
16719// RequestID returns the service's response RequestID for request.
16720func (s *EncryptionIntegrityChecksFailedException) RequestID() string {
16721	return s.RespMetadata.RequestID
16722}
16723
16724// An encryption key could not be accessed.
16725type EncryptionKeyAccessDeniedException struct {
16726	_            struct{}                  `type:"structure"`
16727	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
16728
16729	Message_ *string `locationName:"message" type:"string"`
16730}
16731
16732// String returns the string representation
16733func (s EncryptionKeyAccessDeniedException) String() string {
16734	return awsutil.Prettify(s)
16735}
16736
16737// GoString returns the string representation
16738func (s EncryptionKeyAccessDeniedException) GoString() string {
16739	return s.String()
16740}
16741
16742func newErrorEncryptionKeyAccessDeniedException(v protocol.ResponseMetadata) error {
16743	return &EncryptionKeyAccessDeniedException{
16744		RespMetadata: v,
16745	}
16746}
16747
16748// Code returns the exception type name.
16749func (s *EncryptionKeyAccessDeniedException) Code() string {
16750	return "EncryptionKeyAccessDeniedException"
16751}
16752
16753// Message returns the exception's message.
16754func (s *EncryptionKeyAccessDeniedException) Message() string {
16755	if s.Message_ != nil {
16756		return *s.Message_
16757	}
16758	return ""
16759}
16760
16761// OrigErr always returns nil, satisfies awserr.Error interface.
16762func (s *EncryptionKeyAccessDeniedException) OrigErr() error {
16763	return nil
16764}
16765
16766func (s *EncryptionKeyAccessDeniedException) Error() string {
16767	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
16768}
16769
16770// Status code returns the HTTP status code for the request's response error.
16771func (s *EncryptionKeyAccessDeniedException) StatusCode() int {
16772	return s.RespMetadata.StatusCode
16773}
16774
16775// RequestID returns the service's response RequestID for request.
16776func (s *EncryptionKeyAccessDeniedException) RequestID() string {
16777	return s.RespMetadata.RequestID
16778}
16779
16780// The encryption key is disabled.
16781type EncryptionKeyDisabledException struct {
16782	_            struct{}                  `type:"structure"`
16783	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
16784
16785	Message_ *string `locationName:"message" type:"string"`
16786}
16787
16788// String returns the string representation
16789func (s EncryptionKeyDisabledException) String() string {
16790	return awsutil.Prettify(s)
16791}
16792
16793// GoString returns the string representation
16794func (s EncryptionKeyDisabledException) GoString() string {
16795	return s.String()
16796}
16797
16798func newErrorEncryptionKeyDisabledException(v protocol.ResponseMetadata) error {
16799	return &EncryptionKeyDisabledException{
16800		RespMetadata: v,
16801	}
16802}
16803
16804// Code returns the exception type name.
16805func (s *EncryptionKeyDisabledException) Code() string {
16806	return "EncryptionKeyDisabledException"
16807}
16808
16809// Message returns the exception's message.
16810func (s *EncryptionKeyDisabledException) Message() string {
16811	if s.Message_ != nil {
16812		return *s.Message_
16813	}
16814	return ""
16815}
16816
16817// OrigErr always returns nil, satisfies awserr.Error interface.
16818func (s *EncryptionKeyDisabledException) OrigErr() error {
16819	return nil
16820}
16821
16822func (s *EncryptionKeyDisabledException) Error() string {
16823	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
16824}
16825
16826// Status code returns the HTTP status code for the request's response error.
16827func (s *EncryptionKeyDisabledException) StatusCode() int {
16828	return s.RespMetadata.StatusCode
16829}
16830
16831// RequestID returns the service's response RequestID for request.
16832func (s *EncryptionKeyDisabledException) RequestID() string {
16833	return s.RespMetadata.RequestID
16834}
16835
16836// No encryption key was found.
16837type EncryptionKeyNotFoundException struct {
16838	_            struct{}                  `type:"structure"`
16839	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
16840
16841	Message_ *string `locationName:"message" type:"string"`
16842}
16843
16844// String returns the string representation
16845func (s EncryptionKeyNotFoundException) String() string {
16846	return awsutil.Prettify(s)
16847}
16848
16849// GoString returns the string representation
16850func (s EncryptionKeyNotFoundException) GoString() string {
16851	return s.String()
16852}
16853
16854func newErrorEncryptionKeyNotFoundException(v protocol.ResponseMetadata) error {
16855	return &EncryptionKeyNotFoundException{
16856		RespMetadata: v,
16857	}
16858}
16859
16860// Code returns the exception type name.
16861func (s *EncryptionKeyNotFoundException) Code() string {
16862	return "EncryptionKeyNotFoundException"
16863}
16864
16865// Message returns the exception's message.
16866func (s *EncryptionKeyNotFoundException) Message() string {
16867	if s.Message_ != nil {
16868		return *s.Message_
16869	}
16870	return ""
16871}
16872
16873// OrigErr always returns nil, satisfies awserr.Error interface.
16874func (s *EncryptionKeyNotFoundException) OrigErr() error {
16875	return nil
16876}
16877
16878func (s *EncryptionKeyNotFoundException) Error() string {
16879	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
16880}
16881
16882// Status code returns the HTTP status code for the request's response error.
16883func (s *EncryptionKeyNotFoundException) StatusCode() int {
16884	return s.RespMetadata.StatusCode
16885}
16886
16887// RequestID returns the service's response RequestID for request.
16888func (s *EncryptionKeyNotFoundException) RequestID() string {
16889	return s.RespMetadata.RequestID
16890}
16891
16892// The encryption key is not available.
16893type EncryptionKeyUnavailableException struct {
16894	_            struct{}                  `type:"structure"`
16895	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
16896
16897	Message_ *string `locationName:"message" type:"string"`
16898}
16899
16900// String returns the string representation
16901func (s EncryptionKeyUnavailableException) String() string {
16902	return awsutil.Prettify(s)
16903}
16904
16905// GoString returns the string representation
16906func (s EncryptionKeyUnavailableException) GoString() string {
16907	return s.String()
16908}
16909
16910func newErrorEncryptionKeyUnavailableException(v protocol.ResponseMetadata) error {
16911	return &EncryptionKeyUnavailableException{
16912		RespMetadata: v,
16913	}
16914}
16915
16916// Code returns the exception type name.
16917func (s *EncryptionKeyUnavailableException) Code() string {
16918	return "EncryptionKeyUnavailableException"
16919}
16920
16921// Message returns the exception's message.
16922func (s *EncryptionKeyUnavailableException) Message() string {
16923	if s.Message_ != nil {
16924		return *s.Message_
16925	}
16926	return ""
16927}
16928
16929// OrigErr always returns nil, satisfies awserr.Error interface.
16930func (s *EncryptionKeyUnavailableException) OrigErr() error {
16931	return nil
16932}
16933
16934func (s *EncryptionKeyUnavailableException) Error() string {
16935	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
16936}
16937
16938// Status code returns the HTTP status code for the request's response error.
16939func (s *EncryptionKeyUnavailableException) StatusCode() int {
16940	return s.RespMetadata.StatusCode
16941}
16942
16943// RequestID returns the service's response RequestID for request.
16944func (s *EncryptionKeyUnavailableException) RequestID() string {
16945	return s.RespMetadata.RequestID
16946}
16947
16948type EvaluatePullRequestApprovalRulesInput struct {
16949	_ struct{} `type:"structure"`
16950
16951	// The system-generated ID of the pull request you want to evaluate.
16952	//
16953	// PullRequestId is a required field
16954	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
16955
16956	// The system-generated ID for the pull request revision. To retrieve the most
16957	// recent revision ID for a pull request, use GetPullRequest.
16958	//
16959	// RevisionId is a required field
16960	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
16961}
16962
16963// String returns the string representation
16964func (s EvaluatePullRequestApprovalRulesInput) String() string {
16965	return awsutil.Prettify(s)
16966}
16967
16968// GoString returns the string representation
16969func (s EvaluatePullRequestApprovalRulesInput) GoString() string {
16970	return s.String()
16971}
16972
16973// Validate inspects the fields of the type to determine if they are valid.
16974func (s *EvaluatePullRequestApprovalRulesInput) Validate() error {
16975	invalidParams := request.ErrInvalidParams{Context: "EvaluatePullRequestApprovalRulesInput"}
16976	if s.PullRequestId == nil {
16977		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
16978	}
16979	if s.RevisionId == nil {
16980		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
16981	}
16982
16983	if invalidParams.Len() > 0 {
16984		return invalidParams
16985	}
16986	return nil
16987}
16988
16989// SetPullRequestId sets the PullRequestId field's value.
16990func (s *EvaluatePullRequestApprovalRulesInput) SetPullRequestId(v string) *EvaluatePullRequestApprovalRulesInput {
16991	s.PullRequestId = &v
16992	return s
16993}
16994
16995// SetRevisionId sets the RevisionId field's value.
16996func (s *EvaluatePullRequestApprovalRulesInput) SetRevisionId(v string) *EvaluatePullRequestApprovalRulesInput {
16997	s.RevisionId = &v
16998	return s
16999}
17000
17001type EvaluatePullRequestApprovalRulesOutput struct {
17002	_ struct{} `type:"structure"`
17003
17004	// The result of the evaluation, including the names of the rules whose conditions
17005	// have been met (if any), the names of the rules whose conditions have not
17006	// been met (if any), whether the pull request is in the approved state, and
17007	// whether the pull request approval rule has been set aside by an override.
17008	//
17009	// Evaluation is a required field
17010	Evaluation *Evaluation `locationName:"evaluation" type:"structure" required:"true"`
17011}
17012
17013// String returns the string representation
17014func (s EvaluatePullRequestApprovalRulesOutput) String() string {
17015	return awsutil.Prettify(s)
17016}
17017
17018// GoString returns the string representation
17019func (s EvaluatePullRequestApprovalRulesOutput) GoString() string {
17020	return s.String()
17021}
17022
17023// SetEvaluation sets the Evaluation field's value.
17024func (s *EvaluatePullRequestApprovalRulesOutput) SetEvaluation(v *Evaluation) *EvaluatePullRequestApprovalRulesOutput {
17025	s.Evaluation = v
17026	return s
17027}
17028
17029// Returns information about the approval rules applied to a pull request and
17030// whether conditions have been met.
17031type Evaluation struct {
17032	_ struct{} `type:"structure"`
17033
17034	// The names of the approval rules that have not had their conditions met.
17035	ApprovalRulesNotSatisfied []*string `locationName:"approvalRulesNotSatisfied" type:"list"`
17036
17037	// The names of the approval rules that have had their conditions met.
17038	ApprovalRulesSatisfied []*string `locationName:"approvalRulesSatisfied" type:"list"`
17039
17040	// Whether the state of the pull request is approved.
17041	Approved *bool `locationName:"approved" type:"boolean"`
17042
17043	// Whether the approval rule requirements for the pull request have been overridden
17044	// and no longer need to be met.
17045	Overridden *bool `locationName:"overridden" type:"boolean"`
17046}
17047
17048// String returns the string representation
17049func (s Evaluation) String() string {
17050	return awsutil.Prettify(s)
17051}
17052
17053// GoString returns the string representation
17054func (s Evaluation) GoString() string {
17055	return s.String()
17056}
17057
17058// SetApprovalRulesNotSatisfied sets the ApprovalRulesNotSatisfied field's value.
17059func (s *Evaluation) SetApprovalRulesNotSatisfied(v []*string) *Evaluation {
17060	s.ApprovalRulesNotSatisfied = v
17061	return s
17062}
17063
17064// SetApprovalRulesSatisfied sets the ApprovalRulesSatisfied field's value.
17065func (s *Evaluation) SetApprovalRulesSatisfied(v []*string) *Evaluation {
17066	s.ApprovalRulesSatisfied = v
17067	return s
17068}
17069
17070// SetApproved sets the Approved field's value.
17071func (s *Evaluation) SetApproved(v bool) *Evaluation {
17072	s.Approved = &v
17073	return s
17074}
17075
17076// SetOverridden sets the Overridden field's value.
17077func (s *Evaluation) SetOverridden(v bool) *Evaluation {
17078	s.Overridden = &v
17079	return s
17080}
17081
17082// Returns information about a file in a repository.
17083type File struct {
17084	_ struct{} `type:"structure"`
17085
17086	// The fully qualified path to the file in the repository.
17087	AbsolutePath *string `locationName:"absolutePath" type:"string"`
17088
17089	// The blob ID that contains the file information.
17090	BlobId *string `locationName:"blobId" type:"string"`
17091
17092	// The extrapolated file mode permissions for the file. Valid values include
17093	// EXECUTABLE and NORMAL.
17094	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
17095
17096	// The relative path of the file from the folder where the query originated.
17097	RelativePath *string `locationName:"relativePath" type:"string"`
17098}
17099
17100// String returns the string representation
17101func (s File) String() string {
17102	return awsutil.Prettify(s)
17103}
17104
17105// GoString returns the string representation
17106func (s File) GoString() string {
17107	return s.String()
17108}
17109
17110// SetAbsolutePath sets the AbsolutePath field's value.
17111func (s *File) SetAbsolutePath(v string) *File {
17112	s.AbsolutePath = &v
17113	return s
17114}
17115
17116// SetBlobId sets the BlobId field's value.
17117func (s *File) SetBlobId(v string) *File {
17118	s.BlobId = &v
17119	return s
17120}
17121
17122// SetFileMode sets the FileMode field's value.
17123func (s *File) SetFileMode(v string) *File {
17124	s.FileMode = &v
17125	return s
17126}
17127
17128// SetRelativePath sets the RelativePath field's value.
17129func (s *File) SetRelativePath(v string) *File {
17130	s.RelativePath = &v
17131	return s
17132}
17133
17134// The commit cannot be created because both a source file and file content
17135// have been specified for the same file. You cannot provide both. Either specify
17136// a source file or provide the file content directly.
17137type FileContentAndSourceFileSpecifiedException struct {
17138	_            struct{}                  `type:"structure"`
17139	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17140
17141	Message_ *string `locationName:"message" type:"string"`
17142}
17143
17144// String returns the string representation
17145func (s FileContentAndSourceFileSpecifiedException) String() string {
17146	return awsutil.Prettify(s)
17147}
17148
17149// GoString returns the string representation
17150func (s FileContentAndSourceFileSpecifiedException) GoString() string {
17151	return s.String()
17152}
17153
17154func newErrorFileContentAndSourceFileSpecifiedException(v protocol.ResponseMetadata) error {
17155	return &FileContentAndSourceFileSpecifiedException{
17156		RespMetadata: v,
17157	}
17158}
17159
17160// Code returns the exception type name.
17161func (s *FileContentAndSourceFileSpecifiedException) Code() string {
17162	return "FileContentAndSourceFileSpecifiedException"
17163}
17164
17165// Message returns the exception's message.
17166func (s *FileContentAndSourceFileSpecifiedException) Message() string {
17167	if s.Message_ != nil {
17168		return *s.Message_
17169	}
17170	return ""
17171}
17172
17173// OrigErr always returns nil, satisfies awserr.Error interface.
17174func (s *FileContentAndSourceFileSpecifiedException) OrigErr() error {
17175	return nil
17176}
17177
17178func (s *FileContentAndSourceFileSpecifiedException) Error() string {
17179	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17180}
17181
17182// Status code returns the HTTP status code for the request's response error.
17183func (s *FileContentAndSourceFileSpecifiedException) StatusCode() int {
17184	return s.RespMetadata.StatusCode
17185}
17186
17187// RequestID returns the service's response RequestID for request.
17188func (s *FileContentAndSourceFileSpecifiedException) RequestID() string {
17189	return s.RespMetadata.RequestID
17190}
17191
17192// The file cannot be added because it is empty. Empty files cannot be added
17193// to the repository with this API.
17194type FileContentRequiredException struct {
17195	_            struct{}                  `type:"structure"`
17196	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17197
17198	Message_ *string `locationName:"message" type:"string"`
17199}
17200
17201// String returns the string representation
17202func (s FileContentRequiredException) String() string {
17203	return awsutil.Prettify(s)
17204}
17205
17206// GoString returns the string representation
17207func (s FileContentRequiredException) GoString() string {
17208	return s.String()
17209}
17210
17211func newErrorFileContentRequiredException(v protocol.ResponseMetadata) error {
17212	return &FileContentRequiredException{
17213		RespMetadata: v,
17214	}
17215}
17216
17217// Code returns the exception type name.
17218func (s *FileContentRequiredException) Code() string {
17219	return "FileContentRequiredException"
17220}
17221
17222// Message returns the exception's message.
17223func (s *FileContentRequiredException) Message() string {
17224	if s.Message_ != nil {
17225		return *s.Message_
17226	}
17227	return ""
17228}
17229
17230// OrigErr always returns nil, satisfies awserr.Error interface.
17231func (s *FileContentRequiredException) OrigErr() error {
17232	return nil
17233}
17234
17235func (s *FileContentRequiredException) Error() string {
17236	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17237}
17238
17239// Status code returns the HTTP status code for the request's response error.
17240func (s *FileContentRequiredException) StatusCode() int {
17241	return s.RespMetadata.StatusCode
17242}
17243
17244// RequestID returns the service's response RequestID for request.
17245func (s *FileContentRequiredException) RequestID() string {
17246	return s.RespMetadata.RequestID
17247}
17248
17249// The file cannot be added because it is too large. The maximum file size is
17250// 6 MB, and the combined file content change size is 7 MB. Consider making
17251// these changes using a Git client.
17252type FileContentSizeLimitExceededException struct {
17253	_            struct{}                  `type:"structure"`
17254	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17255
17256	Message_ *string `locationName:"message" type:"string"`
17257}
17258
17259// String returns the string representation
17260func (s FileContentSizeLimitExceededException) String() string {
17261	return awsutil.Prettify(s)
17262}
17263
17264// GoString returns the string representation
17265func (s FileContentSizeLimitExceededException) GoString() string {
17266	return s.String()
17267}
17268
17269func newErrorFileContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
17270	return &FileContentSizeLimitExceededException{
17271		RespMetadata: v,
17272	}
17273}
17274
17275// Code returns the exception type name.
17276func (s *FileContentSizeLimitExceededException) Code() string {
17277	return "FileContentSizeLimitExceededException"
17278}
17279
17280// Message returns the exception's message.
17281func (s *FileContentSizeLimitExceededException) Message() string {
17282	if s.Message_ != nil {
17283		return *s.Message_
17284	}
17285	return ""
17286}
17287
17288// OrigErr always returns nil, satisfies awserr.Error interface.
17289func (s *FileContentSizeLimitExceededException) OrigErr() error {
17290	return nil
17291}
17292
17293func (s *FileContentSizeLimitExceededException) Error() string {
17294	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17295}
17296
17297// Status code returns the HTTP status code for the request's response error.
17298func (s *FileContentSizeLimitExceededException) StatusCode() int {
17299	return s.RespMetadata.StatusCode
17300}
17301
17302// RequestID returns the service's response RequestID for request.
17303func (s *FileContentSizeLimitExceededException) RequestID() string {
17304	return s.RespMetadata.RequestID
17305}
17306
17307// The specified file does not exist. Verify that you have used the correct
17308// file name, full path, and extension.
17309type FileDoesNotExistException struct {
17310	_            struct{}                  `type:"structure"`
17311	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17312
17313	Message_ *string `locationName:"message" type:"string"`
17314}
17315
17316// String returns the string representation
17317func (s FileDoesNotExistException) String() string {
17318	return awsutil.Prettify(s)
17319}
17320
17321// GoString returns the string representation
17322func (s FileDoesNotExistException) GoString() string {
17323	return s.String()
17324}
17325
17326func newErrorFileDoesNotExistException(v protocol.ResponseMetadata) error {
17327	return &FileDoesNotExistException{
17328		RespMetadata: v,
17329	}
17330}
17331
17332// Code returns the exception type name.
17333func (s *FileDoesNotExistException) Code() string {
17334	return "FileDoesNotExistException"
17335}
17336
17337// Message returns the exception's message.
17338func (s *FileDoesNotExistException) Message() string {
17339	if s.Message_ != nil {
17340		return *s.Message_
17341	}
17342	return ""
17343}
17344
17345// OrigErr always returns nil, satisfies awserr.Error interface.
17346func (s *FileDoesNotExistException) OrigErr() error {
17347	return nil
17348}
17349
17350func (s *FileDoesNotExistException) Error() string {
17351	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17352}
17353
17354// Status code returns the HTTP status code for the request's response error.
17355func (s *FileDoesNotExistException) StatusCode() int {
17356	return s.RespMetadata.StatusCode
17357}
17358
17359// RequestID returns the service's response RequestID for request.
17360func (s *FileDoesNotExistException) RequestID() string {
17361	return s.RespMetadata.RequestID
17362}
17363
17364// The commit cannot be created because no files have been specified as added,
17365// updated, or changed (PutFile or DeleteFile) for the commit.
17366type FileEntryRequiredException struct {
17367	_            struct{}                  `type:"structure"`
17368	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17369
17370	Message_ *string `locationName:"message" type:"string"`
17371}
17372
17373// String returns the string representation
17374func (s FileEntryRequiredException) String() string {
17375	return awsutil.Prettify(s)
17376}
17377
17378// GoString returns the string representation
17379func (s FileEntryRequiredException) GoString() string {
17380	return s.String()
17381}
17382
17383func newErrorFileEntryRequiredException(v protocol.ResponseMetadata) error {
17384	return &FileEntryRequiredException{
17385		RespMetadata: v,
17386	}
17387}
17388
17389// Code returns the exception type name.
17390func (s *FileEntryRequiredException) Code() string {
17391	return "FileEntryRequiredException"
17392}
17393
17394// Message returns the exception's message.
17395func (s *FileEntryRequiredException) Message() string {
17396	if s.Message_ != nil {
17397		return *s.Message_
17398	}
17399	return ""
17400}
17401
17402// OrigErr always returns nil, satisfies awserr.Error interface.
17403func (s *FileEntryRequiredException) OrigErr() error {
17404	return nil
17405}
17406
17407func (s *FileEntryRequiredException) Error() string {
17408	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17409}
17410
17411// Status code returns the HTTP status code for the request's response error.
17412func (s *FileEntryRequiredException) StatusCode() int {
17413	return s.RespMetadata.StatusCode
17414}
17415
17416// RequestID returns the service's response RequestID for request.
17417func (s *FileEntryRequiredException) RequestID() string {
17418	return s.RespMetadata.RequestID
17419}
17420
17421// A file to be added, updated, or deleted as part of a commit.
17422type FileMetadata struct {
17423	_ struct{} `type:"structure"`
17424
17425	// The full path to the file to be added or updated, including the name of the
17426	// file.
17427	AbsolutePath *string `locationName:"absolutePath" type:"string"`
17428
17429	// The blob ID that contains the file information.
17430	BlobId *string `locationName:"blobId" type:"string"`
17431
17432	// The extrapolated file mode permissions for the file. Valid values include
17433	// EXECUTABLE and NORMAL.
17434	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
17435}
17436
17437// String returns the string representation
17438func (s FileMetadata) String() string {
17439	return awsutil.Prettify(s)
17440}
17441
17442// GoString returns the string representation
17443func (s FileMetadata) GoString() string {
17444	return s.String()
17445}
17446
17447// SetAbsolutePath sets the AbsolutePath field's value.
17448func (s *FileMetadata) SetAbsolutePath(v string) *FileMetadata {
17449	s.AbsolutePath = &v
17450	return s
17451}
17452
17453// SetBlobId sets the BlobId field's value.
17454func (s *FileMetadata) SetBlobId(v string) *FileMetadata {
17455	s.BlobId = &v
17456	return s
17457}
17458
17459// SetFileMode sets the FileMode field's value.
17460func (s *FileMetadata) SetFileMode(v string) *FileMetadata {
17461	s.FileMode = &v
17462	return s
17463}
17464
17465// The commit cannot be created because no file mode has been specified. A file
17466// mode is required to update mode permissions for a file.
17467type FileModeRequiredException struct {
17468	_            struct{}                  `type:"structure"`
17469	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17470
17471	Message_ *string `locationName:"message" type:"string"`
17472}
17473
17474// String returns the string representation
17475func (s FileModeRequiredException) String() string {
17476	return awsutil.Prettify(s)
17477}
17478
17479// GoString returns the string representation
17480func (s FileModeRequiredException) GoString() string {
17481	return s.String()
17482}
17483
17484func newErrorFileModeRequiredException(v protocol.ResponseMetadata) error {
17485	return &FileModeRequiredException{
17486		RespMetadata: v,
17487	}
17488}
17489
17490// Code returns the exception type name.
17491func (s *FileModeRequiredException) Code() string {
17492	return "FileModeRequiredException"
17493}
17494
17495// Message returns the exception's message.
17496func (s *FileModeRequiredException) Message() string {
17497	if s.Message_ != nil {
17498		return *s.Message_
17499	}
17500	return ""
17501}
17502
17503// OrigErr always returns nil, satisfies awserr.Error interface.
17504func (s *FileModeRequiredException) OrigErr() error {
17505	return nil
17506}
17507
17508func (s *FileModeRequiredException) Error() string {
17509	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17510}
17511
17512// Status code returns the HTTP status code for the request's response error.
17513func (s *FileModeRequiredException) StatusCode() int {
17514	return s.RespMetadata.StatusCode
17515}
17516
17517// RequestID returns the service's response RequestID for request.
17518func (s *FileModeRequiredException) RequestID() string {
17519	return s.RespMetadata.RequestID
17520}
17521
17522// Information about file modes in a merge or pull request.
17523type FileModes struct {
17524	_ struct{} `type:"structure"`
17525
17526	// The file mode of a file in the base of a merge or pull request.
17527	Base *string `locationName:"base" type:"string" enum:"FileModeTypeEnum"`
17528
17529	// The file mode of a file in the destination of a merge or pull request.
17530	Destination *string `locationName:"destination" type:"string" enum:"FileModeTypeEnum"`
17531
17532	// The file mode of a file in the source of a merge or pull request.
17533	Source *string `locationName:"source" type:"string" enum:"FileModeTypeEnum"`
17534}
17535
17536// String returns the string representation
17537func (s FileModes) String() string {
17538	return awsutil.Prettify(s)
17539}
17540
17541// GoString returns the string representation
17542func (s FileModes) GoString() string {
17543	return s.String()
17544}
17545
17546// SetBase sets the Base field's value.
17547func (s *FileModes) SetBase(v string) *FileModes {
17548	s.Base = &v
17549	return s
17550}
17551
17552// SetDestination sets the Destination field's value.
17553func (s *FileModes) SetDestination(v string) *FileModes {
17554	s.Destination = &v
17555	return s
17556}
17557
17558// SetSource sets the Source field's value.
17559func (s *FileModes) SetSource(v string) *FileModes {
17560	s.Source = &v
17561	return s
17562}
17563
17564// A file cannot be added to the repository because the specified file name
17565// has the same name as a directory in this repository. Either provide another
17566// name for the file, or add the file in a directory that does not match the
17567// file name.
17568type FileNameConflictsWithDirectoryNameException struct {
17569	_            struct{}                  `type:"structure"`
17570	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17571
17572	Message_ *string `locationName:"message" type:"string"`
17573}
17574
17575// String returns the string representation
17576func (s FileNameConflictsWithDirectoryNameException) String() string {
17577	return awsutil.Prettify(s)
17578}
17579
17580// GoString returns the string representation
17581func (s FileNameConflictsWithDirectoryNameException) GoString() string {
17582	return s.String()
17583}
17584
17585func newErrorFileNameConflictsWithDirectoryNameException(v protocol.ResponseMetadata) error {
17586	return &FileNameConflictsWithDirectoryNameException{
17587		RespMetadata: v,
17588	}
17589}
17590
17591// Code returns the exception type name.
17592func (s *FileNameConflictsWithDirectoryNameException) Code() string {
17593	return "FileNameConflictsWithDirectoryNameException"
17594}
17595
17596// Message returns the exception's message.
17597func (s *FileNameConflictsWithDirectoryNameException) Message() string {
17598	if s.Message_ != nil {
17599		return *s.Message_
17600	}
17601	return ""
17602}
17603
17604// OrigErr always returns nil, satisfies awserr.Error interface.
17605func (s *FileNameConflictsWithDirectoryNameException) OrigErr() error {
17606	return nil
17607}
17608
17609func (s *FileNameConflictsWithDirectoryNameException) Error() string {
17610	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17611}
17612
17613// Status code returns the HTTP status code for the request's response error.
17614func (s *FileNameConflictsWithDirectoryNameException) StatusCode() int {
17615	return s.RespMetadata.StatusCode
17616}
17617
17618// RequestID returns the service's response RequestID for request.
17619func (s *FileNameConflictsWithDirectoryNameException) RequestID() string {
17620	return s.RespMetadata.RequestID
17621}
17622
17623// The commit cannot be created because a specified file path points to a submodule.
17624// Verify that the destination files have valid file paths that do not point
17625// to a submodule.
17626type FilePathConflictsWithSubmodulePathException struct {
17627	_            struct{}                  `type:"structure"`
17628	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17629
17630	Message_ *string `locationName:"message" type:"string"`
17631}
17632
17633// String returns the string representation
17634func (s FilePathConflictsWithSubmodulePathException) String() string {
17635	return awsutil.Prettify(s)
17636}
17637
17638// GoString returns the string representation
17639func (s FilePathConflictsWithSubmodulePathException) GoString() string {
17640	return s.String()
17641}
17642
17643func newErrorFilePathConflictsWithSubmodulePathException(v protocol.ResponseMetadata) error {
17644	return &FilePathConflictsWithSubmodulePathException{
17645		RespMetadata: v,
17646	}
17647}
17648
17649// Code returns the exception type name.
17650func (s *FilePathConflictsWithSubmodulePathException) Code() string {
17651	return "FilePathConflictsWithSubmodulePathException"
17652}
17653
17654// Message returns the exception's message.
17655func (s *FilePathConflictsWithSubmodulePathException) Message() string {
17656	if s.Message_ != nil {
17657		return *s.Message_
17658	}
17659	return ""
17660}
17661
17662// OrigErr always returns nil, satisfies awserr.Error interface.
17663func (s *FilePathConflictsWithSubmodulePathException) OrigErr() error {
17664	return nil
17665}
17666
17667func (s *FilePathConflictsWithSubmodulePathException) Error() string {
17668	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17669}
17670
17671// Status code returns the HTTP status code for the request's response error.
17672func (s *FilePathConflictsWithSubmodulePathException) StatusCode() int {
17673	return s.RespMetadata.StatusCode
17674}
17675
17676// RequestID returns the service's response RequestID for request.
17677func (s *FilePathConflictsWithSubmodulePathException) RequestID() string {
17678	return s.RespMetadata.RequestID
17679}
17680
17681// Information about the size of files in a merge or pull request.
17682type FileSizes struct {
17683	_ struct{} `type:"structure"`
17684
17685	// The size of a file in the base of a merge or pull request.
17686	Base *int64 `locationName:"base" type:"long"`
17687
17688	// The size of a file in the destination of a merge or pull request.
17689	Destination *int64 `locationName:"destination" type:"long"`
17690
17691	// The size of a file in the source of a merge or pull request.
17692	Source *int64 `locationName:"source" type:"long"`
17693}
17694
17695// String returns the string representation
17696func (s FileSizes) String() string {
17697	return awsutil.Prettify(s)
17698}
17699
17700// GoString returns the string representation
17701func (s FileSizes) GoString() string {
17702	return s.String()
17703}
17704
17705// SetBase sets the Base field's value.
17706func (s *FileSizes) SetBase(v int64) *FileSizes {
17707	s.Base = &v
17708	return s
17709}
17710
17711// SetDestination sets the Destination field's value.
17712func (s *FileSizes) SetDestination(v int64) *FileSizes {
17713	s.Destination = &v
17714	return s
17715}
17716
17717// SetSource sets the Source field's value.
17718func (s *FileSizes) SetSource(v int64) *FileSizes {
17719	s.Source = &v
17720	return s
17721}
17722
17723// The specified file exceeds the file size limit for AWS CodeCommit. For more
17724// information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
17725// (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
17726type FileTooLargeException struct {
17727	_            struct{}                  `type:"structure"`
17728	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17729
17730	Message_ *string `locationName:"message" type:"string"`
17731}
17732
17733// String returns the string representation
17734func (s FileTooLargeException) String() string {
17735	return awsutil.Prettify(s)
17736}
17737
17738// GoString returns the string representation
17739func (s FileTooLargeException) GoString() string {
17740	return s.String()
17741}
17742
17743func newErrorFileTooLargeException(v protocol.ResponseMetadata) error {
17744	return &FileTooLargeException{
17745		RespMetadata: v,
17746	}
17747}
17748
17749// Code returns the exception type name.
17750func (s *FileTooLargeException) Code() string {
17751	return "FileTooLargeException"
17752}
17753
17754// Message returns the exception's message.
17755func (s *FileTooLargeException) Message() string {
17756	if s.Message_ != nil {
17757		return *s.Message_
17758	}
17759	return ""
17760}
17761
17762// OrigErr always returns nil, satisfies awserr.Error interface.
17763func (s *FileTooLargeException) OrigErr() error {
17764	return nil
17765}
17766
17767func (s *FileTooLargeException) Error() string {
17768	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17769}
17770
17771// Status code returns the HTTP status code for the request's response error.
17772func (s *FileTooLargeException) StatusCode() int {
17773	return s.RespMetadata.StatusCode
17774}
17775
17776// RequestID returns the service's response RequestID for request.
17777func (s *FileTooLargeException) RequestID() string {
17778	return s.RespMetadata.RequestID
17779}
17780
17781// Returns information about a folder in a repository.
17782type Folder struct {
17783	_ struct{} `type:"structure"`
17784
17785	// The fully qualified path of the folder in the repository.
17786	AbsolutePath *string `locationName:"absolutePath" type:"string"`
17787
17788	// The relative path of the specified folder from the folder where the query
17789	// originated.
17790	RelativePath *string `locationName:"relativePath" type:"string"`
17791
17792	// The full SHA-1 pointer of the tree information for the commit that contains
17793	// the folder.
17794	TreeId *string `locationName:"treeId" type:"string"`
17795}
17796
17797// String returns the string representation
17798func (s Folder) String() string {
17799	return awsutil.Prettify(s)
17800}
17801
17802// GoString returns the string representation
17803func (s Folder) GoString() string {
17804	return s.String()
17805}
17806
17807// SetAbsolutePath sets the AbsolutePath field's value.
17808func (s *Folder) SetAbsolutePath(v string) *Folder {
17809	s.AbsolutePath = &v
17810	return s
17811}
17812
17813// SetRelativePath sets the RelativePath field's value.
17814func (s *Folder) SetRelativePath(v string) *Folder {
17815	s.RelativePath = &v
17816	return s
17817}
17818
17819// SetTreeId sets the TreeId field's value.
17820func (s *Folder) SetTreeId(v string) *Folder {
17821	s.TreeId = &v
17822	return s
17823}
17824
17825// The commit cannot be created because at least one of the overall changes
17826// in the commit results in a folder whose contents exceed the limit of 6 MB.
17827// Either reduce the number and size of your changes, or split the changes across
17828// multiple folders.
17829type FolderContentSizeLimitExceededException struct {
17830	_            struct{}                  `type:"structure"`
17831	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17832
17833	Message_ *string `locationName:"message" type:"string"`
17834}
17835
17836// String returns the string representation
17837func (s FolderContentSizeLimitExceededException) String() string {
17838	return awsutil.Prettify(s)
17839}
17840
17841// GoString returns the string representation
17842func (s FolderContentSizeLimitExceededException) GoString() string {
17843	return s.String()
17844}
17845
17846func newErrorFolderContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
17847	return &FolderContentSizeLimitExceededException{
17848		RespMetadata: v,
17849	}
17850}
17851
17852// Code returns the exception type name.
17853func (s *FolderContentSizeLimitExceededException) Code() string {
17854	return "FolderContentSizeLimitExceededException"
17855}
17856
17857// Message returns the exception's message.
17858func (s *FolderContentSizeLimitExceededException) Message() string {
17859	if s.Message_ != nil {
17860		return *s.Message_
17861	}
17862	return ""
17863}
17864
17865// OrigErr always returns nil, satisfies awserr.Error interface.
17866func (s *FolderContentSizeLimitExceededException) OrigErr() error {
17867	return nil
17868}
17869
17870func (s *FolderContentSizeLimitExceededException) Error() string {
17871	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17872}
17873
17874// Status code returns the HTTP status code for the request's response error.
17875func (s *FolderContentSizeLimitExceededException) StatusCode() int {
17876	return s.RespMetadata.StatusCode
17877}
17878
17879// RequestID returns the service's response RequestID for request.
17880func (s *FolderContentSizeLimitExceededException) RequestID() string {
17881	return s.RespMetadata.RequestID
17882}
17883
17884// The specified folder does not exist. Either the folder name is not correct,
17885// or you did not enter the full path to the folder.
17886type FolderDoesNotExistException struct {
17887	_            struct{}                  `type:"structure"`
17888	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
17889
17890	Message_ *string `locationName:"message" type:"string"`
17891}
17892
17893// String returns the string representation
17894func (s FolderDoesNotExistException) String() string {
17895	return awsutil.Prettify(s)
17896}
17897
17898// GoString returns the string representation
17899func (s FolderDoesNotExistException) GoString() string {
17900	return s.String()
17901}
17902
17903func newErrorFolderDoesNotExistException(v protocol.ResponseMetadata) error {
17904	return &FolderDoesNotExistException{
17905		RespMetadata: v,
17906	}
17907}
17908
17909// Code returns the exception type name.
17910func (s *FolderDoesNotExistException) Code() string {
17911	return "FolderDoesNotExistException"
17912}
17913
17914// Message returns the exception's message.
17915func (s *FolderDoesNotExistException) Message() string {
17916	if s.Message_ != nil {
17917		return *s.Message_
17918	}
17919	return ""
17920}
17921
17922// OrigErr always returns nil, satisfies awserr.Error interface.
17923func (s *FolderDoesNotExistException) OrigErr() error {
17924	return nil
17925}
17926
17927func (s *FolderDoesNotExistException) Error() string {
17928	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
17929}
17930
17931// Status code returns the HTTP status code for the request's response error.
17932func (s *FolderDoesNotExistException) StatusCode() int {
17933	return s.RespMetadata.StatusCode
17934}
17935
17936// RequestID returns the service's response RequestID for request.
17937func (s *FolderDoesNotExistException) RequestID() string {
17938	return s.RespMetadata.RequestID
17939}
17940
17941type GetApprovalRuleTemplateInput struct {
17942	_ struct{} `type:"structure"`
17943
17944	// The name of the approval rule template for which you want to get information.
17945	//
17946	// ApprovalRuleTemplateName is a required field
17947	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
17948}
17949
17950// String returns the string representation
17951func (s GetApprovalRuleTemplateInput) String() string {
17952	return awsutil.Prettify(s)
17953}
17954
17955// GoString returns the string representation
17956func (s GetApprovalRuleTemplateInput) GoString() string {
17957	return s.String()
17958}
17959
17960// Validate inspects the fields of the type to determine if they are valid.
17961func (s *GetApprovalRuleTemplateInput) Validate() error {
17962	invalidParams := request.ErrInvalidParams{Context: "GetApprovalRuleTemplateInput"}
17963	if s.ApprovalRuleTemplateName == nil {
17964		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
17965	}
17966	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
17967		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
17968	}
17969
17970	if invalidParams.Len() > 0 {
17971		return invalidParams
17972	}
17973	return nil
17974}
17975
17976// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
17977func (s *GetApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *GetApprovalRuleTemplateInput {
17978	s.ApprovalRuleTemplateName = &v
17979	return s
17980}
17981
17982type GetApprovalRuleTemplateOutput struct {
17983	_ struct{} `type:"structure"`
17984
17985	// The content and structure of the approval rule template.
17986	//
17987	// ApprovalRuleTemplate is a required field
17988	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
17989}
17990
17991// String returns the string representation
17992func (s GetApprovalRuleTemplateOutput) String() string {
17993	return awsutil.Prettify(s)
17994}
17995
17996// GoString returns the string representation
17997func (s GetApprovalRuleTemplateOutput) GoString() string {
17998	return s.String()
17999}
18000
18001// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
18002func (s *GetApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *GetApprovalRuleTemplateOutput {
18003	s.ApprovalRuleTemplate = v
18004	return s
18005}
18006
18007// Represents the input of a get blob operation.
18008type GetBlobInput struct {
18009	_ struct{} `type:"structure"`
18010
18011	// The ID of the blob, which is its SHA-1 pointer.
18012	//
18013	// BlobId is a required field
18014	BlobId *string `locationName:"blobId" type:"string" required:"true"`
18015
18016	// The name of the repository that contains the blob.
18017	//
18018	// RepositoryName is a required field
18019	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
18020}
18021
18022// String returns the string representation
18023func (s GetBlobInput) String() string {
18024	return awsutil.Prettify(s)
18025}
18026
18027// GoString returns the string representation
18028func (s GetBlobInput) GoString() string {
18029	return s.String()
18030}
18031
18032// Validate inspects the fields of the type to determine if they are valid.
18033func (s *GetBlobInput) Validate() error {
18034	invalidParams := request.ErrInvalidParams{Context: "GetBlobInput"}
18035	if s.BlobId == nil {
18036		invalidParams.Add(request.NewErrParamRequired("BlobId"))
18037	}
18038	if s.RepositoryName == nil {
18039		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
18040	}
18041	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18042		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18043	}
18044
18045	if invalidParams.Len() > 0 {
18046		return invalidParams
18047	}
18048	return nil
18049}
18050
18051// SetBlobId sets the BlobId field's value.
18052func (s *GetBlobInput) SetBlobId(v string) *GetBlobInput {
18053	s.BlobId = &v
18054	return s
18055}
18056
18057// SetRepositoryName sets the RepositoryName field's value.
18058func (s *GetBlobInput) SetRepositoryName(v string) *GetBlobInput {
18059	s.RepositoryName = &v
18060	return s
18061}
18062
18063// Represents the output of a get blob operation.
18064type GetBlobOutput struct {
18065	_ struct{} `type:"structure"`
18066
18067	// The content of the blob, usually a file.
18068	//
18069	// Content is automatically base64 encoded/decoded by the SDK.
18070	//
18071	// Content is a required field
18072	Content []byte `locationName:"content" type:"blob" required:"true"`
18073}
18074
18075// String returns the string representation
18076func (s GetBlobOutput) String() string {
18077	return awsutil.Prettify(s)
18078}
18079
18080// GoString returns the string representation
18081func (s GetBlobOutput) GoString() string {
18082	return s.String()
18083}
18084
18085// SetContent sets the Content field's value.
18086func (s *GetBlobOutput) SetContent(v []byte) *GetBlobOutput {
18087	s.Content = v
18088	return s
18089}
18090
18091// Represents the input of a get branch operation.
18092type GetBranchInput struct {
18093	_ struct{} `type:"structure"`
18094
18095	// The name of the branch for which you want to retrieve information.
18096	BranchName *string `locationName:"branchName" min:"1" type:"string"`
18097
18098	// The name of the repository that contains the branch for which you want to
18099	// retrieve information.
18100	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
18101}
18102
18103// String returns the string representation
18104func (s GetBranchInput) String() string {
18105	return awsutil.Prettify(s)
18106}
18107
18108// GoString returns the string representation
18109func (s GetBranchInput) GoString() string {
18110	return s.String()
18111}
18112
18113// Validate inspects the fields of the type to determine if they are valid.
18114func (s *GetBranchInput) Validate() error {
18115	invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"}
18116	if s.BranchName != nil && len(*s.BranchName) < 1 {
18117		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
18118	}
18119	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18120		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18121	}
18122
18123	if invalidParams.Len() > 0 {
18124		return invalidParams
18125	}
18126	return nil
18127}
18128
18129// SetBranchName sets the BranchName field's value.
18130func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput {
18131	s.BranchName = &v
18132	return s
18133}
18134
18135// SetRepositoryName sets the RepositoryName field's value.
18136func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput {
18137	s.RepositoryName = &v
18138	return s
18139}
18140
18141// Represents the output of a get branch operation.
18142type GetBranchOutput struct {
18143	_ struct{} `type:"structure"`
18144
18145	// The name of the branch.
18146	Branch *BranchInfo `locationName:"branch" type:"structure"`
18147}
18148
18149// String returns the string representation
18150func (s GetBranchOutput) String() string {
18151	return awsutil.Prettify(s)
18152}
18153
18154// GoString returns the string representation
18155func (s GetBranchOutput) GoString() string {
18156	return s.String()
18157}
18158
18159// SetBranch sets the Branch field's value.
18160func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput {
18161	s.Branch = v
18162	return s
18163}
18164
18165type GetCommentInput struct {
18166	_ struct{} `type:"structure"`
18167
18168	// The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
18169	// or GetCommentsForPullRequest.
18170	//
18171	// CommentId is a required field
18172	CommentId *string `locationName:"commentId" type:"string" required:"true"`
18173}
18174
18175// String returns the string representation
18176func (s GetCommentInput) String() string {
18177	return awsutil.Prettify(s)
18178}
18179
18180// GoString returns the string representation
18181func (s GetCommentInput) GoString() string {
18182	return s.String()
18183}
18184
18185// Validate inspects the fields of the type to determine if they are valid.
18186func (s *GetCommentInput) Validate() error {
18187	invalidParams := request.ErrInvalidParams{Context: "GetCommentInput"}
18188	if s.CommentId == nil {
18189		invalidParams.Add(request.NewErrParamRequired("CommentId"))
18190	}
18191
18192	if invalidParams.Len() > 0 {
18193		return invalidParams
18194	}
18195	return nil
18196}
18197
18198// SetCommentId sets the CommentId field's value.
18199func (s *GetCommentInput) SetCommentId(v string) *GetCommentInput {
18200	s.CommentId = &v
18201	return s
18202}
18203
18204type GetCommentOutput struct {
18205	_ struct{} `type:"structure"`
18206
18207	// The contents of the comment.
18208	Comment *Comment `locationName:"comment" type:"structure"`
18209}
18210
18211// String returns the string representation
18212func (s GetCommentOutput) String() string {
18213	return awsutil.Prettify(s)
18214}
18215
18216// GoString returns the string representation
18217func (s GetCommentOutput) GoString() string {
18218	return s.String()
18219}
18220
18221// SetComment sets the Comment field's value.
18222func (s *GetCommentOutput) SetComment(v *Comment) *GetCommentOutput {
18223	s.Comment = v
18224	return s
18225}
18226
18227type GetCommentReactionsInput struct {
18228	_ struct{} `type:"structure"`
18229
18230	// The ID of the comment for which you want to get reactions information.
18231	//
18232	// CommentId is a required field
18233	CommentId *string `locationName:"commentId" type:"string" required:"true"`
18234
18235	// A non-zero, non-negative integer used to limit the number of returned results.
18236	// The default is the same as the allowed maximum, 1,000.
18237	MaxResults *int64 `locationName:"maxResults" type:"integer"`
18238
18239	// An enumeration token that, when provided in a request, returns the next batch
18240	// of the results.
18241	NextToken *string `locationName:"nextToken" type:"string"`
18242
18243	// Optional. The Amazon Resource Name (ARN) of the user or identity for which
18244	// you want to get reaction information.
18245	ReactionUserArn *string `locationName:"reactionUserArn" type:"string"`
18246}
18247
18248// String returns the string representation
18249func (s GetCommentReactionsInput) String() string {
18250	return awsutil.Prettify(s)
18251}
18252
18253// GoString returns the string representation
18254func (s GetCommentReactionsInput) GoString() string {
18255	return s.String()
18256}
18257
18258// Validate inspects the fields of the type to determine if they are valid.
18259func (s *GetCommentReactionsInput) Validate() error {
18260	invalidParams := request.ErrInvalidParams{Context: "GetCommentReactionsInput"}
18261	if s.CommentId == nil {
18262		invalidParams.Add(request.NewErrParamRequired("CommentId"))
18263	}
18264
18265	if invalidParams.Len() > 0 {
18266		return invalidParams
18267	}
18268	return nil
18269}
18270
18271// SetCommentId sets the CommentId field's value.
18272func (s *GetCommentReactionsInput) SetCommentId(v string) *GetCommentReactionsInput {
18273	s.CommentId = &v
18274	return s
18275}
18276
18277// SetMaxResults sets the MaxResults field's value.
18278func (s *GetCommentReactionsInput) SetMaxResults(v int64) *GetCommentReactionsInput {
18279	s.MaxResults = &v
18280	return s
18281}
18282
18283// SetNextToken sets the NextToken field's value.
18284func (s *GetCommentReactionsInput) SetNextToken(v string) *GetCommentReactionsInput {
18285	s.NextToken = &v
18286	return s
18287}
18288
18289// SetReactionUserArn sets the ReactionUserArn field's value.
18290func (s *GetCommentReactionsInput) SetReactionUserArn(v string) *GetCommentReactionsInput {
18291	s.ReactionUserArn = &v
18292	return s
18293}
18294
18295type GetCommentReactionsOutput struct {
18296	_ struct{} `type:"structure"`
18297
18298	// An enumeration token that can be used in a request to return the next batch
18299	// of the results.
18300	NextToken *string `locationName:"nextToken" type:"string"`
18301
18302	// An array of reactions to the specified comment.
18303	//
18304	// ReactionsForComment is a required field
18305	ReactionsForComment []*ReactionForComment `locationName:"reactionsForComment" type:"list" required:"true"`
18306}
18307
18308// String returns the string representation
18309func (s GetCommentReactionsOutput) String() string {
18310	return awsutil.Prettify(s)
18311}
18312
18313// GoString returns the string representation
18314func (s GetCommentReactionsOutput) GoString() string {
18315	return s.String()
18316}
18317
18318// SetNextToken sets the NextToken field's value.
18319func (s *GetCommentReactionsOutput) SetNextToken(v string) *GetCommentReactionsOutput {
18320	s.NextToken = &v
18321	return s
18322}
18323
18324// SetReactionsForComment sets the ReactionsForComment field's value.
18325func (s *GetCommentReactionsOutput) SetReactionsForComment(v []*ReactionForComment) *GetCommentReactionsOutput {
18326	s.ReactionsForComment = v
18327	return s
18328}
18329
18330type GetCommentsForComparedCommitInput struct {
18331	_ struct{} `type:"structure"`
18332
18333	// To establish the directionality of the comparison, the full commit ID of
18334	// the after commit.
18335	//
18336	// AfterCommitId is a required field
18337	AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
18338
18339	// To establish the directionality of the comparison, the full commit ID of
18340	// the before commit.
18341	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
18342
18343	// A non-zero, non-negative integer used to limit the number of returned results.
18344	// The default is 100 comments, but you can configure up to 500.
18345	MaxResults *int64 `locationName:"maxResults" type:"integer"`
18346
18347	// An enumeration token that when provided in a request, returns the next batch
18348	// of the results.
18349	NextToken *string `locationName:"nextToken" type:"string"`
18350
18351	// The name of the repository where you want to compare commits.
18352	//
18353	// RepositoryName is a required field
18354	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
18355}
18356
18357// String returns the string representation
18358func (s GetCommentsForComparedCommitInput) String() string {
18359	return awsutil.Prettify(s)
18360}
18361
18362// GoString returns the string representation
18363func (s GetCommentsForComparedCommitInput) GoString() string {
18364	return s.String()
18365}
18366
18367// Validate inspects the fields of the type to determine if they are valid.
18368func (s *GetCommentsForComparedCommitInput) Validate() error {
18369	invalidParams := request.ErrInvalidParams{Context: "GetCommentsForComparedCommitInput"}
18370	if s.AfterCommitId == nil {
18371		invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
18372	}
18373	if s.RepositoryName == nil {
18374		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
18375	}
18376	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18377		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18378	}
18379
18380	if invalidParams.Len() > 0 {
18381		return invalidParams
18382	}
18383	return nil
18384}
18385
18386// SetAfterCommitId sets the AfterCommitId field's value.
18387func (s *GetCommentsForComparedCommitInput) SetAfterCommitId(v string) *GetCommentsForComparedCommitInput {
18388	s.AfterCommitId = &v
18389	return s
18390}
18391
18392// SetBeforeCommitId sets the BeforeCommitId field's value.
18393func (s *GetCommentsForComparedCommitInput) SetBeforeCommitId(v string) *GetCommentsForComparedCommitInput {
18394	s.BeforeCommitId = &v
18395	return s
18396}
18397
18398// SetMaxResults sets the MaxResults field's value.
18399func (s *GetCommentsForComparedCommitInput) SetMaxResults(v int64) *GetCommentsForComparedCommitInput {
18400	s.MaxResults = &v
18401	return s
18402}
18403
18404// SetNextToken sets the NextToken field's value.
18405func (s *GetCommentsForComparedCommitInput) SetNextToken(v string) *GetCommentsForComparedCommitInput {
18406	s.NextToken = &v
18407	return s
18408}
18409
18410// SetRepositoryName sets the RepositoryName field's value.
18411func (s *GetCommentsForComparedCommitInput) SetRepositoryName(v string) *GetCommentsForComparedCommitInput {
18412	s.RepositoryName = &v
18413	return s
18414}
18415
18416type GetCommentsForComparedCommitOutput struct {
18417	_ struct{} `type:"structure"`
18418
18419	// A list of comment objects on the compared commit.
18420	CommentsForComparedCommitData []*CommentsForComparedCommit `locationName:"commentsForComparedCommitData" type:"list"`
18421
18422	// An enumeration token that can be used in a request to return the next batch
18423	// of the results.
18424	NextToken *string `locationName:"nextToken" type:"string"`
18425}
18426
18427// String returns the string representation
18428func (s GetCommentsForComparedCommitOutput) String() string {
18429	return awsutil.Prettify(s)
18430}
18431
18432// GoString returns the string representation
18433func (s GetCommentsForComparedCommitOutput) GoString() string {
18434	return s.String()
18435}
18436
18437// SetCommentsForComparedCommitData sets the CommentsForComparedCommitData field's value.
18438func (s *GetCommentsForComparedCommitOutput) SetCommentsForComparedCommitData(v []*CommentsForComparedCommit) *GetCommentsForComparedCommitOutput {
18439	s.CommentsForComparedCommitData = v
18440	return s
18441}
18442
18443// SetNextToken sets the NextToken field's value.
18444func (s *GetCommentsForComparedCommitOutput) SetNextToken(v string) *GetCommentsForComparedCommitOutput {
18445	s.NextToken = &v
18446	return s
18447}
18448
18449type GetCommentsForPullRequestInput struct {
18450	_ struct{} `type:"structure"`
18451
18452	// The full commit ID of the commit in the source branch that was the tip of
18453	// the branch at the time the comment was made.
18454	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
18455
18456	// The full commit ID of the commit in the destination branch that was the tip
18457	// of the branch at the time the pull request was created.
18458	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
18459
18460	// A non-zero, non-negative integer used to limit the number of returned results.
18461	// The default is 100 comments. You can return up to 500 comments with a single
18462	// request.
18463	MaxResults *int64 `locationName:"maxResults" type:"integer"`
18464
18465	// An enumeration token that, when provided in a request, returns the next batch
18466	// of the results.
18467	NextToken *string `locationName:"nextToken" type:"string"`
18468
18469	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
18470	//
18471	// PullRequestId is a required field
18472	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
18473
18474	// The name of the repository that contains the pull request.
18475	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
18476}
18477
18478// String returns the string representation
18479func (s GetCommentsForPullRequestInput) String() string {
18480	return awsutil.Prettify(s)
18481}
18482
18483// GoString returns the string representation
18484func (s GetCommentsForPullRequestInput) GoString() string {
18485	return s.String()
18486}
18487
18488// Validate inspects the fields of the type to determine if they are valid.
18489func (s *GetCommentsForPullRequestInput) Validate() error {
18490	invalidParams := request.ErrInvalidParams{Context: "GetCommentsForPullRequestInput"}
18491	if s.PullRequestId == nil {
18492		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
18493	}
18494	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18495		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18496	}
18497
18498	if invalidParams.Len() > 0 {
18499		return invalidParams
18500	}
18501	return nil
18502}
18503
18504// SetAfterCommitId sets the AfterCommitId field's value.
18505func (s *GetCommentsForPullRequestInput) SetAfterCommitId(v string) *GetCommentsForPullRequestInput {
18506	s.AfterCommitId = &v
18507	return s
18508}
18509
18510// SetBeforeCommitId sets the BeforeCommitId field's value.
18511func (s *GetCommentsForPullRequestInput) SetBeforeCommitId(v string) *GetCommentsForPullRequestInput {
18512	s.BeforeCommitId = &v
18513	return s
18514}
18515
18516// SetMaxResults sets the MaxResults field's value.
18517func (s *GetCommentsForPullRequestInput) SetMaxResults(v int64) *GetCommentsForPullRequestInput {
18518	s.MaxResults = &v
18519	return s
18520}
18521
18522// SetNextToken sets the NextToken field's value.
18523func (s *GetCommentsForPullRequestInput) SetNextToken(v string) *GetCommentsForPullRequestInput {
18524	s.NextToken = &v
18525	return s
18526}
18527
18528// SetPullRequestId sets the PullRequestId field's value.
18529func (s *GetCommentsForPullRequestInput) SetPullRequestId(v string) *GetCommentsForPullRequestInput {
18530	s.PullRequestId = &v
18531	return s
18532}
18533
18534// SetRepositoryName sets the RepositoryName field's value.
18535func (s *GetCommentsForPullRequestInput) SetRepositoryName(v string) *GetCommentsForPullRequestInput {
18536	s.RepositoryName = &v
18537	return s
18538}
18539
18540type GetCommentsForPullRequestOutput struct {
18541	_ struct{} `type:"structure"`
18542
18543	// An array of comment objects on the pull request.
18544	CommentsForPullRequestData []*CommentsForPullRequest `locationName:"commentsForPullRequestData" type:"list"`
18545
18546	// An enumeration token that can be used in a request to return the next batch
18547	// of the results.
18548	NextToken *string `locationName:"nextToken" type:"string"`
18549}
18550
18551// String returns the string representation
18552func (s GetCommentsForPullRequestOutput) String() string {
18553	return awsutil.Prettify(s)
18554}
18555
18556// GoString returns the string representation
18557func (s GetCommentsForPullRequestOutput) GoString() string {
18558	return s.String()
18559}
18560
18561// SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value.
18562func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput {
18563	s.CommentsForPullRequestData = v
18564	return s
18565}
18566
18567// SetNextToken sets the NextToken field's value.
18568func (s *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput {
18569	s.NextToken = &v
18570	return s
18571}
18572
18573// Represents the input of a get commit operation.
18574type GetCommitInput struct {
18575	_ struct{} `type:"structure"`
18576
18577	// The commit ID. Commit IDs are the full SHA ID of the commit.
18578	//
18579	// CommitId is a required field
18580	CommitId *string `locationName:"commitId" type:"string" required:"true"`
18581
18582	// The name of the repository to which the commit was made.
18583	//
18584	// RepositoryName is a required field
18585	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
18586}
18587
18588// String returns the string representation
18589func (s GetCommitInput) String() string {
18590	return awsutil.Prettify(s)
18591}
18592
18593// GoString returns the string representation
18594func (s GetCommitInput) GoString() string {
18595	return s.String()
18596}
18597
18598// Validate inspects the fields of the type to determine if they are valid.
18599func (s *GetCommitInput) Validate() error {
18600	invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"}
18601	if s.CommitId == nil {
18602		invalidParams.Add(request.NewErrParamRequired("CommitId"))
18603	}
18604	if s.RepositoryName == nil {
18605		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
18606	}
18607	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18608		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18609	}
18610
18611	if invalidParams.Len() > 0 {
18612		return invalidParams
18613	}
18614	return nil
18615}
18616
18617// SetCommitId sets the CommitId field's value.
18618func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput {
18619	s.CommitId = &v
18620	return s
18621}
18622
18623// SetRepositoryName sets the RepositoryName field's value.
18624func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput {
18625	s.RepositoryName = &v
18626	return s
18627}
18628
18629// Represents the output of a get commit operation.
18630type GetCommitOutput struct {
18631	_ struct{} `type:"structure"`
18632
18633	// A commit data type object that contains information about the specified commit.
18634	//
18635	// Commit is a required field
18636	Commit *Commit `locationName:"commit" type:"structure" required:"true"`
18637}
18638
18639// String returns the string representation
18640func (s GetCommitOutput) String() string {
18641	return awsutil.Prettify(s)
18642}
18643
18644// GoString returns the string representation
18645func (s GetCommitOutput) GoString() string {
18646	return s.String()
18647}
18648
18649// SetCommit sets the Commit field's value.
18650func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput {
18651	s.Commit = v
18652	return s
18653}
18654
18655type GetDifferencesInput struct {
18656	_ struct{} `type:"structure"`
18657
18658	// The branch, tag, HEAD, or other fully qualified reference used to identify
18659	// a commit.
18660	//
18661	// AfterCommitSpecifier is a required field
18662	AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"`
18663
18664	// The file path in which to check differences. Limits the results to this path.
18665	// Can also be used to specify the changed name of a directory or folder, if
18666	// it has changed. If not specified, differences are shown for all paths.
18667	AfterPath *string `locationName:"afterPath" type:"string"`
18668
18669	// The branch, tag, HEAD, or other fully qualified reference used to identify
18670	// a commit (for example, the full commit ID). Optional. If not specified, all
18671	// changes before the afterCommitSpecifier value are shown. If you do not use
18672	// beforeCommitSpecifier in your request, consider limiting the results with
18673	// maxResults.
18674	BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"`
18675
18676	// The file path in which to check for differences. Limits the results to this
18677	// path. Can also be used to specify the previous name of a directory or folder.
18678	// If beforePath and afterPath are not specified, differences are shown for
18679	// all paths.
18680	BeforePath *string `locationName:"beforePath" type:"string"`
18681
18682	// A non-zero, non-negative integer used to limit the number of returned results.
18683	MaxResults *int64 `type:"integer"`
18684
18685	// An enumeration token that, when provided in a request, returns the next batch
18686	// of the results.
18687	NextToken *string `type:"string"`
18688
18689	// The name of the repository where you want to get differences.
18690	//
18691	// RepositoryName is a required field
18692	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
18693}
18694
18695// String returns the string representation
18696func (s GetDifferencesInput) String() string {
18697	return awsutil.Prettify(s)
18698}
18699
18700// GoString returns the string representation
18701func (s GetDifferencesInput) GoString() string {
18702	return s.String()
18703}
18704
18705// Validate inspects the fields of the type to determine if they are valid.
18706func (s *GetDifferencesInput) Validate() error {
18707	invalidParams := request.ErrInvalidParams{Context: "GetDifferencesInput"}
18708	if s.AfterCommitSpecifier == nil {
18709		invalidParams.Add(request.NewErrParamRequired("AfterCommitSpecifier"))
18710	}
18711	if s.RepositoryName == nil {
18712		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
18713	}
18714	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18715		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18716	}
18717
18718	if invalidParams.Len() > 0 {
18719		return invalidParams
18720	}
18721	return nil
18722}
18723
18724// SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value.
18725func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput {
18726	s.AfterCommitSpecifier = &v
18727	return s
18728}
18729
18730// SetAfterPath sets the AfterPath field's value.
18731func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput {
18732	s.AfterPath = &v
18733	return s
18734}
18735
18736// SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value.
18737func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput {
18738	s.BeforeCommitSpecifier = &v
18739	return s
18740}
18741
18742// SetBeforePath sets the BeforePath field's value.
18743func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput {
18744	s.BeforePath = &v
18745	return s
18746}
18747
18748// SetMaxResults sets the MaxResults field's value.
18749func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput {
18750	s.MaxResults = &v
18751	return s
18752}
18753
18754// SetNextToken sets the NextToken field's value.
18755func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput {
18756	s.NextToken = &v
18757	return s
18758}
18759
18760// SetRepositoryName sets the RepositoryName field's value.
18761func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput {
18762	s.RepositoryName = &v
18763	return s
18764}
18765
18766type GetDifferencesOutput struct {
18767	_ struct{} `type:"structure"`
18768
18769	// A data type object that contains information about the differences, including
18770	// whether the difference is added, modified, or deleted (A, D, M).
18771	Differences []*Difference `locationName:"differences" type:"list"`
18772
18773	// An enumeration token that can be used in a request to return the next batch
18774	// of the results.
18775	NextToken *string `type:"string"`
18776}
18777
18778// String returns the string representation
18779func (s GetDifferencesOutput) String() string {
18780	return awsutil.Prettify(s)
18781}
18782
18783// GoString returns the string representation
18784func (s GetDifferencesOutput) GoString() string {
18785	return s.String()
18786}
18787
18788// SetDifferences sets the Differences field's value.
18789func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput {
18790	s.Differences = v
18791	return s
18792}
18793
18794// SetNextToken sets the NextToken field's value.
18795func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput {
18796	s.NextToken = &v
18797	return s
18798}
18799
18800type GetFileInput struct {
18801	_ struct{} `type:"structure"`
18802
18803	// The fully quaified reference that identifies the commit that contains the
18804	// file. For example, you can specify a full commit ID, a tag, a branch name,
18805	// or a reference such as refs/heads/master. If none is provided, the head commit
18806	// is used.
18807	CommitSpecifier *string `locationName:"commitSpecifier" type:"string"`
18808
18809	// The fully qualified path to the file, including the full name and extension
18810	// of the file. For example, /examples/file.md is the fully qualified path to
18811	// a file named file.md in a folder named examples.
18812	//
18813	// FilePath is a required field
18814	FilePath *string `locationName:"filePath" type:"string" required:"true"`
18815
18816	// The name of the repository that contains the file.
18817	//
18818	// RepositoryName is a required field
18819	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
18820}
18821
18822// String returns the string representation
18823func (s GetFileInput) String() string {
18824	return awsutil.Prettify(s)
18825}
18826
18827// GoString returns the string representation
18828func (s GetFileInput) GoString() string {
18829	return s.String()
18830}
18831
18832// Validate inspects the fields of the type to determine if they are valid.
18833func (s *GetFileInput) Validate() error {
18834	invalidParams := request.ErrInvalidParams{Context: "GetFileInput"}
18835	if s.FilePath == nil {
18836		invalidParams.Add(request.NewErrParamRequired("FilePath"))
18837	}
18838	if s.RepositoryName == nil {
18839		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
18840	}
18841	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
18842		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
18843	}
18844
18845	if invalidParams.Len() > 0 {
18846		return invalidParams
18847	}
18848	return nil
18849}
18850
18851// SetCommitSpecifier sets the CommitSpecifier field's value.
18852func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput {
18853	s.CommitSpecifier = &v
18854	return s
18855}
18856
18857// SetFilePath sets the FilePath field's value.
18858func (s *GetFileInput) SetFilePath(v string) *GetFileInput {
18859	s.FilePath = &v
18860	return s
18861}
18862
18863// SetRepositoryName sets the RepositoryName field's value.
18864func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput {
18865	s.RepositoryName = &v
18866	return s
18867}
18868
18869type GetFileOutput struct {
18870	_ struct{} `type:"structure"`
18871
18872	// The blob ID of the object that represents the file content.
18873	//
18874	// BlobId is a required field
18875	BlobId *string `locationName:"blobId" type:"string" required:"true"`
18876
18877	// The full commit ID of the commit that contains the content returned by GetFile.
18878	//
18879	// CommitId is a required field
18880	CommitId *string `locationName:"commitId" type:"string" required:"true"`
18881
18882	// The base-64 encoded binary data object that represents the content of the
18883	// file.
18884	//
18885	// FileContent is automatically base64 encoded/decoded by the SDK.
18886	//
18887	// FileContent is a required field
18888	FileContent []byte `locationName:"fileContent" type:"blob" required:"true"`
18889
18890	// The extrapolated file mode permissions of the blob. Valid values include
18891	// strings such as EXECUTABLE and not numeric values.
18892	//
18893	// The file mode permissions returned by this API are not the standard file
18894	// mode permission values, such as 100644, but rather extrapolated values. See
18895	// the supported return values.
18896	//
18897	// FileMode is a required field
18898	FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"`
18899
18900	// The fully qualified path to the specified file. Returns the name and extension
18901	// of the file.
18902	//
18903	// FilePath is a required field
18904	FilePath *string `locationName:"filePath" type:"string" required:"true"`
18905
18906	// The size of the contents of the file, in bytes.
18907	//
18908	// FileSize is a required field
18909	FileSize *int64 `locationName:"fileSize" type:"long" required:"true"`
18910}
18911
18912// String returns the string representation
18913func (s GetFileOutput) String() string {
18914	return awsutil.Prettify(s)
18915}
18916
18917// GoString returns the string representation
18918func (s GetFileOutput) GoString() string {
18919	return s.String()
18920}
18921
18922// SetBlobId sets the BlobId field's value.
18923func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput {
18924	s.BlobId = &v
18925	return s
18926}
18927
18928// SetCommitId sets the CommitId field's value.
18929func (s *GetFileOutput) SetCommitId(v string) *GetFileOutput {
18930	s.CommitId = &v
18931	return s
18932}
18933
18934// SetFileContent sets the FileContent field's value.
18935func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput {
18936	s.FileContent = v
18937	return s
18938}
18939
18940// SetFileMode sets the FileMode field's value.
18941func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput {
18942	s.FileMode = &v
18943	return s
18944}
18945
18946// SetFilePath sets the FilePath field's value.
18947func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput {
18948	s.FilePath = &v
18949	return s
18950}
18951
18952// SetFileSize sets the FileSize field's value.
18953func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput {
18954	s.FileSize = &v
18955	return s
18956}
18957
18958type GetFolderInput struct {
18959	_ struct{} `type:"structure"`
18960
18961	// A fully qualified reference used to identify a commit that contains the version
18962	// of the folder's content to return. A fully qualified reference can be a commit
18963	// ID, branch name, tag, or reference such as HEAD. If no specifier is provided,
18964	// the folder content is returned as it exists in the HEAD commit.
18965	CommitSpecifier *string `locationName:"commitSpecifier" type:"string"`
18966
18967	// The fully qualified path to the folder whose contents are returned, including
18968	// the folder name. For example, /examples is a fully-qualified path to a folder
18969	// named examples that was created off of the root directory (/) of a repository.
18970	//
18971	// FolderPath is a required field
18972	FolderPath *string `locationName:"folderPath" type:"string" required:"true"`
18973
18974	// The name of the repository.
18975	//
18976	// RepositoryName is a required field
18977	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
18978}
18979
18980// String returns the string representation
18981func (s GetFolderInput) String() string {
18982	return awsutil.Prettify(s)
18983}
18984
18985// GoString returns the string representation
18986func (s GetFolderInput) GoString() string {
18987	return s.String()
18988}
18989
18990// Validate inspects the fields of the type to determine if they are valid.
18991func (s *GetFolderInput) Validate() error {
18992	invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"}
18993	if s.FolderPath == nil {
18994		invalidParams.Add(request.NewErrParamRequired("FolderPath"))
18995	}
18996	if s.RepositoryName == nil {
18997		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
18998	}
18999	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
19000		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
19001	}
19002
19003	if invalidParams.Len() > 0 {
19004		return invalidParams
19005	}
19006	return nil
19007}
19008
19009// SetCommitSpecifier sets the CommitSpecifier field's value.
19010func (s *GetFolderInput) SetCommitSpecifier(v string) *GetFolderInput {
19011	s.CommitSpecifier = &v
19012	return s
19013}
19014
19015// SetFolderPath sets the FolderPath field's value.
19016func (s *GetFolderInput) SetFolderPath(v string) *GetFolderInput {
19017	s.FolderPath = &v
19018	return s
19019}
19020
19021// SetRepositoryName sets the RepositoryName field's value.
19022func (s *GetFolderInput) SetRepositoryName(v string) *GetFolderInput {
19023	s.RepositoryName = &v
19024	return s
19025}
19026
19027type GetFolderOutput struct {
19028	_ struct{} `type:"structure"`
19029
19030	// The full commit ID used as a reference for the returned version of the folder
19031	// content.
19032	//
19033	// CommitId is a required field
19034	CommitId *string `locationName:"commitId" type:"string" required:"true"`
19035
19036	// The list of files in the specified folder, if any.
19037	Files []*File `locationName:"files" type:"list"`
19038
19039	// The fully qualified path of the folder whose contents are returned.
19040	//
19041	// FolderPath is a required field
19042	FolderPath *string `locationName:"folderPath" type:"string" required:"true"`
19043
19044	// The list of folders that exist under the specified folder, if any.
19045	SubFolders []*Folder `locationName:"subFolders" type:"list"`
19046
19047	// The list of submodules in the specified folder, if any.
19048	SubModules []*SubModule `locationName:"subModules" type:"list"`
19049
19050	// The list of symbolic links to other files and folders in the specified folder,
19051	// if any.
19052	SymbolicLinks []*SymbolicLink `locationName:"symbolicLinks" type:"list"`
19053
19054	// The full SHA-1 pointer of the tree information for the commit that contains
19055	// the folder.
19056	TreeId *string `locationName:"treeId" type:"string"`
19057}
19058
19059// String returns the string representation
19060func (s GetFolderOutput) String() string {
19061	return awsutil.Prettify(s)
19062}
19063
19064// GoString returns the string representation
19065func (s GetFolderOutput) GoString() string {
19066	return s.String()
19067}
19068
19069// SetCommitId sets the CommitId field's value.
19070func (s *GetFolderOutput) SetCommitId(v string) *GetFolderOutput {
19071	s.CommitId = &v
19072	return s
19073}
19074
19075// SetFiles sets the Files field's value.
19076func (s *GetFolderOutput) SetFiles(v []*File) *GetFolderOutput {
19077	s.Files = v
19078	return s
19079}
19080
19081// SetFolderPath sets the FolderPath field's value.
19082func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput {
19083	s.FolderPath = &v
19084	return s
19085}
19086
19087// SetSubFolders sets the SubFolders field's value.
19088func (s *GetFolderOutput) SetSubFolders(v []*Folder) *GetFolderOutput {
19089	s.SubFolders = v
19090	return s
19091}
19092
19093// SetSubModules sets the SubModules field's value.
19094func (s *GetFolderOutput) SetSubModules(v []*SubModule) *GetFolderOutput {
19095	s.SubModules = v
19096	return s
19097}
19098
19099// SetSymbolicLinks sets the SymbolicLinks field's value.
19100func (s *GetFolderOutput) SetSymbolicLinks(v []*SymbolicLink) *GetFolderOutput {
19101	s.SymbolicLinks = v
19102	return s
19103}
19104
19105// SetTreeId sets the TreeId field's value.
19106func (s *GetFolderOutput) SetTreeId(v string) *GetFolderOutput {
19107	s.TreeId = &v
19108	return s
19109}
19110
19111type GetMergeCommitInput struct {
19112	_ struct{} `type:"structure"`
19113
19114	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
19115	// is used, which returns a not-mergeable result if the same file has differences
19116	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
19117	// mergeable if the same file in both branches has differences on the same line.
19118	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
19119
19120	// Specifies which branch to use when resolving conflicts, or whether to attempt
19121	// automatically merging two versions of a file. The default is NONE, which
19122	// requires any conflicts to be resolved manually before the merge operation
19123	// is successful.
19124	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
19125
19126	// The branch, tag, HEAD, or other fully qualified reference used to identify
19127	// a commit (for example, a branch name or a full commit ID).
19128	//
19129	// DestinationCommitSpecifier is a required field
19130	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
19131
19132	// The name of the repository that contains the merge commit about which you
19133	// want to get information.
19134	//
19135	// RepositoryName is a required field
19136	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
19137
19138	// The branch, tag, HEAD, or other fully qualified reference used to identify
19139	// a commit (for example, a branch name or a full commit ID).
19140	//
19141	// SourceCommitSpecifier is a required field
19142	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
19143}
19144
19145// String returns the string representation
19146func (s GetMergeCommitInput) String() string {
19147	return awsutil.Prettify(s)
19148}
19149
19150// GoString returns the string representation
19151func (s GetMergeCommitInput) GoString() string {
19152	return s.String()
19153}
19154
19155// Validate inspects the fields of the type to determine if they are valid.
19156func (s *GetMergeCommitInput) Validate() error {
19157	invalidParams := request.ErrInvalidParams{Context: "GetMergeCommitInput"}
19158	if s.DestinationCommitSpecifier == nil {
19159		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
19160	}
19161	if s.RepositoryName == nil {
19162		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
19163	}
19164	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
19165		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
19166	}
19167	if s.SourceCommitSpecifier == nil {
19168		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
19169	}
19170
19171	if invalidParams.Len() > 0 {
19172		return invalidParams
19173	}
19174	return nil
19175}
19176
19177// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
19178func (s *GetMergeCommitInput) SetConflictDetailLevel(v string) *GetMergeCommitInput {
19179	s.ConflictDetailLevel = &v
19180	return s
19181}
19182
19183// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
19184func (s *GetMergeCommitInput) SetConflictResolutionStrategy(v string) *GetMergeCommitInput {
19185	s.ConflictResolutionStrategy = &v
19186	return s
19187}
19188
19189// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
19190func (s *GetMergeCommitInput) SetDestinationCommitSpecifier(v string) *GetMergeCommitInput {
19191	s.DestinationCommitSpecifier = &v
19192	return s
19193}
19194
19195// SetRepositoryName sets the RepositoryName field's value.
19196func (s *GetMergeCommitInput) SetRepositoryName(v string) *GetMergeCommitInput {
19197	s.RepositoryName = &v
19198	return s
19199}
19200
19201// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
19202func (s *GetMergeCommitInput) SetSourceCommitSpecifier(v string) *GetMergeCommitInput {
19203	s.SourceCommitSpecifier = &v
19204	return s
19205}
19206
19207type GetMergeCommitOutput struct {
19208	_ struct{} `type:"structure"`
19209
19210	// The commit ID of the merge base.
19211	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
19212
19213	// The commit ID of the destination commit specifier that was used in the merge
19214	// evaluation.
19215	DestinationCommitId *string `locationName:"destinationCommitId" type:"string"`
19216
19217	// The commit ID for the merge commit created when the source branch was merged
19218	// into the destination branch. If the fast-forward merge strategy was used,
19219	// there is no merge commit.
19220	MergedCommitId *string `locationName:"mergedCommitId" type:"string"`
19221
19222	// The commit ID of the source commit specifier that was used in the merge evaluation.
19223	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
19224}
19225
19226// String returns the string representation
19227func (s GetMergeCommitOutput) String() string {
19228	return awsutil.Prettify(s)
19229}
19230
19231// GoString returns the string representation
19232func (s GetMergeCommitOutput) GoString() string {
19233	return s.String()
19234}
19235
19236// SetBaseCommitId sets the BaseCommitId field's value.
19237func (s *GetMergeCommitOutput) SetBaseCommitId(v string) *GetMergeCommitOutput {
19238	s.BaseCommitId = &v
19239	return s
19240}
19241
19242// SetDestinationCommitId sets the DestinationCommitId field's value.
19243func (s *GetMergeCommitOutput) SetDestinationCommitId(v string) *GetMergeCommitOutput {
19244	s.DestinationCommitId = &v
19245	return s
19246}
19247
19248// SetMergedCommitId sets the MergedCommitId field's value.
19249func (s *GetMergeCommitOutput) SetMergedCommitId(v string) *GetMergeCommitOutput {
19250	s.MergedCommitId = &v
19251	return s
19252}
19253
19254// SetSourceCommitId sets the SourceCommitId field's value.
19255func (s *GetMergeCommitOutput) SetSourceCommitId(v string) *GetMergeCommitOutput {
19256	s.SourceCommitId = &v
19257	return s
19258}
19259
19260type GetMergeConflictsInput struct {
19261	_ struct{} `type:"structure"`
19262
19263	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
19264	// is used, which returns a not-mergeable result if the same file has differences
19265	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
19266	// mergeable if the same file in both branches has differences on the same line.
19267	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
19268
19269	// Specifies which branch to use when resolving conflicts, or whether to attempt
19270	// automatically merging two versions of a file. The default is NONE, which
19271	// requires any conflicts to be resolved manually before the merge operation
19272	// is successful.
19273	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
19274
19275	// The branch, tag, HEAD, or other fully qualified reference used to identify
19276	// a commit (for example, a branch name or a full commit ID).
19277	//
19278	// DestinationCommitSpecifier is a required field
19279	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
19280
19281	// The maximum number of files to include in the output.
19282	MaxConflictFiles *int64 `locationName:"maxConflictFiles" type:"integer"`
19283
19284	// The merge option or strategy you want to use to merge the code.
19285	//
19286	// MergeOption is a required field
19287	MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
19288
19289	// An enumeration token that, when provided in a request, returns the next batch
19290	// of the results.
19291	NextToken *string `locationName:"nextToken" type:"string"`
19292
19293	// The name of the repository where the pull request was created.
19294	//
19295	// RepositoryName is a required field
19296	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
19297
19298	// The branch, tag, HEAD, or other fully qualified reference used to identify
19299	// a commit (for example, a branch name or a full commit ID).
19300	//
19301	// SourceCommitSpecifier is a required field
19302	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
19303}
19304
19305// String returns the string representation
19306func (s GetMergeConflictsInput) String() string {
19307	return awsutil.Prettify(s)
19308}
19309
19310// GoString returns the string representation
19311func (s GetMergeConflictsInput) GoString() string {
19312	return s.String()
19313}
19314
19315// Validate inspects the fields of the type to determine if they are valid.
19316func (s *GetMergeConflictsInput) Validate() error {
19317	invalidParams := request.ErrInvalidParams{Context: "GetMergeConflictsInput"}
19318	if s.DestinationCommitSpecifier == nil {
19319		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
19320	}
19321	if s.MergeOption == nil {
19322		invalidParams.Add(request.NewErrParamRequired("MergeOption"))
19323	}
19324	if s.RepositoryName == nil {
19325		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
19326	}
19327	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
19328		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
19329	}
19330	if s.SourceCommitSpecifier == nil {
19331		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
19332	}
19333
19334	if invalidParams.Len() > 0 {
19335		return invalidParams
19336	}
19337	return nil
19338}
19339
19340// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
19341func (s *GetMergeConflictsInput) SetConflictDetailLevel(v string) *GetMergeConflictsInput {
19342	s.ConflictDetailLevel = &v
19343	return s
19344}
19345
19346// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
19347func (s *GetMergeConflictsInput) SetConflictResolutionStrategy(v string) *GetMergeConflictsInput {
19348	s.ConflictResolutionStrategy = &v
19349	return s
19350}
19351
19352// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
19353func (s *GetMergeConflictsInput) SetDestinationCommitSpecifier(v string) *GetMergeConflictsInput {
19354	s.DestinationCommitSpecifier = &v
19355	return s
19356}
19357
19358// SetMaxConflictFiles sets the MaxConflictFiles field's value.
19359func (s *GetMergeConflictsInput) SetMaxConflictFiles(v int64) *GetMergeConflictsInput {
19360	s.MaxConflictFiles = &v
19361	return s
19362}
19363
19364// SetMergeOption sets the MergeOption field's value.
19365func (s *GetMergeConflictsInput) SetMergeOption(v string) *GetMergeConflictsInput {
19366	s.MergeOption = &v
19367	return s
19368}
19369
19370// SetNextToken sets the NextToken field's value.
19371func (s *GetMergeConflictsInput) SetNextToken(v string) *GetMergeConflictsInput {
19372	s.NextToken = &v
19373	return s
19374}
19375
19376// SetRepositoryName sets the RepositoryName field's value.
19377func (s *GetMergeConflictsInput) SetRepositoryName(v string) *GetMergeConflictsInput {
19378	s.RepositoryName = &v
19379	return s
19380}
19381
19382// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
19383func (s *GetMergeConflictsInput) SetSourceCommitSpecifier(v string) *GetMergeConflictsInput {
19384	s.SourceCommitSpecifier = &v
19385	return s
19386}
19387
19388type GetMergeConflictsOutput struct {
19389	_ struct{} `type:"structure"`
19390
19391	// The commit ID of the merge base.
19392	BaseCommitId *string `locationName:"baseCommitId" type:"string"`
19393
19394	// A list of metadata for any conflicting files. If the specified merge strategy
19395	// is FAST_FORWARD_MERGE, this list is always empty.
19396	//
19397	// ConflictMetadataList is a required field
19398	ConflictMetadataList []*ConflictMetadata `locationName:"conflictMetadataList" type:"list" required:"true"`
19399
19400	// The commit ID of the destination commit specifier that was used in the merge
19401	// evaluation.
19402	//
19403	// DestinationCommitId is a required field
19404	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
19405
19406	// A Boolean value that indicates whether the code is mergeable by the specified
19407	// merge option.
19408	//
19409	// Mergeable is a required field
19410	Mergeable *bool `locationName:"mergeable" type:"boolean" required:"true"`
19411
19412	// An enumeration token that can be used in a request to return the next batch
19413	// of the results.
19414	NextToken *string `locationName:"nextToken" type:"string"`
19415
19416	// The commit ID of the source commit specifier that was used in the merge evaluation.
19417	//
19418	// SourceCommitId is a required field
19419	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
19420}
19421
19422// String returns the string representation
19423func (s GetMergeConflictsOutput) String() string {
19424	return awsutil.Prettify(s)
19425}
19426
19427// GoString returns the string representation
19428func (s GetMergeConflictsOutput) GoString() string {
19429	return s.String()
19430}
19431
19432// SetBaseCommitId sets the BaseCommitId field's value.
19433func (s *GetMergeConflictsOutput) SetBaseCommitId(v string) *GetMergeConflictsOutput {
19434	s.BaseCommitId = &v
19435	return s
19436}
19437
19438// SetConflictMetadataList sets the ConflictMetadataList field's value.
19439func (s *GetMergeConflictsOutput) SetConflictMetadataList(v []*ConflictMetadata) *GetMergeConflictsOutput {
19440	s.ConflictMetadataList = v
19441	return s
19442}
19443
19444// SetDestinationCommitId sets the DestinationCommitId field's value.
19445func (s *GetMergeConflictsOutput) SetDestinationCommitId(v string) *GetMergeConflictsOutput {
19446	s.DestinationCommitId = &v
19447	return s
19448}
19449
19450// SetMergeable sets the Mergeable field's value.
19451func (s *GetMergeConflictsOutput) SetMergeable(v bool) *GetMergeConflictsOutput {
19452	s.Mergeable = &v
19453	return s
19454}
19455
19456// SetNextToken sets the NextToken field's value.
19457func (s *GetMergeConflictsOutput) SetNextToken(v string) *GetMergeConflictsOutput {
19458	s.NextToken = &v
19459	return s
19460}
19461
19462// SetSourceCommitId sets the SourceCommitId field's value.
19463func (s *GetMergeConflictsOutput) SetSourceCommitId(v string) *GetMergeConflictsOutput {
19464	s.SourceCommitId = &v
19465	return s
19466}
19467
19468type GetMergeOptionsInput struct {
19469	_ struct{} `type:"structure"`
19470
19471	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
19472	// is used, which returns a not-mergeable result if the same file has differences
19473	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
19474	// mergeable if the same file in both branches has differences on the same line.
19475	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
19476
19477	// Specifies which branch to use when resolving conflicts, or whether to attempt
19478	// automatically merging two versions of a file. The default is NONE, which
19479	// requires any conflicts to be resolved manually before the merge operation
19480	// is successful.
19481	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
19482
19483	// The branch, tag, HEAD, or other fully qualified reference used to identify
19484	// a commit (for example, a branch name or a full commit ID).
19485	//
19486	// DestinationCommitSpecifier is a required field
19487	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
19488
19489	// The name of the repository that contains the commits about which you want
19490	// to get merge options.
19491	//
19492	// RepositoryName is a required field
19493	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
19494
19495	// The branch, tag, HEAD, or other fully qualified reference used to identify
19496	// a commit (for example, a branch name or a full commit ID).
19497	//
19498	// SourceCommitSpecifier is a required field
19499	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
19500}
19501
19502// String returns the string representation
19503func (s GetMergeOptionsInput) String() string {
19504	return awsutil.Prettify(s)
19505}
19506
19507// GoString returns the string representation
19508func (s GetMergeOptionsInput) GoString() string {
19509	return s.String()
19510}
19511
19512// Validate inspects the fields of the type to determine if they are valid.
19513func (s *GetMergeOptionsInput) Validate() error {
19514	invalidParams := request.ErrInvalidParams{Context: "GetMergeOptionsInput"}
19515	if s.DestinationCommitSpecifier == nil {
19516		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
19517	}
19518	if s.RepositoryName == nil {
19519		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
19520	}
19521	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
19522		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
19523	}
19524	if s.SourceCommitSpecifier == nil {
19525		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
19526	}
19527
19528	if invalidParams.Len() > 0 {
19529		return invalidParams
19530	}
19531	return nil
19532}
19533
19534// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
19535func (s *GetMergeOptionsInput) SetConflictDetailLevel(v string) *GetMergeOptionsInput {
19536	s.ConflictDetailLevel = &v
19537	return s
19538}
19539
19540// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
19541func (s *GetMergeOptionsInput) SetConflictResolutionStrategy(v string) *GetMergeOptionsInput {
19542	s.ConflictResolutionStrategy = &v
19543	return s
19544}
19545
19546// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
19547func (s *GetMergeOptionsInput) SetDestinationCommitSpecifier(v string) *GetMergeOptionsInput {
19548	s.DestinationCommitSpecifier = &v
19549	return s
19550}
19551
19552// SetRepositoryName sets the RepositoryName field's value.
19553func (s *GetMergeOptionsInput) SetRepositoryName(v string) *GetMergeOptionsInput {
19554	s.RepositoryName = &v
19555	return s
19556}
19557
19558// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
19559func (s *GetMergeOptionsInput) SetSourceCommitSpecifier(v string) *GetMergeOptionsInput {
19560	s.SourceCommitSpecifier = &v
19561	return s
19562}
19563
19564type GetMergeOptionsOutput struct {
19565	_ struct{} `type:"structure"`
19566
19567	// The commit ID of the merge base.
19568	//
19569	// BaseCommitId is a required field
19570	BaseCommitId *string `locationName:"baseCommitId" type:"string" required:"true"`
19571
19572	// The commit ID of the destination commit specifier that was used in the merge
19573	// evaluation.
19574	//
19575	// DestinationCommitId is a required field
19576	DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
19577
19578	// The merge option or strategy used to merge the code.
19579	//
19580	// MergeOptions is a required field
19581	MergeOptions []*string `locationName:"mergeOptions" type:"list" required:"true"`
19582
19583	// The commit ID of the source commit specifier that was used in the merge evaluation.
19584	//
19585	// SourceCommitId is a required field
19586	SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
19587}
19588
19589// String returns the string representation
19590func (s GetMergeOptionsOutput) String() string {
19591	return awsutil.Prettify(s)
19592}
19593
19594// GoString returns the string representation
19595func (s GetMergeOptionsOutput) GoString() string {
19596	return s.String()
19597}
19598
19599// SetBaseCommitId sets the BaseCommitId field's value.
19600func (s *GetMergeOptionsOutput) SetBaseCommitId(v string) *GetMergeOptionsOutput {
19601	s.BaseCommitId = &v
19602	return s
19603}
19604
19605// SetDestinationCommitId sets the DestinationCommitId field's value.
19606func (s *GetMergeOptionsOutput) SetDestinationCommitId(v string) *GetMergeOptionsOutput {
19607	s.DestinationCommitId = &v
19608	return s
19609}
19610
19611// SetMergeOptions sets the MergeOptions field's value.
19612func (s *GetMergeOptionsOutput) SetMergeOptions(v []*string) *GetMergeOptionsOutput {
19613	s.MergeOptions = v
19614	return s
19615}
19616
19617// SetSourceCommitId sets the SourceCommitId field's value.
19618func (s *GetMergeOptionsOutput) SetSourceCommitId(v string) *GetMergeOptionsOutput {
19619	s.SourceCommitId = &v
19620	return s
19621}
19622
19623type GetPullRequestApprovalStatesInput struct {
19624	_ struct{} `type:"structure"`
19625
19626	// The system-generated ID for the pull request.
19627	//
19628	// PullRequestId is a required field
19629	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
19630
19631	// The system-generated ID for the pull request revision.
19632	//
19633	// RevisionId is a required field
19634	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
19635}
19636
19637// String returns the string representation
19638func (s GetPullRequestApprovalStatesInput) String() string {
19639	return awsutil.Prettify(s)
19640}
19641
19642// GoString returns the string representation
19643func (s GetPullRequestApprovalStatesInput) GoString() string {
19644	return s.String()
19645}
19646
19647// Validate inspects the fields of the type to determine if they are valid.
19648func (s *GetPullRequestApprovalStatesInput) Validate() error {
19649	invalidParams := request.ErrInvalidParams{Context: "GetPullRequestApprovalStatesInput"}
19650	if s.PullRequestId == nil {
19651		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
19652	}
19653	if s.RevisionId == nil {
19654		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
19655	}
19656
19657	if invalidParams.Len() > 0 {
19658		return invalidParams
19659	}
19660	return nil
19661}
19662
19663// SetPullRequestId sets the PullRequestId field's value.
19664func (s *GetPullRequestApprovalStatesInput) SetPullRequestId(v string) *GetPullRequestApprovalStatesInput {
19665	s.PullRequestId = &v
19666	return s
19667}
19668
19669// SetRevisionId sets the RevisionId field's value.
19670func (s *GetPullRequestApprovalStatesInput) SetRevisionId(v string) *GetPullRequestApprovalStatesInput {
19671	s.RevisionId = &v
19672	return s
19673}
19674
19675type GetPullRequestApprovalStatesOutput struct {
19676	_ struct{} `type:"structure"`
19677
19678	// Information about users who have approved the pull request.
19679	Approvals []*Approval `locationName:"approvals" type:"list"`
19680}
19681
19682// String returns the string representation
19683func (s GetPullRequestApprovalStatesOutput) String() string {
19684	return awsutil.Prettify(s)
19685}
19686
19687// GoString returns the string representation
19688func (s GetPullRequestApprovalStatesOutput) GoString() string {
19689	return s.String()
19690}
19691
19692// SetApprovals sets the Approvals field's value.
19693func (s *GetPullRequestApprovalStatesOutput) SetApprovals(v []*Approval) *GetPullRequestApprovalStatesOutput {
19694	s.Approvals = v
19695	return s
19696}
19697
19698type GetPullRequestInput struct {
19699	_ struct{} `type:"structure"`
19700
19701	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
19702	//
19703	// PullRequestId is a required field
19704	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
19705}
19706
19707// String returns the string representation
19708func (s GetPullRequestInput) String() string {
19709	return awsutil.Prettify(s)
19710}
19711
19712// GoString returns the string representation
19713func (s GetPullRequestInput) GoString() string {
19714	return s.String()
19715}
19716
19717// Validate inspects the fields of the type to determine if they are valid.
19718func (s *GetPullRequestInput) Validate() error {
19719	invalidParams := request.ErrInvalidParams{Context: "GetPullRequestInput"}
19720	if s.PullRequestId == nil {
19721		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
19722	}
19723
19724	if invalidParams.Len() > 0 {
19725		return invalidParams
19726	}
19727	return nil
19728}
19729
19730// SetPullRequestId sets the PullRequestId field's value.
19731func (s *GetPullRequestInput) SetPullRequestId(v string) *GetPullRequestInput {
19732	s.PullRequestId = &v
19733	return s
19734}
19735
19736type GetPullRequestOutput struct {
19737	_ struct{} `type:"structure"`
19738
19739	// Information about the specified pull request.
19740	//
19741	// PullRequest is a required field
19742	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
19743}
19744
19745// String returns the string representation
19746func (s GetPullRequestOutput) String() string {
19747	return awsutil.Prettify(s)
19748}
19749
19750// GoString returns the string representation
19751func (s GetPullRequestOutput) GoString() string {
19752	return s.String()
19753}
19754
19755// SetPullRequest sets the PullRequest field's value.
19756func (s *GetPullRequestOutput) SetPullRequest(v *PullRequest) *GetPullRequestOutput {
19757	s.PullRequest = v
19758	return s
19759}
19760
19761type GetPullRequestOverrideStateInput struct {
19762	_ struct{} `type:"structure"`
19763
19764	// The ID of the pull request for which you want to get information about whether
19765	// approval rules have been set aside (overridden).
19766	//
19767	// PullRequestId is a required field
19768	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
19769
19770	// The system-generated ID of the revision for the pull request. To retrieve
19771	// the most recent revision ID, use GetPullRequest.
19772	//
19773	// RevisionId is a required field
19774	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
19775}
19776
19777// String returns the string representation
19778func (s GetPullRequestOverrideStateInput) String() string {
19779	return awsutil.Prettify(s)
19780}
19781
19782// GoString returns the string representation
19783func (s GetPullRequestOverrideStateInput) GoString() string {
19784	return s.String()
19785}
19786
19787// Validate inspects the fields of the type to determine if they are valid.
19788func (s *GetPullRequestOverrideStateInput) Validate() error {
19789	invalidParams := request.ErrInvalidParams{Context: "GetPullRequestOverrideStateInput"}
19790	if s.PullRequestId == nil {
19791		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
19792	}
19793	if s.RevisionId == nil {
19794		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
19795	}
19796
19797	if invalidParams.Len() > 0 {
19798		return invalidParams
19799	}
19800	return nil
19801}
19802
19803// SetPullRequestId sets the PullRequestId field's value.
19804func (s *GetPullRequestOverrideStateInput) SetPullRequestId(v string) *GetPullRequestOverrideStateInput {
19805	s.PullRequestId = &v
19806	return s
19807}
19808
19809// SetRevisionId sets the RevisionId field's value.
19810func (s *GetPullRequestOverrideStateInput) SetRevisionId(v string) *GetPullRequestOverrideStateInput {
19811	s.RevisionId = &v
19812	return s
19813}
19814
19815type GetPullRequestOverrideStateOutput struct {
19816	_ struct{} `type:"structure"`
19817
19818	// A Boolean value that indicates whether a pull request has had its rules set
19819	// aside (TRUE) or whether all approval rules still apply (FALSE).
19820	Overridden *bool `locationName:"overridden" type:"boolean"`
19821
19822	// The Amazon Resource Name (ARN) of the user or identity that overrode the
19823	// rules and their requirements for the pull request.
19824	Overrider *string `locationName:"overrider" type:"string"`
19825}
19826
19827// String returns the string representation
19828func (s GetPullRequestOverrideStateOutput) String() string {
19829	return awsutil.Prettify(s)
19830}
19831
19832// GoString returns the string representation
19833func (s GetPullRequestOverrideStateOutput) GoString() string {
19834	return s.String()
19835}
19836
19837// SetOverridden sets the Overridden field's value.
19838func (s *GetPullRequestOverrideStateOutput) SetOverridden(v bool) *GetPullRequestOverrideStateOutput {
19839	s.Overridden = &v
19840	return s
19841}
19842
19843// SetOverrider sets the Overrider field's value.
19844func (s *GetPullRequestOverrideStateOutput) SetOverrider(v string) *GetPullRequestOverrideStateOutput {
19845	s.Overrider = &v
19846	return s
19847}
19848
19849// Represents the input of a get repository operation.
19850type GetRepositoryInput struct {
19851	_ struct{} `type:"structure"`
19852
19853	// The name of the repository to get information about.
19854	//
19855	// RepositoryName is a required field
19856	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
19857}
19858
19859// String returns the string representation
19860func (s GetRepositoryInput) String() string {
19861	return awsutil.Prettify(s)
19862}
19863
19864// GoString returns the string representation
19865func (s GetRepositoryInput) GoString() string {
19866	return s.String()
19867}
19868
19869// Validate inspects the fields of the type to determine if they are valid.
19870func (s *GetRepositoryInput) Validate() error {
19871	invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"}
19872	if s.RepositoryName == nil {
19873		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
19874	}
19875	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
19876		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
19877	}
19878
19879	if invalidParams.Len() > 0 {
19880		return invalidParams
19881	}
19882	return nil
19883}
19884
19885// SetRepositoryName sets the RepositoryName field's value.
19886func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput {
19887	s.RepositoryName = &v
19888	return s
19889}
19890
19891// Represents the output of a get repository operation.
19892type GetRepositoryOutput struct {
19893	_ struct{} `type:"structure"`
19894
19895	// Information about the repository.
19896	RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
19897}
19898
19899// String returns the string representation
19900func (s GetRepositoryOutput) String() string {
19901	return awsutil.Prettify(s)
19902}
19903
19904// GoString returns the string representation
19905func (s GetRepositoryOutput) GoString() string {
19906	return s.String()
19907}
19908
19909// SetRepositoryMetadata sets the RepositoryMetadata field's value.
19910func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput {
19911	s.RepositoryMetadata = v
19912	return s
19913}
19914
19915// Represents the input of a get repository triggers operation.
19916type GetRepositoryTriggersInput struct {
19917	_ struct{} `type:"structure"`
19918
19919	// The name of the repository for which the trigger is configured.
19920	//
19921	// RepositoryName is a required field
19922	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
19923}
19924
19925// String returns the string representation
19926func (s GetRepositoryTriggersInput) String() string {
19927	return awsutil.Prettify(s)
19928}
19929
19930// GoString returns the string representation
19931func (s GetRepositoryTriggersInput) GoString() string {
19932	return s.String()
19933}
19934
19935// Validate inspects the fields of the type to determine if they are valid.
19936func (s *GetRepositoryTriggersInput) Validate() error {
19937	invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"}
19938	if s.RepositoryName == nil {
19939		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
19940	}
19941	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
19942		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
19943	}
19944
19945	if invalidParams.Len() > 0 {
19946		return invalidParams
19947	}
19948	return nil
19949}
19950
19951// SetRepositoryName sets the RepositoryName field's value.
19952func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput {
19953	s.RepositoryName = &v
19954	return s
19955}
19956
19957// Represents the output of a get repository triggers operation.
19958type GetRepositoryTriggersOutput struct {
19959	_ struct{} `type:"structure"`
19960
19961	// The system-generated unique ID for the trigger.
19962	ConfigurationId *string `locationName:"configurationId" type:"string"`
19963
19964	// The JSON block of configuration information for each trigger.
19965	Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"`
19966}
19967
19968// String returns the string representation
19969func (s GetRepositoryTriggersOutput) String() string {
19970	return awsutil.Prettify(s)
19971}
19972
19973// GoString returns the string representation
19974func (s GetRepositoryTriggersOutput) GoString() string {
19975	return s.String()
19976}
19977
19978// SetConfigurationId sets the ConfigurationId field's value.
19979func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput {
19980	s.ConfigurationId = &v
19981	return s
19982}
19983
19984// SetTriggers sets the Triggers field's value.
19985func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput {
19986	s.Triggers = v
19987	return s
19988}
19989
19990// The client request token is not valid. Either the token is not in a valid
19991// format, or the token has been used in a previous request and cannot be reused.
19992type IdempotencyParameterMismatchException struct {
19993	_            struct{}                  `type:"structure"`
19994	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
19995
19996	Message_ *string `locationName:"message" type:"string"`
19997}
19998
19999// String returns the string representation
20000func (s IdempotencyParameterMismatchException) String() string {
20001	return awsutil.Prettify(s)
20002}
20003
20004// GoString returns the string representation
20005func (s IdempotencyParameterMismatchException) GoString() string {
20006	return s.String()
20007}
20008
20009func newErrorIdempotencyParameterMismatchException(v protocol.ResponseMetadata) error {
20010	return &IdempotencyParameterMismatchException{
20011		RespMetadata: v,
20012	}
20013}
20014
20015// Code returns the exception type name.
20016func (s *IdempotencyParameterMismatchException) Code() string {
20017	return "IdempotencyParameterMismatchException"
20018}
20019
20020// Message returns the exception's message.
20021func (s *IdempotencyParameterMismatchException) Message() string {
20022	if s.Message_ != nil {
20023		return *s.Message_
20024	}
20025	return ""
20026}
20027
20028// OrigErr always returns nil, satisfies awserr.Error interface.
20029func (s *IdempotencyParameterMismatchException) OrigErr() error {
20030	return nil
20031}
20032
20033func (s *IdempotencyParameterMismatchException) Error() string {
20034	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20035}
20036
20037// Status code returns the HTTP status code for the request's response error.
20038func (s *IdempotencyParameterMismatchException) StatusCode() int {
20039	return s.RespMetadata.StatusCode
20040}
20041
20042// RequestID returns the service's response RequestID for request.
20043func (s *IdempotencyParameterMismatchException) RequestID() string {
20044	return s.RespMetadata.RequestID
20045}
20046
20047// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
20048// the full ARN for the user who initiated the change for the pull request,
20049// and then try again.
20050type InvalidActorArnException struct {
20051	_            struct{}                  `type:"structure"`
20052	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20053
20054	Message_ *string `locationName:"message" type:"string"`
20055}
20056
20057// String returns the string representation
20058func (s InvalidActorArnException) String() string {
20059	return awsutil.Prettify(s)
20060}
20061
20062// GoString returns the string representation
20063func (s InvalidActorArnException) GoString() string {
20064	return s.String()
20065}
20066
20067func newErrorInvalidActorArnException(v protocol.ResponseMetadata) error {
20068	return &InvalidActorArnException{
20069		RespMetadata: v,
20070	}
20071}
20072
20073// Code returns the exception type name.
20074func (s *InvalidActorArnException) Code() string {
20075	return "InvalidActorArnException"
20076}
20077
20078// Message returns the exception's message.
20079func (s *InvalidActorArnException) Message() string {
20080	if s.Message_ != nil {
20081		return *s.Message_
20082	}
20083	return ""
20084}
20085
20086// OrigErr always returns nil, satisfies awserr.Error interface.
20087func (s *InvalidActorArnException) OrigErr() error {
20088	return nil
20089}
20090
20091func (s *InvalidActorArnException) Error() string {
20092	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20093}
20094
20095// Status code returns the HTTP status code for the request's response error.
20096func (s *InvalidActorArnException) StatusCode() int {
20097	return s.RespMetadata.StatusCode
20098}
20099
20100// RequestID returns the service's response RequestID for request.
20101func (s *InvalidActorArnException) RequestID() string {
20102	return s.RespMetadata.RequestID
20103}
20104
20105// The content for the approval rule is not valid.
20106type InvalidApprovalRuleContentException struct {
20107	_            struct{}                  `type:"structure"`
20108	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20109
20110	Message_ *string `locationName:"message" type:"string"`
20111}
20112
20113// String returns the string representation
20114func (s InvalidApprovalRuleContentException) String() string {
20115	return awsutil.Prettify(s)
20116}
20117
20118// GoString returns the string representation
20119func (s InvalidApprovalRuleContentException) GoString() string {
20120	return s.String()
20121}
20122
20123func newErrorInvalidApprovalRuleContentException(v protocol.ResponseMetadata) error {
20124	return &InvalidApprovalRuleContentException{
20125		RespMetadata: v,
20126	}
20127}
20128
20129// Code returns the exception type name.
20130func (s *InvalidApprovalRuleContentException) Code() string {
20131	return "InvalidApprovalRuleContentException"
20132}
20133
20134// Message returns the exception's message.
20135func (s *InvalidApprovalRuleContentException) Message() string {
20136	if s.Message_ != nil {
20137		return *s.Message_
20138	}
20139	return ""
20140}
20141
20142// OrigErr always returns nil, satisfies awserr.Error interface.
20143func (s *InvalidApprovalRuleContentException) OrigErr() error {
20144	return nil
20145}
20146
20147func (s *InvalidApprovalRuleContentException) Error() string {
20148	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20149}
20150
20151// Status code returns the HTTP status code for the request's response error.
20152func (s *InvalidApprovalRuleContentException) StatusCode() int {
20153	return s.RespMetadata.StatusCode
20154}
20155
20156// RequestID returns the service's response RequestID for request.
20157func (s *InvalidApprovalRuleContentException) RequestID() string {
20158	return s.RespMetadata.RequestID
20159}
20160
20161// The name for the approval rule is not valid.
20162type InvalidApprovalRuleNameException struct {
20163	_            struct{}                  `type:"structure"`
20164	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20165
20166	Message_ *string `locationName:"message" type:"string"`
20167}
20168
20169// String returns the string representation
20170func (s InvalidApprovalRuleNameException) String() string {
20171	return awsutil.Prettify(s)
20172}
20173
20174// GoString returns the string representation
20175func (s InvalidApprovalRuleNameException) GoString() string {
20176	return s.String()
20177}
20178
20179func newErrorInvalidApprovalRuleNameException(v protocol.ResponseMetadata) error {
20180	return &InvalidApprovalRuleNameException{
20181		RespMetadata: v,
20182	}
20183}
20184
20185// Code returns the exception type name.
20186func (s *InvalidApprovalRuleNameException) Code() string {
20187	return "InvalidApprovalRuleNameException"
20188}
20189
20190// Message returns the exception's message.
20191func (s *InvalidApprovalRuleNameException) Message() string {
20192	if s.Message_ != nil {
20193		return *s.Message_
20194	}
20195	return ""
20196}
20197
20198// OrigErr always returns nil, satisfies awserr.Error interface.
20199func (s *InvalidApprovalRuleNameException) OrigErr() error {
20200	return nil
20201}
20202
20203func (s *InvalidApprovalRuleNameException) Error() string {
20204	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20205}
20206
20207// Status code returns the HTTP status code for the request's response error.
20208func (s *InvalidApprovalRuleNameException) StatusCode() int {
20209	return s.RespMetadata.StatusCode
20210}
20211
20212// RequestID returns the service's response RequestID for request.
20213func (s *InvalidApprovalRuleNameException) RequestID() string {
20214	return s.RespMetadata.RequestID
20215}
20216
20217// The content of the approval rule template is not valid.
20218type InvalidApprovalRuleTemplateContentException struct {
20219	_            struct{}                  `type:"structure"`
20220	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20221
20222	Message_ *string `locationName:"message" type:"string"`
20223}
20224
20225// String returns the string representation
20226func (s InvalidApprovalRuleTemplateContentException) String() string {
20227	return awsutil.Prettify(s)
20228}
20229
20230// GoString returns the string representation
20231func (s InvalidApprovalRuleTemplateContentException) GoString() string {
20232	return s.String()
20233}
20234
20235func newErrorInvalidApprovalRuleTemplateContentException(v protocol.ResponseMetadata) error {
20236	return &InvalidApprovalRuleTemplateContentException{
20237		RespMetadata: v,
20238	}
20239}
20240
20241// Code returns the exception type name.
20242func (s *InvalidApprovalRuleTemplateContentException) Code() string {
20243	return "InvalidApprovalRuleTemplateContentException"
20244}
20245
20246// Message returns the exception's message.
20247func (s *InvalidApprovalRuleTemplateContentException) Message() string {
20248	if s.Message_ != nil {
20249		return *s.Message_
20250	}
20251	return ""
20252}
20253
20254// OrigErr always returns nil, satisfies awserr.Error interface.
20255func (s *InvalidApprovalRuleTemplateContentException) OrigErr() error {
20256	return nil
20257}
20258
20259func (s *InvalidApprovalRuleTemplateContentException) Error() string {
20260	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20261}
20262
20263// Status code returns the HTTP status code for the request's response error.
20264func (s *InvalidApprovalRuleTemplateContentException) StatusCode() int {
20265	return s.RespMetadata.StatusCode
20266}
20267
20268// RequestID returns the service's response RequestID for request.
20269func (s *InvalidApprovalRuleTemplateContentException) RequestID() string {
20270	return s.RespMetadata.RequestID
20271}
20272
20273// The description for the approval rule template is not valid because it exceeds
20274// the maximum characters allowed for a description. For more information about
20275// limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
20276type InvalidApprovalRuleTemplateDescriptionException struct {
20277	_            struct{}                  `type:"structure"`
20278	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20279
20280	Message_ *string `locationName:"message" type:"string"`
20281}
20282
20283// String returns the string representation
20284func (s InvalidApprovalRuleTemplateDescriptionException) String() string {
20285	return awsutil.Prettify(s)
20286}
20287
20288// GoString returns the string representation
20289func (s InvalidApprovalRuleTemplateDescriptionException) GoString() string {
20290	return s.String()
20291}
20292
20293func newErrorInvalidApprovalRuleTemplateDescriptionException(v protocol.ResponseMetadata) error {
20294	return &InvalidApprovalRuleTemplateDescriptionException{
20295		RespMetadata: v,
20296	}
20297}
20298
20299// Code returns the exception type name.
20300func (s *InvalidApprovalRuleTemplateDescriptionException) Code() string {
20301	return "InvalidApprovalRuleTemplateDescriptionException"
20302}
20303
20304// Message returns the exception's message.
20305func (s *InvalidApprovalRuleTemplateDescriptionException) Message() string {
20306	if s.Message_ != nil {
20307		return *s.Message_
20308	}
20309	return ""
20310}
20311
20312// OrigErr always returns nil, satisfies awserr.Error interface.
20313func (s *InvalidApprovalRuleTemplateDescriptionException) OrigErr() error {
20314	return nil
20315}
20316
20317func (s *InvalidApprovalRuleTemplateDescriptionException) Error() string {
20318	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20319}
20320
20321// Status code returns the HTTP status code for the request's response error.
20322func (s *InvalidApprovalRuleTemplateDescriptionException) StatusCode() int {
20323	return s.RespMetadata.StatusCode
20324}
20325
20326// RequestID returns the service's response RequestID for request.
20327func (s *InvalidApprovalRuleTemplateDescriptionException) RequestID() string {
20328	return s.RespMetadata.RequestID
20329}
20330
20331// The name of the approval rule template is not valid. Template names must
20332// be between 1 and 100 valid characters in length. For more information about
20333// limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
20334type InvalidApprovalRuleTemplateNameException struct {
20335	_            struct{}                  `type:"structure"`
20336	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20337
20338	Message_ *string `locationName:"message" type:"string"`
20339}
20340
20341// String returns the string representation
20342func (s InvalidApprovalRuleTemplateNameException) String() string {
20343	return awsutil.Prettify(s)
20344}
20345
20346// GoString returns the string representation
20347func (s InvalidApprovalRuleTemplateNameException) GoString() string {
20348	return s.String()
20349}
20350
20351func newErrorInvalidApprovalRuleTemplateNameException(v protocol.ResponseMetadata) error {
20352	return &InvalidApprovalRuleTemplateNameException{
20353		RespMetadata: v,
20354	}
20355}
20356
20357// Code returns the exception type name.
20358func (s *InvalidApprovalRuleTemplateNameException) Code() string {
20359	return "InvalidApprovalRuleTemplateNameException"
20360}
20361
20362// Message returns the exception's message.
20363func (s *InvalidApprovalRuleTemplateNameException) Message() string {
20364	if s.Message_ != nil {
20365		return *s.Message_
20366	}
20367	return ""
20368}
20369
20370// OrigErr always returns nil, satisfies awserr.Error interface.
20371func (s *InvalidApprovalRuleTemplateNameException) OrigErr() error {
20372	return nil
20373}
20374
20375func (s *InvalidApprovalRuleTemplateNameException) Error() string {
20376	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20377}
20378
20379// Status code returns the HTTP status code for the request's response error.
20380func (s *InvalidApprovalRuleTemplateNameException) StatusCode() int {
20381	return s.RespMetadata.StatusCode
20382}
20383
20384// RequestID returns the service's response RequestID for request.
20385func (s *InvalidApprovalRuleTemplateNameException) RequestID() string {
20386	return s.RespMetadata.RequestID
20387}
20388
20389// The state for the approval is not valid. Valid values include APPROVE and
20390// REVOKE.
20391type InvalidApprovalStateException struct {
20392	_            struct{}                  `type:"structure"`
20393	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20394
20395	Message_ *string `locationName:"message" type:"string"`
20396}
20397
20398// String returns the string representation
20399func (s InvalidApprovalStateException) String() string {
20400	return awsutil.Prettify(s)
20401}
20402
20403// GoString returns the string representation
20404func (s InvalidApprovalStateException) GoString() string {
20405	return s.String()
20406}
20407
20408func newErrorInvalidApprovalStateException(v protocol.ResponseMetadata) error {
20409	return &InvalidApprovalStateException{
20410		RespMetadata: v,
20411	}
20412}
20413
20414// Code returns the exception type name.
20415func (s *InvalidApprovalStateException) Code() string {
20416	return "InvalidApprovalStateException"
20417}
20418
20419// Message returns the exception's message.
20420func (s *InvalidApprovalStateException) Message() string {
20421	if s.Message_ != nil {
20422		return *s.Message_
20423	}
20424	return ""
20425}
20426
20427// OrigErr always returns nil, satisfies awserr.Error interface.
20428func (s *InvalidApprovalStateException) OrigErr() error {
20429	return nil
20430}
20431
20432func (s *InvalidApprovalStateException) Error() string {
20433	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20434}
20435
20436// Status code returns the HTTP status code for the request's response error.
20437func (s *InvalidApprovalStateException) StatusCode() int {
20438	return s.RespMetadata.StatusCode
20439}
20440
20441// RequestID returns the service's response RequestID for request.
20442func (s *InvalidApprovalStateException) RequestID() string {
20443	return s.RespMetadata.RequestID
20444}
20445
20446// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
20447// the full ARN for the author of the pull request, and then try again.
20448type InvalidAuthorArnException struct {
20449	_            struct{}                  `type:"structure"`
20450	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20451
20452	Message_ *string `locationName:"message" type:"string"`
20453}
20454
20455// String returns the string representation
20456func (s InvalidAuthorArnException) String() string {
20457	return awsutil.Prettify(s)
20458}
20459
20460// GoString returns the string representation
20461func (s InvalidAuthorArnException) GoString() string {
20462	return s.String()
20463}
20464
20465func newErrorInvalidAuthorArnException(v protocol.ResponseMetadata) error {
20466	return &InvalidAuthorArnException{
20467		RespMetadata: v,
20468	}
20469}
20470
20471// Code returns the exception type name.
20472func (s *InvalidAuthorArnException) Code() string {
20473	return "InvalidAuthorArnException"
20474}
20475
20476// Message returns the exception's message.
20477func (s *InvalidAuthorArnException) Message() string {
20478	if s.Message_ != nil {
20479		return *s.Message_
20480	}
20481	return ""
20482}
20483
20484// OrigErr always returns nil, satisfies awserr.Error interface.
20485func (s *InvalidAuthorArnException) OrigErr() error {
20486	return nil
20487}
20488
20489func (s *InvalidAuthorArnException) Error() string {
20490	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20491}
20492
20493// Status code returns the HTTP status code for the request's response error.
20494func (s *InvalidAuthorArnException) StatusCode() int {
20495	return s.RespMetadata.StatusCode
20496}
20497
20498// RequestID returns the service's response RequestID for request.
20499func (s *InvalidAuthorArnException) RequestID() string {
20500	return s.RespMetadata.RequestID
20501}
20502
20503// The specified blob is not valid.
20504type InvalidBlobIdException struct {
20505	_            struct{}                  `type:"structure"`
20506	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20507
20508	Message_ *string `locationName:"message" type:"string"`
20509}
20510
20511// String returns the string representation
20512func (s InvalidBlobIdException) String() string {
20513	return awsutil.Prettify(s)
20514}
20515
20516// GoString returns the string representation
20517func (s InvalidBlobIdException) GoString() string {
20518	return s.String()
20519}
20520
20521func newErrorInvalidBlobIdException(v protocol.ResponseMetadata) error {
20522	return &InvalidBlobIdException{
20523		RespMetadata: v,
20524	}
20525}
20526
20527// Code returns the exception type name.
20528func (s *InvalidBlobIdException) Code() string {
20529	return "InvalidBlobIdException"
20530}
20531
20532// Message returns the exception's message.
20533func (s *InvalidBlobIdException) Message() string {
20534	if s.Message_ != nil {
20535		return *s.Message_
20536	}
20537	return ""
20538}
20539
20540// OrigErr always returns nil, satisfies awserr.Error interface.
20541func (s *InvalidBlobIdException) OrigErr() error {
20542	return nil
20543}
20544
20545func (s *InvalidBlobIdException) Error() string {
20546	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20547}
20548
20549// Status code returns the HTTP status code for the request's response error.
20550func (s *InvalidBlobIdException) StatusCode() int {
20551	return s.RespMetadata.StatusCode
20552}
20553
20554// RequestID returns the service's response RequestID for request.
20555func (s *InvalidBlobIdException) RequestID() string {
20556	return s.RespMetadata.RequestID
20557}
20558
20559// The specified reference name is not valid.
20560type InvalidBranchNameException struct {
20561	_            struct{}                  `type:"structure"`
20562	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20563
20564	Message_ *string `locationName:"message" type:"string"`
20565}
20566
20567// String returns the string representation
20568func (s InvalidBranchNameException) String() string {
20569	return awsutil.Prettify(s)
20570}
20571
20572// GoString returns the string representation
20573func (s InvalidBranchNameException) GoString() string {
20574	return s.String()
20575}
20576
20577func newErrorInvalidBranchNameException(v protocol.ResponseMetadata) error {
20578	return &InvalidBranchNameException{
20579		RespMetadata: v,
20580	}
20581}
20582
20583// Code returns the exception type name.
20584func (s *InvalidBranchNameException) Code() string {
20585	return "InvalidBranchNameException"
20586}
20587
20588// Message returns the exception's message.
20589func (s *InvalidBranchNameException) Message() string {
20590	if s.Message_ != nil {
20591		return *s.Message_
20592	}
20593	return ""
20594}
20595
20596// OrigErr always returns nil, satisfies awserr.Error interface.
20597func (s *InvalidBranchNameException) OrigErr() error {
20598	return nil
20599}
20600
20601func (s *InvalidBranchNameException) Error() string {
20602	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20603}
20604
20605// Status code returns the HTTP status code for the request's response error.
20606func (s *InvalidBranchNameException) StatusCode() int {
20607	return s.RespMetadata.StatusCode
20608}
20609
20610// RequestID returns the service's response RequestID for request.
20611func (s *InvalidBranchNameException) RequestID() string {
20612	return s.RespMetadata.RequestID
20613}
20614
20615// The client request token is not valid.
20616type InvalidClientRequestTokenException struct {
20617	_            struct{}                  `type:"structure"`
20618	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20619
20620	Message_ *string `locationName:"message" type:"string"`
20621}
20622
20623// String returns the string representation
20624func (s InvalidClientRequestTokenException) String() string {
20625	return awsutil.Prettify(s)
20626}
20627
20628// GoString returns the string representation
20629func (s InvalidClientRequestTokenException) GoString() string {
20630	return s.String()
20631}
20632
20633func newErrorInvalidClientRequestTokenException(v protocol.ResponseMetadata) error {
20634	return &InvalidClientRequestTokenException{
20635		RespMetadata: v,
20636	}
20637}
20638
20639// Code returns the exception type name.
20640func (s *InvalidClientRequestTokenException) Code() string {
20641	return "InvalidClientRequestTokenException"
20642}
20643
20644// Message returns the exception's message.
20645func (s *InvalidClientRequestTokenException) Message() string {
20646	if s.Message_ != nil {
20647		return *s.Message_
20648	}
20649	return ""
20650}
20651
20652// OrigErr always returns nil, satisfies awserr.Error interface.
20653func (s *InvalidClientRequestTokenException) OrigErr() error {
20654	return nil
20655}
20656
20657func (s *InvalidClientRequestTokenException) Error() string {
20658	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20659}
20660
20661// Status code returns the HTTP status code for the request's response error.
20662func (s *InvalidClientRequestTokenException) StatusCode() int {
20663	return s.RespMetadata.StatusCode
20664}
20665
20666// RequestID returns the service's response RequestID for request.
20667func (s *InvalidClientRequestTokenException) RequestID() string {
20668	return s.RespMetadata.RequestID
20669}
20670
20671// The comment ID is not in a valid format. Make sure that you have provided
20672// the full comment ID.
20673type InvalidCommentIdException struct {
20674	_            struct{}                  `type:"structure"`
20675	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20676
20677	Message_ *string `locationName:"message" type:"string"`
20678}
20679
20680// String returns the string representation
20681func (s InvalidCommentIdException) String() string {
20682	return awsutil.Prettify(s)
20683}
20684
20685// GoString returns the string representation
20686func (s InvalidCommentIdException) GoString() string {
20687	return s.String()
20688}
20689
20690func newErrorInvalidCommentIdException(v protocol.ResponseMetadata) error {
20691	return &InvalidCommentIdException{
20692		RespMetadata: v,
20693	}
20694}
20695
20696// Code returns the exception type name.
20697func (s *InvalidCommentIdException) Code() string {
20698	return "InvalidCommentIdException"
20699}
20700
20701// Message returns the exception's message.
20702func (s *InvalidCommentIdException) Message() string {
20703	if s.Message_ != nil {
20704		return *s.Message_
20705	}
20706	return ""
20707}
20708
20709// OrigErr always returns nil, satisfies awserr.Error interface.
20710func (s *InvalidCommentIdException) OrigErr() error {
20711	return nil
20712}
20713
20714func (s *InvalidCommentIdException) Error() string {
20715	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20716}
20717
20718// Status code returns the HTTP status code for the request's response error.
20719func (s *InvalidCommentIdException) StatusCode() int {
20720	return s.RespMetadata.StatusCode
20721}
20722
20723// RequestID returns the service's response RequestID for request.
20724func (s *InvalidCommentIdException) RequestID() string {
20725	return s.RespMetadata.RequestID
20726}
20727
20728// The specified commit is not valid.
20729type InvalidCommitException struct {
20730	_            struct{}                  `type:"structure"`
20731	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20732
20733	Message_ *string `locationName:"message" type:"string"`
20734}
20735
20736// String returns the string representation
20737func (s InvalidCommitException) String() string {
20738	return awsutil.Prettify(s)
20739}
20740
20741// GoString returns the string representation
20742func (s InvalidCommitException) GoString() string {
20743	return s.String()
20744}
20745
20746func newErrorInvalidCommitException(v protocol.ResponseMetadata) error {
20747	return &InvalidCommitException{
20748		RespMetadata: v,
20749	}
20750}
20751
20752// Code returns the exception type name.
20753func (s *InvalidCommitException) Code() string {
20754	return "InvalidCommitException"
20755}
20756
20757// Message returns the exception's message.
20758func (s *InvalidCommitException) Message() string {
20759	if s.Message_ != nil {
20760		return *s.Message_
20761	}
20762	return ""
20763}
20764
20765// OrigErr always returns nil, satisfies awserr.Error interface.
20766func (s *InvalidCommitException) OrigErr() error {
20767	return nil
20768}
20769
20770func (s *InvalidCommitException) Error() string {
20771	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20772}
20773
20774// Status code returns the HTTP status code for the request's response error.
20775func (s *InvalidCommitException) StatusCode() int {
20776	return s.RespMetadata.StatusCode
20777}
20778
20779// RequestID returns the service's response RequestID for request.
20780func (s *InvalidCommitException) RequestID() string {
20781	return s.RespMetadata.RequestID
20782}
20783
20784// The specified commit ID is not valid.
20785type InvalidCommitIdException struct {
20786	_            struct{}                  `type:"structure"`
20787	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20788
20789	Message_ *string `locationName:"message" type:"string"`
20790}
20791
20792// String returns the string representation
20793func (s InvalidCommitIdException) String() string {
20794	return awsutil.Prettify(s)
20795}
20796
20797// GoString returns the string representation
20798func (s InvalidCommitIdException) GoString() string {
20799	return s.String()
20800}
20801
20802func newErrorInvalidCommitIdException(v protocol.ResponseMetadata) error {
20803	return &InvalidCommitIdException{
20804		RespMetadata: v,
20805	}
20806}
20807
20808// Code returns the exception type name.
20809func (s *InvalidCommitIdException) Code() string {
20810	return "InvalidCommitIdException"
20811}
20812
20813// Message returns the exception's message.
20814func (s *InvalidCommitIdException) Message() string {
20815	if s.Message_ != nil {
20816		return *s.Message_
20817	}
20818	return ""
20819}
20820
20821// OrigErr always returns nil, satisfies awserr.Error interface.
20822func (s *InvalidCommitIdException) OrigErr() error {
20823	return nil
20824}
20825
20826func (s *InvalidCommitIdException) Error() string {
20827	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20828}
20829
20830// Status code returns the HTTP status code for the request's response error.
20831func (s *InvalidCommitIdException) StatusCode() int {
20832	return s.RespMetadata.StatusCode
20833}
20834
20835// RequestID returns the service's response RequestID for request.
20836func (s *InvalidCommitIdException) RequestID() string {
20837	return s.RespMetadata.RequestID
20838}
20839
20840// The specified conflict detail level is not valid.
20841type InvalidConflictDetailLevelException struct {
20842	_            struct{}                  `type:"structure"`
20843	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20844
20845	Message_ *string `locationName:"message" type:"string"`
20846}
20847
20848// String returns the string representation
20849func (s InvalidConflictDetailLevelException) String() string {
20850	return awsutil.Prettify(s)
20851}
20852
20853// GoString returns the string representation
20854func (s InvalidConflictDetailLevelException) GoString() string {
20855	return s.String()
20856}
20857
20858func newErrorInvalidConflictDetailLevelException(v protocol.ResponseMetadata) error {
20859	return &InvalidConflictDetailLevelException{
20860		RespMetadata: v,
20861	}
20862}
20863
20864// Code returns the exception type name.
20865func (s *InvalidConflictDetailLevelException) Code() string {
20866	return "InvalidConflictDetailLevelException"
20867}
20868
20869// Message returns the exception's message.
20870func (s *InvalidConflictDetailLevelException) Message() string {
20871	if s.Message_ != nil {
20872		return *s.Message_
20873	}
20874	return ""
20875}
20876
20877// OrigErr always returns nil, satisfies awserr.Error interface.
20878func (s *InvalidConflictDetailLevelException) OrigErr() error {
20879	return nil
20880}
20881
20882func (s *InvalidConflictDetailLevelException) Error() string {
20883	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20884}
20885
20886// Status code returns the HTTP status code for the request's response error.
20887func (s *InvalidConflictDetailLevelException) StatusCode() int {
20888	return s.RespMetadata.StatusCode
20889}
20890
20891// RequestID returns the service's response RequestID for request.
20892func (s *InvalidConflictDetailLevelException) RequestID() string {
20893	return s.RespMetadata.RequestID
20894}
20895
20896// The specified conflict resolution list is not valid.
20897type InvalidConflictResolutionException struct {
20898	_            struct{}                  `type:"structure"`
20899	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20900
20901	Message_ *string `locationName:"message" type:"string"`
20902}
20903
20904// String returns the string representation
20905func (s InvalidConflictResolutionException) String() string {
20906	return awsutil.Prettify(s)
20907}
20908
20909// GoString returns the string representation
20910func (s InvalidConflictResolutionException) GoString() string {
20911	return s.String()
20912}
20913
20914func newErrorInvalidConflictResolutionException(v protocol.ResponseMetadata) error {
20915	return &InvalidConflictResolutionException{
20916		RespMetadata: v,
20917	}
20918}
20919
20920// Code returns the exception type name.
20921func (s *InvalidConflictResolutionException) Code() string {
20922	return "InvalidConflictResolutionException"
20923}
20924
20925// Message returns the exception's message.
20926func (s *InvalidConflictResolutionException) Message() string {
20927	if s.Message_ != nil {
20928		return *s.Message_
20929	}
20930	return ""
20931}
20932
20933// OrigErr always returns nil, satisfies awserr.Error interface.
20934func (s *InvalidConflictResolutionException) OrigErr() error {
20935	return nil
20936}
20937
20938func (s *InvalidConflictResolutionException) Error() string {
20939	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20940}
20941
20942// Status code returns the HTTP status code for the request's response error.
20943func (s *InvalidConflictResolutionException) StatusCode() int {
20944	return s.RespMetadata.StatusCode
20945}
20946
20947// RequestID returns the service's response RequestID for request.
20948func (s *InvalidConflictResolutionException) RequestID() string {
20949	return s.RespMetadata.RequestID
20950}
20951
20952// The specified conflict resolution strategy is not valid.
20953type InvalidConflictResolutionStrategyException struct {
20954	_            struct{}                  `type:"structure"`
20955	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
20956
20957	Message_ *string `locationName:"message" type:"string"`
20958}
20959
20960// String returns the string representation
20961func (s InvalidConflictResolutionStrategyException) String() string {
20962	return awsutil.Prettify(s)
20963}
20964
20965// GoString returns the string representation
20966func (s InvalidConflictResolutionStrategyException) GoString() string {
20967	return s.String()
20968}
20969
20970func newErrorInvalidConflictResolutionStrategyException(v protocol.ResponseMetadata) error {
20971	return &InvalidConflictResolutionStrategyException{
20972		RespMetadata: v,
20973	}
20974}
20975
20976// Code returns the exception type name.
20977func (s *InvalidConflictResolutionStrategyException) Code() string {
20978	return "InvalidConflictResolutionStrategyException"
20979}
20980
20981// Message returns the exception's message.
20982func (s *InvalidConflictResolutionStrategyException) Message() string {
20983	if s.Message_ != nil {
20984		return *s.Message_
20985	}
20986	return ""
20987}
20988
20989// OrigErr always returns nil, satisfies awserr.Error interface.
20990func (s *InvalidConflictResolutionStrategyException) OrigErr() error {
20991	return nil
20992}
20993
20994func (s *InvalidConflictResolutionStrategyException) Error() string {
20995	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
20996}
20997
20998// Status code returns the HTTP status code for the request's response error.
20999func (s *InvalidConflictResolutionStrategyException) StatusCode() int {
21000	return s.RespMetadata.StatusCode
21001}
21002
21003// RequestID returns the service's response RequestID for request.
21004func (s *InvalidConflictResolutionStrategyException) RequestID() string {
21005	return s.RespMetadata.RequestID
21006}
21007
21008// The specified continuation token is not valid.
21009type InvalidContinuationTokenException struct {
21010	_            struct{}                  `type:"structure"`
21011	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21012
21013	Message_ *string `locationName:"message" type:"string"`
21014}
21015
21016// String returns the string representation
21017func (s InvalidContinuationTokenException) String() string {
21018	return awsutil.Prettify(s)
21019}
21020
21021// GoString returns the string representation
21022func (s InvalidContinuationTokenException) GoString() string {
21023	return s.String()
21024}
21025
21026func newErrorInvalidContinuationTokenException(v protocol.ResponseMetadata) error {
21027	return &InvalidContinuationTokenException{
21028		RespMetadata: v,
21029	}
21030}
21031
21032// Code returns the exception type name.
21033func (s *InvalidContinuationTokenException) Code() string {
21034	return "InvalidContinuationTokenException"
21035}
21036
21037// Message returns the exception's message.
21038func (s *InvalidContinuationTokenException) Message() string {
21039	if s.Message_ != nil {
21040		return *s.Message_
21041	}
21042	return ""
21043}
21044
21045// OrigErr always returns nil, satisfies awserr.Error interface.
21046func (s *InvalidContinuationTokenException) OrigErr() error {
21047	return nil
21048}
21049
21050func (s *InvalidContinuationTokenException) Error() string {
21051	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21052}
21053
21054// Status code returns the HTTP status code for the request's response error.
21055func (s *InvalidContinuationTokenException) StatusCode() int {
21056	return s.RespMetadata.StatusCode
21057}
21058
21059// RequestID returns the service's response RequestID for request.
21060func (s *InvalidContinuationTokenException) RequestID() string {
21061	return s.RespMetadata.RequestID
21062}
21063
21064// The specified deletion parameter is not valid.
21065type InvalidDeletionParameterException struct {
21066	_            struct{}                  `type:"structure"`
21067	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21068
21069	Message_ *string `locationName:"message" type:"string"`
21070}
21071
21072// String returns the string representation
21073func (s InvalidDeletionParameterException) String() string {
21074	return awsutil.Prettify(s)
21075}
21076
21077// GoString returns the string representation
21078func (s InvalidDeletionParameterException) GoString() string {
21079	return s.String()
21080}
21081
21082func newErrorInvalidDeletionParameterException(v protocol.ResponseMetadata) error {
21083	return &InvalidDeletionParameterException{
21084		RespMetadata: v,
21085	}
21086}
21087
21088// Code returns the exception type name.
21089func (s *InvalidDeletionParameterException) Code() string {
21090	return "InvalidDeletionParameterException"
21091}
21092
21093// Message returns the exception's message.
21094func (s *InvalidDeletionParameterException) Message() string {
21095	if s.Message_ != nil {
21096		return *s.Message_
21097	}
21098	return ""
21099}
21100
21101// OrigErr always returns nil, satisfies awserr.Error interface.
21102func (s *InvalidDeletionParameterException) OrigErr() error {
21103	return nil
21104}
21105
21106func (s *InvalidDeletionParameterException) Error() string {
21107	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21108}
21109
21110// Status code returns the HTTP status code for the request's response error.
21111func (s *InvalidDeletionParameterException) StatusCode() int {
21112	return s.RespMetadata.StatusCode
21113}
21114
21115// RequestID returns the service's response RequestID for request.
21116func (s *InvalidDeletionParameterException) RequestID() string {
21117	return s.RespMetadata.RequestID
21118}
21119
21120// The pull request description is not valid. Descriptions cannot be more than
21121// 1,000 characters.
21122type InvalidDescriptionException struct {
21123	_            struct{}                  `type:"structure"`
21124	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21125
21126	Message_ *string `locationName:"message" type:"string"`
21127}
21128
21129// String returns the string representation
21130func (s InvalidDescriptionException) String() string {
21131	return awsutil.Prettify(s)
21132}
21133
21134// GoString returns the string representation
21135func (s InvalidDescriptionException) GoString() string {
21136	return s.String()
21137}
21138
21139func newErrorInvalidDescriptionException(v protocol.ResponseMetadata) error {
21140	return &InvalidDescriptionException{
21141		RespMetadata: v,
21142	}
21143}
21144
21145// Code returns the exception type name.
21146func (s *InvalidDescriptionException) Code() string {
21147	return "InvalidDescriptionException"
21148}
21149
21150// Message returns the exception's message.
21151func (s *InvalidDescriptionException) Message() string {
21152	if s.Message_ != nil {
21153		return *s.Message_
21154	}
21155	return ""
21156}
21157
21158// OrigErr always returns nil, satisfies awserr.Error interface.
21159func (s *InvalidDescriptionException) OrigErr() error {
21160	return nil
21161}
21162
21163func (s *InvalidDescriptionException) Error() string {
21164	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21165}
21166
21167// Status code returns the HTTP status code for the request's response error.
21168func (s *InvalidDescriptionException) StatusCode() int {
21169	return s.RespMetadata.StatusCode
21170}
21171
21172// RequestID returns the service's response RequestID for request.
21173func (s *InvalidDescriptionException) RequestID() string {
21174	return s.RespMetadata.RequestID
21175}
21176
21177// The destination commit specifier is not valid. You must provide a valid branch
21178// name, tag, or full commit ID.
21179type InvalidDestinationCommitSpecifierException struct {
21180	_            struct{}                  `type:"structure"`
21181	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21182
21183	Message_ *string `locationName:"message" type:"string"`
21184}
21185
21186// String returns the string representation
21187func (s InvalidDestinationCommitSpecifierException) String() string {
21188	return awsutil.Prettify(s)
21189}
21190
21191// GoString returns the string representation
21192func (s InvalidDestinationCommitSpecifierException) GoString() string {
21193	return s.String()
21194}
21195
21196func newErrorInvalidDestinationCommitSpecifierException(v protocol.ResponseMetadata) error {
21197	return &InvalidDestinationCommitSpecifierException{
21198		RespMetadata: v,
21199	}
21200}
21201
21202// Code returns the exception type name.
21203func (s *InvalidDestinationCommitSpecifierException) Code() string {
21204	return "InvalidDestinationCommitSpecifierException"
21205}
21206
21207// Message returns the exception's message.
21208func (s *InvalidDestinationCommitSpecifierException) Message() string {
21209	if s.Message_ != nil {
21210		return *s.Message_
21211	}
21212	return ""
21213}
21214
21215// OrigErr always returns nil, satisfies awserr.Error interface.
21216func (s *InvalidDestinationCommitSpecifierException) OrigErr() error {
21217	return nil
21218}
21219
21220func (s *InvalidDestinationCommitSpecifierException) Error() string {
21221	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21222}
21223
21224// Status code returns the HTTP status code for the request's response error.
21225func (s *InvalidDestinationCommitSpecifierException) StatusCode() int {
21226	return s.RespMetadata.StatusCode
21227}
21228
21229// RequestID returns the service's response RequestID for request.
21230func (s *InvalidDestinationCommitSpecifierException) RequestID() string {
21231	return s.RespMetadata.RequestID
21232}
21233
21234// The specified email address either contains one or more characters that are
21235// not allowed, or it exceeds the maximum number of characters allowed for an
21236// email address.
21237type InvalidEmailException struct {
21238	_            struct{}                  `type:"structure"`
21239	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21240
21241	Message_ *string `locationName:"message" type:"string"`
21242}
21243
21244// String returns the string representation
21245func (s InvalidEmailException) String() string {
21246	return awsutil.Prettify(s)
21247}
21248
21249// GoString returns the string representation
21250func (s InvalidEmailException) GoString() string {
21251	return s.String()
21252}
21253
21254func newErrorInvalidEmailException(v protocol.ResponseMetadata) error {
21255	return &InvalidEmailException{
21256		RespMetadata: v,
21257	}
21258}
21259
21260// Code returns the exception type name.
21261func (s *InvalidEmailException) Code() string {
21262	return "InvalidEmailException"
21263}
21264
21265// Message returns the exception's message.
21266func (s *InvalidEmailException) Message() string {
21267	if s.Message_ != nil {
21268		return *s.Message_
21269	}
21270	return ""
21271}
21272
21273// OrigErr always returns nil, satisfies awserr.Error interface.
21274func (s *InvalidEmailException) OrigErr() error {
21275	return nil
21276}
21277
21278func (s *InvalidEmailException) Error() string {
21279	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21280}
21281
21282// Status code returns the HTTP status code for the request's response error.
21283func (s *InvalidEmailException) StatusCode() int {
21284	return s.RespMetadata.StatusCode
21285}
21286
21287// RequestID returns the service's response RequestID for request.
21288func (s *InvalidEmailException) RequestID() string {
21289	return s.RespMetadata.RequestID
21290}
21291
21292// The location of the file is not valid. Make sure that you include the file
21293// name and extension.
21294type InvalidFileLocationException struct {
21295	_            struct{}                  `type:"structure"`
21296	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21297
21298	Message_ *string `locationName:"message" type:"string"`
21299}
21300
21301// String returns the string representation
21302func (s InvalidFileLocationException) String() string {
21303	return awsutil.Prettify(s)
21304}
21305
21306// GoString returns the string representation
21307func (s InvalidFileLocationException) GoString() string {
21308	return s.String()
21309}
21310
21311func newErrorInvalidFileLocationException(v protocol.ResponseMetadata) error {
21312	return &InvalidFileLocationException{
21313		RespMetadata: v,
21314	}
21315}
21316
21317// Code returns the exception type name.
21318func (s *InvalidFileLocationException) Code() string {
21319	return "InvalidFileLocationException"
21320}
21321
21322// Message returns the exception's message.
21323func (s *InvalidFileLocationException) Message() string {
21324	if s.Message_ != nil {
21325		return *s.Message_
21326	}
21327	return ""
21328}
21329
21330// OrigErr always returns nil, satisfies awserr.Error interface.
21331func (s *InvalidFileLocationException) OrigErr() error {
21332	return nil
21333}
21334
21335func (s *InvalidFileLocationException) Error() string {
21336	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21337}
21338
21339// Status code returns the HTTP status code for the request's response error.
21340func (s *InvalidFileLocationException) StatusCode() int {
21341	return s.RespMetadata.StatusCode
21342}
21343
21344// RequestID returns the service's response RequestID for request.
21345func (s *InvalidFileLocationException) RequestID() string {
21346	return s.RespMetadata.RequestID
21347}
21348
21349// The specified file mode permission is not valid. For a list of valid file
21350// mode permissions, see PutFile.
21351type InvalidFileModeException struct {
21352	_            struct{}                  `type:"structure"`
21353	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21354
21355	Message_ *string `locationName:"message" type:"string"`
21356}
21357
21358// String returns the string representation
21359func (s InvalidFileModeException) String() string {
21360	return awsutil.Prettify(s)
21361}
21362
21363// GoString returns the string representation
21364func (s InvalidFileModeException) GoString() string {
21365	return s.String()
21366}
21367
21368func newErrorInvalidFileModeException(v protocol.ResponseMetadata) error {
21369	return &InvalidFileModeException{
21370		RespMetadata: v,
21371	}
21372}
21373
21374// Code returns the exception type name.
21375func (s *InvalidFileModeException) Code() string {
21376	return "InvalidFileModeException"
21377}
21378
21379// Message returns the exception's message.
21380func (s *InvalidFileModeException) Message() string {
21381	if s.Message_ != nil {
21382		return *s.Message_
21383	}
21384	return ""
21385}
21386
21387// OrigErr always returns nil, satisfies awserr.Error interface.
21388func (s *InvalidFileModeException) OrigErr() error {
21389	return nil
21390}
21391
21392func (s *InvalidFileModeException) Error() string {
21393	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21394}
21395
21396// Status code returns the HTTP status code for the request's response error.
21397func (s *InvalidFileModeException) StatusCode() int {
21398	return s.RespMetadata.StatusCode
21399}
21400
21401// RequestID returns the service's response RequestID for request.
21402func (s *InvalidFileModeException) RequestID() string {
21403	return s.RespMetadata.RequestID
21404}
21405
21406// The position is not valid. Make sure that the line number exists in the version
21407// of the file you want to comment on.
21408type InvalidFilePositionException struct {
21409	_            struct{}                  `type:"structure"`
21410	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21411
21412	Message_ *string `locationName:"message" type:"string"`
21413}
21414
21415// String returns the string representation
21416func (s InvalidFilePositionException) String() string {
21417	return awsutil.Prettify(s)
21418}
21419
21420// GoString returns the string representation
21421func (s InvalidFilePositionException) GoString() string {
21422	return s.String()
21423}
21424
21425func newErrorInvalidFilePositionException(v protocol.ResponseMetadata) error {
21426	return &InvalidFilePositionException{
21427		RespMetadata: v,
21428	}
21429}
21430
21431// Code returns the exception type name.
21432func (s *InvalidFilePositionException) Code() string {
21433	return "InvalidFilePositionException"
21434}
21435
21436// Message returns the exception's message.
21437func (s *InvalidFilePositionException) Message() string {
21438	if s.Message_ != nil {
21439		return *s.Message_
21440	}
21441	return ""
21442}
21443
21444// OrigErr always returns nil, satisfies awserr.Error interface.
21445func (s *InvalidFilePositionException) OrigErr() error {
21446	return nil
21447}
21448
21449func (s *InvalidFilePositionException) Error() string {
21450	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21451}
21452
21453// Status code returns the HTTP status code for the request's response error.
21454func (s *InvalidFilePositionException) StatusCode() int {
21455	return s.RespMetadata.StatusCode
21456}
21457
21458// RequestID returns the service's response RequestID for request.
21459func (s *InvalidFilePositionException) RequestID() string {
21460	return s.RespMetadata.RequestID
21461}
21462
21463// The specified value for the number of conflict files to return is not valid.
21464type InvalidMaxConflictFilesException struct {
21465	_            struct{}                  `type:"structure"`
21466	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21467
21468	Message_ *string `locationName:"message" type:"string"`
21469}
21470
21471// String returns the string representation
21472func (s InvalidMaxConflictFilesException) String() string {
21473	return awsutil.Prettify(s)
21474}
21475
21476// GoString returns the string representation
21477func (s InvalidMaxConflictFilesException) GoString() string {
21478	return s.String()
21479}
21480
21481func newErrorInvalidMaxConflictFilesException(v protocol.ResponseMetadata) error {
21482	return &InvalidMaxConflictFilesException{
21483		RespMetadata: v,
21484	}
21485}
21486
21487// Code returns the exception type name.
21488func (s *InvalidMaxConflictFilesException) Code() string {
21489	return "InvalidMaxConflictFilesException"
21490}
21491
21492// Message returns the exception's message.
21493func (s *InvalidMaxConflictFilesException) Message() string {
21494	if s.Message_ != nil {
21495		return *s.Message_
21496	}
21497	return ""
21498}
21499
21500// OrigErr always returns nil, satisfies awserr.Error interface.
21501func (s *InvalidMaxConflictFilesException) OrigErr() error {
21502	return nil
21503}
21504
21505func (s *InvalidMaxConflictFilesException) Error() string {
21506	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21507}
21508
21509// Status code returns the HTTP status code for the request's response error.
21510func (s *InvalidMaxConflictFilesException) StatusCode() int {
21511	return s.RespMetadata.StatusCode
21512}
21513
21514// RequestID returns the service's response RequestID for request.
21515func (s *InvalidMaxConflictFilesException) RequestID() string {
21516	return s.RespMetadata.RequestID
21517}
21518
21519// The specified value for the number of merge hunks to return is not valid.
21520type InvalidMaxMergeHunksException struct {
21521	_            struct{}                  `type:"structure"`
21522	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21523
21524	Message_ *string `locationName:"message" type:"string"`
21525}
21526
21527// String returns the string representation
21528func (s InvalidMaxMergeHunksException) String() string {
21529	return awsutil.Prettify(s)
21530}
21531
21532// GoString returns the string representation
21533func (s InvalidMaxMergeHunksException) GoString() string {
21534	return s.String()
21535}
21536
21537func newErrorInvalidMaxMergeHunksException(v protocol.ResponseMetadata) error {
21538	return &InvalidMaxMergeHunksException{
21539		RespMetadata: v,
21540	}
21541}
21542
21543// Code returns the exception type name.
21544func (s *InvalidMaxMergeHunksException) Code() string {
21545	return "InvalidMaxMergeHunksException"
21546}
21547
21548// Message returns the exception's message.
21549func (s *InvalidMaxMergeHunksException) Message() string {
21550	if s.Message_ != nil {
21551		return *s.Message_
21552	}
21553	return ""
21554}
21555
21556// OrigErr always returns nil, satisfies awserr.Error interface.
21557func (s *InvalidMaxMergeHunksException) OrigErr() error {
21558	return nil
21559}
21560
21561func (s *InvalidMaxMergeHunksException) Error() string {
21562	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21563}
21564
21565// Status code returns the HTTP status code for the request's response error.
21566func (s *InvalidMaxMergeHunksException) StatusCode() int {
21567	return s.RespMetadata.StatusCode
21568}
21569
21570// RequestID returns the service's response RequestID for request.
21571func (s *InvalidMaxMergeHunksException) RequestID() string {
21572	return s.RespMetadata.RequestID
21573}
21574
21575// The specified number of maximum results is not valid.
21576type InvalidMaxResultsException struct {
21577	_            struct{}                  `type:"structure"`
21578	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21579
21580	Message_ *string `locationName:"message" type:"string"`
21581}
21582
21583// String returns the string representation
21584func (s InvalidMaxResultsException) String() string {
21585	return awsutil.Prettify(s)
21586}
21587
21588// GoString returns the string representation
21589func (s InvalidMaxResultsException) GoString() string {
21590	return s.String()
21591}
21592
21593func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error {
21594	return &InvalidMaxResultsException{
21595		RespMetadata: v,
21596	}
21597}
21598
21599// Code returns the exception type name.
21600func (s *InvalidMaxResultsException) Code() string {
21601	return "InvalidMaxResultsException"
21602}
21603
21604// Message returns the exception's message.
21605func (s *InvalidMaxResultsException) 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.
21613func (s *InvalidMaxResultsException) OrigErr() error {
21614	return nil
21615}
21616
21617func (s *InvalidMaxResultsException) 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.
21622func (s *InvalidMaxResultsException) StatusCode() int {
21623	return s.RespMetadata.StatusCode
21624}
21625
21626// RequestID returns the service's response RequestID for request.
21627func (s *InvalidMaxResultsException) RequestID() string {
21628	return s.RespMetadata.RequestID
21629}
21630
21631// The specified merge option is not valid for this operation. Not all merge
21632// strategies are supported for all operations.
21633type InvalidMergeOptionException struct {
21634	_            struct{}                  `type:"structure"`
21635	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21636
21637	Message_ *string `locationName:"message" type:"string"`
21638}
21639
21640// String returns the string representation
21641func (s InvalidMergeOptionException) String() string {
21642	return awsutil.Prettify(s)
21643}
21644
21645// GoString returns the string representation
21646func (s InvalidMergeOptionException) GoString() string {
21647	return s.String()
21648}
21649
21650func newErrorInvalidMergeOptionException(v protocol.ResponseMetadata) error {
21651	return &InvalidMergeOptionException{
21652		RespMetadata: v,
21653	}
21654}
21655
21656// Code returns the exception type name.
21657func (s *InvalidMergeOptionException) Code() string {
21658	return "InvalidMergeOptionException"
21659}
21660
21661// Message returns the exception's message.
21662func (s *InvalidMergeOptionException) Message() string {
21663	if s.Message_ != nil {
21664		return *s.Message_
21665	}
21666	return ""
21667}
21668
21669// OrigErr always returns nil, satisfies awserr.Error interface.
21670func (s *InvalidMergeOptionException) OrigErr() error {
21671	return nil
21672}
21673
21674func (s *InvalidMergeOptionException) Error() string {
21675	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21676}
21677
21678// Status code returns the HTTP status code for the request's response error.
21679func (s *InvalidMergeOptionException) StatusCode() int {
21680	return s.RespMetadata.StatusCode
21681}
21682
21683// RequestID returns the service's response RequestID for request.
21684func (s *InvalidMergeOptionException) RequestID() string {
21685	return s.RespMetadata.RequestID
21686}
21687
21688// The specified sort order is not valid.
21689type InvalidOrderException struct {
21690	_            struct{}                  `type:"structure"`
21691	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21692
21693	Message_ *string `locationName:"message" type:"string"`
21694}
21695
21696// String returns the string representation
21697func (s InvalidOrderException) String() string {
21698	return awsutil.Prettify(s)
21699}
21700
21701// GoString returns the string representation
21702func (s InvalidOrderException) GoString() string {
21703	return s.String()
21704}
21705
21706func newErrorInvalidOrderException(v protocol.ResponseMetadata) error {
21707	return &InvalidOrderException{
21708		RespMetadata: v,
21709	}
21710}
21711
21712// Code returns the exception type name.
21713func (s *InvalidOrderException) Code() string {
21714	return "InvalidOrderException"
21715}
21716
21717// Message returns the exception's message.
21718func (s *InvalidOrderException) Message() string {
21719	if s.Message_ != nil {
21720		return *s.Message_
21721	}
21722	return ""
21723}
21724
21725// OrigErr always returns nil, satisfies awserr.Error interface.
21726func (s *InvalidOrderException) OrigErr() error {
21727	return nil
21728}
21729
21730func (s *InvalidOrderException) Error() string {
21731	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21732}
21733
21734// Status code returns the HTTP status code for the request's response error.
21735func (s *InvalidOrderException) StatusCode() int {
21736	return s.RespMetadata.StatusCode
21737}
21738
21739// RequestID returns the service's response RequestID for request.
21740func (s *InvalidOrderException) RequestID() string {
21741	return s.RespMetadata.RequestID
21742}
21743
21744// The override status is not valid. Valid statuses are OVERRIDE and REVOKE.
21745type InvalidOverrideStatusException struct {
21746	_            struct{}                  `type:"structure"`
21747	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21748
21749	Message_ *string `locationName:"message" type:"string"`
21750}
21751
21752// String returns the string representation
21753func (s InvalidOverrideStatusException) String() string {
21754	return awsutil.Prettify(s)
21755}
21756
21757// GoString returns the string representation
21758func (s InvalidOverrideStatusException) GoString() string {
21759	return s.String()
21760}
21761
21762func newErrorInvalidOverrideStatusException(v protocol.ResponseMetadata) error {
21763	return &InvalidOverrideStatusException{
21764		RespMetadata: v,
21765	}
21766}
21767
21768// Code returns the exception type name.
21769func (s *InvalidOverrideStatusException) Code() string {
21770	return "InvalidOverrideStatusException"
21771}
21772
21773// Message returns the exception's message.
21774func (s *InvalidOverrideStatusException) Message() string {
21775	if s.Message_ != nil {
21776		return *s.Message_
21777	}
21778	return ""
21779}
21780
21781// OrigErr always returns nil, satisfies awserr.Error interface.
21782func (s *InvalidOverrideStatusException) OrigErr() error {
21783	return nil
21784}
21785
21786func (s *InvalidOverrideStatusException) Error() string {
21787	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21788}
21789
21790// Status code returns the HTTP status code for the request's response error.
21791func (s *InvalidOverrideStatusException) StatusCode() int {
21792	return s.RespMetadata.StatusCode
21793}
21794
21795// RequestID returns the service's response RequestID for request.
21796func (s *InvalidOverrideStatusException) RequestID() string {
21797	return s.RespMetadata.RequestID
21798}
21799
21800// The parent commit ID is not valid. The commit ID cannot be empty, and must
21801// match the head commit ID for the branch of the repository where you want
21802// to add or update a file.
21803type InvalidParentCommitIdException struct {
21804	_            struct{}                  `type:"structure"`
21805	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21806
21807	Message_ *string `locationName:"message" type:"string"`
21808}
21809
21810// String returns the string representation
21811func (s InvalidParentCommitIdException) String() string {
21812	return awsutil.Prettify(s)
21813}
21814
21815// GoString returns the string representation
21816func (s InvalidParentCommitIdException) GoString() string {
21817	return s.String()
21818}
21819
21820func newErrorInvalidParentCommitIdException(v protocol.ResponseMetadata) error {
21821	return &InvalidParentCommitIdException{
21822		RespMetadata: v,
21823	}
21824}
21825
21826// Code returns the exception type name.
21827func (s *InvalidParentCommitIdException) Code() string {
21828	return "InvalidParentCommitIdException"
21829}
21830
21831// Message returns the exception's message.
21832func (s *InvalidParentCommitIdException) Message() string {
21833	if s.Message_ != nil {
21834		return *s.Message_
21835	}
21836	return ""
21837}
21838
21839// OrigErr always returns nil, satisfies awserr.Error interface.
21840func (s *InvalidParentCommitIdException) OrigErr() error {
21841	return nil
21842}
21843
21844func (s *InvalidParentCommitIdException) Error() string {
21845	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21846}
21847
21848// Status code returns the HTTP status code for the request's response error.
21849func (s *InvalidParentCommitIdException) StatusCode() int {
21850	return s.RespMetadata.StatusCode
21851}
21852
21853// RequestID returns the service's response RequestID for request.
21854func (s *InvalidParentCommitIdException) RequestID() string {
21855	return s.RespMetadata.RequestID
21856}
21857
21858// The specified path is not valid.
21859type InvalidPathException struct {
21860	_            struct{}                  `type:"structure"`
21861	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21862
21863	Message_ *string `locationName:"message" type:"string"`
21864}
21865
21866// String returns the string representation
21867func (s InvalidPathException) String() string {
21868	return awsutil.Prettify(s)
21869}
21870
21871// GoString returns the string representation
21872func (s InvalidPathException) GoString() string {
21873	return s.String()
21874}
21875
21876func newErrorInvalidPathException(v protocol.ResponseMetadata) error {
21877	return &InvalidPathException{
21878		RespMetadata: v,
21879	}
21880}
21881
21882// Code returns the exception type name.
21883func (s *InvalidPathException) Code() string {
21884	return "InvalidPathException"
21885}
21886
21887// Message returns the exception's message.
21888func (s *InvalidPathException) Message() string {
21889	if s.Message_ != nil {
21890		return *s.Message_
21891	}
21892	return ""
21893}
21894
21895// OrigErr always returns nil, satisfies awserr.Error interface.
21896func (s *InvalidPathException) OrigErr() error {
21897	return nil
21898}
21899
21900func (s *InvalidPathException) Error() string {
21901	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21902}
21903
21904// Status code returns the HTTP status code for the request's response error.
21905func (s *InvalidPathException) StatusCode() int {
21906	return s.RespMetadata.StatusCode
21907}
21908
21909// RequestID returns the service's response RequestID for request.
21910func (s *InvalidPathException) RequestID() string {
21911	return s.RespMetadata.RequestID
21912}
21913
21914// The pull request event type is not valid.
21915type InvalidPullRequestEventTypeException struct {
21916	_            struct{}                  `type:"structure"`
21917	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21918
21919	Message_ *string `locationName:"message" type:"string"`
21920}
21921
21922// String returns the string representation
21923func (s InvalidPullRequestEventTypeException) String() string {
21924	return awsutil.Prettify(s)
21925}
21926
21927// GoString returns the string representation
21928func (s InvalidPullRequestEventTypeException) GoString() string {
21929	return s.String()
21930}
21931
21932func newErrorInvalidPullRequestEventTypeException(v protocol.ResponseMetadata) error {
21933	return &InvalidPullRequestEventTypeException{
21934		RespMetadata: v,
21935	}
21936}
21937
21938// Code returns the exception type name.
21939func (s *InvalidPullRequestEventTypeException) Code() string {
21940	return "InvalidPullRequestEventTypeException"
21941}
21942
21943// Message returns the exception's message.
21944func (s *InvalidPullRequestEventTypeException) Message() string {
21945	if s.Message_ != nil {
21946		return *s.Message_
21947	}
21948	return ""
21949}
21950
21951// OrigErr always returns nil, satisfies awserr.Error interface.
21952func (s *InvalidPullRequestEventTypeException) OrigErr() error {
21953	return nil
21954}
21955
21956func (s *InvalidPullRequestEventTypeException) Error() string {
21957	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
21958}
21959
21960// Status code returns the HTTP status code for the request's response error.
21961func (s *InvalidPullRequestEventTypeException) StatusCode() int {
21962	return s.RespMetadata.StatusCode
21963}
21964
21965// RequestID returns the service's response RequestID for request.
21966func (s *InvalidPullRequestEventTypeException) RequestID() string {
21967	return s.RespMetadata.RequestID
21968}
21969
21970// The pull request ID is not valid. Make sure that you have provided the full
21971// ID and that the pull request is in the specified repository, and then try
21972// again.
21973type InvalidPullRequestIdException struct {
21974	_            struct{}                  `type:"structure"`
21975	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
21976
21977	Message_ *string `locationName:"message" type:"string"`
21978}
21979
21980// String returns the string representation
21981func (s InvalidPullRequestIdException) String() string {
21982	return awsutil.Prettify(s)
21983}
21984
21985// GoString returns the string representation
21986func (s InvalidPullRequestIdException) GoString() string {
21987	return s.String()
21988}
21989
21990func newErrorInvalidPullRequestIdException(v protocol.ResponseMetadata) error {
21991	return &InvalidPullRequestIdException{
21992		RespMetadata: v,
21993	}
21994}
21995
21996// Code returns the exception type name.
21997func (s *InvalidPullRequestIdException) Code() string {
21998	return "InvalidPullRequestIdException"
21999}
22000
22001// Message returns the exception's message.
22002func (s *InvalidPullRequestIdException) Message() string {
22003	if s.Message_ != nil {
22004		return *s.Message_
22005	}
22006	return ""
22007}
22008
22009// OrigErr always returns nil, satisfies awserr.Error interface.
22010func (s *InvalidPullRequestIdException) OrigErr() error {
22011	return nil
22012}
22013
22014func (s *InvalidPullRequestIdException) Error() string {
22015	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22016}
22017
22018// Status code returns the HTTP status code for the request's response error.
22019func (s *InvalidPullRequestIdException) StatusCode() int {
22020	return s.RespMetadata.StatusCode
22021}
22022
22023// RequestID returns the service's response RequestID for request.
22024func (s *InvalidPullRequestIdException) RequestID() string {
22025	return s.RespMetadata.RequestID
22026}
22027
22028// The pull request status is not valid. The only valid values are OPEN and
22029// CLOSED.
22030type InvalidPullRequestStatusException struct {
22031	_            struct{}                  `type:"structure"`
22032	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22033
22034	Message_ *string `locationName:"message" type:"string"`
22035}
22036
22037// String returns the string representation
22038func (s InvalidPullRequestStatusException) String() string {
22039	return awsutil.Prettify(s)
22040}
22041
22042// GoString returns the string representation
22043func (s InvalidPullRequestStatusException) GoString() string {
22044	return s.String()
22045}
22046
22047func newErrorInvalidPullRequestStatusException(v protocol.ResponseMetadata) error {
22048	return &InvalidPullRequestStatusException{
22049		RespMetadata: v,
22050	}
22051}
22052
22053// Code returns the exception type name.
22054func (s *InvalidPullRequestStatusException) Code() string {
22055	return "InvalidPullRequestStatusException"
22056}
22057
22058// Message returns the exception's message.
22059func (s *InvalidPullRequestStatusException) 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.
22067func (s *InvalidPullRequestStatusException) OrigErr() error {
22068	return nil
22069}
22070
22071func (s *InvalidPullRequestStatusException) 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.
22076func (s *InvalidPullRequestStatusException) StatusCode() int {
22077	return s.RespMetadata.StatusCode
22078}
22079
22080// RequestID returns the service's response RequestID for request.
22081func (s *InvalidPullRequestStatusException) RequestID() string {
22082	return s.RespMetadata.RequestID
22083}
22084
22085// The pull request status update is not valid. The only valid update is from
22086// OPEN to CLOSED.
22087type InvalidPullRequestStatusUpdateException 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
22095func (s InvalidPullRequestStatusUpdateException) String() string {
22096	return awsutil.Prettify(s)
22097}
22098
22099// GoString returns the string representation
22100func (s InvalidPullRequestStatusUpdateException) GoString() string {
22101	return s.String()
22102}
22103
22104func newErrorInvalidPullRequestStatusUpdateException(v protocol.ResponseMetadata) error {
22105	return &InvalidPullRequestStatusUpdateException{
22106		RespMetadata: v,
22107	}
22108}
22109
22110// Code returns the exception type name.
22111func (s *InvalidPullRequestStatusUpdateException) Code() string {
22112	return "InvalidPullRequestStatusUpdateException"
22113}
22114
22115// Message returns the exception's message.
22116func (s *InvalidPullRequestStatusUpdateException) Message() string {
22117	if s.Message_ != nil {
22118		return *s.Message_
22119	}
22120	return ""
22121}
22122
22123// OrigErr always returns nil, satisfies awserr.Error interface.
22124func (s *InvalidPullRequestStatusUpdateException) OrigErr() error {
22125	return nil
22126}
22127
22128func (s *InvalidPullRequestStatusUpdateException) Error() string {
22129	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22130}
22131
22132// Status code returns the HTTP status code for the request's response error.
22133func (s *InvalidPullRequestStatusUpdateException) StatusCode() int {
22134	return s.RespMetadata.StatusCode
22135}
22136
22137// RequestID returns the service's response RequestID for request.
22138func (s *InvalidPullRequestStatusUpdateException) RequestID() string {
22139	return s.RespMetadata.RequestID
22140}
22141
22142// The Amazon Resource Name (ARN) of the user or identity is not valid.
22143type InvalidReactionUserArnException struct {
22144	_            struct{}                  `type:"structure"`
22145	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22146
22147	Message_ *string `locationName:"message" type:"string"`
22148}
22149
22150// String returns the string representation
22151func (s InvalidReactionUserArnException) String() string {
22152	return awsutil.Prettify(s)
22153}
22154
22155// GoString returns the string representation
22156func (s InvalidReactionUserArnException) GoString() string {
22157	return s.String()
22158}
22159
22160func newErrorInvalidReactionUserArnException(v protocol.ResponseMetadata) error {
22161	return &InvalidReactionUserArnException{
22162		RespMetadata: v,
22163	}
22164}
22165
22166// Code returns the exception type name.
22167func (s *InvalidReactionUserArnException) Code() string {
22168	return "InvalidReactionUserArnException"
22169}
22170
22171// Message returns the exception's message.
22172func (s *InvalidReactionUserArnException) Message() string {
22173	if s.Message_ != nil {
22174		return *s.Message_
22175	}
22176	return ""
22177}
22178
22179// OrigErr always returns nil, satisfies awserr.Error interface.
22180func (s *InvalidReactionUserArnException) OrigErr() error {
22181	return nil
22182}
22183
22184func (s *InvalidReactionUserArnException) Error() string {
22185	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22186}
22187
22188// Status code returns the HTTP status code for the request's response error.
22189func (s *InvalidReactionUserArnException) StatusCode() int {
22190	return s.RespMetadata.StatusCode
22191}
22192
22193// RequestID returns the service's response RequestID for request.
22194func (s *InvalidReactionUserArnException) RequestID() string {
22195	return s.RespMetadata.RequestID
22196}
22197
22198// The value of the reaction is not valid. For more information, see the AWS
22199// CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html).
22200type InvalidReactionValueException struct {
22201	_            struct{}                  `type:"structure"`
22202	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22203
22204	Message_ *string `locationName:"message" type:"string"`
22205}
22206
22207// String returns the string representation
22208func (s InvalidReactionValueException) String() string {
22209	return awsutil.Prettify(s)
22210}
22211
22212// GoString returns the string representation
22213func (s InvalidReactionValueException) GoString() string {
22214	return s.String()
22215}
22216
22217func newErrorInvalidReactionValueException(v protocol.ResponseMetadata) error {
22218	return &InvalidReactionValueException{
22219		RespMetadata: v,
22220	}
22221}
22222
22223// Code returns the exception type name.
22224func (s *InvalidReactionValueException) Code() string {
22225	return "InvalidReactionValueException"
22226}
22227
22228// Message returns the exception's message.
22229func (s *InvalidReactionValueException) Message() string {
22230	if s.Message_ != nil {
22231		return *s.Message_
22232	}
22233	return ""
22234}
22235
22236// OrigErr always returns nil, satisfies awserr.Error interface.
22237func (s *InvalidReactionValueException) OrigErr() error {
22238	return nil
22239}
22240
22241func (s *InvalidReactionValueException) Error() string {
22242	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22243}
22244
22245// Status code returns the HTTP status code for the request's response error.
22246func (s *InvalidReactionValueException) StatusCode() int {
22247	return s.RespMetadata.StatusCode
22248}
22249
22250// RequestID returns the service's response RequestID for request.
22251func (s *InvalidReactionValueException) RequestID() string {
22252	return s.RespMetadata.RequestID
22253}
22254
22255// The specified reference name format is not valid. Reference names must conform
22256// to the Git references format (for example, refs/heads/master). For more information,
22257// see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References)
22258// or consult your Git documentation.
22259type InvalidReferenceNameException struct {
22260	_            struct{}                  `type:"structure"`
22261	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22262
22263	Message_ *string `locationName:"message" type:"string"`
22264}
22265
22266// String returns the string representation
22267func (s InvalidReferenceNameException) String() string {
22268	return awsutil.Prettify(s)
22269}
22270
22271// GoString returns the string representation
22272func (s InvalidReferenceNameException) GoString() string {
22273	return s.String()
22274}
22275
22276func newErrorInvalidReferenceNameException(v protocol.ResponseMetadata) error {
22277	return &InvalidReferenceNameException{
22278		RespMetadata: v,
22279	}
22280}
22281
22282// Code returns the exception type name.
22283func (s *InvalidReferenceNameException) Code() string {
22284	return "InvalidReferenceNameException"
22285}
22286
22287// Message returns the exception's message.
22288func (s *InvalidReferenceNameException) Message() string {
22289	if s.Message_ != nil {
22290		return *s.Message_
22291	}
22292	return ""
22293}
22294
22295// OrigErr always returns nil, satisfies awserr.Error interface.
22296func (s *InvalidReferenceNameException) OrigErr() error {
22297	return nil
22298}
22299
22300func (s *InvalidReferenceNameException) Error() string {
22301	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22302}
22303
22304// Status code returns the HTTP status code for the request's response error.
22305func (s *InvalidReferenceNameException) StatusCode() int {
22306	return s.RespMetadata.StatusCode
22307}
22308
22309// RequestID returns the service's response RequestID for request.
22310func (s *InvalidReferenceNameException) RequestID() string {
22311	return s.RespMetadata.RequestID
22312}
22313
22314// Either the enum is not in a valid format, or the specified file version enum
22315// is not valid in respect to the current file version.
22316type InvalidRelativeFileVersionEnumException struct {
22317	_            struct{}                  `type:"structure"`
22318	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22319
22320	Message_ *string `locationName:"message" type:"string"`
22321}
22322
22323// String returns the string representation
22324func (s InvalidRelativeFileVersionEnumException) String() string {
22325	return awsutil.Prettify(s)
22326}
22327
22328// GoString returns the string representation
22329func (s InvalidRelativeFileVersionEnumException) GoString() string {
22330	return s.String()
22331}
22332
22333func newErrorInvalidRelativeFileVersionEnumException(v protocol.ResponseMetadata) error {
22334	return &InvalidRelativeFileVersionEnumException{
22335		RespMetadata: v,
22336	}
22337}
22338
22339// Code returns the exception type name.
22340func (s *InvalidRelativeFileVersionEnumException) Code() string {
22341	return "InvalidRelativeFileVersionEnumException"
22342}
22343
22344// Message returns the exception's message.
22345func (s *InvalidRelativeFileVersionEnumException) Message() string {
22346	if s.Message_ != nil {
22347		return *s.Message_
22348	}
22349	return ""
22350}
22351
22352// OrigErr always returns nil, satisfies awserr.Error interface.
22353func (s *InvalidRelativeFileVersionEnumException) OrigErr() error {
22354	return nil
22355}
22356
22357func (s *InvalidRelativeFileVersionEnumException) Error() string {
22358	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22359}
22360
22361// Status code returns the HTTP status code for the request's response error.
22362func (s *InvalidRelativeFileVersionEnumException) StatusCode() int {
22363	return s.RespMetadata.StatusCode
22364}
22365
22366// RequestID returns the service's response RequestID for request.
22367func (s *InvalidRelativeFileVersionEnumException) RequestID() string {
22368	return s.RespMetadata.RequestID
22369}
22370
22371// Automerge was specified for resolving the conflict, but the replacement type
22372// is not valid or content is missing.
22373type InvalidReplacementContentException struct {
22374	_            struct{}                  `type:"structure"`
22375	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22376
22377	Message_ *string `locationName:"message" type:"string"`
22378}
22379
22380// String returns the string representation
22381func (s InvalidReplacementContentException) String() string {
22382	return awsutil.Prettify(s)
22383}
22384
22385// GoString returns the string representation
22386func (s InvalidReplacementContentException) GoString() string {
22387	return s.String()
22388}
22389
22390func newErrorInvalidReplacementContentException(v protocol.ResponseMetadata) error {
22391	return &InvalidReplacementContentException{
22392		RespMetadata: v,
22393	}
22394}
22395
22396// Code returns the exception type name.
22397func (s *InvalidReplacementContentException) Code() string {
22398	return "InvalidReplacementContentException"
22399}
22400
22401// Message returns the exception's message.
22402func (s *InvalidReplacementContentException) Message() string {
22403	if s.Message_ != nil {
22404		return *s.Message_
22405	}
22406	return ""
22407}
22408
22409// OrigErr always returns nil, satisfies awserr.Error interface.
22410func (s *InvalidReplacementContentException) OrigErr() error {
22411	return nil
22412}
22413
22414func (s *InvalidReplacementContentException) Error() string {
22415	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22416}
22417
22418// Status code returns the HTTP status code for the request's response error.
22419func (s *InvalidReplacementContentException) StatusCode() int {
22420	return s.RespMetadata.StatusCode
22421}
22422
22423// RequestID returns the service's response RequestID for request.
22424func (s *InvalidReplacementContentException) RequestID() string {
22425	return s.RespMetadata.RequestID
22426}
22427
22428// Automerge was specified for resolving the conflict, but the specified replacement
22429// type is not valid.
22430type InvalidReplacementTypeException struct {
22431	_            struct{}                  `type:"structure"`
22432	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22433
22434	Message_ *string `locationName:"message" type:"string"`
22435}
22436
22437// String returns the string representation
22438func (s InvalidReplacementTypeException) String() string {
22439	return awsutil.Prettify(s)
22440}
22441
22442// GoString returns the string representation
22443func (s InvalidReplacementTypeException) GoString() string {
22444	return s.String()
22445}
22446
22447func newErrorInvalidReplacementTypeException(v protocol.ResponseMetadata) error {
22448	return &InvalidReplacementTypeException{
22449		RespMetadata: v,
22450	}
22451}
22452
22453// Code returns the exception type name.
22454func (s *InvalidReplacementTypeException) Code() string {
22455	return "InvalidReplacementTypeException"
22456}
22457
22458// Message returns the exception's message.
22459func (s *InvalidReplacementTypeException) Message() string {
22460	if s.Message_ != nil {
22461		return *s.Message_
22462	}
22463	return ""
22464}
22465
22466// OrigErr always returns nil, satisfies awserr.Error interface.
22467func (s *InvalidReplacementTypeException) OrigErr() error {
22468	return nil
22469}
22470
22471func (s *InvalidReplacementTypeException) Error() string {
22472	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22473}
22474
22475// Status code returns the HTTP status code for the request's response error.
22476func (s *InvalidReplacementTypeException) StatusCode() int {
22477	return s.RespMetadata.StatusCode
22478}
22479
22480// RequestID returns the service's response RequestID for request.
22481func (s *InvalidReplacementTypeException) RequestID() string {
22482	return s.RespMetadata.RequestID
22483}
22484
22485// The specified repository description is not valid.
22486type InvalidRepositoryDescriptionException struct {
22487	_            struct{}                  `type:"structure"`
22488	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22489
22490	Message_ *string `locationName:"message" type:"string"`
22491}
22492
22493// String returns the string representation
22494func (s InvalidRepositoryDescriptionException) String() string {
22495	return awsutil.Prettify(s)
22496}
22497
22498// GoString returns the string representation
22499func (s InvalidRepositoryDescriptionException) GoString() string {
22500	return s.String()
22501}
22502
22503func newErrorInvalidRepositoryDescriptionException(v protocol.ResponseMetadata) error {
22504	return &InvalidRepositoryDescriptionException{
22505		RespMetadata: v,
22506	}
22507}
22508
22509// Code returns the exception type name.
22510func (s *InvalidRepositoryDescriptionException) Code() string {
22511	return "InvalidRepositoryDescriptionException"
22512}
22513
22514// Message returns the exception's message.
22515func (s *InvalidRepositoryDescriptionException) Message() string {
22516	if s.Message_ != nil {
22517		return *s.Message_
22518	}
22519	return ""
22520}
22521
22522// OrigErr always returns nil, satisfies awserr.Error interface.
22523func (s *InvalidRepositoryDescriptionException) OrigErr() error {
22524	return nil
22525}
22526
22527func (s *InvalidRepositoryDescriptionException) Error() string {
22528	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22529}
22530
22531// Status code returns the HTTP status code for the request's response error.
22532func (s *InvalidRepositoryDescriptionException) StatusCode() int {
22533	return s.RespMetadata.StatusCode
22534}
22535
22536// RequestID returns the service's response RequestID for request.
22537func (s *InvalidRepositoryDescriptionException) RequestID() string {
22538	return s.RespMetadata.RequestID
22539}
22540
22541// A specified repository name is not valid.
22542//
22543// This exception occurs only when a specified repository name is not valid.
22544// Other exceptions occur when a required repository parameter is missing, or
22545// when a specified repository does not exist.
22546type InvalidRepositoryNameException struct {
22547	_            struct{}                  `type:"structure"`
22548	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22549
22550	Message_ *string `locationName:"message" type:"string"`
22551}
22552
22553// String returns the string representation
22554func (s InvalidRepositoryNameException) String() string {
22555	return awsutil.Prettify(s)
22556}
22557
22558// GoString returns the string representation
22559func (s InvalidRepositoryNameException) GoString() string {
22560	return s.String()
22561}
22562
22563func newErrorInvalidRepositoryNameException(v protocol.ResponseMetadata) error {
22564	return &InvalidRepositoryNameException{
22565		RespMetadata: v,
22566	}
22567}
22568
22569// Code returns the exception type name.
22570func (s *InvalidRepositoryNameException) Code() string {
22571	return "InvalidRepositoryNameException"
22572}
22573
22574// Message returns the exception's message.
22575func (s *InvalidRepositoryNameException) Message() string {
22576	if s.Message_ != nil {
22577		return *s.Message_
22578	}
22579	return ""
22580}
22581
22582// OrigErr always returns nil, satisfies awserr.Error interface.
22583func (s *InvalidRepositoryNameException) OrigErr() error {
22584	return nil
22585}
22586
22587func (s *InvalidRepositoryNameException) Error() string {
22588	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22589}
22590
22591// Status code returns the HTTP status code for the request's response error.
22592func (s *InvalidRepositoryNameException) StatusCode() int {
22593	return s.RespMetadata.StatusCode
22594}
22595
22596// RequestID returns the service's response RequestID for request.
22597func (s *InvalidRepositoryNameException) RequestID() string {
22598	return s.RespMetadata.RequestID
22599}
22600
22601// One or more branch names specified for the trigger is not valid.
22602type InvalidRepositoryTriggerBranchNameException struct {
22603	_            struct{}                  `type:"structure"`
22604	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22605
22606	Message_ *string `locationName:"message" type:"string"`
22607}
22608
22609// String returns the string representation
22610func (s InvalidRepositoryTriggerBranchNameException) String() string {
22611	return awsutil.Prettify(s)
22612}
22613
22614// GoString returns the string representation
22615func (s InvalidRepositoryTriggerBranchNameException) GoString() string {
22616	return s.String()
22617}
22618
22619func newErrorInvalidRepositoryTriggerBranchNameException(v protocol.ResponseMetadata) error {
22620	return &InvalidRepositoryTriggerBranchNameException{
22621		RespMetadata: v,
22622	}
22623}
22624
22625// Code returns the exception type name.
22626func (s *InvalidRepositoryTriggerBranchNameException) Code() string {
22627	return "InvalidRepositoryTriggerBranchNameException"
22628}
22629
22630// Message returns the exception's message.
22631func (s *InvalidRepositoryTriggerBranchNameException) Message() string {
22632	if s.Message_ != nil {
22633		return *s.Message_
22634	}
22635	return ""
22636}
22637
22638// OrigErr always returns nil, satisfies awserr.Error interface.
22639func (s *InvalidRepositoryTriggerBranchNameException) OrigErr() error {
22640	return nil
22641}
22642
22643func (s *InvalidRepositoryTriggerBranchNameException) Error() string {
22644	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22645}
22646
22647// Status code returns the HTTP status code for the request's response error.
22648func (s *InvalidRepositoryTriggerBranchNameException) StatusCode() int {
22649	return s.RespMetadata.StatusCode
22650}
22651
22652// RequestID returns the service's response RequestID for request.
22653func (s *InvalidRepositoryTriggerBranchNameException) RequestID() string {
22654	return s.RespMetadata.RequestID
22655}
22656
22657// The custom data provided for the trigger is not valid.
22658type InvalidRepositoryTriggerCustomDataException struct {
22659	_            struct{}                  `type:"structure"`
22660	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22661
22662	Message_ *string `locationName:"message" type:"string"`
22663}
22664
22665// String returns the string representation
22666func (s InvalidRepositoryTriggerCustomDataException) String() string {
22667	return awsutil.Prettify(s)
22668}
22669
22670// GoString returns the string representation
22671func (s InvalidRepositoryTriggerCustomDataException) GoString() string {
22672	return s.String()
22673}
22674
22675func newErrorInvalidRepositoryTriggerCustomDataException(v protocol.ResponseMetadata) error {
22676	return &InvalidRepositoryTriggerCustomDataException{
22677		RespMetadata: v,
22678	}
22679}
22680
22681// Code returns the exception type name.
22682func (s *InvalidRepositoryTriggerCustomDataException) Code() string {
22683	return "InvalidRepositoryTriggerCustomDataException"
22684}
22685
22686// Message returns the exception's message.
22687func (s *InvalidRepositoryTriggerCustomDataException) Message() string {
22688	if s.Message_ != nil {
22689		return *s.Message_
22690	}
22691	return ""
22692}
22693
22694// OrigErr always returns nil, satisfies awserr.Error interface.
22695func (s *InvalidRepositoryTriggerCustomDataException) OrigErr() error {
22696	return nil
22697}
22698
22699func (s *InvalidRepositoryTriggerCustomDataException) Error() string {
22700	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22701}
22702
22703// Status code returns the HTTP status code for the request's response error.
22704func (s *InvalidRepositoryTriggerCustomDataException) StatusCode() int {
22705	return s.RespMetadata.StatusCode
22706}
22707
22708// RequestID returns the service's response RequestID for request.
22709func (s *InvalidRepositoryTriggerCustomDataException) RequestID() string {
22710	return s.RespMetadata.RequestID
22711}
22712
22713// The Amazon Resource Name (ARN) for the trigger is not valid for the specified
22714// destination. The most common reason for this error is that the ARN does not
22715// meet the requirements for the service type.
22716type InvalidRepositoryTriggerDestinationArnException struct {
22717	_            struct{}                  `type:"structure"`
22718	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22719
22720	Message_ *string `locationName:"message" type:"string"`
22721}
22722
22723// String returns the string representation
22724func (s InvalidRepositoryTriggerDestinationArnException) String() string {
22725	return awsutil.Prettify(s)
22726}
22727
22728// GoString returns the string representation
22729func (s InvalidRepositoryTriggerDestinationArnException) GoString() string {
22730	return s.String()
22731}
22732
22733func newErrorInvalidRepositoryTriggerDestinationArnException(v protocol.ResponseMetadata) error {
22734	return &InvalidRepositoryTriggerDestinationArnException{
22735		RespMetadata: v,
22736	}
22737}
22738
22739// Code returns the exception type name.
22740func (s *InvalidRepositoryTriggerDestinationArnException) Code() string {
22741	return "InvalidRepositoryTriggerDestinationArnException"
22742}
22743
22744// Message returns the exception's message.
22745func (s *InvalidRepositoryTriggerDestinationArnException) Message() string {
22746	if s.Message_ != nil {
22747		return *s.Message_
22748	}
22749	return ""
22750}
22751
22752// OrigErr always returns nil, satisfies awserr.Error interface.
22753func (s *InvalidRepositoryTriggerDestinationArnException) OrigErr() error {
22754	return nil
22755}
22756
22757func (s *InvalidRepositoryTriggerDestinationArnException) Error() string {
22758	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22759}
22760
22761// Status code returns the HTTP status code for the request's response error.
22762func (s *InvalidRepositoryTriggerDestinationArnException) StatusCode() int {
22763	return s.RespMetadata.StatusCode
22764}
22765
22766// RequestID returns the service's response RequestID for request.
22767func (s *InvalidRepositoryTriggerDestinationArnException) RequestID() string {
22768	return s.RespMetadata.RequestID
22769}
22770
22771// One or more events specified for the trigger is not valid. Check to make
22772// sure that all events specified match the requirements for allowed events.
22773type InvalidRepositoryTriggerEventsException struct {
22774	_            struct{}                  `type:"structure"`
22775	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22776
22777	Message_ *string `locationName:"message" type:"string"`
22778}
22779
22780// String returns the string representation
22781func (s InvalidRepositoryTriggerEventsException) String() string {
22782	return awsutil.Prettify(s)
22783}
22784
22785// GoString returns the string representation
22786func (s InvalidRepositoryTriggerEventsException) GoString() string {
22787	return s.String()
22788}
22789
22790func newErrorInvalidRepositoryTriggerEventsException(v protocol.ResponseMetadata) error {
22791	return &InvalidRepositoryTriggerEventsException{
22792		RespMetadata: v,
22793	}
22794}
22795
22796// Code returns the exception type name.
22797func (s *InvalidRepositoryTriggerEventsException) Code() string {
22798	return "InvalidRepositoryTriggerEventsException"
22799}
22800
22801// Message returns the exception's message.
22802func (s *InvalidRepositoryTriggerEventsException) Message() string {
22803	if s.Message_ != nil {
22804		return *s.Message_
22805	}
22806	return ""
22807}
22808
22809// OrigErr always returns nil, satisfies awserr.Error interface.
22810func (s *InvalidRepositoryTriggerEventsException) OrigErr() error {
22811	return nil
22812}
22813
22814func (s *InvalidRepositoryTriggerEventsException) Error() string {
22815	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22816}
22817
22818// Status code returns the HTTP status code for the request's response error.
22819func (s *InvalidRepositoryTriggerEventsException) StatusCode() int {
22820	return s.RespMetadata.StatusCode
22821}
22822
22823// RequestID returns the service's response RequestID for request.
22824func (s *InvalidRepositoryTriggerEventsException) RequestID() string {
22825	return s.RespMetadata.RequestID
22826}
22827
22828// The name of the trigger is not valid.
22829type InvalidRepositoryTriggerNameException struct {
22830	_            struct{}                  `type:"structure"`
22831	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22832
22833	Message_ *string `locationName:"message" type:"string"`
22834}
22835
22836// String returns the string representation
22837func (s InvalidRepositoryTriggerNameException) String() string {
22838	return awsutil.Prettify(s)
22839}
22840
22841// GoString returns the string representation
22842func (s InvalidRepositoryTriggerNameException) GoString() string {
22843	return s.String()
22844}
22845
22846func newErrorInvalidRepositoryTriggerNameException(v protocol.ResponseMetadata) error {
22847	return &InvalidRepositoryTriggerNameException{
22848		RespMetadata: v,
22849	}
22850}
22851
22852// Code returns the exception type name.
22853func (s *InvalidRepositoryTriggerNameException) Code() string {
22854	return "InvalidRepositoryTriggerNameException"
22855}
22856
22857// Message returns the exception's message.
22858func (s *InvalidRepositoryTriggerNameException) Message() string {
22859	if s.Message_ != nil {
22860		return *s.Message_
22861	}
22862	return ""
22863}
22864
22865// OrigErr always returns nil, satisfies awserr.Error interface.
22866func (s *InvalidRepositoryTriggerNameException) OrigErr() error {
22867	return nil
22868}
22869
22870func (s *InvalidRepositoryTriggerNameException) Error() string {
22871	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22872}
22873
22874// Status code returns the HTTP status code for the request's response error.
22875func (s *InvalidRepositoryTriggerNameException) StatusCode() int {
22876	return s.RespMetadata.StatusCode
22877}
22878
22879// RequestID returns the service's response RequestID for request.
22880func (s *InvalidRepositoryTriggerNameException) RequestID() string {
22881	return s.RespMetadata.RequestID
22882}
22883
22884// The AWS Region for the trigger target does not match the AWS Region for the
22885// repository. Triggers must be created in the same Region as the target for
22886// the trigger.
22887type InvalidRepositoryTriggerRegionException struct {
22888	_            struct{}                  `type:"structure"`
22889	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22890
22891	Message_ *string `locationName:"message" type:"string"`
22892}
22893
22894// String returns the string representation
22895func (s InvalidRepositoryTriggerRegionException) String() string {
22896	return awsutil.Prettify(s)
22897}
22898
22899// GoString returns the string representation
22900func (s InvalidRepositoryTriggerRegionException) GoString() string {
22901	return s.String()
22902}
22903
22904func newErrorInvalidRepositoryTriggerRegionException(v protocol.ResponseMetadata) error {
22905	return &InvalidRepositoryTriggerRegionException{
22906		RespMetadata: v,
22907	}
22908}
22909
22910// Code returns the exception type name.
22911func (s *InvalidRepositoryTriggerRegionException) Code() string {
22912	return "InvalidRepositoryTriggerRegionException"
22913}
22914
22915// Message returns the exception's message.
22916func (s *InvalidRepositoryTriggerRegionException) Message() string {
22917	if s.Message_ != nil {
22918		return *s.Message_
22919	}
22920	return ""
22921}
22922
22923// OrigErr always returns nil, satisfies awserr.Error interface.
22924func (s *InvalidRepositoryTriggerRegionException) OrigErr() error {
22925	return nil
22926}
22927
22928func (s *InvalidRepositoryTriggerRegionException) Error() string {
22929	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22930}
22931
22932// Status code returns the HTTP status code for the request's response error.
22933func (s *InvalidRepositoryTriggerRegionException) StatusCode() int {
22934	return s.RespMetadata.StatusCode
22935}
22936
22937// RequestID returns the service's response RequestID for request.
22938func (s *InvalidRepositoryTriggerRegionException) RequestID() string {
22939	return s.RespMetadata.RequestID
22940}
22941
22942// The value for the resource ARN is not valid. For more information about resources
22943// 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)
22944// in the AWS CodeCommit User Guide.
22945type InvalidResourceArnException struct {
22946	_            struct{}                  `type:"structure"`
22947	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
22948
22949	Message_ *string `locationName:"message" type:"string"`
22950}
22951
22952// String returns the string representation
22953func (s InvalidResourceArnException) String() string {
22954	return awsutil.Prettify(s)
22955}
22956
22957// GoString returns the string representation
22958func (s InvalidResourceArnException) GoString() string {
22959	return s.String()
22960}
22961
22962func newErrorInvalidResourceArnException(v protocol.ResponseMetadata) error {
22963	return &InvalidResourceArnException{
22964		RespMetadata: v,
22965	}
22966}
22967
22968// Code returns the exception type name.
22969func (s *InvalidResourceArnException) Code() string {
22970	return "InvalidResourceArnException"
22971}
22972
22973// Message returns the exception's message.
22974func (s *InvalidResourceArnException) Message() string {
22975	if s.Message_ != nil {
22976		return *s.Message_
22977	}
22978	return ""
22979}
22980
22981// OrigErr always returns nil, satisfies awserr.Error interface.
22982func (s *InvalidResourceArnException) OrigErr() error {
22983	return nil
22984}
22985
22986func (s *InvalidResourceArnException) Error() string {
22987	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
22988}
22989
22990// Status code returns the HTTP status code for the request's response error.
22991func (s *InvalidResourceArnException) StatusCode() int {
22992	return s.RespMetadata.StatusCode
22993}
22994
22995// RequestID returns the service's response RequestID for request.
22996func (s *InvalidResourceArnException) RequestID() string {
22997	return s.RespMetadata.RequestID
22998}
22999
23000// The revision ID is not valid. Use GetPullRequest to determine the value.
23001type InvalidRevisionIdException struct {
23002	_            struct{}                  `type:"structure"`
23003	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23004
23005	Message_ *string `locationName:"message" type:"string"`
23006}
23007
23008// String returns the string representation
23009func (s InvalidRevisionIdException) String() string {
23010	return awsutil.Prettify(s)
23011}
23012
23013// GoString returns the string representation
23014func (s InvalidRevisionIdException) GoString() string {
23015	return s.String()
23016}
23017
23018func newErrorInvalidRevisionIdException(v protocol.ResponseMetadata) error {
23019	return &InvalidRevisionIdException{
23020		RespMetadata: v,
23021	}
23022}
23023
23024// Code returns the exception type name.
23025func (s *InvalidRevisionIdException) Code() string {
23026	return "InvalidRevisionIdException"
23027}
23028
23029// Message returns the exception's message.
23030func (s *InvalidRevisionIdException) Message() string {
23031	if s.Message_ != nil {
23032		return *s.Message_
23033	}
23034	return ""
23035}
23036
23037// OrigErr always returns nil, satisfies awserr.Error interface.
23038func (s *InvalidRevisionIdException) OrigErr() error {
23039	return nil
23040}
23041
23042func (s *InvalidRevisionIdException) Error() string {
23043	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23044}
23045
23046// Status code returns the HTTP status code for the request's response error.
23047func (s *InvalidRevisionIdException) StatusCode() int {
23048	return s.RespMetadata.StatusCode
23049}
23050
23051// RequestID returns the service's response RequestID for request.
23052func (s *InvalidRevisionIdException) RequestID() string {
23053	return s.RespMetadata.RequestID
23054}
23055
23056// The SHA-256 hash signature for the rule content is not valid.
23057type InvalidRuleContentSha256Exception struct {
23058	_            struct{}                  `type:"structure"`
23059	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23060
23061	Message_ *string `locationName:"message" type:"string"`
23062}
23063
23064// String returns the string representation
23065func (s InvalidRuleContentSha256Exception) String() string {
23066	return awsutil.Prettify(s)
23067}
23068
23069// GoString returns the string representation
23070func (s InvalidRuleContentSha256Exception) GoString() string {
23071	return s.String()
23072}
23073
23074func newErrorInvalidRuleContentSha256Exception(v protocol.ResponseMetadata) error {
23075	return &InvalidRuleContentSha256Exception{
23076		RespMetadata: v,
23077	}
23078}
23079
23080// Code returns the exception type name.
23081func (s *InvalidRuleContentSha256Exception) Code() string {
23082	return "InvalidRuleContentSha256Exception"
23083}
23084
23085// Message returns the exception's message.
23086func (s *InvalidRuleContentSha256Exception) Message() string {
23087	if s.Message_ != nil {
23088		return *s.Message_
23089	}
23090	return ""
23091}
23092
23093// OrigErr always returns nil, satisfies awserr.Error interface.
23094func (s *InvalidRuleContentSha256Exception) OrigErr() error {
23095	return nil
23096}
23097
23098func (s *InvalidRuleContentSha256Exception) Error() string {
23099	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23100}
23101
23102// Status code returns the HTTP status code for the request's response error.
23103func (s *InvalidRuleContentSha256Exception) StatusCode() int {
23104	return s.RespMetadata.StatusCode
23105}
23106
23107// RequestID returns the service's response RequestID for request.
23108func (s *InvalidRuleContentSha256Exception) RequestID() string {
23109	return s.RespMetadata.RequestID
23110}
23111
23112// The specified sort by value is not valid.
23113type InvalidSortByException struct {
23114	_            struct{}                  `type:"structure"`
23115	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23116
23117	Message_ *string `locationName:"message" type:"string"`
23118}
23119
23120// String returns the string representation
23121func (s InvalidSortByException) String() string {
23122	return awsutil.Prettify(s)
23123}
23124
23125// GoString returns the string representation
23126func (s InvalidSortByException) GoString() string {
23127	return s.String()
23128}
23129
23130func newErrorInvalidSortByException(v protocol.ResponseMetadata) error {
23131	return &InvalidSortByException{
23132		RespMetadata: v,
23133	}
23134}
23135
23136// Code returns the exception type name.
23137func (s *InvalidSortByException) Code() string {
23138	return "InvalidSortByException"
23139}
23140
23141// Message returns the exception's message.
23142func (s *InvalidSortByException) Message() string {
23143	if s.Message_ != nil {
23144		return *s.Message_
23145	}
23146	return ""
23147}
23148
23149// OrigErr always returns nil, satisfies awserr.Error interface.
23150func (s *InvalidSortByException) OrigErr() error {
23151	return nil
23152}
23153
23154func (s *InvalidSortByException) Error() string {
23155	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23156}
23157
23158// Status code returns the HTTP status code for the request's response error.
23159func (s *InvalidSortByException) StatusCode() int {
23160	return s.RespMetadata.StatusCode
23161}
23162
23163// RequestID returns the service's response RequestID for request.
23164func (s *InvalidSortByException) RequestID() string {
23165	return s.RespMetadata.RequestID
23166}
23167
23168// The source commit specifier is not valid. You must provide a valid branch
23169// name, tag, or full commit ID.
23170type InvalidSourceCommitSpecifierException struct {
23171	_            struct{}                  `type:"structure"`
23172	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23173
23174	Message_ *string `locationName:"message" type:"string"`
23175}
23176
23177// String returns the string representation
23178func (s InvalidSourceCommitSpecifierException) String() string {
23179	return awsutil.Prettify(s)
23180}
23181
23182// GoString returns the string representation
23183func (s InvalidSourceCommitSpecifierException) GoString() string {
23184	return s.String()
23185}
23186
23187func newErrorInvalidSourceCommitSpecifierException(v protocol.ResponseMetadata) error {
23188	return &InvalidSourceCommitSpecifierException{
23189		RespMetadata: v,
23190	}
23191}
23192
23193// Code returns the exception type name.
23194func (s *InvalidSourceCommitSpecifierException) Code() string {
23195	return "InvalidSourceCommitSpecifierException"
23196}
23197
23198// Message returns the exception's message.
23199func (s *InvalidSourceCommitSpecifierException) Message() string {
23200	if s.Message_ != nil {
23201		return *s.Message_
23202	}
23203	return ""
23204}
23205
23206// OrigErr always returns nil, satisfies awserr.Error interface.
23207func (s *InvalidSourceCommitSpecifierException) OrigErr() error {
23208	return nil
23209}
23210
23211func (s *InvalidSourceCommitSpecifierException) Error() string {
23212	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23213}
23214
23215// Status code returns the HTTP status code for the request's response error.
23216func (s *InvalidSourceCommitSpecifierException) StatusCode() int {
23217	return s.RespMetadata.StatusCode
23218}
23219
23220// RequestID returns the service's response RequestID for request.
23221func (s *InvalidSourceCommitSpecifierException) RequestID() string {
23222	return s.RespMetadata.RequestID
23223}
23224
23225// The specified tag is not valid. Key names cannot be prefixed with aws:.
23226type InvalidSystemTagUsageException struct {
23227	_            struct{}                  `type:"structure"`
23228	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23229
23230	Message_ *string `locationName:"message" type:"string"`
23231}
23232
23233// String returns the string representation
23234func (s InvalidSystemTagUsageException) String() string {
23235	return awsutil.Prettify(s)
23236}
23237
23238// GoString returns the string representation
23239func (s InvalidSystemTagUsageException) GoString() string {
23240	return s.String()
23241}
23242
23243func newErrorInvalidSystemTagUsageException(v protocol.ResponseMetadata) error {
23244	return &InvalidSystemTagUsageException{
23245		RespMetadata: v,
23246	}
23247}
23248
23249// Code returns the exception type name.
23250func (s *InvalidSystemTagUsageException) Code() string {
23251	return "InvalidSystemTagUsageException"
23252}
23253
23254// Message returns the exception's message.
23255func (s *InvalidSystemTagUsageException) Message() string {
23256	if s.Message_ != nil {
23257		return *s.Message_
23258	}
23259	return ""
23260}
23261
23262// OrigErr always returns nil, satisfies awserr.Error interface.
23263func (s *InvalidSystemTagUsageException) OrigErr() error {
23264	return nil
23265}
23266
23267func (s *InvalidSystemTagUsageException) Error() string {
23268	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23269}
23270
23271// Status code returns the HTTP status code for the request's response error.
23272func (s *InvalidSystemTagUsageException) StatusCode() int {
23273	return s.RespMetadata.StatusCode
23274}
23275
23276// RequestID returns the service's response RequestID for request.
23277func (s *InvalidSystemTagUsageException) RequestID() string {
23278	return s.RespMetadata.RequestID
23279}
23280
23281// The list of tags is not valid.
23282type InvalidTagKeysListException struct {
23283	_            struct{}                  `type:"structure"`
23284	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23285
23286	Message_ *string `locationName:"message" type:"string"`
23287}
23288
23289// String returns the string representation
23290func (s InvalidTagKeysListException) String() string {
23291	return awsutil.Prettify(s)
23292}
23293
23294// GoString returns the string representation
23295func (s InvalidTagKeysListException) GoString() string {
23296	return s.String()
23297}
23298
23299func newErrorInvalidTagKeysListException(v protocol.ResponseMetadata) error {
23300	return &InvalidTagKeysListException{
23301		RespMetadata: v,
23302	}
23303}
23304
23305// Code returns the exception type name.
23306func (s *InvalidTagKeysListException) Code() string {
23307	return "InvalidTagKeysListException"
23308}
23309
23310// Message returns the exception's message.
23311func (s *InvalidTagKeysListException) Message() string {
23312	if s.Message_ != nil {
23313		return *s.Message_
23314	}
23315	return ""
23316}
23317
23318// OrigErr always returns nil, satisfies awserr.Error interface.
23319func (s *InvalidTagKeysListException) OrigErr() error {
23320	return nil
23321}
23322
23323func (s *InvalidTagKeysListException) Error() string {
23324	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23325}
23326
23327// Status code returns the HTTP status code for the request's response error.
23328func (s *InvalidTagKeysListException) StatusCode() int {
23329	return s.RespMetadata.StatusCode
23330}
23331
23332// RequestID returns the service's response RequestID for request.
23333func (s *InvalidTagKeysListException) RequestID() string {
23334	return s.RespMetadata.RequestID
23335}
23336
23337// The map of tags is not valid.
23338type InvalidTagsMapException struct {
23339	_            struct{}                  `type:"structure"`
23340	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23341
23342	Message_ *string `locationName:"message" type:"string"`
23343}
23344
23345// String returns the string representation
23346func (s InvalidTagsMapException) String() string {
23347	return awsutil.Prettify(s)
23348}
23349
23350// GoString returns the string representation
23351func (s InvalidTagsMapException) GoString() string {
23352	return s.String()
23353}
23354
23355func newErrorInvalidTagsMapException(v protocol.ResponseMetadata) error {
23356	return &InvalidTagsMapException{
23357		RespMetadata: v,
23358	}
23359}
23360
23361// Code returns the exception type name.
23362func (s *InvalidTagsMapException) Code() string {
23363	return "InvalidTagsMapException"
23364}
23365
23366// Message returns the exception's message.
23367func (s *InvalidTagsMapException) Message() string {
23368	if s.Message_ != nil {
23369		return *s.Message_
23370	}
23371	return ""
23372}
23373
23374// OrigErr always returns nil, satisfies awserr.Error interface.
23375func (s *InvalidTagsMapException) OrigErr() error {
23376	return nil
23377}
23378
23379func (s *InvalidTagsMapException) Error() string {
23380	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23381}
23382
23383// Status code returns the HTTP status code for the request's response error.
23384func (s *InvalidTagsMapException) StatusCode() int {
23385	return s.RespMetadata.StatusCode
23386}
23387
23388// RequestID returns the service's response RequestID for request.
23389func (s *InvalidTagsMapException) RequestID() string {
23390	return s.RespMetadata.RequestID
23391}
23392
23393// The specified target branch is not valid.
23394type InvalidTargetBranchException struct {
23395	_            struct{}                  `type:"structure"`
23396	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23397
23398	Message_ *string `locationName:"message" type:"string"`
23399}
23400
23401// String returns the string representation
23402func (s InvalidTargetBranchException) String() string {
23403	return awsutil.Prettify(s)
23404}
23405
23406// GoString returns the string representation
23407func (s InvalidTargetBranchException) GoString() string {
23408	return s.String()
23409}
23410
23411func newErrorInvalidTargetBranchException(v protocol.ResponseMetadata) error {
23412	return &InvalidTargetBranchException{
23413		RespMetadata: v,
23414	}
23415}
23416
23417// Code returns the exception type name.
23418func (s *InvalidTargetBranchException) Code() string {
23419	return "InvalidTargetBranchException"
23420}
23421
23422// Message returns the exception's message.
23423func (s *InvalidTargetBranchException) Message() string {
23424	if s.Message_ != nil {
23425		return *s.Message_
23426	}
23427	return ""
23428}
23429
23430// OrigErr always returns nil, satisfies awserr.Error interface.
23431func (s *InvalidTargetBranchException) OrigErr() error {
23432	return nil
23433}
23434
23435func (s *InvalidTargetBranchException) Error() string {
23436	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23437}
23438
23439// Status code returns the HTTP status code for the request's response error.
23440func (s *InvalidTargetBranchException) StatusCode() int {
23441	return s.RespMetadata.StatusCode
23442}
23443
23444// RequestID returns the service's response RequestID for request.
23445func (s *InvalidTargetBranchException) RequestID() string {
23446	return s.RespMetadata.RequestID
23447}
23448
23449// The target for the pull request is not valid. A target must contain the full
23450// values for the repository name, source branch, and destination branch for
23451// the pull request.
23452type InvalidTargetException struct {
23453	_            struct{}                  `type:"structure"`
23454	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23455
23456	Message_ *string `locationName:"message" type:"string"`
23457}
23458
23459// String returns the string representation
23460func (s InvalidTargetException) String() string {
23461	return awsutil.Prettify(s)
23462}
23463
23464// GoString returns the string representation
23465func (s InvalidTargetException) GoString() string {
23466	return s.String()
23467}
23468
23469func newErrorInvalidTargetException(v protocol.ResponseMetadata) error {
23470	return &InvalidTargetException{
23471		RespMetadata: v,
23472	}
23473}
23474
23475// Code returns the exception type name.
23476func (s *InvalidTargetException) Code() string {
23477	return "InvalidTargetException"
23478}
23479
23480// Message returns the exception's message.
23481func (s *InvalidTargetException) Message() string {
23482	if s.Message_ != nil {
23483		return *s.Message_
23484	}
23485	return ""
23486}
23487
23488// OrigErr always returns nil, satisfies awserr.Error interface.
23489func (s *InvalidTargetException) OrigErr() error {
23490	return nil
23491}
23492
23493func (s *InvalidTargetException) Error() string {
23494	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23495}
23496
23497// Status code returns the HTTP status code for the request's response error.
23498func (s *InvalidTargetException) StatusCode() int {
23499	return s.RespMetadata.StatusCode
23500}
23501
23502// RequestID returns the service's response RequestID for request.
23503func (s *InvalidTargetException) RequestID() string {
23504	return s.RespMetadata.RequestID
23505}
23506
23507// The targets for the pull request is not valid or not in a valid format. Targets
23508// are a list of target objects. Each target object must contain the full values
23509// for the repository name, source branch, and destination branch for a pull
23510// request.
23511type InvalidTargetsException struct {
23512	_            struct{}                  `type:"structure"`
23513	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23514
23515	Message_ *string `locationName:"message" type:"string"`
23516}
23517
23518// String returns the string representation
23519func (s InvalidTargetsException) String() string {
23520	return awsutil.Prettify(s)
23521}
23522
23523// GoString returns the string representation
23524func (s InvalidTargetsException) GoString() string {
23525	return s.String()
23526}
23527
23528func newErrorInvalidTargetsException(v protocol.ResponseMetadata) error {
23529	return &InvalidTargetsException{
23530		RespMetadata: v,
23531	}
23532}
23533
23534// Code returns the exception type name.
23535func (s *InvalidTargetsException) Code() string {
23536	return "InvalidTargetsException"
23537}
23538
23539// Message returns the exception's message.
23540func (s *InvalidTargetsException) Message() string {
23541	if s.Message_ != nil {
23542		return *s.Message_
23543	}
23544	return ""
23545}
23546
23547// OrigErr always returns nil, satisfies awserr.Error interface.
23548func (s *InvalidTargetsException) OrigErr() error {
23549	return nil
23550}
23551
23552func (s *InvalidTargetsException) Error() string {
23553	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23554}
23555
23556// Status code returns the HTTP status code for the request's response error.
23557func (s *InvalidTargetsException) StatusCode() int {
23558	return s.RespMetadata.StatusCode
23559}
23560
23561// RequestID returns the service's response RequestID for request.
23562func (s *InvalidTargetsException) RequestID() string {
23563	return s.RespMetadata.RequestID
23564}
23565
23566// The title of the pull request is not valid. Pull request titles cannot exceed
23567// 100 characters in length.
23568type InvalidTitleException struct {
23569	_            struct{}                  `type:"structure"`
23570	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
23571
23572	Message_ *string `locationName:"message" type:"string"`
23573}
23574
23575// String returns the string representation
23576func (s InvalidTitleException) String() string {
23577	return awsutil.Prettify(s)
23578}
23579
23580// GoString returns the string representation
23581func (s InvalidTitleException) GoString() string {
23582	return s.String()
23583}
23584
23585func newErrorInvalidTitleException(v protocol.ResponseMetadata) error {
23586	return &InvalidTitleException{
23587		RespMetadata: v,
23588	}
23589}
23590
23591// Code returns the exception type name.
23592func (s *InvalidTitleException) Code() string {
23593	return "InvalidTitleException"
23594}
23595
23596// Message returns the exception's message.
23597func (s *InvalidTitleException) Message() string {
23598	if s.Message_ != nil {
23599		return *s.Message_
23600	}
23601	return ""
23602}
23603
23604// OrigErr always returns nil, satisfies awserr.Error interface.
23605func (s *InvalidTitleException) OrigErr() error {
23606	return nil
23607}
23608
23609func (s *InvalidTitleException) Error() string {
23610	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
23611}
23612
23613// Status code returns the HTTP status code for the request's response error.
23614func (s *InvalidTitleException) StatusCode() int {
23615	return s.RespMetadata.StatusCode
23616}
23617
23618// RequestID returns the service's response RequestID for request.
23619func (s *InvalidTitleException) RequestID() string {
23620	return s.RespMetadata.RequestID
23621}
23622
23623// Information about whether a file is binary or textual in a merge or pull
23624// request operation.
23625type IsBinaryFile struct {
23626	_ struct{} `type:"structure"`
23627
23628	// The binary or non-binary status of a file in the base of a merge or pull
23629	// request.
23630	Base *bool `locationName:"base" type:"boolean"`
23631
23632	// The binary or non-binary status of a file in the destination of a merge or
23633	// pull request.
23634	Destination *bool `locationName:"destination" type:"boolean"`
23635
23636	// The binary or non-binary status of file in the source of a merge or pull
23637	// request.
23638	Source *bool `locationName:"source" type:"boolean"`
23639}
23640
23641// String returns the string representation
23642func (s IsBinaryFile) String() string {
23643	return awsutil.Prettify(s)
23644}
23645
23646// GoString returns the string representation
23647func (s IsBinaryFile) GoString() string {
23648	return s.String()
23649}
23650
23651// SetBase sets the Base field's value.
23652func (s *IsBinaryFile) SetBase(v bool) *IsBinaryFile {
23653	s.Base = &v
23654	return s
23655}
23656
23657// SetDestination sets the Destination field's value.
23658func (s *IsBinaryFile) SetDestination(v bool) *IsBinaryFile {
23659	s.Destination = &v
23660	return s
23661}
23662
23663// SetSource sets the Source field's value.
23664func (s *IsBinaryFile) SetSource(v bool) *IsBinaryFile {
23665	s.Source = &v
23666	return s
23667}
23668
23669type ListApprovalRuleTemplatesInput struct {
23670	_ struct{} `type:"structure"`
23671
23672	// A non-zero, non-negative integer used to limit the number of returned results.
23673	MaxResults *int64 `locationName:"maxResults" type:"integer"`
23674
23675	// An enumeration token that, when provided in a request, returns the next batch
23676	// of the results.
23677	NextToken *string `locationName:"nextToken" type:"string"`
23678}
23679
23680// String returns the string representation
23681func (s ListApprovalRuleTemplatesInput) String() string {
23682	return awsutil.Prettify(s)
23683}
23684
23685// GoString returns the string representation
23686func (s ListApprovalRuleTemplatesInput) GoString() string {
23687	return s.String()
23688}
23689
23690// SetMaxResults sets the MaxResults field's value.
23691func (s *ListApprovalRuleTemplatesInput) SetMaxResults(v int64) *ListApprovalRuleTemplatesInput {
23692	s.MaxResults = &v
23693	return s
23694}
23695
23696// SetNextToken sets the NextToken field's value.
23697func (s *ListApprovalRuleTemplatesInput) SetNextToken(v string) *ListApprovalRuleTemplatesInput {
23698	s.NextToken = &v
23699	return s
23700}
23701
23702type ListApprovalRuleTemplatesOutput struct {
23703	_ struct{} `type:"structure"`
23704
23705	// The names of all the approval rule templates found in the AWS Region for
23706	// your AWS account.
23707	ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"`
23708
23709	// An enumeration token that allows the operation to batch the next results
23710	// of the operation.
23711	NextToken *string `locationName:"nextToken" type:"string"`
23712}
23713
23714// String returns the string representation
23715func (s ListApprovalRuleTemplatesOutput) String() string {
23716	return awsutil.Prettify(s)
23717}
23718
23719// GoString returns the string representation
23720func (s ListApprovalRuleTemplatesOutput) GoString() string {
23721	return s.String()
23722}
23723
23724// SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value.
23725func (s *ListApprovalRuleTemplatesOutput) SetApprovalRuleTemplateNames(v []*string) *ListApprovalRuleTemplatesOutput {
23726	s.ApprovalRuleTemplateNames = v
23727	return s
23728}
23729
23730// SetNextToken sets the NextToken field's value.
23731func (s *ListApprovalRuleTemplatesOutput) SetNextToken(v string) *ListApprovalRuleTemplatesOutput {
23732	s.NextToken = &v
23733	return s
23734}
23735
23736type ListAssociatedApprovalRuleTemplatesForRepositoryInput struct {
23737	_ struct{} `type:"structure"`
23738
23739	// A non-zero, non-negative integer used to limit the number of returned results.
23740	MaxResults *int64 `locationName:"maxResults" type:"integer"`
23741
23742	// An enumeration token that, when provided in a request, returns the next batch
23743	// of the results.
23744	NextToken *string `locationName:"nextToken" type:"string"`
23745
23746	// The name of the repository for which you want to list all associated approval
23747	// rule templates.
23748	//
23749	// RepositoryName is a required field
23750	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
23751}
23752
23753// String returns the string representation
23754func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) String() string {
23755	return awsutil.Prettify(s)
23756}
23757
23758// GoString returns the string representation
23759func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) GoString() string {
23760	return s.String()
23761}
23762
23763// Validate inspects the fields of the type to determine if they are valid.
23764func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) Validate() error {
23765	invalidParams := request.ErrInvalidParams{Context: "ListAssociatedApprovalRuleTemplatesForRepositoryInput"}
23766	if s.RepositoryName == nil {
23767		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
23768	}
23769	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
23770		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
23771	}
23772
23773	if invalidParams.Len() > 0 {
23774		return invalidParams
23775	}
23776	return nil
23777}
23778
23779// SetMaxResults sets the MaxResults field's value.
23780func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetMaxResults(v int64) *ListAssociatedApprovalRuleTemplatesForRepositoryInput {
23781	s.MaxResults = &v
23782	return s
23783}
23784
23785// SetNextToken sets the NextToken field's value.
23786func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput {
23787	s.NextToken = &v
23788	return s
23789}
23790
23791// SetRepositoryName sets the RepositoryName field's value.
23792func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetRepositoryName(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput {
23793	s.RepositoryName = &v
23794	return s
23795}
23796
23797type ListAssociatedApprovalRuleTemplatesForRepositoryOutput struct {
23798	_ struct{} `type:"structure"`
23799
23800	// The names of all approval rule templates associated with the repository.
23801	ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"`
23802
23803	// An enumeration token that allows the operation to batch the next results
23804	// of the operation.
23805	NextToken *string `locationName:"nextToken" type:"string"`
23806}
23807
23808// String returns the string representation
23809func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) String() string {
23810	return awsutil.Prettify(s)
23811}
23812
23813// GoString returns the string representation
23814func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) GoString() string {
23815	return s.String()
23816}
23817
23818// SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value.
23819func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetApprovalRuleTemplateNames(v []*string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput {
23820	s.ApprovalRuleTemplateNames = v
23821	return s
23822}
23823
23824// SetNextToken sets the NextToken field's value.
23825func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput {
23826	s.NextToken = &v
23827	return s
23828}
23829
23830// Represents the input of a list branches operation.
23831type ListBranchesInput struct {
23832	_ struct{} `type:"structure"`
23833
23834	// An enumeration token that allows the operation to batch the results.
23835	NextToken *string `locationName:"nextToken" type:"string"`
23836
23837	// The name of the repository that contains the branches.
23838	//
23839	// RepositoryName is a required field
23840	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
23841}
23842
23843// String returns the string representation
23844func (s ListBranchesInput) String() string {
23845	return awsutil.Prettify(s)
23846}
23847
23848// GoString returns the string representation
23849func (s ListBranchesInput) GoString() string {
23850	return s.String()
23851}
23852
23853// Validate inspects the fields of the type to determine if they are valid.
23854func (s *ListBranchesInput) Validate() error {
23855	invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"}
23856	if s.RepositoryName == nil {
23857		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
23858	}
23859	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
23860		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
23861	}
23862
23863	if invalidParams.Len() > 0 {
23864		return invalidParams
23865	}
23866	return nil
23867}
23868
23869// SetNextToken sets the NextToken field's value.
23870func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput {
23871	s.NextToken = &v
23872	return s
23873}
23874
23875// SetRepositoryName sets the RepositoryName field's value.
23876func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput {
23877	s.RepositoryName = &v
23878	return s
23879}
23880
23881// Represents the output of a list branches operation.
23882type ListBranchesOutput struct {
23883	_ struct{} `type:"structure"`
23884
23885	// The list of branch names.
23886	Branches []*string `locationName:"branches" type:"list"`
23887
23888	// An enumeration token that returns the batch of the results.
23889	NextToken *string `locationName:"nextToken" type:"string"`
23890}
23891
23892// String returns the string representation
23893func (s ListBranchesOutput) String() string {
23894	return awsutil.Prettify(s)
23895}
23896
23897// GoString returns the string representation
23898func (s ListBranchesOutput) GoString() string {
23899	return s.String()
23900}
23901
23902// SetBranches sets the Branches field's value.
23903func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput {
23904	s.Branches = v
23905	return s
23906}
23907
23908// SetNextToken sets the NextToken field's value.
23909func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput {
23910	s.NextToken = &v
23911	return s
23912}
23913
23914type ListPullRequestsInput struct {
23915	_ struct{} `type:"structure"`
23916
23917	// Optional. The Amazon Resource Name (ARN) of the user who created the pull
23918	// request. If used, this filters the results to pull requests created by that
23919	// user.
23920	AuthorArn *string `locationName:"authorArn" type:"string"`
23921
23922	// A non-zero, non-negative integer used to limit the number of returned results.
23923	MaxResults *int64 `locationName:"maxResults" type:"integer"`
23924
23925	// An enumeration token that, when provided in a request, returns the next batch
23926	// of the results.
23927	NextToken *string `locationName:"nextToken" type:"string"`
23928
23929	// Optional. The status of the pull request. If used, this refines the results
23930	// to the pull requests that match the specified status.
23931	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
23932
23933	// The name of the repository for which you want to list pull requests.
23934	//
23935	// RepositoryName is a required field
23936	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
23937}
23938
23939// String returns the string representation
23940func (s ListPullRequestsInput) String() string {
23941	return awsutil.Prettify(s)
23942}
23943
23944// GoString returns the string representation
23945func (s ListPullRequestsInput) GoString() string {
23946	return s.String()
23947}
23948
23949// Validate inspects the fields of the type to determine if they are valid.
23950func (s *ListPullRequestsInput) Validate() error {
23951	invalidParams := request.ErrInvalidParams{Context: "ListPullRequestsInput"}
23952	if s.RepositoryName == nil {
23953		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
23954	}
23955	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
23956		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
23957	}
23958
23959	if invalidParams.Len() > 0 {
23960		return invalidParams
23961	}
23962	return nil
23963}
23964
23965// SetAuthorArn sets the AuthorArn field's value.
23966func (s *ListPullRequestsInput) SetAuthorArn(v string) *ListPullRequestsInput {
23967	s.AuthorArn = &v
23968	return s
23969}
23970
23971// SetMaxResults sets the MaxResults field's value.
23972func (s *ListPullRequestsInput) SetMaxResults(v int64) *ListPullRequestsInput {
23973	s.MaxResults = &v
23974	return s
23975}
23976
23977// SetNextToken sets the NextToken field's value.
23978func (s *ListPullRequestsInput) SetNextToken(v string) *ListPullRequestsInput {
23979	s.NextToken = &v
23980	return s
23981}
23982
23983// SetPullRequestStatus sets the PullRequestStatus field's value.
23984func (s *ListPullRequestsInput) SetPullRequestStatus(v string) *ListPullRequestsInput {
23985	s.PullRequestStatus = &v
23986	return s
23987}
23988
23989// SetRepositoryName sets the RepositoryName field's value.
23990func (s *ListPullRequestsInput) SetRepositoryName(v string) *ListPullRequestsInput {
23991	s.RepositoryName = &v
23992	return s
23993}
23994
23995type ListPullRequestsOutput struct {
23996	_ struct{} `type:"structure"`
23997
23998	// An enumeration token that allows the operation to batch the next results
23999	// of the operation.
24000	NextToken *string `locationName:"nextToken" type:"string"`
24001
24002	// The system-generated IDs of the pull requests.
24003	//
24004	// PullRequestIds is a required field
24005	PullRequestIds []*string `locationName:"pullRequestIds" type:"list" required:"true"`
24006}
24007
24008// String returns the string representation
24009func (s ListPullRequestsOutput) String() string {
24010	return awsutil.Prettify(s)
24011}
24012
24013// GoString returns the string representation
24014func (s ListPullRequestsOutput) GoString() string {
24015	return s.String()
24016}
24017
24018// SetNextToken sets the NextToken field's value.
24019func (s *ListPullRequestsOutput) SetNextToken(v string) *ListPullRequestsOutput {
24020	s.NextToken = &v
24021	return s
24022}
24023
24024// SetPullRequestIds sets the PullRequestIds field's value.
24025func (s *ListPullRequestsOutput) SetPullRequestIds(v []*string) *ListPullRequestsOutput {
24026	s.PullRequestIds = v
24027	return s
24028}
24029
24030type ListRepositoriesForApprovalRuleTemplateInput struct {
24031	_ struct{} `type:"structure"`
24032
24033	// The name of the approval rule template for which you want to list repositories
24034	// that are associated with that template.
24035	//
24036	// ApprovalRuleTemplateName is a required field
24037	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
24038
24039	// A non-zero, non-negative integer used to limit the number of returned results.
24040	MaxResults *int64 `locationName:"maxResults" type:"integer"`
24041
24042	// An enumeration token that, when provided in a request, returns the next batch
24043	// of the results.
24044	NextToken *string `locationName:"nextToken" type:"string"`
24045}
24046
24047// String returns the string representation
24048func (s ListRepositoriesForApprovalRuleTemplateInput) String() string {
24049	return awsutil.Prettify(s)
24050}
24051
24052// GoString returns the string representation
24053func (s ListRepositoriesForApprovalRuleTemplateInput) GoString() string {
24054	return s.String()
24055}
24056
24057// Validate inspects the fields of the type to determine if they are valid.
24058func (s *ListRepositoriesForApprovalRuleTemplateInput) Validate() error {
24059	invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesForApprovalRuleTemplateInput"}
24060	if s.ApprovalRuleTemplateName == nil {
24061		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
24062	}
24063	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
24064		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
24065	}
24066
24067	if invalidParams.Len() > 0 {
24068		return invalidParams
24069	}
24070	return nil
24071}
24072
24073// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
24074func (s *ListRepositoriesForApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *ListRepositoriesForApprovalRuleTemplateInput {
24075	s.ApprovalRuleTemplateName = &v
24076	return s
24077}
24078
24079// SetMaxResults sets the MaxResults field's value.
24080func (s *ListRepositoriesForApprovalRuleTemplateInput) SetMaxResults(v int64) *ListRepositoriesForApprovalRuleTemplateInput {
24081	s.MaxResults = &v
24082	return s
24083}
24084
24085// SetNextToken sets the NextToken field's value.
24086func (s *ListRepositoriesForApprovalRuleTemplateInput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateInput {
24087	s.NextToken = &v
24088	return s
24089}
24090
24091type ListRepositoriesForApprovalRuleTemplateOutput struct {
24092	_ struct{} `type:"structure"`
24093
24094	// An enumeration token that allows the operation to batch the next results
24095	// of the operation.
24096	NextToken *string `locationName:"nextToken" type:"string"`
24097
24098	// A list of repository names that are associated with the specified approval
24099	// rule template.
24100	RepositoryNames []*string `locationName:"repositoryNames" type:"list"`
24101}
24102
24103// String returns the string representation
24104func (s ListRepositoriesForApprovalRuleTemplateOutput) String() string {
24105	return awsutil.Prettify(s)
24106}
24107
24108// GoString returns the string representation
24109func (s ListRepositoriesForApprovalRuleTemplateOutput) GoString() string {
24110	return s.String()
24111}
24112
24113// SetNextToken sets the NextToken field's value.
24114func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateOutput {
24115	s.NextToken = &v
24116	return s
24117}
24118
24119// SetRepositoryNames sets the RepositoryNames field's value.
24120func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetRepositoryNames(v []*string) *ListRepositoriesForApprovalRuleTemplateOutput {
24121	s.RepositoryNames = v
24122	return s
24123}
24124
24125// Represents the input of a list repositories operation.
24126type ListRepositoriesInput struct {
24127	_ struct{} `type:"structure"`
24128
24129	// An enumeration token that allows the operation to batch the results of the
24130	// operation. Batch sizes are 1,000 for list repository operations. When the
24131	// client sends the token back to AWS CodeCommit, another page of 1,000 records
24132	// is retrieved.
24133	NextToken *string `locationName:"nextToken" type:"string"`
24134
24135	// The order in which to sort the results of a list repositories operation.
24136	Order *string `locationName:"order" type:"string" enum:"OrderEnum"`
24137
24138	// The criteria used to sort the results of a list repositories operation.
24139	SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"`
24140}
24141
24142// String returns the string representation
24143func (s ListRepositoriesInput) String() string {
24144	return awsutil.Prettify(s)
24145}
24146
24147// GoString returns the string representation
24148func (s ListRepositoriesInput) GoString() string {
24149	return s.String()
24150}
24151
24152// SetNextToken sets the NextToken field's value.
24153func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput {
24154	s.NextToken = &v
24155	return s
24156}
24157
24158// SetOrder sets the Order field's value.
24159func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput {
24160	s.Order = &v
24161	return s
24162}
24163
24164// SetSortBy sets the SortBy field's value.
24165func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput {
24166	s.SortBy = &v
24167	return s
24168}
24169
24170// Represents the output of a list repositories operation.
24171type ListRepositoriesOutput struct {
24172	_ struct{} `type:"structure"`
24173
24174	// An enumeration token that allows the operation to batch the results of the
24175	// operation. Batch sizes are 1,000 for list repository operations. When the
24176	// client sends the token back to AWS CodeCommit, another page of 1,000 records
24177	// is retrieved.
24178	NextToken *string `locationName:"nextToken" type:"string"`
24179
24180	// Lists the repositories called by the list repositories operation.
24181	Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"`
24182}
24183
24184// String returns the string representation
24185func (s ListRepositoriesOutput) String() string {
24186	return awsutil.Prettify(s)
24187}
24188
24189// GoString returns the string representation
24190func (s ListRepositoriesOutput) GoString() string {
24191	return s.String()
24192}
24193
24194// SetNextToken sets the NextToken field's value.
24195func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput {
24196	s.NextToken = &v
24197	return s
24198}
24199
24200// SetRepositories sets the Repositories field's value.
24201func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput {
24202	s.Repositories = v
24203	return s
24204}
24205
24206type ListTagsForResourceInput struct {
24207	_ struct{} `type:"structure"`
24208
24209	// An enumeration token that, when provided in a request, returns the next batch
24210	// of the results.
24211	NextToken *string `locationName:"nextToken" type:"string"`
24212
24213	// The Amazon Resource Name (ARN) of the resource for which you want to get
24214	// information about tags, if any.
24215	//
24216	// ResourceArn is a required field
24217	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
24218}
24219
24220// String returns the string representation
24221func (s ListTagsForResourceInput) String() string {
24222	return awsutil.Prettify(s)
24223}
24224
24225// GoString returns the string representation
24226func (s ListTagsForResourceInput) GoString() string {
24227	return s.String()
24228}
24229
24230// Validate inspects the fields of the type to determine if they are valid.
24231func (s *ListTagsForResourceInput) Validate() error {
24232	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
24233	if s.ResourceArn == nil {
24234		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
24235	}
24236
24237	if invalidParams.Len() > 0 {
24238		return invalidParams
24239	}
24240	return nil
24241}
24242
24243// SetNextToken sets the NextToken field's value.
24244func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput {
24245	s.NextToken = &v
24246	return s
24247}
24248
24249// SetResourceArn sets the ResourceArn field's value.
24250func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
24251	s.ResourceArn = &v
24252	return s
24253}
24254
24255type ListTagsForResourceOutput struct {
24256	_ struct{} `type:"structure"`
24257
24258	// An enumeration token that allows the operation to batch the next results
24259	// of the operation.
24260	NextToken *string `locationName:"nextToken" type:"string"`
24261
24262	// A list of tag key and value pairs associated with the specified resource.
24263	Tags map[string]*string `locationName:"tags" type:"map"`
24264}
24265
24266// String returns the string representation
24267func (s ListTagsForResourceOutput) String() string {
24268	return awsutil.Prettify(s)
24269}
24270
24271// GoString returns the string representation
24272func (s ListTagsForResourceOutput) GoString() string {
24273	return s.String()
24274}
24275
24276// SetNextToken sets the NextToken field's value.
24277func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput {
24278	s.NextToken = &v
24279	return s
24280}
24281
24282// SetTags sets the Tags field's value.
24283func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
24284	s.Tags = v
24285	return s
24286}
24287
24288// Returns information about the location of a change or comment in the comparison
24289// between two commits or a pull request.
24290type Location struct {
24291	_ struct{} `type:"structure"`
24292
24293	// The name of the file being compared, including its extension and subdirectory,
24294	// if any.
24295	FilePath *string `locationName:"filePath" type:"string"`
24296
24297	// The position of a change in a compared file, in line number format.
24298	FilePosition *int64 `locationName:"filePosition" type:"long"`
24299
24300	// In a comparison of commits or a pull request, whether the change is in the
24301	// before or after of that comparison.
24302	RelativeFileVersion *string `locationName:"relativeFileVersion" type:"string" enum:"RelativeFileVersionEnum"`
24303}
24304
24305// String returns the string representation
24306func (s Location) String() string {
24307	return awsutil.Prettify(s)
24308}
24309
24310// GoString returns the string representation
24311func (s Location) GoString() string {
24312	return s.String()
24313}
24314
24315// SetFilePath sets the FilePath field's value.
24316func (s *Location) SetFilePath(v string) *Location {
24317	s.FilePath = &v
24318	return s
24319}
24320
24321// SetFilePosition sets the FilePosition field's value.
24322func (s *Location) SetFilePosition(v int64) *Location {
24323	s.FilePosition = &v
24324	return s
24325}
24326
24327// SetRelativeFileVersion sets the RelativeFileVersion field's value.
24328func (s *Location) SetRelativeFileVersion(v string) *Location {
24329	s.RelativeFileVersion = &v
24330	return s
24331}
24332
24333// The pull request cannot be merged automatically into the destination branch.
24334// You must manually merge the branches and resolve any conflicts.
24335type ManualMergeRequiredException struct {
24336	_            struct{}                  `type:"structure"`
24337	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24338
24339	Message_ *string `locationName:"message" type:"string"`
24340}
24341
24342// String returns the string representation
24343func (s ManualMergeRequiredException) String() string {
24344	return awsutil.Prettify(s)
24345}
24346
24347// GoString returns the string representation
24348func (s ManualMergeRequiredException) GoString() string {
24349	return s.String()
24350}
24351
24352func newErrorManualMergeRequiredException(v protocol.ResponseMetadata) error {
24353	return &ManualMergeRequiredException{
24354		RespMetadata: v,
24355	}
24356}
24357
24358// Code returns the exception type name.
24359func (s *ManualMergeRequiredException) Code() string {
24360	return "ManualMergeRequiredException"
24361}
24362
24363// Message returns the exception's message.
24364func (s *ManualMergeRequiredException) Message() string {
24365	if s.Message_ != nil {
24366		return *s.Message_
24367	}
24368	return ""
24369}
24370
24371// OrigErr always returns nil, satisfies awserr.Error interface.
24372func (s *ManualMergeRequiredException) OrigErr() error {
24373	return nil
24374}
24375
24376func (s *ManualMergeRequiredException) Error() string {
24377	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24378}
24379
24380// Status code returns the HTTP status code for the request's response error.
24381func (s *ManualMergeRequiredException) StatusCode() int {
24382	return s.RespMetadata.StatusCode
24383}
24384
24385// RequestID returns the service's response RequestID for request.
24386func (s *ManualMergeRequiredException) RequestID() string {
24387	return s.RespMetadata.RequestID
24388}
24389
24390// The number of branches for the trigger was exceeded.
24391type MaximumBranchesExceededException struct {
24392	_            struct{}                  `type:"structure"`
24393	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24394
24395	Message_ *string `locationName:"message" type:"string"`
24396}
24397
24398// String returns the string representation
24399func (s MaximumBranchesExceededException) String() string {
24400	return awsutil.Prettify(s)
24401}
24402
24403// GoString returns the string representation
24404func (s MaximumBranchesExceededException) GoString() string {
24405	return s.String()
24406}
24407
24408func newErrorMaximumBranchesExceededException(v protocol.ResponseMetadata) error {
24409	return &MaximumBranchesExceededException{
24410		RespMetadata: v,
24411	}
24412}
24413
24414// Code returns the exception type name.
24415func (s *MaximumBranchesExceededException) Code() string {
24416	return "MaximumBranchesExceededException"
24417}
24418
24419// Message returns the exception's message.
24420func (s *MaximumBranchesExceededException) Message() string {
24421	if s.Message_ != nil {
24422		return *s.Message_
24423	}
24424	return ""
24425}
24426
24427// OrigErr always returns nil, satisfies awserr.Error interface.
24428func (s *MaximumBranchesExceededException) OrigErr() error {
24429	return nil
24430}
24431
24432func (s *MaximumBranchesExceededException) Error() string {
24433	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24434}
24435
24436// Status code returns the HTTP status code for the request's response error.
24437func (s *MaximumBranchesExceededException) StatusCode() int {
24438	return s.RespMetadata.StatusCode
24439}
24440
24441// RequestID returns the service's response RequestID for request.
24442func (s *MaximumBranchesExceededException) RequestID() string {
24443	return s.RespMetadata.RequestID
24444}
24445
24446// The number of allowed conflict resolution entries was exceeded.
24447type MaximumConflictResolutionEntriesExceededException struct {
24448	_            struct{}                  `type:"structure"`
24449	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24450
24451	Message_ *string `locationName:"message" type:"string"`
24452}
24453
24454// String returns the string representation
24455func (s MaximumConflictResolutionEntriesExceededException) String() string {
24456	return awsutil.Prettify(s)
24457}
24458
24459// GoString returns the string representation
24460func (s MaximumConflictResolutionEntriesExceededException) GoString() string {
24461	return s.String()
24462}
24463
24464func newErrorMaximumConflictResolutionEntriesExceededException(v protocol.ResponseMetadata) error {
24465	return &MaximumConflictResolutionEntriesExceededException{
24466		RespMetadata: v,
24467	}
24468}
24469
24470// Code returns the exception type name.
24471func (s *MaximumConflictResolutionEntriesExceededException) Code() string {
24472	return "MaximumConflictResolutionEntriesExceededException"
24473}
24474
24475// Message returns the exception's message.
24476func (s *MaximumConflictResolutionEntriesExceededException) Message() string {
24477	if s.Message_ != nil {
24478		return *s.Message_
24479	}
24480	return ""
24481}
24482
24483// OrigErr always returns nil, satisfies awserr.Error interface.
24484func (s *MaximumConflictResolutionEntriesExceededException) OrigErr() error {
24485	return nil
24486}
24487
24488func (s *MaximumConflictResolutionEntriesExceededException) Error() string {
24489	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24490}
24491
24492// Status code returns the HTTP status code for the request's response error.
24493func (s *MaximumConflictResolutionEntriesExceededException) StatusCode() int {
24494	return s.RespMetadata.StatusCode
24495}
24496
24497// RequestID returns the service's response RequestID for request.
24498func (s *MaximumConflictResolutionEntriesExceededException) RequestID() string {
24499	return s.RespMetadata.RequestID
24500}
24501
24502// The number of files to load exceeds the allowed limit.
24503type MaximumFileContentToLoadExceededException struct {
24504	_            struct{}                  `type:"structure"`
24505	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24506
24507	Message_ *string `locationName:"message" type:"string"`
24508}
24509
24510// String returns the string representation
24511func (s MaximumFileContentToLoadExceededException) String() string {
24512	return awsutil.Prettify(s)
24513}
24514
24515// GoString returns the string representation
24516func (s MaximumFileContentToLoadExceededException) GoString() string {
24517	return s.String()
24518}
24519
24520func newErrorMaximumFileContentToLoadExceededException(v protocol.ResponseMetadata) error {
24521	return &MaximumFileContentToLoadExceededException{
24522		RespMetadata: v,
24523	}
24524}
24525
24526// Code returns the exception type name.
24527func (s *MaximumFileContentToLoadExceededException) Code() string {
24528	return "MaximumFileContentToLoadExceededException"
24529}
24530
24531// Message returns the exception's message.
24532func (s *MaximumFileContentToLoadExceededException) Message() string {
24533	if s.Message_ != nil {
24534		return *s.Message_
24535	}
24536	return ""
24537}
24538
24539// OrigErr always returns nil, satisfies awserr.Error interface.
24540func (s *MaximumFileContentToLoadExceededException) OrigErr() error {
24541	return nil
24542}
24543
24544func (s *MaximumFileContentToLoadExceededException) Error() string {
24545	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24546}
24547
24548// Status code returns the HTTP status code for the request's response error.
24549func (s *MaximumFileContentToLoadExceededException) StatusCode() int {
24550	return s.RespMetadata.StatusCode
24551}
24552
24553// RequestID returns the service's response RequestID for request.
24554func (s *MaximumFileContentToLoadExceededException) RequestID() string {
24555	return s.RespMetadata.RequestID
24556}
24557
24558// The number of specified files to change as part of this commit exceeds the
24559// maximum number of files that can be changed in a single commit. Consider
24560// using a Git client for these changes.
24561type MaximumFileEntriesExceededException struct {
24562	_            struct{}                  `type:"structure"`
24563	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24564
24565	Message_ *string `locationName:"message" type:"string"`
24566}
24567
24568// String returns the string representation
24569func (s MaximumFileEntriesExceededException) String() string {
24570	return awsutil.Prettify(s)
24571}
24572
24573// GoString returns the string representation
24574func (s MaximumFileEntriesExceededException) GoString() string {
24575	return s.String()
24576}
24577
24578func newErrorMaximumFileEntriesExceededException(v protocol.ResponseMetadata) error {
24579	return &MaximumFileEntriesExceededException{
24580		RespMetadata: v,
24581	}
24582}
24583
24584// Code returns the exception type name.
24585func (s *MaximumFileEntriesExceededException) Code() string {
24586	return "MaximumFileEntriesExceededException"
24587}
24588
24589// Message returns the exception's message.
24590func (s *MaximumFileEntriesExceededException) Message() string {
24591	if s.Message_ != nil {
24592		return *s.Message_
24593	}
24594	return ""
24595}
24596
24597// OrigErr always returns nil, satisfies awserr.Error interface.
24598func (s *MaximumFileEntriesExceededException) OrigErr() error {
24599	return nil
24600}
24601
24602func (s *MaximumFileEntriesExceededException) Error() string {
24603	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24604}
24605
24606// Status code returns the HTTP status code for the request's response error.
24607func (s *MaximumFileEntriesExceededException) StatusCode() int {
24608	return s.RespMetadata.StatusCode
24609}
24610
24611// RequestID returns the service's response RequestID for request.
24612func (s *MaximumFileEntriesExceededException) RequestID() string {
24613	return s.RespMetadata.RequestID
24614}
24615
24616// The number of items to compare between the source or destination branches
24617// and the merge base has exceeded the maximum allowed.
24618type MaximumItemsToCompareExceededException struct {
24619	_            struct{}                  `type:"structure"`
24620	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24621
24622	Message_ *string `locationName:"message" type:"string"`
24623}
24624
24625// String returns the string representation
24626func (s MaximumItemsToCompareExceededException) String() string {
24627	return awsutil.Prettify(s)
24628}
24629
24630// GoString returns the string representation
24631func (s MaximumItemsToCompareExceededException) GoString() string {
24632	return s.String()
24633}
24634
24635func newErrorMaximumItemsToCompareExceededException(v protocol.ResponseMetadata) error {
24636	return &MaximumItemsToCompareExceededException{
24637		RespMetadata: v,
24638	}
24639}
24640
24641// Code returns the exception type name.
24642func (s *MaximumItemsToCompareExceededException) Code() string {
24643	return "MaximumItemsToCompareExceededException"
24644}
24645
24646// Message returns the exception's message.
24647func (s *MaximumItemsToCompareExceededException) Message() string {
24648	if s.Message_ != nil {
24649		return *s.Message_
24650	}
24651	return ""
24652}
24653
24654// OrigErr always returns nil, satisfies awserr.Error interface.
24655func (s *MaximumItemsToCompareExceededException) OrigErr() error {
24656	return nil
24657}
24658
24659func (s *MaximumItemsToCompareExceededException) Error() string {
24660	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24661}
24662
24663// Status code returns the HTTP status code for the request's response error.
24664func (s *MaximumItemsToCompareExceededException) StatusCode() int {
24665	return s.RespMetadata.StatusCode
24666}
24667
24668// RequestID returns the service's response RequestID for request.
24669func (s *MaximumItemsToCompareExceededException) RequestID() string {
24670	return s.RespMetadata.RequestID
24671}
24672
24673// The number of approvals required for the approval rule exceeds the maximum
24674// number allowed.
24675type MaximumNumberOfApprovalsExceededException struct {
24676	_            struct{}                  `type:"structure"`
24677	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24678
24679	Message_ *string `locationName:"message" type:"string"`
24680}
24681
24682// String returns the string representation
24683func (s MaximumNumberOfApprovalsExceededException) String() string {
24684	return awsutil.Prettify(s)
24685}
24686
24687// GoString returns the string representation
24688func (s MaximumNumberOfApprovalsExceededException) GoString() string {
24689	return s.String()
24690}
24691
24692func newErrorMaximumNumberOfApprovalsExceededException(v protocol.ResponseMetadata) error {
24693	return &MaximumNumberOfApprovalsExceededException{
24694		RespMetadata: v,
24695	}
24696}
24697
24698// Code returns the exception type name.
24699func (s *MaximumNumberOfApprovalsExceededException) Code() string {
24700	return "MaximumNumberOfApprovalsExceededException"
24701}
24702
24703// Message returns the exception's message.
24704func (s *MaximumNumberOfApprovalsExceededException) Message() string {
24705	if s.Message_ != nil {
24706		return *s.Message_
24707	}
24708	return ""
24709}
24710
24711// OrigErr always returns nil, satisfies awserr.Error interface.
24712func (s *MaximumNumberOfApprovalsExceededException) OrigErr() error {
24713	return nil
24714}
24715
24716func (s *MaximumNumberOfApprovalsExceededException) Error() string {
24717	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24718}
24719
24720// Status code returns the HTTP status code for the request's response error.
24721func (s *MaximumNumberOfApprovalsExceededException) StatusCode() int {
24722	return s.RespMetadata.StatusCode
24723}
24724
24725// RequestID returns the service's response RequestID for request.
24726func (s *MaximumNumberOfApprovalsExceededException) RequestID() string {
24727	return s.RespMetadata.RequestID
24728}
24729
24730// You cannot create the pull request because the repository has too many open
24731// pull requests. The maximum number of open pull requests for a repository
24732// is 1,000. Close one or more open pull requests, and then try again.
24733type MaximumOpenPullRequestsExceededException struct {
24734	_            struct{}                  `type:"structure"`
24735	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24736
24737	Message_ *string `locationName:"message" type:"string"`
24738}
24739
24740// String returns the string representation
24741func (s MaximumOpenPullRequestsExceededException) String() string {
24742	return awsutil.Prettify(s)
24743}
24744
24745// GoString returns the string representation
24746func (s MaximumOpenPullRequestsExceededException) GoString() string {
24747	return s.String()
24748}
24749
24750func newErrorMaximumOpenPullRequestsExceededException(v protocol.ResponseMetadata) error {
24751	return &MaximumOpenPullRequestsExceededException{
24752		RespMetadata: v,
24753	}
24754}
24755
24756// Code returns the exception type name.
24757func (s *MaximumOpenPullRequestsExceededException) Code() string {
24758	return "MaximumOpenPullRequestsExceededException"
24759}
24760
24761// Message returns the exception's message.
24762func (s *MaximumOpenPullRequestsExceededException) Message() string {
24763	if s.Message_ != nil {
24764		return *s.Message_
24765	}
24766	return ""
24767}
24768
24769// OrigErr always returns nil, satisfies awserr.Error interface.
24770func (s *MaximumOpenPullRequestsExceededException) OrigErr() error {
24771	return nil
24772}
24773
24774func (s *MaximumOpenPullRequestsExceededException) Error() string {
24775	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24776}
24777
24778// Status code returns the HTTP status code for the request's response error.
24779func (s *MaximumOpenPullRequestsExceededException) StatusCode() int {
24780	return s.RespMetadata.StatusCode
24781}
24782
24783// RequestID returns the service's response RequestID for request.
24784func (s *MaximumOpenPullRequestsExceededException) RequestID() string {
24785	return s.RespMetadata.RequestID
24786}
24787
24788// The maximum number of allowed repository names was exceeded. Currently, this
24789// number is 100.
24790type MaximumRepositoryNamesExceededException struct {
24791	_            struct{}                  `type:"structure"`
24792	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24793
24794	Message_ *string `locationName:"message" type:"string"`
24795}
24796
24797// String returns the string representation
24798func (s MaximumRepositoryNamesExceededException) String() string {
24799	return awsutil.Prettify(s)
24800}
24801
24802// GoString returns the string representation
24803func (s MaximumRepositoryNamesExceededException) GoString() string {
24804	return s.String()
24805}
24806
24807func newErrorMaximumRepositoryNamesExceededException(v protocol.ResponseMetadata) error {
24808	return &MaximumRepositoryNamesExceededException{
24809		RespMetadata: v,
24810	}
24811}
24812
24813// Code returns the exception type name.
24814func (s *MaximumRepositoryNamesExceededException) Code() string {
24815	return "MaximumRepositoryNamesExceededException"
24816}
24817
24818// Message returns the exception's message.
24819func (s *MaximumRepositoryNamesExceededException) Message() string {
24820	if s.Message_ != nil {
24821		return *s.Message_
24822	}
24823	return ""
24824}
24825
24826// OrigErr always returns nil, satisfies awserr.Error interface.
24827func (s *MaximumRepositoryNamesExceededException) OrigErr() error {
24828	return nil
24829}
24830
24831func (s *MaximumRepositoryNamesExceededException) Error() string {
24832	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24833}
24834
24835// Status code returns the HTTP status code for the request's response error.
24836func (s *MaximumRepositoryNamesExceededException) StatusCode() int {
24837	return s.RespMetadata.StatusCode
24838}
24839
24840// RequestID returns the service's response RequestID for request.
24841func (s *MaximumRepositoryNamesExceededException) RequestID() string {
24842	return s.RespMetadata.RequestID
24843}
24844
24845// The number of triggers allowed for the repository was exceeded.
24846type MaximumRepositoryTriggersExceededException struct {
24847	_            struct{}                  `type:"structure"`
24848	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24849
24850	Message_ *string `locationName:"message" type:"string"`
24851}
24852
24853// String returns the string representation
24854func (s MaximumRepositoryTriggersExceededException) String() string {
24855	return awsutil.Prettify(s)
24856}
24857
24858// GoString returns the string representation
24859func (s MaximumRepositoryTriggersExceededException) GoString() string {
24860	return s.String()
24861}
24862
24863func newErrorMaximumRepositoryTriggersExceededException(v protocol.ResponseMetadata) error {
24864	return &MaximumRepositoryTriggersExceededException{
24865		RespMetadata: v,
24866	}
24867}
24868
24869// Code returns the exception type name.
24870func (s *MaximumRepositoryTriggersExceededException) Code() string {
24871	return "MaximumRepositoryTriggersExceededException"
24872}
24873
24874// Message returns the exception's message.
24875func (s *MaximumRepositoryTriggersExceededException) Message() string {
24876	if s.Message_ != nil {
24877		return *s.Message_
24878	}
24879	return ""
24880}
24881
24882// OrigErr always returns nil, satisfies awserr.Error interface.
24883func (s *MaximumRepositoryTriggersExceededException) OrigErr() error {
24884	return nil
24885}
24886
24887func (s *MaximumRepositoryTriggersExceededException) Error() string {
24888	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24889}
24890
24891// Status code returns the HTTP status code for the request's response error.
24892func (s *MaximumRepositoryTriggersExceededException) StatusCode() int {
24893	return s.RespMetadata.StatusCode
24894}
24895
24896// RequestID returns the service's response RequestID for request.
24897func (s *MaximumRepositoryTriggersExceededException) RequestID() string {
24898	return s.RespMetadata.RequestID
24899}
24900
24901// The maximum number of approval rule templates for a repository has been exceeded.
24902// You cannot associate more than 25 approval rule templates with a repository.
24903type MaximumRuleTemplatesAssociatedWithRepositoryException struct {
24904	_            struct{}                  `type:"structure"`
24905	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
24906
24907	Message_ *string `locationName:"message" type:"string"`
24908}
24909
24910// String returns the string representation
24911func (s MaximumRuleTemplatesAssociatedWithRepositoryException) String() string {
24912	return awsutil.Prettify(s)
24913}
24914
24915// GoString returns the string representation
24916func (s MaximumRuleTemplatesAssociatedWithRepositoryException) GoString() string {
24917	return s.String()
24918}
24919
24920func newErrorMaximumRuleTemplatesAssociatedWithRepositoryException(v protocol.ResponseMetadata) error {
24921	return &MaximumRuleTemplatesAssociatedWithRepositoryException{
24922		RespMetadata: v,
24923	}
24924}
24925
24926// Code returns the exception type name.
24927func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Code() string {
24928	return "MaximumRuleTemplatesAssociatedWithRepositoryException"
24929}
24930
24931// Message returns the exception's message.
24932func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Message() string {
24933	if s.Message_ != nil {
24934		return *s.Message_
24935	}
24936	return ""
24937}
24938
24939// OrigErr always returns nil, satisfies awserr.Error interface.
24940func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) OrigErr() error {
24941	return nil
24942}
24943
24944func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Error() string {
24945	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
24946}
24947
24948// Status code returns the HTTP status code for the request's response error.
24949func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) StatusCode() int {
24950	return s.RespMetadata.StatusCode
24951}
24952
24953// RequestID returns the service's response RequestID for request.
24954func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) RequestID() string {
24955	return s.RespMetadata.RequestID
24956}
24957
24958type MergeBranchesByFastForwardInput struct {
24959	_ struct{} `type:"structure"`
24960
24961	// The branch, tag, HEAD, or other fully qualified reference used to identify
24962	// a commit (for example, a branch name or a full commit ID).
24963	//
24964	// DestinationCommitSpecifier is a required field
24965	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
24966
24967	// The name of the repository where you want to merge two branches.
24968	//
24969	// RepositoryName is a required field
24970	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
24971
24972	// The branch, tag, HEAD, or other fully qualified reference used to identify
24973	// a commit (for example, a branch name or a full commit ID).
24974	//
24975	// SourceCommitSpecifier is a required field
24976	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
24977
24978	// The branch where the merge is applied.
24979	TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"`
24980}
24981
24982// String returns the string representation
24983func (s MergeBranchesByFastForwardInput) String() string {
24984	return awsutil.Prettify(s)
24985}
24986
24987// GoString returns the string representation
24988func (s MergeBranchesByFastForwardInput) GoString() string {
24989	return s.String()
24990}
24991
24992// Validate inspects the fields of the type to determine if they are valid.
24993func (s *MergeBranchesByFastForwardInput) Validate() error {
24994	invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByFastForwardInput"}
24995	if s.DestinationCommitSpecifier == nil {
24996		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
24997	}
24998	if s.RepositoryName == nil {
24999		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
25000	}
25001	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
25002		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
25003	}
25004	if s.SourceCommitSpecifier == nil {
25005		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
25006	}
25007	if s.TargetBranch != nil && len(*s.TargetBranch) < 1 {
25008		invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1))
25009	}
25010
25011	if invalidParams.Len() > 0 {
25012		return invalidParams
25013	}
25014	return nil
25015}
25016
25017// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
25018func (s *MergeBranchesByFastForwardInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByFastForwardInput {
25019	s.DestinationCommitSpecifier = &v
25020	return s
25021}
25022
25023// SetRepositoryName sets the RepositoryName field's value.
25024func (s *MergeBranchesByFastForwardInput) SetRepositoryName(v string) *MergeBranchesByFastForwardInput {
25025	s.RepositoryName = &v
25026	return s
25027}
25028
25029// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
25030func (s *MergeBranchesByFastForwardInput) SetSourceCommitSpecifier(v string) *MergeBranchesByFastForwardInput {
25031	s.SourceCommitSpecifier = &v
25032	return s
25033}
25034
25035// SetTargetBranch sets the TargetBranch field's value.
25036func (s *MergeBranchesByFastForwardInput) SetTargetBranch(v string) *MergeBranchesByFastForwardInput {
25037	s.TargetBranch = &v
25038	return s
25039}
25040
25041type MergeBranchesByFastForwardOutput struct {
25042	_ struct{} `type:"structure"`
25043
25044	// The commit ID of the merge in the destination or target branch.
25045	CommitId *string `locationName:"commitId" type:"string"`
25046
25047	// The tree ID of the merge in the destination or target branch.
25048	TreeId *string `locationName:"treeId" type:"string"`
25049}
25050
25051// String returns the string representation
25052func (s MergeBranchesByFastForwardOutput) String() string {
25053	return awsutil.Prettify(s)
25054}
25055
25056// GoString returns the string representation
25057func (s MergeBranchesByFastForwardOutput) GoString() string {
25058	return s.String()
25059}
25060
25061// SetCommitId sets the CommitId field's value.
25062func (s *MergeBranchesByFastForwardOutput) SetCommitId(v string) *MergeBranchesByFastForwardOutput {
25063	s.CommitId = &v
25064	return s
25065}
25066
25067// SetTreeId sets the TreeId field's value.
25068func (s *MergeBranchesByFastForwardOutput) SetTreeId(v string) *MergeBranchesByFastForwardOutput {
25069	s.TreeId = &v
25070	return s
25071}
25072
25073type MergeBranchesBySquashInput struct {
25074	_ struct{} `type:"structure"`
25075
25076	// The name of the author who created the commit. This information is used as
25077	// both the author and committer for the commit.
25078	AuthorName *string `locationName:"authorName" type:"string"`
25079
25080	// The commit message for the merge.
25081	CommitMessage *string `locationName:"commitMessage" type:"string"`
25082
25083	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
25084	// is used, which returns a not-mergeable result if the same file has differences
25085	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
25086	// mergeable if the same file in both branches has differences on the same line.
25087	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
25088
25089	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
25090	// when resolving conflicts during a merge.
25091	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
25092
25093	// Specifies which branch to use when resolving conflicts, or whether to attempt
25094	// automatically merging two versions of a file. The default is NONE, which
25095	// requires any conflicts to be resolved manually before the merge operation
25096	// is successful.
25097	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
25098
25099	// The branch, tag, HEAD, or other fully qualified reference used to identify
25100	// a commit (for example, a branch name or a full commit ID).
25101	//
25102	// DestinationCommitSpecifier is a required field
25103	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
25104
25105	// The email address of the person merging the branches. This information is
25106	// used in the commit information for the merge.
25107	Email *string `locationName:"email" type:"string"`
25108
25109	// If the commit contains deletions, whether to keep a folder or folder structure
25110	// if the changes leave the folders empty. If this is specified as true, a .gitkeep
25111	// file is created for empty folders. The default is false.
25112	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
25113
25114	// The name of the repository where you want to merge two branches.
25115	//
25116	// RepositoryName is a required field
25117	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
25118
25119	// The branch, tag, HEAD, or other fully qualified reference used to identify
25120	// a commit (for example, a branch name or a full commit ID).
25121	//
25122	// SourceCommitSpecifier is a required field
25123	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
25124
25125	// The branch where the merge is applied.
25126	TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"`
25127}
25128
25129// String returns the string representation
25130func (s MergeBranchesBySquashInput) String() string {
25131	return awsutil.Prettify(s)
25132}
25133
25134// GoString returns the string representation
25135func (s MergeBranchesBySquashInput) GoString() string {
25136	return s.String()
25137}
25138
25139// Validate inspects the fields of the type to determine if they are valid.
25140func (s *MergeBranchesBySquashInput) Validate() error {
25141	invalidParams := request.ErrInvalidParams{Context: "MergeBranchesBySquashInput"}
25142	if s.DestinationCommitSpecifier == nil {
25143		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
25144	}
25145	if s.RepositoryName == nil {
25146		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
25147	}
25148	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
25149		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
25150	}
25151	if s.SourceCommitSpecifier == nil {
25152		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
25153	}
25154	if s.TargetBranch != nil && len(*s.TargetBranch) < 1 {
25155		invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1))
25156	}
25157	if s.ConflictResolution != nil {
25158		if err := s.ConflictResolution.Validate(); err != nil {
25159			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
25160		}
25161	}
25162
25163	if invalidParams.Len() > 0 {
25164		return invalidParams
25165	}
25166	return nil
25167}
25168
25169// SetAuthorName sets the AuthorName field's value.
25170func (s *MergeBranchesBySquashInput) SetAuthorName(v string) *MergeBranchesBySquashInput {
25171	s.AuthorName = &v
25172	return s
25173}
25174
25175// SetCommitMessage sets the CommitMessage field's value.
25176func (s *MergeBranchesBySquashInput) SetCommitMessage(v string) *MergeBranchesBySquashInput {
25177	s.CommitMessage = &v
25178	return s
25179}
25180
25181// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
25182func (s *MergeBranchesBySquashInput) SetConflictDetailLevel(v string) *MergeBranchesBySquashInput {
25183	s.ConflictDetailLevel = &v
25184	return s
25185}
25186
25187// SetConflictResolution sets the ConflictResolution field's value.
25188func (s *MergeBranchesBySquashInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesBySquashInput {
25189	s.ConflictResolution = v
25190	return s
25191}
25192
25193// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
25194func (s *MergeBranchesBySquashInput) SetConflictResolutionStrategy(v string) *MergeBranchesBySquashInput {
25195	s.ConflictResolutionStrategy = &v
25196	return s
25197}
25198
25199// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
25200func (s *MergeBranchesBySquashInput) SetDestinationCommitSpecifier(v string) *MergeBranchesBySquashInput {
25201	s.DestinationCommitSpecifier = &v
25202	return s
25203}
25204
25205// SetEmail sets the Email field's value.
25206func (s *MergeBranchesBySquashInput) SetEmail(v string) *MergeBranchesBySquashInput {
25207	s.Email = &v
25208	return s
25209}
25210
25211// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
25212func (s *MergeBranchesBySquashInput) SetKeepEmptyFolders(v bool) *MergeBranchesBySquashInput {
25213	s.KeepEmptyFolders = &v
25214	return s
25215}
25216
25217// SetRepositoryName sets the RepositoryName field's value.
25218func (s *MergeBranchesBySquashInput) SetRepositoryName(v string) *MergeBranchesBySquashInput {
25219	s.RepositoryName = &v
25220	return s
25221}
25222
25223// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
25224func (s *MergeBranchesBySquashInput) SetSourceCommitSpecifier(v string) *MergeBranchesBySquashInput {
25225	s.SourceCommitSpecifier = &v
25226	return s
25227}
25228
25229// SetTargetBranch sets the TargetBranch field's value.
25230func (s *MergeBranchesBySquashInput) SetTargetBranch(v string) *MergeBranchesBySquashInput {
25231	s.TargetBranch = &v
25232	return s
25233}
25234
25235type MergeBranchesBySquashOutput struct {
25236	_ struct{} `type:"structure"`
25237
25238	// The commit ID of the merge in the destination or target branch.
25239	CommitId *string `locationName:"commitId" type:"string"`
25240
25241	// The tree ID of the merge in the destination or target branch.
25242	TreeId *string `locationName:"treeId" type:"string"`
25243}
25244
25245// String returns the string representation
25246func (s MergeBranchesBySquashOutput) String() string {
25247	return awsutil.Prettify(s)
25248}
25249
25250// GoString returns the string representation
25251func (s MergeBranchesBySquashOutput) GoString() string {
25252	return s.String()
25253}
25254
25255// SetCommitId sets the CommitId field's value.
25256func (s *MergeBranchesBySquashOutput) SetCommitId(v string) *MergeBranchesBySquashOutput {
25257	s.CommitId = &v
25258	return s
25259}
25260
25261// SetTreeId sets the TreeId field's value.
25262func (s *MergeBranchesBySquashOutput) SetTreeId(v string) *MergeBranchesBySquashOutput {
25263	s.TreeId = &v
25264	return s
25265}
25266
25267type MergeBranchesByThreeWayInput struct {
25268	_ struct{} `type:"structure"`
25269
25270	// The name of the author who created the commit. This information is used as
25271	// both the author and committer for the commit.
25272	AuthorName *string `locationName:"authorName" type:"string"`
25273
25274	// The commit message to include in the commit information for the merge.
25275	CommitMessage *string `locationName:"commitMessage" type:"string"`
25276
25277	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
25278	// is used, which returns a not-mergeable result if the same file has differences
25279	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
25280	// mergeable if the same file in both branches has differences on the same line.
25281	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
25282
25283	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
25284	// when resolving conflicts during a merge.
25285	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
25286
25287	// Specifies which branch to use when resolving conflicts, or whether to attempt
25288	// automatically merging two versions of a file. The default is NONE, which
25289	// requires any conflicts to be resolved manually before the merge operation
25290	// is successful.
25291	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
25292
25293	// The branch, tag, HEAD, or other fully qualified reference used to identify
25294	// a commit (for example, a branch name or a full commit ID).
25295	//
25296	// DestinationCommitSpecifier is a required field
25297	DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
25298
25299	// The email address of the person merging the branches. This information is
25300	// used in the commit information for the merge.
25301	Email *string `locationName:"email" type:"string"`
25302
25303	// If the commit contains deletions, whether to keep a folder or folder structure
25304	// if the changes leave the folders empty. If true, a .gitkeep file is created
25305	// for empty folders. The default is false.
25306	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
25307
25308	// The name of the repository where you want to merge two branches.
25309	//
25310	// RepositoryName is a required field
25311	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
25312
25313	// The branch, tag, HEAD, or other fully qualified reference used to identify
25314	// a commit (for example, a branch name or a full commit ID).
25315	//
25316	// SourceCommitSpecifier is a required field
25317	SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
25318
25319	// The branch where the merge is applied.
25320	TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"`
25321}
25322
25323// String returns the string representation
25324func (s MergeBranchesByThreeWayInput) String() string {
25325	return awsutil.Prettify(s)
25326}
25327
25328// GoString returns the string representation
25329func (s MergeBranchesByThreeWayInput) GoString() string {
25330	return s.String()
25331}
25332
25333// Validate inspects the fields of the type to determine if they are valid.
25334func (s *MergeBranchesByThreeWayInput) Validate() error {
25335	invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByThreeWayInput"}
25336	if s.DestinationCommitSpecifier == nil {
25337		invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
25338	}
25339	if s.RepositoryName == nil {
25340		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
25341	}
25342	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
25343		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
25344	}
25345	if s.SourceCommitSpecifier == nil {
25346		invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
25347	}
25348	if s.TargetBranch != nil && len(*s.TargetBranch) < 1 {
25349		invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1))
25350	}
25351	if s.ConflictResolution != nil {
25352		if err := s.ConflictResolution.Validate(); err != nil {
25353			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
25354		}
25355	}
25356
25357	if invalidParams.Len() > 0 {
25358		return invalidParams
25359	}
25360	return nil
25361}
25362
25363// SetAuthorName sets the AuthorName field's value.
25364func (s *MergeBranchesByThreeWayInput) SetAuthorName(v string) *MergeBranchesByThreeWayInput {
25365	s.AuthorName = &v
25366	return s
25367}
25368
25369// SetCommitMessage sets the CommitMessage field's value.
25370func (s *MergeBranchesByThreeWayInput) SetCommitMessage(v string) *MergeBranchesByThreeWayInput {
25371	s.CommitMessage = &v
25372	return s
25373}
25374
25375// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
25376func (s *MergeBranchesByThreeWayInput) SetConflictDetailLevel(v string) *MergeBranchesByThreeWayInput {
25377	s.ConflictDetailLevel = &v
25378	return s
25379}
25380
25381// SetConflictResolution sets the ConflictResolution field's value.
25382func (s *MergeBranchesByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesByThreeWayInput {
25383	s.ConflictResolution = v
25384	return s
25385}
25386
25387// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
25388func (s *MergeBranchesByThreeWayInput) SetConflictResolutionStrategy(v string) *MergeBranchesByThreeWayInput {
25389	s.ConflictResolutionStrategy = &v
25390	return s
25391}
25392
25393// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
25394func (s *MergeBranchesByThreeWayInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByThreeWayInput {
25395	s.DestinationCommitSpecifier = &v
25396	return s
25397}
25398
25399// SetEmail sets the Email field's value.
25400func (s *MergeBranchesByThreeWayInput) SetEmail(v string) *MergeBranchesByThreeWayInput {
25401	s.Email = &v
25402	return s
25403}
25404
25405// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
25406func (s *MergeBranchesByThreeWayInput) SetKeepEmptyFolders(v bool) *MergeBranchesByThreeWayInput {
25407	s.KeepEmptyFolders = &v
25408	return s
25409}
25410
25411// SetRepositoryName sets the RepositoryName field's value.
25412func (s *MergeBranchesByThreeWayInput) SetRepositoryName(v string) *MergeBranchesByThreeWayInput {
25413	s.RepositoryName = &v
25414	return s
25415}
25416
25417// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
25418func (s *MergeBranchesByThreeWayInput) SetSourceCommitSpecifier(v string) *MergeBranchesByThreeWayInput {
25419	s.SourceCommitSpecifier = &v
25420	return s
25421}
25422
25423// SetTargetBranch sets the TargetBranch field's value.
25424func (s *MergeBranchesByThreeWayInput) SetTargetBranch(v string) *MergeBranchesByThreeWayInput {
25425	s.TargetBranch = &v
25426	return s
25427}
25428
25429type MergeBranchesByThreeWayOutput struct {
25430	_ struct{} `type:"structure"`
25431
25432	// The commit ID of the merge in the destination or target branch.
25433	CommitId *string `locationName:"commitId" type:"string"`
25434
25435	// The tree ID of the merge in the destination or target branch.
25436	TreeId *string `locationName:"treeId" type:"string"`
25437}
25438
25439// String returns the string representation
25440func (s MergeBranchesByThreeWayOutput) String() string {
25441	return awsutil.Prettify(s)
25442}
25443
25444// GoString returns the string representation
25445func (s MergeBranchesByThreeWayOutput) GoString() string {
25446	return s.String()
25447}
25448
25449// SetCommitId sets the CommitId field's value.
25450func (s *MergeBranchesByThreeWayOutput) SetCommitId(v string) *MergeBranchesByThreeWayOutput {
25451	s.CommitId = &v
25452	return s
25453}
25454
25455// SetTreeId sets the TreeId field's value.
25456func (s *MergeBranchesByThreeWayOutput) SetTreeId(v string) *MergeBranchesByThreeWayOutput {
25457	s.TreeId = &v
25458	return s
25459}
25460
25461// Information about merge hunks in a merge or pull request operation.
25462type MergeHunk struct {
25463	_ struct{} `type:"structure"`
25464
25465	// Information about the merge hunk in the base of a merge or pull request.
25466	Base *MergeHunkDetail `locationName:"base" type:"structure"`
25467
25468	// Information about the merge hunk in the destination of a merge or pull request.
25469	Destination *MergeHunkDetail `locationName:"destination" type:"structure"`
25470
25471	// A Boolean value indicating whether a combination of hunks contains a conflict.
25472	// Conflicts occur when the same file or the same lines in a file were modified
25473	// in both the source and destination of a merge or pull request. Valid values
25474	// include true, false, and null. True when the hunk represents a conflict and
25475	// one or more files contains a line conflict. File mode conflicts in a merge
25476	// do not set this to true.
25477	IsConflict *bool `locationName:"isConflict" type:"boolean"`
25478
25479	// Information about the merge hunk in the source of a merge or pull request.
25480	Source *MergeHunkDetail `locationName:"source" type:"structure"`
25481}
25482
25483// String returns the string representation
25484func (s MergeHunk) String() string {
25485	return awsutil.Prettify(s)
25486}
25487
25488// GoString returns the string representation
25489func (s MergeHunk) GoString() string {
25490	return s.String()
25491}
25492
25493// SetBase sets the Base field's value.
25494func (s *MergeHunk) SetBase(v *MergeHunkDetail) *MergeHunk {
25495	s.Base = v
25496	return s
25497}
25498
25499// SetDestination sets the Destination field's value.
25500func (s *MergeHunk) SetDestination(v *MergeHunkDetail) *MergeHunk {
25501	s.Destination = v
25502	return s
25503}
25504
25505// SetIsConflict sets the IsConflict field's value.
25506func (s *MergeHunk) SetIsConflict(v bool) *MergeHunk {
25507	s.IsConflict = &v
25508	return s
25509}
25510
25511// SetSource sets the Source field's value.
25512func (s *MergeHunk) SetSource(v *MergeHunkDetail) *MergeHunk {
25513	s.Source = v
25514	return s
25515}
25516
25517// Information about the details of a merge hunk that contains a conflict in
25518// a merge or pull request operation.
25519type MergeHunkDetail struct {
25520	_ struct{} `type:"structure"`
25521
25522	// The end position of the hunk in the merge result.
25523	EndLine *int64 `locationName:"endLine" type:"integer"`
25524
25525	// The base-64 encoded content of the hunk merged region that might contain
25526	// a conflict.
25527	HunkContent *string `locationName:"hunkContent" type:"string"`
25528
25529	// The start position of the hunk in the merge result.
25530	StartLine *int64 `locationName:"startLine" type:"integer"`
25531}
25532
25533// String returns the string representation
25534func (s MergeHunkDetail) String() string {
25535	return awsutil.Prettify(s)
25536}
25537
25538// GoString returns the string representation
25539func (s MergeHunkDetail) GoString() string {
25540	return s.String()
25541}
25542
25543// SetEndLine sets the EndLine field's value.
25544func (s *MergeHunkDetail) SetEndLine(v int64) *MergeHunkDetail {
25545	s.EndLine = &v
25546	return s
25547}
25548
25549// SetHunkContent sets the HunkContent field's value.
25550func (s *MergeHunkDetail) SetHunkContent(v string) *MergeHunkDetail {
25551	s.HunkContent = &v
25552	return s
25553}
25554
25555// SetStartLine sets the StartLine field's value.
25556func (s *MergeHunkDetail) SetStartLine(v int64) *MergeHunkDetail {
25557	s.StartLine = &v
25558	return s
25559}
25560
25561// Returns information about a merge or potential merge between a source reference
25562// and a destination reference in a pull request.
25563type MergeMetadata struct {
25564	_ struct{} `type:"structure"`
25565
25566	// A Boolean value indicating whether the merge has been made.
25567	IsMerged *bool `locationName:"isMerged" type:"boolean"`
25568
25569	// The commit ID for the merge commit, if any.
25570	MergeCommitId *string `locationName:"mergeCommitId" type:"string"`
25571
25572	// The merge strategy used in the merge.
25573	MergeOption *string `locationName:"mergeOption" type:"string" enum:"MergeOptionTypeEnum"`
25574
25575	// The Amazon Resource Name (ARN) of the user who merged the branches.
25576	MergedBy *string `locationName:"mergedBy" type:"string"`
25577}
25578
25579// String returns the string representation
25580func (s MergeMetadata) String() string {
25581	return awsutil.Prettify(s)
25582}
25583
25584// GoString returns the string representation
25585func (s MergeMetadata) GoString() string {
25586	return s.String()
25587}
25588
25589// SetIsMerged sets the IsMerged field's value.
25590func (s *MergeMetadata) SetIsMerged(v bool) *MergeMetadata {
25591	s.IsMerged = &v
25592	return s
25593}
25594
25595// SetMergeCommitId sets the MergeCommitId field's value.
25596func (s *MergeMetadata) SetMergeCommitId(v string) *MergeMetadata {
25597	s.MergeCommitId = &v
25598	return s
25599}
25600
25601// SetMergeOption sets the MergeOption field's value.
25602func (s *MergeMetadata) SetMergeOption(v string) *MergeMetadata {
25603	s.MergeOption = &v
25604	return s
25605}
25606
25607// SetMergedBy sets the MergedBy field's value.
25608func (s *MergeMetadata) SetMergedBy(v string) *MergeMetadata {
25609	s.MergedBy = &v
25610	return s
25611}
25612
25613// Information about the file operation conflicts in a merge operation.
25614type MergeOperations struct {
25615	_ struct{} `type:"structure"`
25616
25617	// The operation on a file in the destination of a merge or pull request.
25618	Destination *string `locationName:"destination" type:"string" enum:"ChangeTypeEnum"`
25619
25620	// The operation (add, modify, or delete) on a file in the source of a merge
25621	// or pull request.
25622	Source *string `locationName:"source" type:"string" enum:"ChangeTypeEnum"`
25623}
25624
25625// String returns the string representation
25626func (s MergeOperations) String() string {
25627	return awsutil.Prettify(s)
25628}
25629
25630// GoString returns the string representation
25631func (s MergeOperations) GoString() string {
25632	return s.String()
25633}
25634
25635// SetDestination sets the Destination field's value.
25636func (s *MergeOperations) SetDestination(v string) *MergeOperations {
25637	s.Destination = &v
25638	return s
25639}
25640
25641// SetSource sets the Source field's value.
25642func (s *MergeOperations) SetSource(v string) *MergeOperations {
25643	s.Source = &v
25644	return s
25645}
25646
25647// A merge option or stategy is required, and none was provided.
25648type MergeOptionRequiredException struct {
25649	_            struct{}                  `type:"structure"`
25650	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
25651
25652	Message_ *string `locationName:"message" type:"string"`
25653}
25654
25655// String returns the string representation
25656func (s MergeOptionRequiredException) String() string {
25657	return awsutil.Prettify(s)
25658}
25659
25660// GoString returns the string representation
25661func (s MergeOptionRequiredException) GoString() string {
25662	return s.String()
25663}
25664
25665func newErrorMergeOptionRequiredException(v protocol.ResponseMetadata) error {
25666	return &MergeOptionRequiredException{
25667		RespMetadata: v,
25668	}
25669}
25670
25671// Code returns the exception type name.
25672func (s *MergeOptionRequiredException) Code() string {
25673	return "MergeOptionRequiredException"
25674}
25675
25676// Message returns the exception's message.
25677func (s *MergeOptionRequiredException) Message() string {
25678	if s.Message_ != nil {
25679		return *s.Message_
25680	}
25681	return ""
25682}
25683
25684// OrigErr always returns nil, satisfies awserr.Error interface.
25685func (s *MergeOptionRequiredException) OrigErr() error {
25686	return nil
25687}
25688
25689func (s *MergeOptionRequiredException) Error() string {
25690	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
25691}
25692
25693// Status code returns the HTTP status code for the request's response error.
25694func (s *MergeOptionRequiredException) StatusCode() int {
25695	return s.RespMetadata.StatusCode
25696}
25697
25698// RequestID returns the service's response RequestID for request.
25699func (s *MergeOptionRequiredException) RequestID() string {
25700	return s.RespMetadata.RequestID
25701}
25702
25703type MergePullRequestByFastForwardInput struct {
25704	_ struct{} `type:"structure"`
25705
25706	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
25707	//
25708	// PullRequestId is a required field
25709	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
25710
25711	// The name of the repository where the pull request was created.
25712	//
25713	// RepositoryName is a required field
25714	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
25715
25716	// The full commit ID of the original or updated commit in the pull request
25717	// source branch. Pass this value if you want an exception thrown if the current
25718	// commit ID of the tip of the source branch does not match this commit ID.
25719	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
25720}
25721
25722// String returns the string representation
25723func (s MergePullRequestByFastForwardInput) String() string {
25724	return awsutil.Prettify(s)
25725}
25726
25727// GoString returns the string representation
25728func (s MergePullRequestByFastForwardInput) GoString() string {
25729	return s.String()
25730}
25731
25732// Validate inspects the fields of the type to determine if they are valid.
25733func (s *MergePullRequestByFastForwardInput) Validate() error {
25734	invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByFastForwardInput"}
25735	if s.PullRequestId == nil {
25736		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
25737	}
25738	if s.RepositoryName == nil {
25739		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
25740	}
25741	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
25742		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
25743	}
25744
25745	if invalidParams.Len() > 0 {
25746		return invalidParams
25747	}
25748	return nil
25749}
25750
25751// SetPullRequestId sets the PullRequestId field's value.
25752func (s *MergePullRequestByFastForwardInput) SetPullRequestId(v string) *MergePullRequestByFastForwardInput {
25753	s.PullRequestId = &v
25754	return s
25755}
25756
25757// SetRepositoryName sets the RepositoryName field's value.
25758func (s *MergePullRequestByFastForwardInput) SetRepositoryName(v string) *MergePullRequestByFastForwardInput {
25759	s.RepositoryName = &v
25760	return s
25761}
25762
25763// SetSourceCommitId sets the SourceCommitId field's value.
25764func (s *MergePullRequestByFastForwardInput) SetSourceCommitId(v string) *MergePullRequestByFastForwardInput {
25765	s.SourceCommitId = &v
25766	return s
25767}
25768
25769type MergePullRequestByFastForwardOutput struct {
25770	_ struct{} `type:"structure"`
25771
25772	// Information about the specified pull request, including the merge.
25773	PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
25774}
25775
25776// String returns the string representation
25777func (s MergePullRequestByFastForwardOutput) String() string {
25778	return awsutil.Prettify(s)
25779}
25780
25781// GoString returns the string representation
25782func (s MergePullRequestByFastForwardOutput) GoString() string {
25783	return s.String()
25784}
25785
25786// SetPullRequest sets the PullRequest field's value.
25787func (s *MergePullRequestByFastForwardOutput) SetPullRequest(v *PullRequest) *MergePullRequestByFastForwardOutput {
25788	s.PullRequest = v
25789	return s
25790}
25791
25792type MergePullRequestBySquashInput struct {
25793	_ struct{} `type:"structure"`
25794
25795	// The name of the author who created the commit. This information is used as
25796	// both the author and committer for the commit.
25797	AuthorName *string `locationName:"authorName" type:"string"`
25798
25799	// The commit message to include in the commit information for the merge.
25800	CommitMessage *string `locationName:"commitMessage" type:"string"`
25801
25802	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
25803	// is used, which returns a not-mergeable result if the same file has differences
25804	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
25805	// mergeable if the same file in both branches has differences on the same line.
25806	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
25807
25808	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
25809	// when resolving conflicts during a merge.
25810	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
25811
25812	// Specifies which branch to use when resolving conflicts, or whether to attempt
25813	// automatically merging two versions of a file. The default is NONE, which
25814	// requires any conflicts to be resolved manually before the merge operation
25815	// is successful.
25816	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
25817
25818	// The email address of the person merging the branches. This information is
25819	// used in the commit information for the merge.
25820	Email *string `locationName:"email" type:"string"`
25821
25822	// If the commit contains deletions, whether to keep a folder or folder structure
25823	// if the changes leave the folders empty. If true, a .gitkeep file is created
25824	// for empty folders. The default is false.
25825	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
25826
25827	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
25828	//
25829	// PullRequestId is a required field
25830	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
25831
25832	// The name of the repository where the pull request was created.
25833	//
25834	// RepositoryName is a required field
25835	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
25836
25837	// The full commit ID of the original or updated commit in the pull request
25838	// source branch. Pass this value if you want an exception thrown if the current
25839	// commit ID of the tip of the source branch does not match this commit ID.
25840	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
25841}
25842
25843// String returns the string representation
25844func (s MergePullRequestBySquashInput) String() string {
25845	return awsutil.Prettify(s)
25846}
25847
25848// GoString returns the string representation
25849func (s MergePullRequestBySquashInput) GoString() string {
25850	return s.String()
25851}
25852
25853// Validate inspects the fields of the type to determine if they are valid.
25854func (s *MergePullRequestBySquashInput) Validate() error {
25855	invalidParams := request.ErrInvalidParams{Context: "MergePullRequestBySquashInput"}
25856	if s.PullRequestId == nil {
25857		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
25858	}
25859	if s.RepositoryName == nil {
25860		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
25861	}
25862	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
25863		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
25864	}
25865	if s.ConflictResolution != nil {
25866		if err := s.ConflictResolution.Validate(); err != nil {
25867			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
25868		}
25869	}
25870
25871	if invalidParams.Len() > 0 {
25872		return invalidParams
25873	}
25874	return nil
25875}
25876
25877// SetAuthorName sets the AuthorName field's value.
25878func (s *MergePullRequestBySquashInput) SetAuthorName(v string) *MergePullRequestBySquashInput {
25879	s.AuthorName = &v
25880	return s
25881}
25882
25883// SetCommitMessage sets the CommitMessage field's value.
25884func (s *MergePullRequestBySquashInput) SetCommitMessage(v string) *MergePullRequestBySquashInput {
25885	s.CommitMessage = &v
25886	return s
25887}
25888
25889// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
25890func (s *MergePullRequestBySquashInput) SetConflictDetailLevel(v string) *MergePullRequestBySquashInput {
25891	s.ConflictDetailLevel = &v
25892	return s
25893}
25894
25895// SetConflictResolution sets the ConflictResolution field's value.
25896func (s *MergePullRequestBySquashInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestBySquashInput {
25897	s.ConflictResolution = v
25898	return s
25899}
25900
25901// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
25902func (s *MergePullRequestBySquashInput) SetConflictResolutionStrategy(v string) *MergePullRequestBySquashInput {
25903	s.ConflictResolutionStrategy = &v
25904	return s
25905}
25906
25907// SetEmail sets the Email field's value.
25908func (s *MergePullRequestBySquashInput) SetEmail(v string) *MergePullRequestBySquashInput {
25909	s.Email = &v
25910	return s
25911}
25912
25913// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
25914func (s *MergePullRequestBySquashInput) SetKeepEmptyFolders(v bool) *MergePullRequestBySquashInput {
25915	s.KeepEmptyFolders = &v
25916	return s
25917}
25918
25919// SetPullRequestId sets the PullRequestId field's value.
25920func (s *MergePullRequestBySquashInput) SetPullRequestId(v string) *MergePullRequestBySquashInput {
25921	s.PullRequestId = &v
25922	return s
25923}
25924
25925// SetRepositoryName sets the RepositoryName field's value.
25926func (s *MergePullRequestBySquashInput) SetRepositoryName(v string) *MergePullRequestBySquashInput {
25927	s.RepositoryName = &v
25928	return s
25929}
25930
25931// SetSourceCommitId sets the SourceCommitId field's value.
25932func (s *MergePullRequestBySquashInput) SetSourceCommitId(v string) *MergePullRequestBySquashInput {
25933	s.SourceCommitId = &v
25934	return s
25935}
25936
25937type MergePullRequestBySquashOutput struct {
25938	_ struct{} `type:"structure"`
25939
25940	// Returns information about a pull request.
25941	PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
25942}
25943
25944// String returns the string representation
25945func (s MergePullRequestBySquashOutput) String() string {
25946	return awsutil.Prettify(s)
25947}
25948
25949// GoString returns the string representation
25950func (s MergePullRequestBySquashOutput) GoString() string {
25951	return s.String()
25952}
25953
25954// SetPullRequest sets the PullRequest field's value.
25955func (s *MergePullRequestBySquashOutput) SetPullRequest(v *PullRequest) *MergePullRequestBySquashOutput {
25956	s.PullRequest = v
25957	return s
25958}
25959
25960type MergePullRequestByThreeWayInput struct {
25961	_ struct{} `type:"structure"`
25962
25963	// The name of the author who created the commit. This information is used as
25964	// both the author and committer for the commit.
25965	AuthorName *string `locationName:"authorName" type:"string"`
25966
25967	// The commit message to include in the commit information for the merge.
25968	CommitMessage *string `locationName:"commitMessage" type:"string"`
25969
25970	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL
25971	// is used, which returns a not-mergeable result if the same file has differences
25972	// in both branches. If LINE_LEVEL is specified, a conflict is considered not
25973	// mergeable if the same file in both branches has differences on the same line.
25974	ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"`
25975
25976	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
25977	// when resolving conflicts during a merge.
25978	ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"`
25979
25980	// Specifies which branch to use when resolving conflicts, or whether to attempt
25981	// automatically merging two versions of a file. The default is NONE, which
25982	// requires any conflicts to be resolved manually before the merge operation
25983	// is successful.
25984	ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"`
25985
25986	// The email address of the person merging the branches. This information is
25987	// used in the commit information for the merge.
25988	Email *string `locationName:"email" type:"string"`
25989
25990	// If the commit contains deletions, whether to keep a folder or folder structure
25991	// if the changes leave the folders empty. If true, a .gitkeep file is created
25992	// for empty folders. The default is false.
25993	KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
25994
25995	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
25996	//
25997	// PullRequestId is a required field
25998	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
25999
26000	// The name of the repository where the pull request was created.
26001	//
26002	// RepositoryName is a required field
26003	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
26004
26005	// The full commit ID of the original or updated commit in the pull request
26006	// source branch. Pass this value if you want an exception thrown if the current
26007	// commit ID of the tip of the source branch does not match this commit ID.
26008	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
26009}
26010
26011// String returns the string representation
26012func (s MergePullRequestByThreeWayInput) String() string {
26013	return awsutil.Prettify(s)
26014}
26015
26016// GoString returns the string representation
26017func (s MergePullRequestByThreeWayInput) GoString() string {
26018	return s.String()
26019}
26020
26021// Validate inspects the fields of the type to determine if they are valid.
26022func (s *MergePullRequestByThreeWayInput) Validate() error {
26023	invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByThreeWayInput"}
26024	if s.PullRequestId == nil {
26025		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
26026	}
26027	if s.RepositoryName == nil {
26028		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
26029	}
26030	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
26031		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
26032	}
26033	if s.ConflictResolution != nil {
26034		if err := s.ConflictResolution.Validate(); err != nil {
26035			invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams))
26036		}
26037	}
26038
26039	if invalidParams.Len() > 0 {
26040		return invalidParams
26041	}
26042	return nil
26043}
26044
26045// SetAuthorName sets the AuthorName field's value.
26046func (s *MergePullRequestByThreeWayInput) SetAuthorName(v string) *MergePullRequestByThreeWayInput {
26047	s.AuthorName = &v
26048	return s
26049}
26050
26051// SetCommitMessage sets the CommitMessage field's value.
26052func (s *MergePullRequestByThreeWayInput) SetCommitMessage(v string) *MergePullRequestByThreeWayInput {
26053	s.CommitMessage = &v
26054	return s
26055}
26056
26057// SetConflictDetailLevel sets the ConflictDetailLevel field's value.
26058func (s *MergePullRequestByThreeWayInput) SetConflictDetailLevel(v string) *MergePullRequestByThreeWayInput {
26059	s.ConflictDetailLevel = &v
26060	return s
26061}
26062
26063// SetConflictResolution sets the ConflictResolution field's value.
26064func (s *MergePullRequestByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestByThreeWayInput {
26065	s.ConflictResolution = v
26066	return s
26067}
26068
26069// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value.
26070func (s *MergePullRequestByThreeWayInput) SetConflictResolutionStrategy(v string) *MergePullRequestByThreeWayInput {
26071	s.ConflictResolutionStrategy = &v
26072	return s
26073}
26074
26075// SetEmail sets the Email field's value.
26076func (s *MergePullRequestByThreeWayInput) SetEmail(v string) *MergePullRequestByThreeWayInput {
26077	s.Email = &v
26078	return s
26079}
26080
26081// SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
26082func (s *MergePullRequestByThreeWayInput) SetKeepEmptyFolders(v bool) *MergePullRequestByThreeWayInput {
26083	s.KeepEmptyFolders = &v
26084	return s
26085}
26086
26087// SetPullRequestId sets the PullRequestId field's value.
26088func (s *MergePullRequestByThreeWayInput) SetPullRequestId(v string) *MergePullRequestByThreeWayInput {
26089	s.PullRequestId = &v
26090	return s
26091}
26092
26093// SetRepositoryName sets the RepositoryName field's value.
26094func (s *MergePullRequestByThreeWayInput) SetRepositoryName(v string) *MergePullRequestByThreeWayInput {
26095	s.RepositoryName = &v
26096	return s
26097}
26098
26099// SetSourceCommitId sets the SourceCommitId field's value.
26100func (s *MergePullRequestByThreeWayInput) SetSourceCommitId(v string) *MergePullRequestByThreeWayInput {
26101	s.SourceCommitId = &v
26102	return s
26103}
26104
26105type MergePullRequestByThreeWayOutput struct {
26106	_ struct{} `type:"structure"`
26107
26108	// Returns information about a pull request.
26109	PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
26110}
26111
26112// String returns the string representation
26113func (s MergePullRequestByThreeWayOutput) String() string {
26114	return awsutil.Prettify(s)
26115}
26116
26117// GoString returns the string representation
26118func (s MergePullRequestByThreeWayOutput) GoString() string {
26119	return s.String()
26120}
26121
26122// SetPullRequest sets the PullRequest field's value.
26123func (s *MergePullRequestByThreeWayOutput) SetPullRequest(v *PullRequest) *MergePullRequestByThreeWayOutput {
26124	s.PullRequest = v
26125	return s
26126}
26127
26128// More than one conflict resolution entries exists for the conflict. A conflict
26129// can have only one conflict resolution entry.
26130type MultipleConflictResolutionEntriesException struct {
26131	_            struct{}                  `type:"structure"`
26132	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26133
26134	Message_ *string `locationName:"message" type:"string"`
26135}
26136
26137// String returns the string representation
26138func (s MultipleConflictResolutionEntriesException) String() string {
26139	return awsutil.Prettify(s)
26140}
26141
26142// GoString returns the string representation
26143func (s MultipleConflictResolutionEntriesException) GoString() string {
26144	return s.String()
26145}
26146
26147func newErrorMultipleConflictResolutionEntriesException(v protocol.ResponseMetadata) error {
26148	return &MultipleConflictResolutionEntriesException{
26149		RespMetadata: v,
26150	}
26151}
26152
26153// Code returns the exception type name.
26154func (s *MultipleConflictResolutionEntriesException) Code() string {
26155	return "MultipleConflictResolutionEntriesException"
26156}
26157
26158// Message returns the exception's message.
26159func (s *MultipleConflictResolutionEntriesException) Message() string {
26160	if s.Message_ != nil {
26161		return *s.Message_
26162	}
26163	return ""
26164}
26165
26166// OrigErr always returns nil, satisfies awserr.Error interface.
26167func (s *MultipleConflictResolutionEntriesException) OrigErr() error {
26168	return nil
26169}
26170
26171func (s *MultipleConflictResolutionEntriesException) Error() string {
26172	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26173}
26174
26175// Status code returns the HTTP status code for the request's response error.
26176func (s *MultipleConflictResolutionEntriesException) StatusCode() int {
26177	return s.RespMetadata.StatusCode
26178}
26179
26180// RequestID returns the service's response RequestID for request.
26181func (s *MultipleConflictResolutionEntriesException) RequestID() string {
26182	return s.RespMetadata.RequestID
26183}
26184
26185// You cannot include more than one repository in a pull request. Make sure
26186// you have specified only one repository name in your request, and then try
26187// again.
26188type MultipleRepositoriesInPullRequestException struct {
26189	_            struct{}                  `type:"structure"`
26190	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26191
26192	Message_ *string `locationName:"message" type:"string"`
26193}
26194
26195// String returns the string representation
26196func (s MultipleRepositoriesInPullRequestException) String() string {
26197	return awsutil.Prettify(s)
26198}
26199
26200// GoString returns the string representation
26201func (s MultipleRepositoriesInPullRequestException) GoString() string {
26202	return s.String()
26203}
26204
26205func newErrorMultipleRepositoriesInPullRequestException(v protocol.ResponseMetadata) error {
26206	return &MultipleRepositoriesInPullRequestException{
26207		RespMetadata: v,
26208	}
26209}
26210
26211// Code returns the exception type name.
26212func (s *MultipleRepositoriesInPullRequestException) Code() string {
26213	return "MultipleRepositoriesInPullRequestException"
26214}
26215
26216// Message returns the exception's message.
26217func (s *MultipleRepositoriesInPullRequestException) Message() string {
26218	if s.Message_ != nil {
26219		return *s.Message_
26220	}
26221	return ""
26222}
26223
26224// OrigErr always returns nil, satisfies awserr.Error interface.
26225func (s *MultipleRepositoriesInPullRequestException) OrigErr() error {
26226	return nil
26227}
26228
26229func (s *MultipleRepositoriesInPullRequestException) Error() string {
26230	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26231}
26232
26233// Status code returns the HTTP status code for the request's response error.
26234func (s *MultipleRepositoriesInPullRequestException) StatusCode() int {
26235	return s.RespMetadata.StatusCode
26236}
26237
26238// RequestID returns the service's response RequestID for request.
26239func (s *MultipleRepositoriesInPullRequestException) RequestID() string {
26240	return s.RespMetadata.RequestID
26241}
26242
26243// The user name is not valid because it has exceeded the character limit for
26244// author names.
26245type NameLengthExceededException struct {
26246	_            struct{}                  `type:"structure"`
26247	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26248
26249	Message_ *string `locationName:"message" type:"string"`
26250}
26251
26252// String returns the string representation
26253func (s NameLengthExceededException) String() string {
26254	return awsutil.Prettify(s)
26255}
26256
26257// GoString returns the string representation
26258func (s NameLengthExceededException) GoString() string {
26259	return s.String()
26260}
26261
26262func newErrorNameLengthExceededException(v protocol.ResponseMetadata) error {
26263	return &NameLengthExceededException{
26264		RespMetadata: v,
26265	}
26266}
26267
26268// Code returns the exception type name.
26269func (s *NameLengthExceededException) Code() string {
26270	return "NameLengthExceededException"
26271}
26272
26273// Message returns the exception's message.
26274func (s *NameLengthExceededException) Message() string {
26275	if s.Message_ != nil {
26276		return *s.Message_
26277	}
26278	return ""
26279}
26280
26281// OrigErr always returns nil, satisfies awserr.Error interface.
26282func (s *NameLengthExceededException) OrigErr() error {
26283	return nil
26284}
26285
26286func (s *NameLengthExceededException) Error() string {
26287	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26288}
26289
26290// Status code returns the HTTP status code for the request's response error.
26291func (s *NameLengthExceededException) StatusCode() int {
26292	return s.RespMetadata.StatusCode
26293}
26294
26295// RequestID returns the service's response RequestID for request.
26296func (s *NameLengthExceededException) RequestID() string {
26297	return s.RespMetadata.RequestID
26298}
26299
26300// The commit cannot be created because no changes will be made to the repository
26301// as a result of this commit. A commit must contain at least one change.
26302type NoChangeException struct {
26303	_            struct{}                  `type:"structure"`
26304	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26305
26306	Message_ *string `locationName:"message" type:"string"`
26307}
26308
26309// String returns the string representation
26310func (s NoChangeException) String() string {
26311	return awsutil.Prettify(s)
26312}
26313
26314// GoString returns the string representation
26315func (s NoChangeException) GoString() string {
26316	return s.String()
26317}
26318
26319func newErrorNoChangeException(v protocol.ResponseMetadata) error {
26320	return &NoChangeException{
26321		RespMetadata: v,
26322	}
26323}
26324
26325// Code returns the exception type name.
26326func (s *NoChangeException) Code() string {
26327	return "NoChangeException"
26328}
26329
26330// Message returns the exception's message.
26331func (s *NoChangeException) Message() string {
26332	if s.Message_ != nil {
26333		return *s.Message_
26334	}
26335	return ""
26336}
26337
26338// OrigErr always returns nil, satisfies awserr.Error interface.
26339func (s *NoChangeException) OrigErr() error {
26340	return nil
26341}
26342
26343func (s *NoChangeException) Error() string {
26344	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26345}
26346
26347// Status code returns the HTTP status code for the request's response error.
26348func (s *NoChangeException) StatusCode() int {
26349	return s.RespMetadata.StatusCode
26350}
26351
26352// RequestID returns the service's response RequestID for request.
26353func (s *NoChangeException) RequestID() string {
26354	return s.RespMetadata.RequestID
26355}
26356
26357// The maximum number of approval rule templates has been exceeded for this
26358// AWS Region.
26359type NumberOfRuleTemplatesExceededException struct {
26360	_            struct{}                  `type:"structure"`
26361	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26362
26363	Message_ *string `locationName:"message" type:"string"`
26364}
26365
26366// String returns the string representation
26367func (s NumberOfRuleTemplatesExceededException) String() string {
26368	return awsutil.Prettify(s)
26369}
26370
26371// GoString returns the string representation
26372func (s NumberOfRuleTemplatesExceededException) GoString() string {
26373	return s.String()
26374}
26375
26376func newErrorNumberOfRuleTemplatesExceededException(v protocol.ResponseMetadata) error {
26377	return &NumberOfRuleTemplatesExceededException{
26378		RespMetadata: v,
26379	}
26380}
26381
26382// Code returns the exception type name.
26383func (s *NumberOfRuleTemplatesExceededException) Code() string {
26384	return "NumberOfRuleTemplatesExceededException"
26385}
26386
26387// Message returns the exception's message.
26388func (s *NumberOfRuleTemplatesExceededException) Message() string {
26389	if s.Message_ != nil {
26390		return *s.Message_
26391	}
26392	return ""
26393}
26394
26395// OrigErr always returns nil, satisfies awserr.Error interface.
26396func (s *NumberOfRuleTemplatesExceededException) OrigErr() error {
26397	return nil
26398}
26399
26400func (s *NumberOfRuleTemplatesExceededException) Error() string {
26401	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26402}
26403
26404// Status code returns the HTTP status code for the request's response error.
26405func (s *NumberOfRuleTemplatesExceededException) StatusCode() int {
26406	return s.RespMetadata.StatusCode
26407}
26408
26409// RequestID returns the service's response RequestID for request.
26410func (s *NumberOfRuleTemplatesExceededException) RequestID() string {
26411	return s.RespMetadata.RequestID
26412}
26413
26414// The approval rule cannot be added. The pull request has the maximum number
26415// of approval rules associated with it.
26416type NumberOfRulesExceededException struct {
26417	_            struct{}                  `type:"structure"`
26418	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26419
26420	Message_ *string `locationName:"message" type:"string"`
26421}
26422
26423// String returns the string representation
26424func (s NumberOfRulesExceededException) String() string {
26425	return awsutil.Prettify(s)
26426}
26427
26428// GoString returns the string representation
26429func (s NumberOfRulesExceededException) GoString() string {
26430	return s.String()
26431}
26432
26433func newErrorNumberOfRulesExceededException(v protocol.ResponseMetadata) error {
26434	return &NumberOfRulesExceededException{
26435		RespMetadata: v,
26436	}
26437}
26438
26439// Code returns the exception type name.
26440func (s *NumberOfRulesExceededException) Code() string {
26441	return "NumberOfRulesExceededException"
26442}
26443
26444// Message returns the exception's message.
26445func (s *NumberOfRulesExceededException) Message() string {
26446	if s.Message_ != nil {
26447		return *s.Message_
26448	}
26449	return ""
26450}
26451
26452// OrigErr always returns nil, satisfies awserr.Error interface.
26453func (s *NumberOfRulesExceededException) OrigErr() error {
26454	return nil
26455}
26456
26457func (s *NumberOfRulesExceededException) Error() string {
26458	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26459}
26460
26461// Status code returns the HTTP status code for the request's response error.
26462func (s *NumberOfRulesExceededException) StatusCode() int {
26463	return s.RespMetadata.StatusCode
26464}
26465
26466// RequestID returns the service's response RequestID for request.
26467func (s *NumberOfRulesExceededException) RequestID() string {
26468	return s.RespMetadata.RequestID
26469}
26470
26471// Information about the type of an object in a merge operation.
26472type ObjectTypes struct {
26473	_ struct{} `type:"structure"`
26474
26475	// The type of the object in the base commit of the merge.
26476	Base *string `locationName:"base" type:"string" enum:"ObjectTypeEnum"`
26477
26478	// The type of the object in the destination branch.
26479	Destination *string `locationName:"destination" type:"string" enum:"ObjectTypeEnum"`
26480
26481	// The type of the object in the source branch.
26482	Source *string `locationName:"source" type:"string" enum:"ObjectTypeEnum"`
26483}
26484
26485// String returns the string representation
26486func (s ObjectTypes) String() string {
26487	return awsutil.Prettify(s)
26488}
26489
26490// GoString returns the string representation
26491func (s ObjectTypes) GoString() string {
26492	return s.String()
26493}
26494
26495// SetBase sets the Base field's value.
26496func (s *ObjectTypes) SetBase(v string) *ObjectTypes {
26497	s.Base = &v
26498	return s
26499}
26500
26501// SetDestination sets the Destination field's value.
26502func (s *ObjectTypes) SetDestination(v string) *ObjectTypes {
26503	s.Destination = &v
26504	return s
26505}
26506
26507// SetSource sets the Source field's value.
26508func (s *ObjectTypes) SetSource(v string) *ObjectTypes {
26509	s.Source = &v
26510	return s
26511}
26512
26513// Returns information about the template that created the approval rule for
26514// a pull request.
26515type OriginApprovalRuleTemplate struct {
26516	_ struct{} `type:"structure"`
26517
26518	// The ID of the template that created the approval rule.
26519	ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string"`
26520
26521	// The name of the template that created the approval rule.
26522	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string"`
26523}
26524
26525// String returns the string representation
26526func (s OriginApprovalRuleTemplate) String() string {
26527	return awsutil.Prettify(s)
26528}
26529
26530// GoString returns the string representation
26531func (s OriginApprovalRuleTemplate) GoString() string {
26532	return s.String()
26533}
26534
26535// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value.
26536func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateId(v string) *OriginApprovalRuleTemplate {
26537	s.ApprovalRuleTemplateId = &v
26538	return s
26539}
26540
26541// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
26542func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *OriginApprovalRuleTemplate {
26543	s.ApprovalRuleTemplateName = &v
26544	return s
26545}
26546
26547// The pull request has already had its approval rules set to override.
26548type OverrideAlreadySetException struct {
26549	_            struct{}                  `type:"structure"`
26550	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26551
26552	Message_ *string `locationName:"message" type:"string"`
26553}
26554
26555// String returns the string representation
26556func (s OverrideAlreadySetException) String() string {
26557	return awsutil.Prettify(s)
26558}
26559
26560// GoString returns the string representation
26561func (s OverrideAlreadySetException) GoString() string {
26562	return s.String()
26563}
26564
26565func newErrorOverrideAlreadySetException(v protocol.ResponseMetadata) error {
26566	return &OverrideAlreadySetException{
26567		RespMetadata: v,
26568	}
26569}
26570
26571// Code returns the exception type name.
26572func (s *OverrideAlreadySetException) Code() string {
26573	return "OverrideAlreadySetException"
26574}
26575
26576// Message returns the exception's message.
26577func (s *OverrideAlreadySetException) Message() string {
26578	if s.Message_ != nil {
26579		return *s.Message_
26580	}
26581	return ""
26582}
26583
26584// OrigErr always returns nil, satisfies awserr.Error interface.
26585func (s *OverrideAlreadySetException) OrigErr() error {
26586	return nil
26587}
26588
26589func (s *OverrideAlreadySetException) Error() string {
26590	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26591}
26592
26593// Status code returns the HTTP status code for the request's response error.
26594func (s *OverrideAlreadySetException) StatusCode() int {
26595	return s.RespMetadata.StatusCode
26596}
26597
26598// RequestID returns the service's response RequestID for request.
26599func (s *OverrideAlreadySetException) RequestID() string {
26600	return s.RespMetadata.RequestID
26601}
26602
26603type OverridePullRequestApprovalRulesInput struct {
26604	_ struct{} `type:"structure"`
26605
26606	// Whether you want to set aside approval rule requirements for the pull request
26607	// (OVERRIDE) or revoke a previous override and apply approval rule requirements
26608	// (REVOKE). REVOKE status is not stored.
26609	//
26610	// OverrideStatus is a required field
26611	OverrideStatus *string `locationName:"overrideStatus" type:"string" required:"true" enum:"OverrideStatus"`
26612
26613	// The system-generated ID of the pull request for which you want to override
26614	// all approval rule requirements. To get this information, use GetPullRequest.
26615	//
26616	// PullRequestId is a required field
26617	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
26618
26619	// The system-generated ID of the most recent revision of the pull request.
26620	// You cannot override approval rules for anything but the most recent revision
26621	// of a pull request. To get the revision ID, use GetPullRequest.
26622	//
26623	// RevisionId is a required field
26624	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
26625}
26626
26627// String returns the string representation
26628func (s OverridePullRequestApprovalRulesInput) String() string {
26629	return awsutil.Prettify(s)
26630}
26631
26632// GoString returns the string representation
26633func (s OverridePullRequestApprovalRulesInput) GoString() string {
26634	return s.String()
26635}
26636
26637// Validate inspects the fields of the type to determine if they are valid.
26638func (s *OverridePullRequestApprovalRulesInput) Validate() error {
26639	invalidParams := request.ErrInvalidParams{Context: "OverridePullRequestApprovalRulesInput"}
26640	if s.OverrideStatus == nil {
26641		invalidParams.Add(request.NewErrParamRequired("OverrideStatus"))
26642	}
26643	if s.PullRequestId == nil {
26644		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
26645	}
26646	if s.RevisionId == nil {
26647		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
26648	}
26649
26650	if invalidParams.Len() > 0 {
26651		return invalidParams
26652	}
26653	return nil
26654}
26655
26656// SetOverrideStatus sets the OverrideStatus field's value.
26657func (s *OverridePullRequestApprovalRulesInput) SetOverrideStatus(v string) *OverridePullRequestApprovalRulesInput {
26658	s.OverrideStatus = &v
26659	return s
26660}
26661
26662// SetPullRequestId sets the PullRequestId field's value.
26663func (s *OverridePullRequestApprovalRulesInput) SetPullRequestId(v string) *OverridePullRequestApprovalRulesInput {
26664	s.PullRequestId = &v
26665	return s
26666}
26667
26668// SetRevisionId sets the RevisionId field's value.
26669func (s *OverridePullRequestApprovalRulesInput) SetRevisionId(v string) *OverridePullRequestApprovalRulesInput {
26670	s.RevisionId = &v
26671	return s
26672}
26673
26674type OverridePullRequestApprovalRulesOutput struct {
26675	_ struct{} `type:"structure"`
26676}
26677
26678// String returns the string representation
26679func (s OverridePullRequestApprovalRulesOutput) String() string {
26680	return awsutil.Prettify(s)
26681}
26682
26683// GoString returns the string representation
26684func (s OverridePullRequestApprovalRulesOutput) GoString() string {
26685	return s.String()
26686}
26687
26688// An override status is required, but no value was provided. Valid values include
26689// OVERRIDE and REVOKE.
26690type OverrideStatusRequiredException struct {
26691	_            struct{}                  `type:"structure"`
26692	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26693
26694	Message_ *string `locationName:"message" type:"string"`
26695}
26696
26697// String returns the string representation
26698func (s OverrideStatusRequiredException) String() string {
26699	return awsutil.Prettify(s)
26700}
26701
26702// GoString returns the string representation
26703func (s OverrideStatusRequiredException) GoString() string {
26704	return s.String()
26705}
26706
26707func newErrorOverrideStatusRequiredException(v protocol.ResponseMetadata) error {
26708	return &OverrideStatusRequiredException{
26709		RespMetadata: v,
26710	}
26711}
26712
26713// Code returns the exception type name.
26714func (s *OverrideStatusRequiredException) Code() string {
26715	return "OverrideStatusRequiredException"
26716}
26717
26718// Message returns the exception's message.
26719func (s *OverrideStatusRequiredException) Message() string {
26720	if s.Message_ != nil {
26721		return *s.Message_
26722	}
26723	return ""
26724}
26725
26726// OrigErr always returns nil, satisfies awserr.Error interface.
26727func (s *OverrideStatusRequiredException) OrigErr() error {
26728	return nil
26729}
26730
26731func (s *OverrideStatusRequiredException) Error() string {
26732	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26733}
26734
26735// Status code returns the HTTP status code for the request's response error.
26736func (s *OverrideStatusRequiredException) StatusCode() int {
26737	return s.RespMetadata.StatusCode
26738}
26739
26740// RequestID returns the service's response RequestID for request.
26741func (s *OverrideStatusRequiredException) RequestID() string {
26742	return s.RespMetadata.RequestID
26743}
26744
26745// The parent commit ID is not valid because it does not exist. The specified
26746// parent commit ID does not exist in the specified branch of the repository.
26747type ParentCommitDoesNotExistException 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
26755func (s ParentCommitDoesNotExistException) String() string {
26756	return awsutil.Prettify(s)
26757}
26758
26759// GoString returns the string representation
26760func (s ParentCommitDoesNotExistException) GoString() string {
26761	return s.String()
26762}
26763
26764func newErrorParentCommitDoesNotExistException(v protocol.ResponseMetadata) error {
26765	return &ParentCommitDoesNotExistException{
26766		RespMetadata: v,
26767	}
26768}
26769
26770// Code returns the exception type name.
26771func (s *ParentCommitDoesNotExistException) Code() string {
26772	return "ParentCommitDoesNotExistException"
26773}
26774
26775// Message returns the exception's message.
26776func (s *ParentCommitDoesNotExistException) Message() string {
26777	if s.Message_ != nil {
26778		return *s.Message_
26779	}
26780	return ""
26781}
26782
26783// OrigErr always returns nil, satisfies awserr.Error interface.
26784func (s *ParentCommitDoesNotExistException) OrigErr() error {
26785	return nil
26786}
26787
26788func (s *ParentCommitDoesNotExistException) Error() string {
26789	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26790}
26791
26792// Status code returns the HTTP status code for the request's response error.
26793func (s *ParentCommitDoesNotExistException) StatusCode() int {
26794	return s.RespMetadata.StatusCode
26795}
26796
26797// RequestID returns the service's response RequestID for request.
26798func (s *ParentCommitDoesNotExistException) RequestID() string {
26799	return s.RespMetadata.RequestID
26800}
26801
26802// The file could not be added because the provided parent commit ID is not
26803// the current tip of the specified branch. To view the full commit ID of the
26804// current head of the branch, use GetBranch.
26805type ParentCommitIdOutdatedException struct {
26806	_            struct{}                  `type:"structure"`
26807	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26808
26809	Message_ *string `locationName:"message" type:"string"`
26810}
26811
26812// String returns the string representation
26813func (s ParentCommitIdOutdatedException) String() string {
26814	return awsutil.Prettify(s)
26815}
26816
26817// GoString returns the string representation
26818func (s ParentCommitIdOutdatedException) GoString() string {
26819	return s.String()
26820}
26821
26822func newErrorParentCommitIdOutdatedException(v protocol.ResponseMetadata) error {
26823	return &ParentCommitIdOutdatedException{
26824		RespMetadata: v,
26825	}
26826}
26827
26828// Code returns the exception type name.
26829func (s *ParentCommitIdOutdatedException) Code() string {
26830	return "ParentCommitIdOutdatedException"
26831}
26832
26833// Message returns the exception's message.
26834func (s *ParentCommitIdOutdatedException) Message() string {
26835	if s.Message_ != nil {
26836		return *s.Message_
26837	}
26838	return ""
26839}
26840
26841// OrigErr always returns nil, satisfies awserr.Error interface.
26842func (s *ParentCommitIdOutdatedException) OrigErr() error {
26843	return nil
26844}
26845
26846func (s *ParentCommitIdOutdatedException) Error() string {
26847	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26848}
26849
26850// Status code returns the HTTP status code for the request's response error.
26851func (s *ParentCommitIdOutdatedException) StatusCode() int {
26852	return s.RespMetadata.StatusCode
26853}
26854
26855// RequestID returns the service's response RequestID for request.
26856func (s *ParentCommitIdOutdatedException) RequestID() string {
26857	return s.RespMetadata.RequestID
26858}
26859
26860// A parent commit ID is required. To view the full commit ID of a branch in
26861// a repository, use GetBranch or a Git command (for example, git pull or git
26862// log).
26863type ParentCommitIdRequiredException struct {
26864	_            struct{}                  `type:"structure"`
26865	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26866
26867	Message_ *string `locationName:"message" type:"string"`
26868}
26869
26870// String returns the string representation
26871func (s ParentCommitIdRequiredException) String() string {
26872	return awsutil.Prettify(s)
26873}
26874
26875// GoString returns the string representation
26876func (s ParentCommitIdRequiredException) GoString() string {
26877	return s.String()
26878}
26879
26880func newErrorParentCommitIdRequiredException(v protocol.ResponseMetadata) error {
26881	return &ParentCommitIdRequiredException{
26882		RespMetadata: v,
26883	}
26884}
26885
26886// Code returns the exception type name.
26887func (s *ParentCommitIdRequiredException) Code() string {
26888	return "ParentCommitIdRequiredException"
26889}
26890
26891// Message returns the exception's message.
26892func (s *ParentCommitIdRequiredException) Message() string {
26893	if s.Message_ != nil {
26894		return *s.Message_
26895	}
26896	return ""
26897}
26898
26899// OrigErr always returns nil, satisfies awserr.Error interface.
26900func (s *ParentCommitIdRequiredException) OrigErr() error {
26901	return nil
26902}
26903
26904func (s *ParentCommitIdRequiredException) Error() string {
26905	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26906}
26907
26908// Status code returns the HTTP status code for the request's response error.
26909func (s *ParentCommitIdRequiredException) StatusCode() int {
26910	return s.RespMetadata.StatusCode
26911}
26912
26913// RequestID returns the service's response RequestID for request.
26914func (s *ParentCommitIdRequiredException) RequestID() string {
26915	return s.RespMetadata.RequestID
26916}
26917
26918// The specified path does not exist.
26919type PathDoesNotExistException struct {
26920	_            struct{}                  `type:"structure"`
26921	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26922
26923	Message_ *string `locationName:"message" type:"string"`
26924}
26925
26926// String returns the string representation
26927func (s PathDoesNotExistException) String() string {
26928	return awsutil.Prettify(s)
26929}
26930
26931// GoString returns the string representation
26932func (s PathDoesNotExistException) GoString() string {
26933	return s.String()
26934}
26935
26936func newErrorPathDoesNotExistException(v protocol.ResponseMetadata) error {
26937	return &PathDoesNotExistException{
26938		RespMetadata: v,
26939	}
26940}
26941
26942// Code returns the exception type name.
26943func (s *PathDoesNotExistException) Code() string {
26944	return "PathDoesNotExistException"
26945}
26946
26947// Message returns the exception's message.
26948func (s *PathDoesNotExistException) Message() string {
26949	if s.Message_ != nil {
26950		return *s.Message_
26951	}
26952	return ""
26953}
26954
26955// OrigErr always returns nil, satisfies awserr.Error interface.
26956func (s *PathDoesNotExistException) OrigErr() error {
26957	return nil
26958}
26959
26960func (s *PathDoesNotExistException) Error() string {
26961	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
26962}
26963
26964// Status code returns the HTTP status code for the request's response error.
26965func (s *PathDoesNotExistException) StatusCode() int {
26966	return s.RespMetadata.StatusCode
26967}
26968
26969// RequestID returns the service's response RequestID for request.
26970func (s *PathDoesNotExistException) RequestID() string {
26971	return s.RespMetadata.RequestID
26972}
26973
26974// The folderPath for a location cannot be null.
26975type PathRequiredException struct {
26976	_            struct{}                  `type:"structure"`
26977	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
26978
26979	Message_ *string `locationName:"message" type:"string"`
26980}
26981
26982// String returns the string representation
26983func (s PathRequiredException) String() string {
26984	return awsutil.Prettify(s)
26985}
26986
26987// GoString returns the string representation
26988func (s PathRequiredException) GoString() string {
26989	return s.String()
26990}
26991
26992func newErrorPathRequiredException(v protocol.ResponseMetadata) error {
26993	return &PathRequiredException{
26994		RespMetadata: v,
26995	}
26996}
26997
26998// Code returns the exception type name.
26999func (s *PathRequiredException) Code() string {
27000	return "PathRequiredException"
27001}
27002
27003// Message returns the exception's message.
27004func (s *PathRequiredException) Message() string {
27005	if s.Message_ != nil {
27006		return *s.Message_
27007	}
27008	return ""
27009}
27010
27011// OrigErr always returns nil, satisfies awserr.Error interface.
27012func (s *PathRequiredException) OrigErr() error {
27013	return nil
27014}
27015
27016func (s *PathRequiredException) Error() string {
27017	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
27018}
27019
27020// Status code returns the HTTP status code for the request's response error.
27021func (s *PathRequiredException) StatusCode() int {
27022	return s.RespMetadata.StatusCode
27023}
27024
27025// RequestID returns the service's response RequestID for request.
27026func (s *PathRequiredException) RequestID() string {
27027	return s.RespMetadata.RequestID
27028}
27029
27030type PostCommentForComparedCommitInput struct {
27031	_ struct{} `type:"structure"`
27032
27033	// To establish the directionality of the comparison, the full commit ID of
27034	// the after commit.
27035	//
27036	// AfterCommitId is a required field
27037	AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
27038
27039	// To establish the directionality of the comparison, the full commit ID of
27040	// the before commit. Required for commenting on any commit unless that commit
27041	// is the initial commit.
27042	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
27043
27044	// A unique, client-generated idempotency token that, when provided in a request,
27045	// ensures the request cannot be repeated with a changed parameter. If a request
27046	// is received with the same parameters and a token is included, the request
27047	// returns information about the initial request that used that token.
27048	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
27049
27050	// The content of the comment you want to make.
27051	//
27052	// Content is a required field
27053	Content *string `locationName:"content" type:"string" required:"true"`
27054
27055	// The location of the comparison where you want to comment.
27056	Location *Location `locationName:"location" type:"structure"`
27057
27058	// The name of the repository where you want to post a comment on the comparison
27059	// between commits.
27060	//
27061	// RepositoryName is a required field
27062	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
27063}
27064
27065// String returns the string representation
27066func (s PostCommentForComparedCommitInput) String() string {
27067	return awsutil.Prettify(s)
27068}
27069
27070// GoString returns the string representation
27071func (s PostCommentForComparedCommitInput) GoString() string {
27072	return s.String()
27073}
27074
27075// Validate inspects the fields of the type to determine if they are valid.
27076func (s *PostCommentForComparedCommitInput) Validate() error {
27077	invalidParams := request.ErrInvalidParams{Context: "PostCommentForComparedCommitInput"}
27078	if s.AfterCommitId == nil {
27079		invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
27080	}
27081	if s.Content == nil {
27082		invalidParams.Add(request.NewErrParamRequired("Content"))
27083	}
27084	if s.RepositoryName == nil {
27085		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
27086	}
27087	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
27088		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
27089	}
27090
27091	if invalidParams.Len() > 0 {
27092		return invalidParams
27093	}
27094	return nil
27095}
27096
27097// SetAfterCommitId sets the AfterCommitId field's value.
27098func (s *PostCommentForComparedCommitInput) SetAfterCommitId(v string) *PostCommentForComparedCommitInput {
27099	s.AfterCommitId = &v
27100	return s
27101}
27102
27103// SetBeforeCommitId sets the BeforeCommitId field's value.
27104func (s *PostCommentForComparedCommitInput) SetBeforeCommitId(v string) *PostCommentForComparedCommitInput {
27105	s.BeforeCommitId = &v
27106	return s
27107}
27108
27109// SetClientRequestToken sets the ClientRequestToken field's value.
27110func (s *PostCommentForComparedCommitInput) SetClientRequestToken(v string) *PostCommentForComparedCommitInput {
27111	s.ClientRequestToken = &v
27112	return s
27113}
27114
27115// SetContent sets the Content field's value.
27116func (s *PostCommentForComparedCommitInput) SetContent(v string) *PostCommentForComparedCommitInput {
27117	s.Content = &v
27118	return s
27119}
27120
27121// SetLocation sets the Location field's value.
27122func (s *PostCommentForComparedCommitInput) SetLocation(v *Location) *PostCommentForComparedCommitInput {
27123	s.Location = v
27124	return s
27125}
27126
27127// SetRepositoryName sets the RepositoryName field's value.
27128func (s *PostCommentForComparedCommitInput) SetRepositoryName(v string) *PostCommentForComparedCommitInput {
27129	s.RepositoryName = &v
27130	return s
27131}
27132
27133type PostCommentForComparedCommitOutput struct {
27134	_ struct{} `type:"structure"`
27135
27136	// In the directionality you established, the blob ID of the after blob.
27137	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
27138
27139	// In the directionality you established, the full commit ID of the after commit.
27140	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
27141
27142	// In the directionality you established, the blob ID of the before blob.
27143	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
27144
27145	// In the directionality you established, the full commit ID of the before commit.
27146	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
27147
27148	// The content of the comment you posted.
27149	Comment *Comment `locationName:"comment" type:"structure"`
27150
27151	// The location of the comment in the comparison between the two commits.
27152	Location *Location `locationName:"location" type:"structure"`
27153
27154	// The name of the repository where you posted a comment on the comparison between
27155	// commits.
27156	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
27157}
27158
27159// String returns the string representation
27160func (s PostCommentForComparedCommitOutput) String() string {
27161	return awsutil.Prettify(s)
27162}
27163
27164// GoString returns the string representation
27165func (s PostCommentForComparedCommitOutput) GoString() string {
27166	return s.String()
27167}
27168
27169// SetAfterBlobId sets the AfterBlobId field's value.
27170func (s *PostCommentForComparedCommitOutput) SetAfterBlobId(v string) *PostCommentForComparedCommitOutput {
27171	s.AfterBlobId = &v
27172	return s
27173}
27174
27175// SetAfterCommitId sets the AfterCommitId field's value.
27176func (s *PostCommentForComparedCommitOutput) SetAfterCommitId(v string) *PostCommentForComparedCommitOutput {
27177	s.AfterCommitId = &v
27178	return s
27179}
27180
27181// SetBeforeBlobId sets the BeforeBlobId field's value.
27182func (s *PostCommentForComparedCommitOutput) SetBeforeBlobId(v string) *PostCommentForComparedCommitOutput {
27183	s.BeforeBlobId = &v
27184	return s
27185}
27186
27187// SetBeforeCommitId sets the BeforeCommitId field's value.
27188func (s *PostCommentForComparedCommitOutput) SetBeforeCommitId(v string) *PostCommentForComparedCommitOutput {
27189	s.BeforeCommitId = &v
27190	return s
27191}
27192
27193// SetComment sets the Comment field's value.
27194func (s *PostCommentForComparedCommitOutput) SetComment(v *Comment) *PostCommentForComparedCommitOutput {
27195	s.Comment = v
27196	return s
27197}
27198
27199// SetLocation sets the Location field's value.
27200func (s *PostCommentForComparedCommitOutput) SetLocation(v *Location) *PostCommentForComparedCommitOutput {
27201	s.Location = v
27202	return s
27203}
27204
27205// SetRepositoryName sets the RepositoryName field's value.
27206func (s *PostCommentForComparedCommitOutput) SetRepositoryName(v string) *PostCommentForComparedCommitOutput {
27207	s.RepositoryName = &v
27208	return s
27209}
27210
27211type PostCommentForPullRequestInput struct {
27212	_ struct{} `type:"structure"`
27213
27214	// The full commit ID of the commit in the source branch that is the current
27215	// tip of the branch for the pull request when you post the comment.
27216	//
27217	// AfterCommitId is a required field
27218	AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
27219
27220	// The full commit ID of the commit in the destination branch that was the tip
27221	// of the branch at the time the pull request was created.
27222	//
27223	// BeforeCommitId is a required field
27224	BeforeCommitId *string `locationName:"beforeCommitId" type:"string" required:"true"`
27225
27226	// A unique, client-generated idempotency token that, when provided in a request,
27227	// ensures the request cannot be repeated with a changed parameter. If a request
27228	// is received with the same parameters and a token is included, the request
27229	// returns information about the initial request that used that token.
27230	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
27231
27232	// The content of your comment on the change.
27233	//
27234	// Content is a required field
27235	Content *string `locationName:"content" type:"string" required:"true"`
27236
27237	// The location of the change where you want to post your comment. If no location
27238	// is provided, the comment is posted as a general comment on the pull request
27239	// difference between the before commit ID and the after commit ID.
27240	Location *Location `locationName:"location" type:"structure"`
27241
27242	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
27243	//
27244	// PullRequestId is a required field
27245	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
27246
27247	// The name of the repository where you want to post a comment on a pull request.
27248	//
27249	// RepositoryName is a required field
27250	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
27251}
27252
27253// String returns the string representation
27254func (s PostCommentForPullRequestInput) String() string {
27255	return awsutil.Prettify(s)
27256}
27257
27258// GoString returns the string representation
27259func (s PostCommentForPullRequestInput) GoString() string {
27260	return s.String()
27261}
27262
27263// Validate inspects the fields of the type to determine if they are valid.
27264func (s *PostCommentForPullRequestInput) Validate() error {
27265	invalidParams := request.ErrInvalidParams{Context: "PostCommentForPullRequestInput"}
27266	if s.AfterCommitId == nil {
27267		invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
27268	}
27269	if s.BeforeCommitId == nil {
27270		invalidParams.Add(request.NewErrParamRequired("BeforeCommitId"))
27271	}
27272	if s.Content == nil {
27273		invalidParams.Add(request.NewErrParamRequired("Content"))
27274	}
27275	if s.PullRequestId == nil {
27276		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
27277	}
27278	if s.RepositoryName == nil {
27279		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
27280	}
27281	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
27282		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
27283	}
27284
27285	if invalidParams.Len() > 0 {
27286		return invalidParams
27287	}
27288	return nil
27289}
27290
27291// SetAfterCommitId sets the AfterCommitId field's value.
27292func (s *PostCommentForPullRequestInput) SetAfterCommitId(v string) *PostCommentForPullRequestInput {
27293	s.AfterCommitId = &v
27294	return s
27295}
27296
27297// SetBeforeCommitId sets the BeforeCommitId field's value.
27298func (s *PostCommentForPullRequestInput) SetBeforeCommitId(v string) *PostCommentForPullRequestInput {
27299	s.BeforeCommitId = &v
27300	return s
27301}
27302
27303// SetClientRequestToken sets the ClientRequestToken field's value.
27304func (s *PostCommentForPullRequestInput) SetClientRequestToken(v string) *PostCommentForPullRequestInput {
27305	s.ClientRequestToken = &v
27306	return s
27307}
27308
27309// SetContent sets the Content field's value.
27310func (s *PostCommentForPullRequestInput) SetContent(v string) *PostCommentForPullRequestInput {
27311	s.Content = &v
27312	return s
27313}
27314
27315// SetLocation sets the Location field's value.
27316func (s *PostCommentForPullRequestInput) SetLocation(v *Location) *PostCommentForPullRequestInput {
27317	s.Location = v
27318	return s
27319}
27320
27321// SetPullRequestId sets the PullRequestId field's value.
27322func (s *PostCommentForPullRequestInput) SetPullRequestId(v string) *PostCommentForPullRequestInput {
27323	s.PullRequestId = &v
27324	return s
27325}
27326
27327// SetRepositoryName sets the RepositoryName field's value.
27328func (s *PostCommentForPullRequestInput) SetRepositoryName(v string) *PostCommentForPullRequestInput {
27329	s.RepositoryName = &v
27330	return s
27331}
27332
27333type PostCommentForPullRequestOutput struct {
27334	_ struct{} `type:"structure"`
27335
27336	// In the directionality of the pull request, the blob ID of the after blob.
27337	AfterBlobId *string `locationName:"afterBlobId" type:"string"`
27338
27339	// The full commit ID of the commit in the destination branch where the pull
27340	// request is merged.
27341	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
27342
27343	// In the directionality of the pull request, the blob ID of the before blob.
27344	BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
27345
27346	// The full commit ID of the commit in the source branch used to create the
27347	// pull request, or in the case of an updated pull request, the full commit
27348	// ID of the commit used to update the pull request.
27349	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
27350
27351	// The content of the comment you posted.
27352	Comment *Comment `locationName:"comment" type:"structure"`
27353
27354	// The location of the change where you posted your comment.
27355	Location *Location `locationName:"location" type:"structure"`
27356
27357	// The system-generated ID of the pull request.
27358	PullRequestId *string `locationName:"pullRequestId" type:"string"`
27359
27360	// The name of the repository where you posted a comment on a pull request.
27361	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
27362}
27363
27364// String returns the string representation
27365func (s PostCommentForPullRequestOutput) String() string {
27366	return awsutil.Prettify(s)
27367}
27368
27369// GoString returns the string representation
27370func (s PostCommentForPullRequestOutput) GoString() string {
27371	return s.String()
27372}
27373
27374// SetAfterBlobId sets the AfterBlobId field's value.
27375func (s *PostCommentForPullRequestOutput) SetAfterBlobId(v string) *PostCommentForPullRequestOutput {
27376	s.AfterBlobId = &v
27377	return s
27378}
27379
27380// SetAfterCommitId sets the AfterCommitId field's value.
27381func (s *PostCommentForPullRequestOutput) SetAfterCommitId(v string) *PostCommentForPullRequestOutput {
27382	s.AfterCommitId = &v
27383	return s
27384}
27385
27386// SetBeforeBlobId sets the BeforeBlobId field's value.
27387func (s *PostCommentForPullRequestOutput) SetBeforeBlobId(v string) *PostCommentForPullRequestOutput {
27388	s.BeforeBlobId = &v
27389	return s
27390}
27391
27392// SetBeforeCommitId sets the BeforeCommitId field's value.
27393func (s *PostCommentForPullRequestOutput) SetBeforeCommitId(v string) *PostCommentForPullRequestOutput {
27394	s.BeforeCommitId = &v
27395	return s
27396}
27397
27398// SetComment sets the Comment field's value.
27399func (s *PostCommentForPullRequestOutput) SetComment(v *Comment) *PostCommentForPullRequestOutput {
27400	s.Comment = v
27401	return s
27402}
27403
27404// SetLocation sets the Location field's value.
27405func (s *PostCommentForPullRequestOutput) SetLocation(v *Location) *PostCommentForPullRequestOutput {
27406	s.Location = v
27407	return s
27408}
27409
27410// SetPullRequestId sets the PullRequestId field's value.
27411func (s *PostCommentForPullRequestOutput) SetPullRequestId(v string) *PostCommentForPullRequestOutput {
27412	s.PullRequestId = &v
27413	return s
27414}
27415
27416// SetRepositoryName sets the RepositoryName field's value.
27417func (s *PostCommentForPullRequestOutput) SetRepositoryName(v string) *PostCommentForPullRequestOutput {
27418	s.RepositoryName = &v
27419	return s
27420}
27421
27422type PostCommentReplyInput struct {
27423	_ struct{} `type:"structure"`
27424
27425	// A unique, client-generated idempotency token that, when provided in a request,
27426	// ensures the request cannot be repeated with a changed parameter. If a request
27427	// is received with the same parameters and a token is included, the request
27428	// returns information about the initial request that used that token.
27429	ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
27430
27431	// The contents of your reply to a comment.
27432	//
27433	// Content is a required field
27434	Content *string `locationName:"content" type:"string" required:"true"`
27435
27436	// The system-generated ID of the comment to which you want to reply. To get
27437	// this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
27438	//
27439	// InReplyTo is a required field
27440	InReplyTo *string `locationName:"inReplyTo" type:"string" required:"true"`
27441}
27442
27443// String returns the string representation
27444func (s PostCommentReplyInput) String() string {
27445	return awsutil.Prettify(s)
27446}
27447
27448// GoString returns the string representation
27449func (s PostCommentReplyInput) GoString() string {
27450	return s.String()
27451}
27452
27453// Validate inspects the fields of the type to determine if they are valid.
27454func (s *PostCommentReplyInput) Validate() error {
27455	invalidParams := request.ErrInvalidParams{Context: "PostCommentReplyInput"}
27456	if s.Content == nil {
27457		invalidParams.Add(request.NewErrParamRequired("Content"))
27458	}
27459	if s.InReplyTo == nil {
27460		invalidParams.Add(request.NewErrParamRequired("InReplyTo"))
27461	}
27462
27463	if invalidParams.Len() > 0 {
27464		return invalidParams
27465	}
27466	return nil
27467}
27468
27469// SetClientRequestToken sets the ClientRequestToken field's value.
27470func (s *PostCommentReplyInput) SetClientRequestToken(v string) *PostCommentReplyInput {
27471	s.ClientRequestToken = &v
27472	return s
27473}
27474
27475// SetContent sets the Content field's value.
27476func (s *PostCommentReplyInput) SetContent(v string) *PostCommentReplyInput {
27477	s.Content = &v
27478	return s
27479}
27480
27481// SetInReplyTo sets the InReplyTo field's value.
27482func (s *PostCommentReplyInput) SetInReplyTo(v string) *PostCommentReplyInput {
27483	s.InReplyTo = &v
27484	return s
27485}
27486
27487type PostCommentReplyOutput struct {
27488	_ struct{} `type:"structure"`
27489
27490	// Information about the reply to a comment.
27491	Comment *Comment `locationName:"comment" type:"structure"`
27492}
27493
27494// String returns the string representation
27495func (s PostCommentReplyOutput) String() string {
27496	return awsutil.Prettify(s)
27497}
27498
27499// GoString returns the string representation
27500func (s PostCommentReplyOutput) GoString() string {
27501	return s.String()
27502}
27503
27504// SetComment sets the Comment field's value.
27505func (s *PostCommentReplyOutput) SetComment(v *Comment) *PostCommentReplyOutput {
27506	s.Comment = v
27507	return s
27508}
27509
27510// Returns information about a pull request.
27511type PullRequest struct {
27512	_ struct{} `type:"structure"`
27513
27514	// The approval rules applied to the pull request.
27515	ApprovalRules []*ApprovalRule `locationName:"approvalRules" type:"list"`
27516
27517	// The Amazon Resource Name (ARN) of the user who created the pull request.
27518	AuthorArn *string `locationName:"authorArn" type:"string"`
27519
27520	// A unique, client-generated idempotency token that, when provided in a request,
27521	// ensures the request cannot be repeated with a changed parameter. If a request
27522	// is received with the same parameters and a token is included, the request
27523	// returns information about the initial request that used that token.
27524	ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
27525
27526	// The date and time the pull request was originally created, in timestamp format.
27527	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
27528
27529	// The user-defined description of the pull request. This description can be
27530	// used to clarify what should be reviewed and other details of the request.
27531	Description *string `locationName:"description" type:"string"`
27532
27533	// The day and time of the last user or system activity on the pull request,
27534	// in timestamp format.
27535	LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"`
27536
27537	// The system-generated ID of the pull request.
27538	PullRequestId *string `locationName:"pullRequestId" type:"string"`
27539
27540	// The status of the pull request. Pull request status can only change from
27541	// OPEN to CLOSED.
27542	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
27543
27544	// The targets of the pull request, including the source branch and destination
27545	// branch for the pull request.
27546	PullRequestTargets []*PullRequestTarget `locationName:"pullRequestTargets" type:"list"`
27547
27548	// The system-generated revision ID for the pull request.
27549	RevisionId *string `locationName:"revisionId" type:"string"`
27550
27551	// The user-defined title of the pull request. This title is displayed in the
27552	// list of pull requests to other repository users.
27553	Title *string `locationName:"title" type:"string"`
27554}
27555
27556// String returns the string representation
27557func (s PullRequest) String() string {
27558	return awsutil.Prettify(s)
27559}
27560
27561// GoString returns the string representation
27562func (s PullRequest) GoString() string {
27563	return s.String()
27564}
27565
27566// SetApprovalRules sets the ApprovalRules field's value.
27567func (s *PullRequest) SetApprovalRules(v []*ApprovalRule) *PullRequest {
27568	s.ApprovalRules = v
27569	return s
27570}
27571
27572// SetAuthorArn sets the AuthorArn field's value.
27573func (s *PullRequest) SetAuthorArn(v string) *PullRequest {
27574	s.AuthorArn = &v
27575	return s
27576}
27577
27578// SetClientRequestToken sets the ClientRequestToken field's value.
27579func (s *PullRequest) SetClientRequestToken(v string) *PullRequest {
27580	s.ClientRequestToken = &v
27581	return s
27582}
27583
27584// SetCreationDate sets the CreationDate field's value.
27585func (s *PullRequest) SetCreationDate(v time.Time) *PullRequest {
27586	s.CreationDate = &v
27587	return s
27588}
27589
27590// SetDescription sets the Description field's value.
27591func (s *PullRequest) SetDescription(v string) *PullRequest {
27592	s.Description = &v
27593	return s
27594}
27595
27596// SetLastActivityDate sets the LastActivityDate field's value.
27597func (s *PullRequest) SetLastActivityDate(v time.Time) *PullRequest {
27598	s.LastActivityDate = &v
27599	return s
27600}
27601
27602// SetPullRequestId sets the PullRequestId field's value.
27603func (s *PullRequest) SetPullRequestId(v string) *PullRequest {
27604	s.PullRequestId = &v
27605	return s
27606}
27607
27608// SetPullRequestStatus sets the PullRequestStatus field's value.
27609func (s *PullRequest) SetPullRequestStatus(v string) *PullRequest {
27610	s.PullRequestStatus = &v
27611	return s
27612}
27613
27614// SetPullRequestTargets sets the PullRequestTargets field's value.
27615func (s *PullRequest) SetPullRequestTargets(v []*PullRequestTarget) *PullRequest {
27616	s.PullRequestTargets = v
27617	return s
27618}
27619
27620// SetRevisionId sets the RevisionId field's value.
27621func (s *PullRequest) SetRevisionId(v string) *PullRequest {
27622	s.RevisionId = &v
27623	return s
27624}
27625
27626// SetTitle sets the Title field's value.
27627func (s *PullRequest) SetTitle(v string) *PullRequest {
27628	s.Title = &v
27629	return s
27630}
27631
27632// The pull request status cannot be updated because it is already closed.
27633type PullRequestAlreadyClosedException struct {
27634	_            struct{}                  `type:"structure"`
27635	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
27636
27637	Message_ *string `locationName:"message" type:"string"`
27638}
27639
27640// String returns the string representation
27641func (s PullRequestAlreadyClosedException) String() string {
27642	return awsutil.Prettify(s)
27643}
27644
27645// GoString returns the string representation
27646func (s PullRequestAlreadyClosedException) GoString() string {
27647	return s.String()
27648}
27649
27650func newErrorPullRequestAlreadyClosedException(v protocol.ResponseMetadata) error {
27651	return &PullRequestAlreadyClosedException{
27652		RespMetadata: v,
27653	}
27654}
27655
27656// Code returns the exception type name.
27657func (s *PullRequestAlreadyClosedException) Code() string {
27658	return "PullRequestAlreadyClosedException"
27659}
27660
27661// Message returns the exception's message.
27662func (s *PullRequestAlreadyClosedException) Message() string {
27663	if s.Message_ != nil {
27664		return *s.Message_
27665	}
27666	return ""
27667}
27668
27669// OrigErr always returns nil, satisfies awserr.Error interface.
27670func (s *PullRequestAlreadyClosedException) OrigErr() error {
27671	return nil
27672}
27673
27674func (s *PullRequestAlreadyClosedException) Error() string {
27675	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
27676}
27677
27678// Status code returns the HTTP status code for the request's response error.
27679func (s *PullRequestAlreadyClosedException) StatusCode() int {
27680	return s.RespMetadata.StatusCode
27681}
27682
27683// RequestID returns the service's response RequestID for request.
27684func (s *PullRequestAlreadyClosedException) RequestID() string {
27685	return s.RespMetadata.RequestID
27686}
27687
27688// The pull request cannot be merged because one or more approval rules applied
27689// to the pull request have conditions that have not been met.
27690type PullRequestApprovalRulesNotSatisfiedException struct {
27691	_            struct{}                  `type:"structure"`
27692	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
27693
27694	Message_ *string `locationName:"message" type:"string"`
27695}
27696
27697// String returns the string representation
27698func (s PullRequestApprovalRulesNotSatisfiedException) String() string {
27699	return awsutil.Prettify(s)
27700}
27701
27702// GoString returns the string representation
27703func (s PullRequestApprovalRulesNotSatisfiedException) GoString() string {
27704	return s.String()
27705}
27706
27707func newErrorPullRequestApprovalRulesNotSatisfiedException(v protocol.ResponseMetadata) error {
27708	return &PullRequestApprovalRulesNotSatisfiedException{
27709		RespMetadata: v,
27710	}
27711}
27712
27713// Code returns the exception type name.
27714func (s *PullRequestApprovalRulesNotSatisfiedException) Code() string {
27715	return "PullRequestApprovalRulesNotSatisfiedException"
27716}
27717
27718// Message returns the exception's message.
27719func (s *PullRequestApprovalRulesNotSatisfiedException) Message() string {
27720	if s.Message_ != nil {
27721		return *s.Message_
27722	}
27723	return ""
27724}
27725
27726// OrigErr always returns nil, satisfies awserr.Error interface.
27727func (s *PullRequestApprovalRulesNotSatisfiedException) OrigErr() error {
27728	return nil
27729}
27730
27731func (s *PullRequestApprovalRulesNotSatisfiedException) Error() string {
27732	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
27733}
27734
27735// Status code returns the HTTP status code for the request's response error.
27736func (s *PullRequestApprovalRulesNotSatisfiedException) StatusCode() int {
27737	return s.RespMetadata.StatusCode
27738}
27739
27740// RequestID returns the service's response RequestID for request.
27741func (s *PullRequestApprovalRulesNotSatisfiedException) RequestID() string {
27742	return s.RespMetadata.RequestID
27743}
27744
27745// The approval cannot be applied because the user approving the pull request
27746// matches the user who created the pull request. You cannot approve a pull
27747// request that you created.
27748type PullRequestCannotBeApprovedByAuthorException struct {
27749	_            struct{}                  `type:"structure"`
27750	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
27751
27752	Message_ *string `locationName:"message" type:"string"`
27753}
27754
27755// String returns the string representation
27756func (s PullRequestCannotBeApprovedByAuthorException) String() string {
27757	return awsutil.Prettify(s)
27758}
27759
27760// GoString returns the string representation
27761func (s PullRequestCannotBeApprovedByAuthorException) GoString() string {
27762	return s.String()
27763}
27764
27765func newErrorPullRequestCannotBeApprovedByAuthorException(v protocol.ResponseMetadata) error {
27766	return &PullRequestCannotBeApprovedByAuthorException{
27767		RespMetadata: v,
27768	}
27769}
27770
27771// Code returns the exception type name.
27772func (s *PullRequestCannotBeApprovedByAuthorException) Code() string {
27773	return "PullRequestCannotBeApprovedByAuthorException"
27774}
27775
27776// Message returns the exception's message.
27777func (s *PullRequestCannotBeApprovedByAuthorException) Message() string {
27778	if s.Message_ != nil {
27779		return *s.Message_
27780	}
27781	return ""
27782}
27783
27784// OrigErr always returns nil, satisfies awserr.Error interface.
27785func (s *PullRequestCannotBeApprovedByAuthorException) OrigErr() error {
27786	return nil
27787}
27788
27789func (s *PullRequestCannotBeApprovedByAuthorException) Error() string {
27790	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
27791}
27792
27793// Status code returns the HTTP status code for the request's response error.
27794func (s *PullRequestCannotBeApprovedByAuthorException) StatusCode() int {
27795	return s.RespMetadata.StatusCode
27796}
27797
27798// RequestID returns the service's response RequestID for request.
27799func (s *PullRequestCannotBeApprovedByAuthorException) RequestID() string {
27800	return s.RespMetadata.RequestID
27801}
27802
27803// Metadata about the pull request that is used when comparing the pull request
27804// source with its destination.
27805type PullRequestCreatedEventMetadata struct {
27806	_ struct{} `type:"structure"`
27807
27808	// The commit ID of the tip of the branch specified as the destination branch
27809	// when the pull request was created.
27810	DestinationCommitId *string `locationName:"destinationCommitId" type:"string"`
27811
27812	// The commit ID of the most recent commit that the source branch and the destination
27813	// branch have in common.
27814	MergeBase *string `locationName:"mergeBase" type:"string"`
27815
27816	// The name of the repository where the pull request was created.
27817	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
27818
27819	// The commit ID on the source branch used when the pull request was created.
27820	SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
27821}
27822
27823// String returns the string representation
27824func (s PullRequestCreatedEventMetadata) String() string {
27825	return awsutil.Prettify(s)
27826}
27827
27828// GoString returns the string representation
27829func (s PullRequestCreatedEventMetadata) GoString() string {
27830	return s.String()
27831}
27832
27833// SetDestinationCommitId sets the DestinationCommitId field's value.
27834func (s *PullRequestCreatedEventMetadata) SetDestinationCommitId(v string) *PullRequestCreatedEventMetadata {
27835	s.DestinationCommitId = &v
27836	return s
27837}
27838
27839// SetMergeBase sets the MergeBase field's value.
27840func (s *PullRequestCreatedEventMetadata) SetMergeBase(v string) *PullRequestCreatedEventMetadata {
27841	s.MergeBase = &v
27842	return s
27843}
27844
27845// SetRepositoryName sets the RepositoryName field's value.
27846func (s *PullRequestCreatedEventMetadata) SetRepositoryName(v string) *PullRequestCreatedEventMetadata {
27847	s.RepositoryName = &v
27848	return s
27849}
27850
27851// SetSourceCommitId sets the SourceCommitId field's value.
27852func (s *PullRequestCreatedEventMetadata) SetSourceCommitId(v string) *PullRequestCreatedEventMetadata {
27853	s.SourceCommitId = &v
27854	return s
27855}
27856
27857// The pull request ID could not be found. Make sure that you have specified
27858// the correct repository name and pull request ID, and then try again.
27859type PullRequestDoesNotExistException struct {
27860	_            struct{}                  `type:"structure"`
27861	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
27862
27863	Message_ *string `locationName:"message" type:"string"`
27864}
27865
27866// String returns the string representation
27867func (s PullRequestDoesNotExistException) String() string {
27868	return awsutil.Prettify(s)
27869}
27870
27871// GoString returns the string representation
27872func (s PullRequestDoesNotExistException) GoString() string {
27873	return s.String()
27874}
27875
27876func newErrorPullRequestDoesNotExistException(v protocol.ResponseMetadata) error {
27877	return &PullRequestDoesNotExistException{
27878		RespMetadata: v,
27879	}
27880}
27881
27882// Code returns the exception type name.
27883func (s *PullRequestDoesNotExistException) Code() string {
27884	return "PullRequestDoesNotExistException"
27885}
27886
27887// Message returns the exception's message.
27888func (s *PullRequestDoesNotExistException) Message() string {
27889	if s.Message_ != nil {
27890		return *s.Message_
27891	}
27892	return ""
27893}
27894
27895// OrigErr always returns nil, satisfies awserr.Error interface.
27896func (s *PullRequestDoesNotExistException) OrigErr() error {
27897	return nil
27898}
27899
27900func (s *PullRequestDoesNotExistException) Error() string {
27901	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
27902}
27903
27904// Status code returns the HTTP status code for the request's response error.
27905func (s *PullRequestDoesNotExistException) StatusCode() int {
27906	return s.RespMetadata.StatusCode
27907}
27908
27909// RequestID returns the service's response RequestID for request.
27910func (s *PullRequestDoesNotExistException) RequestID() string {
27911	return s.RespMetadata.RequestID
27912}
27913
27914// Returns information about a pull request event.
27915type PullRequestEvent struct {
27916	_ struct{} `type:"structure"`
27917
27918	// The Amazon Resource Name (ARN) of the user whose actions resulted in the
27919	// event. Examples include updating the pull request with more commits or changing
27920	// the status of a pull request.
27921	ActorArn *string `locationName:"actorArn" type:"string"`
27922
27923	// Information about a pull request event.
27924	ApprovalRuleEventMetadata *ApprovalRuleEventMetadata `locationName:"approvalRuleEventMetadata" type:"structure"`
27925
27926	// Information about an approval rule override event for a pull request.
27927	ApprovalRuleOverriddenEventMetadata *ApprovalRuleOverriddenEventMetadata `locationName:"approvalRuleOverriddenEventMetadata" type:"structure"`
27928
27929	// Information about an approval state change for a pull request.
27930	ApprovalStateChangedEventMetadata *ApprovalStateChangedEventMetadata `locationName:"approvalStateChangedEventMetadata" type:"structure"`
27931
27932	// The day and time of the pull request event, in timestamp format.
27933	EventDate *time.Time `locationName:"eventDate" type:"timestamp"`
27934
27935	// Information about the source and destination branches for the pull request.
27936	PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"`
27937
27938	// The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED)
27939	// or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
27940	PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"`
27941
27942	// The system-generated ID of the pull request.
27943	PullRequestId *string `locationName:"pullRequestId" type:"string"`
27944
27945	// Information about the change in mergability state for the pull request event.
27946	PullRequestMergedStateChangedEventMetadata *PullRequestMergedStateChangedEventMetadata `locationName:"pullRequestMergedStateChangedEventMetadata" type:"structure"`
27947
27948	// Information about the updated source branch for the pull request event.
27949	PullRequestSourceReferenceUpdatedEventMetadata *PullRequestSourceReferenceUpdatedEventMetadata `locationName:"pullRequestSourceReferenceUpdatedEventMetadata" type:"structure"`
27950
27951	// Information about the change in status for the pull request event.
27952	PullRequestStatusChangedEventMetadata *PullRequestStatusChangedEventMetadata `locationName:"pullRequestStatusChangedEventMetadata" type:"structure"`
27953}
27954
27955// String returns the string representation
27956func (s PullRequestEvent) String() string {
27957	return awsutil.Prettify(s)
27958}
27959
27960// GoString returns the string representation
27961func (s PullRequestEvent) GoString() string {
27962	return s.String()
27963}
27964
27965// SetActorArn sets the ActorArn field's value.
27966func (s *PullRequestEvent) SetActorArn(v string) *PullRequestEvent {
27967	s.ActorArn = &v
27968	return s
27969}
27970
27971// SetApprovalRuleEventMetadata sets the ApprovalRuleEventMetadata field's value.
27972func (s *PullRequestEvent) SetApprovalRuleEventMetadata(v *ApprovalRuleEventMetadata) *PullRequestEvent {
27973	s.ApprovalRuleEventMetadata = v
27974	return s
27975}
27976
27977// SetApprovalRuleOverriddenEventMetadata sets the ApprovalRuleOverriddenEventMetadata field's value.
27978func (s *PullRequestEvent) SetApprovalRuleOverriddenEventMetadata(v *ApprovalRuleOverriddenEventMetadata) *PullRequestEvent {
27979	s.ApprovalRuleOverriddenEventMetadata = v
27980	return s
27981}
27982
27983// SetApprovalStateChangedEventMetadata sets the ApprovalStateChangedEventMetadata field's value.
27984func (s *PullRequestEvent) SetApprovalStateChangedEventMetadata(v *ApprovalStateChangedEventMetadata) *PullRequestEvent {
27985	s.ApprovalStateChangedEventMetadata = v
27986	return s
27987}
27988
27989// SetEventDate sets the EventDate field's value.
27990func (s *PullRequestEvent) SetEventDate(v time.Time) *PullRequestEvent {
27991	s.EventDate = &v
27992	return s
27993}
27994
27995// SetPullRequestCreatedEventMetadata sets the PullRequestCreatedEventMetadata field's value.
27996func (s *PullRequestEvent) SetPullRequestCreatedEventMetadata(v *PullRequestCreatedEventMetadata) *PullRequestEvent {
27997	s.PullRequestCreatedEventMetadata = v
27998	return s
27999}
28000
28001// SetPullRequestEventType sets the PullRequestEventType field's value.
28002func (s *PullRequestEvent) SetPullRequestEventType(v string) *PullRequestEvent {
28003	s.PullRequestEventType = &v
28004	return s
28005}
28006
28007// SetPullRequestId sets the PullRequestId field's value.
28008func (s *PullRequestEvent) SetPullRequestId(v string) *PullRequestEvent {
28009	s.PullRequestId = &v
28010	return s
28011}
28012
28013// SetPullRequestMergedStateChangedEventMetadata sets the PullRequestMergedStateChangedEventMetadata field's value.
28014func (s *PullRequestEvent) SetPullRequestMergedStateChangedEventMetadata(v *PullRequestMergedStateChangedEventMetadata) *PullRequestEvent {
28015	s.PullRequestMergedStateChangedEventMetadata = v
28016	return s
28017}
28018
28019// SetPullRequestSourceReferenceUpdatedEventMetadata sets the PullRequestSourceReferenceUpdatedEventMetadata field's value.
28020func (s *PullRequestEvent) SetPullRequestSourceReferenceUpdatedEventMetadata(v *PullRequestSourceReferenceUpdatedEventMetadata) *PullRequestEvent {
28021	s.PullRequestSourceReferenceUpdatedEventMetadata = v
28022	return s
28023}
28024
28025// SetPullRequestStatusChangedEventMetadata sets the PullRequestStatusChangedEventMetadata field's value.
28026func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullRequestStatusChangedEventMetadata) *PullRequestEvent {
28027	s.PullRequestStatusChangedEventMetadata = v
28028	return s
28029}
28030
28031// A pull request ID is required, but none was provided.
28032type PullRequestIdRequiredException struct {
28033	_            struct{}                  `type:"structure"`
28034	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
28035
28036	Message_ *string `locationName:"message" type:"string"`
28037}
28038
28039// String returns the string representation
28040func (s PullRequestIdRequiredException) String() string {
28041	return awsutil.Prettify(s)
28042}
28043
28044// GoString returns the string representation
28045func (s PullRequestIdRequiredException) GoString() string {
28046	return s.String()
28047}
28048
28049func newErrorPullRequestIdRequiredException(v protocol.ResponseMetadata) error {
28050	return &PullRequestIdRequiredException{
28051		RespMetadata: v,
28052	}
28053}
28054
28055// Code returns the exception type name.
28056func (s *PullRequestIdRequiredException) Code() string {
28057	return "PullRequestIdRequiredException"
28058}
28059
28060// Message returns the exception's message.
28061func (s *PullRequestIdRequiredException) Message() string {
28062	if s.Message_ != nil {
28063		return *s.Message_
28064	}
28065	return ""
28066}
28067
28068// OrigErr always returns nil, satisfies awserr.Error interface.
28069func (s *PullRequestIdRequiredException) OrigErr() error {
28070	return nil
28071}
28072
28073func (s *PullRequestIdRequiredException) Error() string {
28074	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
28075}
28076
28077// Status code returns the HTTP status code for the request's response error.
28078func (s *PullRequestIdRequiredException) StatusCode() int {
28079	return s.RespMetadata.StatusCode
28080}
28081
28082// RequestID returns the service's response RequestID for request.
28083func (s *PullRequestIdRequiredException) RequestID() string {
28084	return s.RespMetadata.RequestID
28085}
28086
28087// Returns information about the change in the merge state for a pull request
28088// event.
28089type PullRequestMergedStateChangedEventMetadata struct {
28090	_ struct{} `type:"structure"`
28091
28092	// The name of the branch that the pull request is merged into.
28093	DestinationReference *string `locationName:"destinationReference" type:"string"`
28094
28095	// Information about the merge state change event.
28096	MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"`
28097
28098	// The name of the repository where the pull request was created.
28099	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
28100}
28101
28102// String returns the string representation
28103func (s PullRequestMergedStateChangedEventMetadata) String() string {
28104	return awsutil.Prettify(s)
28105}
28106
28107// GoString returns the string representation
28108func (s PullRequestMergedStateChangedEventMetadata) GoString() string {
28109	return s.String()
28110}
28111
28112// SetDestinationReference sets the DestinationReference field's value.
28113func (s *PullRequestMergedStateChangedEventMetadata) SetDestinationReference(v string) *PullRequestMergedStateChangedEventMetadata {
28114	s.DestinationReference = &v
28115	return s
28116}
28117
28118// SetMergeMetadata sets the MergeMetadata field's value.
28119func (s *PullRequestMergedStateChangedEventMetadata) SetMergeMetadata(v *MergeMetadata) *PullRequestMergedStateChangedEventMetadata {
28120	s.MergeMetadata = v
28121	return s
28122}
28123
28124// SetRepositoryName sets the RepositoryName field's value.
28125func (s *PullRequestMergedStateChangedEventMetadata) SetRepositoryName(v string) *PullRequestMergedStateChangedEventMetadata {
28126	s.RepositoryName = &v
28127	return s
28128}
28129
28130// Information about an update to the source branch of a pull request.
28131type PullRequestSourceReferenceUpdatedEventMetadata struct {
28132	_ struct{} `type:"structure"`
28133
28134	// The full commit ID of the commit in the source branch that was the tip of
28135	// the branch at the time the pull request was updated.
28136	AfterCommitId *string `locationName:"afterCommitId" type:"string"`
28137
28138	// The full commit ID of the commit in the destination branch that was the tip
28139	// of the branch at the time the pull request was updated.
28140	BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
28141
28142	// The commit ID of the most recent commit that the source branch and the destination
28143	// branch have in common.
28144	MergeBase *string `locationName:"mergeBase" type:"string"`
28145
28146	// The name of the repository where the pull request was updated.
28147	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
28148}
28149
28150// String returns the string representation
28151func (s PullRequestSourceReferenceUpdatedEventMetadata) String() string {
28152	return awsutil.Prettify(s)
28153}
28154
28155// GoString returns the string representation
28156func (s PullRequestSourceReferenceUpdatedEventMetadata) GoString() string {
28157	return s.String()
28158}
28159
28160// SetAfterCommitId sets the AfterCommitId field's value.
28161func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetAfterCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
28162	s.AfterCommitId = &v
28163	return s
28164}
28165
28166// SetBeforeCommitId sets the BeforeCommitId field's value.
28167func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetBeforeCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
28168	s.BeforeCommitId = &v
28169	return s
28170}
28171
28172// SetMergeBase sets the MergeBase field's value.
28173func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetMergeBase(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
28174	s.MergeBase = &v
28175	return s
28176}
28177
28178// SetRepositoryName sets the RepositoryName field's value.
28179func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetRepositoryName(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
28180	s.RepositoryName = &v
28181	return s
28182}
28183
28184// Information about a change to the status of a pull request.
28185type PullRequestStatusChangedEventMetadata struct {
28186	_ struct{} `type:"structure"`
28187
28188	// The changed status of the pull request.
28189	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
28190}
28191
28192// String returns the string representation
28193func (s PullRequestStatusChangedEventMetadata) String() string {
28194	return awsutil.Prettify(s)
28195}
28196
28197// GoString returns the string representation
28198func (s PullRequestStatusChangedEventMetadata) GoString() string {
28199	return s.String()
28200}
28201
28202// SetPullRequestStatus sets the PullRequestStatus field's value.
28203func (s *PullRequestStatusChangedEventMetadata) SetPullRequestStatus(v string) *PullRequestStatusChangedEventMetadata {
28204	s.PullRequestStatus = &v
28205	return s
28206}
28207
28208// A pull request status is required, but none was provided.
28209type PullRequestStatusRequiredException struct {
28210	_            struct{}                  `type:"structure"`
28211	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
28212
28213	Message_ *string `locationName:"message" type:"string"`
28214}
28215
28216// String returns the string representation
28217func (s PullRequestStatusRequiredException) String() string {
28218	return awsutil.Prettify(s)
28219}
28220
28221// GoString returns the string representation
28222func (s PullRequestStatusRequiredException) GoString() string {
28223	return s.String()
28224}
28225
28226func newErrorPullRequestStatusRequiredException(v protocol.ResponseMetadata) error {
28227	return &PullRequestStatusRequiredException{
28228		RespMetadata: v,
28229	}
28230}
28231
28232// Code returns the exception type name.
28233func (s *PullRequestStatusRequiredException) Code() string {
28234	return "PullRequestStatusRequiredException"
28235}
28236
28237// Message returns the exception's message.
28238func (s *PullRequestStatusRequiredException) Message() string {
28239	if s.Message_ != nil {
28240		return *s.Message_
28241	}
28242	return ""
28243}
28244
28245// OrigErr always returns nil, satisfies awserr.Error interface.
28246func (s *PullRequestStatusRequiredException) OrigErr() error {
28247	return nil
28248}
28249
28250func (s *PullRequestStatusRequiredException) Error() string {
28251	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
28252}
28253
28254// Status code returns the HTTP status code for the request's response error.
28255func (s *PullRequestStatusRequiredException) StatusCode() int {
28256	return s.RespMetadata.StatusCode
28257}
28258
28259// RequestID returns the service's response RequestID for request.
28260func (s *PullRequestStatusRequiredException) RequestID() string {
28261	return s.RespMetadata.RequestID
28262}
28263
28264// Returns information about a pull request target.
28265type PullRequestTarget struct {
28266	_ struct{} `type:"structure"`
28267
28268	// The full commit ID that is the tip of the destination branch. This is the
28269	// commit where the pull request was or will be merged.
28270	DestinationCommit *string `locationName:"destinationCommit" type:"string"`
28271
28272	// The branch of the repository where the pull request changes are merged. Also
28273	// known as the destination branch.
28274	DestinationReference *string `locationName:"destinationReference" type:"string"`
28275
28276	// The commit ID of the most recent commit that the source branch and the destination
28277	// branch have in common.
28278	MergeBase *string `locationName:"mergeBase" type:"string"`
28279
28280	// Returns metadata about the state of the merge, including whether the merge
28281	// has been made.
28282	MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"`
28283
28284	// The name of the repository that contains the pull request source and destination
28285	// branches.
28286	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
28287
28288	// The full commit ID of the tip of the source branch used to create the pull
28289	// request. If the pull request branch is updated by a push while the pull request
28290	// is open, the commit ID changes to reflect the new tip of the branch.
28291	SourceCommit *string `locationName:"sourceCommit" type:"string"`
28292
28293	// The branch of the repository that contains the changes for the pull request.
28294	// Also known as the source branch.
28295	SourceReference *string `locationName:"sourceReference" type:"string"`
28296}
28297
28298// String returns the string representation
28299func (s PullRequestTarget) String() string {
28300	return awsutil.Prettify(s)
28301}
28302
28303// GoString returns the string representation
28304func (s PullRequestTarget) GoString() string {
28305	return s.String()
28306}
28307
28308// SetDestinationCommit sets the DestinationCommit field's value.
28309func (s *PullRequestTarget) SetDestinationCommit(v string) *PullRequestTarget {
28310	s.DestinationCommit = &v
28311	return s
28312}
28313
28314// SetDestinationReference sets the DestinationReference field's value.
28315func (s *PullRequestTarget) SetDestinationReference(v string) *PullRequestTarget {
28316	s.DestinationReference = &v
28317	return s
28318}
28319
28320// SetMergeBase sets the MergeBase field's value.
28321func (s *PullRequestTarget) SetMergeBase(v string) *PullRequestTarget {
28322	s.MergeBase = &v
28323	return s
28324}
28325
28326// SetMergeMetadata sets the MergeMetadata field's value.
28327func (s *PullRequestTarget) SetMergeMetadata(v *MergeMetadata) *PullRequestTarget {
28328	s.MergeMetadata = v
28329	return s
28330}
28331
28332// SetRepositoryName sets the RepositoryName field's value.
28333func (s *PullRequestTarget) SetRepositoryName(v string) *PullRequestTarget {
28334	s.RepositoryName = &v
28335	return s
28336}
28337
28338// SetSourceCommit sets the SourceCommit field's value.
28339func (s *PullRequestTarget) SetSourceCommit(v string) *PullRequestTarget {
28340	s.SourceCommit = &v
28341	return s
28342}
28343
28344// SetSourceReference sets the SourceReference field's value.
28345func (s *PullRequestTarget) SetSourceReference(v string) *PullRequestTarget {
28346	s.SourceReference = &v
28347	return s
28348}
28349
28350type PutCommentReactionInput struct {
28351	_ struct{} `type:"structure"`
28352
28353	// The ID of the comment to which you want to add or update a reaction.
28354	//
28355	// CommentId is a required field
28356	CommentId *string `locationName:"commentId" type:"string" required:"true"`
28357
28358	// The emoji reaction you want to add or update. To remove a reaction, provide
28359	// a value of blank or null. You can also provide the value of none. For information
28360	// about emoji reaction values supported in AWS CodeCommit, see the AWS CodeCommit
28361	// User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table).
28362	//
28363	// ReactionValue is a required field
28364	ReactionValue *string `locationName:"reactionValue" type:"string" required:"true"`
28365}
28366
28367// String returns the string representation
28368func (s PutCommentReactionInput) String() string {
28369	return awsutil.Prettify(s)
28370}
28371
28372// GoString returns the string representation
28373func (s PutCommentReactionInput) GoString() string {
28374	return s.String()
28375}
28376
28377// Validate inspects the fields of the type to determine if they are valid.
28378func (s *PutCommentReactionInput) Validate() error {
28379	invalidParams := request.ErrInvalidParams{Context: "PutCommentReactionInput"}
28380	if s.CommentId == nil {
28381		invalidParams.Add(request.NewErrParamRequired("CommentId"))
28382	}
28383	if s.ReactionValue == nil {
28384		invalidParams.Add(request.NewErrParamRequired("ReactionValue"))
28385	}
28386
28387	if invalidParams.Len() > 0 {
28388		return invalidParams
28389	}
28390	return nil
28391}
28392
28393// SetCommentId sets the CommentId field's value.
28394func (s *PutCommentReactionInput) SetCommentId(v string) *PutCommentReactionInput {
28395	s.CommentId = &v
28396	return s
28397}
28398
28399// SetReactionValue sets the ReactionValue field's value.
28400func (s *PutCommentReactionInput) SetReactionValue(v string) *PutCommentReactionInput {
28401	s.ReactionValue = &v
28402	return s
28403}
28404
28405type PutCommentReactionOutput struct {
28406	_ struct{} `type:"structure"`
28407}
28408
28409// String returns the string representation
28410func (s PutCommentReactionOutput) String() string {
28411	return awsutil.Prettify(s)
28412}
28413
28414// GoString returns the string representation
28415func (s PutCommentReactionOutput) GoString() string {
28416	return s.String()
28417}
28418
28419// Information about a file added or updated as part of a commit.
28420type PutFileEntry struct {
28421	_ struct{} `type:"structure"`
28422
28423	// The content of the file, if a source file is not specified.
28424	//
28425	// FileContent is automatically base64 encoded/decoded by the SDK.
28426	FileContent []byte `locationName:"fileContent" type:"blob"`
28427
28428	// The extrapolated file mode permissions for the file. Valid values include
28429	// EXECUTABLE and NORMAL.
28430	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
28431
28432	// The full path to the file in the repository, including the name of the file.
28433	//
28434	// FilePath is a required field
28435	FilePath *string `locationName:"filePath" type:"string" required:"true"`
28436
28437	// The name and full path of the file that contains the changes you want to
28438	// make as part of the commit, if you are not providing the file content directly.
28439	SourceFile *SourceFileSpecifier `locationName:"sourceFile" type:"structure"`
28440}
28441
28442// String returns the string representation
28443func (s PutFileEntry) String() string {
28444	return awsutil.Prettify(s)
28445}
28446
28447// GoString returns the string representation
28448func (s PutFileEntry) GoString() string {
28449	return s.String()
28450}
28451
28452// Validate inspects the fields of the type to determine if they are valid.
28453func (s *PutFileEntry) Validate() error {
28454	invalidParams := request.ErrInvalidParams{Context: "PutFileEntry"}
28455	if s.FilePath == nil {
28456		invalidParams.Add(request.NewErrParamRequired("FilePath"))
28457	}
28458	if s.SourceFile != nil {
28459		if err := s.SourceFile.Validate(); err != nil {
28460			invalidParams.AddNested("SourceFile", err.(request.ErrInvalidParams))
28461		}
28462	}
28463
28464	if invalidParams.Len() > 0 {
28465		return invalidParams
28466	}
28467	return nil
28468}
28469
28470// SetFileContent sets the FileContent field's value.
28471func (s *PutFileEntry) SetFileContent(v []byte) *PutFileEntry {
28472	s.FileContent = v
28473	return s
28474}
28475
28476// SetFileMode sets the FileMode field's value.
28477func (s *PutFileEntry) SetFileMode(v string) *PutFileEntry {
28478	s.FileMode = &v
28479	return s
28480}
28481
28482// SetFilePath sets the FilePath field's value.
28483func (s *PutFileEntry) SetFilePath(v string) *PutFileEntry {
28484	s.FilePath = &v
28485	return s
28486}
28487
28488// SetSourceFile sets the SourceFile field's value.
28489func (s *PutFileEntry) SetSourceFile(v *SourceFileSpecifier) *PutFileEntry {
28490	s.SourceFile = v
28491	return s
28492}
28493
28494// The commit cannot be created because one or more files specified in the commit
28495// reference both a file and a folder.
28496type PutFileEntryConflictException struct {
28497	_            struct{}                  `type:"structure"`
28498	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
28499
28500	Message_ *string `locationName:"message" type:"string"`
28501}
28502
28503// String returns the string representation
28504func (s PutFileEntryConflictException) String() string {
28505	return awsutil.Prettify(s)
28506}
28507
28508// GoString returns the string representation
28509func (s PutFileEntryConflictException) GoString() string {
28510	return s.String()
28511}
28512
28513func newErrorPutFileEntryConflictException(v protocol.ResponseMetadata) error {
28514	return &PutFileEntryConflictException{
28515		RespMetadata: v,
28516	}
28517}
28518
28519// Code returns the exception type name.
28520func (s *PutFileEntryConflictException) Code() string {
28521	return "PutFileEntryConflictException"
28522}
28523
28524// Message returns the exception's message.
28525func (s *PutFileEntryConflictException) Message() string {
28526	if s.Message_ != nil {
28527		return *s.Message_
28528	}
28529	return ""
28530}
28531
28532// OrigErr always returns nil, satisfies awserr.Error interface.
28533func (s *PutFileEntryConflictException) OrigErr() error {
28534	return nil
28535}
28536
28537func (s *PutFileEntryConflictException) Error() string {
28538	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
28539}
28540
28541// Status code returns the HTTP status code for the request's response error.
28542func (s *PutFileEntryConflictException) StatusCode() int {
28543	return s.RespMetadata.StatusCode
28544}
28545
28546// RequestID returns the service's response RequestID for request.
28547func (s *PutFileEntryConflictException) RequestID() string {
28548	return s.RespMetadata.RequestID
28549}
28550
28551type PutFileInput struct {
28552	_ struct{} `type:"structure"`
28553
28554	// The name of the branch where you want to add or update the file. If this
28555	// is an empty repository, this branch is created.
28556	//
28557	// BranchName is a required field
28558	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
28559
28560	// A message about why this file was added or updated. Although it is optional,
28561	// a message makes the commit history for your repository more useful.
28562	CommitMessage *string `locationName:"commitMessage" type:"string"`
28563
28564	// An email address for the person adding or updating the file.
28565	Email *string `locationName:"email" type:"string"`
28566
28567	// The content of the file, in binary object format.
28568	//
28569	// FileContent is automatically base64 encoded/decoded by the SDK.
28570	//
28571	// FileContent is a required field
28572	FileContent []byte `locationName:"fileContent" type:"blob" required:"true"`
28573
28574	// The file mode permissions of the blob. Valid file mode permissions are listed
28575	// here.
28576	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
28577
28578	// The name of the file you want to add or update, including the relative path
28579	// to the file in the repository.
28580	//
28581	// If the path does not currently exist in the repository, the path is created
28582	// as part of adding the file.
28583	//
28584	// FilePath is a required field
28585	FilePath *string `locationName:"filePath" type:"string" required:"true"`
28586
28587	// The name of the person adding or updating the file. Although it is optional,
28588	// a name makes the commit history for your repository more useful.
28589	Name *string `locationName:"name" type:"string"`
28590
28591	// The full commit ID of the head commit in the branch where you want to add
28592	// or update the file. If this is an empty repository, no commit ID is required.
28593	// If this is not an empty repository, a commit ID is required.
28594	//
28595	// The commit ID must match the ID of the head commit at the time of the operation.
28596	// Otherwise, an error occurs, and the file is not added or updated.
28597	ParentCommitId *string `locationName:"parentCommitId" type:"string"`
28598
28599	// The name of the repository where you want to add or update the file.
28600	//
28601	// RepositoryName is a required field
28602	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
28603}
28604
28605// String returns the string representation
28606func (s PutFileInput) String() string {
28607	return awsutil.Prettify(s)
28608}
28609
28610// GoString returns the string representation
28611func (s PutFileInput) GoString() string {
28612	return s.String()
28613}
28614
28615// Validate inspects the fields of the type to determine if they are valid.
28616func (s *PutFileInput) Validate() error {
28617	invalidParams := request.ErrInvalidParams{Context: "PutFileInput"}
28618	if s.BranchName == nil {
28619		invalidParams.Add(request.NewErrParamRequired("BranchName"))
28620	}
28621	if s.BranchName != nil && len(*s.BranchName) < 1 {
28622		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
28623	}
28624	if s.FileContent == nil {
28625		invalidParams.Add(request.NewErrParamRequired("FileContent"))
28626	}
28627	if s.FilePath == nil {
28628		invalidParams.Add(request.NewErrParamRequired("FilePath"))
28629	}
28630	if s.RepositoryName == nil {
28631		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
28632	}
28633	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
28634		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
28635	}
28636
28637	if invalidParams.Len() > 0 {
28638		return invalidParams
28639	}
28640	return nil
28641}
28642
28643// SetBranchName sets the BranchName field's value.
28644func (s *PutFileInput) SetBranchName(v string) *PutFileInput {
28645	s.BranchName = &v
28646	return s
28647}
28648
28649// SetCommitMessage sets the CommitMessage field's value.
28650func (s *PutFileInput) SetCommitMessage(v string) *PutFileInput {
28651	s.CommitMessage = &v
28652	return s
28653}
28654
28655// SetEmail sets the Email field's value.
28656func (s *PutFileInput) SetEmail(v string) *PutFileInput {
28657	s.Email = &v
28658	return s
28659}
28660
28661// SetFileContent sets the FileContent field's value.
28662func (s *PutFileInput) SetFileContent(v []byte) *PutFileInput {
28663	s.FileContent = v
28664	return s
28665}
28666
28667// SetFileMode sets the FileMode field's value.
28668func (s *PutFileInput) SetFileMode(v string) *PutFileInput {
28669	s.FileMode = &v
28670	return s
28671}
28672
28673// SetFilePath sets the FilePath field's value.
28674func (s *PutFileInput) SetFilePath(v string) *PutFileInput {
28675	s.FilePath = &v
28676	return s
28677}
28678
28679// SetName sets the Name field's value.
28680func (s *PutFileInput) SetName(v string) *PutFileInput {
28681	s.Name = &v
28682	return s
28683}
28684
28685// SetParentCommitId sets the ParentCommitId field's value.
28686func (s *PutFileInput) SetParentCommitId(v string) *PutFileInput {
28687	s.ParentCommitId = &v
28688	return s
28689}
28690
28691// SetRepositoryName sets the RepositoryName field's value.
28692func (s *PutFileInput) SetRepositoryName(v string) *PutFileInput {
28693	s.RepositoryName = &v
28694	return s
28695}
28696
28697type PutFileOutput struct {
28698	_ struct{} `type:"structure"`
28699
28700	// The ID of the blob, which is its SHA-1 pointer.
28701	//
28702	// BlobId is a required field
28703	BlobId *string `locationName:"blobId" type:"string" required:"true"`
28704
28705	// The full SHA ID of the commit that contains this file change.
28706	//
28707	// CommitId is a required field
28708	CommitId *string `locationName:"commitId" type:"string" required:"true"`
28709
28710	// The full SHA-1 pointer of the tree information for the commit that contains
28711	// this file change.
28712	//
28713	// TreeId is a required field
28714	TreeId *string `locationName:"treeId" type:"string" required:"true"`
28715}
28716
28717// String returns the string representation
28718func (s PutFileOutput) String() string {
28719	return awsutil.Prettify(s)
28720}
28721
28722// GoString returns the string representation
28723func (s PutFileOutput) GoString() string {
28724	return s.String()
28725}
28726
28727// SetBlobId sets the BlobId field's value.
28728func (s *PutFileOutput) SetBlobId(v string) *PutFileOutput {
28729	s.BlobId = &v
28730	return s
28731}
28732
28733// SetCommitId sets the CommitId field's value.
28734func (s *PutFileOutput) SetCommitId(v string) *PutFileOutput {
28735	s.CommitId = &v
28736	return s
28737}
28738
28739// SetTreeId sets the TreeId field's value.
28740func (s *PutFileOutput) SetTreeId(v string) *PutFileOutput {
28741	s.TreeId = &v
28742	return s
28743}
28744
28745// Represents the input of a put repository triggers operation.
28746type PutRepositoryTriggersInput struct {
28747	_ struct{} `type:"structure"`
28748
28749	// The name of the repository where you want to create or update the trigger.
28750	//
28751	// RepositoryName is a required field
28752	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
28753
28754	// The JSON block of configuration information for each trigger.
28755	//
28756	// Triggers is a required field
28757	Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"`
28758}
28759
28760// String returns the string representation
28761func (s PutRepositoryTriggersInput) String() string {
28762	return awsutil.Prettify(s)
28763}
28764
28765// GoString returns the string representation
28766func (s PutRepositoryTriggersInput) GoString() string {
28767	return s.String()
28768}
28769
28770// Validate inspects the fields of the type to determine if they are valid.
28771func (s *PutRepositoryTriggersInput) Validate() error {
28772	invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"}
28773	if s.RepositoryName == nil {
28774		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
28775	}
28776	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
28777		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
28778	}
28779	if s.Triggers == nil {
28780		invalidParams.Add(request.NewErrParamRequired("Triggers"))
28781	}
28782	if s.Triggers != nil {
28783		for i, v := range s.Triggers {
28784			if v == nil {
28785				continue
28786			}
28787			if err := v.Validate(); err != nil {
28788				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
28789			}
28790		}
28791	}
28792
28793	if invalidParams.Len() > 0 {
28794		return invalidParams
28795	}
28796	return nil
28797}
28798
28799// SetRepositoryName sets the RepositoryName field's value.
28800func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput {
28801	s.RepositoryName = &v
28802	return s
28803}
28804
28805// SetTriggers sets the Triggers field's value.
28806func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput {
28807	s.Triggers = v
28808	return s
28809}
28810
28811// Represents the output of a put repository triggers operation.
28812type PutRepositoryTriggersOutput struct {
28813	_ struct{} `type:"structure"`
28814
28815	// The system-generated unique ID for the create or update operation.
28816	ConfigurationId *string `locationName:"configurationId" type:"string"`
28817}
28818
28819// String returns the string representation
28820func (s PutRepositoryTriggersOutput) String() string {
28821	return awsutil.Prettify(s)
28822}
28823
28824// GoString returns the string representation
28825func (s PutRepositoryTriggersOutput) GoString() string {
28826	return s.String()
28827}
28828
28829// SetConfigurationId sets the ConfigurationId field's value.
28830func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput {
28831	s.ConfigurationId = &v
28832	return s
28833}
28834
28835// Information about the reaction values provided by users on a comment.
28836type ReactionForComment struct {
28837	_ struct{} `type:"structure"`
28838
28839	// The reaction for a specified comment.
28840	Reaction *ReactionValueFormats `locationName:"reaction" type:"structure"`
28841
28842	// The Amazon Resource Names (ARNs) of users who have provided reactions to
28843	// the comment.
28844	ReactionUsers []*string `locationName:"reactionUsers" type:"list"`
28845
28846	// A numerical count of users who reacted with the specified emoji whose identities
28847	// have been subsequently deleted from IAM. While these IAM users or roles no
28848	// longer exist, the reactions might still appear in total reaction counts.
28849	ReactionsFromDeletedUsersCount *int64 `locationName:"reactionsFromDeletedUsersCount" type:"integer"`
28850}
28851
28852// String returns the string representation
28853func (s ReactionForComment) String() string {
28854	return awsutil.Prettify(s)
28855}
28856
28857// GoString returns the string representation
28858func (s ReactionForComment) GoString() string {
28859	return s.String()
28860}
28861
28862// SetReaction sets the Reaction field's value.
28863func (s *ReactionForComment) SetReaction(v *ReactionValueFormats) *ReactionForComment {
28864	s.Reaction = v
28865	return s
28866}
28867
28868// SetReactionUsers sets the ReactionUsers field's value.
28869func (s *ReactionForComment) SetReactionUsers(v []*string) *ReactionForComment {
28870	s.ReactionUsers = v
28871	return s
28872}
28873
28874// SetReactionsFromDeletedUsersCount sets the ReactionsFromDeletedUsersCount field's value.
28875func (s *ReactionForComment) SetReactionsFromDeletedUsersCount(v int64) *ReactionForComment {
28876	s.ReactionsFromDeletedUsersCount = &v
28877	return s
28878}
28879
28880// The number of reactions has been exceeded. Reactions are limited to one reaction
28881// per user for each individual comment ID.
28882type ReactionLimitExceededException struct {
28883	_            struct{}                  `type:"structure"`
28884	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
28885
28886	Message_ *string `locationName:"message" type:"string"`
28887}
28888
28889// String returns the string representation
28890func (s ReactionLimitExceededException) String() string {
28891	return awsutil.Prettify(s)
28892}
28893
28894// GoString returns the string representation
28895func (s ReactionLimitExceededException) GoString() string {
28896	return s.String()
28897}
28898
28899func newErrorReactionLimitExceededException(v protocol.ResponseMetadata) error {
28900	return &ReactionLimitExceededException{
28901		RespMetadata: v,
28902	}
28903}
28904
28905// Code returns the exception type name.
28906func (s *ReactionLimitExceededException) Code() string {
28907	return "ReactionLimitExceededException"
28908}
28909
28910// Message returns the exception's message.
28911func (s *ReactionLimitExceededException) Message() string {
28912	if s.Message_ != nil {
28913		return *s.Message_
28914	}
28915	return ""
28916}
28917
28918// OrigErr always returns nil, satisfies awserr.Error interface.
28919func (s *ReactionLimitExceededException) OrigErr() error {
28920	return nil
28921}
28922
28923func (s *ReactionLimitExceededException) Error() string {
28924	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
28925}
28926
28927// Status code returns the HTTP status code for the request's response error.
28928func (s *ReactionLimitExceededException) StatusCode() int {
28929	return s.RespMetadata.StatusCode
28930}
28931
28932// RequestID returns the service's response RequestID for request.
28933func (s *ReactionLimitExceededException) RequestID() string {
28934	return s.RespMetadata.RequestID
28935}
28936
28937// Information about the values for reactions to a comment. AWS CodeCommit supports
28938// a limited set of reactions.
28939type ReactionValueFormats struct {
28940	_ struct{} `type:"structure"`
28941
28942	// The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted
28943	// slightly differently on different operating systems.
28944	Emoji *string `locationName:"emoji" type:"string"`
28945
28946	// The emoji short code for the reaction. Short codes are interpreted slightly
28947	// differently on different operating systems.
28948	ShortCode *string `locationName:"shortCode" type:"string"`
28949
28950	// The Unicode codepoint for the reaction.
28951	Unicode *string `locationName:"unicode" type:"string"`
28952}
28953
28954// String returns the string representation
28955func (s ReactionValueFormats) String() string {
28956	return awsutil.Prettify(s)
28957}
28958
28959// GoString returns the string representation
28960func (s ReactionValueFormats) GoString() string {
28961	return s.String()
28962}
28963
28964// SetEmoji sets the Emoji field's value.
28965func (s *ReactionValueFormats) SetEmoji(v string) *ReactionValueFormats {
28966	s.Emoji = &v
28967	return s
28968}
28969
28970// SetShortCode sets the ShortCode field's value.
28971func (s *ReactionValueFormats) SetShortCode(v string) *ReactionValueFormats {
28972	s.ShortCode = &v
28973	return s
28974}
28975
28976// SetUnicode sets the Unicode field's value.
28977func (s *ReactionValueFormats) SetUnicode(v string) *ReactionValueFormats {
28978	s.Unicode = &v
28979	return s
28980}
28981
28982// A reaction value is required.
28983type ReactionValueRequiredException struct {
28984	_            struct{}                  `type:"structure"`
28985	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
28986
28987	Message_ *string `locationName:"message" type:"string"`
28988}
28989
28990// String returns the string representation
28991func (s ReactionValueRequiredException) String() string {
28992	return awsutil.Prettify(s)
28993}
28994
28995// GoString returns the string representation
28996func (s ReactionValueRequiredException) GoString() string {
28997	return s.String()
28998}
28999
29000func newErrorReactionValueRequiredException(v protocol.ResponseMetadata) error {
29001	return &ReactionValueRequiredException{
29002		RespMetadata: v,
29003	}
29004}
29005
29006// Code returns the exception type name.
29007func (s *ReactionValueRequiredException) Code() string {
29008	return "ReactionValueRequiredException"
29009}
29010
29011// Message returns the exception's message.
29012func (s *ReactionValueRequiredException) Message() string {
29013	if s.Message_ != nil {
29014		return *s.Message_
29015	}
29016	return ""
29017}
29018
29019// OrigErr always returns nil, satisfies awserr.Error interface.
29020func (s *ReactionValueRequiredException) OrigErr() error {
29021	return nil
29022}
29023
29024func (s *ReactionValueRequiredException) Error() string {
29025	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29026}
29027
29028// Status code returns the HTTP status code for the request's response error.
29029func (s *ReactionValueRequiredException) StatusCode() int {
29030	return s.RespMetadata.StatusCode
29031}
29032
29033// RequestID returns the service's response RequestID for request.
29034func (s *ReactionValueRequiredException) RequestID() string {
29035	return s.RespMetadata.RequestID
29036}
29037
29038// The specified reference does not exist. You must provide a full commit ID.
29039type ReferenceDoesNotExistException struct {
29040	_            struct{}                  `type:"structure"`
29041	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29042
29043	Message_ *string `locationName:"message" type:"string"`
29044}
29045
29046// String returns the string representation
29047func (s ReferenceDoesNotExistException) String() string {
29048	return awsutil.Prettify(s)
29049}
29050
29051// GoString returns the string representation
29052func (s ReferenceDoesNotExistException) GoString() string {
29053	return s.String()
29054}
29055
29056func newErrorReferenceDoesNotExistException(v protocol.ResponseMetadata) error {
29057	return &ReferenceDoesNotExistException{
29058		RespMetadata: v,
29059	}
29060}
29061
29062// Code returns the exception type name.
29063func (s *ReferenceDoesNotExistException) Code() string {
29064	return "ReferenceDoesNotExistException"
29065}
29066
29067// Message returns the exception's message.
29068func (s *ReferenceDoesNotExistException) Message() string {
29069	if s.Message_ != nil {
29070		return *s.Message_
29071	}
29072	return ""
29073}
29074
29075// OrigErr always returns nil, satisfies awserr.Error interface.
29076func (s *ReferenceDoesNotExistException) OrigErr() error {
29077	return nil
29078}
29079
29080func (s *ReferenceDoesNotExistException) Error() string {
29081	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29082}
29083
29084// Status code returns the HTTP status code for the request's response error.
29085func (s *ReferenceDoesNotExistException) StatusCode() int {
29086	return s.RespMetadata.StatusCode
29087}
29088
29089// RequestID returns the service's response RequestID for request.
29090func (s *ReferenceDoesNotExistException) RequestID() string {
29091	return s.RespMetadata.RequestID
29092}
29093
29094// A reference name is required, but none was provided.
29095type ReferenceNameRequiredException struct {
29096	_            struct{}                  `type:"structure"`
29097	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29098
29099	Message_ *string `locationName:"message" type:"string"`
29100}
29101
29102// String returns the string representation
29103func (s ReferenceNameRequiredException) String() string {
29104	return awsutil.Prettify(s)
29105}
29106
29107// GoString returns the string representation
29108func (s ReferenceNameRequiredException) GoString() string {
29109	return s.String()
29110}
29111
29112func newErrorReferenceNameRequiredException(v protocol.ResponseMetadata) error {
29113	return &ReferenceNameRequiredException{
29114		RespMetadata: v,
29115	}
29116}
29117
29118// Code returns the exception type name.
29119func (s *ReferenceNameRequiredException) Code() string {
29120	return "ReferenceNameRequiredException"
29121}
29122
29123// Message returns the exception's message.
29124func (s *ReferenceNameRequiredException) Message() string {
29125	if s.Message_ != nil {
29126		return *s.Message_
29127	}
29128	return ""
29129}
29130
29131// OrigErr always returns nil, satisfies awserr.Error interface.
29132func (s *ReferenceNameRequiredException) OrigErr() error {
29133	return nil
29134}
29135
29136func (s *ReferenceNameRequiredException) Error() string {
29137	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29138}
29139
29140// Status code returns the HTTP status code for the request's response error.
29141func (s *ReferenceNameRequiredException) StatusCode() int {
29142	return s.RespMetadata.StatusCode
29143}
29144
29145// RequestID returns the service's response RequestID for request.
29146func (s *ReferenceNameRequiredException) RequestID() string {
29147	return s.RespMetadata.RequestID
29148}
29149
29150// The specified reference is not a supported type.
29151type ReferenceTypeNotSupportedException struct {
29152	_            struct{}                  `type:"structure"`
29153	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29154
29155	Message_ *string `locationName:"message" type:"string"`
29156}
29157
29158// String returns the string representation
29159func (s ReferenceTypeNotSupportedException) String() string {
29160	return awsutil.Prettify(s)
29161}
29162
29163// GoString returns the string representation
29164func (s ReferenceTypeNotSupportedException) GoString() string {
29165	return s.String()
29166}
29167
29168func newErrorReferenceTypeNotSupportedException(v protocol.ResponseMetadata) error {
29169	return &ReferenceTypeNotSupportedException{
29170		RespMetadata: v,
29171	}
29172}
29173
29174// Code returns the exception type name.
29175func (s *ReferenceTypeNotSupportedException) Code() string {
29176	return "ReferenceTypeNotSupportedException"
29177}
29178
29179// Message returns the exception's message.
29180func (s *ReferenceTypeNotSupportedException) Message() string {
29181	if s.Message_ != nil {
29182		return *s.Message_
29183	}
29184	return ""
29185}
29186
29187// OrigErr always returns nil, satisfies awserr.Error interface.
29188func (s *ReferenceTypeNotSupportedException) OrigErr() error {
29189	return nil
29190}
29191
29192func (s *ReferenceTypeNotSupportedException) Error() string {
29193	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29194}
29195
29196// Status code returns the HTTP status code for the request's response error.
29197func (s *ReferenceTypeNotSupportedException) StatusCode() int {
29198	return s.RespMetadata.StatusCode
29199}
29200
29201// RequestID returns the service's response RequestID for request.
29202func (s *ReferenceTypeNotSupportedException) RequestID() string {
29203	return s.RespMetadata.RequestID
29204}
29205
29206// Information about a replacement content entry in the conflict of a merge
29207// or pull request operation.
29208type ReplaceContentEntry struct {
29209	_ struct{} `type:"structure"`
29210
29211	// The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
29212	//
29213	// Content is automatically base64 encoded/decoded by the SDK.
29214	Content []byte `locationName:"content" type:"blob"`
29215
29216	// The file mode to apply during conflict resoltion.
29217	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
29218
29219	// The path of the conflicting file.
29220	//
29221	// FilePath is a required field
29222	FilePath *string `locationName:"filePath" type:"string" required:"true"`
29223
29224	// The replacement type to use when determining how to resolve the conflict.
29225	//
29226	// ReplacementType is a required field
29227	ReplacementType *string `locationName:"replacementType" type:"string" required:"true" enum:"ReplacementTypeEnum"`
29228}
29229
29230// String returns the string representation
29231func (s ReplaceContentEntry) String() string {
29232	return awsutil.Prettify(s)
29233}
29234
29235// GoString returns the string representation
29236func (s ReplaceContentEntry) GoString() string {
29237	return s.String()
29238}
29239
29240// Validate inspects the fields of the type to determine if they are valid.
29241func (s *ReplaceContentEntry) Validate() error {
29242	invalidParams := request.ErrInvalidParams{Context: "ReplaceContentEntry"}
29243	if s.FilePath == nil {
29244		invalidParams.Add(request.NewErrParamRequired("FilePath"))
29245	}
29246	if s.ReplacementType == nil {
29247		invalidParams.Add(request.NewErrParamRequired("ReplacementType"))
29248	}
29249
29250	if invalidParams.Len() > 0 {
29251		return invalidParams
29252	}
29253	return nil
29254}
29255
29256// SetContent sets the Content field's value.
29257func (s *ReplaceContentEntry) SetContent(v []byte) *ReplaceContentEntry {
29258	s.Content = v
29259	return s
29260}
29261
29262// SetFileMode sets the FileMode field's value.
29263func (s *ReplaceContentEntry) SetFileMode(v string) *ReplaceContentEntry {
29264	s.FileMode = &v
29265	return s
29266}
29267
29268// SetFilePath sets the FilePath field's value.
29269func (s *ReplaceContentEntry) SetFilePath(v string) *ReplaceContentEntry {
29270	s.FilePath = &v
29271	return s
29272}
29273
29274// SetReplacementType sets the ReplacementType field's value.
29275func (s *ReplaceContentEntry) SetReplacementType(v string) *ReplaceContentEntry {
29276	s.ReplacementType = &v
29277	return s
29278}
29279
29280// USE_NEW_CONTENT was specified, but no replacement content has been provided.
29281type ReplacementContentRequiredException struct {
29282	_            struct{}                  `type:"structure"`
29283	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29284
29285	Message_ *string `locationName:"message" type:"string"`
29286}
29287
29288// String returns the string representation
29289func (s ReplacementContentRequiredException) String() string {
29290	return awsutil.Prettify(s)
29291}
29292
29293// GoString returns the string representation
29294func (s ReplacementContentRequiredException) GoString() string {
29295	return s.String()
29296}
29297
29298func newErrorReplacementContentRequiredException(v protocol.ResponseMetadata) error {
29299	return &ReplacementContentRequiredException{
29300		RespMetadata: v,
29301	}
29302}
29303
29304// Code returns the exception type name.
29305func (s *ReplacementContentRequiredException) Code() string {
29306	return "ReplacementContentRequiredException"
29307}
29308
29309// Message returns the exception's message.
29310func (s *ReplacementContentRequiredException) Message() string {
29311	if s.Message_ != nil {
29312		return *s.Message_
29313	}
29314	return ""
29315}
29316
29317// OrigErr always returns nil, satisfies awserr.Error interface.
29318func (s *ReplacementContentRequiredException) OrigErr() error {
29319	return nil
29320}
29321
29322func (s *ReplacementContentRequiredException) Error() string {
29323	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29324}
29325
29326// Status code returns the HTTP status code for the request's response error.
29327func (s *ReplacementContentRequiredException) StatusCode() int {
29328	return s.RespMetadata.StatusCode
29329}
29330
29331// RequestID returns the service's response RequestID for request.
29332func (s *ReplacementContentRequiredException) RequestID() string {
29333	return s.RespMetadata.RequestID
29334}
29335
29336// A replacement type is required.
29337type ReplacementTypeRequiredException struct {
29338	_            struct{}                  `type:"structure"`
29339	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29340
29341	Message_ *string `locationName:"message" type:"string"`
29342}
29343
29344// String returns the string representation
29345func (s ReplacementTypeRequiredException) String() string {
29346	return awsutil.Prettify(s)
29347}
29348
29349// GoString returns the string representation
29350func (s ReplacementTypeRequiredException) GoString() string {
29351	return s.String()
29352}
29353
29354func newErrorReplacementTypeRequiredException(v protocol.ResponseMetadata) error {
29355	return &ReplacementTypeRequiredException{
29356		RespMetadata: v,
29357	}
29358}
29359
29360// Code returns the exception type name.
29361func (s *ReplacementTypeRequiredException) Code() string {
29362	return "ReplacementTypeRequiredException"
29363}
29364
29365// Message returns the exception's message.
29366func (s *ReplacementTypeRequiredException) Message() string {
29367	if s.Message_ != nil {
29368		return *s.Message_
29369	}
29370	return ""
29371}
29372
29373// OrigErr always returns nil, satisfies awserr.Error interface.
29374func (s *ReplacementTypeRequiredException) OrigErr() error {
29375	return nil
29376}
29377
29378func (s *ReplacementTypeRequiredException) Error() string {
29379	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29380}
29381
29382// Status code returns the HTTP status code for the request's response error.
29383func (s *ReplacementTypeRequiredException) StatusCode() int {
29384	return s.RespMetadata.StatusCode
29385}
29386
29387// RequestID returns the service's response RequestID for request.
29388func (s *ReplacementTypeRequiredException) RequestID() string {
29389	return s.RespMetadata.RequestID
29390}
29391
29392// The specified repository does not exist.
29393type RepositoryDoesNotExistException struct {
29394	_            struct{}                  `type:"structure"`
29395	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29396
29397	Message_ *string `locationName:"message" type:"string"`
29398}
29399
29400// String returns the string representation
29401func (s RepositoryDoesNotExistException) String() string {
29402	return awsutil.Prettify(s)
29403}
29404
29405// GoString returns the string representation
29406func (s RepositoryDoesNotExistException) GoString() string {
29407	return s.String()
29408}
29409
29410func newErrorRepositoryDoesNotExistException(v protocol.ResponseMetadata) error {
29411	return &RepositoryDoesNotExistException{
29412		RespMetadata: v,
29413	}
29414}
29415
29416// Code returns the exception type name.
29417func (s *RepositoryDoesNotExistException) Code() string {
29418	return "RepositoryDoesNotExistException"
29419}
29420
29421// Message returns the exception's message.
29422func (s *RepositoryDoesNotExistException) Message() string {
29423	if s.Message_ != nil {
29424		return *s.Message_
29425	}
29426	return ""
29427}
29428
29429// OrigErr always returns nil, satisfies awserr.Error interface.
29430func (s *RepositoryDoesNotExistException) OrigErr() error {
29431	return nil
29432}
29433
29434func (s *RepositoryDoesNotExistException) Error() string {
29435	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29436}
29437
29438// Status code returns the HTTP status code for the request's response error.
29439func (s *RepositoryDoesNotExistException) StatusCode() int {
29440	return s.RespMetadata.StatusCode
29441}
29442
29443// RequestID returns the service's response RequestID for request.
29444func (s *RepositoryDoesNotExistException) RequestID() string {
29445	return s.RespMetadata.RequestID
29446}
29447
29448// A repository resource limit was exceeded.
29449type RepositoryLimitExceededException struct {
29450	_            struct{}                  `type:"structure"`
29451	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29452
29453	Message_ *string `locationName:"message" type:"string"`
29454}
29455
29456// String returns the string representation
29457func (s RepositoryLimitExceededException) String() string {
29458	return awsutil.Prettify(s)
29459}
29460
29461// GoString returns the string representation
29462func (s RepositoryLimitExceededException) GoString() string {
29463	return s.String()
29464}
29465
29466func newErrorRepositoryLimitExceededException(v protocol.ResponseMetadata) error {
29467	return &RepositoryLimitExceededException{
29468		RespMetadata: v,
29469	}
29470}
29471
29472// Code returns the exception type name.
29473func (s *RepositoryLimitExceededException) Code() string {
29474	return "RepositoryLimitExceededException"
29475}
29476
29477// Message returns the exception's message.
29478func (s *RepositoryLimitExceededException) Message() string {
29479	if s.Message_ != nil {
29480		return *s.Message_
29481	}
29482	return ""
29483}
29484
29485// OrigErr always returns nil, satisfies awserr.Error interface.
29486func (s *RepositoryLimitExceededException) OrigErr() error {
29487	return nil
29488}
29489
29490func (s *RepositoryLimitExceededException) Error() string {
29491	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29492}
29493
29494// Status code returns the HTTP status code for the request's response error.
29495func (s *RepositoryLimitExceededException) StatusCode() int {
29496	return s.RespMetadata.StatusCode
29497}
29498
29499// RequestID returns the service's response RequestID for request.
29500func (s *RepositoryLimitExceededException) RequestID() string {
29501	return s.RespMetadata.RequestID
29502}
29503
29504// Information about a repository.
29505type RepositoryMetadata struct {
29506	_ struct{} `type:"structure"`
29507
29508	// The ID of the AWS account associated with the repository.
29509	AccountId *string `locationName:"accountId" type:"string"`
29510
29511	// The Amazon Resource Name (ARN) of the repository.
29512	Arn *string `type:"string"`
29513
29514	// The URL to use for cloning the repository over HTTPS.
29515	CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"`
29516
29517	// The URL to use for cloning the repository over SSH.
29518	CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"`
29519
29520	// The date and time the repository was created, in timestamp format.
29521	CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
29522
29523	// The repository's default branch name.
29524	DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"`
29525
29526	// The date and time the repository was last modified, in timestamp format.
29527	LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
29528
29529	// A comment or description about the repository.
29530	RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
29531
29532	// The ID of the repository.
29533	RepositoryId *string `locationName:"repositoryId" type:"string"`
29534
29535	// The repository's name.
29536	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
29537}
29538
29539// String returns the string representation
29540func (s RepositoryMetadata) String() string {
29541	return awsutil.Prettify(s)
29542}
29543
29544// GoString returns the string representation
29545func (s RepositoryMetadata) GoString() string {
29546	return s.String()
29547}
29548
29549// SetAccountId sets the AccountId field's value.
29550func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata {
29551	s.AccountId = &v
29552	return s
29553}
29554
29555// SetArn sets the Arn field's value.
29556func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata {
29557	s.Arn = &v
29558	return s
29559}
29560
29561// SetCloneUrlHttp sets the CloneUrlHttp field's value.
29562func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata {
29563	s.CloneUrlHttp = &v
29564	return s
29565}
29566
29567// SetCloneUrlSsh sets the CloneUrlSsh field's value.
29568func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata {
29569	s.CloneUrlSsh = &v
29570	return s
29571}
29572
29573// SetCreationDate sets the CreationDate field's value.
29574func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata {
29575	s.CreationDate = &v
29576	return s
29577}
29578
29579// SetDefaultBranch sets the DefaultBranch field's value.
29580func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata {
29581	s.DefaultBranch = &v
29582	return s
29583}
29584
29585// SetLastModifiedDate sets the LastModifiedDate field's value.
29586func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata {
29587	s.LastModifiedDate = &v
29588	return s
29589}
29590
29591// SetRepositoryDescription sets the RepositoryDescription field's value.
29592func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata {
29593	s.RepositoryDescription = &v
29594	return s
29595}
29596
29597// SetRepositoryId sets the RepositoryId field's value.
29598func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata {
29599	s.RepositoryId = &v
29600	return s
29601}
29602
29603// SetRepositoryName sets the RepositoryName field's value.
29604func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata {
29605	s.RepositoryName = &v
29606	return s
29607}
29608
29609// The specified repository name already exists.
29610type RepositoryNameExistsException struct {
29611	_            struct{}                  `type:"structure"`
29612	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29613
29614	Message_ *string `locationName:"message" type:"string"`
29615}
29616
29617// String returns the string representation
29618func (s RepositoryNameExistsException) String() string {
29619	return awsutil.Prettify(s)
29620}
29621
29622// GoString returns the string representation
29623func (s RepositoryNameExistsException) GoString() string {
29624	return s.String()
29625}
29626
29627func newErrorRepositoryNameExistsException(v protocol.ResponseMetadata) error {
29628	return &RepositoryNameExistsException{
29629		RespMetadata: v,
29630	}
29631}
29632
29633// Code returns the exception type name.
29634func (s *RepositoryNameExistsException) Code() string {
29635	return "RepositoryNameExistsException"
29636}
29637
29638// Message returns the exception's message.
29639func (s *RepositoryNameExistsException) Message() string {
29640	if s.Message_ != nil {
29641		return *s.Message_
29642	}
29643	return ""
29644}
29645
29646// OrigErr always returns nil, satisfies awserr.Error interface.
29647func (s *RepositoryNameExistsException) OrigErr() error {
29648	return nil
29649}
29650
29651func (s *RepositoryNameExistsException) Error() string {
29652	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29653}
29654
29655// Status code returns the HTTP status code for the request's response error.
29656func (s *RepositoryNameExistsException) StatusCode() int {
29657	return s.RespMetadata.StatusCode
29658}
29659
29660// RequestID returns the service's response RequestID for request.
29661func (s *RepositoryNameExistsException) RequestID() string {
29662	return s.RespMetadata.RequestID
29663}
29664
29665// Information about a repository name and ID.
29666type RepositoryNameIdPair struct {
29667	_ struct{} `type:"structure"`
29668
29669	// The ID associated with the repository.
29670	RepositoryId *string `locationName:"repositoryId" type:"string"`
29671
29672	// The name associated with the repository.
29673	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
29674}
29675
29676// String returns the string representation
29677func (s RepositoryNameIdPair) String() string {
29678	return awsutil.Prettify(s)
29679}
29680
29681// GoString returns the string representation
29682func (s RepositoryNameIdPair) GoString() string {
29683	return s.String()
29684}
29685
29686// SetRepositoryId sets the RepositoryId field's value.
29687func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair {
29688	s.RepositoryId = &v
29689	return s
29690}
29691
29692// SetRepositoryName sets the RepositoryName field's value.
29693func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair {
29694	s.RepositoryName = &v
29695	return s
29696}
29697
29698// A repository name is required, but was not specified.
29699type RepositoryNameRequiredException struct {
29700	_            struct{}                  `type:"structure"`
29701	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29702
29703	Message_ *string `locationName:"message" type:"string"`
29704}
29705
29706// String returns the string representation
29707func (s RepositoryNameRequiredException) String() string {
29708	return awsutil.Prettify(s)
29709}
29710
29711// GoString returns the string representation
29712func (s RepositoryNameRequiredException) GoString() string {
29713	return s.String()
29714}
29715
29716func newErrorRepositoryNameRequiredException(v protocol.ResponseMetadata) error {
29717	return &RepositoryNameRequiredException{
29718		RespMetadata: v,
29719	}
29720}
29721
29722// Code returns the exception type name.
29723func (s *RepositoryNameRequiredException) Code() string {
29724	return "RepositoryNameRequiredException"
29725}
29726
29727// Message returns the exception's message.
29728func (s *RepositoryNameRequiredException) Message() string {
29729	if s.Message_ != nil {
29730		return *s.Message_
29731	}
29732	return ""
29733}
29734
29735// OrigErr always returns nil, satisfies awserr.Error interface.
29736func (s *RepositoryNameRequiredException) OrigErr() error {
29737	return nil
29738}
29739
29740func (s *RepositoryNameRequiredException) Error() string {
29741	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29742}
29743
29744// Status code returns the HTTP status code for the request's response error.
29745func (s *RepositoryNameRequiredException) StatusCode() int {
29746	return s.RespMetadata.StatusCode
29747}
29748
29749// RequestID returns the service's response RequestID for request.
29750func (s *RepositoryNameRequiredException) RequestID() string {
29751	return s.RespMetadata.RequestID
29752}
29753
29754// At least one repository name object is required, but was not specified.
29755type RepositoryNamesRequiredException struct {
29756	_            struct{}                  `type:"structure"`
29757	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29758
29759	Message_ *string `locationName:"message" type:"string"`
29760}
29761
29762// String returns the string representation
29763func (s RepositoryNamesRequiredException) String() string {
29764	return awsutil.Prettify(s)
29765}
29766
29767// GoString returns the string representation
29768func (s RepositoryNamesRequiredException) GoString() string {
29769	return s.String()
29770}
29771
29772func newErrorRepositoryNamesRequiredException(v protocol.ResponseMetadata) error {
29773	return &RepositoryNamesRequiredException{
29774		RespMetadata: v,
29775	}
29776}
29777
29778// Code returns the exception type name.
29779func (s *RepositoryNamesRequiredException) Code() string {
29780	return "RepositoryNamesRequiredException"
29781}
29782
29783// Message returns the exception's message.
29784func (s *RepositoryNamesRequiredException) Message() string {
29785	if s.Message_ != nil {
29786		return *s.Message_
29787	}
29788	return ""
29789}
29790
29791// OrigErr always returns nil, satisfies awserr.Error interface.
29792func (s *RepositoryNamesRequiredException) OrigErr() error {
29793	return nil
29794}
29795
29796func (s *RepositoryNamesRequiredException) Error() string {
29797	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29798}
29799
29800// Status code returns the HTTP status code for the request's response error.
29801func (s *RepositoryNamesRequiredException) StatusCode() int {
29802	return s.RespMetadata.StatusCode
29803}
29804
29805// RequestID returns the service's response RequestID for request.
29806func (s *RepositoryNamesRequiredException) RequestID() string {
29807	return s.RespMetadata.RequestID
29808}
29809
29810// The repository does not contain any pull requests with that pull request
29811// ID. Use GetPullRequest to verify the correct repository name for the pull
29812// request ID.
29813type RepositoryNotAssociatedWithPullRequestException struct {
29814	_            struct{}                  `type:"structure"`
29815	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29816
29817	Message_ *string `locationName:"message" type:"string"`
29818}
29819
29820// String returns the string representation
29821func (s RepositoryNotAssociatedWithPullRequestException) String() string {
29822	return awsutil.Prettify(s)
29823}
29824
29825// GoString returns the string representation
29826func (s RepositoryNotAssociatedWithPullRequestException) GoString() string {
29827	return s.String()
29828}
29829
29830func newErrorRepositoryNotAssociatedWithPullRequestException(v protocol.ResponseMetadata) error {
29831	return &RepositoryNotAssociatedWithPullRequestException{
29832		RespMetadata: v,
29833	}
29834}
29835
29836// Code returns the exception type name.
29837func (s *RepositoryNotAssociatedWithPullRequestException) Code() string {
29838	return "RepositoryNotAssociatedWithPullRequestException"
29839}
29840
29841// Message returns the exception's message.
29842func (s *RepositoryNotAssociatedWithPullRequestException) Message() string {
29843	if s.Message_ != nil {
29844		return *s.Message_
29845	}
29846	return ""
29847}
29848
29849// OrigErr always returns nil, satisfies awserr.Error interface.
29850func (s *RepositoryNotAssociatedWithPullRequestException) OrigErr() error {
29851	return nil
29852}
29853
29854func (s *RepositoryNotAssociatedWithPullRequestException) Error() string {
29855	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
29856}
29857
29858// Status code returns the HTTP status code for the request's response error.
29859func (s *RepositoryNotAssociatedWithPullRequestException) StatusCode() int {
29860	return s.RespMetadata.StatusCode
29861}
29862
29863// RequestID returns the service's response RequestID for request.
29864func (s *RepositoryNotAssociatedWithPullRequestException) RequestID() string {
29865	return s.RespMetadata.RequestID
29866}
29867
29868// Information about a trigger for a repository.
29869type RepositoryTrigger struct {
29870	_ struct{} `type:"structure"`
29871
29872	// The branches to be included in the trigger configuration. If you specify
29873	// an empty array, the trigger applies to all branches.
29874	//
29875	// Although no content is required in the array, you must include the array
29876	// itself.
29877	Branches []*string `locationName:"branches" type:"list"`
29878
29879	// Any custom data associated with the trigger to be included in the information
29880	// sent to the target of the trigger.
29881	CustomData *string `locationName:"customData" type:"string"`
29882
29883	// The ARN of the resource that is the target for a trigger (for example, the
29884	// ARN of a topic in Amazon SNS).
29885	//
29886	// DestinationArn is a required field
29887	DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"`
29888
29889	// The repository events that cause the trigger to run actions in another service,
29890	// such as sending a notification through Amazon SNS.
29891	//
29892	// The valid value "all" cannot be used with any other values.
29893	//
29894	// Events is a required field
29895	Events []*string `locationName:"events" type:"list" required:"true"`
29896
29897	// The name of the trigger.
29898	//
29899	// Name is a required field
29900	Name *string `locationName:"name" type:"string" required:"true"`
29901}
29902
29903// String returns the string representation
29904func (s RepositoryTrigger) String() string {
29905	return awsutil.Prettify(s)
29906}
29907
29908// GoString returns the string representation
29909func (s RepositoryTrigger) GoString() string {
29910	return s.String()
29911}
29912
29913// Validate inspects the fields of the type to determine if they are valid.
29914func (s *RepositoryTrigger) Validate() error {
29915	invalidParams := request.ErrInvalidParams{Context: "RepositoryTrigger"}
29916	if s.DestinationArn == nil {
29917		invalidParams.Add(request.NewErrParamRequired("DestinationArn"))
29918	}
29919	if s.Events == nil {
29920		invalidParams.Add(request.NewErrParamRequired("Events"))
29921	}
29922	if s.Name == nil {
29923		invalidParams.Add(request.NewErrParamRequired("Name"))
29924	}
29925
29926	if invalidParams.Len() > 0 {
29927		return invalidParams
29928	}
29929	return nil
29930}
29931
29932// SetBranches sets the Branches field's value.
29933func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger {
29934	s.Branches = v
29935	return s
29936}
29937
29938// SetCustomData sets the CustomData field's value.
29939func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger {
29940	s.CustomData = &v
29941	return s
29942}
29943
29944// SetDestinationArn sets the DestinationArn field's value.
29945func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger {
29946	s.DestinationArn = &v
29947	return s
29948}
29949
29950// SetEvents sets the Events field's value.
29951func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger {
29952	s.Events = v
29953	return s
29954}
29955
29956// SetName sets the Name field's value.
29957func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger {
29958	s.Name = &v
29959	return s
29960}
29961
29962// At least one branch name is required, but was not specified in the trigger
29963// configuration.
29964type RepositoryTriggerBranchNameListRequiredException struct {
29965	_            struct{}                  `type:"structure"`
29966	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
29967
29968	Message_ *string `locationName:"message" type:"string"`
29969}
29970
29971// String returns the string representation
29972func (s RepositoryTriggerBranchNameListRequiredException) String() string {
29973	return awsutil.Prettify(s)
29974}
29975
29976// GoString returns the string representation
29977func (s RepositoryTriggerBranchNameListRequiredException) GoString() string {
29978	return s.String()
29979}
29980
29981func newErrorRepositoryTriggerBranchNameListRequiredException(v protocol.ResponseMetadata) error {
29982	return &RepositoryTriggerBranchNameListRequiredException{
29983		RespMetadata: v,
29984	}
29985}
29986
29987// Code returns the exception type name.
29988func (s *RepositoryTriggerBranchNameListRequiredException) Code() string {
29989	return "RepositoryTriggerBranchNameListRequiredException"
29990}
29991
29992// Message returns the exception's message.
29993func (s *RepositoryTriggerBranchNameListRequiredException) Message() string {
29994	if s.Message_ != nil {
29995		return *s.Message_
29996	}
29997	return ""
29998}
29999
30000// OrigErr always returns nil, satisfies awserr.Error interface.
30001func (s *RepositoryTriggerBranchNameListRequiredException) OrigErr() error {
30002	return nil
30003}
30004
30005func (s *RepositoryTriggerBranchNameListRequiredException) Error() string {
30006	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30007}
30008
30009// Status code returns the HTTP status code for the request's response error.
30010func (s *RepositoryTriggerBranchNameListRequiredException) StatusCode() int {
30011	return s.RespMetadata.StatusCode
30012}
30013
30014// RequestID returns the service's response RequestID for request.
30015func (s *RepositoryTriggerBranchNameListRequiredException) RequestID() string {
30016	return s.RespMetadata.RequestID
30017}
30018
30019// A destination ARN for the target service for the trigger is required, but
30020// was not specified.
30021type RepositoryTriggerDestinationArnRequiredException struct {
30022	_            struct{}                  `type:"structure"`
30023	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30024
30025	Message_ *string `locationName:"message" type:"string"`
30026}
30027
30028// String returns the string representation
30029func (s RepositoryTriggerDestinationArnRequiredException) String() string {
30030	return awsutil.Prettify(s)
30031}
30032
30033// GoString returns the string representation
30034func (s RepositoryTriggerDestinationArnRequiredException) GoString() string {
30035	return s.String()
30036}
30037
30038func newErrorRepositoryTriggerDestinationArnRequiredException(v protocol.ResponseMetadata) error {
30039	return &RepositoryTriggerDestinationArnRequiredException{
30040		RespMetadata: v,
30041	}
30042}
30043
30044// Code returns the exception type name.
30045func (s *RepositoryTriggerDestinationArnRequiredException) Code() string {
30046	return "RepositoryTriggerDestinationArnRequiredException"
30047}
30048
30049// Message returns the exception's message.
30050func (s *RepositoryTriggerDestinationArnRequiredException) Message() string {
30051	if s.Message_ != nil {
30052		return *s.Message_
30053	}
30054	return ""
30055}
30056
30057// OrigErr always returns nil, satisfies awserr.Error interface.
30058func (s *RepositoryTriggerDestinationArnRequiredException) OrigErr() error {
30059	return nil
30060}
30061
30062func (s *RepositoryTriggerDestinationArnRequiredException) Error() string {
30063	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30064}
30065
30066// Status code returns the HTTP status code for the request's response error.
30067func (s *RepositoryTriggerDestinationArnRequiredException) StatusCode() int {
30068	return s.RespMetadata.StatusCode
30069}
30070
30071// RequestID returns the service's response RequestID for request.
30072func (s *RepositoryTriggerDestinationArnRequiredException) RequestID() string {
30073	return s.RespMetadata.RequestID
30074}
30075
30076// At least one event for the trigger is required, but was not specified.
30077type RepositoryTriggerEventsListRequiredException struct {
30078	_            struct{}                  `type:"structure"`
30079	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30080
30081	Message_ *string `locationName:"message" type:"string"`
30082}
30083
30084// String returns the string representation
30085func (s RepositoryTriggerEventsListRequiredException) String() string {
30086	return awsutil.Prettify(s)
30087}
30088
30089// GoString returns the string representation
30090func (s RepositoryTriggerEventsListRequiredException) GoString() string {
30091	return s.String()
30092}
30093
30094func newErrorRepositoryTriggerEventsListRequiredException(v protocol.ResponseMetadata) error {
30095	return &RepositoryTriggerEventsListRequiredException{
30096		RespMetadata: v,
30097	}
30098}
30099
30100// Code returns the exception type name.
30101func (s *RepositoryTriggerEventsListRequiredException) Code() string {
30102	return "RepositoryTriggerEventsListRequiredException"
30103}
30104
30105// Message returns the exception's message.
30106func (s *RepositoryTriggerEventsListRequiredException) Message() string {
30107	if s.Message_ != nil {
30108		return *s.Message_
30109	}
30110	return ""
30111}
30112
30113// OrigErr always returns nil, satisfies awserr.Error interface.
30114func (s *RepositoryTriggerEventsListRequiredException) OrigErr() error {
30115	return nil
30116}
30117
30118func (s *RepositoryTriggerEventsListRequiredException) Error() string {
30119	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30120}
30121
30122// Status code returns the HTTP status code for the request's response error.
30123func (s *RepositoryTriggerEventsListRequiredException) StatusCode() int {
30124	return s.RespMetadata.StatusCode
30125}
30126
30127// RequestID returns the service's response RequestID for request.
30128func (s *RepositoryTriggerEventsListRequiredException) RequestID() string {
30129	return s.RespMetadata.RequestID
30130}
30131
30132// A trigger failed to run.
30133type RepositoryTriggerExecutionFailure struct {
30134	_ struct{} `type:"structure"`
30135
30136	// Message information about the trigger that did not run.
30137	FailureMessage *string `locationName:"failureMessage" type:"string"`
30138
30139	// The name of the trigger that did not run.
30140	Trigger *string `locationName:"trigger" type:"string"`
30141}
30142
30143// String returns the string representation
30144func (s RepositoryTriggerExecutionFailure) String() string {
30145	return awsutil.Prettify(s)
30146}
30147
30148// GoString returns the string representation
30149func (s RepositoryTriggerExecutionFailure) GoString() string {
30150	return s.String()
30151}
30152
30153// SetFailureMessage sets the FailureMessage field's value.
30154func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure {
30155	s.FailureMessage = &v
30156	return s
30157}
30158
30159// SetTrigger sets the Trigger field's value.
30160func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure {
30161	s.Trigger = &v
30162	return s
30163}
30164
30165// A name for the trigger is required, but was not specified.
30166type RepositoryTriggerNameRequiredException struct {
30167	_            struct{}                  `type:"structure"`
30168	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30169
30170	Message_ *string `locationName:"message" type:"string"`
30171}
30172
30173// String returns the string representation
30174func (s RepositoryTriggerNameRequiredException) String() string {
30175	return awsutil.Prettify(s)
30176}
30177
30178// GoString returns the string representation
30179func (s RepositoryTriggerNameRequiredException) GoString() string {
30180	return s.String()
30181}
30182
30183func newErrorRepositoryTriggerNameRequiredException(v protocol.ResponseMetadata) error {
30184	return &RepositoryTriggerNameRequiredException{
30185		RespMetadata: v,
30186	}
30187}
30188
30189// Code returns the exception type name.
30190func (s *RepositoryTriggerNameRequiredException) Code() string {
30191	return "RepositoryTriggerNameRequiredException"
30192}
30193
30194// Message returns the exception's message.
30195func (s *RepositoryTriggerNameRequiredException) Message() string {
30196	if s.Message_ != nil {
30197		return *s.Message_
30198	}
30199	return ""
30200}
30201
30202// OrigErr always returns nil, satisfies awserr.Error interface.
30203func (s *RepositoryTriggerNameRequiredException) OrigErr() error {
30204	return nil
30205}
30206
30207func (s *RepositoryTriggerNameRequiredException) Error() string {
30208	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30209}
30210
30211// Status code returns the HTTP status code for the request's response error.
30212func (s *RepositoryTriggerNameRequiredException) StatusCode() int {
30213	return s.RespMetadata.StatusCode
30214}
30215
30216// RequestID returns the service's response RequestID for request.
30217func (s *RepositoryTriggerNameRequiredException) RequestID() string {
30218	return s.RespMetadata.RequestID
30219}
30220
30221// The list of triggers for the repository is required, but was not specified.
30222type RepositoryTriggersListRequiredException struct {
30223	_            struct{}                  `type:"structure"`
30224	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30225
30226	Message_ *string `locationName:"message" type:"string"`
30227}
30228
30229// String returns the string representation
30230func (s RepositoryTriggersListRequiredException) String() string {
30231	return awsutil.Prettify(s)
30232}
30233
30234// GoString returns the string representation
30235func (s RepositoryTriggersListRequiredException) GoString() string {
30236	return s.String()
30237}
30238
30239func newErrorRepositoryTriggersListRequiredException(v protocol.ResponseMetadata) error {
30240	return &RepositoryTriggersListRequiredException{
30241		RespMetadata: v,
30242	}
30243}
30244
30245// Code returns the exception type name.
30246func (s *RepositoryTriggersListRequiredException) Code() string {
30247	return "RepositoryTriggersListRequiredException"
30248}
30249
30250// Message returns the exception's message.
30251func (s *RepositoryTriggersListRequiredException) Message() string {
30252	if s.Message_ != nil {
30253		return *s.Message_
30254	}
30255	return ""
30256}
30257
30258// OrigErr always returns nil, satisfies awserr.Error interface.
30259func (s *RepositoryTriggersListRequiredException) OrigErr() error {
30260	return nil
30261}
30262
30263func (s *RepositoryTriggersListRequiredException) Error() string {
30264	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30265}
30266
30267// Status code returns the HTTP status code for the request's response error.
30268func (s *RepositoryTriggersListRequiredException) StatusCode() int {
30269	return s.RespMetadata.StatusCode
30270}
30271
30272// RequestID returns the service's response RequestID for request.
30273func (s *RepositoryTriggersListRequiredException) RequestID() string {
30274	return s.RespMetadata.RequestID
30275}
30276
30277// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required.
30278// For a list of valid resources in AWS CodeCommit, see CodeCommit Resources
30279// and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
30280// in the AWS CodeCommit User Guide.
30281type ResourceArnRequiredException struct {
30282	_            struct{}                  `type:"structure"`
30283	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30284
30285	Message_ *string `locationName:"message" type:"string"`
30286}
30287
30288// String returns the string representation
30289func (s ResourceArnRequiredException) String() string {
30290	return awsutil.Prettify(s)
30291}
30292
30293// GoString returns the string representation
30294func (s ResourceArnRequiredException) GoString() string {
30295	return s.String()
30296}
30297
30298func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error {
30299	return &ResourceArnRequiredException{
30300		RespMetadata: v,
30301	}
30302}
30303
30304// Code returns the exception type name.
30305func (s *ResourceArnRequiredException) Code() string {
30306	return "ResourceArnRequiredException"
30307}
30308
30309// Message returns the exception's message.
30310func (s *ResourceArnRequiredException) Message() string {
30311	if s.Message_ != nil {
30312		return *s.Message_
30313	}
30314	return ""
30315}
30316
30317// OrigErr always returns nil, satisfies awserr.Error interface.
30318func (s *ResourceArnRequiredException) OrigErr() error {
30319	return nil
30320}
30321
30322func (s *ResourceArnRequiredException) Error() string {
30323	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30324}
30325
30326// Status code returns the HTTP status code for the request's response error.
30327func (s *ResourceArnRequiredException) StatusCode() int {
30328	return s.RespMetadata.StatusCode
30329}
30330
30331// RequestID returns the service's response RequestID for request.
30332func (s *ResourceArnRequiredException) RequestID() string {
30333	return s.RespMetadata.RequestID
30334}
30335
30336// The commit cannot be created because one of the changes specifies copying
30337// or moving a .gitkeep file.
30338type RestrictedSourceFileException struct {
30339	_            struct{}                  `type:"structure"`
30340	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30341
30342	Message_ *string `locationName:"message" type:"string"`
30343}
30344
30345// String returns the string representation
30346func (s RestrictedSourceFileException) String() string {
30347	return awsutil.Prettify(s)
30348}
30349
30350// GoString returns the string representation
30351func (s RestrictedSourceFileException) GoString() string {
30352	return s.String()
30353}
30354
30355func newErrorRestrictedSourceFileException(v protocol.ResponseMetadata) error {
30356	return &RestrictedSourceFileException{
30357		RespMetadata: v,
30358	}
30359}
30360
30361// Code returns the exception type name.
30362func (s *RestrictedSourceFileException) Code() string {
30363	return "RestrictedSourceFileException"
30364}
30365
30366// Message returns the exception's message.
30367func (s *RestrictedSourceFileException) Message() string {
30368	if s.Message_ != nil {
30369		return *s.Message_
30370	}
30371	return ""
30372}
30373
30374// OrigErr always returns nil, satisfies awserr.Error interface.
30375func (s *RestrictedSourceFileException) OrigErr() error {
30376	return nil
30377}
30378
30379func (s *RestrictedSourceFileException) Error() string {
30380	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30381}
30382
30383// Status code returns the HTTP status code for the request's response error.
30384func (s *RestrictedSourceFileException) StatusCode() int {
30385	return s.RespMetadata.StatusCode
30386}
30387
30388// RequestID returns the service's response RequestID for request.
30389func (s *RestrictedSourceFileException) RequestID() string {
30390	return s.RespMetadata.RequestID
30391}
30392
30393// A revision ID is required, but was not provided.
30394type RevisionIdRequiredException struct {
30395	_            struct{}                  `type:"structure"`
30396	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30397
30398	Message_ *string `locationName:"message" type:"string"`
30399}
30400
30401// String returns the string representation
30402func (s RevisionIdRequiredException) String() string {
30403	return awsutil.Prettify(s)
30404}
30405
30406// GoString returns the string representation
30407func (s RevisionIdRequiredException) GoString() string {
30408	return s.String()
30409}
30410
30411func newErrorRevisionIdRequiredException(v protocol.ResponseMetadata) error {
30412	return &RevisionIdRequiredException{
30413		RespMetadata: v,
30414	}
30415}
30416
30417// Code returns the exception type name.
30418func (s *RevisionIdRequiredException) Code() string {
30419	return "RevisionIdRequiredException"
30420}
30421
30422// Message returns the exception's message.
30423func (s *RevisionIdRequiredException) Message() string {
30424	if s.Message_ != nil {
30425		return *s.Message_
30426	}
30427	return ""
30428}
30429
30430// OrigErr always returns nil, satisfies awserr.Error interface.
30431func (s *RevisionIdRequiredException) OrigErr() error {
30432	return nil
30433}
30434
30435func (s *RevisionIdRequiredException) Error() string {
30436	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30437}
30438
30439// Status code returns the HTTP status code for the request's response error.
30440func (s *RevisionIdRequiredException) StatusCode() int {
30441	return s.RespMetadata.StatusCode
30442}
30443
30444// RequestID returns the service's response RequestID for request.
30445func (s *RevisionIdRequiredException) RequestID() string {
30446	return s.RespMetadata.RequestID
30447}
30448
30449// The revision ID provided in the request does not match the current revision
30450// ID. Use GetPullRequest to retrieve the current revision ID.
30451type RevisionNotCurrentException struct {
30452	_            struct{}                  `type:"structure"`
30453	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30454
30455	Message_ *string `locationName:"message" type:"string"`
30456}
30457
30458// String returns the string representation
30459func (s RevisionNotCurrentException) String() string {
30460	return awsutil.Prettify(s)
30461}
30462
30463// GoString returns the string representation
30464func (s RevisionNotCurrentException) GoString() string {
30465	return s.String()
30466}
30467
30468func newErrorRevisionNotCurrentException(v protocol.ResponseMetadata) error {
30469	return &RevisionNotCurrentException{
30470		RespMetadata: v,
30471	}
30472}
30473
30474// Code returns the exception type name.
30475func (s *RevisionNotCurrentException) Code() string {
30476	return "RevisionNotCurrentException"
30477}
30478
30479// Message returns the exception's message.
30480func (s *RevisionNotCurrentException) Message() string {
30481	if s.Message_ != nil {
30482		return *s.Message_
30483	}
30484	return ""
30485}
30486
30487// OrigErr always returns nil, satisfies awserr.Error interface.
30488func (s *RevisionNotCurrentException) OrigErr() error {
30489	return nil
30490}
30491
30492func (s *RevisionNotCurrentException) Error() string {
30493	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30494}
30495
30496// Status code returns the HTTP status code for the request's response error.
30497func (s *RevisionNotCurrentException) StatusCode() int {
30498	return s.RespMetadata.StatusCode
30499}
30500
30501// RequestID returns the service's response RequestID for request.
30502func (s *RevisionNotCurrentException) RequestID() string {
30503	return s.RespMetadata.RequestID
30504}
30505
30506// The file was not added or updated because the content of the file is exactly
30507// the same as the content of that file in the repository and branch that you
30508// specified.
30509type SameFileContentException struct {
30510	_            struct{}                  `type:"structure"`
30511	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30512
30513	Message_ *string `locationName:"message" type:"string"`
30514}
30515
30516// String returns the string representation
30517func (s SameFileContentException) String() string {
30518	return awsutil.Prettify(s)
30519}
30520
30521// GoString returns the string representation
30522func (s SameFileContentException) GoString() string {
30523	return s.String()
30524}
30525
30526func newErrorSameFileContentException(v protocol.ResponseMetadata) error {
30527	return &SameFileContentException{
30528		RespMetadata: v,
30529	}
30530}
30531
30532// Code returns the exception type name.
30533func (s *SameFileContentException) Code() string {
30534	return "SameFileContentException"
30535}
30536
30537// Message returns the exception's message.
30538func (s *SameFileContentException) Message() string {
30539	if s.Message_ != nil {
30540		return *s.Message_
30541	}
30542	return ""
30543}
30544
30545// OrigErr always returns nil, satisfies awserr.Error interface.
30546func (s *SameFileContentException) OrigErr() error {
30547	return nil
30548}
30549
30550func (s *SameFileContentException) Error() string {
30551	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30552}
30553
30554// Status code returns the HTTP status code for the request's response error.
30555func (s *SameFileContentException) StatusCode() int {
30556	return s.RespMetadata.StatusCode
30557}
30558
30559// RequestID returns the service's response RequestID for request.
30560func (s *SameFileContentException) RequestID() string {
30561	return s.RespMetadata.RequestID
30562}
30563
30564// The commit cannot be created because one or more changes in this commit duplicate
30565// actions in the same file path. For example, you cannot make the same delete
30566// request to the same file in the same file path twice, or make a delete request
30567// and a move request to the same file as part of the same commit.
30568type SamePathRequestException struct {
30569	_            struct{}                  `type:"structure"`
30570	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30571
30572	Message_ *string `locationName:"message" type:"string"`
30573}
30574
30575// String returns the string representation
30576func (s SamePathRequestException) String() string {
30577	return awsutil.Prettify(s)
30578}
30579
30580// GoString returns the string representation
30581func (s SamePathRequestException) GoString() string {
30582	return s.String()
30583}
30584
30585func newErrorSamePathRequestException(v protocol.ResponseMetadata) error {
30586	return &SamePathRequestException{
30587		RespMetadata: v,
30588	}
30589}
30590
30591// Code returns the exception type name.
30592func (s *SamePathRequestException) Code() string {
30593	return "SamePathRequestException"
30594}
30595
30596// Message returns the exception's message.
30597func (s *SamePathRequestException) Message() string {
30598	if s.Message_ != nil {
30599		return *s.Message_
30600	}
30601	return ""
30602}
30603
30604// OrigErr always returns nil, satisfies awserr.Error interface.
30605func (s *SamePathRequestException) OrigErr() error {
30606	return nil
30607}
30608
30609func (s *SamePathRequestException) Error() string {
30610	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30611}
30612
30613// Status code returns the HTTP status code for the request's response error.
30614func (s *SamePathRequestException) StatusCode() int {
30615	return s.RespMetadata.StatusCode
30616}
30617
30618// RequestID returns the service's response RequestID for request.
30619func (s *SamePathRequestException) RequestID() string {
30620	return s.RespMetadata.RequestID
30621}
30622
30623// Information about the file mode changes.
30624type SetFileModeEntry struct {
30625	_ struct{} `type:"structure"`
30626
30627	// The file mode for the file.
30628	//
30629	// FileMode is a required field
30630	FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"`
30631
30632	// The full path to the file, including the name of the file.
30633	//
30634	// FilePath is a required field
30635	FilePath *string `locationName:"filePath" type:"string" required:"true"`
30636}
30637
30638// String returns the string representation
30639func (s SetFileModeEntry) String() string {
30640	return awsutil.Prettify(s)
30641}
30642
30643// GoString returns the string representation
30644func (s SetFileModeEntry) GoString() string {
30645	return s.String()
30646}
30647
30648// Validate inspects the fields of the type to determine if they are valid.
30649func (s *SetFileModeEntry) Validate() error {
30650	invalidParams := request.ErrInvalidParams{Context: "SetFileModeEntry"}
30651	if s.FileMode == nil {
30652		invalidParams.Add(request.NewErrParamRequired("FileMode"))
30653	}
30654	if s.FilePath == nil {
30655		invalidParams.Add(request.NewErrParamRequired("FilePath"))
30656	}
30657
30658	if invalidParams.Len() > 0 {
30659		return invalidParams
30660	}
30661	return nil
30662}
30663
30664// SetFileMode sets the FileMode field's value.
30665func (s *SetFileModeEntry) SetFileMode(v string) *SetFileModeEntry {
30666	s.FileMode = &v
30667	return s
30668}
30669
30670// SetFilePath sets the FilePath field's value.
30671func (s *SetFileModeEntry) SetFilePath(v string) *SetFileModeEntry {
30672	s.FilePath = &v
30673	return s
30674}
30675
30676// The source branch and destination branch for the pull request are the same.
30677// You must specify different branches for the source and destination.
30678type SourceAndDestinationAreSameException struct {
30679	_            struct{}                  `type:"structure"`
30680	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30681
30682	Message_ *string `locationName:"message" type:"string"`
30683}
30684
30685// String returns the string representation
30686func (s SourceAndDestinationAreSameException) String() string {
30687	return awsutil.Prettify(s)
30688}
30689
30690// GoString returns the string representation
30691func (s SourceAndDestinationAreSameException) GoString() string {
30692	return s.String()
30693}
30694
30695func newErrorSourceAndDestinationAreSameException(v protocol.ResponseMetadata) error {
30696	return &SourceAndDestinationAreSameException{
30697		RespMetadata: v,
30698	}
30699}
30700
30701// Code returns the exception type name.
30702func (s *SourceAndDestinationAreSameException) Code() string {
30703	return "SourceAndDestinationAreSameException"
30704}
30705
30706// Message returns the exception's message.
30707func (s *SourceAndDestinationAreSameException) Message() string {
30708	if s.Message_ != nil {
30709		return *s.Message_
30710	}
30711	return ""
30712}
30713
30714// OrigErr always returns nil, satisfies awserr.Error interface.
30715func (s *SourceAndDestinationAreSameException) OrigErr() error {
30716	return nil
30717}
30718
30719func (s *SourceAndDestinationAreSameException) Error() string {
30720	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30721}
30722
30723// Status code returns the HTTP status code for the request's response error.
30724func (s *SourceAndDestinationAreSameException) StatusCode() int {
30725	return s.RespMetadata.StatusCode
30726}
30727
30728// RequestID returns the service's response RequestID for request.
30729func (s *SourceAndDestinationAreSameException) RequestID() string {
30730	return s.RespMetadata.RequestID
30731}
30732
30733// The commit cannot be created because no source files or file content have
30734// been specified for the commit.
30735type SourceFileOrContentRequiredException struct {
30736	_            struct{}                  `type:"structure"`
30737	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30738
30739	Message_ *string `locationName:"message" type:"string"`
30740}
30741
30742// String returns the string representation
30743func (s SourceFileOrContentRequiredException) String() string {
30744	return awsutil.Prettify(s)
30745}
30746
30747// GoString returns the string representation
30748func (s SourceFileOrContentRequiredException) GoString() string {
30749	return s.String()
30750}
30751
30752func newErrorSourceFileOrContentRequiredException(v protocol.ResponseMetadata) error {
30753	return &SourceFileOrContentRequiredException{
30754		RespMetadata: v,
30755	}
30756}
30757
30758// Code returns the exception type name.
30759func (s *SourceFileOrContentRequiredException) Code() string {
30760	return "SourceFileOrContentRequiredException"
30761}
30762
30763// Message returns the exception's message.
30764func (s *SourceFileOrContentRequiredException) Message() string {
30765	if s.Message_ != nil {
30766		return *s.Message_
30767	}
30768	return ""
30769}
30770
30771// OrigErr always returns nil, satisfies awserr.Error interface.
30772func (s *SourceFileOrContentRequiredException) OrigErr() error {
30773	return nil
30774}
30775
30776func (s *SourceFileOrContentRequiredException) Error() string {
30777	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30778}
30779
30780// Status code returns the HTTP status code for the request's response error.
30781func (s *SourceFileOrContentRequiredException) StatusCode() int {
30782	return s.RespMetadata.StatusCode
30783}
30784
30785// RequestID returns the service's response RequestID for request.
30786func (s *SourceFileOrContentRequiredException) RequestID() string {
30787	return s.RespMetadata.RequestID
30788}
30789
30790// Information about a source file that is part of changes made in a commit.
30791type SourceFileSpecifier struct {
30792	_ struct{} `type:"structure"`
30793
30794	// The full path to the file, including the name of the file.
30795	//
30796	// FilePath is a required field
30797	FilePath *string `locationName:"filePath" type:"string" required:"true"`
30798
30799	// Whether to remove the source file from the parent commit.
30800	IsMove *bool `locationName:"isMove" type:"boolean"`
30801}
30802
30803// String returns the string representation
30804func (s SourceFileSpecifier) String() string {
30805	return awsutil.Prettify(s)
30806}
30807
30808// GoString returns the string representation
30809func (s SourceFileSpecifier) GoString() string {
30810	return s.String()
30811}
30812
30813// Validate inspects the fields of the type to determine if they are valid.
30814func (s *SourceFileSpecifier) Validate() error {
30815	invalidParams := request.ErrInvalidParams{Context: "SourceFileSpecifier"}
30816	if s.FilePath == nil {
30817		invalidParams.Add(request.NewErrParamRequired("FilePath"))
30818	}
30819
30820	if invalidParams.Len() > 0 {
30821		return invalidParams
30822	}
30823	return nil
30824}
30825
30826// SetFilePath sets the FilePath field's value.
30827func (s *SourceFileSpecifier) SetFilePath(v string) *SourceFileSpecifier {
30828	s.FilePath = &v
30829	return s
30830}
30831
30832// SetIsMove sets the IsMove field's value.
30833func (s *SourceFileSpecifier) SetIsMove(v bool) *SourceFileSpecifier {
30834	s.IsMove = &v
30835	return s
30836}
30837
30838// Returns information about a submodule reference in a repository folder.
30839type SubModule struct {
30840	_ struct{} `type:"structure"`
30841
30842	// The fully qualified path to the folder that contains the reference to the
30843	// submodule.
30844	AbsolutePath *string `locationName:"absolutePath" type:"string"`
30845
30846	// The commit ID that contains the reference to the submodule.
30847	CommitId *string `locationName:"commitId" type:"string"`
30848
30849	// The relative path of the submodule from the folder where the query originated.
30850	RelativePath *string `locationName:"relativePath" type:"string"`
30851}
30852
30853// String returns the string representation
30854func (s SubModule) String() string {
30855	return awsutil.Prettify(s)
30856}
30857
30858// GoString returns the string representation
30859func (s SubModule) GoString() string {
30860	return s.String()
30861}
30862
30863// SetAbsolutePath sets the AbsolutePath field's value.
30864func (s *SubModule) SetAbsolutePath(v string) *SubModule {
30865	s.AbsolutePath = &v
30866	return s
30867}
30868
30869// SetCommitId sets the CommitId field's value.
30870func (s *SubModule) SetCommitId(v string) *SubModule {
30871	s.CommitId = &v
30872	return s
30873}
30874
30875// SetRelativePath sets the RelativePath field's value.
30876func (s *SubModule) SetRelativePath(v string) *SubModule {
30877	s.RelativePath = &v
30878	return s
30879}
30880
30881// Returns information about a symbolic link in a repository folder.
30882type SymbolicLink struct {
30883	_ struct{} `type:"structure"`
30884
30885	// The fully qualified path to the folder that contains the symbolic link.
30886	AbsolutePath *string `locationName:"absolutePath" type:"string"`
30887
30888	// The blob ID that contains the information about the symbolic link.
30889	BlobId *string `locationName:"blobId" type:"string"`
30890
30891	// The file mode permissions of the blob that cotains information about the
30892	// symbolic link.
30893	FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
30894
30895	// The relative path of the symbolic link from the folder where the query originated.
30896	RelativePath *string `locationName:"relativePath" type:"string"`
30897}
30898
30899// String returns the string representation
30900func (s SymbolicLink) String() string {
30901	return awsutil.Prettify(s)
30902}
30903
30904// GoString returns the string representation
30905func (s SymbolicLink) GoString() string {
30906	return s.String()
30907}
30908
30909// SetAbsolutePath sets the AbsolutePath field's value.
30910func (s *SymbolicLink) SetAbsolutePath(v string) *SymbolicLink {
30911	s.AbsolutePath = &v
30912	return s
30913}
30914
30915// SetBlobId sets the BlobId field's value.
30916func (s *SymbolicLink) SetBlobId(v string) *SymbolicLink {
30917	s.BlobId = &v
30918	return s
30919}
30920
30921// SetFileMode sets the FileMode field's value.
30922func (s *SymbolicLink) SetFileMode(v string) *SymbolicLink {
30923	s.FileMode = &v
30924	return s
30925}
30926
30927// SetRelativePath sets the RelativePath field's value.
30928func (s *SymbolicLink) SetRelativePath(v string) *SymbolicLink {
30929	s.RelativePath = &v
30930	return s
30931}
30932
30933// A list of tag keys is required. The list cannot be empty or null.
30934type TagKeysListRequiredException struct {
30935	_            struct{}                  `type:"structure"`
30936	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30937
30938	Message_ *string `locationName:"message" type:"string"`
30939}
30940
30941// String returns the string representation
30942func (s TagKeysListRequiredException) String() string {
30943	return awsutil.Prettify(s)
30944}
30945
30946// GoString returns the string representation
30947func (s TagKeysListRequiredException) GoString() string {
30948	return s.String()
30949}
30950
30951func newErrorTagKeysListRequiredException(v protocol.ResponseMetadata) error {
30952	return &TagKeysListRequiredException{
30953		RespMetadata: v,
30954	}
30955}
30956
30957// Code returns the exception type name.
30958func (s *TagKeysListRequiredException) Code() string {
30959	return "TagKeysListRequiredException"
30960}
30961
30962// Message returns the exception's message.
30963func (s *TagKeysListRequiredException) Message() string {
30964	if s.Message_ != nil {
30965		return *s.Message_
30966	}
30967	return ""
30968}
30969
30970// OrigErr always returns nil, satisfies awserr.Error interface.
30971func (s *TagKeysListRequiredException) OrigErr() error {
30972	return nil
30973}
30974
30975func (s *TagKeysListRequiredException) Error() string {
30976	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
30977}
30978
30979// Status code returns the HTTP status code for the request's response error.
30980func (s *TagKeysListRequiredException) StatusCode() int {
30981	return s.RespMetadata.StatusCode
30982}
30983
30984// RequestID returns the service's response RequestID for request.
30985func (s *TagKeysListRequiredException) RequestID() string {
30986	return s.RespMetadata.RequestID
30987}
30988
30989// The tag policy is not valid.
30990type TagPolicyException struct {
30991	_            struct{}                  `type:"structure"`
30992	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
30993
30994	Message_ *string `locationName:"message" type:"string"`
30995}
30996
30997// String returns the string representation
30998func (s TagPolicyException) String() string {
30999	return awsutil.Prettify(s)
31000}
31001
31002// GoString returns the string representation
31003func (s TagPolicyException) GoString() string {
31004	return s.String()
31005}
31006
31007func newErrorTagPolicyException(v protocol.ResponseMetadata) error {
31008	return &TagPolicyException{
31009		RespMetadata: v,
31010	}
31011}
31012
31013// Code returns the exception type name.
31014func (s *TagPolicyException) Code() string {
31015	return "TagPolicyException"
31016}
31017
31018// Message returns the exception's message.
31019func (s *TagPolicyException) Message() string {
31020	if s.Message_ != nil {
31021		return *s.Message_
31022	}
31023	return ""
31024}
31025
31026// OrigErr always returns nil, satisfies awserr.Error interface.
31027func (s *TagPolicyException) OrigErr() error {
31028	return nil
31029}
31030
31031func (s *TagPolicyException) Error() string {
31032	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31033}
31034
31035// Status code returns the HTTP status code for the request's response error.
31036func (s *TagPolicyException) StatusCode() int {
31037	return s.RespMetadata.StatusCode
31038}
31039
31040// RequestID returns the service's response RequestID for request.
31041func (s *TagPolicyException) RequestID() string {
31042	return s.RespMetadata.RequestID
31043}
31044
31045type TagResourceInput struct {
31046	_ struct{} `type:"structure"`
31047
31048	// The Amazon Resource Name (ARN) of the resource to which you want to add or
31049	// update tags.
31050	//
31051	// ResourceArn is a required field
31052	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
31053
31054	// The key-value pair to use when tagging this repository.
31055	//
31056	// Tags is a required field
31057	Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
31058}
31059
31060// String returns the string representation
31061func (s TagResourceInput) String() string {
31062	return awsutil.Prettify(s)
31063}
31064
31065// GoString returns the string representation
31066func (s TagResourceInput) GoString() string {
31067	return s.String()
31068}
31069
31070// Validate inspects the fields of the type to determine if they are valid.
31071func (s *TagResourceInput) Validate() error {
31072	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
31073	if s.ResourceArn == nil {
31074		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
31075	}
31076	if s.Tags == nil {
31077		invalidParams.Add(request.NewErrParamRequired("Tags"))
31078	}
31079
31080	if invalidParams.Len() > 0 {
31081		return invalidParams
31082	}
31083	return nil
31084}
31085
31086// SetResourceArn sets the ResourceArn field's value.
31087func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
31088	s.ResourceArn = &v
31089	return s
31090}
31091
31092// SetTags sets the Tags field's value.
31093func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
31094	s.Tags = v
31095	return s
31096}
31097
31098type TagResourceOutput struct {
31099	_ struct{} `type:"structure"`
31100}
31101
31102// String returns the string representation
31103func (s TagResourceOutput) String() string {
31104	return awsutil.Prettify(s)
31105}
31106
31107// GoString returns the string representation
31108func (s TagResourceOutput) GoString() string {
31109	return s.String()
31110}
31111
31112// A map of tags is required.
31113type TagsMapRequiredException struct {
31114	_            struct{}                  `type:"structure"`
31115	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31116
31117	Message_ *string `locationName:"message" type:"string"`
31118}
31119
31120// String returns the string representation
31121func (s TagsMapRequiredException) String() string {
31122	return awsutil.Prettify(s)
31123}
31124
31125// GoString returns the string representation
31126func (s TagsMapRequiredException) GoString() string {
31127	return s.String()
31128}
31129
31130func newErrorTagsMapRequiredException(v protocol.ResponseMetadata) error {
31131	return &TagsMapRequiredException{
31132		RespMetadata: v,
31133	}
31134}
31135
31136// Code returns the exception type name.
31137func (s *TagsMapRequiredException) Code() string {
31138	return "TagsMapRequiredException"
31139}
31140
31141// Message returns the exception's message.
31142func (s *TagsMapRequiredException) Message() string {
31143	if s.Message_ != nil {
31144		return *s.Message_
31145	}
31146	return ""
31147}
31148
31149// OrigErr always returns nil, satisfies awserr.Error interface.
31150func (s *TagsMapRequiredException) OrigErr() error {
31151	return nil
31152}
31153
31154func (s *TagsMapRequiredException) Error() string {
31155	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31156}
31157
31158// Status code returns the HTTP status code for the request's response error.
31159func (s *TagsMapRequiredException) StatusCode() int {
31160	return s.RespMetadata.StatusCode
31161}
31162
31163// RequestID returns the service's response RequestID for request.
31164func (s *TagsMapRequiredException) RequestID() string {
31165	return s.RespMetadata.RequestID
31166}
31167
31168// Returns information about a target for a pull request.
31169type Target struct {
31170	_ struct{} `type:"structure"`
31171
31172	// The branch of the repository where the pull request changes are merged. Also
31173	// known as the destination branch.
31174	DestinationReference *string `locationName:"destinationReference" type:"string"`
31175
31176	// The name of the repository that contains the pull request.
31177	//
31178	// RepositoryName is a required field
31179	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
31180
31181	// The branch of the repository that contains the changes for the pull request.
31182	// Also known as the source branch.
31183	//
31184	// SourceReference is a required field
31185	SourceReference *string `locationName:"sourceReference" type:"string" required:"true"`
31186}
31187
31188// String returns the string representation
31189func (s Target) String() string {
31190	return awsutil.Prettify(s)
31191}
31192
31193// GoString returns the string representation
31194func (s Target) GoString() string {
31195	return s.String()
31196}
31197
31198// Validate inspects the fields of the type to determine if they are valid.
31199func (s *Target) Validate() error {
31200	invalidParams := request.ErrInvalidParams{Context: "Target"}
31201	if s.RepositoryName == nil {
31202		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
31203	}
31204	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
31205		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
31206	}
31207	if s.SourceReference == nil {
31208		invalidParams.Add(request.NewErrParamRequired("SourceReference"))
31209	}
31210
31211	if invalidParams.Len() > 0 {
31212		return invalidParams
31213	}
31214	return nil
31215}
31216
31217// SetDestinationReference sets the DestinationReference field's value.
31218func (s *Target) SetDestinationReference(v string) *Target {
31219	s.DestinationReference = &v
31220	return s
31221}
31222
31223// SetRepositoryName sets the RepositoryName field's value.
31224func (s *Target) SetRepositoryName(v string) *Target {
31225	s.RepositoryName = &v
31226	return s
31227}
31228
31229// SetSourceReference sets the SourceReference field's value.
31230func (s *Target) SetSourceReference(v string) *Target {
31231	s.SourceReference = &v
31232	return s
31233}
31234
31235// A pull request target is required. It cannot be empty or null. A pull request
31236// target must contain the full values for the repository name, source branch,
31237// and destination branch for the pull request.
31238type TargetRequiredException struct {
31239	_            struct{}                  `type:"structure"`
31240	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31241
31242	Message_ *string `locationName:"message" type:"string"`
31243}
31244
31245// String returns the string representation
31246func (s TargetRequiredException) String() string {
31247	return awsutil.Prettify(s)
31248}
31249
31250// GoString returns the string representation
31251func (s TargetRequiredException) GoString() string {
31252	return s.String()
31253}
31254
31255func newErrorTargetRequiredException(v protocol.ResponseMetadata) error {
31256	return &TargetRequiredException{
31257		RespMetadata: v,
31258	}
31259}
31260
31261// Code returns the exception type name.
31262func (s *TargetRequiredException) Code() string {
31263	return "TargetRequiredException"
31264}
31265
31266// Message returns the exception's message.
31267func (s *TargetRequiredException) Message() string {
31268	if s.Message_ != nil {
31269		return *s.Message_
31270	}
31271	return ""
31272}
31273
31274// OrigErr always returns nil, satisfies awserr.Error interface.
31275func (s *TargetRequiredException) OrigErr() error {
31276	return nil
31277}
31278
31279func (s *TargetRequiredException) Error() string {
31280	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31281}
31282
31283// Status code returns the HTTP status code for the request's response error.
31284func (s *TargetRequiredException) StatusCode() int {
31285	return s.RespMetadata.StatusCode
31286}
31287
31288// RequestID returns the service's response RequestID for request.
31289func (s *TargetRequiredException) RequestID() string {
31290	return s.RespMetadata.RequestID
31291}
31292
31293// An array of target objects is required. It cannot be empty or null.
31294type TargetsRequiredException struct {
31295	_            struct{}                  `type:"structure"`
31296	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31297
31298	Message_ *string `locationName:"message" type:"string"`
31299}
31300
31301// String returns the string representation
31302func (s TargetsRequiredException) String() string {
31303	return awsutil.Prettify(s)
31304}
31305
31306// GoString returns the string representation
31307func (s TargetsRequiredException) GoString() string {
31308	return s.String()
31309}
31310
31311func newErrorTargetsRequiredException(v protocol.ResponseMetadata) error {
31312	return &TargetsRequiredException{
31313		RespMetadata: v,
31314	}
31315}
31316
31317// Code returns the exception type name.
31318func (s *TargetsRequiredException) Code() string {
31319	return "TargetsRequiredException"
31320}
31321
31322// Message returns the exception's message.
31323func (s *TargetsRequiredException) Message() string {
31324	if s.Message_ != nil {
31325		return *s.Message_
31326	}
31327	return ""
31328}
31329
31330// OrigErr always returns nil, satisfies awserr.Error interface.
31331func (s *TargetsRequiredException) OrigErr() error {
31332	return nil
31333}
31334
31335func (s *TargetsRequiredException) Error() string {
31336	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31337}
31338
31339// Status code returns the HTTP status code for the request's response error.
31340func (s *TargetsRequiredException) StatusCode() int {
31341	return s.RespMetadata.StatusCode
31342}
31343
31344// RequestID returns the service's response RequestID for request.
31345func (s *TargetsRequiredException) RequestID() string {
31346	return s.RespMetadata.RequestID
31347}
31348
31349// Represents the input of a test repository triggers operation.
31350type TestRepositoryTriggersInput struct {
31351	_ struct{} `type:"structure"`
31352
31353	// The name of the repository in which to test the triggers.
31354	//
31355	// RepositoryName is a required field
31356	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
31357
31358	// The list of triggers to test.
31359	//
31360	// Triggers is a required field
31361	Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"`
31362}
31363
31364// String returns the string representation
31365func (s TestRepositoryTriggersInput) String() string {
31366	return awsutil.Prettify(s)
31367}
31368
31369// GoString returns the string representation
31370func (s TestRepositoryTriggersInput) GoString() string {
31371	return s.String()
31372}
31373
31374// Validate inspects the fields of the type to determine if they are valid.
31375func (s *TestRepositoryTriggersInput) Validate() error {
31376	invalidParams := request.ErrInvalidParams{Context: "TestRepositoryTriggersInput"}
31377	if s.RepositoryName == nil {
31378		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
31379	}
31380	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
31381		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
31382	}
31383	if s.Triggers == nil {
31384		invalidParams.Add(request.NewErrParamRequired("Triggers"))
31385	}
31386	if s.Triggers != nil {
31387		for i, v := range s.Triggers {
31388			if v == nil {
31389				continue
31390			}
31391			if err := v.Validate(); err != nil {
31392				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
31393			}
31394		}
31395	}
31396
31397	if invalidParams.Len() > 0 {
31398		return invalidParams
31399	}
31400	return nil
31401}
31402
31403// SetRepositoryName sets the RepositoryName field's value.
31404func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput {
31405	s.RepositoryName = &v
31406	return s
31407}
31408
31409// SetTriggers sets the Triggers field's value.
31410func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput {
31411	s.Triggers = v
31412	return s
31413}
31414
31415// Represents the output of a test repository triggers operation.
31416type TestRepositoryTriggersOutput struct {
31417	_ struct{} `type:"structure"`
31418
31419	// The list of triggers that were not tested. This list provides the names of
31420	// the triggers that could not be tested, separated by commas.
31421	FailedExecutions []*RepositoryTriggerExecutionFailure `locationName:"failedExecutions" type:"list"`
31422
31423	// The list of triggers that were successfully tested. This list provides the
31424	// names of the triggers that were successfully tested, separated by commas.
31425	SuccessfulExecutions []*string `locationName:"successfulExecutions" type:"list"`
31426}
31427
31428// String returns the string representation
31429func (s TestRepositoryTriggersOutput) String() string {
31430	return awsutil.Prettify(s)
31431}
31432
31433// GoString returns the string representation
31434func (s TestRepositoryTriggersOutput) GoString() string {
31435	return s.String()
31436}
31437
31438// SetFailedExecutions sets the FailedExecutions field's value.
31439func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput {
31440	s.FailedExecutions = v
31441	return s
31442}
31443
31444// SetSuccessfulExecutions sets the SuccessfulExecutions field's value.
31445func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput {
31446	s.SuccessfulExecutions = v
31447	return s
31448}
31449
31450// The tip of the source branch in the destination repository does not match
31451// the tip of the source branch specified in your request. The pull request
31452// might have been updated. Make sure that you have the latest changes.
31453type TipOfSourceReferenceIsDifferentException struct {
31454	_            struct{}                  `type:"structure"`
31455	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31456
31457	Message_ *string `locationName:"message" type:"string"`
31458}
31459
31460// String returns the string representation
31461func (s TipOfSourceReferenceIsDifferentException) String() string {
31462	return awsutil.Prettify(s)
31463}
31464
31465// GoString returns the string representation
31466func (s TipOfSourceReferenceIsDifferentException) GoString() string {
31467	return s.String()
31468}
31469
31470func newErrorTipOfSourceReferenceIsDifferentException(v protocol.ResponseMetadata) error {
31471	return &TipOfSourceReferenceIsDifferentException{
31472		RespMetadata: v,
31473	}
31474}
31475
31476// Code returns the exception type name.
31477func (s *TipOfSourceReferenceIsDifferentException) Code() string {
31478	return "TipOfSourceReferenceIsDifferentException"
31479}
31480
31481// Message returns the exception's message.
31482func (s *TipOfSourceReferenceIsDifferentException) Message() string {
31483	if s.Message_ != nil {
31484		return *s.Message_
31485	}
31486	return ""
31487}
31488
31489// OrigErr always returns nil, satisfies awserr.Error interface.
31490func (s *TipOfSourceReferenceIsDifferentException) OrigErr() error {
31491	return nil
31492}
31493
31494func (s *TipOfSourceReferenceIsDifferentException) Error() string {
31495	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31496}
31497
31498// Status code returns the HTTP status code for the request's response error.
31499func (s *TipOfSourceReferenceIsDifferentException) StatusCode() int {
31500	return s.RespMetadata.StatusCode
31501}
31502
31503// RequestID returns the service's response RequestID for request.
31504func (s *TipOfSourceReferenceIsDifferentException) RequestID() string {
31505	return s.RespMetadata.RequestID
31506}
31507
31508// The divergence between the tips of the provided commit specifiers is too
31509// great to determine whether there might be any merge conflicts. Locally compare
31510// the specifiers using git diff or a diff tool.
31511type TipsDivergenceExceededException struct {
31512	_            struct{}                  `type:"structure"`
31513	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31514
31515	Message_ *string `locationName:"message" type:"string"`
31516}
31517
31518// String returns the string representation
31519func (s TipsDivergenceExceededException) String() string {
31520	return awsutil.Prettify(s)
31521}
31522
31523// GoString returns the string representation
31524func (s TipsDivergenceExceededException) GoString() string {
31525	return s.String()
31526}
31527
31528func newErrorTipsDivergenceExceededException(v protocol.ResponseMetadata) error {
31529	return &TipsDivergenceExceededException{
31530		RespMetadata: v,
31531	}
31532}
31533
31534// Code returns the exception type name.
31535func (s *TipsDivergenceExceededException) Code() string {
31536	return "TipsDivergenceExceededException"
31537}
31538
31539// Message returns the exception's message.
31540func (s *TipsDivergenceExceededException) Message() string {
31541	if s.Message_ != nil {
31542		return *s.Message_
31543	}
31544	return ""
31545}
31546
31547// OrigErr always returns nil, satisfies awserr.Error interface.
31548func (s *TipsDivergenceExceededException) OrigErr() error {
31549	return nil
31550}
31551
31552func (s *TipsDivergenceExceededException) Error() string {
31553	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31554}
31555
31556// Status code returns the HTTP status code for the request's response error.
31557func (s *TipsDivergenceExceededException) StatusCode() int {
31558	return s.RespMetadata.StatusCode
31559}
31560
31561// RequestID returns the service's response RequestID for request.
31562func (s *TipsDivergenceExceededException) RequestID() string {
31563	return s.RespMetadata.RequestID
31564}
31565
31566// A pull request title is required. It cannot be empty or null.
31567type TitleRequiredException struct {
31568	_            struct{}                  `type:"structure"`
31569	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31570
31571	Message_ *string `locationName:"message" type:"string"`
31572}
31573
31574// String returns the string representation
31575func (s TitleRequiredException) String() string {
31576	return awsutil.Prettify(s)
31577}
31578
31579// GoString returns the string representation
31580func (s TitleRequiredException) GoString() string {
31581	return s.String()
31582}
31583
31584func newErrorTitleRequiredException(v protocol.ResponseMetadata) error {
31585	return &TitleRequiredException{
31586		RespMetadata: v,
31587	}
31588}
31589
31590// Code returns the exception type name.
31591func (s *TitleRequiredException) Code() string {
31592	return "TitleRequiredException"
31593}
31594
31595// Message returns the exception's message.
31596func (s *TitleRequiredException) Message() string {
31597	if s.Message_ != nil {
31598		return *s.Message_
31599	}
31600	return ""
31601}
31602
31603// OrigErr always returns nil, satisfies awserr.Error interface.
31604func (s *TitleRequiredException) OrigErr() error {
31605	return nil
31606}
31607
31608func (s *TitleRequiredException) Error() string {
31609	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31610}
31611
31612// Status code returns the HTTP status code for the request's response error.
31613func (s *TitleRequiredException) StatusCode() int {
31614	return s.RespMetadata.StatusCode
31615}
31616
31617// RequestID returns the service's response RequestID for request.
31618func (s *TitleRequiredException) RequestID() string {
31619	return s.RespMetadata.RequestID
31620}
31621
31622// The maximum number of tags for an AWS CodeCommit resource has been exceeded.
31623type TooManyTagsException struct {
31624	_            struct{}                  `type:"structure"`
31625	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
31626
31627	Message_ *string `locationName:"message" type:"string"`
31628}
31629
31630// String returns the string representation
31631func (s TooManyTagsException) String() string {
31632	return awsutil.Prettify(s)
31633}
31634
31635// GoString returns the string representation
31636func (s TooManyTagsException) GoString() string {
31637	return s.String()
31638}
31639
31640func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
31641	return &TooManyTagsException{
31642		RespMetadata: v,
31643	}
31644}
31645
31646// Code returns the exception type name.
31647func (s *TooManyTagsException) Code() string {
31648	return "TooManyTagsException"
31649}
31650
31651// Message returns the exception's message.
31652func (s *TooManyTagsException) Message() string {
31653	if s.Message_ != nil {
31654		return *s.Message_
31655	}
31656	return ""
31657}
31658
31659// OrigErr always returns nil, satisfies awserr.Error interface.
31660func (s *TooManyTagsException) OrigErr() error {
31661	return nil
31662}
31663
31664func (s *TooManyTagsException) Error() string {
31665	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
31666}
31667
31668// Status code returns the HTTP status code for the request's response error.
31669func (s *TooManyTagsException) StatusCode() int {
31670	return s.RespMetadata.StatusCode
31671}
31672
31673// RequestID returns the service's response RequestID for request.
31674func (s *TooManyTagsException) RequestID() string {
31675	return s.RespMetadata.RequestID
31676}
31677
31678type UntagResourceInput struct {
31679	_ struct{} `type:"structure"`
31680
31681	// The Amazon Resource Name (ARN) of the resource to which you want to remove
31682	// tags.
31683	//
31684	// ResourceArn is a required field
31685	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
31686
31687	// The tag key for each tag that you want to remove from the resource.
31688	//
31689	// TagKeys is a required field
31690	TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
31691}
31692
31693// String returns the string representation
31694func (s UntagResourceInput) String() string {
31695	return awsutil.Prettify(s)
31696}
31697
31698// GoString returns the string representation
31699func (s UntagResourceInput) GoString() string {
31700	return s.String()
31701}
31702
31703// Validate inspects the fields of the type to determine if they are valid.
31704func (s *UntagResourceInput) Validate() error {
31705	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
31706	if s.ResourceArn == nil {
31707		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
31708	}
31709	if s.TagKeys == nil {
31710		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
31711	}
31712
31713	if invalidParams.Len() > 0 {
31714		return invalidParams
31715	}
31716	return nil
31717}
31718
31719// SetResourceArn sets the ResourceArn field's value.
31720func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
31721	s.ResourceArn = &v
31722	return s
31723}
31724
31725// SetTagKeys sets the TagKeys field's value.
31726func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
31727	s.TagKeys = v
31728	return s
31729}
31730
31731type UntagResourceOutput struct {
31732	_ struct{} `type:"structure"`
31733}
31734
31735// String returns the string representation
31736func (s UntagResourceOutput) String() string {
31737	return awsutil.Prettify(s)
31738}
31739
31740// GoString returns the string representation
31741func (s UntagResourceOutput) GoString() string {
31742	return s.String()
31743}
31744
31745type UpdateApprovalRuleTemplateContentInput struct {
31746	_ struct{} `type:"structure"`
31747
31748	// The name of the approval rule template where you want to update the content
31749	// of the rule.
31750	//
31751	// ApprovalRuleTemplateName is a required field
31752	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
31753
31754	// The SHA-256 hash signature for the content of the approval rule. You can
31755	// retrieve this information by using GetPullRequest.
31756	ExistingRuleContentSha256 *string `locationName:"existingRuleContentSha256" type:"string"`
31757
31758	// The content that replaces the existing content of the rule. Content statements
31759	// must be complete. You cannot provide only the changes.
31760	//
31761	// NewRuleContent is a required field
31762	NewRuleContent *string `locationName:"newRuleContent" min:"1" type:"string" required:"true"`
31763}
31764
31765// String returns the string representation
31766func (s UpdateApprovalRuleTemplateContentInput) String() string {
31767	return awsutil.Prettify(s)
31768}
31769
31770// GoString returns the string representation
31771func (s UpdateApprovalRuleTemplateContentInput) GoString() string {
31772	return s.String()
31773}
31774
31775// Validate inspects the fields of the type to determine if they are valid.
31776func (s *UpdateApprovalRuleTemplateContentInput) Validate() error {
31777	invalidParams := request.ErrInvalidParams{Context: "UpdateApprovalRuleTemplateContentInput"}
31778	if s.ApprovalRuleTemplateName == nil {
31779		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
31780	}
31781	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
31782		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
31783	}
31784	if s.NewRuleContent == nil {
31785		invalidParams.Add(request.NewErrParamRequired("NewRuleContent"))
31786	}
31787	if s.NewRuleContent != nil && len(*s.NewRuleContent) < 1 {
31788		invalidParams.Add(request.NewErrParamMinLen("NewRuleContent", 1))
31789	}
31790
31791	if invalidParams.Len() > 0 {
31792		return invalidParams
31793	}
31794	return nil
31795}
31796
31797// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
31798func (s *UpdateApprovalRuleTemplateContentInput) SetApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateContentInput {
31799	s.ApprovalRuleTemplateName = &v
31800	return s
31801}
31802
31803// SetExistingRuleContentSha256 sets the ExistingRuleContentSha256 field's value.
31804func (s *UpdateApprovalRuleTemplateContentInput) SetExistingRuleContentSha256(v string) *UpdateApprovalRuleTemplateContentInput {
31805	s.ExistingRuleContentSha256 = &v
31806	return s
31807}
31808
31809// SetNewRuleContent sets the NewRuleContent field's value.
31810func (s *UpdateApprovalRuleTemplateContentInput) SetNewRuleContent(v string) *UpdateApprovalRuleTemplateContentInput {
31811	s.NewRuleContent = &v
31812	return s
31813}
31814
31815type UpdateApprovalRuleTemplateContentOutput struct {
31816	_ struct{} `type:"structure"`
31817
31818	// Returns information about an approval rule template.
31819	//
31820	// ApprovalRuleTemplate is a required field
31821	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
31822}
31823
31824// String returns the string representation
31825func (s UpdateApprovalRuleTemplateContentOutput) String() string {
31826	return awsutil.Prettify(s)
31827}
31828
31829// GoString returns the string representation
31830func (s UpdateApprovalRuleTemplateContentOutput) GoString() string {
31831	return s.String()
31832}
31833
31834// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
31835func (s *UpdateApprovalRuleTemplateContentOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *UpdateApprovalRuleTemplateContentOutput {
31836	s.ApprovalRuleTemplate = v
31837	return s
31838}
31839
31840type UpdateApprovalRuleTemplateDescriptionInput struct {
31841	_ struct{} `type:"structure"`
31842
31843	// The updated description of the approval rule template.
31844	//
31845	// ApprovalRuleTemplateDescription is a required field
31846	ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string" required:"true"`
31847
31848	// The name of the template for which you want to update the description.
31849	//
31850	// ApprovalRuleTemplateName is a required field
31851	ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"`
31852}
31853
31854// String returns the string representation
31855func (s UpdateApprovalRuleTemplateDescriptionInput) String() string {
31856	return awsutil.Prettify(s)
31857}
31858
31859// GoString returns the string representation
31860func (s UpdateApprovalRuleTemplateDescriptionInput) GoString() string {
31861	return s.String()
31862}
31863
31864// Validate inspects the fields of the type to determine if they are valid.
31865func (s *UpdateApprovalRuleTemplateDescriptionInput) Validate() error {
31866	invalidParams := request.ErrInvalidParams{Context: "UpdateApprovalRuleTemplateDescriptionInput"}
31867	if s.ApprovalRuleTemplateDescription == nil {
31868		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateDescription"))
31869	}
31870	if s.ApprovalRuleTemplateName == nil {
31871		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName"))
31872	}
31873	if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 {
31874		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1))
31875	}
31876
31877	if invalidParams.Len() > 0 {
31878		return invalidParams
31879	}
31880	return nil
31881}
31882
31883// SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value.
31884func (s *UpdateApprovalRuleTemplateDescriptionInput) SetApprovalRuleTemplateDescription(v string) *UpdateApprovalRuleTemplateDescriptionInput {
31885	s.ApprovalRuleTemplateDescription = &v
31886	return s
31887}
31888
31889// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value.
31890func (s *UpdateApprovalRuleTemplateDescriptionInput) SetApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateDescriptionInput {
31891	s.ApprovalRuleTemplateName = &v
31892	return s
31893}
31894
31895type UpdateApprovalRuleTemplateDescriptionOutput struct {
31896	_ struct{} `type:"structure"`
31897
31898	// The structure and content of the updated approval rule template.
31899	//
31900	// ApprovalRuleTemplate is a required field
31901	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
31902}
31903
31904// String returns the string representation
31905func (s UpdateApprovalRuleTemplateDescriptionOutput) String() string {
31906	return awsutil.Prettify(s)
31907}
31908
31909// GoString returns the string representation
31910func (s UpdateApprovalRuleTemplateDescriptionOutput) GoString() string {
31911	return s.String()
31912}
31913
31914// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
31915func (s *UpdateApprovalRuleTemplateDescriptionOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *UpdateApprovalRuleTemplateDescriptionOutput {
31916	s.ApprovalRuleTemplate = v
31917	return s
31918}
31919
31920type UpdateApprovalRuleTemplateNameInput struct {
31921	_ struct{} `type:"structure"`
31922
31923	// The new name you want to apply to the approval rule template.
31924	//
31925	// NewApprovalRuleTemplateName is a required field
31926	NewApprovalRuleTemplateName *string `locationName:"newApprovalRuleTemplateName" min:"1" type:"string" required:"true"`
31927
31928	// The current name of the approval rule template.
31929	//
31930	// OldApprovalRuleTemplateName is a required field
31931	OldApprovalRuleTemplateName *string `locationName:"oldApprovalRuleTemplateName" min:"1" type:"string" required:"true"`
31932}
31933
31934// String returns the string representation
31935func (s UpdateApprovalRuleTemplateNameInput) String() string {
31936	return awsutil.Prettify(s)
31937}
31938
31939// GoString returns the string representation
31940func (s UpdateApprovalRuleTemplateNameInput) GoString() string {
31941	return s.String()
31942}
31943
31944// Validate inspects the fields of the type to determine if they are valid.
31945func (s *UpdateApprovalRuleTemplateNameInput) Validate() error {
31946	invalidParams := request.ErrInvalidParams{Context: "UpdateApprovalRuleTemplateNameInput"}
31947	if s.NewApprovalRuleTemplateName == nil {
31948		invalidParams.Add(request.NewErrParamRequired("NewApprovalRuleTemplateName"))
31949	}
31950	if s.NewApprovalRuleTemplateName != nil && len(*s.NewApprovalRuleTemplateName) < 1 {
31951		invalidParams.Add(request.NewErrParamMinLen("NewApprovalRuleTemplateName", 1))
31952	}
31953	if s.OldApprovalRuleTemplateName == nil {
31954		invalidParams.Add(request.NewErrParamRequired("OldApprovalRuleTemplateName"))
31955	}
31956	if s.OldApprovalRuleTemplateName != nil && len(*s.OldApprovalRuleTemplateName) < 1 {
31957		invalidParams.Add(request.NewErrParamMinLen("OldApprovalRuleTemplateName", 1))
31958	}
31959
31960	if invalidParams.Len() > 0 {
31961		return invalidParams
31962	}
31963	return nil
31964}
31965
31966// SetNewApprovalRuleTemplateName sets the NewApprovalRuleTemplateName field's value.
31967func (s *UpdateApprovalRuleTemplateNameInput) SetNewApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateNameInput {
31968	s.NewApprovalRuleTemplateName = &v
31969	return s
31970}
31971
31972// SetOldApprovalRuleTemplateName sets the OldApprovalRuleTemplateName field's value.
31973func (s *UpdateApprovalRuleTemplateNameInput) SetOldApprovalRuleTemplateName(v string) *UpdateApprovalRuleTemplateNameInput {
31974	s.OldApprovalRuleTemplateName = &v
31975	return s
31976}
31977
31978type UpdateApprovalRuleTemplateNameOutput struct {
31979	_ struct{} `type:"structure"`
31980
31981	// The structure and content of the updated approval rule template.
31982	//
31983	// ApprovalRuleTemplate is a required field
31984	ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"`
31985}
31986
31987// String returns the string representation
31988func (s UpdateApprovalRuleTemplateNameOutput) String() string {
31989	return awsutil.Prettify(s)
31990}
31991
31992// GoString returns the string representation
31993func (s UpdateApprovalRuleTemplateNameOutput) GoString() string {
31994	return s.String()
31995}
31996
31997// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value.
31998func (s *UpdateApprovalRuleTemplateNameOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *UpdateApprovalRuleTemplateNameOutput {
31999	s.ApprovalRuleTemplate = v
32000	return s
32001}
32002
32003type UpdateCommentInput struct {
32004	_ struct{} `type:"structure"`
32005
32006	// The system-generated ID of the comment you want to update. To get this ID,
32007	// use GetCommentsForComparedCommit or GetCommentsForPullRequest.
32008	//
32009	// CommentId is a required field
32010	CommentId *string `locationName:"commentId" type:"string" required:"true"`
32011
32012	// The updated content to replace the existing content of the comment.
32013	//
32014	// Content is a required field
32015	Content *string `locationName:"content" type:"string" required:"true"`
32016}
32017
32018// String returns the string representation
32019func (s UpdateCommentInput) String() string {
32020	return awsutil.Prettify(s)
32021}
32022
32023// GoString returns the string representation
32024func (s UpdateCommentInput) GoString() string {
32025	return s.String()
32026}
32027
32028// Validate inspects the fields of the type to determine if they are valid.
32029func (s *UpdateCommentInput) Validate() error {
32030	invalidParams := request.ErrInvalidParams{Context: "UpdateCommentInput"}
32031	if s.CommentId == nil {
32032		invalidParams.Add(request.NewErrParamRequired("CommentId"))
32033	}
32034	if s.Content == nil {
32035		invalidParams.Add(request.NewErrParamRequired("Content"))
32036	}
32037
32038	if invalidParams.Len() > 0 {
32039		return invalidParams
32040	}
32041	return nil
32042}
32043
32044// SetCommentId sets the CommentId field's value.
32045func (s *UpdateCommentInput) SetCommentId(v string) *UpdateCommentInput {
32046	s.CommentId = &v
32047	return s
32048}
32049
32050// SetContent sets the Content field's value.
32051func (s *UpdateCommentInput) SetContent(v string) *UpdateCommentInput {
32052	s.Content = &v
32053	return s
32054}
32055
32056type UpdateCommentOutput struct {
32057	_ struct{} `type:"structure"`
32058
32059	// Information about the updated comment.
32060	Comment *Comment `locationName:"comment" type:"structure"`
32061}
32062
32063// String returns the string representation
32064func (s UpdateCommentOutput) String() string {
32065	return awsutil.Prettify(s)
32066}
32067
32068// GoString returns the string representation
32069func (s UpdateCommentOutput) GoString() string {
32070	return s.String()
32071}
32072
32073// SetComment sets the Comment field's value.
32074func (s *UpdateCommentOutput) SetComment(v *Comment) *UpdateCommentOutput {
32075	s.Comment = v
32076	return s
32077}
32078
32079// Represents the input of an update default branch operation.
32080type UpdateDefaultBranchInput struct {
32081	_ struct{} `type:"structure"`
32082
32083	// The name of the branch to set as the default.
32084	//
32085	// DefaultBranchName is a required field
32086	DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"`
32087
32088	// The name of the repository to set or change the default branch for.
32089	//
32090	// RepositoryName is a required field
32091	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
32092}
32093
32094// String returns the string representation
32095func (s UpdateDefaultBranchInput) String() string {
32096	return awsutil.Prettify(s)
32097}
32098
32099// GoString returns the string representation
32100func (s UpdateDefaultBranchInput) GoString() string {
32101	return s.String()
32102}
32103
32104// Validate inspects the fields of the type to determine if they are valid.
32105func (s *UpdateDefaultBranchInput) Validate() error {
32106	invalidParams := request.ErrInvalidParams{Context: "UpdateDefaultBranchInput"}
32107	if s.DefaultBranchName == nil {
32108		invalidParams.Add(request.NewErrParamRequired("DefaultBranchName"))
32109	}
32110	if s.DefaultBranchName != nil && len(*s.DefaultBranchName) < 1 {
32111		invalidParams.Add(request.NewErrParamMinLen("DefaultBranchName", 1))
32112	}
32113	if s.RepositoryName == nil {
32114		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
32115	}
32116	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
32117		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
32118	}
32119
32120	if invalidParams.Len() > 0 {
32121		return invalidParams
32122	}
32123	return nil
32124}
32125
32126// SetDefaultBranchName sets the DefaultBranchName field's value.
32127func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput {
32128	s.DefaultBranchName = &v
32129	return s
32130}
32131
32132// SetRepositoryName sets the RepositoryName field's value.
32133func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput {
32134	s.RepositoryName = &v
32135	return s
32136}
32137
32138type UpdateDefaultBranchOutput struct {
32139	_ struct{} `type:"structure"`
32140}
32141
32142// String returns the string representation
32143func (s UpdateDefaultBranchOutput) String() string {
32144	return awsutil.Prettify(s)
32145}
32146
32147// GoString returns the string representation
32148func (s UpdateDefaultBranchOutput) GoString() string {
32149	return s.String()
32150}
32151
32152type UpdatePullRequestApprovalRuleContentInput struct {
32153	_ struct{} `type:"structure"`
32154
32155	// The name of the approval rule you want to update.
32156	//
32157	// ApprovalRuleName is a required field
32158	ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"`
32159
32160	// The SHA-256 hash signature for the content of the approval rule. You can
32161	// retrieve this information by using GetPullRequest.
32162	ExistingRuleContentSha256 *string `locationName:"existingRuleContentSha256" type:"string"`
32163
32164	// The updated content for the approval rule.
32165	//
32166	// When you update the content of the approval rule, you can specify approvers
32167	// in an approval pool in one of two ways:
32168	//
32169	//    * CodeCommitApprovers: This option only requires an AWS account and a
32170	//    resource. It can be used for both IAM users and federated access users
32171	//    whose name matches the provided resource name. This is a very powerful
32172	//    option that offers a great deal of flexibility. For example, if you specify
32173	//    the AWS account 123456789012 and Mary_Major, all of the following are
32174	//    counted as approvals coming from that user: An IAM user in the account
32175	//    (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified
32176	//    in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
32177	//    This option does not recognize an active session of someone assuming the
32178	//    role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major)
32179	//    unless you include a wildcard (*Mary_Major).
32180	//
32181	//    * Fully qualified ARN: This option allows you to specify the fully qualified
32182	//    Amazon Resource Name (ARN) of the IAM user or role.
32183	//
32184	// For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers
32185	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)
32186	// in the IAM User Guide.
32187	//
32188	// NewRuleContent is a required field
32189	NewRuleContent *string `locationName:"newRuleContent" min:"1" type:"string" required:"true"`
32190
32191	// The system-generated ID of the pull request.
32192	//
32193	// PullRequestId is a required field
32194	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
32195}
32196
32197// String returns the string representation
32198func (s UpdatePullRequestApprovalRuleContentInput) String() string {
32199	return awsutil.Prettify(s)
32200}
32201
32202// GoString returns the string representation
32203func (s UpdatePullRequestApprovalRuleContentInput) GoString() string {
32204	return s.String()
32205}
32206
32207// Validate inspects the fields of the type to determine if they are valid.
32208func (s *UpdatePullRequestApprovalRuleContentInput) Validate() error {
32209	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestApprovalRuleContentInput"}
32210	if s.ApprovalRuleName == nil {
32211		invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName"))
32212	}
32213	if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 {
32214		invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1))
32215	}
32216	if s.NewRuleContent == nil {
32217		invalidParams.Add(request.NewErrParamRequired("NewRuleContent"))
32218	}
32219	if s.NewRuleContent != nil && len(*s.NewRuleContent) < 1 {
32220		invalidParams.Add(request.NewErrParamMinLen("NewRuleContent", 1))
32221	}
32222	if s.PullRequestId == nil {
32223		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
32224	}
32225
32226	if invalidParams.Len() > 0 {
32227		return invalidParams
32228	}
32229	return nil
32230}
32231
32232// SetApprovalRuleName sets the ApprovalRuleName field's value.
32233func (s *UpdatePullRequestApprovalRuleContentInput) SetApprovalRuleName(v string) *UpdatePullRequestApprovalRuleContentInput {
32234	s.ApprovalRuleName = &v
32235	return s
32236}
32237
32238// SetExistingRuleContentSha256 sets the ExistingRuleContentSha256 field's value.
32239func (s *UpdatePullRequestApprovalRuleContentInput) SetExistingRuleContentSha256(v string) *UpdatePullRequestApprovalRuleContentInput {
32240	s.ExistingRuleContentSha256 = &v
32241	return s
32242}
32243
32244// SetNewRuleContent sets the NewRuleContent field's value.
32245func (s *UpdatePullRequestApprovalRuleContentInput) SetNewRuleContent(v string) *UpdatePullRequestApprovalRuleContentInput {
32246	s.NewRuleContent = &v
32247	return s
32248}
32249
32250// SetPullRequestId sets the PullRequestId field's value.
32251func (s *UpdatePullRequestApprovalRuleContentInput) SetPullRequestId(v string) *UpdatePullRequestApprovalRuleContentInput {
32252	s.PullRequestId = &v
32253	return s
32254}
32255
32256type UpdatePullRequestApprovalRuleContentOutput struct {
32257	_ struct{} `type:"structure"`
32258
32259	// Information about the updated approval rule.
32260	//
32261	// ApprovalRule is a required field
32262	ApprovalRule *ApprovalRule `locationName:"approvalRule" type:"structure" required:"true"`
32263}
32264
32265// String returns the string representation
32266func (s UpdatePullRequestApprovalRuleContentOutput) String() string {
32267	return awsutil.Prettify(s)
32268}
32269
32270// GoString returns the string representation
32271func (s UpdatePullRequestApprovalRuleContentOutput) GoString() string {
32272	return s.String()
32273}
32274
32275// SetApprovalRule sets the ApprovalRule field's value.
32276func (s *UpdatePullRequestApprovalRuleContentOutput) SetApprovalRule(v *ApprovalRule) *UpdatePullRequestApprovalRuleContentOutput {
32277	s.ApprovalRule = v
32278	return s
32279}
32280
32281type UpdatePullRequestApprovalStateInput struct {
32282	_ struct{} `type:"structure"`
32283
32284	// The approval state to associate with the user on the pull request.
32285	//
32286	// ApprovalState is a required field
32287	ApprovalState *string `locationName:"approvalState" type:"string" required:"true" enum:"ApprovalState"`
32288
32289	// The system-generated ID of the pull request.
32290	//
32291	// PullRequestId is a required field
32292	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
32293
32294	// The system-generated ID of the revision.
32295	//
32296	// RevisionId is a required field
32297	RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
32298}
32299
32300// String returns the string representation
32301func (s UpdatePullRequestApprovalStateInput) String() string {
32302	return awsutil.Prettify(s)
32303}
32304
32305// GoString returns the string representation
32306func (s UpdatePullRequestApprovalStateInput) GoString() string {
32307	return s.String()
32308}
32309
32310// Validate inspects the fields of the type to determine if they are valid.
32311func (s *UpdatePullRequestApprovalStateInput) Validate() error {
32312	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestApprovalStateInput"}
32313	if s.ApprovalState == nil {
32314		invalidParams.Add(request.NewErrParamRequired("ApprovalState"))
32315	}
32316	if s.PullRequestId == nil {
32317		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
32318	}
32319	if s.RevisionId == nil {
32320		invalidParams.Add(request.NewErrParamRequired("RevisionId"))
32321	}
32322
32323	if invalidParams.Len() > 0 {
32324		return invalidParams
32325	}
32326	return nil
32327}
32328
32329// SetApprovalState sets the ApprovalState field's value.
32330func (s *UpdatePullRequestApprovalStateInput) SetApprovalState(v string) *UpdatePullRequestApprovalStateInput {
32331	s.ApprovalState = &v
32332	return s
32333}
32334
32335// SetPullRequestId sets the PullRequestId field's value.
32336func (s *UpdatePullRequestApprovalStateInput) SetPullRequestId(v string) *UpdatePullRequestApprovalStateInput {
32337	s.PullRequestId = &v
32338	return s
32339}
32340
32341// SetRevisionId sets the RevisionId field's value.
32342func (s *UpdatePullRequestApprovalStateInput) SetRevisionId(v string) *UpdatePullRequestApprovalStateInput {
32343	s.RevisionId = &v
32344	return s
32345}
32346
32347type UpdatePullRequestApprovalStateOutput struct {
32348	_ struct{} `type:"structure"`
32349}
32350
32351// String returns the string representation
32352func (s UpdatePullRequestApprovalStateOutput) String() string {
32353	return awsutil.Prettify(s)
32354}
32355
32356// GoString returns the string representation
32357func (s UpdatePullRequestApprovalStateOutput) GoString() string {
32358	return s.String()
32359}
32360
32361type UpdatePullRequestDescriptionInput struct {
32362	_ struct{} `type:"structure"`
32363
32364	// The updated content of the description for the pull request. This content
32365	// replaces the existing description.
32366	//
32367	// Description is a required field
32368	Description *string `locationName:"description" type:"string" required:"true"`
32369
32370	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
32371	//
32372	// PullRequestId is a required field
32373	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
32374}
32375
32376// String returns the string representation
32377func (s UpdatePullRequestDescriptionInput) String() string {
32378	return awsutil.Prettify(s)
32379}
32380
32381// GoString returns the string representation
32382func (s UpdatePullRequestDescriptionInput) GoString() string {
32383	return s.String()
32384}
32385
32386// Validate inspects the fields of the type to determine if they are valid.
32387func (s *UpdatePullRequestDescriptionInput) Validate() error {
32388	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestDescriptionInput"}
32389	if s.Description == nil {
32390		invalidParams.Add(request.NewErrParamRequired("Description"))
32391	}
32392	if s.PullRequestId == nil {
32393		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
32394	}
32395
32396	if invalidParams.Len() > 0 {
32397		return invalidParams
32398	}
32399	return nil
32400}
32401
32402// SetDescription sets the Description field's value.
32403func (s *UpdatePullRequestDescriptionInput) SetDescription(v string) *UpdatePullRequestDescriptionInput {
32404	s.Description = &v
32405	return s
32406}
32407
32408// SetPullRequestId sets the PullRequestId field's value.
32409func (s *UpdatePullRequestDescriptionInput) SetPullRequestId(v string) *UpdatePullRequestDescriptionInput {
32410	s.PullRequestId = &v
32411	return s
32412}
32413
32414type UpdatePullRequestDescriptionOutput struct {
32415	_ struct{} `type:"structure"`
32416
32417	// Information about the updated pull request.
32418	//
32419	// PullRequest is a required field
32420	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
32421}
32422
32423// String returns the string representation
32424func (s UpdatePullRequestDescriptionOutput) String() string {
32425	return awsutil.Prettify(s)
32426}
32427
32428// GoString returns the string representation
32429func (s UpdatePullRequestDescriptionOutput) GoString() string {
32430	return s.String()
32431}
32432
32433// SetPullRequest sets the PullRequest field's value.
32434func (s *UpdatePullRequestDescriptionOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestDescriptionOutput {
32435	s.PullRequest = v
32436	return s
32437}
32438
32439type UpdatePullRequestStatusInput struct {
32440	_ struct{} `type:"structure"`
32441
32442	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
32443	//
32444	// PullRequestId is a required field
32445	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
32446
32447	// The status of the pull request. The only valid operations are to update the
32448	// status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.
32449	//
32450	// PullRequestStatus is a required field
32451	PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" required:"true" enum:"PullRequestStatusEnum"`
32452}
32453
32454// String returns the string representation
32455func (s UpdatePullRequestStatusInput) String() string {
32456	return awsutil.Prettify(s)
32457}
32458
32459// GoString returns the string representation
32460func (s UpdatePullRequestStatusInput) GoString() string {
32461	return s.String()
32462}
32463
32464// Validate inspects the fields of the type to determine if they are valid.
32465func (s *UpdatePullRequestStatusInput) Validate() error {
32466	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestStatusInput"}
32467	if s.PullRequestId == nil {
32468		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
32469	}
32470	if s.PullRequestStatus == nil {
32471		invalidParams.Add(request.NewErrParamRequired("PullRequestStatus"))
32472	}
32473
32474	if invalidParams.Len() > 0 {
32475		return invalidParams
32476	}
32477	return nil
32478}
32479
32480// SetPullRequestId sets the PullRequestId field's value.
32481func (s *UpdatePullRequestStatusInput) SetPullRequestId(v string) *UpdatePullRequestStatusInput {
32482	s.PullRequestId = &v
32483	return s
32484}
32485
32486// SetPullRequestStatus sets the PullRequestStatus field's value.
32487func (s *UpdatePullRequestStatusInput) SetPullRequestStatus(v string) *UpdatePullRequestStatusInput {
32488	s.PullRequestStatus = &v
32489	return s
32490}
32491
32492type UpdatePullRequestStatusOutput struct {
32493	_ struct{} `type:"structure"`
32494
32495	// Information about the pull request.
32496	//
32497	// PullRequest is a required field
32498	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
32499}
32500
32501// String returns the string representation
32502func (s UpdatePullRequestStatusOutput) String() string {
32503	return awsutil.Prettify(s)
32504}
32505
32506// GoString returns the string representation
32507func (s UpdatePullRequestStatusOutput) GoString() string {
32508	return s.String()
32509}
32510
32511// SetPullRequest sets the PullRequest field's value.
32512func (s *UpdatePullRequestStatusOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestStatusOutput {
32513	s.PullRequest = v
32514	return s
32515}
32516
32517type UpdatePullRequestTitleInput struct {
32518	_ struct{} `type:"structure"`
32519
32520	// The system-generated ID of the pull request. To get this ID, use ListPullRequests.
32521	//
32522	// PullRequestId is a required field
32523	PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
32524
32525	// The updated title of the pull request. This replaces the existing title.
32526	//
32527	// Title is a required field
32528	Title *string `locationName:"title" type:"string" required:"true"`
32529}
32530
32531// String returns the string representation
32532func (s UpdatePullRequestTitleInput) String() string {
32533	return awsutil.Prettify(s)
32534}
32535
32536// GoString returns the string representation
32537func (s UpdatePullRequestTitleInput) GoString() string {
32538	return s.String()
32539}
32540
32541// Validate inspects the fields of the type to determine if they are valid.
32542func (s *UpdatePullRequestTitleInput) Validate() error {
32543	invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestTitleInput"}
32544	if s.PullRequestId == nil {
32545		invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
32546	}
32547	if s.Title == nil {
32548		invalidParams.Add(request.NewErrParamRequired("Title"))
32549	}
32550
32551	if invalidParams.Len() > 0 {
32552		return invalidParams
32553	}
32554	return nil
32555}
32556
32557// SetPullRequestId sets the PullRequestId field's value.
32558func (s *UpdatePullRequestTitleInput) SetPullRequestId(v string) *UpdatePullRequestTitleInput {
32559	s.PullRequestId = &v
32560	return s
32561}
32562
32563// SetTitle sets the Title field's value.
32564func (s *UpdatePullRequestTitleInput) SetTitle(v string) *UpdatePullRequestTitleInput {
32565	s.Title = &v
32566	return s
32567}
32568
32569type UpdatePullRequestTitleOutput struct {
32570	_ struct{} `type:"structure"`
32571
32572	// Information about the updated pull request.
32573	//
32574	// PullRequest is a required field
32575	PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
32576}
32577
32578// String returns the string representation
32579func (s UpdatePullRequestTitleOutput) String() string {
32580	return awsutil.Prettify(s)
32581}
32582
32583// GoString returns the string representation
32584func (s UpdatePullRequestTitleOutput) GoString() string {
32585	return s.String()
32586}
32587
32588// SetPullRequest sets the PullRequest field's value.
32589func (s *UpdatePullRequestTitleOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestTitleOutput {
32590	s.PullRequest = v
32591	return s
32592}
32593
32594// Represents the input of an update repository description operation.
32595type UpdateRepositoryDescriptionInput struct {
32596	_ struct{} `type:"structure"`
32597
32598	// The new comment or description for the specified repository. Repository descriptions
32599	// are limited to 1,000 characters.
32600	RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
32601
32602	// The name of the repository to set or change the comment or description for.
32603	//
32604	// RepositoryName is a required field
32605	RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
32606}
32607
32608// String returns the string representation
32609func (s UpdateRepositoryDescriptionInput) String() string {
32610	return awsutil.Prettify(s)
32611}
32612
32613// GoString returns the string representation
32614func (s UpdateRepositoryDescriptionInput) GoString() string {
32615	return s.String()
32616}
32617
32618// Validate inspects the fields of the type to determine if they are valid.
32619func (s *UpdateRepositoryDescriptionInput) Validate() error {
32620	invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryDescriptionInput"}
32621	if s.RepositoryName == nil {
32622		invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
32623	}
32624	if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
32625		invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
32626	}
32627
32628	if invalidParams.Len() > 0 {
32629		return invalidParams
32630	}
32631	return nil
32632}
32633
32634// SetRepositoryDescription sets the RepositoryDescription field's value.
32635func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput {
32636	s.RepositoryDescription = &v
32637	return s
32638}
32639
32640// SetRepositoryName sets the RepositoryName field's value.
32641func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput {
32642	s.RepositoryName = &v
32643	return s
32644}
32645
32646type UpdateRepositoryDescriptionOutput struct {
32647	_ struct{} `type:"structure"`
32648}
32649
32650// String returns the string representation
32651func (s UpdateRepositoryDescriptionOutput) String() string {
32652	return awsutil.Prettify(s)
32653}
32654
32655// GoString returns the string representation
32656func (s UpdateRepositoryDescriptionOutput) GoString() string {
32657	return s.String()
32658}
32659
32660// Represents the input of an update repository description operation.
32661type UpdateRepositoryNameInput struct {
32662	_ struct{} `type:"structure"`
32663
32664	// The new name for the repository.
32665	//
32666	// NewName is a required field
32667	NewName *string `locationName:"newName" min:"1" type:"string" required:"true"`
32668
32669	// The current name of the repository.
32670	//
32671	// OldName is a required field
32672	OldName *string `locationName:"oldName" min:"1" type:"string" required:"true"`
32673}
32674
32675// String returns the string representation
32676func (s UpdateRepositoryNameInput) String() string {
32677	return awsutil.Prettify(s)
32678}
32679
32680// GoString returns the string representation
32681func (s UpdateRepositoryNameInput) GoString() string {
32682	return s.String()
32683}
32684
32685// Validate inspects the fields of the type to determine if they are valid.
32686func (s *UpdateRepositoryNameInput) Validate() error {
32687	invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryNameInput"}
32688	if s.NewName == nil {
32689		invalidParams.Add(request.NewErrParamRequired("NewName"))
32690	}
32691	if s.NewName != nil && len(*s.NewName) < 1 {
32692		invalidParams.Add(request.NewErrParamMinLen("NewName", 1))
32693	}
32694	if s.OldName == nil {
32695		invalidParams.Add(request.NewErrParamRequired("OldName"))
32696	}
32697	if s.OldName != nil && len(*s.OldName) < 1 {
32698		invalidParams.Add(request.NewErrParamMinLen("OldName", 1))
32699	}
32700
32701	if invalidParams.Len() > 0 {
32702		return invalidParams
32703	}
32704	return nil
32705}
32706
32707// SetNewName sets the NewName field's value.
32708func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput {
32709	s.NewName = &v
32710	return s
32711}
32712
32713// SetOldName sets the OldName field's value.
32714func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput {
32715	s.OldName = &v
32716	return s
32717}
32718
32719type UpdateRepositoryNameOutput struct {
32720	_ struct{} `type:"structure"`
32721}
32722
32723// String returns the string representation
32724func (s UpdateRepositoryNameOutput) String() string {
32725	return awsutil.Prettify(s)
32726}
32727
32728// GoString returns the string representation
32729func (s UpdateRepositoryNameOutput) GoString() string {
32730	return s.String()
32731}
32732
32733// Information about the user who made a specified commit.
32734type UserInfo struct {
32735	_ struct{} `type:"structure"`
32736
32737	// The date when the specified commit was commited, in timestamp format with
32738	// GMT offset.
32739	Date *string `locationName:"date" type:"string"`
32740
32741	// The email address associated with the user who made the commit, if any.
32742	Email *string `locationName:"email" type:"string"`
32743
32744	// The name of the user who made the specified commit.
32745	Name *string `locationName:"name" type:"string"`
32746}
32747
32748// String returns the string representation
32749func (s UserInfo) String() string {
32750	return awsutil.Prettify(s)
32751}
32752
32753// GoString returns the string representation
32754func (s UserInfo) GoString() string {
32755	return s.String()
32756}
32757
32758// SetDate sets the Date field's value.
32759func (s *UserInfo) SetDate(v string) *UserInfo {
32760	s.Date = &v
32761	return s
32762}
32763
32764// SetEmail sets the Email field's value.
32765func (s *UserInfo) SetEmail(v string) *UserInfo {
32766	s.Email = &v
32767	return s
32768}
32769
32770// SetName sets the Name field's value.
32771func (s *UserInfo) SetName(v string) *UserInfo {
32772	s.Name = &v
32773	return s
32774}
32775
32776const (
32777	// ApprovalStateApprove is a ApprovalState enum value
32778	ApprovalStateApprove = "APPROVE"
32779
32780	// ApprovalStateRevoke is a ApprovalState enum value
32781	ApprovalStateRevoke = "REVOKE"
32782)
32783
32784// ApprovalState_Values returns all elements of the ApprovalState enum
32785func ApprovalState_Values() []string {
32786	return []string{
32787		ApprovalStateApprove,
32788		ApprovalStateRevoke,
32789	}
32790}
32791
32792const (
32793	// ChangeTypeEnumA is a ChangeTypeEnum enum value
32794	ChangeTypeEnumA = "A"
32795
32796	// ChangeTypeEnumM is a ChangeTypeEnum enum value
32797	ChangeTypeEnumM = "M"
32798
32799	// ChangeTypeEnumD is a ChangeTypeEnum enum value
32800	ChangeTypeEnumD = "D"
32801)
32802
32803// ChangeTypeEnum_Values returns all elements of the ChangeTypeEnum enum
32804func ChangeTypeEnum_Values() []string {
32805	return []string{
32806		ChangeTypeEnumA,
32807		ChangeTypeEnumM,
32808		ChangeTypeEnumD,
32809	}
32810}
32811
32812const (
32813	// ConflictDetailLevelTypeEnumFileLevel is a ConflictDetailLevelTypeEnum enum value
32814	ConflictDetailLevelTypeEnumFileLevel = "FILE_LEVEL"
32815
32816	// ConflictDetailLevelTypeEnumLineLevel is a ConflictDetailLevelTypeEnum enum value
32817	ConflictDetailLevelTypeEnumLineLevel = "LINE_LEVEL"
32818)
32819
32820// ConflictDetailLevelTypeEnum_Values returns all elements of the ConflictDetailLevelTypeEnum enum
32821func ConflictDetailLevelTypeEnum_Values() []string {
32822	return []string{
32823		ConflictDetailLevelTypeEnumFileLevel,
32824		ConflictDetailLevelTypeEnumLineLevel,
32825	}
32826}
32827
32828const (
32829	// ConflictResolutionStrategyTypeEnumNone is a ConflictResolutionStrategyTypeEnum enum value
32830	ConflictResolutionStrategyTypeEnumNone = "NONE"
32831
32832	// ConflictResolutionStrategyTypeEnumAcceptSource is a ConflictResolutionStrategyTypeEnum enum value
32833	ConflictResolutionStrategyTypeEnumAcceptSource = "ACCEPT_SOURCE"
32834
32835	// ConflictResolutionStrategyTypeEnumAcceptDestination is a ConflictResolutionStrategyTypeEnum enum value
32836	ConflictResolutionStrategyTypeEnumAcceptDestination = "ACCEPT_DESTINATION"
32837
32838	// ConflictResolutionStrategyTypeEnumAutomerge is a ConflictResolutionStrategyTypeEnum enum value
32839	ConflictResolutionStrategyTypeEnumAutomerge = "AUTOMERGE"
32840)
32841
32842// ConflictResolutionStrategyTypeEnum_Values returns all elements of the ConflictResolutionStrategyTypeEnum enum
32843func ConflictResolutionStrategyTypeEnum_Values() []string {
32844	return []string{
32845		ConflictResolutionStrategyTypeEnumNone,
32846		ConflictResolutionStrategyTypeEnumAcceptSource,
32847		ConflictResolutionStrategyTypeEnumAcceptDestination,
32848		ConflictResolutionStrategyTypeEnumAutomerge,
32849	}
32850}
32851
32852const (
32853	// FileModeTypeEnumExecutable is a FileModeTypeEnum enum value
32854	FileModeTypeEnumExecutable = "EXECUTABLE"
32855
32856	// FileModeTypeEnumNormal is a FileModeTypeEnum enum value
32857	FileModeTypeEnumNormal = "NORMAL"
32858
32859	// FileModeTypeEnumSymlink is a FileModeTypeEnum enum value
32860	FileModeTypeEnumSymlink = "SYMLINK"
32861)
32862
32863// FileModeTypeEnum_Values returns all elements of the FileModeTypeEnum enum
32864func FileModeTypeEnum_Values() []string {
32865	return []string{
32866		FileModeTypeEnumExecutable,
32867		FileModeTypeEnumNormal,
32868		FileModeTypeEnumSymlink,
32869	}
32870}
32871
32872const (
32873	// MergeOptionTypeEnumFastForwardMerge is a MergeOptionTypeEnum enum value
32874	MergeOptionTypeEnumFastForwardMerge = "FAST_FORWARD_MERGE"
32875
32876	// MergeOptionTypeEnumSquashMerge is a MergeOptionTypeEnum enum value
32877	MergeOptionTypeEnumSquashMerge = "SQUASH_MERGE"
32878
32879	// MergeOptionTypeEnumThreeWayMerge is a MergeOptionTypeEnum enum value
32880	MergeOptionTypeEnumThreeWayMerge = "THREE_WAY_MERGE"
32881)
32882
32883// MergeOptionTypeEnum_Values returns all elements of the MergeOptionTypeEnum enum
32884func MergeOptionTypeEnum_Values() []string {
32885	return []string{
32886		MergeOptionTypeEnumFastForwardMerge,
32887		MergeOptionTypeEnumSquashMerge,
32888		MergeOptionTypeEnumThreeWayMerge,
32889	}
32890}
32891
32892const (
32893	// ObjectTypeEnumFile is a ObjectTypeEnum enum value
32894	ObjectTypeEnumFile = "FILE"
32895
32896	// ObjectTypeEnumDirectory is a ObjectTypeEnum enum value
32897	ObjectTypeEnumDirectory = "DIRECTORY"
32898
32899	// ObjectTypeEnumGitLink is a ObjectTypeEnum enum value
32900	ObjectTypeEnumGitLink = "GIT_LINK"
32901
32902	// ObjectTypeEnumSymbolicLink is a ObjectTypeEnum enum value
32903	ObjectTypeEnumSymbolicLink = "SYMBOLIC_LINK"
32904)
32905
32906// ObjectTypeEnum_Values returns all elements of the ObjectTypeEnum enum
32907func ObjectTypeEnum_Values() []string {
32908	return []string{
32909		ObjectTypeEnumFile,
32910		ObjectTypeEnumDirectory,
32911		ObjectTypeEnumGitLink,
32912		ObjectTypeEnumSymbolicLink,
32913	}
32914}
32915
32916const (
32917	// OrderEnumAscending is a OrderEnum enum value
32918	OrderEnumAscending = "ascending"
32919
32920	// OrderEnumDescending is a OrderEnum enum value
32921	OrderEnumDescending = "descending"
32922)
32923
32924// OrderEnum_Values returns all elements of the OrderEnum enum
32925func OrderEnum_Values() []string {
32926	return []string{
32927		OrderEnumAscending,
32928		OrderEnumDescending,
32929	}
32930}
32931
32932const (
32933	// OverrideStatusOverride is a OverrideStatus enum value
32934	OverrideStatusOverride = "OVERRIDE"
32935
32936	// OverrideStatusRevoke is a OverrideStatus enum value
32937	OverrideStatusRevoke = "REVOKE"
32938)
32939
32940// OverrideStatus_Values returns all elements of the OverrideStatus enum
32941func OverrideStatus_Values() []string {
32942	return []string{
32943		OverrideStatusOverride,
32944		OverrideStatusRevoke,
32945	}
32946}
32947
32948const (
32949	// PullRequestEventTypePullRequestCreated is a PullRequestEventType enum value
32950	PullRequestEventTypePullRequestCreated = "PULL_REQUEST_CREATED"
32951
32952	// PullRequestEventTypePullRequestStatusChanged is a PullRequestEventType enum value
32953	PullRequestEventTypePullRequestStatusChanged = "PULL_REQUEST_STATUS_CHANGED"
32954
32955	// PullRequestEventTypePullRequestSourceReferenceUpdated is a PullRequestEventType enum value
32956	PullRequestEventTypePullRequestSourceReferenceUpdated = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED"
32957
32958	// PullRequestEventTypePullRequestMergeStateChanged is a PullRequestEventType enum value
32959	PullRequestEventTypePullRequestMergeStateChanged = "PULL_REQUEST_MERGE_STATE_CHANGED"
32960
32961	// PullRequestEventTypePullRequestApprovalRuleCreated is a PullRequestEventType enum value
32962	PullRequestEventTypePullRequestApprovalRuleCreated = "PULL_REQUEST_APPROVAL_RULE_CREATED"
32963
32964	// PullRequestEventTypePullRequestApprovalRuleUpdated is a PullRequestEventType enum value
32965	PullRequestEventTypePullRequestApprovalRuleUpdated = "PULL_REQUEST_APPROVAL_RULE_UPDATED"
32966
32967	// PullRequestEventTypePullRequestApprovalRuleDeleted is a PullRequestEventType enum value
32968	PullRequestEventTypePullRequestApprovalRuleDeleted = "PULL_REQUEST_APPROVAL_RULE_DELETED"
32969
32970	// PullRequestEventTypePullRequestApprovalRuleOverridden is a PullRequestEventType enum value
32971	PullRequestEventTypePullRequestApprovalRuleOverridden = "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"
32972
32973	// PullRequestEventTypePullRequestApprovalStateChanged is a PullRequestEventType enum value
32974	PullRequestEventTypePullRequestApprovalStateChanged = "PULL_REQUEST_APPROVAL_STATE_CHANGED"
32975)
32976
32977// PullRequestEventType_Values returns all elements of the PullRequestEventType enum
32978func PullRequestEventType_Values() []string {
32979	return []string{
32980		PullRequestEventTypePullRequestCreated,
32981		PullRequestEventTypePullRequestStatusChanged,
32982		PullRequestEventTypePullRequestSourceReferenceUpdated,
32983		PullRequestEventTypePullRequestMergeStateChanged,
32984		PullRequestEventTypePullRequestApprovalRuleCreated,
32985		PullRequestEventTypePullRequestApprovalRuleUpdated,
32986		PullRequestEventTypePullRequestApprovalRuleDeleted,
32987		PullRequestEventTypePullRequestApprovalRuleOverridden,
32988		PullRequestEventTypePullRequestApprovalStateChanged,
32989	}
32990}
32991
32992const (
32993	// PullRequestStatusEnumOpen is a PullRequestStatusEnum enum value
32994	PullRequestStatusEnumOpen = "OPEN"
32995
32996	// PullRequestStatusEnumClosed is a PullRequestStatusEnum enum value
32997	PullRequestStatusEnumClosed = "CLOSED"
32998)
32999
33000// PullRequestStatusEnum_Values returns all elements of the PullRequestStatusEnum enum
33001func PullRequestStatusEnum_Values() []string {
33002	return []string{
33003		PullRequestStatusEnumOpen,
33004		PullRequestStatusEnumClosed,
33005	}
33006}
33007
33008const (
33009	// RelativeFileVersionEnumBefore is a RelativeFileVersionEnum enum value
33010	RelativeFileVersionEnumBefore = "BEFORE"
33011
33012	// RelativeFileVersionEnumAfter is a RelativeFileVersionEnum enum value
33013	RelativeFileVersionEnumAfter = "AFTER"
33014)
33015
33016// RelativeFileVersionEnum_Values returns all elements of the RelativeFileVersionEnum enum
33017func RelativeFileVersionEnum_Values() []string {
33018	return []string{
33019		RelativeFileVersionEnumBefore,
33020		RelativeFileVersionEnumAfter,
33021	}
33022}
33023
33024const (
33025	// ReplacementTypeEnumKeepBase is a ReplacementTypeEnum enum value
33026	ReplacementTypeEnumKeepBase = "KEEP_BASE"
33027
33028	// ReplacementTypeEnumKeepSource is a ReplacementTypeEnum enum value
33029	ReplacementTypeEnumKeepSource = "KEEP_SOURCE"
33030
33031	// ReplacementTypeEnumKeepDestination is a ReplacementTypeEnum enum value
33032	ReplacementTypeEnumKeepDestination = "KEEP_DESTINATION"
33033
33034	// ReplacementTypeEnumUseNewContent is a ReplacementTypeEnum enum value
33035	ReplacementTypeEnumUseNewContent = "USE_NEW_CONTENT"
33036)
33037
33038// ReplacementTypeEnum_Values returns all elements of the ReplacementTypeEnum enum
33039func ReplacementTypeEnum_Values() []string {
33040	return []string{
33041		ReplacementTypeEnumKeepBase,
33042		ReplacementTypeEnumKeepSource,
33043		ReplacementTypeEnumKeepDestination,
33044		ReplacementTypeEnumUseNewContent,
33045	}
33046}
33047
33048const (
33049	// RepositoryTriggerEventEnumAll is a RepositoryTriggerEventEnum enum value
33050	RepositoryTriggerEventEnumAll = "all"
33051
33052	// RepositoryTriggerEventEnumUpdateReference is a RepositoryTriggerEventEnum enum value
33053	RepositoryTriggerEventEnumUpdateReference = "updateReference"
33054
33055	// RepositoryTriggerEventEnumCreateReference is a RepositoryTriggerEventEnum enum value
33056	RepositoryTriggerEventEnumCreateReference = "createReference"
33057
33058	// RepositoryTriggerEventEnumDeleteReference is a RepositoryTriggerEventEnum enum value
33059	RepositoryTriggerEventEnumDeleteReference = "deleteReference"
33060)
33061
33062// RepositoryTriggerEventEnum_Values returns all elements of the RepositoryTriggerEventEnum enum
33063func RepositoryTriggerEventEnum_Values() []string {
33064	return []string{
33065		RepositoryTriggerEventEnumAll,
33066		RepositoryTriggerEventEnumUpdateReference,
33067		RepositoryTriggerEventEnumCreateReference,
33068		RepositoryTriggerEventEnumDeleteReference,
33069	}
33070}
33071
33072const (
33073	// SortByEnumRepositoryName is a SortByEnum enum value
33074	SortByEnumRepositoryName = "repositoryName"
33075
33076	// SortByEnumLastModifiedDate is a SortByEnum enum value
33077	SortByEnumLastModifiedDate = "lastModifiedDate"
33078)
33079
33080// SortByEnum_Values returns all elements of the SortByEnum enum
33081func SortByEnum_Values() []string {
33082	return []string{
33083		SortByEnumRepositoryName,
33084		SortByEnumLastModifiedDate,
33085	}
33086}
33087