AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CommentsForComparedCommit.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 CommentsForComparedCommit() = default;
36 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
43 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
44 template <typename RepositoryNameT = Aws::String>
45 void SetRepositoryName(RepositoryNameT&& value) {
46 m_repositoryNameHasBeenSet = true;
47 m_repositoryName = std::forward<RepositoryNameT>(value);
48 }
49 template <typename RepositoryNameT = Aws::String>
51 SetRepositoryName(std::forward<RepositoryNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetBeforeCommitId() const { return m_beforeCommitId; }
62 inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
63 template <typename BeforeCommitIdT = Aws::String>
64 void SetBeforeCommitId(BeforeCommitIdT&& value) {
65 m_beforeCommitIdHasBeenSet = true;
66 m_beforeCommitId = std::forward<BeforeCommitIdT>(value);
67 }
68 template <typename BeforeCommitIdT = Aws::String>
70 SetBeforeCommitId(std::forward<BeforeCommitIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetAfterCommitId() const { return m_afterCommitId; }
81 inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
82 template <typename AfterCommitIdT = Aws::String>
83 void SetAfterCommitId(AfterCommitIdT&& value) {
84 m_afterCommitIdHasBeenSet = true;
85 m_afterCommitId = std::forward<AfterCommitIdT>(value);
86 }
87 template <typename AfterCommitIdT = Aws::String>
89 SetAfterCommitId(std::forward<AfterCommitIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetBeforeBlobId() const { return m_beforeBlobId; }
100 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
101 template <typename BeforeBlobIdT = Aws::String>
102 void SetBeforeBlobId(BeforeBlobIdT&& value) {
103 m_beforeBlobIdHasBeenSet = true;
104 m_beforeBlobId = std::forward<BeforeBlobIdT>(value);
105 }
106 template <typename BeforeBlobIdT = Aws::String>
108 SetBeforeBlobId(std::forward<BeforeBlobIdT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetAfterBlobId() const { return m_afterBlobId; }
119 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
120 template <typename AfterBlobIdT = Aws::String>
121 void SetAfterBlobId(AfterBlobIdT&& value) {
122 m_afterBlobIdHasBeenSet = true;
123 m_afterBlobId = std::forward<AfterBlobIdT>(value);
124 }
125 template <typename AfterBlobIdT = Aws::String>
127 SetAfterBlobId(std::forward<AfterBlobIdT>(value));
128 return *this;
129 }
131
133
138 inline const Location& GetLocation() const { return m_location; }
139 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
140 template <typename LocationT = Location>
141 void SetLocation(LocationT&& value) {
142 m_locationHasBeenSet = true;
143 m_location = std::forward<LocationT>(value);
144 }
145 template <typename LocationT = Location>
147 SetLocation(std::forward<LocationT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Vector<Comment>& GetComments() const { return m_comments; }
158 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
159 template <typename CommentsT = Aws::Vector<Comment>>
160 void SetComments(CommentsT&& value) {
161 m_commentsHasBeenSet = true;
162 m_comments = std::forward<CommentsT>(value);
163 }
164 template <typename CommentsT = Aws::Vector<Comment>>
166 SetComments(std::forward<CommentsT>(value));
167 return *this;
168 }
169 template <typename CommentsT = Comment>
171 m_commentsHasBeenSet = true;
172 m_comments.emplace_back(std::forward<CommentsT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_repositoryName;
178
179 Aws::String m_beforeCommitId;
180
181 Aws::String m_afterCommitId;
182
183 Aws::String m_beforeBlobId;
184
185 Aws::String m_afterBlobId;
186
187 Location m_location;
188
189 Aws::Vector<Comment> m_comments;
190 bool m_repositoryNameHasBeenSet = false;
191 bool m_beforeCommitIdHasBeenSet = false;
192 bool m_afterCommitIdHasBeenSet = false;
193 bool m_beforeBlobIdHasBeenSet = false;
194 bool m_afterBlobIdHasBeenSet = false;
195 bool m_locationHasBeenSet = false;
196 bool m_commentsHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace CodeCommit
201} // namespace Aws
AWS_CODECOMMIT_API CommentsForComparedCommit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
CommentsForComparedCommit & WithBeforeBlobId(BeforeBlobIdT &&value)
CommentsForComparedCommit & WithAfterCommitId(AfterCommitIdT &&value)
CommentsForComparedCommit & WithComments(CommentsT &&value)
CommentsForComparedCommit & WithBeforeCommitId(BeforeCommitIdT &&value)
CommentsForComparedCommit & AddComments(CommentsT &&value)
CommentsForComparedCommit & WithLocation(LocationT &&value)
AWS_CODECOMMIT_API CommentsForComparedCommit(Aws::Utils::Json::JsonView jsonValue)
CommentsForComparedCommit & WithRepositoryName(RepositoryNameT &&value)
CommentsForComparedCommit & WithAfterBlobId(AfterBlobIdT &&value)
AWS_CODECOMMIT_API CommentsForComparedCommit()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue