AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CommentsForPullRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/Location.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecommit/model/Comment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODECOMMIT_API CommentsForPullRequest();
41 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
49 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
50 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
51 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
52 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
53 inline CommentsForPullRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
54 inline CommentsForPullRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
55 inline CommentsForPullRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
57
59
62 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
63 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
64 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
65 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
66 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
67 inline CommentsForPullRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
68 inline CommentsForPullRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
69 inline CommentsForPullRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
71
73
79 inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
80 inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
81 inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
82 inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
83 inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
84 inline CommentsForPullRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
85 inline CommentsForPullRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
86 inline CommentsForPullRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
88
90
94 inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
95 inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
96 inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
97 inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
98 inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
99 inline CommentsForPullRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
100 inline CommentsForPullRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
101 inline CommentsForPullRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
103
105
109 inline const Aws::String& GetBeforeBlobId() const{ return m_beforeBlobId; }
110 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
111 inline void SetBeforeBlobId(const Aws::String& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = value; }
112 inline void SetBeforeBlobId(Aws::String&& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = std::move(value); }
113 inline void SetBeforeBlobId(const char* value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId.assign(value); }
114 inline CommentsForPullRequest& WithBeforeBlobId(const Aws::String& value) { SetBeforeBlobId(value); return *this;}
115 inline CommentsForPullRequest& WithBeforeBlobId(Aws::String&& value) { SetBeforeBlobId(std::move(value)); return *this;}
116 inline CommentsForPullRequest& WithBeforeBlobId(const char* value) { SetBeforeBlobId(value); return *this;}
118
120
124 inline const Aws::String& GetAfterBlobId() const{ return m_afterBlobId; }
125 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
126 inline void SetAfterBlobId(const Aws::String& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = value; }
127 inline void SetAfterBlobId(Aws::String&& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = std::move(value); }
128 inline void SetAfterBlobId(const char* value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId.assign(value); }
129 inline CommentsForPullRequest& WithAfterBlobId(const Aws::String& value) { SetAfterBlobId(value); return *this;}
130 inline CommentsForPullRequest& WithAfterBlobId(Aws::String&& value) { SetAfterBlobId(std::move(value)); return *this;}
131 inline CommentsForPullRequest& WithAfterBlobId(const char* value) { SetAfterBlobId(value); return *this;}
133
135
140 inline const Location& GetLocation() const{ return m_location; }
141 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
142 inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
143 inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
144 inline CommentsForPullRequest& WithLocation(const Location& value) { SetLocation(value); return *this;}
145 inline CommentsForPullRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
147
149
153 inline const Aws::Vector<Comment>& GetComments() const{ return m_comments; }
154 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
155 inline void SetComments(const Aws::Vector<Comment>& value) { m_commentsHasBeenSet = true; m_comments = value; }
156 inline void SetComments(Aws::Vector<Comment>&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
157 inline CommentsForPullRequest& WithComments(const Aws::Vector<Comment>& value) { SetComments(value); return *this;}
158 inline CommentsForPullRequest& WithComments(Aws::Vector<Comment>&& value) { SetComments(std::move(value)); return *this;}
159 inline CommentsForPullRequest& AddComments(const Comment& value) { m_commentsHasBeenSet = true; m_comments.push_back(value); return *this; }
160 inline CommentsForPullRequest& AddComments(Comment&& value) { m_commentsHasBeenSet = true; m_comments.push_back(std::move(value)); return *this; }
162 private:
163
164 Aws::String m_pullRequestId;
165 bool m_pullRequestIdHasBeenSet = false;
166
167 Aws::String m_repositoryName;
168 bool m_repositoryNameHasBeenSet = false;
169
170 Aws::String m_beforeCommitId;
171 bool m_beforeCommitIdHasBeenSet = false;
172
173 Aws::String m_afterCommitId;
174 bool m_afterCommitIdHasBeenSet = false;
175
176 Aws::String m_beforeBlobId;
177 bool m_beforeBlobIdHasBeenSet = false;
178
179 Aws::String m_afterBlobId;
180 bool m_afterBlobIdHasBeenSet = false;
181
182 Location m_location;
183 bool m_locationHasBeenSet = false;
184
185 Aws::Vector<Comment> m_comments;
186 bool m_commentsHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace CodeCommit
191} // namespace Aws
CommentsForPullRequest & WithLocation(const Location &value)
CommentsForPullRequest & AddComments(const Comment &value)
CommentsForPullRequest & AddComments(Comment &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
CommentsForPullRequest & WithLocation(Location &&value)
CommentsForPullRequest & WithAfterCommitId(const Aws::String &value)
CommentsForPullRequest & WithAfterCommitId(const char *value)
const Aws::Vector< Comment > & GetComments() const
CommentsForPullRequest & WithPullRequestId(const char *value)
CommentsForPullRequest & WithComments(Aws::Vector< Comment > &&value)
CommentsForPullRequest & WithRepositoryName(const char *value)
CommentsForPullRequest & WithBeforeBlobId(const Aws::String &value)
CommentsForPullRequest & WithAfterBlobId(const Aws::String &value)
CommentsForPullRequest & WithAfterBlobId(Aws::String &&value)
CommentsForPullRequest & WithPullRequestId(const Aws::String &value)
void SetComments(const Aws::Vector< Comment > &value)
CommentsForPullRequest & WithBeforeBlobId(const char *value)
CommentsForPullRequest & WithBeforeCommitId(const char *value)
CommentsForPullRequest & WithComments(const Aws::Vector< Comment > &value)
CommentsForPullRequest & WithAfterBlobId(const char *value)
CommentsForPullRequest & WithBeforeCommitId(const Aws::String &value)
CommentsForPullRequest & WithAfterCommitId(Aws::String &&value)
AWS_CODECOMMIT_API CommentsForPullRequest(Aws::Utils::Json::JsonView jsonValue)
CommentsForPullRequest & WithBeforeBlobId(Aws::String &&value)
void SetComments(Aws::Vector< Comment > &&value)
CommentsForPullRequest & WithPullRequestId(Aws::String &&value)
CommentsForPullRequest & WithRepositoryName(Aws::String &&value)
CommentsForPullRequest & WithRepositoryName(const Aws::String &value)
AWS_CODECOMMIT_API CommentsForPullRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
CommentsForPullRequest & WithBeforeCommitId(Aws::String &&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