AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
BatchGetCommitsRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeCommit {
16namespace Model {
17
21 public:
22 AWS_CODECOMMIT_API BatchGetCommitsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchGetCommits"; }
29
30 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::Vector<Aws::String>& GetCommitIds() const { return m_commitIds; }
41 inline bool CommitIdsHasBeenSet() const { return m_commitIdsHasBeenSet; }
42 template <typename CommitIdsT = Aws::Vector<Aws::String>>
43 void SetCommitIds(CommitIdsT&& value) {
44 m_commitIdsHasBeenSet = true;
45 m_commitIds = std::forward<CommitIdsT>(value);
46 }
47 template <typename CommitIdsT = Aws::Vector<Aws::String>>
49 SetCommitIds(std::forward<CommitIdsT>(value));
50 return *this;
51 }
52 template <typename CommitIdsT = Aws::String>
53 BatchGetCommitsRequest& AddCommitIds(CommitIdsT&& value) {
54 m_commitIdsHasBeenSet = true;
55 m_commitIds.emplace_back(std::forward<CommitIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
65 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
66 template <typename RepositoryNameT = Aws::String>
67 void SetRepositoryName(RepositoryNameT&& value) {
68 m_repositoryNameHasBeenSet = true;
69 m_repositoryName = std::forward<RepositoryNameT>(value);
70 }
71 template <typename RepositoryNameT = Aws::String>
72 BatchGetCommitsRequest& WithRepositoryName(RepositoryNameT&& value) {
73 SetRepositoryName(std::forward<RepositoryNameT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<Aws::String> m_commitIds;
79
80 Aws::String m_repositoryName;
81 bool m_commitIdsHasBeenSet = false;
82 bool m_repositoryNameHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CodeCommit
87} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
BatchGetCommitsRequest & WithCommitIds(CommitIdsT &&value)
BatchGetCommitsRequest & AddCommitIds(CommitIdsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsRequest()=default
BatchGetCommitsRequest & WithRepositoryName(RepositoryNameT &&value)
const Aws::Vector< Aws::String > & GetCommitIds() const
virtual const char * GetServiceRequestName() const override
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector