The description field for a
- * repository accepts all HTML characters and all valid Unicode characters.
+ *
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 web
* page could expose users to potentially malicious code. Make sure that you
* HTML-encode the description field in any application that uses this API to
@@ -321,6 +389,25 @@ namespace Model
*/
virtual void GetRepositoryAsync(const Model::GetRepositoryRequest& request, const GetRepositoryResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const;
+ /**
+ * Gets information about triggers configured for a repository.
+ */
+ virtual Model::GetRepositoryTriggersOutcome GetRepositoryTriggers(const Model::GetRepositoryTriggersRequest& request) const;
+
+ /**
+ * Gets information about triggers configured for a repository.
+ *
+ * returns a future to the operation so that it can be executed in parallel to other requests.
+ */
+ virtual Model::GetRepositoryTriggersOutcomeCallable GetRepositoryTriggersCallable(const Model::GetRepositoryTriggersRequest& request) const;
+
+ /**
+ * Gets information about triggers configured for a repository.
+ *
+ * Queues the request into a thread executor and triggers associated callback when operation has finished.
+ */
+ virtual void GetRepositoryTriggersAsync(const Model::GetRepositoryTriggersRequest& request, const GetRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const;
+
/**
* Gets information about one or more branches in a repository.
*/
@@ -359,19 +446,69 @@ namespace Model
*/
virtual void ListRepositoriesAsync(const Model::ListRepositoriesRequest& request, const ListRepositoriesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const;
+ /**
+ * Replaces all triggers for a repository. This can be used to create or delete
+ * triggers.
+ */
+ virtual Model::PutRepositoryTriggersOutcome PutRepositoryTriggers(const Model::PutRepositoryTriggersRequest& request) const;
+
+ /**
+ * Replaces all triggers for a repository. This can be used to create or delete
+ * triggers.
+ *
+ * returns a future to the operation so that it can be executed in parallel to other requests.
+ */
+ virtual Model::PutRepositoryTriggersOutcomeCallable PutRepositoryTriggersCallable(const Model::PutRepositoryTriggersRequest& request) const;
+
+ /**
+ * Replaces all triggers for a repository. This can be used to create or delete
+ * triggers.
+ *
+ * Queues the request into a thread executor and triggers associated callback when operation has finished.
+ */
+ virtual void PutRepositoryTriggersAsync(const Model::PutRepositoryTriggersRequest& request, const PutRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const;
+
+ /**
+ * Tests the functionality of repository triggers by sending information to the
+ * trigger target. If real data is available in the repository, the test will send
+ * data from the last commit. If no data is available, sample data will be
+ * generated.
+ */
+ virtual Model::TestRepositoryTriggersOutcome TestRepositoryTriggers(const Model::TestRepositoryTriggersRequest& request) const;
+
+ /**
+ * Tests the functionality of repository triggers by sending information to the
+ * trigger target. If real data is available in the repository, the test will send
+ * data from the last commit. If no data is available, sample data will be
+ * generated.
+ *
+ * returns a future to the operation so that it can be executed in parallel to other requests.
+ */
+ virtual Model::TestRepositoryTriggersOutcomeCallable TestRepositoryTriggersCallable(const Model::TestRepositoryTriggersRequest& request) const;
+
+ /**
+ * Tests the functionality of repository triggers by sending information to the
+ * trigger target. If real data is available in the repository, the test will send
+ * data from the last commit. If no data is available, sample data will be
+ * generated.
+ *
+ * Queues the request into a thread executor and triggers associated callback when operation has finished.
+ */
+ virtual void TestRepositoryTriggersAsync(const Model::TestRepositoryTriggersRequest& request, const TestRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const;
+
/**
* 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.
+ * 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.
*/
virtual Model::UpdateDefaultBranchOutcome UpdateDefaultBranch(const Model::UpdateDefaultBranchRequest& request) const;
/**
* 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.
+ * 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.
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
@@ -379,9 +516,9 @@ namespace Model
/**
* 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.
+ * 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.
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
@@ -422,19 +559,37 @@ namespace Model
virtual void UpdateRepositoryDescriptionAsync(const Model::UpdateRepositoryDescriptionRequest& request, const UpdateRepositoryDescriptionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const;
/**
- * Renames a repository.
+ * Renames a repository. The repository name must be unique across the calling
+ * AWS account. In addition, repository names are limited to 100 alphanumeric,
+ * dash, and underscore characters, and cannot include certain characters. The
+ * suffix ".git" is prohibited. For a full description of the limits on repository
+ * names, see Limits
+ * in the AWS CodeCommit User Guide.
*/
virtual Model::UpdateRepositoryNameOutcome UpdateRepositoryName(const Model::UpdateRepositoryNameRequest& request) const;
/**
- * Renames a repository.
+ * Renames a repository. The repository name must be unique across the calling
+ * AWS account. In addition, repository names are limited to 100 alphanumeric,
+ * dash, and underscore characters, and cannot include certain characters. The
+ * suffix ".git" is prohibited. For a full description of the limits on repository
+ * names, see Limits
+ * in the AWS CodeCommit User Guide.
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdateRepositoryNameOutcomeCallable UpdateRepositoryNameCallable(const Model::UpdateRepositoryNameRequest& request) const;
/**
- * Renames a repository.
+ * Renames a repository. The repository name must be unique across the calling
+ * AWS account. In addition, repository names are limited to 100 alphanumeric,
+ * dash, and underscore characters, and cannot include certain characters. The
+ * suffix ".git" is prohibited. For a full description of the limits on repository
+ * names, see Limits
+ * in the AWS CodeCommit User Guide.
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
@@ -450,9 +605,13 @@ namespace Model
void CreateRepositoryAsyncHelper(const Model::CreateRepositoryRequest& request, const CreateRepositoryResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void DeleteRepositoryAsyncHelper(const Model::DeleteRepositoryRequest& request, const DeleteRepositoryResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void GetBranchAsyncHelper(const Model::GetBranchRequest& request, const GetBranchResponseReceivedHandler& handler, const std::shared_ptr& context) const;
+ void GetCommitAsyncHelper(const Model::GetCommitRequest& request, const GetCommitResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void GetRepositoryAsyncHelper(const Model::GetRepositoryRequest& request, const GetRepositoryResponseReceivedHandler& handler, const std::shared_ptr& context) const;
+ void GetRepositoryTriggersAsyncHelper(const Model::GetRepositoryTriggersRequest& request, const GetRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void ListBranchesAsyncHelper(const Model::ListBranchesRequest& request, const ListBranchesResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void ListRepositoriesAsyncHelper(const Model::ListRepositoriesRequest& request, const ListRepositoriesResponseReceivedHandler& handler, const std::shared_ptr& context) const;
+ void PutRepositoryTriggersAsyncHelper(const Model::PutRepositoryTriggersRequest& request, const PutRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const;
+ void TestRepositoryTriggersAsyncHelper(const Model::TestRepositoryTriggersRequest& request, const TestRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void UpdateDefaultBranchAsyncHelper(const Model::UpdateDefaultBranchRequest& request, const UpdateDefaultBranchResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void UpdateRepositoryDescriptionAsyncHelper(const Model::UpdateRepositoryDescriptionRequest& request, const UpdateRepositoryDescriptionResponseReceivedHandler& handler, const std::shared_ptr& context) const;
void UpdateRepositoryNameAsyncHelper(const Model::UpdateRepositoryNameRequest& request, const UpdateRepositoryNameResponseReceivedHandler& handler, const std::shared_ptr& context) const;
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/CodeCommitErrors.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/CodeCommitErrors.h
index a78857b753e..db98ccb1bef 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/CodeCommitErrors.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/CodeCommitErrors.h
@@ -52,6 +52,7 @@ enum class AWS_CODECOMMIT_API CodeCommitErrors
BRANCH_NAME_EXISTS,
BRANCH_NAME_REQUIRED,
COMMIT_DOES_NOT_EXIST,
+ COMMIT_ID_DOES_NOT_EXIST,
COMMIT_ID_REQUIRED,
ENCRYPTION_INTEGRITY_CHECKS_FAILED,
ENCRYPTION_KEY_ACCESS_DENIED,
@@ -64,13 +65,26 @@ enum class AWS_CODECOMMIT_API CodeCommitErrors
INVALID_ORDER,
INVALID_REPOSITORY_DESCRIPTION,
INVALID_REPOSITORY_NAME,
+ INVALID_REPOSITORY_TRIGGER_BRANCH_NAME,
+ INVALID_REPOSITORY_TRIGGER_CUSTOM_DATA,
+ INVALID_REPOSITORY_TRIGGER_DESTINATION_ARN,
+ INVALID_REPOSITORY_TRIGGER_EVENTS,
+ INVALID_REPOSITORY_TRIGGER_NAME,
+ INVALID_REPOSITORY_TRIGGER_REGION,
INVALID_SORT_BY,
+ MAXIMUM_BRANCHES_EXCEEDED,
MAXIMUM_REPOSITORY_NAMES_EXCEEDED,
+ MAXIMUM_REPOSITORY_TRIGGERS_EXCEEDED,
REPOSITORY_DOES_NOT_EXIST,
REPOSITORY_LIMIT_EXCEEDED,
REPOSITORY_NAMES_REQUIRED,
REPOSITORY_NAME_EXISTS,
- REPOSITORY_NAME_REQUIRED
+ REPOSITORY_NAME_REQUIRED,
+ REPOSITORY_TRIGGERS_LIST_REQUIRED,
+ REPOSITORY_TRIGGER_BRANCH_NAME_LIST_REQUIRED,
+ REPOSITORY_TRIGGER_DESTINATION_ARN_REQUIRED,
+ REPOSITORY_TRIGGER_EVENTS_LIST_REQUIRED,
+ REPOSITORY_TRIGGER_NAME_REQUIRED
};
namespace CodeCommitErrorMapper
{
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/Commit.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/Commit.h
new file mode 100644
index 00000000000..423f33191fd
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/Commit.h
@@ -0,0 +1,273 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Returns information about a specific commit.
+ */
+ class AWS_CODECOMMIT_API Commit
+ {
+ public:
+ Commit();
+ Commit(const Aws::Utils::Json::JsonValue& jsonValue);
+ Commit& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
+ Aws::Utils::Json::JsonValue Jsonize() const;
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline const Aws::String& GetTreeId() const{ return m_treeId; }
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline void SetTreeId(const Aws::String& value) { m_treeIdHasBeenSet = true; m_treeId = value; }
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline void SetTreeId(Aws::String&& value) { m_treeIdHasBeenSet = true; m_treeId = value; }
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline void SetTreeId(const char* value) { m_treeIdHasBeenSet = true; m_treeId.assign(value); }
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline Commit& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline Commit& WithTreeId(Aws::String&& value) { SetTreeId(value); return *this;}
+
+ /**
+ * Tree information for the specified commit.
+ */
+ inline Commit& WithTreeId(const char* value) { SetTreeId(value); return *this;}
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline const Aws::Vector& GetParents() const{ return m_parents; }
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline void SetParents(const Aws::Vector& value) { m_parentsHasBeenSet = true; m_parents = value; }
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline void SetParents(Aws::Vector&& value) { m_parentsHasBeenSet = true; m_parents = value; }
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline Commit& WithParents(const Aws::Vector& value) { SetParents(value); return *this;}
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline Commit& WithParents(Aws::Vector&& value) { SetParents(value); return *this;}
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline Commit& AddParents(const Aws::String& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline Commit& AddParents(Aws::String&& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
+
+ /**
+ * The parent list for the specified commit.
+ */
+ inline Commit& AddParents(const char* value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline const Aws::String& GetMessage() const{ return m_message; }
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline Commit& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline Commit& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
+
+ /**
+ * The message associated with the specified commit.
+ */
+ inline Commit& WithMessage(const char* value) { SetMessage(value); return *this;}
+
+ /**
+ * Information about the author of the specified commit.
+ */
+ inline const UserInfo& GetAuthor() const{ return m_author; }
+
+ /**
+ * Information about the author of the specified commit.
+ */
+ inline void SetAuthor(const UserInfo& value) { m_authorHasBeenSet = true; m_author = value; }
+
+ /**
+ * Information about the author of the specified commit.
+ */
+ inline void SetAuthor(UserInfo&& value) { m_authorHasBeenSet = true; m_author = value; }
+
+ /**
+ * Information about the author of the specified commit.
+ */
+ inline Commit& WithAuthor(const UserInfo& value) { SetAuthor(value); return *this;}
+
+ /**
+ * Information about the author of the specified commit.
+ */
+ inline Commit& WithAuthor(UserInfo&& value) { SetAuthor(value); return *this;}
+
+ /**
+ * Information about the person who committed the specified commit, also known
+ * as the committer. For more information about the difference between an author
+ * and a committer in Git, see Viewing
+ * the Commit History in Pro Git by Scott Chacon and Ben Straub.
+ */
+ inline const UserInfo& GetCommitter() const{ return m_committer; }
+
+ /**
+ * Information about the person who committed the specified commit, also known
+ * as the committer. For more information about the difference between an author
+ * and a committer in Git, see Viewing
+ * the Commit History in Pro Git by Scott Chacon and Ben Straub.
+ */
+ inline void SetCommitter(const UserInfo& value) { m_committerHasBeenSet = true; m_committer = value; }
+
+ /**
+ * Information about the person who committed the specified commit, also known
+ * as the committer. For more information about the difference between an author
+ * and a committer in Git, see Viewing
+ * the Commit History in Pro Git by Scott Chacon and Ben Straub.
+ */
+ inline void SetCommitter(UserInfo&& value) { m_committerHasBeenSet = true; m_committer = value; }
+
+ /**
+ * Information about the person who committed the specified commit, also known
+ * as the committer. For more information about the difference between an author
+ * and a committer in Git, see Viewing
+ * the Commit History in Pro Git by Scott Chacon and Ben Straub.
+ */
+ inline Commit& WithCommitter(const UserInfo& value) { SetCommitter(value); return *this;}
+
+ /**
+ * Information about the person who committed the specified commit, also known
+ * as the committer. For more information about the difference between an author
+ * and a committer in Git, see Viewing
+ * the Commit History in Pro Git by Scott Chacon and Ben Straub.
+ */
+ inline Commit& WithCommitter(UserInfo&& value) { SetCommitter(value); return *this;}
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline const Aws::String& GetAdditionalData() const{ return m_additionalData; }
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline void SetAdditionalData(const Aws::String& value) { m_additionalDataHasBeenSet = true; m_additionalData = value; }
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline void SetAdditionalData(Aws::String&& value) { m_additionalDataHasBeenSet = true; m_additionalData = value; }
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline void SetAdditionalData(const char* value) { m_additionalDataHasBeenSet = true; m_additionalData.assign(value); }
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline Commit& WithAdditionalData(const Aws::String& value) { SetAdditionalData(value); return *this;}
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline Commit& WithAdditionalData(Aws::String&& value) { SetAdditionalData(value); return *this;}
+
+ /**
+ * Any additional data associated with the specified commit.
+ */
+ inline Commit& WithAdditionalData(const char* value) { SetAdditionalData(value); return *this;}
+
+ private:
+ Aws::String m_treeId;
+ bool m_treeIdHasBeenSet;
+ Aws::Vector m_parents;
+ bool m_parentsHasBeenSet;
+ Aws::String m_message;
+ bool m_messageHasBeenSet;
+ UserInfo m_author;
+ bool m_authorHasBeenSet;
+ UserInfo m_committer;
+ bool m_committerHasBeenSet;
+ Aws::String m_additionalData;
+ bool m_additionalDataHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateBranchRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateBranchRequest.h
index 41846577f1b..346c6ecfacd 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateBranchRequest.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateBranchRequest.h
@@ -106,51 +106,37 @@ namespace Model
inline CreateBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline const Aws::String& GetCommitId() const{ return m_commitId; }
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline CreateBranchRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline CreateBranchRequest& WithCommitId(Aws::String&& value) { SetCommitId(value); return *this;}
/**
- * The ID of the commit to point the new branch to.
If this commit ID
- * is not specified, the new branch will point to the commit that is pointed to by
- * the repository's default branch.
+ * The ID of the commit to point the new branch to.
*/
inline CreateBranchRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;}
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateRepositoryRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateRepositoryRequest.h
index 68d876e227c..00809eef242 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateRepositoryRequest.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/CreateRepositoryRequest.h
@@ -36,86 +36,149 @@ namespace Model
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
/**
- * The name of the new repository to be created.
The repository name
- * must be unique across the calling AWS account. In addition, repository names are
- * restricted to alphanumeric characters. The suffix ".git" is prohibited.
+ * The name of the new repository to be created.
The repository
+ * name must be unique across the calling AWS account. In addition, repository
+ * names are limited to 100 alphanumeric, dash, and underscore characters, and
+ * cannot include certain characters. For a full description of the limits on
+ * repository names, see Limits
+ * in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline const Aws::String& GetRepositoryDescription() const{ return m_repositoryDescription; }
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline void SetRepositoryDescription(const Aws::String& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline void SetRepositoryDescription(Aws::String&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline void SetRepositoryDescription(const char* value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription.assign(value); }
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline CreateRepositoryRequest& WithRepositoryDescription(const Aws::String& value) { SetRepositoryDescription(value); return *this;}
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline CreateRepositoryRequest& WithRepositoryDescription(Aws::String&& value) { SetRepositoryDescription(value); return *this;}
/**
- * A comment or description about the new repository.
+ * A comment or description about the new 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 web page could 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 web page.
*/
inline CreateRepositoryRequest& WithRepositoryDescription(const char* value) { SetRepositoryDescription(value); return *this;}
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetBranchRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetBranchRequest.h
index 653aca4a742..e5a115e0d86 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetBranchRequest.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetBranchRequest.h
@@ -35,25 +35,46 @@ namespace Model
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline GetBranchRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline GetBranchRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
-
+ /**
+ * The name of the repository that contains the branch for which you want to
+ * retrieve information.
+ */
inline GetBranchRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitRequest.h
new file mode 100644
index 00000000000..a1c589d462f
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitRequest.h
@@ -0,0 +1,117 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Represents the input of a get commit operation.
+ */
+ class AWS_CODECOMMIT_API GetCommitRequest : public CodeCommitRequest
+ {
+ public:
+ GetCommitRequest();
+ Aws::String SerializePayload() const override;
+
+ Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline GetCommitRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline GetCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository to which the commit was made.
+ */
+ inline GetCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The commit ID.
+ */
+ inline const Aws::String& GetCommitId() const{ return m_commitId; }
+
+ /**
+ * The commit ID.
+ */
+ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
+
+ /**
+ * The commit ID.
+ */
+ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
+
+ /**
+ * The commit ID.
+ */
+ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
+
+ /**
+ * The commit ID.
+ */
+ inline GetCommitRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
+
+ /**
+ * The commit ID.
+ */
+ inline GetCommitRequest& WithCommitId(Aws::String&& value) { SetCommitId(value); return *this;}
+
+ /**
+ * The commit ID.
+ */
+ inline GetCommitRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;}
+
+ private:
+ Aws::String m_repositoryName;
+ bool m_repositoryNameHasBeenSet;
+ Aws::String m_commitId;
+ bool m_commitIdHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitResult.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitResult.h
new file mode 100644
index 00000000000..fba118dc464
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitResult.h
@@ -0,0 +1,76 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+template
+class AmazonWebServiceResult;
+
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+ /**
+ * Represents the output of a get commit operation.
+ */
+ class AWS_CODECOMMIT_API GetCommitResult
+ {
+ public:
+ GetCommitResult();
+ GetCommitResult(const AmazonWebServiceResult& result);
+ GetCommitResult& operator=(const AmazonWebServiceResult& result);
+
+ /**
+ * Information about the specified commit.
+ */
+ inline const Commit& GetCommit() const{ return m_commit; }
+
+ /**
+ * Information about the specified commit.
+ */
+ inline void SetCommit(const Commit& value) { m_commit = value; }
+
+ /**
+ * Information about the specified commit.
+ */
+ inline void SetCommit(Commit&& value) { m_commit = value; }
+
+ /**
+ * Information about the specified commit.
+ */
+ inline GetCommitResult& WithCommit(const Commit& value) { SetCommit(value); return *this;}
+
+ /**
+ * Information about the specified commit.
+ */
+ inline GetCommitResult& WithCommit(Commit&& value) { SetCommit(value); return *this;}
+
+ private:
+ Commit m_commit;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetRepositoryTriggersRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetRepositoryTriggersRequest.h
new file mode 100644
index 00000000000..28beac37982
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetRepositoryTriggersRequest.h
@@ -0,0 +1,80 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Represents the input of a get repository triggers operation.
+ */
+ class AWS_CODECOMMIT_API GetRepositoryTriggersRequest : public CodeCommitRequest
+ {
+ public:
+ GetRepositoryTriggersRequest();
+ Aws::String SerializePayload() const override;
+
+ Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline GetRepositoryTriggersRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline GetRepositoryTriggersRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository for which the trigger is configured.
+ */
+ inline GetRepositoryTriggersRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
+
+ private:
+ Aws::String m_repositoryName;
+ bool m_repositoryNameHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetRepositoryTriggersResult.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetRepositoryTriggersResult.h
new file mode 100644
index 00000000000..01bd28ade76
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetRepositoryTriggersResult.h
@@ -0,0 +1,124 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+template
+class AmazonWebServiceResult;
+
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+ /**
+ * Represents the output of a get repository triggers operation.
+ */
+ class AWS_CODECOMMIT_API GetRepositoryTriggersResult
+ {
+ public:
+ GetRepositoryTriggersResult();
+ GetRepositoryTriggersResult(const AmazonWebServiceResult& result);
+ GetRepositoryTriggersResult& operator=(const AmazonWebServiceResult& result);
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline const Aws::String& GetConfigurationId() const{ return m_configurationId; }
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline void SetConfigurationId(const Aws::String& value) { m_configurationId = value; }
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline void SetConfigurationId(Aws::String&& value) { m_configurationId = value; }
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline void SetConfigurationId(const char* value) { m_configurationId.assign(value); }
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline GetRepositoryTriggersResult& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;}
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline GetRepositoryTriggersResult& WithConfigurationId(Aws::String&& value) { SetConfigurationId(value); return *this;}
+
+ /**
+ * The system-generated unique ID for the trigger.
+ */
+ inline GetRepositoryTriggersResult& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;}
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline const Aws::Vector& GetTriggers() const{ return m_triggers; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline void SetTriggers(const Aws::Vector& value) { m_triggers = value; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline void SetTriggers(Aws::Vector&& value) { m_triggers = value; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline GetRepositoryTriggersResult& WithTriggers(const Aws::Vector& value) { SetTriggers(value); return *this;}
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline GetRepositoryTriggersResult& WithTriggers(Aws::Vector&& value) { SetTriggers(value); return *this;}
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline GetRepositoryTriggersResult& AddTriggers(const RepositoryTrigger& value) { m_triggers.push_back(value); return *this; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline GetRepositoryTriggersResult& AddTriggers(RepositoryTrigger&& value) { m_triggers.push_back(value); return *this; }
+
+ private:
+ Aws::String m_configurationId;
+ Aws::Vector m_triggers;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/PutRepositoryTriggersRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/PutRepositoryTriggersRequest.h
new file mode 100644
index 00000000000..678b19468a7
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/PutRepositoryTriggersRequest.h
@@ -0,0 +1,126 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Represents the input ofa put repository triggers operation.
+ */
+ class AWS_CODECOMMIT_API PutRepositoryTriggersRequest : public CodeCommitRequest
+ {
+ public:
+ PutRepositoryTriggersRequest();
+ Aws::String SerializePayload() const override;
+
+ Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline PutRepositoryTriggersRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline PutRepositoryTriggersRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository where you want to create or update the trigger.
+ *
+ */
+ inline PutRepositoryTriggersRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline const Aws::Vector& GetTriggers() const{ return m_triggers; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline void SetTriggers(const Aws::Vector& value) { m_triggersHasBeenSet = true; m_triggers = value; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline void SetTriggers(Aws::Vector&& value) { m_triggersHasBeenSet = true; m_triggers = value; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline PutRepositoryTriggersRequest& WithTriggers(const Aws::Vector& value) { SetTriggers(value); return *this;}
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline PutRepositoryTriggersRequest& WithTriggers(Aws::Vector&& value) { SetTriggers(value); return *this;}
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline PutRepositoryTriggersRequest& AddTriggers(const RepositoryTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
+
+ /**
+ * The JSON block of configuration information for each trigger.
+ */
+ inline PutRepositoryTriggersRequest& AddTriggers(RepositoryTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
+
+ private:
+ Aws::String m_repositoryName;
+ bool m_repositoryNameHasBeenSet;
+ Aws::Vector m_triggers;
+ bool m_triggersHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/PutRepositoryTriggersResult.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/PutRepositoryTriggersResult.h
new file mode 100644
index 00000000000..aba7f76a6eb
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/PutRepositoryTriggersResult.h
@@ -0,0 +1,86 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+template
+class AmazonWebServiceResult;
+
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+ /**
+ * Represents the output of a put repository triggers operation.
+ */
+ class AWS_CODECOMMIT_API PutRepositoryTriggersResult
+ {
+ public:
+ PutRepositoryTriggersResult();
+ PutRepositoryTriggersResult(const AmazonWebServiceResult& result);
+ PutRepositoryTriggersResult& operator=(const AmazonWebServiceResult& result);
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline const Aws::String& GetConfigurationId() const{ return m_configurationId; }
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline void SetConfigurationId(const Aws::String& value) { m_configurationId = value; }
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline void SetConfigurationId(Aws::String&& value) { m_configurationId = value; }
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline void SetConfigurationId(const char* value) { m_configurationId.assign(value); }
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline PutRepositoryTriggersResult& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;}
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline PutRepositoryTriggersResult& WithConfigurationId(Aws::String&& value) { SetConfigurationId(value); return *this;}
+
+ /**
+ * The system-generated unique ID for the create or update operation.
+ */
+ inline PutRepositoryTriggersResult& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;}
+
+ private:
+ Aws::String m_configurationId;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryNameIdPair.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryNameIdPair.h
index 5b28fdd2801..d896cea84d5 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryNameIdPair.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryNameIdPair.h
@@ -41,59 +41,73 @@ namespace Model
RepositoryNameIdPair& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
-
+ /**
+ * The name associated with the repository.
+ */
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
-
+ /**
+ * The name associated with the repository.
+ */
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
-
+ /**
+ * The name associated with the repository.
+ */
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
-
+ /**
+ * The name associated with the repository.
+ */
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
-
+ /**
+ * The name associated with the repository.
+ */
inline RepositoryNameIdPair& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
-
+ /**
+ * The name associated with the repository.
+ */
inline RepositoryNameIdPair& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
-
+ /**
+ * The name associated with the repository.
+ */
inline RepositoryNameIdPair& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline RepositoryNameIdPair& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline RepositoryNameIdPair& WithRepositoryId(Aws::String&& value) { SetRepositoryId(value); return *this;}
/**
- * The ID associated with the repository name.
+ * The ID associated with the repository.
*/
inline RepositoryNameIdPair& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTrigger.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTrigger.h
new file mode 100644
index 00000000000..a326b61e909
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTrigger.h
@@ -0,0 +1,284 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Information about a trigger for a repository.
+ */
+ class AWS_CODECOMMIT_API RepositoryTrigger
+ {
+ public:
+ RepositoryTrigger();
+ RepositoryTrigger(const Aws::Utils::Json::JsonValue& jsonValue);
+ RepositoryTrigger& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
+ Aws::Utils::Json::JsonValue Jsonize() const;
+
+ /**
+ * The name of the trigger.
+ */
+ inline const Aws::String& GetName() const{ return m_name; }
+
+ /**
+ * The name of the trigger.
+ */
+ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
+
+ /**
+ * The name of the trigger.
+ */
+ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
+
+ /**
+ * The name of the trigger.
+ */
+ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
+
+ /**
+ * The name of the trigger.
+ */
+ inline RepositoryTrigger& WithName(const Aws::String& value) { SetName(value); return *this;}
+
+ /**
+ * The name of the trigger.
+ */
+ inline RepositoryTrigger& WithName(Aws::String&& value) { SetName(value); return *this;}
+
+ /**
+ * The name of the trigger.
+ */
+ inline RepositoryTrigger& WithName(const char* value) { SetName(value); return *this;}
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline RepositoryTrigger& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline RepositoryTrigger& WithDestinationArn(Aws::String&& value) { SetDestinationArn(value); return *this;}
+
+ /**
+ * The ARN of the resource that is the target for a trigger. For example, the
+ * ARN of a topic in Amazon Simple Notification Service (SNS).
+ */
+ inline RepositoryTrigger& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline const Aws::String& GetCustomData() const{ return m_customData; }
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline void SetCustomData(const Aws::String& value) { m_customDataHasBeenSet = true; m_customData = value; }
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline void SetCustomData(Aws::String&& value) { m_customDataHasBeenSet = true; m_customData = value; }
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline void SetCustomData(const char* value) { m_customDataHasBeenSet = true; m_customData.assign(value); }
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline RepositoryTrigger& WithCustomData(const Aws::String& value) { SetCustomData(value); return *this;}
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline RepositoryTrigger& WithCustomData(Aws::String&& value) { SetCustomData(value); return *this;}
+
+ /**
+ * Any custom data associated with the trigger that will be included in the
+ * information sent to the target of the trigger.
+ */
+ inline RepositoryTrigger& WithCustomData(const char* value) { SetCustomData(value); return *this;}
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline const Aws::Vector& GetBranches() const{ return m_branches; }
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline void SetBranches(const Aws::Vector& value) { m_branchesHasBeenSet = true; m_branches = value; }
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline void SetBranches(Aws::Vector&& value) { m_branchesHasBeenSet = true; m_branches = value; }
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline RepositoryTrigger& WithBranches(const Aws::Vector& value) { SetBranches(value); return *this;}
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline RepositoryTrigger& WithBranches(Aws::Vector&& value) { SetBranches(value); return *this;}
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline RepositoryTrigger& AddBranches(const Aws::String& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline RepositoryTrigger& AddBranches(Aws::String&& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
+
+ /**
+ * The branches that will be included in the trigger configuration. If no
+ * branches are specified, the trigger will apply to all branches.
+ */
+ inline RepositoryTrigger& AddBranches(const char* value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline const Aws::Vector& GetEvents() const{ return m_events; }
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; }
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = value; }
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline RepositoryTrigger& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;}
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline RepositoryTrigger& WithEvents(Aws::Vector&& value) { SetEvents(value); return *this;}
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline RepositoryTrigger& AddEvents(const RepositoryTriggerEventEnum& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
+
+ /**
+ * The repository events that will cause the trigger to run actions in another
+ * service, such as sending a notification through Amazon Simple Notification
+ * Service (SNS). If no events are specified, the trigger will run for all
+ * repository events.
+ */
+ inline RepositoryTrigger& AddEvents(RepositoryTriggerEventEnum&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
+
+ private:
+ Aws::String m_name;
+ bool m_nameHasBeenSet;
+ Aws::String m_destinationArn;
+ bool m_destinationArnHasBeenSet;
+ Aws::String m_customData;
+ bool m_customDataHasBeenSet;
+ Aws::Vector m_branches;
+ bool m_branchesHasBeenSet;
+ Aws::Vector m_events;
+ bool m_eventsHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTriggerEventEnum.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTriggerEventEnum.h
new file mode 100644
index 00000000000..be75c2dafd1
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTriggerEventEnum.h
@@ -0,0 +1,42 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace CodeCommit
+{
+namespace Model
+{
+ enum class RepositoryTriggerEventEnum
+ {
+ NOT_SET,
+ all,
+ updateReference,
+ createReference,
+ deleteReference
+ };
+
+namespace RepositoryTriggerEventEnumMapper
+{
+AWS_CODECOMMIT_API RepositoryTriggerEventEnum GetRepositoryTriggerEventEnumForName(const Aws::String& name);
+
+AWS_CODECOMMIT_API Aws::String GetNameForRepositoryTriggerEventEnum(RepositoryTriggerEventEnum value);
+} // namespace RepositoryTriggerEventEnumMapper
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTriggerExecutionFailure.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTriggerExecutionFailure.h
new file mode 100644
index 00000000000..90a6218a4b9
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/RepositoryTriggerExecutionFailure.h
@@ -0,0 +1,123 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * A trigger failed to run.
+ */
+ class AWS_CODECOMMIT_API RepositoryTriggerExecutionFailure
+ {
+ public:
+ RepositoryTriggerExecutionFailure();
+ RepositoryTriggerExecutionFailure(const Aws::Utils::Json::JsonValue& jsonValue);
+ RepositoryTriggerExecutionFailure& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
+ Aws::Utils::Json::JsonValue Jsonize() const;
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline const Aws::String& GetTrigger() const{ return m_trigger; }
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline void SetTrigger(const Aws::String& value) { m_triggerHasBeenSet = true; m_trigger = value; }
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline void SetTrigger(Aws::String&& value) { m_triggerHasBeenSet = true; m_trigger = value; }
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline void SetTrigger(const char* value) { m_triggerHasBeenSet = true; m_trigger.assign(value); }
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline RepositoryTriggerExecutionFailure& WithTrigger(const Aws::String& value) { SetTrigger(value); return *this;}
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline RepositoryTriggerExecutionFailure& WithTrigger(Aws::String&& value) { SetTrigger(value); return *this;}
+
+ /**
+ * The name of the trigger that did not run.
+ */
+ inline RepositoryTriggerExecutionFailure& WithTrigger(const char* value) { SetTrigger(value); return *this;}
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline RepositoryTriggerExecutionFailure& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline RepositoryTriggerExecutionFailure& WithFailureMessage(Aws::String&& value) { SetFailureMessage(value); return *this;}
+
+ /**
+ * Additional message information about the trigger that did not run.
+ */
+ inline RepositoryTriggerExecutionFailure& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
+
+ private:
+ Aws::String m_trigger;
+ bool m_triggerHasBeenSet;
+ Aws::String m_failureMessage;
+ bool m_failureMessageHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/TestRepositoryTriggersRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/TestRepositoryTriggersRequest.h
new file mode 100644
index 00000000000..77fe72f5fb8
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/TestRepositoryTriggersRequest.h
@@ -0,0 +1,119 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Represents the input of a test repository triggers operation.
+ */
+ class AWS_CODECOMMIT_API TestRepositoryTriggersRequest : public CodeCommitRequest
+ {
+ public:
+ TestRepositoryTriggersRequest();
+ Aws::String SerializePayload() const override;
+
+ Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline TestRepositoryTriggersRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline TestRepositoryTriggersRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The name of the repository in which to test the triggers.
+ */
+ inline TestRepositoryTriggersRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
+
+ /**
+ * The list of triggers to test.
+ */
+ inline const Aws::Vector& GetTriggers() const{ return m_triggers; }
+
+ /**
+ * The list of triggers to test.
+ */
+ inline void SetTriggers(const Aws::Vector& value) { m_triggersHasBeenSet = true; m_triggers = value; }
+
+ /**
+ * The list of triggers to test.
+ */
+ inline void SetTriggers(Aws::Vector&& value) { m_triggersHasBeenSet = true; m_triggers = value; }
+
+ /**
+ * The list of triggers to test.
+ */
+ inline TestRepositoryTriggersRequest& WithTriggers(const Aws::Vector& value) { SetTriggers(value); return *this;}
+
+ /**
+ * The list of triggers to test.
+ */
+ inline TestRepositoryTriggersRequest& WithTriggers(Aws::Vector&& value) { SetTriggers(value); return *this;}
+
+ /**
+ * The list of triggers to test.
+ */
+ inline TestRepositoryTriggersRequest& AddTriggers(const RepositoryTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
+
+ /**
+ * The list of triggers to test.
+ */
+ inline TestRepositoryTriggersRequest& AddTriggers(RepositoryTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
+
+ private:
+ Aws::String m_repositoryName;
+ bool m_repositoryNameHasBeenSet;
+ Aws::Vector m_triggers;
+ bool m_triggersHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/TestRepositoryTriggersResult.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/TestRepositoryTriggersResult.h
new file mode 100644
index 00000000000..92219d6e2c8
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/TestRepositoryTriggersResult.h
@@ -0,0 +1,144 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+template
+class AmazonWebServiceResult;
+
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+ /**
+ * Represents the output of a test repository triggers operation.
+ */
+ class AWS_CODECOMMIT_API TestRepositoryTriggersResult
+ {
+ public:
+ TestRepositoryTriggersResult();
+ TestRepositoryTriggersResult(const AmazonWebServiceResult& result);
+ TestRepositoryTriggersResult& operator=(const AmazonWebServiceResult& result);
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline const Aws::Vector& GetSuccessfulExecutions() const{ return m_successfulExecutions; }
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline void SetSuccessfulExecutions(const Aws::Vector& value) { m_successfulExecutions = value; }
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline void SetSuccessfulExecutions(Aws::Vector&& value) { m_successfulExecutions = value; }
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& WithSuccessfulExecutions(const Aws::Vector& value) { SetSuccessfulExecutions(value); return *this;}
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& WithSuccessfulExecutions(Aws::Vector&& value) { SetSuccessfulExecutions(value); return *this;}
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& AddSuccessfulExecutions(const Aws::String& value) { m_successfulExecutions.push_back(value); return *this; }
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& AddSuccessfulExecutions(Aws::String&& value) { m_successfulExecutions.push_back(value); return *this; }
+
+ /**
+ * The list of triggers that were successfully tested. This list provides the
+ * names of the triggers that were successfully tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& AddSuccessfulExecutions(const char* value) { m_successfulExecutions.push_back(value); return *this; }
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline const Aws::Vector& GetFailedExecutions() const{ return m_failedExecutions; }
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline void SetFailedExecutions(const Aws::Vector& value) { m_failedExecutions = value; }
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline void SetFailedExecutions(Aws::Vector&& value) { m_failedExecutions = value; }
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& WithFailedExecutions(const Aws::Vector& value) { SetFailedExecutions(value); return *this;}
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& WithFailedExecutions(Aws::Vector&& value) { SetFailedExecutions(value); return *this;}
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& AddFailedExecutions(const RepositoryTriggerExecutionFailure& value) { m_failedExecutions.push_back(value); return *this; }
+
+ /**
+ * The list of triggers that were not able to be tested. This list provides the
+ * names of the triggers that could not be tested, separated by commas.
+ */
+ inline TestRepositoryTriggersResult& AddFailedExecutions(RepositoryTriggerExecutionFailure&& value) { m_failedExecutions.push_back(value); return *this; }
+
+ private:
+ Aws::Vector m_successfulExecutions;
+ Aws::Vector m_failedExecutions;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryDescriptionRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryDescriptionRequest.h
index 18b5ca2fb15..29b0fd9d4a4 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryDescriptionRequest.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryDescriptionRequest.h
@@ -78,37 +78,44 @@ namespace Model
inline UpdateRepositoryDescriptionRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline const Aws::String& GetRepositoryDescription() const{ return m_repositoryDescription; }
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline void SetRepositoryDescription(const Aws::String& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline void SetRepositoryDescription(Aws::String&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline void SetRepositoryDescription(const char* value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription.assign(value); }
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline UpdateRepositoryDescriptionRequest& WithRepositoryDescription(const Aws::String& value) { SetRepositoryDescription(value); return *this;}
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline UpdateRepositoryDescriptionRequest& WithRepositoryDescription(Aws::String&& value) { SetRepositoryDescription(value); return *this;}
/**
- * The new comment or description for the specified repository.
+ * The new comment or description for the specified repository. Repository
+ * descriptions are limited to 1,000 characters.
*/
inline UpdateRepositoryDescriptionRequest& WithRepositoryDescription(const char* value) { SetRepositoryDescription(value); return *this;}
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryNameRequest.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryNameRequest.h
index 567525f3e74..894738f3cf1 100644
--- a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryNameRequest.h
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdateRepositoryNameRequest.h
@@ -35,46 +35,74 @@ namespace Model
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
-
+ /**
+ * The existing name of the repository.
+ */
inline const Aws::String& GetOldName() const{ return m_oldName; }
-
+ /**
+ * The existing name of the repository.
+ */
inline void SetOldName(const Aws::String& value) { m_oldNameHasBeenSet = true; m_oldName = value; }
-
+ /**
+ * The existing name of the repository.
+ */
inline void SetOldName(Aws::String&& value) { m_oldNameHasBeenSet = true; m_oldName = value; }
-
+ /**
+ * The existing name of the repository.
+ */
inline void SetOldName(const char* value) { m_oldNameHasBeenSet = true; m_oldName.assign(value); }
-
+ /**
+ * The existing name of the repository.
+ */
inline UpdateRepositoryNameRequest& WithOldName(const Aws::String& value) { SetOldName(value); return *this;}
-
+ /**
+ * The existing name of the repository.
+ */
inline UpdateRepositoryNameRequest& WithOldName(Aws::String&& value) { SetOldName(value); return *this;}
-
+ /**
+ * The existing name of the repository.
+ */
inline UpdateRepositoryNameRequest& WithOldName(const char* value) { SetOldName(value); return *this;}
-
+ /**
+ * The new name for the repository.
+ */
inline const Aws::String& GetNewName() const{ return m_newName; }
-
+ /**
+ * The new name for the repository.
+ */
inline void SetNewName(const Aws::String& value) { m_newNameHasBeenSet = true; m_newName = value; }
-
+ /**
+ * The new name for the repository.
+ */
inline void SetNewName(Aws::String&& value) { m_newNameHasBeenSet = true; m_newName = value; }
-
+ /**
+ * The new name for the repository.
+ */
inline void SetNewName(const char* value) { m_newNameHasBeenSet = true; m_newName.assign(value); }
-
+ /**
+ * The new name for the repository.
+ */
inline UpdateRepositoryNameRequest& WithNewName(const Aws::String& value) { SetNewName(value); return *this;}
-
+ /**
+ * The new name for the repository.
+ */
inline UpdateRepositoryNameRequest& WithNewName(Aws::String&& value) { SetNewName(value); return *this;}
-
+ /**
+ * The new name for the repository.
+ */
inline UpdateRepositoryNameRequest& WithNewName(const char* value) { SetNewName(value); return *this;}
private:
diff --git a/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UserInfo.h b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UserInfo.h
new file mode 100644
index 00000000000..a163c3ed93e
--- /dev/null
+++ b/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UserInfo.h
@@ -0,0 +1,160 @@
+/*
+* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License").
+* You may not use this file except in compliance with the License.
+* A copy of the License is located at
+*
+* http://aws.amazon.com/apache2.0
+*
+* or in the "license" file accompanying this file. This file is distributed
+* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+* express or implied. See the License for the specific language governing
+* permissions and limitations under the License.
+*/
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+} // namespace Json
+} // namespace Utils
+namespace CodeCommit
+{
+namespace Model
+{
+
+ /**
+ * Information about the user who made a specified commit.
+ */
+ class AWS_CODECOMMIT_API UserInfo
+ {
+ public:
+ UserInfo();
+ UserInfo(const Aws::Utils::Json::JsonValue& jsonValue);
+ UserInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
+ Aws::Utils::Json::JsonValue Jsonize() const;
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline const Aws::String& GetName() const{ return m_name; }
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline UserInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline UserInfo& WithName(Aws::String&& value) { SetName(value); return *this;}
+
+ /**
+ * The name of the user who made the specified commit.
+ */
+ inline UserInfo& WithName(const char* value) { SetName(value); return *this;}
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline const Aws::String& GetEmail() const{ return m_email; }
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = value; }
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline UserInfo& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline UserInfo& WithEmail(Aws::String&& value) { SetEmail(value); return *this;}
+
+ /**
+ * The email address associated with the user who made the commit, if any.
+ */
+ inline UserInfo& WithEmail(const char* value) { SetEmail(value); return *this;}
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline const Aws::String& GetDate() const{ return m_date; }
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline void SetDate(const Aws::String& value) { m_dateHasBeenSet = true; m_date = value; }
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline void SetDate(Aws::String&& value) { m_dateHasBeenSet = true; m_date = value; }
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline void SetDate(const char* value) { m_dateHasBeenSet = true; m_date.assign(value); }
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline UserInfo& WithDate(const Aws::String& value) { SetDate(value); return *this;}
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline UserInfo& WithDate(Aws::String&& value) { SetDate(value); return *this;}
+
+ /**
+ * The date when the specified commit was pushed to the repository.
+ */
+ inline UserInfo& WithDate(const char* value) { SetDate(value); return *this;}
+
+ private:
+ Aws::String m_name;
+ bool m_nameHasBeenSet;
+ Aws::String m_email;
+ bool m_emailHasBeenSet;
+ Aws::String m_date;
+ bool m_dateHasBeenSet;
+ };
+
+} // namespace Model
+} // namespace CodeCommit
+} // namespace Aws
diff --git a/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp b/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp
index 191bb06e0e8..76b9bff24f5 100644
--- a/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp
+++ b/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp
@@ -31,9 +31,13 @@
#include
#include
#include
+#include
#include
+#include
#include
#include
+#include
+#include
#include
#include
#include
@@ -255,6 +259,37 @@ void CodeCommitClient::GetBranchAsyncHelper(const GetBranchRequest& request, con
handler(this, request, GetBranch(request), context);
}
+GetCommitOutcome CodeCommitClient::GetCommit(const GetCommitRequest& request) const
+{
+ Aws::StringStream ss;
+ ss << m_uri << "/";
+
+ JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
+ if(outcome.IsSuccess())
+ {
+ return GetCommitOutcome(GetCommitResult(outcome.GetResult()));
+ }
+ else
+ {
+ return GetCommitOutcome(outcome.GetError());
+ }
+}
+
+GetCommitOutcomeCallable CodeCommitClient::GetCommitCallable(const GetCommitRequest& request) const
+{
+ return std::async(std::launch::async, &CodeCommitClient::GetCommit, this, request);
+}
+
+void CodeCommitClient::GetCommitAsync(const GetCommitRequest& request, const GetCommitResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ m_executor->Submit(&CodeCommitClient::GetCommitAsyncHelper, this, request, handler, context);
+}
+
+void CodeCommitClient::GetCommitAsyncHelper(const GetCommitRequest& request, const GetCommitResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ handler(this, request, GetCommit(request), context);
+}
+
GetRepositoryOutcome CodeCommitClient::GetRepository(const GetRepositoryRequest& request) const
{
Aws::StringStream ss;
@@ -286,6 +321,37 @@ void CodeCommitClient::GetRepositoryAsyncHelper(const GetRepositoryRequest& requ
handler(this, request, GetRepository(request), context);
}
+GetRepositoryTriggersOutcome CodeCommitClient::GetRepositoryTriggers(const GetRepositoryTriggersRequest& request) const
+{
+ Aws::StringStream ss;
+ ss << m_uri << "/";
+
+ JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
+ if(outcome.IsSuccess())
+ {
+ return GetRepositoryTriggersOutcome(GetRepositoryTriggersResult(outcome.GetResult()));
+ }
+ else
+ {
+ return GetRepositoryTriggersOutcome(outcome.GetError());
+ }
+}
+
+GetRepositoryTriggersOutcomeCallable CodeCommitClient::GetRepositoryTriggersCallable(const GetRepositoryTriggersRequest& request) const
+{
+ return std::async(std::launch::async, &CodeCommitClient::GetRepositoryTriggers, this, request);
+}
+
+void CodeCommitClient::GetRepositoryTriggersAsync(const GetRepositoryTriggersRequest& request, const GetRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ m_executor->Submit(&CodeCommitClient::GetRepositoryTriggersAsyncHelper, this, request, handler, context);
+}
+
+void CodeCommitClient::GetRepositoryTriggersAsyncHelper(const GetRepositoryTriggersRequest& request, const GetRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ handler(this, request, GetRepositoryTriggers(request), context);
+}
+
ListBranchesOutcome CodeCommitClient::ListBranches(const ListBranchesRequest& request) const
{
Aws::StringStream ss;
@@ -348,6 +414,68 @@ void CodeCommitClient::ListRepositoriesAsyncHelper(const ListRepositoriesRequest
handler(this, request, ListRepositories(request), context);
}
+PutRepositoryTriggersOutcome CodeCommitClient::PutRepositoryTriggers(const PutRepositoryTriggersRequest& request) const
+{
+ Aws::StringStream ss;
+ ss << m_uri << "/";
+
+ JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
+ if(outcome.IsSuccess())
+ {
+ return PutRepositoryTriggersOutcome(PutRepositoryTriggersResult(outcome.GetResult()));
+ }
+ else
+ {
+ return PutRepositoryTriggersOutcome(outcome.GetError());
+ }
+}
+
+PutRepositoryTriggersOutcomeCallable CodeCommitClient::PutRepositoryTriggersCallable(const PutRepositoryTriggersRequest& request) const
+{
+ return std::async(std::launch::async, &CodeCommitClient::PutRepositoryTriggers, this, request);
+}
+
+void CodeCommitClient::PutRepositoryTriggersAsync(const PutRepositoryTriggersRequest& request, const PutRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ m_executor->Submit(&CodeCommitClient::PutRepositoryTriggersAsyncHelper, this, request, handler, context);
+}
+
+void CodeCommitClient::PutRepositoryTriggersAsyncHelper(const PutRepositoryTriggersRequest& request, const PutRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ handler(this, request, PutRepositoryTriggers(request), context);
+}
+
+TestRepositoryTriggersOutcome CodeCommitClient::TestRepositoryTriggers(const TestRepositoryTriggersRequest& request) const
+{
+ Aws::StringStream ss;
+ ss << m_uri << "/";
+
+ JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
+ if(outcome.IsSuccess())
+ {
+ return TestRepositoryTriggersOutcome(TestRepositoryTriggersResult(outcome.GetResult()));
+ }
+ else
+ {
+ return TestRepositoryTriggersOutcome(outcome.GetError());
+ }
+}
+
+TestRepositoryTriggersOutcomeCallable CodeCommitClient::TestRepositoryTriggersCallable(const TestRepositoryTriggersRequest& request) const
+{
+ return std::async(std::launch::async, &CodeCommitClient::TestRepositoryTriggers, this, request);
+}
+
+void CodeCommitClient::TestRepositoryTriggersAsync(const TestRepositoryTriggersRequest& request, const TestRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ m_executor->Submit(&CodeCommitClient::TestRepositoryTriggersAsyncHelper, this, request, handler, context);
+}
+
+void CodeCommitClient::TestRepositoryTriggersAsyncHelper(const TestRepositoryTriggersRequest& request, const TestRepositoryTriggersResponseReceivedHandler& handler, const std::shared_ptr& context) const
+{
+ handler(this, request, TestRepositoryTriggers(request), context);
+}
+
UpdateDefaultBranchOutcome CodeCommitClient::UpdateDefaultBranch(const UpdateDefaultBranchRequest& request) const
{
Aws::StringStream ss;
diff --git a/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp b/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp
index a3842a5359a..da8f26dbe16 100644
--- a/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp
+++ b/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp
@@ -20,29 +20,43 @@ using namespace Aws::Client;
using namespace Aws::CodeCommit;
using namespace Aws::Utils;
-static const int REPOSITORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RepositoryLimitExceededException");
-static const int INVALID_ORDER_HASH = HashingUtils::HashString("InvalidOrderException");
static const int ENCRYPTION_KEY_ACCESS_DENIED_HASH = HashingUtils::HashString("EncryptionKeyAccessDeniedException");
-static const int ENCRYPTION_KEY_UNAVAILABLE_HASH = HashingUtils::HashString("EncryptionKeyUnavailableException");
+static const int INVALID_REPOSITORY_TRIGGER_DESTINATION_ARN_HASH = HashingUtils::HashString("InvalidRepositoryTriggerDestinationArnException");
+static const int REPOSITORY_TRIGGER_EVENTS_LIST_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerEventsListRequiredException");
+static const int COMMIT_ID_REQUIRED_HASH = HashingUtils::HashString("CommitIdRequiredException");
+static const int REPOSITORY_TRIGGER_DESTINATION_ARN_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerDestinationArnRequiredException");
+static const int REPOSITORY_NAMES_REQUIRED_HASH = HashingUtils::HashString("RepositoryNamesRequiredException");
static const int REPOSITORY_NAME_EXISTS_HASH = HashingUtils::HashString("RepositoryNameExistsException");
-static const int ENCRYPTION_KEY_DISABLED_HASH = HashingUtils::HashString("EncryptionKeyDisabledException");
-static const int INVALID_REPOSITORY_NAME_HASH = HashingUtils::HashString("InvalidRepositoryNameException");
+static const int INVALID_REPOSITORY_TRIGGER_EVENTS_HASH = HashingUtils::HashString("InvalidRepositoryTriggerEventsException");
static const int ENCRYPTION_INTEGRITY_CHECKS_FAILED_HASH = HashingUtils::HashString("EncryptionIntegrityChecksFailedException");
-static const int REPOSITORY_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RepositoryDoesNotExistException");
-static const int INVALID_BRANCH_NAME_HASH = HashingUtils::HashString("InvalidBranchNameException");
+static const int INVALID_REPOSITORY_TRIGGER_BRANCH_NAME_HASH = HashingUtils::HashString("InvalidRepositoryTriggerBranchNameException");
+static const int ENCRYPTION_KEY_UNAVAILABLE_HASH = HashingUtils::HashString("EncryptionKeyUnavailableException");
+static const int REPOSITORY_TRIGGER_BRANCH_NAME_LIST_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerBranchNameListRequiredException");
+static const int INVALID_REPOSITORY_NAME_HASH = HashingUtils::HashString("InvalidRepositoryNameException");
+static const int REPOSITORY_TRIGGER_NAME_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerNameRequiredException");
+static const int INVALID_REPOSITORY_TRIGGER_REGION_HASH = HashingUtils::HashString("InvalidRepositoryTriggerRegionException");
+static const int COMMIT_ID_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CommitIdDoesNotExistException");
+static const int INVALID_ORDER_HASH = HashingUtils::HashString("InvalidOrderException");
+static const int INVALID_REPOSITORY_TRIGGER_NAME_HASH = HashingUtils::HashString("InvalidRepositoryTriggerNameException");
+static const int ENCRYPTION_KEY_NOT_FOUND_HASH = HashingUtils::HashString("EncryptionKeyNotFoundException");
+static const int MAXIMUM_BRANCHES_EXCEEDED_HASH = HashingUtils::HashString("MaximumBranchesExceededException");
+static const int REPOSITORY_TRIGGERS_LIST_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggersListRequiredException");
+static const int ENCRYPTION_KEY_DISABLED_HASH = HashingUtils::HashString("EncryptionKeyDisabledException");
static const int INVALID_COMMIT_ID_HASH = HashingUtils::HashString("InvalidCommitIdException");
-static const int REPOSITORY_NAME_REQUIRED_HASH = HashingUtils::HashString("RepositoryNameRequiredException");
+static const int COMMIT_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CommitDoesNotExistException");
+static const int INVALID_SORT_BY_HASH = HashingUtils::HashString("InvalidSortByException");
+static const int BRANCH_NAME_REQUIRED_HASH = HashingUtils::HashString("BranchNameRequiredException");
static const int INVALID_REPOSITORY_DESCRIPTION_HASH = HashingUtils::HashString("InvalidRepositoryDescriptionException");
static const int BRANCH_DOES_NOT_EXIST_HASH = HashingUtils::HashString("BranchDoesNotExistException");
+static const int REPOSITORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RepositoryLimitExceededException");
+static const int INVALID_BRANCH_NAME_HASH = HashingUtils::HashString("InvalidBranchNameException");
+static const int INVALID_CONTINUATION_TOKEN_HASH = HashingUtils::HashString("InvalidContinuationTokenException");
+static const int MAXIMUM_REPOSITORY_TRIGGERS_EXCEEDED_HASH = HashingUtils::HashString("MaximumRepositoryTriggersExceededException");
+static const int REPOSITORY_NAME_REQUIRED_HASH = HashingUtils::HashString("RepositoryNameRequiredException");
static const int BRANCH_NAME_EXISTS_HASH = HashingUtils::HashString("BranchNameExistsException");
-static const int REPOSITORY_NAMES_REQUIRED_HASH = HashingUtils::HashString("RepositoryNamesRequiredException");
-static const int BRANCH_NAME_REQUIRED_HASH = HashingUtils::HashString("BranchNameRequiredException");
-static const int COMMIT_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CommitDoesNotExistException");
+static const int INVALID_REPOSITORY_TRIGGER_CUSTOM_DATA_HASH = HashingUtils::HashString("InvalidRepositoryTriggerCustomDataException");
+static const int REPOSITORY_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RepositoryDoesNotExistException");
static const int MAXIMUM_REPOSITORY_NAMES_EXCEEDED_HASH = HashingUtils::HashString("MaximumRepositoryNamesExceededException");
-static const int COMMIT_ID_REQUIRED_HASH = HashingUtils::HashString("CommitIdRequiredException");
-static const int INVALID_CONTINUATION_TOKEN_HASH = HashingUtils::HashString("InvalidContinuationTokenException");
-static const int ENCRYPTION_KEY_NOT_FOUND_HASH = HashingUtils::HashString("EncryptionKeyNotFoundException");
-static const int INVALID_SORT_BY_HASH = HashingUtils::HashString("InvalidSortByException");
namespace Aws
{
@@ -55,53 +69,109 @@ AWSError GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
- if (hashCode == REPOSITORY_LIMIT_EXCEEDED_HASH)
+ if (hashCode == ENCRYPTION_KEY_ACCESS_DENIED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::REPOSITORY_LIMIT_EXCEEDED), false);
+ return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_ACCESS_DENIED), false);
}
- else if (hashCode == INVALID_ORDER_HASH)
+ else if (hashCode == INVALID_REPOSITORY_TRIGGER_DESTINATION_ARN_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::INVALID_ORDER), false);
+ return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_TRIGGER_DESTINATION_ARN), false);
}
- else if (hashCode == ENCRYPTION_KEY_ACCESS_DENIED_HASH)
+ else if (hashCode == REPOSITORY_TRIGGER_EVENTS_LIST_REQUIRED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_ACCESS_DENIED), false);
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_TRIGGER_EVENTS_LIST_REQUIRED), false);
}
- else if (hashCode == ENCRYPTION_KEY_UNAVAILABLE_HASH)
+ else if (hashCode == COMMIT_ID_REQUIRED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_UNAVAILABLE), false);
+ return AWSError(static_cast(CodeCommitErrors::COMMIT_ID_REQUIRED), false);
+ }
+ else if (hashCode == REPOSITORY_TRIGGER_DESTINATION_ARN_REQUIRED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_TRIGGER_DESTINATION_ARN_REQUIRED), false);
+ }
+ else if (hashCode == REPOSITORY_NAMES_REQUIRED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_NAMES_REQUIRED), false);
}
else if (hashCode == REPOSITORY_NAME_EXISTS_HASH)
{
return AWSError(static_cast(CodeCommitErrors::REPOSITORY_NAME_EXISTS), false);
}
- else if (hashCode == ENCRYPTION_KEY_DISABLED_HASH)
+ else if (hashCode == INVALID_REPOSITORY_TRIGGER_EVENTS_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_DISABLED), false);
+ return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_TRIGGER_EVENTS), false);
+ }
+ else if (hashCode == ENCRYPTION_INTEGRITY_CHECKS_FAILED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_INTEGRITY_CHECKS_FAILED), false);
+ }
+ else if (hashCode == INVALID_REPOSITORY_TRIGGER_BRANCH_NAME_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_TRIGGER_BRANCH_NAME), false);
+ }
+ else if (hashCode == ENCRYPTION_KEY_UNAVAILABLE_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_UNAVAILABLE), false);
+ }
+ else if (hashCode == REPOSITORY_TRIGGER_BRANCH_NAME_LIST_REQUIRED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_TRIGGER_BRANCH_NAME_LIST_REQUIRED), false);
}
else if (hashCode == INVALID_REPOSITORY_NAME_HASH)
{
return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_NAME), false);
}
- else if (hashCode == ENCRYPTION_INTEGRITY_CHECKS_FAILED_HASH)
+ else if (hashCode == REPOSITORY_TRIGGER_NAME_REQUIRED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_INTEGRITY_CHECKS_FAILED), false);
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_TRIGGER_NAME_REQUIRED), false);
}
- else if (hashCode == REPOSITORY_DOES_NOT_EXIST_HASH)
+ else if (hashCode == INVALID_REPOSITORY_TRIGGER_REGION_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::REPOSITORY_DOES_NOT_EXIST), false);
+ return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_TRIGGER_REGION), false);
}
- else if (hashCode == INVALID_BRANCH_NAME_HASH)
+ else if (hashCode == COMMIT_ID_DOES_NOT_EXIST_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::INVALID_BRANCH_NAME), false);
+ return AWSError(static_cast(CodeCommitErrors::COMMIT_ID_DOES_NOT_EXIST), false);
+ }
+ else if (hashCode == INVALID_ORDER_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::INVALID_ORDER), false);
+ }
+ else if (hashCode == INVALID_REPOSITORY_TRIGGER_NAME_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_TRIGGER_NAME), false);
+ }
+ else if (hashCode == ENCRYPTION_KEY_NOT_FOUND_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_NOT_FOUND), false);
+ }
+ else if (hashCode == MAXIMUM_BRANCHES_EXCEEDED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::MAXIMUM_BRANCHES_EXCEEDED), false);
+ }
+ else if (hashCode == REPOSITORY_TRIGGERS_LIST_REQUIRED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_TRIGGERS_LIST_REQUIRED), false);
+ }
+ else if (hashCode == ENCRYPTION_KEY_DISABLED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::ENCRYPTION_KEY_DISABLED), false);
}
else if (hashCode == INVALID_COMMIT_ID_HASH)
{
return AWSError(static_cast(CodeCommitErrors::INVALID_COMMIT_ID), false);
}
- else if (hashCode == REPOSITORY_NAME_REQUIRED_HASH)
+ else if (hashCode == COMMIT_DOES_NOT_EXIST_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::REPOSITORY_NAME_REQUIRED), false);
+ return AWSError(static_cast(CodeCommitErrors::COMMIT_DOES_NOT_EXIST), false);
+ }
+ else if (hashCode == INVALID_SORT_BY_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::INVALID_SORT_BY), false);
+ }
+ else if (hashCode == BRANCH_NAME_REQUIRED_HASH)
+ {
+ return AWSError(static_cast(CodeCommitErrors::BRANCH_NAME_REQUIRED), false);
}
else if (hashCode == INVALID_REPOSITORY_DESCRIPTION_HASH)
{
@@ -111,41 +181,41 @@ AWSError GetErrorForName(const char* errorName)
{
return AWSError(static_cast(CodeCommitErrors::BRANCH_DOES_NOT_EXIST), false);
}
- else if (hashCode == BRANCH_NAME_EXISTS_HASH)
+ else if (hashCode == REPOSITORY_LIMIT_EXCEEDED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::BRANCH_NAME_EXISTS), false);
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_LIMIT_EXCEEDED), false);
}
- else if (hashCode == REPOSITORY_NAMES_REQUIRED_HASH)
+ else if (hashCode == INVALID_BRANCH_NAME_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::REPOSITORY_NAMES_REQUIRED), false);
+ return AWSError(static_cast(CodeCommitErrors::INVALID_BRANCH_NAME), false);
}
- else if (hashCode == BRANCH_NAME_REQUIRED_HASH)
+ else if (hashCode == INVALID_CONTINUATION_TOKEN_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::BRANCH_NAME_REQUIRED), false);
+ return AWSError(static_cast(CodeCommitErrors::INVALID_CONTINUATION_TOKEN), false);
}
- else if (hashCode == COMMIT_DOES_NOT_EXIST_HASH)
+ else if (hashCode == MAXIMUM_REPOSITORY_TRIGGERS_EXCEEDED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::COMMIT_DOES_NOT_EXIST), false);
+ return AWSError(static_cast(CodeCommitErrors::MAXIMUM_REPOSITORY_TRIGGERS_EXCEEDED), false);
}
- else if (hashCode == MAXIMUM_REPOSITORY_NAMES_EXCEEDED_HASH)
+ else if (hashCode == REPOSITORY_NAME_REQUIRED_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::MAXIMUM_REPOSITORY_NAMES_EXCEEDED), false);
+ return AWSError(static_cast(CodeCommitErrors::REPOSITORY_NAME_REQUIRED), false);
}
- else if (hashCode == COMMIT_ID_REQUIRED_HASH)
+ else if (hashCode == BRANCH_NAME_EXISTS_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::COMMIT_ID_REQUIRED), false);
+ return AWSError(static_cast(CodeCommitErrors::BRANCH_NAME_EXISTS), false);
}
- else if (hashCode == INVALID_CONTINUATION_TOKEN_HASH)
+ else if (hashCode == INVALID_REPOSITORY_TRIGGER_CUSTOM_DATA_HASH)
{
- return AWSError(static_cast(CodeCommitErrors::INVALID_CONTINUATION_TOKEN), false);
+ return AWSError(static_cast(CodeCommitErrors::INVALID_REPOSITORY_TRIGGER_CUSTOM_DATA), false);
}
- else if (hashCode == ENCRYPTION_KEY_NOT_FOUND_HASH)
+ else if (hashCode == REPOSITORY_DOES_NOT_EXIST_HASH)
{
- return AWSError(static_cast