/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CodeCommit { namespace Model { /** */ class BatchGetCommitsRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API BatchGetCommitsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchGetCommits"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline const Aws::Vector& GetCommitIds() const{ return m_commitIds; } /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline bool CommitIdsHasBeenSet() const { return m_commitIdsHasBeenSet; } /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline void SetCommitIds(const Aws::Vector& value) { m_commitIdsHasBeenSet = true; m_commitIds = value; } /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline void SetCommitIds(Aws::Vector&& value) { m_commitIdsHasBeenSet = true; m_commitIds = std::move(value); } /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline BatchGetCommitsRequest& WithCommitIds(const Aws::Vector& value) { SetCommitIds(value); return *this;} /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline BatchGetCommitsRequest& WithCommitIds(Aws::Vector&& value) { SetCommitIds(std::move(value)); return *this;} /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline BatchGetCommitsRequest& AddCommitIds(const Aws::String& value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(value); return *this; } /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline BatchGetCommitsRequest& AddCommitIds(Aws::String&& value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(std::move(value)); return *this; } /** *

The full commit IDs of the commits to get information about.

*

You must supply the full SHA IDs of each commit. You cannot use shortened SHA * IDs.

*/ inline BatchGetCommitsRequest& AddCommitIds(const char* value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(value); return *this; } /** *

The name of the repository that contains the commits.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository that contains the commits.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository that contains the commits.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository that contains the commits.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository that contains the commits.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository that contains the commits.

*/ inline BatchGetCommitsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository that contains the commits.

*/ inline BatchGetCommitsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository that contains the commits.

*/ inline BatchGetCommitsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} private: Aws::Vector m_commitIds; bool m_commitIdsHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws