AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PullRequestIdT = Aws::String>
51 void SetPullRequestId(PullRequestIdT&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::forward<PullRequestIdT>(value); }
52 template<typename PullRequestIdT = Aws::String>
53 CommentsForPullRequest& WithPullRequestId(PullRequestIdT&& value) { SetPullRequestId(std::forward<PullRequestIdT>(value)); return *this;}
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) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
64 template<typename RepositoryNameT = Aws::String>
65 CommentsForPullRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
67
69
75 inline const Aws::String& GetBeforeCommitId() const { return m_beforeCommitId; }
76 inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
77 template<typename BeforeCommitIdT = Aws::String>
78 void SetBeforeCommitId(BeforeCommitIdT&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::forward<BeforeCommitIdT>(value); }
79 template<typename BeforeCommitIdT = Aws::String>
80 CommentsForPullRequest& WithBeforeCommitId(BeforeCommitIdT&& value) { SetBeforeCommitId(std::forward<BeforeCommitIdT>(value)); return *this;}
82
84
88 inline const Aws::String& GetAfterCommitId() const { return m_afterCommitId; }
89 inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
90 template<typename AfterCommitIdT = Aws::String>
91 void SetAfterCommitId(AfterCommitIdT&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::forward<AfterCommitIdT>(value); }
92 template<typename AfterCommitIdT = Aws::String>
93 CommentsForPullRequest& WithAfterCommitId(AfterCommitIdT&& value) { SetAfterCommitId(std::forward<AfterCommitIdT>(value)); return *this;}
95
97
101 inline const Aws::String& GetBeforeBlobId() const { return m_beforeBlobId; }
102 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
103 template<typename BeforeBlobIdT = Aws::String>
104 void SetBeforeBlobId(BeforeBlobIdT&& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = std::forward<BeforeBlobIdT>(value); }
105 template<typename BeforeBlobIdT = Aws::String>
106 CommentsForPullRequest& WithBeforeBlobId(BeforeBlobIdT&& value) { SetBeforeBlobId(std::forward<BeforeBlobIdT>(value)); return *this;}
108
110
114 inline const Aws::String& GetAfterBlobId() const { return m_afterBlobId; }
115 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
116 template<typename AfterBlobIdT = Aws::String>
117 void SetAfterBlobId(AfterBlobIdT&& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = std::forward<AfterBlobIdT>(value); }
118 template<typename AfterBlobIdT = Aws::String>
119 CommentsForPullRequest& WithAfterBlobId(AfterBlobIdT&& value) { SetAfterBlobId(std::forward<AfterBlobIdT>(value)); return *this;}
121
123
128 inline const Location& GetLocation() const { return m_location; }
129 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
130 template<typename LocationT = Location>
131 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
132 template<typename LocationT = Location>
133 CommentsForPullRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
135
137
141 inline const Aws::Vector<Comment>& GetComments() const { return m_comments; }
142 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
143 template<typename CommentsT = Aws::Vector<Comment>>
144 void SetComments(CommentsT&& value) { m_commentsHasBeenSet = true; m_comments = std::forward<CommentsT>(value); }
145 template<typename CommentsT = Aws::Vector<Comment>>
146 CommentsForPullRequest& WithComments(CommentsT&& value) { SetComments(std::forward<CommentsT>(value)); return *this;}
147 template<typename CommentsT = Comment>
148 CommentsForPullRequest& AddComments(CommentsT&& value) { m_commentsHasBeenSet = true; m_comments.emplace_back(std::forward<CommentsT>(value)); return *this; }
150 private:
151
152 Aws::String m_pullRequestId;
153 bool m_pullRequestIdHasBeenSet = false;
154
155 Aws::String m_repositoryName;
156 bool m_repositoryNameHasBeenSet = false;
157
158 Aws::String m_beforeCommitId;
159 bool m_beforeCommitIdHasBeenSet = false;
160
161 Aws::String m_afterCommitId;
162 bool m_afterCommitIdHasBeenSet = false;
163
164 Aws::String m_beforeBlobId;
165 bool m_beforeBlobIdHasBeenSet = false;
166
167 Aws::String m_afterBlobId;
168 bool m_afterBlobIdHasBeenSet = false;
169
170 Location m_location;
171 bool m_locationHasBeenSet = false;
172
173 Aws::Vector<Comment> m_comments;
174 bool m_commentsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace CodeCommit
179} // 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