AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CommentsForPullRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/Comment.h>
9#include <aws/codecommit/model/Location.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit {
23namespace Model {
24
32 public:
33 AWS_CODECOMMIT_API CommentsForPullRequest() = default;
36 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
43 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
44 template <typename PullRequestIdT = Aws::String>
45 void SetPullRequestId(PullRequestIdT&& value) {
46 m_pullRequestIdHasBeenSet = true;
47 m_pullRequestId = std::forward<PullRequestIdT>(value);
48 }
49 template <typename PullRequestIdT = Aws::String>
50 CommentsForPullRequest& WithPullRequestId(PullRequestIdT&& value) {
51 SetPullRequestId(std::forward<PullRequestIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 template <typename RepositoryNameT = Aws::String>
63 void SetRepositoryName(RepositoryNameT&& value) {
64 m_repositoryNameHasBeenSet = true;
65 m_repositoryName = std::forward<RepositoryNameT>(value);
66 }
67 template <typename RepositoryNameT = Aws::String>
68 CommentsForPullRequest& WithRepositoryName(RepositoryNameT&& value) {
69 SetRepositoryName(std::forward<RepositoryNameT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetBeforeCommitId() const { return m_beforeCommitId; }
82 inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
83 template <typename BeforeCommitIdT = Aws::String>
84 void SetBeforeCommitId(BeforeCommitIdT&& value) {
85 m_beforeCommitIdHasBeenSet = true;
86 m_beforeCommitId = std::forward<BeforeCommitIdT>(value);
87 }
88 template <typename BeforeCommitIdT = Aws::String>
89 CommentsForPullRequest& WithBeforeCommitId(BeforeCommitIdT&& value) {
90 SetBeforeCommitId(std::forward<BeforeCommitIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetAfterCommitId() const { return m_afterCommitId; }
101 inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
102 template <typename AfterCommitIdT = Aws::String>
103 void SetAfterCommitId(AfterCommitIdT&& value) {
104 m_afterCommitIdHasBeenSet = true;
105 m_afterCommitId = std::forward<AfterCommitIdT>(value);
106 }
107 template <typename AfterCommitIdT = Aws::String>
108 CommentsForPullRequest& WithAfterCommitId(AfterCommitIdT&& value) {
109 SetAfterCommitId(std::forward<AfterCommitIdT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetBeforeBlobId() const { return m_beforeBlobId; }
120 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
121 template <typename BeforeBlobIdT = Aws::String>
122 void SetBeforeBlobId(BeforeBlobIdT&& value) {
123 m_beforeBlobIdHasBeenSet = true;
124 m_beforeBlobId = std::forward<BeforeBlobIdT>(value);
125 }
126 template <typename BeforeBlobIdT = Aws::String>
127 CommentsForPullRequest& WithBeforeBlobId(BeforeBlobIdT&& value) {
128 SetBeforeBlobId(std::forward<BeforeBlobIdT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetAfterBlobId() const { return m_afterBlobId; }
139 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
140 template <typename AfterBlobIdT = Aws::String>
141 void SetAfterBlobId(AfterBlobIdT&& value) {
142 m_afterBlobIdHasBeenSet = true;
143 m_afterBlobId = std::forward<AfterBlobIdT>(value);
144 }
145 template <typename AfterBlobIdT = Aws::String>
147 SetAfterBlobId(std::forward<AfterBlobIdT>(value));
148 return *this;
149 }
151
153
158 inline const Location& GetLocation() const { return m_location; }
159 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
160 template <typename LocationT = Location>
161 void SetLocation(LocationT&& value) {
162 m_locationHasBeenSet = true;
163 m_location = std::forward<LocationT>(value);
164 }
165 template <typename LocationT = Location>
167 SetLocation(std::forward<LocationT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::Vector<Comment>& GetComments() const { return m_comments; }
178 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
179 template <typename CommentsT = Aws::Vector<Comment>>
180 void SetComments(CommentsT&& value) {
181 m_commentsHasBeenSet = true;
182 m_comments = std::forward<CommentsT>(value);
183 }
184 template <typename CommentsT = Aws::Vector<Comment>>
186 SetComments(std::forward<CommentsT>(value));
187 return *this;
188 }
189 template <typename CommentsT = Comment>
191 m_commentsHasBeenSet = true;
192 m_comments.emplace_back(std::forward<CommentsT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_pullRequestId;
198
199 Aws::String m_repositoryName;
200
201 Aws::String m_beforeCommitId;
202
203 Aws::String m_afterCommitId;
204
205 Aws::String m_beforeBlobId;
206
207 Aws::String m_afterBlobId;
208
209 Location m_location;
210
211 Aws::Vector<Comment> m_comments;
212 bool m_pullRequestIdHasBeenSet = false;
213 bool m_repositoryNameHasBeenSet = false;
214 bool m_beforeCommitIdHasBeenSet = false;
215 bool m_afterCommitIdHasBeenSet = false;
216 bool m_beforeBlobIdHasBeenSet = false;
217 bool m_afterBlobIdHasBeenSet = false;
218 bool m_locationHasBeenSet = false;
219 bool m_commentsHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace CodeCommit
224} // namespace Aws
CommentsForPullRequest & WithBeforeBlobId(BeforeBlobIdT &&value)
CommentsForPullRequest & WithAfterBlobId(AfterBlobIdT &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
CommentsForPullRequest & WithLocation(LocationT &&value)
const Aws::Vector< Comment > & GetComments() const
CommentsForPullRequest & WithBeforeCommitId(BeforeCommitIdT &&value)
CommentsForPullRequest & WithAfterCommitId(AfterCommitIdT &&value)
CommentsForPullRequest & WithRepositoryName(RepositoryNameT &&value)
AWS_CODECOMMIT_API CommentsForPullRequest(Aws::Utils::Json::JsonView jsonValue)
CommentsForPullRequest & AddComments(CommentsT &&value)
AWS_CODECOMMIT_API CommentsForPullRequest()=default
AWS_CODECOMMIT_API CommentsForPullRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
CommentsForPullRequest & WithPullRequestId(PullRequestIdT &&value)
CommentsForPullRequest & WithComments(CommentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue