Interface CodeCommitClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
This is the CodeCommit API Reference. This reference provides descriptions of the operations and data types for CodeCommit API along with usage examples.
You can use the CodeCommit API to work with the following objects:
Repositories, by calling the following:
-
BatchGetRepositories, which returns information about one or more repositories associated with your Amazon Web Services account.
-
CreateRepository, which creates an CodeCommit repository.
-
DeleteRepository, which deletes an CodeCommit repository.
-
GetRepository, which returns information about a specified repository.
-
ListRepositories, which lists all CodeCommit repositories associated with your Amazon Web Services account.
-
UpdateRepositoryDescription, which sets or updates the description of the repository.
-
UpdateRepositoryEncryptionKey, which updates the Key Management Service encryption key used to encrypt and decrypt a repository.
-
UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository can access it until you send them the new HTTPS or SSH URL to use.
Branches, by calling the following:
-
CreateBranch, which creates a branch in a specified repository.
-
DeleteBranch, which deletes the specified branch in a repository unless it is the default branch.
-
GetBranch, which returns information about a specified branch.
-
ListBranches, which lists all branches for a specified repository.
-
UpdateDefaultBranch, which changes the default branch for a repository.
Files, by calling the following:
-
DeleteFile, which deletes the content of a specified file from a specified branch.
-
GetBlob, which returns the base-64 encoded content of an individual Git blob object in a repository.
-
GetFile, which returns the base-64 encoded content of a specified file.
-
GetFolder, which returns the contents of a specified folder or directory.
-
ListFileCommitHistory, which retrieves a list of commits and changes to a specified file.
-
PutFile, which adds or modifies a single file in a specified repository and branch.
Commits, by calling the following:
-
BatchGetCommits, which returns information about one or more commits in a repository.
-
CreateCommit, which creates a commit for changes to a repository.
-
GetCommit, which returns information about a commit, including commit messages and author and committer information.
-
GetDifferences, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).
Merges, by calling the following:
-
BatchDescribeMergeConflicts, which returns information about conflicts in a merge between commits in a repository.
-
CreateUnreferencedMergeCommit, which creates an unreferenced commit between two branches or commits for the purpose of comparing them and identifying any potential conflicts.
-
DescribeMergeConflicts, which returns information about merge conflicts between the base, source, and destination versions of a file in a potential merge.
-
GetMergeCommit, which returns information about the merge between a source and destination commit.
-
GetMergeConflicts, which returns information about merge conflicts between the source and destination branch in a pull request.
-
GetMergeOptions, which returns information about the available merge options between two branches or commit specifiers.
-
MergeBranchesByFastForward, which merges two branches using the fast-forward merge option.
-
MergeBranchesBySquash, which merges two branches using the squash merge option.
-
MergeBranchesByThreeWay, which merges two branches using the three-way merge option.
Pull requests, by calling the following:
-
CreatePullRequest, which creates a pull request in a specified repository.
-
CreatePullRequestApprovalRule, which creates an approval rule for a specified pull request.
-
DeletePullRequestApprovalRule, which deletes an approval rule for a specified pull request.
-
DescribePullRequestEvents, which returns information about one or more pull request events.
-
EvaluatePullRequestApprovalRules, which evaluates whether a pull request has met all the conditions specified in its associated approval rules.
-
GetCommentsForPullRequest, which returns information about comments on a specified pull request.
-
GetPullRequest, which returns information about a specified pull request.
-
GetPullRequestApprovalStates, which returns information about the approval states for a specified pull request.
-
GetPullRequestOverrideState, which returns information about whether approval rules have been set aside (overriden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
-
ListPullRequests, which lists all pull requests for a repository.
-
MergePullRequestByFastForward, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the fast-forward merge option.
-
MergePullRequestBySquash, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the squash merge option.
-
MergePullRequestByThreeWay, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the three-way merge option.
-
OverridePullRequestApprovalRules, which sets aside all approval rule requirements for a pull request.
-
PostCommentForPullRequest, which posts a comment to a pull request at the specified line, file, or request.
-
UpdatePullRequestApprovalRuleContent, which updates the structure of an approval rule for a pull request.
-
UpdatePullRequestApprovalState, which updates the state of an approval on a pull request.
-
UpdatePullRequestDescription, which updates the description of a pull request.
-
UpdatePullRequestStatus, which updates the status of a pull request.
-
UpdatePullRequestTitle, which updates the title of a pull request.
Approval rule templates, by calling the following:
-
AssociateApprovalRuleTemplateWithRepository, which associates a template with a specified repository. After the template is associated with a repository, CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repository.
-
BatchAssociateApprovalRuleTemplateWithRepositories, which associates a template with one or more specified repositories. After the template is associated with a repository, CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repositories.
-
BatchDisassociateApprovalRuleTemplateFromRepositories, which removes the association between a template and specified repositories so that approval rules based on the template are not automatically created when pull requests are created in those repositories.
-
CreateApprovalRuleTemplate, which creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account.
-
DeleteApprovalRuleTemplate, which deletes the specified template. It does not remove approval rules on pull requests already created with the template.
-
DisassociateApprovalRuleTemplateFromRepository, which removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository.
-
GetApprovalRuleTemplate, which returns information about an approval rule template.
-
ListApprovalRuleTemplates, which lists all approval rule templates in the Amazon Web Services Region in your Amazon Web Services account.
-
ListAssociatedApprovalRuleTemplatesForRepository, which lists all approval rule templates that are associated with a specified repository.
-
ListRepositoriesForApprovalRuleTemplate, which lists all repositories associated with the specified approval rule template.
-
UpdateApprovalRuleTemplateDescription, which updates the description of an approval rule template.
-
UpdateApprovalRuleTemplateName, which updates the name of an approval rule template.
-
UpdateApprovalRuleTemplateContent, which updates the content of an approval rule template.
Comments in a repository, by calling the following:
-
DeleteCommentContent, which deletes the content of a comment on a commit in a repository.
-
GetComment, which returns information about a comment on a commit.
-
GetCommentReactions, which returns information about emoji reactions to comments.
-
GetCommentsForComparedCommit, which returns information about comments on the comparison between two commit specifiers in a repository.
-
PostCommentForComparedCommit, which creates a comment on the comparison between two commit specifiers in a repository.
-
PostCommentReply, which creates a reply to a comment.
-
PutCommentReaction, which creates or updates an emoji reaction to a comment.
-
UpdateComment, which updates the content of a comment on a commit in a repository.
Tags used to tag resources in CodeCommit (not Git tags), by calling the following:
-
ListTagsForResource, which gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.
-
TagResource, which adds or updates tags for a resource in CodeCommit.
-
UntagResource, which removes tags for a resource in CodeCommit.
Triggers, by calling the following:
-
GetRepositoryTriggers, which returns information about triggers configured for a repository.
-
PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers.
-
TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target.
For information about how to use CodeCommit, see the CodeCommit User Guide.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionassociateApprovalRuleTemplateWithRepository
(Consumer<AssociateApprovalRuleTemplateWithRepositoryRequest.Builder> associateApprovalRuleTemplateWithRepositoryRequest) Creates an association between an approval rule template and a specified repository.associateApprovalRuleTemplateWithRepository
(AssociateApprovalRuleTemplateWithRepositoryRequest associateApprovalRuleTemplateWithRepositoryRequest) Creates an association between an approval rule template and a specified repository.batchAssociateApprovalRuleTemplateWithRepositories
(Consumer<BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.Builder> batchAssociateApprovalRuleTemplateWithRepositoriesRequest) Creates an association between an approval rule template and one or more specified repositories.batchAssociateApprovalRuleTemplateWithRepositories
(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest batchAssociateApprovalRuleTemplateWithRepositoriesRequest) Creates an association between an approval rule template and one or more specified repositories.batchDescribeMergeConflicts
(Consumer<BatchDescribeMergeConflictsRequest.Builder> batchDescribeMergeConflictsRequest) Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.batchDescribeMergeConflicts
(BatchDescribeMergeConflictsRequest batchDescribeMergeConflictsRequest) Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.batchDisassociateApprovalRuleTemplateFromRepositories
(Consumer<BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.Builder> batchDisassociateApprovalRuleTemplateFromRepositoriesRequest) Removes the association between an approval rule template and one or more specified repositories.batchDisassociateApprovalRuleTemplateFromRepositories
(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest batchDisassociateApprovalRuleTemplateFromRepositoriesRequest) Removes the association between an approval rule template and one or more specified repositories.default BatchGetCommitsResponse
batchGetCommits
(Consumer<BatchGetCommitsRequest.Builder> batchGetCommitsRequest) Returns information about the contents of one or more commits in a repository.default BatchGetCommitsResponse
batchGetCommits
(BatchGetCommitsRequest batchGetCommitsRequest) Returns information about the contents of one or more commits in a repository.default BatchGetRepositoriesResponse
batchGetRepositories
(Consumer<BatchGetRepositoriesRequest.Builder> batchGetRepositoriesRequest) Returns information about one or more repositories.default BatchGetRepositoriesResponse
batchGetRepositories
(BatchGetRepositoriesRequest batchGetRepositoriesRequest) Returns information about one or more repositories.static CodeCommitClientBuilder
builder()
Create a builder that can be used to configure and create aCodeCommitClient
.static CodeCommitClient
create()
Create aCodeCommitClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createApprovalRuleTemplate
(Consumer<CreateApprovalRuleTemplateRequest.Builder> createApprovalRuleTemplateRequest) Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account.createApprovalRuleTemplate
(CreateApprovalRuleTemplateRequest createApprovalRuleTemplateRequest) Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account.default CreateBranchResponse
createBranch
(Consumer<CreateBranchRequest.Builder> createBranchRequest) Creates a branch in a repository and points the branch to a commit.default CreateBranchResponse
createBranch
(CreateBranchRequest createBranchRequest) Creates a branch in a repository and points the branch to a commit.default CreateCommitResponse
createCommit
(Consumer<CreateCommitRequest.Builder> createCommitRequest) Creates a commit for a repository on the tip of a specified branch.default CreateCommitResponse
createCommit
(CreateCommitRequest createCommitRequest) Creates a commit for a repository on the tip of a specified branch.default CreatePullRequestResponse
createPullRequest
(Consumer<CreatePullRequestRequest.Builder> createPullRequestRequest) Creates a pull request in the specified repository.default CreatePullRequestResponse
createPullRequest
(CreatePullRequestRequest createPullRequestRequest) Creates a pull request in the specified repository.createPullRequestApprovalRule
(Consumer<CreatePullRequestApprovalRuleRequest.Builder> createPullRequestApprovalRuleRequest) Creates an approval rule for a pull request.createPullRequestApprovalRule
(CreatePullRequestApprovalRuleRequest createPullRequestApprovalRuleRequest) Creates an approval rule for a pull request.default CreateRepositoryResponse
createRepository
(Consumer<CreateRepositoryRequest.Builder> createRepositoryRequest) Creates a new, empty repository.default CreateRepositoryResponse
createRepository
(CreateRepositoryRequest createRepositoryRequest) Creates a new, empty repository.createUnreferencedMergeCommit
(Consumer<CreateUnreferencedMergeCommitRequest.Builder> createUnreferencedMergeCommitRequest) Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy.createUnreferencedMergeCommit
(CreateUnreferencedMergeCommitRequest createUnreferencedMergeCommitRequest) Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy.deleteApprovalRuleTemplate
(Consumer<DeleteApprovalRuleTemplateRequest.Builder> deleteApprovalRuleTemplateRequest) Deletes a specified approval rule template.deleteApprovalRuleTemplate
(DeleteApprovalRuleTemplateRequest deleteApprovalRuleTemplateRequest) Deletes a specified approval rule template.default DeleteBranchResponse
deleteBranch
(Consumer<DeleteBranchRequest.Builder> deleteBranchRequest) Deletes a branch from a repository, unless that branch is the default branch for the repository.default DeleteBranchResponse
deleteBranch
(DeleteBranchRequest deleteBranchRequest) Deletes a branch from a repository, unless that branch is the default branch for the repository.default DeleteCommentContentResponse
deleteCommentContent
(Consumer<DeleteCommentContentRequest.Builder> deleteCommentContentRequest) Deletes the content of a comment made on a change, file, or commit in a repository.default DeleteCommentContentResponse
deleteCommentContent
(DeleteCommentContentRequest deleteCommentContentRequest) Deletes the content of a comment made on a change, file, or commit in a repository.default DeleteFileResponse
deleteFile
(Consumer<DeleteFileRequest.Builder> deleteFileRequest) Deletes a specified file from a specified branch.default DeleteFileResponse
deleteFile
(DeleteFileRequest deleteFileRequest) Deletes a specified file from a specified branch.deletePullRequestApprovalRule
(Consumer<DeletePullRequestApprovalRuleRequest.Builder> deletePullRequestApprovalRuleRequest) Deletes an approval rule from a specified pull request.deletePullRequestApprovalRule
(DeletePullRequestApprovalRuleRequest deletePullRequestApprovalRuleRequest) Deletes an approval rule from a specified pull request.default DeleteRepositoryResponse
deleteRepository
(Consumer<DeleteRepositoryRequest.Builder> deleteRepositoryRequest) Deletes a repository.default DeleteRepositoryResponse
deleteRepository
(DeleteRepositoryRequest deleteRepositoryRequest) Deletes a repository.default DescribeMergeConflictsResponse
describeMergeConflicts
(Consumer<DescribeMergeConflictsRequest.Builder> describeMergeConflictsRequest) Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.default DescribeMergeConflictsResponse
describeMergeConflicts
(DescribeMergeConflictsRequest describeMergeConflictsRequest) Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.default DescribeMergeConflictsIterable
describeMergeConflictsPaginator
(Consumer<DescribeMergeConflictsRequest.Builder> describeMergeConflictsRequest) This is a variant ofdescribeMergeConflicts(software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsRequest)
operation.default DescribeMergeConflictsIterable
describeMergeConflictsPaginator
(DescribeMergeConflictsRequest describeMergeConflictsRequest) This is a variant ofdescribeMergeConflicts(software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsRequest)
operation.describePullRequestEvents
(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest) Returns information about one or more pull request events.describePullRequestEvents
(DescribePullRequestEventsRequest describePullRequestEventsRequest) Returns information about one or more pull request events.describePullRequestEventsPaginator
(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest) This is a variant ofdescribePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation.describePullRequestEventsPaginator
(DescribePullRequestEventsRequest describePullRequestEventsRequest) This is a variant ofdescribePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation.disassociateApprovalRuleTemplateFromRepository
(Consumer<DisassociateApprovalRuleTemplateFromRepositoryRequest.Builder> disassociateApprovalRuleTemplateFromRepositoryRequest) Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository.disassociateApprovalRuleTemplateFromRepository
(DisassociateApprovalRuleTemplateFromRepositoryRequest disassociateApprovalRuleTemplateFromRepositoryRequest) Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository.evaluatePullRequestApprovalRules
(Consumer<EvaluatePullRequestApprovalRulesRequest.Builder> evaluatePullRequestApprovalRulesRequest) Evaluates whether a pull request has met all the conditions specified in its associated approval rules.evaluatePullRequestApprovalRules
(EvaluatePullRequestApprovalRulesRequest evaluatePullRequestApprovalRulesRequest) Evaluates whether a pull request has met all the conditions specified in its associated approval rules.default GetApprovalRuleTemplateResponse
getApprovalRuleTemplate
(Consumer<GetApprovalRuleTemplateRequest.Builder> getApprovalRuleTemplateRequest) Returns information about a specified approval rule template.default GetApprovalRuleTemplateResponse
getApprovalRuleTemplate
(GetApprovalRuleTemplateRequest getApprovalRuleTemplateRequest) Returns information about a specified approval rule template.default GetBlobResponse
getBlob
(Consumer<GetBlobRequest.Builder> getBlobRequest) Returns the base-64 encoded content of an individual blob in a repository.default GetBlobResponse
getBlob
(GetBlobRequest getBlobRequest) Returns the base-64 encoded content of an individual blob in a repository.default GetBranchResponse
getBranch
(Consumer<GetBranchRequest.Builder> getBranchRequest) Returns information about a repository branch, including its name and the last commit ID.default GetBranchResponse
getBranch
(GetBranchRequest getBranchRequest) Returns information about a repository branch, including its name and the last commit ID.default GetCommentResponse
getComment
(Consumer<GetCommentRequest.Builder> getCommentRequest) Returns the content of a comment made on a change, file, or commit in a repository.default GetCommentResponse
getComment
(GetCommentRequest getCommentRequest) Returns the content of a comment made on a change, file, or commit in a repository.default GetCommentReactionsResponse
getCommentReactions
(Consumer<GetCommentReactionsRequest.Builder> getCommentReactionsRequest) Returns information about reactions to a specified comment ID.default GetCommentReactionsResponse
getCommentReactions
(GetCommentReactionsRequest getCommentReactionsRequest) Returns information about reactions to a specified comment ID.default GetCommentReactionsIterable
getCommentReactionsPaginator
(Consumer<GetCommentReactionsRequest.Builder> getCommentReactionsRequest) This is a variant ofgetCommentReactions(software.amazon.awssdk.services.codecommit.model.GetCommentReactionsRequest)
operation.default GetCommentReactionsIterable
getCommentReactionsPaginator
(GetCommentReactionsRequest getCommentReactionsRequest) This is a variant ofgetCommentReactions(software.amazon.awssdk.services.codecommit.model.GetCommentReactionsRequest)
operation.getCommentsForComparedCommit
(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest) Returns information about comments made on the comparison between two commits.getCommentsForComparedCommit
(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest) Returns information about comments made on the comparison between two commits.getCommentsForComparedCommitPaginator
(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest) This is a variant ofgetCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation.getCommentsForComparedCommitPaginator
(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest) This is a variant ofgetCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation.getCommentsForPullRequest
(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest) Returns comments made on a pull request.getCommentsForPullRequest
(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) Returns comments made on a pull request.getCommentsForPullRequestPaginator
(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest) This is a variant ofgetCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation.getCommentsForPullRequestPaginator
(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) This is a variant ofgetCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation.default GetCommitResponse
getCommit
(Consumer<GetCommitRequest.Builder> getCommitRequest) Returns information about a commit, including commit message and committer information.default GetCommitResponse
getCommit
(GetCommitRequest getCommitRequest) Returns information about a commit, including commit message and committer information.default GetDifferencesResponse
getDifferences
(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest) Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).default GetDifferencesResponse
getDifferences
(GetDifferencesRequest getDifferencesRequest) Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).default GetDifferencesIterable
getDifferencesPaginator
(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest) This is a variant ofgetDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation.default GetDifferencesIterable
getDifferencesPaginator
(GetDifferencesRequest getDifferencesRequest) This is a variant ofgetDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation.default GetFileResponse
getFile
(Consumer<GetFileRequest.Builder> getFileRequest) Returns the base-64 encoded contents of a specified file and its metadata.default GetFileResponse
getFile
(GetFileRequest getFileRequest) Returns the base-64 encoded contents of a specified file and its metadata.default GetFolderResponse
getFolder
(Consumer<GetFolderRequest.Builder> getFolderRequest) Returns the contents of a specified folder in a repository.default GetFolderResponse
getFolder
(GetFolderRequest getFolderRequest) Returns the contents of a specified folder in a repository.default GetMergeCommitResponse
getMergeCommit
(Consumer<GetMergeCommitRequest.Builder> getMergeCommitRequest) Returns information about a specified merge commit.default GetMergeCommitResponse
getMergeCommit
(GetMergeCommitRequest getMergeCommitRequest) Returns information about a specified merge commit.default GetMergeConflictsResponse
getMergeConflicts
(Consumer<GetMergeConflictsRequest.Builder> getMergeConflictsRequest) Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.default GetMergeConflictsResponse
getMergeConflicts
(GetMergeConflictsRequest getMergeConflictsRequest) Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.default GetMergeConflictsIterable
getMergeConflictsPaginator
(Consumer<GetMergeConflictsRequest.Builder> getMergeConflictsRequest) This is a variant ofgetMergeConflicts(software.amazon.awssdk.services.codecommit.model.GetMergeConflictsRequest)
operation.default GetMergeConflictsIterable
getMergeConflictsPaginator
(GetMergeConflictsRequest getMergeConflictsRequest) This is a variant ofgetMergeConflicts(software.amazon.awssdk.services.codecommit.model.GetMergeConflictsRequest)
operation.default GetMergeOptionsResponse
getMergeOptions
(Consumer<GetMergeOptionsRequest.Builder> getMergeOptionsRequest) Returns information about the merge options available for merging two specified branches.default GetMergeOptionsResponse
getMergeOptions
(GetMergeOptionsRequest getMergeOptionsRequest) Returns information about the merge options available for merging two specified branches.default GetPullRequestResponse
getPullRequest
(Consumer<GetPullRequestRequest.Builder> getPullRequestRequest) Gets information about a pull request in a specified repository.default GetPullRequestResponse
getPullRequest
(GetPullRequestRequest getPullRequestRequest) Gets information about a pull request in a specified repository.getPullRequestApprovalStates
(Consumer<GetPullRequestApprovalStatesRequest.Builder> getPullRequestApprovalStatesRequest) Gets information about the approval states for a specified pull request.getPullRequestApprovalStates
(GetPullRequestApprovalStatesRequest getPullRequestApprovalStatesRequest) Gets information about the approval states for a specified pull request.getPullRequestOverrideState
(Consumer<GetPullRequestOverrideStateRequest.Builder> getPullRequestOverrideStateRequest) Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.getPullRequestOverrideState
(GetPullRequestOverrideStateRequest getPullRequestOverrideStateRequest) Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.default GetRepositoryResponse
getRepository
(Consumer<GetRepositoryRequest.Builder> getRepositoryRequest) Returns information about a repository.default GetRepositoryResponse
getRepository
(GetRepositoryRequest getRepositoryRequest) Returns information about a repository.default GetRepositoryTriggersResponse
getRepositoryTriggers
(Consumer<GetRepositoryTriggersRequest.Builder> getRepositoryTriggersRequest) Gets information about triggers configured for a repository.default GetRepositoryTriggersResponse
getRepositoryTriggers
(GetRepositoryTriggersRequest getRepositoryTriggersRequest) Gets information about triggers configured for a repository.listApprovalRuleTemplates
(Consumer<ListApprovalRuleTemplatesRequest.Builder> listApprovalRuleTemplatesRequest) Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account.listApprovalRuleTemplates
(ListApprovalRuleTemplatesRequest listApprovalRuleTemplatesRequest) Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account.listApprovalRuleTemplatesPaginator
(Consumer<ListApprovalRuleTemplatesRequest.Builder> listApprovalRuleTemplatesRequest) This is a variant oflistApprovalRuleTemplates(software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesRequest)
operation.listApprovalRuleTemplatesPaginator
(ListApprovalRuleTemplatesRequest listApprovalRuleTemplatesRequest) This is a variant oflistApprovalRuleTemplates(software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesRequest)
operation.listAssociatedApprovalRuleTemplatesForRepository
(Consumer<ListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder> listAssociatedApprovalRuleTemplatesForRepositoryRequest) Lists all approval rule templates that are associated with a specified repository.listAssociatedApprovalRuleTemplatesForRepository
(ListAssociatedApprovalRuleTemplatesForRepositoryRequest listAssociatedApprovalRuleTemplatesForRepositoryRequest) Lists all approval rule templates that are associated with a specified repository.listAssociatedApprovalRuleTemplatesForRepositoryPaginator
(Consumer<ListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder> listAssociatedApprovalRuleTemplatesForRepositoryRequest) listAssociatedApprovalRuleTemplatesForRepositoryPaginator
(ListAssociatedApprovalRuleTemplatesForRepositoryRequest listAssociatedApprovalRuleTemplatesForRepositoryRequest) default ListBranchesResponse
listBranches
(Consumer<ListBranchesRequest.Builder> listBranchesRequest) Gets information about one or more branches in a repository.default ListBranchesResponse
listBranches
(ListBranchesRequest listBranchesRequest) Gets information about one or more branches in a repository.default ListBranchesIterable
listBranchesPaginator
(Consumer<ListBranchesRequest.Builder> listBranchesRequest) This is a variant oflistBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation.default ListBranchesIterable
listBranchesPaginator
(ListBranchesRequest listBranchesRequest) This is a variant oflistBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation.default ListFileCommitHistoryResponse
listFileCommitHistory
(Consumer<ListFileCommitHistoryRequest.Builder> listFileCommitHistoryRequest) Retrieves a list of commits and changes to a specified file.default ListFileCommitHistoryResponse
listFileCommitHistory
(ListFileCommitHistoryRequest listFileCommitHistoryRequest) Retrieves a list of commits and changes to a specified file.default ListFileCommitHistoryIterable
listFileCommitHistoryPaginator
(Consumer<ListFileCommitHistoryRequest.Builder> listFileCommitHistoryRequest) This is a variant oflistFileCommitHistory(software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryRequest)
operation.default ListFileCommitHistoryIterable
listFileCommitHistoryPaginator
(ListFileCommitHistoryRequest listFileCommitHistoryRequest) This is a variant oflistFileCommitHistory(software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryRequest)
operation.default ListPullRequestsResponse
listPullRequests
(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest) Returns a list of pull requests for a specified repository.default ListPullRequestsResponse
listPullRequests
(ListPullRequestsRequest listPullRequestsRequest) Returns a list of pull requests for a specified repository.default ListPullRequestsIterable
listPullRequestsPaginator
(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest) This is a variant oflistPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.default ListPullRequestsIterable
listPullRequestsPaginator
(ListPullRequestsRequest listPullRequestsRequest) This is a variant oflistPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.default ListRepositoriesResponse
Gets information about one or more repositories.default ListRepositoriesResponse
listRepositories
(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest) Gets information about one or more repositories.default ListRepositoriesResponse
listRepositories
(ListRepositoriesRequest listRepositoriesRequest) Gets information about one or more repositories.listRepositoriesForApprovalRuleTemplate
(Consumer<ListRepositoriesForApprovalRuleTemplateRequest.Builder> listRepositoriesForApprovalRuleTemplateRequest) Lists all repositories associated with the specified approval rule template.listRepositoriesForApprovalRuleTemplate
(ListRepositoriesForApprovalRuleTemplateRequest listRepositoriesForApprovalRuleTemplateRequest) Lists all repositories associated with the specified approval rule template.listRepositoriesForApprovalRuleTemplatePaginator
(Consumer<ListRepositoriesForApprovalRuleTemplateRequest.Builder> listRepositoriesForApprovalRuleTemplateRequest) listRepositoriesForApprovalRuleTemplatePaginator
(ListRepositoriesForApprovalRuleTemplateRequest listRepositoriesForApprovalRuleTemplateRequest) default ListRepositoriesIterable
This is a variant oflistRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.default ListRepositoriesIterable
listRepositoriesPaginator
(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest) This is a variant oflistRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.default ListRepositoriesIterable
listRepositoriesPaginator
(ListRepositoriesRequest listRepositoriesRequest) This is a variant oflistRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.mergeBranchesByFastForward
(Consumer<MergeBranchesByFastForwardRequest.Builder> mergeBranchesByFastForwardRequest) Merges two branches using the fast-forward merge strategy.mergeBranchesByFastForward
(MergeBranchesByFastForwardRequest mergeBranchesByFastForwardRequest) Merges two branches using the fast-forward merge strategy.default MergeBranchesBySquashResponse
mergeBranchesBySquash
(Consumer<MergeBranchesBySquashRequest.Builder> mergeBranchesBySquashRequest) Merges two branches using the squash merge strategy.default MergeBranchesBySquashResponse
mergeBranchesBySquash
(MergeBranchesBySquashRequest mergeBranchesBySquashRequest) Merges two branches using the squash merge strategy.default MergeBranchesByThreeWayResponse
mergeBranchesByThreeWay
(Consumer<MergeBranchesByThreeWayRequest.Builder> mergeBranchesByThreeWayRequest) Merges two specified branches using the three-way merge strategy.default MergeBranchesByThreeWayResponse
mergeBranchesByThreeWay
(MergeBranchesByThreeWayRequest mergeBranchesByThreeWayRequest) Merges two specified branches using the three-way merge strategy.mergePullRequestByFastForward
(Consumer<MergePullRequestByFastForwardRequest.Builder> mergePullRequestByFastForwardRequest) Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy.mergePullRequestByFastForward
(MergePullRequestByFastForwardRequest mergePullRequestByFastForwardRequest) Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy.default MergePullRequestBySquashResponse
mergePullRequestBySquash
(Consumer<MergePullRequestBySquashRequest.Builder> mergePullRequestBySquashRequest) Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy.default MergePullRequestBySquashResponse
mergePullRequestBySquash
(MergePullRequestBySquashRequest mergePullRequestBySquashRequest) Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy.mergePullRequestByThreeWay
(Consumer<MergePullRequestByThreeWayRequest.Builder> mergePullRequestByThreeWayRequest) Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy.mergePullRequestByThreeWay
(MergePullRequestByThreeWayRequest mergePullRequestByThreeWayRequest) Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy.overridePullRequestApprovalRules
(Consumer<OverridePullRequestApprovalRulesRequest.Builder> overridePullRequestApprovalRulesRequest) Sets aside (overrides) all approval rule requirements for a specified pull request.overridePullRequestApprovalRules
(OverridePullRequestApprovalRulesRequest overridePullRequestApprovalRulesRequest) Sets aside (overrides) all approval rule requirements for a specified pull request.postCommentForComparedCommit
(Consumer<PostCommentForComparedCommitRequest.Builder> postCommentForComparedCommitRequest) Posts a comment on the comparison between two commits.postCommentForComparedCommit
(PostCommentForComparedCommitRequest postCommentForComparedCommitRequest) Posts a comment on the comparison between two commits.postCommentForPullRequest
(Consumer<PostCommentForPullRequestRequest.Builder> postCommentForPullRequestRequest) Posts a comment on a pull request.postCommentForPullRequest
(PostCommentForPullRequestRequest postCommentForPullRequestRequest) Posts a comment on a pull request.default PostCommentReplyResponse
postCommentReply
(Consumer<PostCommentReplyRequest.Builder> postCommentReplyRequest) Posts a comment in reply to an existing comment on a comparison between commits or a pull request.default PostCommentReplyResponse
postCommentReply
(PostCommentReplyRequest postCommentReplyRequest) Posts a comment in reply to an existing comment on a comparison between commits or a pull request.default PutCommentReactionResponse
putCommentReaction
(Consumer<PutCommentReactionRequest.Builder> putCommentReactionRequest) Adds or updates a reaction to a specified comment for the user whose identity is used to make the request.default PutCommentReactionResponse
putCommentReaction
(PutCommentReactionRequest putCommentReactionRequest) Adds or updates a reaction to a specified comment for the user whose identity is used to make the request.default PutFileResponse
putFile
(Consumer<PutFileRequest.Builder> putFileRequest) Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.default PutFileResponse
putFile
(PutFileRequest putFileRequest) Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.default PutRepositoryTriggersResponse
putRepositoryTriggers
(Consumer<PutRepositoryTriggersRequest.Builder> putRepositoryTriggersRequest) Replaces all triggers for a repository.default PutRepositoryTriggersResponse
putRepositoryTriggers
(PutRepositoryTriggersRequest putRepositoryTriggersRequest) Replaces all triggers for a repository.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or updates tags for a resource in CodeCommit.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds or updates tags for a resource in CodeCommit.default TestRepositoryTriggersResponse
testRepositoryTriggers
(Consumer<TestRepositoryTriggersRequest.Builder> testRepositoryTriggersRequest) Tests the functionality of repository triggers by sending information to the trigger target.default TestRepositoryTriggersResponse
testRepositoryTriggers
(TestRepositoryTriggersRequest testRepositoryTriggersRequest) Tests the functionality of repository triggers by sending information to the trigger target.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags for a resource in CodeCommit.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes tags for a resource in CodeCommit.updateApprovalRuleTemplateContent
(Consumer<UpdateApprovalRuleTemplateContentRequest.Builder> updateApprovalRuleTemplateContentRequest) Updates the content of an approval rule template.updateApprovalRuleTemplateContent
(UpdateApprovalRuleTemplateContentRequest updateApprovalRuleTemplateContentRequest) Updates the content of an approval rule template.updateApprovalRuleTemplateDescription
(Consumer<UpdateApprovalRuleTemplateDescriptionRequest.Builder> updateApprovalRuleTemplateDescriptionRequest) Updates the description for a specified approval rule template.updateApprovalRuleTemplateDescription
(UpdateApprovalRuleTemplateDescriptionRequest updateApprovalRuleTemplateDescriptionRequest) Updates the description for a specified approval rule template.updateApprovalRuleTemplateName
(Consumer<UpdateApprovalRuleTemplateNameRequest.Builder> updateApprovalRuleTemplateNameRequest) Updates the name of a specified approval rule template.updateApprovalRuleTemplateName
(UpdateApprovalRuleTemplateNameRequest updateApprovalRuleTemplateNameRequest) Updates the name of a specified approval rule template.default UpdateCommentResponse
updateComment
(Consumer<UpdateCommentRequest.Builder> updateCommentRequest) Replaces the contents of a comment.default UpdateCommentResponse
updateComment
(UpdateCommentRequest updateCommentRequest) Replaces the contents of a comment.default UpdateDefaultBranchResponse
updateDefaultBranch
(Consumer<UpdateDefaultBranchRequest.Builder> updateDefaultBranchRequest) Sets or changes the default branch name for the specified repository.default UpdateDefaultBranchResponse
updateDefaultBranch
(UpdateDefaultBranchRequest updateDefaultBranchRequest) Sets or changes the default branch name for the specified repository.updatePullRequestApprovalRuleContent
(Consumer<UpdatePullRequestApprovalRuleContentRequest.Builder> updatePullRequestApprovalRuleContentRequest) Updates the structure of an approval rule created specifically for a pull request.updatePullRequestApprovalRuleContent
(UpdatePullRequestApprovalRuleContentRequest updatePullRequestApprovalRuleContentRequest) Updates the structure of an approval rule created specifically for a pull request.updatePullRequestApprovalState
(Consumer<UpdatePullRequestApprovalStateRequest.Builder> updatePullRequestApprovalStateRequest) Updates the state of a user's approval on a pull request.updatePullRequestApprovalState
(UpdatePullRequestApprovalStateRequest updatePullRequestApprovalStateRequest) Updates the state of a user's approval on a pull request.updatePullRequestDescription
(Consumer<UpdatePullRequestDescriptionRequest.Builder> updatePullRequestDescriptionRequest) Replaces the contents of the description of a pull request.updatePullRequestDescription
(UpdatePullRequestDescriptionRequest updatePullRequestDescriptionRequest) Replaces the contents of the description of a pull request.default UpdatePullRequestStatusResponse
updatePullRequestStatus
(Consumer<UpdatePullRequestStatusRequest.Builder> updatePullRequestStatusRequest) Updates the status of a pull request.default UpdatePullRequestStatusResponse
updatePullRequestStatus
(UpdatePullRequestStatusRequest updatePullRequestStatusRequest) Updates the status of a pull request.default UpdatePullRequestTitleResponse
updatePullRequestTitle
(Consumer<UpdatePullRequestTitleRequest.Builder> updatePullRequestTitleRequest) Replaces the title of a pull request.default UpdatePullRequestTitleResponse
updatePullRequestTitle
(UpdatePullRequestTitleRequest updatePullRequestTitleRequest) Replaces the title of a pull request.updateRepositoryDescription
(Consumer<UpdateRepositoryDescriptionRequest.Builder> updateRepositoryDescriptionRequest) Sets or changes the comment or description for a repository.updateRepositoryDescription
(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest) Sets or changes the comment or description for a repository.updateRepositoryEncryptionKey
(Consumer<UpdateRepositoryEncryptionKeyRequest.Builder> updateRepositoryEncryptionKeyRequest) Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.updateRepositoryEncryptionKey
(UpdateRepositoryEncryptionKeyRequest updateRepositoryEncryptionKeyRequest) Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.default UpdateRepositoryNameResponse
updateRepositoryName
(Consumer<UpdateRepositoryNameRequest.Builder> updateRepositoryNameRequest) Renames a repository.default UpdateRepositoryNameResponse
updateRepositoryName
(UpdateRepositoryNameRequest updateRepositoryNameRequest) Renames a repository.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
associateApprovalRuleTemplateWithRepository
default AssociateApprovalRuleTemplateWithRepositoryResponse associateApprovalRuleTemplateWithRepository(AssociateApprovalRuleTemplateWithRepositoryRequest associateApprovalRuleTemplateWithRepositoryRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, MaximumRuleTemplatesAssociatedWithRepositoryException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.
- Parameters:
associateApprovalRuleTemplateWithRepositoryRequest
-- Returns:
- Result of the AssociateApprovalRuleTemplateWithRepository operation returned by the service.
- See Also:
-
associateApprovalRuleTemplateWithRepository
default AssociateApprovalRuleTemplateWithRepositoryResponse associateApprovalRuleTemplateWithRepository(Consumer<AssociateApprovalRuleTemplateWithRepositoryRequest.Builder> associateApprovalRuleTemplateWithRepositoryRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, MaximumRuleTemplatesAssociatedWithRepositoryException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.
This is a convenience which creates an instance of the
AssociateApprovalRuleTemplateWithRepositoryRequest.Builder
avoiding the need to create one manually viaAssociateApprovalRuleTemplateWithRepositoryRequest.builder()
- Parameters:
associateApprovalRuleTemplateWithRepositoryRequest
- AConsumer
that will call methods onAssociateApprovalRuleTemplateWithRepositoryRequest.Builder
to create a request.- Returns:
- Result of the AssociateApprovalRuleTemplateWithRepository operation returned by the service.
- See Also:
-
batchAssociateApprovalRuleTemplateWithRepositories
default BatchAssociateApprovalRuleTemplateWithRepositoriesResponse batchAssociateApprovalRuleTemplateWithRepositories(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest batchAssociateApprovalRuleTemplateWithRepositoriesRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an association between an approval rule template and one or more specified repositories.
- Parameters:
batchAssociateApprovalRuleTemplateWithRepositoriesRequest
-- Returns:
- Result of the BatchAssociateApprovalRuleTemplateWithRepositories operation returned by the service.
- See Also:
-
batchAssociateApprovalRuleTemplateWithRepositories
default BatchAssociateApprovalRuleTemplateWithRepositoriesResponse batchAssociateApprovalRuleTemplateWithRepositories(Consumer<BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.Builder> batchAssociateApprovalRuleTemplateWithRepositoriesRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an association between an approval rule template and one or more specified repositories.
This is a convenience which creates an instance of the
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.Builder
avoiding the need to create one manually viaBatchAssociateApprovalRuleTemplateWithRepositoriesRequest.builder()
- Parameters:
batchAssociateApprovalRuleTemplateWithRepositoriesRequest
- AConsumer
that will call methods onBatchAssociateApprovalRuleTemplateWithRepositoriesRequest.Builder
to create a request.- Returns:
- Result of the BatchAssociateApprovalRuleTemplateWithRepositories operation returned by the service.
- See Also:
-
batchDescribeMergeConflicts
default BatchDescribeMergeConflictsResponse batchDescribeMergeConflicts(BatchDescribeMergeConflictsRequest batchDescribeMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
- Parameters:
batchDescribeMergeConflictsRequest
-- Returns:
- Result of the BatchDescribeMergeConflicts operation returned by the service.
- See Also:
-
batchDescribeMergeConflicts
default BatchDescribeMergeConflictsResponse batchDescribeMergeConflicts(Consumer<BatchDescribeMergeConflictsRequest.Builder> batchDescribeMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
This is a convenience which creates an instance of the
BatchDescribeMergeConflictsRequest.Builder
avoiding the need to create one manually viaBatchDescribeMergeConflictsRequest.builder()
- Parameters:
batchDescribeMergeConflictsRequest
- AConsumer
that will call methods onBatchDescribeMergeConflictsRequest.Builder
to create a request.- Returns:
- Result of the BatchDescribeMergeConflicts operation returned by the service.
- See Also:
-
batchDisassociateApprovalRuleTemplateFromRepositories
default BatchDisassociateApprovalRuleTemplateFromRepositoriesResponse batchDisassociateApprovalRuleTemplateFromRepositories(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest batchDisassociateApprovalRuleTemplateFromRepositoriesRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Removes the association between an approval rule template and one or more specified repositories.
- Parameters:
batchDisassociateApprovalRuleTemplateFromRepositoriesRequest
-- Returns:
- Result of the BatchDisassociateApprovalRuleTemplateFromRepositories operation returned by the service.
- See Also:
-
batchDisassociateApprovalRuleTemplateFromRepositories
default BatchDisassociateApprovalRuleTemplateFromRepositoriesResponse batchDisassociateApprovalRuleTemplateFromRepositories(Consumer<BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.Builder> batchDisassociateApprovalRuleTemplateFromRepositoriesRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Removes the association between an approval rule template and one or more specified repositories.
This is a convenience which creates an instance of the
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.Builder
avoiding the need to create one manually viaBatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.builder()
- Parameters:
batchDisassociateApprovalRuleTemplateFromRepositoriesRequest
- AConsumer
that will call methods onBatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.Builder
to create a request.- Returns:
- Result of the BatchDisassociateApprovalRuleTemplateFromRepositories operation returned by the service.
- See Also:
-
batchGetCommits
default BatchGetCommitsResponse batchGetCommits(BatchGetCommitsRequest batchGetCommitsRequest) throws CommitIdsListRequiredException, CommitIdsLimitExceededException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about the contents of one or more commits in a repository.
- Parameters:
batchGetCommitsRequest
-- Returns:
- Result of the BatchGetCommits operation returned by the service.
- See Also:
-
batchGetCommits
default BatchGetCommitsResponse batchGetCommits(Consumer<BatchGetCommitsRequest.Builder> batchGetCommitsRequest) throws CommitIdsListRequiredException, CommitIdsLimitExceededException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about the contents of one or more commits in a repository.
This is a convenience which creates an instance of the
BatchGetCommitsRequest.Builder
avoiding the need to create one manually viaBatchGetCommitsRequest.builder()
- Parameters:
batchGetCommitsRequest
- AConsumer
that will call methods onBatchGetCommitsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetCommits operation returned by the service.
- See Also:
-
batchGetRepositories
default BatchGetRepositoriesResponse batchGetRepositories(BatchGetRepositoriesRequest batchGetRepositoriesRequest) throws RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more repositories.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
- Parameters:
batchGetRepositoriesRequest
- Represents the input of a batch get repositories operation.- Returns:
- Result of the BatchGetRepositories operation returned by the service.
- See Also:
-
batchGetRepositories
default BatchGetRepositoriesResponse batchGetRepositories(Consumer<BatchGetRepositoriesRequest.Builder> batchGetRepositoriesRequest) throws RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more repositories.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
This is a convenience which creates an instance of the
BatchGetRepositoriesRequest.Builder
avoiding the need to create one manually viaBatchGetRepositoriesRequest.builder()
- Parameters:
batchGetRepositoriesRequest
- AConsumer
that will call methods onBatchGetRepositoriesRequest.Builder
to create a request. Represents the input of a batch get repositories operation.- Returns:
- Result of the BatchGetRepositories operation returned by the service.
- See Also:
-
createApprovalRuleTemplate
default CreateApprovalRuleTemplateResponse createApprovalRuleTemplate(CreateApprovalRuleTemplateRequest createApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateContentRequiredException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, NumberOfRuleTemplatesExceededException, AwsServiceException, SdkClientException, CodeCommitException Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.
- Parameters:
createApprovalRuleTemplateRequest
-- Returns:
- Result of the CreateApprovalRuleTemplate operation returned by the service.
- See Also:
-
createApprovalRuleTemplate
default CreateApprovalRuleTemplateResponse createApprovalRuleTemplate(Consumer<CreateApprovalRuleTemplateRequest.Builder> createApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateContentRequiredException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, NumberOfRuleTemplatesExceededException, AwsServiceException, SdkClientException, CodeCommitException Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.
This is a convenience which creates an instance of the
CreateApprovalRuleTemplateRequest.Builder
avoiding the need to create one manually viaCreateApprovalRuleTemplateRequest.builder()
- Parameters:
createApprovalRuleTemplateRequest
- AConsumer
that will call methods onCreateApprovalRuleTemplateRequest.Builder
to create a request.- Returns:
- Result of the CreateApprovalRuleTemplate operation returned by the service.
- See Also:
-
createBranch
default CreateBranchResponse createBranch(CreateBranchRequest createBranchRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BranchNameRequiredException, BranchNameExistsException, InvalidBranchNameException, CommitIdRequiredException, CommitDoesNotExistException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates a branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
- Parameters:
createBranchRequest
- Represents the input of a create branch operation.- Returns:
- Result of the CreateBranch operation returned by the service.
- See Also:
-
createBranch
default CreateBranchResponse createBranch(Consumer<CreateBranchRequest.Builder> createBranchRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BranchNameRequiredException, BranchNameExistsException, InvalidBranchNameException, CommitIdRequiredException, CommitDoesNotExistException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates a branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
This is a convenience which creates an instance of the
CreateBranchRequest.Builder
avoiding the need to create one manually viaCreateBranchRequest.builder()
- Parameters:
createBranchRequest
- AConsumer
that will call methods onCreateBranchRequest.Builder
to create a request. Represents the input of a create branch operation.- Returns:
- Result of the CreateBranch operation returned by the service.
- See Also:
-
createCommit
default CreateCommitResponse createCommit(CreateCommitRequest createCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, FileEntryRequiredException, MaximumFileEntriesExceededException, PutFileEntryConflictException, SourceFileOrContentRequiredException, FileContentAndSourceFileSpecifiedException, PathRequiredException, InvalidPathException, SamePathRequestException, FileDoesNotExistException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, InvalidDeletionParameterException, RestrictedSourceFileException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, NoChangeException, FileNameConflictsWithDirectoryNameException, DirectoryNameConflictsWithFileNameException, FilePathConflictsWithSubmodulePathException, AwsServiceException, SdkClientException, CodeCommitException Creates a commit for a repository on the tip of a specified branch.
- Parameters:
createCommitRequest
-- Returns:
- Result of the CreateCommit operation returned by the service.
- See Also:
-
createCommit
default CreateCommitResponse createCommit(Consumer<CreateCommitRequest.Builder> createCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, FileEntryRequiredException, MaximumFileEntriesExceededException, PutFileEntryConflictException, SourceFileOrContentRequiredException, FileContentAndSourceFileSpecifiedException, PathRequiredException, InvalidPathException, SamePathRequestException, FileDoesNotExistException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, InvalidDeletionParameterException, RestrictedSourceFileException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, NoChangeException, FileNameConflictsWithDirectoryNameException, DirectoryNameConflictsWithFileNameException, FilePathConflictsWithSubmodulePathException, AwsServiceException, SdkClientException, CodeCommitException Creates a commit for a repository on the tip of a specified branch.
This is a convenience which creates an instance of the
CreateCommitRequest.Builder
avoiding the need to create one manually viaCreateCommitRequest.builder()
- Parameters:
createCommitRequest
- AConsumer
that will call methods onCreateCommitRequest.Builder
to create a request.- Returns:
- Result of the CreateCommit operation returned by the service.
- See Also:
-
createPullRequest
default CreatePullRequestResponse createPullRequest(CreatePullRequestRequest createPullRequestRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, ReferenceNameRequiredException, InvalidReferenceNameException, ReferenceDoesNotExistException, ReferenceTypeNotSupportedException, TitleRequiredException, InvalidTitleException, InvalidDescriptionException, TargetsRequiredException, InvalidTargetsException, TargetRequiredException, InvalidTargetException, MultipleRepositoriesInPullRequestException, MaximumOpenPullRequestsExceededException, SourceAndDestinationAreSameException, AwsServiceException, SdkClientException, CodeCommitException Creates a pull request in the specified repository.
- Parameters:
createPullRequestRequest
-- Returns:
- Result of the CreatePullRequest operation returned by the service.
- See Also:
-
createPullRequest
default CreatePullRequestResponse createPullRequest(Consumer<CreatePullRequestRequest.Builder> createPullRequestRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, ReferenceNameRequiredException, InvalidReferenceNameException, ReferenceDoesNotExistException, ReferenceTypeNotSupportedException, TitleRequiredException, InvalidTitleException, InvalidDescriptionException, TargetsRequiredException, InvalidTargetsException, TargetRequiredException, InvalidTargetException, MultipleRepositoriesInPullRequestException, MaximumOpenPullRequestsExceededException, SourceAndDestinationAreSameException, AwsServiceException, SdkClientException, CodeCommitException Creates a pull request in the specified repository.
This is a convenience which creates an instance of the
CreatePullRequestRequest.Builder
avoiding the need to create one manually viaCreatePullRequestRequest.builder()
- Parameters:
createPullRequestRequest
- AConsumer
that will call methods onCreatePullRequestRequest.Builder
to create a request.- Returns:
- Result of the CreatePullRequest operation returned by the service.
- See Also:
-
createPullRequestApprovalRule
default CreatePullRequestApprovalRuleResponse createPullRequestApprovalRule(CreatePullRequestApprovalRuleRequest createPullRequestApprovalRuleRequest) throws ApprovalRuleNameRequiredException, InvalidApprovalRuleNameException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleContentRequiredException, InvalidApprovalRuleContentException, NumberOfRulesExceededException, PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, PullRequestAlreadyClosedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an approval rule for a pull request.
- Parameters:
createPullRequestApprovalRuleRequest
-- Returns:
- Result of the CreatePullRequestApprovalRule operation returned by the service.
- See Also:
-
createPullRequestApprovalRule
default CreatePullRequestApprovalRuleResponse createPullRequestApprovalRule(Consumer<CreatePullRequestApprovalRuleRequest.Builder> createPullRequestApprovalRuleRequest) throws ApprovalRuleNameRequiredException, InvalidApprovalRuleNameException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleContentRequiredException, InvalidApprovalRuleContentException, NumberOfRulesExceededException, PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, PullRequestAlreadyClosedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an approval rule for a pull request.
This is a convenience which creates an instance of the
CreatePullRequestApprovalRuleRequest.Builder
avoiding the need to create one manually viaCreatePullRequestApprovalRuleRequest.builder()
- Parameters:
createPullRequestApprovalRuleRequest
- AConsumer
that will call methods onCreatePullRequestApprovalRuleRequest.Builder
to create a request.- Returns:
- Result of the CreatePullRequestApprovalRule operation returned by the service.
- See Also:
-
createRepository
default CreateRepositoryResponse createRepository(CreateRepositoryRequest createRepositoryRequest) throws RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, RepositoryLimitExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, InvalidTagsMapException, TooManyTagsException, InvalidSystemTagUsageException, TagPolicyException, AwsServiceException, SdkClientException, CodeCommitException Creates a new, empty repository.
- Parameters:
createRepositoryRequest
- Represents the input of a create repository operation.- Returns:
- Result of the CreateRepository operation returned by the service.
- See Also:
-
createRepository
default CreateRepositoryResponse createRepository(Consumer<CreateRepositoryRequest.Builder> createRepositoryRequest) throws RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, RepositoryLimitExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, InvalidTagsMapException, TooManyTagsException, InvalidSystemTagUsageException, TagPolicyException, AwsServiceException, SdkClientException, CodeCommitException Creates a new, empty repository.
This is a convenience which creates an instance of the
CreateRepositoryRequest.Builder
avoiding the need to create one manually viaCreateRepositoryRequest.builder()
- Parameters:
createRepositoryRequest
- AConsumer
that will call methods onCreateRepositoryRequest.Builder
to create a request. Represents the input of a create repository operation.- Returns:
- Result of the CreateRepository operation returned by the service.
- See Also:
-
createUnreferencedMergeCommit
default CreateUnreferencedMergeCommitResponse createUnreferencedMergeCommit(CreateUnreferencedMergeCommitRequest createUnreferencedMergeCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, ManualMergeRequiredException, MaximumConflictResolutionEntriesExceededException, MultipleConflictResolutionEntriesException, ReplacementTypeRequiredException, InvalidReplacementTypeException, ReplacementContentRequiredException, InvalidReplacementContentException, PathRequiredException, InvalidPathException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, ConcurrentReferenceUpdateException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.
This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.
- Parameters:
createUnreferencedMergeCommitRequest
-- Returns:
- Result of the CreateUnreferencedMergeCommit operation returned by the service.
- See Also:
-
createUnreferencedMergeCommit
default CreateUnreferencedMergeCommitResponse createUnreferencedMergeCommit(Consumer<CreateUnreferencedMergeCommitRequest.Builder> createUnreferencedMergeCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, ManualMergeRequiredException, MaximumConflictResolutionEntriesExceededException, MultipleConflictResolutionEntriesException, ReplacementTypeRequiredException, InvalidReplacementTypeException, ReplacementContentRequiredException, InvalidReplacementContentException, PathRequiredException, InvalidPathException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, ConcurrentReferenceUpdateException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.
This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.
This is a convenience which creates an instance of the
CreateUnreferencedMergeCommitRequest.Builder
avoiding the need to create one manually viaCreateUnreferencedMergeCommitRequest.builder()
- Parameters:
createUnreferencedMergeCommitRequest
- AConsumer
that will call methods onCreateUnreferencedMergeCommitRequest.Builder
to create a request.- Returns:
- Result of the CreateUnreferencedMergeCommit operation returned by the service.
- See Also:
-
deleteApprovalRuleTemplate
default DeleteApprovalRuleTemplateResponse deleteApprovalRuleTemplate(DeleteApprovalRuleTemplateRequest deleteApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateInUseException, AwsServiceException, SdkClientException, CodeCommitException Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.
- Parameters:
deleteApprovalRuleTemplateRequest
-- Returns:
- Result of the DeleteApprovalRuleTemplate operation returned by the service.
- See Also:
-
deleteApprovalRuleTemplate
default DeleteApprovalRuleTemplateResponse deleteApprovalRuleTemplate(Consumer<DeleteApprovalRuleTemplateRequest.Builder> deleteApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateInUseException, AwsServiceException, SdkClientException, CodeCommitException Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.
This is a convenience which creates an instance of the
DeleteApprovalRuleTemplateRequest.Builder
avoiding the need to create one manually viaDeleteApprovalRuleTemplateRequest.builder()
- Parameters:
deleteApprovalRuleTemplateRequest
- AConsumer
that will call methods onDeleteApprovalRuleTemplateRequest.Builder
to create a request.- Returns:
- Result of the DeleteApprovalRuleTemplate operation returned by the service.
- See Also:
-
deleteBranch
default DeleteBranchResponse deleteBranch(DeleteBranchRequest deleteBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, DefaultBranchCannotBeDeletedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes a branch from a repository, unless that branch is the default branch for the repository.
- Parameters:
deleteBranchRequest
- Represents the input of a delete branch operation.- Returns:
- Result of the DeleteBranch operation returned by the service.
- See Also:
-
deleteBranch
default DeleteBranchResponse deleteBranch(Consumer<DeleteBranchRequest.Builder> deleteBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, DefaultBranchCannotBeDeletedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes a branch from a repository, unless that branch is the default branch for the repository.
This is a convenience which creates an instance of the
DeleteBranchRequest.Builder
avoiding the need to create one manually viaDeleteBranchRequest.builder()
- Parameters:
deleteBranchRequest
- AConsumer
that will call methods onDeleteBranchRequest.Builder
to create a request. Represents the input of a delete branch operation.- Returns:
- Result of the DeleteBranch operation returned by the service.
- See Also:
-
deleteCommentContent
default DeleteCommentContentResponse deleteCommentContent(DeleteCommentContentRequest deleteCommentContentRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Deletes the content of a comment made on a change, file, or commit in a repository.
- Parameters:
deleteCommentContentRequest
-- Returns:
- Result of the DeleteCommentContent operation returned by the service.
- See Also:
-
deleteCommentContent
default DeleteCommentContentResponse deleteCommentContent(Consumer<DeleteCommentContentRequest.Builder> deleteCommentContentRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Deletes the content of a comment made on a change, file, or commit in a repository.
This is a convenience which creates an instance of the
DeleteCommentContentRequest.Builder
avoiding the need to create one manually viaDeleteCommentContentRequest.builder()
- Parameters:
deleteCommentContentRequest
- AConsumer
that will call methods onDeleteCommentContentRequest.Builder
to create a request.- Returns:
- Result of the DeleteCommentContent operation returned by the service.
- See Also:
-
deleteFile
default DeleteFileResponse deleteFile(DeleteFileRequest deleteFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, PathRequiredException, InvalidPathException, FileDoesNotExistException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.
- Parameters:
deleteFileRequest
-- Returns:
- Result of the DeleteFile operation returned by the service.
- See Also:
-
deleteFile
default DeleteFileResponse deleteFile(Consumer<DeleteFileRequest.Builder> deleteFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, PathRequiredException, InvalidPathException, FileDoesNotExistException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.
This is a convenience which creates an instance of the
DeleteFileRequest.Builder
avoiding the need to create one manually viaDeleteFileRequest.builder()
- Parameters:
deleteFileRequest
- AConsumer
that will call methods onDeleteFileRequest.Builder
to create a request.- Returns:
- Result of the DeleteFile operation returned by the service.
- See Also:
-
deletePullRequestApprovalRule
default DeletePullRequestApprovalRuleResponse deletePullRequestApprovalRule(DeletePullRequestApprovalRuleRequest deletePullRequestApprovalRuleRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, PullRequestAlreadyClosedException, ApprovalRuleNameRequiredException, InvalidApprovalRuleNameException, CannotDeleteApprovalRuleFromTemplateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.
- Parameters:
deletePullRequestApprovalRuleRequest
-- Returns:
- Result of the DeletePullRequestApprovalRule operation returned by the service.
- See Also:
-
deletePullRequestApprovalRule
default DeletePullRequestApprovalRuleResponse deletePullRequestApprovalRule(Consumer<DeletePullRequestApprovalRuleRequest.Builder> deletePullRequestApprovalRuleRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, PullRequestAlreadyClosedException, ApprovalRuleNameRequiredException, InvalidApprovalRuleNameException, CannotDeleteApprovalRuleFromTemplateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.
This is a convenience which creates an instance of the
DeletePullRequestApprovalRuleRequest.Builder
avoiding the need to create one manually viaDeletePullRequestApprovalRuleRequest.builder()
- Parameters:
deletePullRequestApprovalRuleRequest
- AConsumer
that will call methods onDeletePullRequestApprovalRuleRequest.Builder
to create a request.- Returns:
- Result of the DeletePullRequestApprovalRule operation returned by the service.
- See Also:
-
deleteRepository
default DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest deleteRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.
- Parameters:
deleteRepositoryRequest
- Represents the input of a delete repository operation.- Returns:
- Result of the DeleteRepository operation returned by the service.
- See Also:
-
deleteRepository
default DeleteRepositoryResponse deleteRepository(Consumer<DeleteRepositoryRequest.Builder> deleteRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.
This is a convenience which creates an instance of the
DeleteRepositoryRequest.Builder
avoiding the need to create one manually viaDeleteRepositoryRequest.builder()
- Parameters:
deleteRepositoryRequest
- AConsumer
that will call methods onDeleteRepositoryRequest.Builder
to create a request. Represents the input of a delete repository operation.- Returns:
- Result of the DeleteRepository operation returned by the service.
- See Also:
-
describeMergeConflicts
default DescribeMergeConflictsResponse describeMergeConflicts(DescribeMergeConflictsRequest describeMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, PathRequiredException, InvalidPathException, FileDoesNotExistException, InvalidMaxMergeHunksException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.
- Parameters:
describeMergeConflictsRequest
-- Returns:
- Result of the DescribeMergeConflicts operation returned by the service.
- See Also:
-
describeMergeConflicts
default DescribeMergeConflictsResponse describeMergeConflicts(Consumer<DescribeMergeConflictsRequest.Builder> describeMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, PathRequiredException, InvalidPathException, FileDoesNotExistException, InvalidMaxMergeHunksException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.
This is a convenience which creates an instance of the
DescribeMergeConflictsRequest.Builder
avoiding the need to create one manually viaDescribeMergeConflictsRequest.builder()
- Parameters:
describeMergeConflictsRequest
- AConsumer
that will call methods onDescribeMergeConflictsRequest.Builder
to create a request.- Returns:
- Result of the DescribeMergeConflicts operation returned by the service.
- See Also:
-
describeMergeConflictsPaginator
default DescribeMergeConflictsIterable describeMergeConflictsPaginator(DescribeMergeConflictsRequest describeMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, PathRequiredException, InvalidPathException, FileDoesNotExistException, InvalidMaxMergeHunksException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
describeMergeConflicts(software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.DescribeMergeConflictsIterable responses = client.describeMergeConflictsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.DescribeMergeConflictsIterable responses = client .describeMergeConflictsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.DescribeMergeConflictsIterable responses = client.describeMergeConflictsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxMergeHunks won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeMergeConflicts(software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsRequest)
operation.- Parameters:
describeMergeConflictsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeMergeConflictsPaginator
default DescribeMergeConflictsIterable describeMergeConflictsPaginator(Consumer<DescribeMergeConflictsRequest.Builder> describeMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, PathRequiredException, InvalidPathException, FileDoesNotExistException, InvalidMaxMergeHunksException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
describeMergeConflicts(software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.DescribeMergeConflictsIterable responses = client.describeMergeConflictsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.DescribeMergeConflictsIterable responses = client .describeMergeConflictsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.DescribeMergeConflictsIterable responses = client.describeMergeConflictsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxMergeHunks won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeMergeConflicts(software.amazon.awssdk.services.codecommit.model.DescribeMergeConflictsRequest)
operation.
This is a convenience which creates an instance of the
DescribeMergeConflictsRequest.Builder
avoiding the need to create one manually viaDescribeMergeConflictsRequest.builder()
- Parameters:
describeMergeConflictsRequest
- AConsumer
that will call methods onDescribeMergeConflictsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describePullRequestEvents
default DescribePullRequestEventsResponse describePullRequestEvents(DescribePullRequestEventsRequest describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more pull request events.
- Parameters:
describePullRequestEventsRequest
-- Returns:
- Result of the DescribePullRequestEvents operation returned by the service.
- See Also:
-
describePullRequestEvents
default DescribePullRequestEventsResponse describePullRequestEvents(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about one or more pull request events.
This is a convenience which creates an instance of the
DescribePullRequestEventsRequest.Builder
avoiding the need to create one manually viaDescribePullRequestEventsRequest.builder()
- Parameters:
describePullRequestEventsRequest
- AConsumer
that will call methods onDescribePullRequestEventsRequest.Builder
to create a request.- Returns:
- Result of the DescribePullRequestEvents operation returned by the service.
- See Also:
-
describePullRequestEventsPaginator
default DescribePullRequestEventsIterable describePullRequestEventsPaginator(DescribePullRequestEventsRequest describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client .describePullRequestEventsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation.- Parameters:
describePullRequestEventsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describePullRequestEventsPaginator
default DescribePullRequestEventsIterable describePullRequestEventsPaginator(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client .describePullRequestEventsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation.
This is a convenience which creates an instance of the
DescribePullRequestEventsRequest.Builder
avoiding the need to create one manually viaDescribePullRequestEventsRequest.builder()
- Parameters:
describePullRequestEventsRequest
- AConsumer
that will call methods onDescribePullRequestEventsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
disassociateApprovalRuleTemplateFromRepository
default DisassociateApprovalRuleTemplateFromRepositoryResponse disassociateApprovalRuleTemplateFromRepository(DisassociateApprovalRuleTemplateFromRepositoryRequest disassociateApprovalRuleTemplateFromRepositoryRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.
- Parameters:
disassociateApprovalRuleTemplateFromRepositoryRequest
-- Returns:
- Result of the DisassociateApprovalRuleTemplateFromRepository operation returned by the service.
- See Also:
-
disassociateApprovalRuleTemplateFromRepository
default DisassociateApprovalRuleTemplateFromRepositoryResponse disassociateApprovalRuleTemplateFromRepository(Consumer<DisassociateApprovalRuleTemplateFromRepositoryRequest.Builder> disassociateApprovalRuleTemplateFromRepositoryRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.
This is a convenience which creates an instance of the
DisassociateApprovalRuleTemplateFromRepositoryRequest.Builder
avoiding the need to create one manually viaDisassociateApprovalRuleTemplateFromRepositoryRequest.builder()
- Parameters:
disassociateApprovalRuleTemplateFromRepositoryRequest
- AConsumer
that will call methods onDisassociateApprovalRuleTemplateFromRepositoryRequest.Builder
to create a request.- Returns:
- Result of the DisassociateApprovalRuleTemplateFromRepository operation returned by the service.
- See Also:
-
evaluatePullRequestApprovalRules
default EvaluatePullRequestApprovalRulesResponse evaluatePullRequestApprovalRules(EvaluatePullRequestApprovalRulesRequest evaluatePullRequestApprovalRulesRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, RevisionNotCurrentException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
- Parameters:
evaluatePullRequestApprovalRulesRequest
-- Returns:
- Result of the EvaluatePullRequestApprovalRules operation returned by the service.
- See Also:
-
evaluatePullRequestApprovalRules
default EvaluatePullRequestApprovalRulesResponse evaluatePullRequestApprovalRules(Consumer<EvaluatePullRequestApprovalRulesRequest.Builder> evaluatePullRequestApprovalRulesRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, RevisionNotCurrentException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
This is a convenience which creates an instance of the
EvaluatePullRequestApprovalRulesRequest.Builder
avoiding the need to create one manually viaEvaluatePullRequestApprovalRulesRequest.builder()
- Parameters:
evaluatePullRequestApprovalRulesRequest
- AConsumer
that will call methods onEvaluatePullRequestApprovalRulesRequest.Builder
to create a request.- Returns:
- Result of the EvaluatePullRequestApprovalRules operation returned by the service.
- See Also:
-
getApprovalRuleTemplate
default GetApprovalRuleTemplateResponse getApprovalRuleTemplate(GetApprovalRuleTemplateRequest getApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a specified approval rule template.
- Parameters:
getApprovalRuleTemplateRequest
-- Returns:
- Result of the GetApprovalRuleTemplate operation returned by the service.
- See Also:
-
getApprovalRuleTemplate
default GetApprovalRuleTemplateResponse getApprovalRuleTemplate(Consumer<GetApprovalRuleTemplateRequest.Builder> getApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a specified approval rule template.
This is a convenience which creates an instance of the
GetApprovalRuleTemplateRequest.Builder
avoiding the need to create one manually viaGetApprovalRuleTemplateRequest.builder()
- Parameters:
getApprovalRuleTemplateRequest
- AConsumer
that will call methods onGetApprovalRuleTemplateRequest.Builder
to create a request.- Returns:
- Result of the GetApprovalRuleTemplate operation returned by the service.
- See Also:
-
getBlob
default GetBlobResponse getBlob(GetBlobRequest getBlobRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BlobIdRequiredException, InvalidBlobIdException, BlobIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException Returns the base-64 encoded content of an individual blob in a repository.
- Parameters:
getBlobRequest
- Represents the input of a get blob operation.- Returns:
- Result of the GetBlob operation returned by the service.
- See Also:
-
getBlob
default GetBlobResponse getBlob(Consumer<GetBlobRequest.Builder> getBlobRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BlobIdRequiredException, InvalidBlobIdException, BlobIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException Returns the base-64 encoded content of an individual blob in a repository.
This is a convenience which creates an instance of the
GetBlobRequest.Builder
avoiding the need to create one manually viaGetBlobRequest.builder()
- Parameters:
getBlobRequest
- AConsumer
that will call methods onGetBlobRequest.Builder
to create a request. Represents the input of a get blob operation.- Returns:
- Result of the GetBlob operation returned by the service.
- See Also:
-
getBranch
default GetBranchResponse getBranch(GetBranchRequest getBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a repository branch, including its name and the last commit ID.
- Parameters:
getBranchRequest
- Represents the input of a get branch operation.- Returns:
- Result of the GetBranch operation returned by the service.
- See Also:
-
getBranch
default GetBranchResponse getBranch(Consumer<GetBranchRequest.Builder> getBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a repository branch, including its name and the last commit ID.
This is a convenience which creates an instance of the
GetBranchRequest.Builder
avoiding the need to create one manually viaGetBranchRequest.builder()
- Parameters:
getBranchRequest
- AConsumer
that will call methods onGetBranchRequest.Builder
to create a request. Represents the input of a get branch operation.- Returns:
- Result of the GetBranch operation returned by the service.
- See Also:
-
getComment
default GetCommentResponse getComment(GetCommentRequest getCommentRequest) throws CommentDoesNotExistException, CommentDeletedException, CommentIdRequiredException, InvalidCommentIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns the content of a comment made on a change, file, or commit in a repository.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
- Parameters:
getCommentRequest
-- Returns:
- Result of the GetComment operation returned by the service.
- See Also:
-
getComment
default GetCommentResponse getComment(Consumer<GetCommentRequest.Builder> getCommentRequest) throws CommentDoesNotExistException, CommentDeletedException, CommentIdRequiredException, InvalidCommentIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns the content of a comment made on a change, file, or commit in a repository.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
This is a convenience which creates an instance of the
GetCommentRequest.Builder
avoiding the need to create one manually viaGetCommentRequest.builder()
- Parameters:
getCommentRequest
- AConsumer
that will call methods onGetCommentRequest.Builder
to create a request.- Returns:
- Result of the GetComment operation returned by the service.
- See Also:
-
getCommentReactions
default GetCommentReactionsResponse getCommentReactions(GetCommentReactionsRequest getCommentReactionsRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, InvalidReactionUserArnException, InvalidMaxResultsException, InvalidContinuationTokenException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
- Parameters:
getCommentReactionsRequest
-- Returns:
- Result of the GetCommentReactions operation returned by the service.
- See Also:
-
getCommentReactions
default GetCommentReactionsResponse getCommentReactions(Consumer<GetCommentReactionsRequest.Builder> getCommentReactionsRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, InvalidReactionUserArnException, InvalidMaxResultsException, InvalidContinuationTokenException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
This is a convenience which creates an instance of the
GetCommentReactionsRequest.Builder
avoiding the need to create one manually viaGetCommentReactionsRequest.builder()
- Parameters:
getCommentReactionsRequest
- AConsumer
that will call methods onGetCommentReactionsRequest.Builder
to create a request.- Returns:
- Result of the GetCommentReactions operation returned by the service.
- See Also:
-
getCommentReactionsPaginator
default GetCommentReactionsIterable getCommentReactionsPaginator(GetCommentReactionsRequest getCommentReactionsRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, InvalidReactionUserArnException, InvalidMaxResultsException, InvalidContinuationTokenException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getCommentReactions(software.amazon.awssdk.services.codecommit.model.GetCommentReactionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetCommentReactionsIterable responses = client.getCommentReactionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentReactionsIterable responses = client .getCommentReactionsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentReactionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetCommentReactionsIterable responses = client.getCommentReactionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getCommentReactions(software.amazon.awssdk.services.codecommit.model.GetCommentReactionsRequest)
operation.- Parameters:
getCommentReactionsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCommentReactionsPaginator
default GetCommentReactionsIterable getCommentReactionsPaginator(Consumer<GetCommentReactionsRequest.Builder> getCommentReactionsRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, InvalidReactionUserArnException, InvalidMaxResultsException, InvalidContinuationTokenException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getCommentReactions(software.amazon.awssdk.services.codecommit.model.GetCommentReactionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetCommentReactionsIterable responses = client.getCommentReactionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentReactionsIterable responses = client .getCommentReactionsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentReactionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetCommentReactionsIterable responses = client.getCommentReactionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getCommentReactions(software.amazon.awssdk.services.codecommit.model.GetCommentReactionsRequest)
operation.
This is a convenience which creates an instance of the
GetCommentReactionsRequest.Builder
avoiding the need to create one manually viaGetCommentReactionsRequest.builder()
- Parameters:
getCommentReactionsRequest
- AConsumer
that will call methods onGetCommentReactionsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCommentsForComparedCommit
default GetCommentsForComparedCommitResponse getCommentsForComparedCommit(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about comments made on the comparison between two commits.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
- Parameters:
getCommentsForComparedCommitRequest
-- Returns:
- Result of the GetCommentsForComparedCommit operation returned by the service.
- See Also:
-
getCommentsForComparedCommit
default GetCommentsForComparedCommitResponse getCommentsForComparedCommit(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about comments made on the comparison between two commits.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
This is a convenience which creates an instance of the
GetCommentsForComparedCommitRequest.Builder
avoiding the need to create one manually viaGetCommentsForComparedCommitRequest.builder()
- Parameters:
getCommentsForComparedCommitRequest
- AConsumer
that will call methods onGetCommentsForComparedCommitRequest.Builder
to create a request.- Returns:
- Result of the GetCommentsForComparedCommit operation returned by the service.
- See Also:
-
getCommentsForComparedCommitPaginator
default GetCommentsForComparedCommitIterable getCommentsForComparedCommitPaginator(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client .getCommentsForComparedCommitPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation.- Parameters:
getCommentsForComparedCommitRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCommentsForComparedCommitPaginator
default GetCommentsForComparedCommitIterable getCommentsForComparedCommitPaginator(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client .getCommentsForComparedCommitPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation.
This is a convenience which creates an instance of the
GetCommentsForComparedCommitRequest.Builder
avoiding the need to create one manually viaGetCommentsForComparedCommitRequest.builder()
- Parameters:
getCommentsForComparedCommitRequest
- AConsumer
that will call methods onGetCommentsForComparedCommitRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCommentsForPullRequest
default GetCommentsForPullRequestResponse getCommentsForPullRequest(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns comments made on a pull request.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
- Parameters:
getCommentsForPullRequestRequest
-- Returns:
- Result of the GetCommentsForPullRequest operation returned by the service.
- See Also:
-
getCommentsForPullRequest
default GetCommentsForPullRequestResponse getCommentsForPullRequest(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns comments made on a pull request.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
This is a convenience which creates an instance of the
GetCommentsForPullRequestRequest.Builder
avoiding the need to create one manually viaGetCommentsForPullRequestRequest.builder()
- Parameters:
getCommentsForPullRequestRequest
- AConsumer
that will call methods onGetCommentsForPullRequestRequest.Builder
to create a request.- Returns:
- Result of the GetCommentsForPullRequest operation returned by the service.
- See Also:
-
getCommentsForPullRequestPaginator
default GetCommentsForPullRequestIterable getCommentsForPullRequestPaginator(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client .getCommentsForPullRequestPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation.- Parameters:
getCommentsForPullRequestRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCommentsForPullRequestPaginator
default GetCommentsForPullRequestIterable getCommentsForPullRequestPaginator(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client .getCommentsForPullRequestPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation.
This is a convenience which creates an instance of the
GetCommentsForPullRequestRequest.Builder
avoiding the need to create one manually viaGetCommentsForPullRequestRequest.builder()
- Parameters:
getCommentsForPullRequestRequest
- AConsumer
that will call methods onGetCommentsForPullRequestRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCommit
default GetCommitResponse getCommit(GetCommitRequest getCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitIdRequiredException, InvalidCommitIdException, CommitIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a commit, including commit message and committer information.
- Parameters:
getCommitRequest
- Represents the input of a get commit operation.- Returns:
- Result of the GetCommit operation returned by the service.
- See Also:
-
getCommit
default GetCommitResponse getCommit(Consumer<GetCommitRequest.Builder> getCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitIdRequiredException, InvalidCommitIdException, CommitIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a commit, including commit message and committer information.
This is a convenience which creates an instance of the
GetCommitRequest.Builder
avoiding the need to create one manually viaGetCommitRequest.builder()
- Parameters:
getCommitRequest
- AConsumer
that will call methods onGetCommitRequest.Builder
to create a request. Represents the input of a get commit operation.- Returns:
- Result of the GetCommit operation returned by the service.
- See Also:
-
getDifferences
default GetDifferencesResponse getDifferences(GetDifferencesRequest getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.
- Parameters:
getDifferencesRequest
-- Returns:
- Result of the GetDifferences operation returned by the service.
- See Also:
-
getDifferences
default GetDifferencesResponse getDifferences(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.
This is a convenience which creates an instance of the
GetDifferencesRequest.Builder
avoiding the need to create one manually viaGetDifferencesRequest.builder()
- Parameters:
getDifferencesRequest
- AConsumer
that will call methods onGetDifferencesRequest.Builder
to create a request.- Returns:
- Result of the GetDifferences operation returned by the service.
- See Also:
-
getDifferencesPaginator
default GetDifferencesIterable getDifferencesPaginator(GetDifferencesRequest getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client .getDifferencesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetDifferencesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation.- Parameters:
getDifferencesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getDifferencesPaginator
default GetDifferencesIterable getDifferencesPaginator(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client .getDifferencesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetDifferencesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation.
This is a convenience which creates an instance of the
GetDifferencesRequest.Builder
avoiding the need to create one manually viaGetDifferencesRequest.builder()
- Parameters:
getDifferencesRequest
- AConsumer
that will call methods onGetDifferencesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getFile
default GetFileResponse getFile(GetFileRequest getFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FileDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException Returns the base-64 encoded contents of a specified file and its metadata.
- Parameters:
getFileRequest
-- Returns:
- Result of the GetFile operation returned by the service.
- See Also:
-
getFile
default GetFileResponse getFile(Consumer<GetFileRequest.Builder> getFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FileDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException Returns the base-64 encoded contents of a specified file and its metadata.
This is a convenience which creates an instance of the
GetFileRequest.Builder
avoiding the need to create one manually viaGetFileRequest.builder()
- Parameters:
getFileRequest
- AConsumer
that will call methods onGetFileRequest.Builder
to create a request.- Returns:
- Result of the GetFile operation returned by the service.
- See Also:
-
getFolder
default GetFolderResponse getFolder(GetFolderRequest getFolderRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FolderDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns the contents of a specified folder in a repository.
- Parameters:
getFolderRequest
-- Returns:
- Result of the GetFolder operation returned by the service.
- See Also:
-
getFolder
default GetFolderResponse getFolder(Consumer<GetFolderRequest.Builder> getFolderRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FolderDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns the contents of a specified folder in a repository.
This is a convenience which creates an instance of the
GetFolderRequest.Builder
avoiding the need to create one manually viaGetFolderRequest.builder()
- Parameters:
getFolderRequest
- AConsumer
that will call methods onGetFolderRequest.Builder
to create a request.- Returns:
- Result of the GetFolder operation returned by the service.
- See Also:
-
getMergeCommit
default GetMergeCommitResponse getMergeCommit(GetMergeCommitRequest getMergeCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a specified merge commit.
- Parameters:
getMergeCommitRequest
-- Returns:
- Result of the GetMergeCommit operation returned by the service.
- See Also:
-
getMergeCommit
default GetMergeCommitResponse getMergeCommit(Consumer<GetMergeCommitRequest.Builder> getMergeCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a specified merge commit.
This is a convenience which creates an instance of the
GetMergeCommitRequest.Builder
avoiding the need to create one manually viaGetMergeCommitRequest.builder()
- Parameters:
getMergeCommitRequest
- AConsumer
that will call methods onGetMergeCommitRequest.Builder
to create a request.- Returns:
- Result of the GetMergeCommit operation returned by the service.
- See Also:
-
getMergeConflicts
default GetMergeConflictsResponse getMergeConflicts(GetMergeConflictsRequest getMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidMaxConflictFilesException, InvalidConflictDetailLevelException, InvalidDestinationCommitSpecifierException, InvalidSourceCommitSpecifierException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
- Parameters:
getMergeConflictsRequest
-- Returns:
- Result of the GetMergeConflicts operation returned by the service.
- See Also:
-
getMergeConflicts
default GetMergeConflictsResponse getMergeConflicts(Consumer<GetMergeConflictsRequest.Builder> getMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidMaxConflictFilesException, InvalidConflictDetailLevelException, InvalidDestinationCommitSpecifierException, InvalidSourceCommitSpecifierException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
This is a convenience which creates an instance of the
GetMergeConflictsRequest.Builder
avoiding the need to create one manually viaGetMergeConflictsRequest.builder()
- Parameters:
getMergeConflictsRequest
- AConsumer
that will call methods onGetMergeConflictsRequest.Builder
to create a request.- Returns:
- Result of the GetMergeConflicts operation returned by the service.
- See Also:
-
getMergeConflictsPaginator
default GetMergeConflictsIterable getMergeConflictsPaginator(GetMergeConflictsRequest getMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidMaxConflictFilesException, InvalidConflictDetailLevelException, InvalidDestinationCommitSpecifierException, InvalidSourceCommitSpecifierException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getMergeConflicts(software.amazon.awssdk.services.codecommit.model.GetMergeConflictsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetMergeConflictsIterable responses = client.getMergeConflictsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetMergeConflictsIterable responses = client .getMergeConflictsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetMergeConflictsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetMergeConflictsIterable responses = client.getMergeConflictsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxConflictFiles won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getMergeConflicts(software.amazon.awssdk.services.codecommit.model.GetMergeConflictsRequest)
operation.- Parameters:
getMergeConflictsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getMergeConflictsPaginator
default GetMergeConflictsIterable getMergeConflictsPaginator(Consumer<GetMergeConflictsRequest.Builder> getMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidContinuationTokenException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidMaxConflictFilesException, InvalidConflictDetailLevelException, InvalidDestinationCommitSpecifierException, InvalidSourceCommitSpecifierException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
getMergeConflicts(software.amazon.awssdk.services.codecommit.model.GetMergeConflictsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.GetMergeConflictsIterable responses = client.getMergeConflictsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.GetMergeConflictsIterable responses = client .getMergeConflictsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetMergeConflictsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.GetMergeConflictsIterable responses = client.getMergeConflictsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxConflictFiles won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getMergeConflicts(software.amazon.awssdk.services.codecommit.model.GetMergeConflictsRequest)
operation.
This is a convenience which creates an instance of the
GetMergeConflictsRequest.Builder
avoiding the need to create one manually viaGetMergeConflictsRequest.builder()
- Parameters:
getMergeConflictsRequest
- AConsumer
that will call methods onGetMergeConflictsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getMergeOptions
default GetMergeOptionsResponse getMergeOptions(GetMergeOptionsRequest getMergeOptionsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
- Parameters:
getMergeOptionsRequest
-- Returns:
- Result of the GetMergeOptions operation returned by the service.
- See Also:
-
getMergeOptions
default GetMergeOptionsResponse getMergeOptions(Consumer<GetMergeOptionsRequest.Builder> getMergeOptionsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
This is a convenience which creates an instance of the
GetMergeOptionsRequest.Builder
avoiding the need to create one manually viaGetMergeOptionsRequest.builder()
- Parameters:
getMergeOptionsRequest
- AConsumer
that will call methods onGetMergeOptionsRequest.Builder
to create a request.- Returns:
- Result of the GetMergeOptions operation returned by the service.
- See Also:
-
getPullRequest
default GetPullRequestResponse getPullRequest(GetPullRequestRequest getPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Gets information about a pull request in a specified repository.
- Parameters:
getPullRequestRequest
-- Returns:
- Result of the GetPullRequest operation returned by the service.
- See Also:
-
getPullRequest
default GetPullRequestResponse getPullRequest(Consumer<GetPullRequestRequest.Builder> getPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Gets information about a pull request in a specified repository.
This is a convenience which creates an instance of the
GetPullRequestRequest.Builder
avoiding the need to create one manually viaGetPullRequestRequest.builder()
- Parameters:
getPullRequestRequest
- AConsumer
that will call methods onGetPullRequestRequest.Builder
to create a request.- Returns:
- Result of the GetPullRequest operation returned by the service.
- See Also:
-
getPullRequestApprovalStates
default GetPullRequestApprovalStatesResponse getPullRequestApprovalStates(GetPullRequestApprovalStatesRequest getPullRequestApprovalStatesRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.
- Parameters:
getPullRequestApprovalStatesRequest
-- Returns:
- Result of the GetPullRequestApprovalStates operation returned by the service.
- See Also:
-
getPullRequestApprovalStates
default GetPullRequestApprovalStatesResponse getPullRequestApprovalStates(Consumer<GetPullRequestApprovalStatesRequest.Builder> getPullRequestApprovalStatesRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.
This is a convenience which creates an instance of the
GetPullRequestApprovalStatesRequest.Builder
avoiding the need to create one manually viaGetPullRequestApprovalStatesRequest.builder()
- Parameters:
getPullRequestApprovalStatesRequest
- AConsumer
that will call methods onGetPullRequestApprovalStatesRequest.Builder
to create a request.- Returns:
- Result of the GetPullRequestApprovalStates operation returned by the service.
- See Also:
-
getPullRequestOverrideState
default GetPullRequestOverrideStateResponse getPullRequestOverrideState(GetPullRequestOverrideStateRequest getPullRequestOverrideStateRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
- Parameters:
getPullRequestOverrideStateRequest
-- Returns:
- Result of the GetPullRequestOverrideState operation returned by the service.
- See Also:
-
getPullRequestOverrideState
default GetPullRequestOverrideStateResponse getPullRequestOverrideState(Consumer<GetPullRequestOverrideStateRequest.Builder> getPullRequestOverrideStateRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
This is a convenience which creates an instance of the
GetPullRequestOverrideStateRequest.Builder
avoiding the need to create one manually viaGetPullRequestOverrideStateRequest.builder()
- Parameters:
getPullRequestOverrideStateRequest
- AConsumer
that will call methods onGetPullRequestOverrideStateRequest.Builder
to create a request.- Returns:
- Result of the GetPullRequestOverrideState operation returned by the service.
- See Also:
-
getRepository
default GetRepositoryResponse getRepository(GetRepositoryRequest getRepositoryRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
- Parameters:
getRepositoryRequest
- Represents the input of a get repository operation.- Returns:
- Result of the GetRepository operation returned by the service.
- See Also:
-
getRepository
default GetRepositoryResponse getRepository(Consumer<GetRepositoryRequest.Builder> getRepositoryRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
This is a convenience which creates an instance of the
GetRepositoryRequest.Builder
avoiding the need to create one manually viaGetRepositoryRequest.builder()
- Parameters:
getRepositoryRequest
- AConsumer
that will call methods onGetRepositoryRequest.Builder
to create a request. Represents the input of a get repository operation.- Returns:
- Result of the GetRepository operation returned by the service.
- See Also:
-
getRepositoryTriggers
default GetRepositoryTriggersResponse getRepositoryTriggers(GetRepositoryTriggersRequest getRepositoryTriggersRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Gets information about triggers configured for a repository.
- Parameters:
getRepositoryTriggersRequest
- Represents the input of a get repository triggers operation.- Returns:
- Result of the GetRepositoryTriggers operation returned by the service.
- See Also:
-
getRepositoryTriggers
default GetRepositoryTriggersResponse getRepositoryTriggers(Consumer<GetRepositoryTriggersRequest.Builder> getRepositoryTriggersRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Gets information about triggers configured for a repository.
This is a convenience which creates an instance of the
GetRepositoryTriggersRequest.Builder
avoiding the need to create one manually viaGetRepositoryTriggersRequest.builder()
- Parameters:
getRepositoryTriggersRequest
- AConsumer
that will call methods onGetRepositoryTriggersRequest.Builder
to create a request. Represents the input of a get repository triggers operation.- Returns:
- Result of the GetRepositoryTriggers operation returned by the service.
- See Also:
-
listApprovalRuleTemplates
default ListApprovalRuleTemplatesResponse listApprovalRuleTemplates(ListApprovalRuleTemplatesRequest listApprovalRuleTemplatesRequest) throws InvalidMaxResultsException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.
- Parameters:
listApprovalRuleTemplatesRequest
-- Returns:
- Result of the ListApprovalRuleTemplates operation returned by the service.
- See Also:
-
listApprovalRuleTemplates
default ListApprovalRuleTemplatesResponse listApprovalRuleTemplates(Consumer<ListApprovalRuleTemplatesRequest.Builder> listApprovalRuleTemplatesRequest) throws InvalidMaxResultsException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.
This is a convenience which creates an instance of the
ListApprovalRuleTemplatesRequest.Builder
avoiding the need to create one manually viaListApprovalRuleTemplatesRequest.builder()
- Parameters:
listApprovalRuleTemplatesRequest
- AConsumer
that will call methods onListApprovalRuleTemplatesRequest.Builder
to create a request.- Returns:
- Result of the ListApprovalRuleTemplates operation returned by the service.
- See Also:
-
listApprovalRuleTemplatesPaginator
default ListApprovalRuleTemplatesIterable listApprovalRuleTemplatesPaginator(ListApprovalRuleTemplatesRequest listApprovalRuleTemplatesRequest) throws InvalidMaxResultsException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listApprovalRuleTemplates(software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListApprovalRuleTemplatesIterable responses = client.listApprovalRuleTemplatesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListApprovalRuleTemplatesIterable responses = client .listApprovalRuleTemplatesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListApprovalRuleTemplatesIterable responses = client.listApprovalRuleTemplatesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApprovalRuleTemplates(software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesRequest)
operation.- Parameters:
listApprovalRuleTemplatesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApprovalRuleTemplatesPaginator
default ListApprovalRuleTemplatesIterable listApprovalRuleTemplatesPaginator(Consumer<ListApprovalRuleTemplatesRequest.Builder> listApprovalRuleTemplatesRequest) throws InvalidMaxResultsException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listApprovalRuleTemplates(software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListApprovalRuleTemplatesIterable responses = client.listApprovalRuleTemplatesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListApprovalRuleTemplatesIterable responses = client .listApprovalRuleTemplatesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListApprovalRuleTemplatesIterable responses = client.listApprovalRuleTemplatesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApprovalRuleTemplates(software.amazon.awssdk.services.codecommit.model.ListApprovalRuleTemplatesRequest)
operation.
This is a convenience which creates an instance of the
ListApprovalRuleTemplatesRequest.Builder
avoiding the need to create one manually viaListApprovalRuleTemplatesRequest.builder()
- Parameters:
listApprovalRuleTemplatesRequest
- AConsumer
that will call methods onListApprovalRuleTemplatesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAssociatedApprovalRuleTemplatesForRepository
default ListAssociatedApprovalRuleTemplatesForRepositoryResponse listAssociatedApprovalRuleTemplatesForRepository(ListAssociatedApprovalRuleTemplatesForRepositoryRequest listAssociatedApprovalRuleTemplatesForRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Lists all approval rule templates that are associated with a specified repository.
- Parameters:
listAssociatedApprovalRuleTemplatesForRepositoryRequest
-- Returns:
- Result of the ListAssociatedApprovalRuleTemplatesForRepository operation returned by the service.
- See Also:
-
listAssociatedApprovalRuleTemplatesForRepository
default ListAssociatedApprovalRuleTemplatesForRepositoryResponse listAssociatedApprovalRuleTemplatesForRepository(Consumer<ListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder> listAssociatedApprovalRuleTemplatesForRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Lists all approval rule templates that are associated with a specified repository.
This is a convenience which creates an instance of the
ListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder
avoiding the need to create one manually viaListAssociatedApprovalRuleTemplatesForRepositoryRequest.builder()
- Parameters:
listAssociatedApprovalRuleTemplatesForRepositoryRequest
- AConsumer
that will call methods onListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder
to create a request.- Returns:
- Result of the ListAssociatedApprovalRuleTemplatesForRepository operation returned by the service.
- See Also:
-
listAssociatedApprovalRuleTemplatesForRepositoryPaginator
default ListAssociatedApprovalRuleTemplatesForRepositoryIterable listAssociatedApprovalRuleTemplatesForRepositoryPaginator(ListAssociatedApprovalRuleTemplatesForRepositoryRequest listAssociatedApprovalRuleTemplatesForRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listAssociatedApprovalRuleTemplatesForRepository(software.amazon.awssdk.services.codecommit.model.ListAssociatedApprovalRuleTemplatesForRepositoryRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListAssociatedApprovalRuleTemplatesForRepositoryIterable responses = client.listAssociatedApprovalRuleTemplatesForRepositoryPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListAssociatedApprovalRuleTemplatesForRepositoryIterable responses = client .listAssociatedApprovalRuleTemplatesForRepositoryPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListAssociatedApprovalRuleTemplatesForRepositoryResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListAssociatedApprovalRuleTemplatesForRepositoryIterable responses = client.listAssociatedApprovalRuleTemplatesForRepositoryPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssociatedApprovalRuleTemplatesForRepository(software.amazon.awssdk.services.codecommit.model.ListAssociatedApprovalRuleTemplatesForRepositoryRequest)
operation.- Parameters:
listAssociatedApprovalRuleTemplatesForRepositoryRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAssociatedApprovalRuleTemplatesForRepositoryPaginator
default ListAssociatedApprovalRuleTemplatesForRepositoryIterable listAssociatedApprovalRuleTemplatesForRepositoryPaginator(Consumer<ListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder> listAssociatedApprovalRuleTemplatesForRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listAssociatedApprovalRuleTemplatesForRepository(software.amazon.awssdk.services.codecommit.model.ListAssociatedApprovalRuleTemplatesForRepositoryRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListAssociatedApprovalRuleTemplatesForRepositoryIterable responses = client.listAssociatedApprovalRuleTemplatesForRepositoryPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListAssociatedApprovalRuleTemplatesForRepositoryIterable responses = client .listAssociatedApprovalRuleTemplatesForRepositoryPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListAssociatedApprovalRuleTemplatesForRepositoryResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListAssociatedApprovalRuleTemplatesForRepositoryIterable responses = client.listAssociatedApprovalRuleTemplatesForRepositoryPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssociatedApprovalRuleTemplatesForRepository(software.amazon.awssdk.services.codecommit.model.ListAssociatedApprovalRuleTemplatesForRepositoryRequest)
operation.
This is a convenience which creates an instance of the
ListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder
avoiding the need to create one manually viaListAssociatedApprovalRuleTemplatesForRepositoryRequest.builder()
- Parameters:
listAssociatedApprovalRuleTemplatesForRepositoryRequest
- AConsumer
that will call methods onListAssociatedApprovalRuleTemplatesForRepositoryRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBranches
default ListBranchesResponse listBranches(ListBranchesRequest listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException Gets information about one or more branches in a repository.
- Parameters:
listBranchesRequest
- Represents the input of a list branches operation.- Returns:
- Result of the ListBranches operation returned by the service.
- See Also:
-
listBranches
default ListBranchesResponse listBranches(Consumer<ListBranchesRequest.Builder> listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException Gets information about one or more branches in a repository.
This is a convenience which creates an instance of the
ListBranchesRequest.Builder
avoiding the need to create one manually viaListBranchesRequest.builder()
- Parameters:
listBranchesRequest
- AConsumer
that will call methods onListBranchesRequest.Builder
to create a request. Represents the input of a list branches operation.- Returns:
- Result of the ListBranches operation returned by the service.
- See Also:
-
listBranchesPaginator
default ListBranchesIterable listBranchesPaginator(ListBranchesRequest listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListBranchesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation.- Parameters:
listBranchesRequest
- Represents the input of a list branches operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBranchesPaginator
default ListBranchesIterable listBranchesPaginator(Consumer<ListBranchesRequest.Builder> listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListBranchesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation.
This is a convenience which creates an instance of the
ListBranchesRequest.Builder
avoiding the need to create one manually viaListBranchesRequest.builder()
- Parameters:
listBranchesRequest
- AConsumer
that will call methods onListBranchesRequest.Builder
to create a request. Represents the input of a list branches operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFileCommitHistory
default ListFileCommitHistoryResponse listFileCommitHistory(ListFileCommitHistoryRequest listFileCommitHistoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidContinuationTokenException, InvalidMaxResultsException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Retrieves a list of commits and changes to a specified file.
- Parameters:
listFileCommitHistoryRequest
-- Returns:
- Result of the ListFileCommitHistory operation returned by the service.
- See Also:
-
listFileCommitHistory
default ListFileCommitHistoryResponse listFileCommitHistory(Consumer<ListFileCommitHistoryRequest.Builder> listFileCommitHistoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidContinuationTokenException, InvalidMaxResultsException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Retrieves a list of commits and changes to a specified file.
This is a convenience which creates an instance of the
ListFileCommitHistoryRequest.Builder
avoiding the need to create one manually viaListFileCommitHistoryRequest.builder()
- Parameters:
listFileCommitHistoryRequest
- AConsumer
that will call methods onListFileCommitHistoryRequest.Builder
to create a request.- Returns:
- Result of the ListFileCommitHistory operation returned by the service.
- See Also:
-
listFileCommitHistoryPaginator
default ListFileCommitHistoryIterable listFileCommitHistoryPaginator(ListFileCommitHistoryRequest listFileCommitHistoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidContinuationTokenException, InvalidMaxResultsException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listFileCommitHistory(software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListFileCommitHistoryIterable responses = client.listFileCommitHistoryPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListFileCommitHistoryIterable responses = client .listFileCommitHistoryPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListFileCommitHistoryIterable responses = client.listFileCommitHistoryPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFileCommitHistory(software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryRequest)
operation.- Parameters:
listFileCommitHistoryRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFileCommitHistoryPaginator
default ListFileCommitHistoryIterable listFileCommitHistoryPaginator(Consumer<ListFileCommitHistoryRequest.Builder> listFileCommitHistoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidContinuationTokenException, InvalidMaxResultsException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listFileCommitHistory(software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListFileCommitHistoryIterable responses = client.listFileCommitHistoryPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListFileCommitHistoryIterable responses = client .listFileCommitHistoryPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListFileCommitHistoryIterable responses = client.listFileCommitHistoryPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFileCommitHistory(software.amazon.awssdk.services.codecommit.model.ListFileCommitHistoryRequest)
operation.
This is a convenience which creates an instance of the
ListFileCommitHistoryRequest.Builder
avoiding the need to create one manually viaListFileCommitHistoryRequest.builder()
- Parameters:
listFileCommitHistoryRequest
- AConsumer
that will call methods onListFileCommitHistoryRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPullRequests
default ListPullRequestsResponse listPullRequests(ListPullRequestsRequest listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
- Parameters:
listPullRequestsRequest
-- Returns:
- Result of the ListPullRequests operation returned by the service.
- See Also:
-
listPullRequests
default ListPullRequestsResponse listPullRequests(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
This is a convenience which creates an instance of the
ListPullRequestsRequest.Builder
avoiding the need to create one manually viaListPullRequestsRequest.builder()
- Parameters:
listPullRequestsRequest
- AConsumer
that will call methods onListPullRequestsRequest.Builder
to create a request.- Returns:
- Result of the ListPullRequests operation returned by the service.
- See Also:
-
listPullRequestsPaginator
default ListPullRequestsIterable listPullRequestsPaginator(ListPullRequestsRequest listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client .listPullRequestsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListPullRequestsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.- Parameters:
listPullRequestsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPullRequestsPaginator
default ListPullRequestsIterable listPullRequestsPaginator(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client .listPullRequestsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListPullRequestsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.
This is a convenience which creates an instance of the
ListPullRequestsRequest.Builder
avoiding the need to create one manually viaListPullRequestsRequest.builder()
- Parameters:
listPullRequestsRequest
- AConsumer
that will call methods onListPullRequestsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositories
default ListRepositoriesResponse listRepositories(ListRepositoriesRequest listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException Gets information about one or more repositories.
- Parameters:
listRepositoriesRequest
- Represents the input of a list repositories operation.- Returns:
- Result of the ListRepositories operation returned by the service.
- See Also:
-
listRepositories
default ListRepositoriesResponse listRepositories(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException Gets information about one or more repositories.
This is a convenience which creates an instance of the
ListRepositoriesRequest.Builder
avoiding the need to create one manually viaListRepositoriesRequest.builder()
- Parameters:
listRepositoriesRequest
- AConsumer
that will call methods onListRepositoriesRequest.Builder
to create a request. Represents the input of a list repositories operation.- Returns:
- Result of the ListRepositories operation returned by the service.
- See Also:
-
listRepositories
default ListRepositoriesResponse listRepositories() throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitExceptionGets information about one or more repositories.
- Returns:
- Result of the ListRepositories operation returned by the service.
- See Also:
-
listRepositoriesPaginator
default ListRepositoriesIterable listRepositoriesPaginator() throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitExceptionThis is a variant of
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client .listRepositoriesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositoriesPaginator
default ListRepositoriesIterable listRepositoriesPaginator(ListRepositoriesRequest listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client .listRepositoriesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.- Parameters:
listRepositoriesRequest
- Represents the input of a list repositories operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositoriesPaginator
default ListRepositoriesIterable listRepositoriesPaginator(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client .listRepositoriesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.
This is a convenience which creates an instance of the
ListRepositoriesRequest.Builder
avoiding the need to create one manually viaListRepositoriesRequest.builder()
- Parameters:
listRepositoriesRequest
- AConsumer
that will call methods onListRepositoriesRequest.Builder
to create a request. Represents the input of a list repositories operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositoriesForApprovalRuleTemplate
default ListRepositoriesForApprovalRuleTemplateResponse listRepositoriesForApprovalRuleTemplate(ListRepositoriesForApprovalRuleTemplateRequest listRepositoriesForApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Lists all repositories associated with the specified approval rule template.
- Parameters:
listRepositoriesForApprovalRuleTemplateRequest
-- Returns:
- Result of the ListRepositoriesForApprovalRuleTemplate operation returned by the service.
- See Also:
-
listRepositoriesForApprovalRuleTemplate
default ListRepositoriesForApprovalRuleTemplateResponse listRepositoriesForApprovalRuleTemplate(Consumer<ListRepositoriesForApprovalRuleTemplateRequest.Builder> listRepositoriesForApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Lists all repositories associated with the specified approval rule template.
This is a convenience which creates an instance of the
ListRepositoriesForApprovalRuleTemplateRequest.Builder
avoiding the need to create one manually viaListRepositoriesForApprovalRuleTemplateRequest.builder()
- Parameters:
listRepositoriesForApprovalRuleTemplateRequest
- AConsumer
that will call methods onListRepositoriesForApprovalRuleTemplateRequest.Builder
to create a request.- Returns:
- Result of the ListRepositoriesForApprovalRuleTemplate operation returned by the service.
- See Also:
-
listRepositoriesForApprovalRuleTemplatePaginator
default ListRepositoriesForApprovalRuleTemplateIterable listRepositoriesForApprovalRuleTemplatePaginator(ListRepositoriesForApprovalRuleTemplateRequest listRepositoriesForApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listRepositoriesForApprovalRuleTemplate(software.amazon.awssdk.services.codecommit.model.ListRepositoriesForApprovalRuleTemplateRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesForApprovalRuleTemplateIterable responses = client.listRepositoriesForApprovalRuleTemplatePaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesForApprovalRuleTemplateIterable responses = client .listRepositoriesForApprovalRuleTemplatePaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesForApprovalRuleTemplateResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesForApprovalRuleTemplateIterable responses = client.listRepositoriesForApprovalRuleTemplatePaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositoriesForApprovalRuleTemplate(software.amazon.awssdk.services.codecommit.model.ListRepositoriesForApprovalRuleTemplateRequest)
operation.- Parameters:
listRepositoriesForApprovalRuleTemplateRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositoriesForApprovalRuleTemplatePaginator
default ListRepositoriesForApprovalRuleTemplateIterable listRepositoriesForApprovalRuleTemplatePaginator(Consumer<ListRepositoriesForApprovalRuleTemplateRequest.Builder> listRepositoriesForApprovalRuleTemplateRequest) throws ApprovalRuleTemplateNameRequiredException, InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException This is a variant of
listRepositoriesForApprovalRuleTemplate(software.amazon.awssdk.services.codecommit.model.ListRepositoriesForApprovalRuleTemplateRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesForApprovalRuleTemplateIterable responses = client.listRepositoriesForApprovalRuleTemplatePaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesForApprovalRuleTemplateIterable responses = client .listRepositoriesForApprovalRuleTemplatePaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesForApprovalRuleTemplateResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codecommit.paginators.ListRepositoriesForApprovalRuleTemplateIterable responses = client.listRepositoriesForApprovalRuleTemplatePaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositoriesForApprovalRuleTemplate(software.amazon.awssdk.services.codecommit.model.ListRepositoriesForApprovalRuleTemplateRequest)
operation.
This is a convenience which creates an instance of the
ListRepositoriesForApprovalRuleTemplateRequest.Builder
avoiding the need to create one manually viaListRepositoriesForApprovalRuleTemplateRequest.builder()
- Parameters:
listRepositoriesForApprovalRuleTemplateRequest
- AConsumer
that will call methods onListRepositoriesForApprovalRuleTemplateRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws RepositoryDoesNotExistException, InvalidRepositoryNameException, ResourceArnRequiredException, InvalidResourceArnException, AwsServiceException, SdkClientException, CodeCommitException Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws RepositoryDoesNotExistException, InvalidRepositoryNameException, ResourceArnRequiredException, InvalidResourceArnException, AwsServiceException, SdkClientException, CodeCommitException Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
mergeBranchesByFastForward
default MergeBranchesByFastForwardResponse mergeBranchesByFastForward(MergeBranchesByFastForwardRequest mergeBranchesByFastForwardRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidTargetBranchException, InvalidBranchNameException, BranchNameRequiredException, BranchNameIsTagNameException, BranchDoesNotExistException, ManualMergeRequiredException, ConcurrentReferenceUpdateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Merges two branches using the fast-forward merge strategy.
- Parameters:
mergeBranchesByFastForwardRequest
-- Returns:
- Result of the MergeBranchesByFastForward operation returned by the service.
- See Also:
-
mergeBranchesByFastForward
default MergeBranchesByFastForwardResponse mergeBranchesByFastForward(Consumer<MergeBranchesByFastForwardRequest.Builder> mergeBranchesByFastForwardRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidTargetBranchException, InvalidBranchNameException, BranchNameRequiredException, BranchNameIsTagNameException, BranchDoesNotExistException, ManualMergeRequiredException, ConcurrentReferenceUpdateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Merges two branches using the fast-forward merge strategy.
This is a convenience which creates an instance of the
MergeBranchesByFastForwardRequest.Builder
avoiding the need to create one manually viaMergeBranchesByFastForwardRequest.builder()
- Parameters:
mergeBranchesByFastForwardRequest
- AConsumer
that will call methods onMergeBranchesByFastForwardRequest.Builder
to create a request.- Returns:
- Result of the MergeBranchesByFastForward operation returned by the service.
- See Also:
-
mergeBranchesBySquash
default MergeBranchesBySquashResponse mergeBranchesBySquash(MergeBranchesBySquashRequest mergeBranchesBySquashRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidTargetBranchException, InvalidBranchNameException, BranchNameRequiredException, BranchNameIsTagNameException, BranchDoesNotExistException, ManualMergeRequiredException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, MaximumConflictResolutionEntriesExceededException, MultipleConflictResolutionEntriesException, ReplacementTypeRequiredException, InvalidReplacementTypeException, ReplacementContentRequiredException, InvalidReplacementContentException, PathRequiredException, InvalidPathException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, ConcurrentReferenceUpdateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Merges two branches using the squash merge strategy.
- Parameters:
mergeBranchesBySquashRequest
-- Returns:
- Result of the MergeBranchesBySquash operation returned by the service.
- See Also:
-
mergeBranchesBySquash
default MergeBranchesBySquashResponse mergeBranchesBySquash(Consumer<MergeBranchesBySquashRequest.Builder> mergeBranchesBySquashRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidTargetBranchException, InvalidBranchNameException, BranchNameRequiredException, BranchNameIsTagNameException, BranchDoesNotExistException, ManualMergeRequiredException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, MaximumConflictResolutionEntriesExceededException, MultipleConflictResolutionEntriesException, ReplacementTypeRequiredException, InvalidReplacementTypeException, ReplacementContentRequiredException, InvalidReplacementContentException, PathRequiredException, InvalidPathException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, ConcurrentReferenceUpdateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Merges two branches using the squash merge strategy.
This is a convenience which creates an instance of the
MergeBranchesBySquashRequest.Builder
avoiding the need to create one manually viaMergeBranchesBySquashRequest.builder()
- Parameters:
mergeBranchesBySquashRequest
- AConsumer
that will call methods onMergeBranchesBySquashRequest.Builder
to create a request.- Returns:
- Result of the MergeBranchesBySquash operation returned by the service.
- See Also:
-
mergeBranchesByThreeWay
default MergeBranchesByThreeWayResponse mergeBranchesByThreeWay(MergeBranchesByThreeWayRequest mergeBranchesByThreeWayRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidTargetBranchException, InvalidBranchNameException, BranchNameRequiredException, BranchNameIsTagNameException, BranchDoesNotExistException, ManualMergeRequiredException, ConcurrentReferenceUpdateException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, MaximumConflictResolutionEntriesExceededException, MultipleConflictResolutionEntriesException, ReplacementTypeRequiredException, InvalidReplacementTypeException, ReplacementContentRequiredException, InvalidReplacementContentException, PathRequiredException, InvalidPathException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Merges two specified branches using the three-way merge strategy.
- Parameters:
mergeBranchesByThreeWayRequest
-- Returns:
- Result of the MergeBranchesByThreeWay operation returned by the service.
- See Also:
-
mergeBranchesByThreeWay
default MergeBranchesByThreeWayResponse mergeBranchesByThreeWay(Consumer<MergeBranchesByThreeWayRequest.Builder> mergeBranchesByThreeWayRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, TipsDivergenceExceededException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidTargetBranchException, InvalidBranchNameException, BranchNameRequiredException, BranchNameIsTagNameException, BranchDoesNotExistException, ManualMergeRequiredException, ConcurrentReferenceUpdateException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, MaximumConflictResolutionEntriesExceededException, MultipleConflictResolutionEntriesException, ReplacementTypeRequiredException, InvalidReplacementTypeException, ReplacementContentRequiredException, InvalidReplacementContentException, PathRequiredException, InvalidPathException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, FileModeRequiredException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Merges two specified branches using the three-way merge strategy.
This is a convenience which creates an instance of the
MergeBranchesByThreeWayRequest.Builder
avoiding the need to create one manually viaMergeBranchesByThreeWayRequest.builder()
- Parameters:
mergeBranchesByThreeWayRequest
- AConsumer
that will call methods onMergeBranchesByThreeWayRequest.Builder
to create a request.- Returns:
- Result of the MergeBranchesByThreeWay operation returned by the service.
- See Also:
-
mergePullRequestByFastForward
default MergePullRequestByFastForwardResponse mergePullRequestByFastForward(MergePullRequestByFastForwardRequest mergePullRequestByFastForwardRequest) throws ManualMergeRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TipOfSourceReferenceIsDifferentException, ReferenceDoesNotExistException, InvalidCommitIdException, RepositoryNotAssociatedWithPullRequestException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ConcurrentReferenceUpdateException, PullRequestApprovalRulesNotSatisfiedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.
- Parameters:
mergePullRequestByFastForwardRequest
-- Returns:
- Result of the MergePullRequestByFastForward operation returned by the service.
- See Also:
-
mergePullRequestByFastForward
default MergePullRequestByFastForwardResponse mergePullRequestByFastForward(Consumer<MergePullRequestByFastForwardRequest.Builder> mergePullRequestByFastForwardRequest) throws ManualMergeRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TipOfSourceReferenceIsDifferentException, ReferenceDoesNotExistException, InvalidCommitIdException, RepositoryNotAssociatedWithPullRequestException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ConcurrentReferenceUpdateException, PullRequestApprovalRulesNotSatisfiedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.
This is a convenience which creates an instance of the
MergePullRequestByFastForwardRequest.Builder
avoiding the need to create one manually viaMergePullRequestByFastForwardRequest.builder()
- Parameters:
mergePullRequestByFastForwardRequest
- AConsumer
that will call methods onMergePullRequestByFastForwardRequest.Builder
to create a request.- Returns:
- Result of the MergePullRequestByFastForward operation returned by the service.
- See Also:
-
mergePullRequestBySquash
default MergePullRequestBySquashResponse mergePullRequestBySquash(MergePullRequestBySquashRequest mergePullRequestBySquashRequest) throws PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, InvalidPullRequestIdException, InvalidCommitIdException, ManualMergeRequiredException, TipOfSourceReferenceIsDifferentException, TipsDivergenceExceededException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, ReplacementTypeRequiredException, InvalidReplacementTypeException, MultipleConflictResolutionEntriesException, ReplacementContentRequiredException, MaximumConflictResolutionEntriesExceededException, ConcurrentReferenceUpdateException, PathRequiredException, InvalidPathException, InvalidFileModeException, InvalidReplacementContentException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, RepositoryNotAssociatedWithPullRequestException, PullRequestApprovalRulesNotSatisfiedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.
- Parameters:
mergePullRequestBySquashRequest
-- Returns:
- Result of the MergePullRequestBySquash operation returned by the service.
- See Also:
-
mergePullRequestBySquash
default MergePullRequestBySquashResponse mergePullRequestBySquash(Consumer<MergePullRequestBySquashRequest.Builder> mergePullRequestBySquashRequest) throws PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, InvalidPullRequestIdException, InvalidCommitIdException, ManualMergeRequiredException, TipOfSourceReferenceIsDifferentException, TipsDivergenceExceededException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, ReplacementTypeRequiredException, InvalidReplacementTypeException, MultipleConflictResolutionEntriesException, ReplacementContentRequiredException, MaximumConflictResolutionEntriesExceededException, ConcurrentReferenceUpdateException, PathRequiredException, InvalidPathException, InvalidFileModeException, InvalidReplacementContentException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, RepositoryNotAssociatedWithPullRequestException, PullRequestApprovalRulesNotSatisfiedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.
This is a convenience which creates an instance of the
MergePullRequestBySquashRequest.Builder
avoiding the need to create one manually viaMergePullRequestBySquashRequest.builder()
- Parameters:
mergePullRequestBySquashRequest
- AConsumer
that will call methods onMergePullRequestBySquashRequest.Builder
to create a request.- Returns:
- Result of the MergePullRequestBySquash operation returned by the service.
- See Also:
-
mergePullRequestByThreeWay
default MergePullRequestByThreeWayResponse mergePullRequestByThreeWay(MergePullRequestByThreeWayRequest mergePullRequestByThreeWayRequest) throws PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, InvalidPullRequestIdException, InvalidCommitIdException, ManualMergeRequiredException, TipOfSourceReferenceIsDifferentException, TipsDivergenceExceededException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, ReplacementTypeRequiredException, InvalidReplacementTypeException, MultipleConflictResolutionEntriesException, ReplacementContentRequiredException, MaximumConflictResolutionEntriesExceededException, PathRequiredException, InvalidPathException, InvalidFileModeException, InvalidReplacementContentException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, RepositoryNotAssociatedWithPullRequestException, ConcurrentReferenceUpdateException, PullRequestApprovalRulesNotSatisfiedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.
- Parameters:
mergePullRequestByThreeWayRequest
-- Returns:
- Result of the MergePullRequestByThreeWay operation returned by the service.
- See Also:
-
mergePullRequestByThreeWay
default MergePullRequestByThreeWayResponse mergePullRequestByThreeWay(Consumer<MergePullRequestByThreeWayRequest.Builder> mergePullRequestByThreeWayRequest) throws PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, InvalidPullRequestIdException, InvalidCommitIdException, ManualMergeRequiredException, TipOfSourceReferenceIsDifferentException, TipsDivergenceExceededException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidConflictDetailLevelException, InvalidConflictResolutionStrategyException, InvalidConflictResolutionException, ReplacementTypeRequiredException, InvalidReplacementTypeException, MultipleConflictResolutionEntriesException, ReplacementContentRequiredException, MaximumConflictResolutionEntriesExceededException, PathRequiredException, InvalidPathException, InvalidFileModeException, InvalidReplacementContentException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, MaximumFileContentToLoadExceededException, MaximumItemsToCompareExceededException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, RepositoryNotAssociatedWithPullRequestException, ConcurrentReferenceUpdateException, PullRequestApprovalRulesNotSatisfiedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.
This is a convenience which creates an instance of the
MergePullRequestByThreeWayRequest.Builder
avoiding the need to create one manually viaMergePullRequestByThreeWayRequest.builder()
- Parameters:
mergePullRequestByThreeWayRequest
- AConsumer
that will call methods onMergePullRequestByThreeWayRequest.Builder
to create a request.- Returns:
- Result of the MergePullRequestByThreeWay operation returned by the service.
- See Also:
-
overridePullRequestApprovalRules
default OverridePullRequestApprovalRulesResponse overridePullRequestApprovalRules(OverridePullRequestApprovalRulesRequest overridePullRequestApprovalRulesRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, InvalidOverrideStatusException, OverrideStatusRequiredException, OverrideAlreadySetException, RevisionNotCurrentException, PullRequestAlreadyClosedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Sets aside (overrides) all approval rule requirements for a specified pull request.
- Parameters:
overridePullRequestApprovalRulesRequest
-- Returns:
- Result of the OverridePullRequestApprovalRules operation returned by the service.
- See Also:
-
overridePullRequestApprovalRules
default OverridePullRequestApprovalRulesResponse overridePullRequestApprovalRules(Consumer<OverridePullRequestApprovalRulesRequest.Builder> overridePullRequestApprovalRulesRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, InvalidOverrideStatusException, OverrideStatusRequiredException, OverrideAlreadySetException, RevisionNotCurrentException, PullRequestAlreadyClosedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Sets aside (overrides) all approval rule requirements for a specified pull request.
This is a convenience which creates an instance of the
OverridePullRequestApprovalRulesRequest.Builder
avoiding the need to create one manually viaOverridePullRequestApprovalRulesRequest.builder()
- Parameters:
overridePullRequestApprovalRulesRequest
- AConsumer
that will call methods onOverridePullRequestApprovalRulesRequest.Builder
to create a request.- Returns:
- Result of the OverridePullRequestApprovalRules operation returned by the service.
- See Also:
-
postCommentForComparedCommit
default PostCommentForComparedCommitResponse postCommentForComparedCommit(PostCommentForComparedCommitRequest postCommentForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, BeforeCommitIdAndAfterCommitIdAreSameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException Posts a comment on the comparison between two commits.
- Parameters:
postCommentForComparedCommitRequest
-- Returns:
- Result of the PostCommentForComparedCommit operation returned by the service.
- See Also:
-
postCommentForComparedCommit
default PostCommentForComparedCommitResponse postCommentForComparedCommit(Consumer<PostCommentForComparedCommitRequest.Builder> postCommentForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, BeforeCommitIdAndAfterCommitIdAreSameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException Posts a comment on the comparison between two commits.
This is a convenience which creates an instance of the
PostCommentForComparedCommitRequest.Builder
avoiding the need to create one manually viaPostCommentForComparedCommitRequest.builder()
- Parameters:
postCommentForComparedCommitRequest
- AConsumer
that will call methods onPostCommentForComparedCommitRequest.Builder
to create a request.- Returns:
- Result of the PostCommentForComparedCommit operation returned by the service.
- See Also:
-
postCommentForPullRequest
default PostCommentForPullRequestResponse postCommentForPullRequest(PostCommentForPullRequestRequest postCommentForPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, RepositoryNotAssociatedWithPullRequestException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, BeforeCommitIdAndAfterCommitIdAreSameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException Posts a comment on a pull request.
- Parameters:
postCommentForPullRequestRequest
-- Returns:
- Result of the PostCommentForPullRequest operation returned by the service.
- See Also:
-
postCommentForPullRequest
default PostCommentForPullRequestResponse postCommentForPullRequest(Consumer<PostCommentForPullRequestRequest.Builder> postCommentForPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, RepositoryNotAssociatedWithPullRequestException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, BeforeCommitIdAndAfterCommitIdAreSameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException Posts a comment on a pull request.
This is a convenience which creates an instance of the
PostCommentForPullRequestRequest.Builder
avoiding the need to create one manually viaPostCommentForPullRequestRequest.builder()
- Parameters:
postCommentForPullRequestRequest
- AConsumer
that will call methods onPostCommentForPullRequestRequest.Builder
to create a request.- Returns:
- Result of the PostCommentForPullRequest operation returned by the service.
- See Also:
-
postCommentReply
default PostCommentReplyResponse postCommentReply(PostCommentReplyRequest postCommentReplyRequest) throws ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, AwsServiceException, SdkClientException, CodeCommitException Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
- Parameters:
postCommentReplyRequest
-- Returns:
- Result of the PostCommentReply operation returned by the service.
- See Also:
-
postCommentReply
default PostCommentReplyResponse postCommentReply(Consumer<PostCommentReplyRequest.Builder> postCommentReplyRequest) throws ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, AwsServiceException, SdkClientException, CodeCommitException Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
This is a convenience which creates an instance of the
PostCommentReplyRequest.Builder
avoiding the need to create one manually viaPostCommentReplyRequest.builder()
- Parameters:
postCommentReplyRequest
- AConsumer
that will call methods onPostCommentReplyRequest.Builder
to create a request.- Returns:
- Result of the PostCommentReply operation returned by the service.
- See Also:
-
putCommentReaction
default PutCommentReactionResponse putCommentReaction(PutCommentReactionRequest putCommentReactionRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, InvalidReactionValueException, ReactionValueRequiredException, ReactionLimitExceededException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.
- Parameters:
putCommentReactionRequest
-- Returns:
- Result of the PutCommentReaction operation returned by the service.
- See Also:
-
putCommentReaction
default PutCommentReactionResponse putCommentReaction(Consumer<PutCommentReactionRequest.Builder> putCommentReactionRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, InvalidReactionValueException, ReactionValueRequiredException, ReactionLimitExceededException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.
This is a convenience which creates an instance of the
PutCommentReactionRequest.Builder
avoiding the need to create one manually viaPutCommentReactionRequest.builder()
- Parameters:
putCommentReactionRequest
- AConsumer
that will call methods onPutCommentReactionRequest.Builder
to create a request.- Returns:
- Result of the PutCommentReaction operation returned by the service.
- See Also:
-
putFile
default PutFileResponse putFile(PutFileRequest putFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, FileContentRequiredException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, PathRequiredException, InvalidPathException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidDeletionParameterException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, SameFileContentException, FileNameConflictsWithDirectoryNameException, DirectoryNameConflictsWithFileNameException, FilePathConflictsWithSubmodulePathException, AwsServiceException, SdkClientException, CodeCommitException Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.
- Parameters:
putFileRequest
-- Returns:
- Result of the PutFile operation returned by the service.
- See Also:
-
putFile
default PutFileResponse putFile(Consumer<PutFileRequest.Builder> putFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, FileContentRequiredException, FileContentSizeLimitExceededException, FolderContentSizeLimitExceededException, PathRequiredException, InvalidPathException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidDeletionParameterException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, SameFileContentException, FileNameConflictsWithDirectoryNameException, DirectoryNameConflictsWithFileNameException, FilePathConflictsWithSubmodulePathException, AwsServiceException, SdkClientException, CodeCommitException Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.
This is a convenience which creates an instance of the
PutFileRequest.Builder
avoiding the need to create one manually viaPutFileRequest.builder()
- Parameters:
putFileRequest
- AConsumer
that will call methods onPutFileRequest.Builder
to create a request.- Returns:
- Result of the PutFile operation returned by the service.
- See Also:
-
putRepositoryTriggers
default PutRepositoryTriggersResponse putRepositoryTriggers(PutRepositoryTriggersRequest putRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Replaces all triggers for a repository. Used to create or delete triggers.
- Parameters:
putRepositoryTriggersRequest
- Represents the input of a put repository triggers operation.- Returns:
- Result of the PutRepositoryTriggers operation returned by the service.
- See Also:
-
putRepositoryTriggers
default PutRepositoryTriggersResponse putRepositoryTriggers(Consumer<PutRepositoryTriggersRequest.Builder> putRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Replaces all triggers for a repository. Used to create or delete triggers.
This is a convenience which creates an instance of the
PutRepositoryTriggersRequest.Builder
avoiding the need to create one manually viaPutRepositoryTriggersRequest.builder()
- Parameters:
putRepositoryTriggersRequest
- AConsumer
that will call methods onPutRepositoryTriggersRequest.Builder
to create a request. Represents the input of a put repository triggers operation.- Returns:
- Result of the PutRepositoryTriggers operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws RepositoryDoesNotExistException, InvalidRepositoryNameException, ResourceArnRequiredException, InvalidResourceArnException, TagsMapRequiredException, InvalidTagsMapException, TooManyTagsException, InvalidSystemTagUsageException, TagPolicyException, AwsServiceException, SdkClientException, CodeCommitException Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws RepositoryDoesNotExistException, InvalidRepositoryNameException, ResourceArnRequiredException, InvalidResourceArnException, TagsMapRequiredException, InvalidTagsMapException, TooManyTagsException, InvalidSystemTagUsageException, TagPolicyException, AwsServiceException, SdkClientException, CodeCommitException Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
testRepositoryTriggers
default TestRepositoryTriggersResponse testRepositoryTriggers(TestRepositoryTriggersRequest testRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.
- Parameters:
testRepositoryTriggersRequest
- Represents the input of a test repository triggers operation.- Returns:
- Result of the TestRepositoryTriggers operation returned by the service.
- See Also:
-
testRepositoryTriggers
default TestRepositoryTriggersResponse testRepositoryTriggers(Consumer<TestRepositoryTriggersRequest.Builder> testRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.
This is a convenience which creates an instance of the
TestRepositoryTriggersRequest.Builder
avoiding the need to create one manually viaTestRepositoryTriggersRequest.builder()
- Parameters:
testRepositoryTriggersRequest
- AConsumer
that will call methods onTestRepositoryTriggersRequest.Builder
to create a request. Represents the input of a test repository triggers operation.- Returns:
- Result of the TestRepositoryTriggers operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws RepositoryDoesNotExistException, InvalidRepositoryNameException, ResourceArnRequiredException, InvalidResourceArnException, TagKeysListRequiredException, InvalidTagKeysListException, TooManyTagsException, InvalidSystemTagUsageException, TagPolicyException, AwsServiceException, SdkClientException, CodeCommitException Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws RepositoryDoesNotExistException, InvalidRepositoryNameException, ResourceArnRequiredException, InvalidResourceArnException, TagKeysListRequiredException, InvalidTagKeysListException, TooManyTagsException, InvalidSystemTagUsageException, TagPolicyException, AwsServiceException, SdkClientException, CodeCommitException Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateApprovalRuleTemplateContent
default UpdateApprovalRuleTemplateContentResponse updateApprovalRuleTemplateContent(UpdateApprovalRuleTemplateContentRequest updateApprovalRuleTemplateContentRequest) throws InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameRequiredException, ApprovalRuleTemplateDoesNotExistException, InvalidApprovalRuleTemplateContentException, InvalidRuleContentSha256Exception, ApprovalRuleTemplateContentRequiredException, AwsServiceException, SdkClientException, CodeCommitException Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.
- Parameters:
updateApprovalRuleTemplateContentRequest
-- Returns:
- Result of the UpdateApprovalRuleTemplateContent operation returned by the service.
- See Also:
-
updateApprovalRuleTemplateContent
default UpdateApprovalRuleTemplateContentResponse updateApprovalRuleTemplateContent(Consumer<UpdateApprovalRuleTemplateContentRequest.Builder> updateApprovalRuleTemplateContentRequest) throws InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameRequiredException, ApprovalRuleTemplateDoesNotExistException, InvalidApprovalRuleTemplateContentException, InvalidRuleContentSha256Exception, ApprovalRuleTemplateContentRequiredException, AwsServiceException, SdkClientException, CodeCommitException Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.
This is a convenience which creates an instance of the
UpdateApprovalRuleTemplateContentRequest.Builder
avoiding the need to create one manually viaUpdateApprovalRuleTemplateContentRequest.builder()
- Parameters:
updateApprovalRuleTemplateContentRequest
- AConsumer
that will call methods onUpdateApprovalRuleTemplateContentRequest.Builder
to create a request.- Returns:
- Result of the UpdateApprovalRuleTemplateContent operation returned by the service.
- See Also:
-
updateApprovalRuleTemplateDescription
default UpdateApprovalRuleTemplateDescriptionResponse updateApprovalRuleTemplateDescription(UpdateApprovalRuleTemplateDescriptionRequest updateApprovalRuleTemplateDescriptionRequest) throws InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameRequiredException, ApprovalRuleTemplateDoesNotExistException, InvalidApprovalRuleTemplateDescriptionException, AwsServiceException, SdkClientException, CodeCommitException Updates the description for a specified approval rule template.
- Parameters:
updateApprovalRuleTemplateDescriptionRequest
-- Returns:
- Result of the UpdateApprovalRuleTemplateDescription operation returned by the service.
- See Also:
-
updateApprovalRuleTemplateDescription
default UpdateApprovalRuleTemplateDescriptionResponse updateApprovalRuleTemplateDescription(Consumer<UpdateApprovalRuleTemplateDescriptionRequest.Builder> updateApprovalRuleTemplateDescriptionRequest) throws InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameRequiredException, ApprovalRuleTemplateDoesNotExistException, InvalidApprovalRuleTemplateDescriptionException, AwsServiceException, SdkClientException, CodeCommitException Updates the description for a specified approval rule template.
This is a convenience which creates an instance of the
UpdateApprovalRuleTemplateDescriptionRequest.Builder
avoiding the need to create one manually viaUpdateApprovalRuleTemplateDescriptionRequest.builder()
- Parameters:
updateApprovalRuleTemplateDescriptionRequest
- AConsumer
that will call methods onUpdateApprovalRuleTemplateDescriptionRequest.Builder
to create a request.- Returns:
- Result of the UpdateApprovalRuleTemplateDescription operation returned by the service.
- See Also:
-
updateApprovalRuleTemplateName
default UpdateApprovalRuleTemplateNameResponse updateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest updateApprovalRuleTemplateNameRequest) throws InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateNameAlreadyExistsException, AwsServiceException, SdkClientException, CodeCommitException Updates the name of a specified approval rule template.
- Parameters:
updateApprovalRuleTemplateNameRequest
-- Returns:
- Result of the UpdateApprovalRuleTemplateName operation returned by the service.
- See Also:
-
updateApprovalRuleTemplateName
default UpdateApprovalRuleTemplateNameResponse updateApprovalRuleTemplateName(Consumer<UpdateApprovalRuleTemplateNameRequest.Builder> updateApprovalRuleTemplateNameRequest) throws InvalidApprovalRuleTemplateNameException, ApprovalRuleTemplateNameRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateNameAlreadyExistsException, AwsServiceException, SdkClientException, CodeCommitException Updates the name of a specified approval rule template.
This is a convenience which creates an instance of the
UpdateApprovalRuleTemplateNameRequest.Builder
avoiding the need to create one manually viaUpdateApprovalRuleTemplateNameRequest.builder()
- Parameters:
updateApprovalRuleTemplateNameRequest
- AConsumer
that will call methods onUpdateApprovalRuleTemplateNameRequest.Builder
to create a request.- Returns:
- Result of the UpdateApprovalRuleTemplateName operation returned by the service.
- See Also:
-
updateComment
default UpdateCommentResponse updateComment(UpdateCommentRequest updateCommentRequest) throws CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentNotCreatedByCallerException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Replaces the contents of a comment.
- Parameters:
updateCommentRequest
-- Returns:
- Result of the UpdateComment operation returned by the service.
- See Also:
-
updateComment
default UpdateCommentResponse updateComment(Consumer<UpdateCommentRequest.Builder> updateCommentRequest) throws CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentNotCreatedByCallerException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException Replaces the contents of a comment.
This is a convenience which creates an instance of the
UpdateCommentRequest.Builder
avoiding the need to create one manually viaUpdateCommentRequest.builder()
- Parameters:
updateCommentRequest
- AConsumer
that will call methods onUpdateCommentRequest.Builder
to create a request.- Returns:
- Result of the UpdateComment operation returned by the service.
- See Also:
-
updateDefaultBranch
default UpdateDefaultBranchResponse updateDefaultBranch(UpdateDefaultBranchRequest updateDefaultBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
- Parameters:
updateDefaultBranchRequest
- Represents the input of an update default branch operation.- Returns:
- Result of the UpdateDefaultBranch operation returned by the service.
- See Also:
-
updateDefaultBranch
default UpdateDefaultBranchResponse updateDefaultBranch(Consumer<UpdateDefaultBranchRequest.Builder> updateDefaultBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
This is a convenience which creates an instance of the
UpdateDefaultBranchRequest.Builder
avoiding the need to create one manually viaUpdateDefaultBranchRequest.builder()
- Parameters:
updateDefaultBranchRequest
- AConsumer
that will call methods onUpdateDefaultBranchRequest.Builder
to create a request. Represents the input of an update default branch operation.- Returns:
- Result of the UpdateDefaultBranch operation returned by the service.
- See Also:
-
updatePullRequestApprovalRuleContent
default UpdatePullRequestApprovalRuleContentResponse updatePullRequestApprovalRuleContent(UpdatePullRequestApprovalRuleContentRequest updatePullRequestApprovalRuleContentRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, PullRequestAlreadyClosedException, ApprovalRuleNameRequiredException, InvalidApprovalRuleNameException, ApprovalRuleDoesNotExistException, InvalidRuleContentSha256Exception, ApprovalRuleContentRequiredException, InvalidApprovalRuleContentException, CannotModifyApprovalRuleFromTemplateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.
- Parameters:
updatePullRequestApprovalRuleContentRequest
-- Returns:
- Result of the UpdatePullRequestApprovalRuleContent operation returned by the service.
- See Also:
-
updatePullRequestApprovalRuleContent
default UpdatePullRequestApprovalRuleContentResponse updatePullRequestApprovalRuleContent(Consumer<UpdatePullRequestApprovalRuleContentRequest.Builder> updatePullRequestApprovalRuleContentRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, PullRequestAlreadyClosedException, ApprovalRuleNameRequiredException, InvalidApprovalRuleNameException, ApprovalRuleDoesNotExistException, InvalidRuleContentSha256Exception, ApprovalRuleContentRequiredException, InvalidApprovalRuleContentException, CannotModifyApprovalRuleFromTemplateException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.
This is a convenience which creates an instance of the
UpdatePullRequestApprovalRuleContentRequest.Builder
avoiding the need to create one manually viaUpdatePullRequestApprovalRuleContentRequest.builder()
- Parameters:
updatePullRequestApprovalRuleContentRequest
- AConsumer
that will call methods onUpdatePullRequestApprovalRuleContentRequest.Builder
to create a request.- Returns:
- Result of the UpdatePullRequestApprovalRuleContent operation returned by the service.
- See Also:
-
updatePullRequestApprovalState
default UpdatePullRequestApprovalStateResponse updatePullRequestApprovalState(UpdatePullRequestApprovalStateRequest updatePullRequestApprovalStateRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, InvalidApprovalStateException, ApprovalStateRequiredException, PullRequestCannotBeApprovedByAuthorException, RevisionNotCurrentException, PullRequestAlreadyClosedException, MaximumNumberOfApprovalsExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
- Parameters:
updatePullRequestApprovalStateRequest
-- Returns:
- Result of the UpdatePullRequestApprovalState operation returned by the service.
- See Also:
-
updatePullRequestApprovalState
default UpdatePullRequestApprovalStateResponse updatePullRequestApprovalState(Consumer<UpdatePullRequestApprovalStateRequest.Builder> updatePullRequestApprovalStateRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidRevisionIdException, RevisionIdRequiredException, InvalidApprovalStateException, ApprovalStateRequiredException, PullRequestCannotBeApprovedByAuthorException, RevisionNotCurrentException, PullRequestAlreadyClosedException, MaximumNumberOfApprovalsExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
This is a convenience which creates an instance of the
UpdatePullRequestApprovalStateRequest.Builder
avoiding the need to create one manually viaUpdatePullRequestApprovalStateRequest.builder()
- Parameters:
updatePullRequestApprovalStateRequest
- AConsumer
that will call methods onUpdatePullRequestApprovalStateRequest.Builder
to create a request.- Returns:
- Result of the UpdatePullRequestApprovalState operation returned by the service.
- See Also:
-
updatePullRequestDescription
default UpdatePullRequestDescriptionResponse updatePullRequestDescription(UpdatePullRequestDescriptionRequest updatePullRequestDescriptionRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidDescriptionException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException Replaces the contents of the description of a pull request.
- Parameters:
updatePullRequestDescriptionRequest
-- Returns:
- Result of the UpdatePullRequestDescription operation returned by the service.
- See Also:
-
updatePullRequestDescription
default UpdatePullRequestDescriptionResponse updatePullRequestDescription(Consumer<UpdatePullRequestDescriptionRequest.Builder> updatePullRequestDescriptionRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidDescriptionException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException Replaces the contents of the description of a pull request.
This is a convenience which creates an instance of the
UpdatePullRequestDescriptionRequest.Builder
avoiding the need to create one manually viaUpdatePullRequestDescriptionRequest.builder()
- Parameters:
updatePullRequestDescriptionRequest
- AConsumer
that will call methods onUpdatePullRequestDescriptionRequest.Builder
to create a request.- Returns:
- Result of the UpdatePullRequestDescription operation returned by the service.
- See Also:
-
updatePullRequestStatus
default UpdatePullRequestStatusResponse updatePullRequestStatus(UpdatePullRequestStatusRequest updatePullRequestStatusRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestStatusUpdateException, InvalidPullRequestStatusException, PullRequestStatusRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the status of a pull request.
- Parameters:
updatePullRequestStatusRequest
-- Returns:
- Result of the UpdatePullRequestStatus operation returned by the service.
- See Also:
-
updatePullRequestStatus
default UpdatePullRequestStatusResponse updatePullRequestStatus(Consumer<UpdatePullRequestStatusRequest.Builder> updatePullRequestStatusRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestStatusUpdateException, InvalidPullRequestStatusException, PullRequestStatusRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the status of a pull request.
This is a convenience which creates an instance of the
UpdatePullRequestStatusRequest.Builder
avoiding the need to create one manually viaUpdatePullRequestStatusRequest.builder()
- Parameters:
updatePullRequestStatusRequest
- AConsumer
that will call methods onUpdatePullRequestStatusRequest.Builder
to create a request.- Returns:
- Result of the UpdatePullRequestStatus operation returned by the service.
- See Also:
-
updatePullRequestTitle
default UpdatePullRequestTitleResponse updatePullRequestTitle(UpdatePullRequestTitleRequest updatePullRequestTitleRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TitleRequiredException, InvalidTitleException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException Replaces the title of a pull request.
- Parameters:
updatePullRequestTitleRequest
-- Returns:
- Result of the UpdatePullRequestTitle operation returned by the service.
- See Also:
-
updatePullRequestTitle
default UpdatePullRequestTitleResponse updatePullRequestTitle(Consumer<UpdatePullRequestTitleRequest.Builder> updatePullRequestTitleRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TitleRequiredException, InvalidTitleException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException Replaces the title of a pull request.
This is a convenience which creates an instance of the
UpdatePullRequestTitleRequest.Builder
avoiding the need to create one manually viaUpdatePullRequestTitleRequest.builder()
- Parameters:
updatePullRequestTitleRequest
- AConsumer
that will call methods onUpdatePullRequestTitleRequest.Builder
to create a request.- Returns:
- Result of the UpdatePullRequestTitle operation returned by the service.
- See Also:
-
updateRepositoryDescription
default UpdateRepositoryDescriptionResponse updateRepositoryDescription(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Sets or changes the comment or description for a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
- Parameters:
updateRepositoryDescriptionRequest
- Represents the input of an update repository description operation.- Returns:
- Result of the UpdateRepositoryDescription operation returned by the service.
- See Also:
-
updateRepositoryDescription
default UpdateRepositoryDescriptionResponse updateRepositoryDescription(Consumer<UpdateRepositoryDescriptionRequest.Builder> updateRepositoryDescriptionRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Sets or changes the comment or description for a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
This is a convenience which creates an instance of the
UpdateRepositoryDescriptionRequest.Builder
avoiding the need to create one manually viaUpdateRepositoryDescriptionRequest.builder()
- Parameters:
updateRepositoryDescriptionRequest
- AConsumer
that will call methods onUpdateRepositoryDescriptionRequest.Builder
to create a request. Represents the input of an update repository description operation.- Returns:
- Result of the UpdateRepositoryDescription operation returned by the service.
- See Also:
-
updateRepositoryEncryptionKey
default UpdateRepositoryEncryptionKeyResponse updateRepositoryEncryptionKey(UpdateRepositoryEncryptionKeyRequest updateRepositoryEncryptionKeyRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionKeyRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
- Parameters:
updateRepositoryEncryptionKeyRequest
-- Returns:
- Result of the UpdateRepositoryEncryptionKey operation returned by the service.
- See Also:
-
updateRepositoryEncryptionKey
default UpdateRepositoryEncryptionKeyResponse updateRepositoryEncryptionKey(Consumer<UpdateRepositoryEncryptionKeyRequest.Builder> updateRepositoryEncryptionKeyRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionKeyRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
This is a convenience which creates an instance of the
UpdateRepositoryEncryptionKeyRequest.Builder
avoiding the need to create one manually viaUpdateRepositoryEncryptionKeyRequest.builder()
- Parameters:
updateRepositoryEncryptionKeyRequest
- AConsumer
that will call methods onUpdateRepositoryEncryptionKeyRequest.Builder
to create a request.- Returns:
- Result of the UpdateRepositoryEncryptionKey operation returned by the service.
- See Also:
-
updateRepositoryName
default UpdateRepositoryNameResponse updateRepositoryName(UpdateRepositoryNameRequest updateRepositoryNameRequest) throws RepositoryDoesNotExistException, RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, AwsServiceException, SdkClientException, CodeCommitException Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.
- Parameters:
updateRepositoryNameRequest
- Represents the input of an update repository description operation.- Returns:
- Result of the UpdateRepositoryName operation returned by the service.
- See Also:
-
updateRepositoryName
default UpdateRepositoryNameResponse updateRepositoryName(Consumer<UpdateRepositoryNameRequest.Builder> updateRepositoryNameRequest) throws RepositoryDoesNotExistException, RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, AwsServiceException, SdkClientException, CodeCommitException Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.
This is a convenience which creates an instance of the
UpdateRepositoryNameRequest.Builder
avoiding the need to create one manually viaUpdateRepositoryNameRequest.builder()
- Parameters:
updateRepositoryNameRequest
- AConsumer
that will call methods onUpdateRepositoryNameRequest.Builder
to create a request. Represents the input of an update repository description operation.- Returns:
- Result of the UpdateRepositoryName operation returned by the service.
- See Also:
-
create
Create aCodeCommitClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCodeCommitClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-