AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CommentsForComparedCommit.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 CommentsForComparedCommit();
41 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
49 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
52 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
53 inline CommentsForComparedCommit& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
54 inline CommentsForComparedCommit& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
55 inline CommentsForComparedCommit& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
57
59
63 inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
64 inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
65 inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
66 inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
67 inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
68 inline CommentsForComparedCommit& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
69 inline CommentsForComparedCommit& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
70 inline CommentsForComparedCommit& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
72
74
78 inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
79 inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
80 inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
81 inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
82 inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
83 inline CommentsForComparedCommit& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
84 inline CommentsForComparedCommit& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
85 inline CommentsForComparedCommit& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
87
89
93 inline const Aws::String& GetBeforeBlobId() const{ return m_beforeBlobId; }
94 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
95 inline void SetBeforeBlobId(const Aws::String& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = value; }
96 inline void SetBeforeBlobId(Aws::String&& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = std::move(value); }
97 inline void SetBeforeBlobId(const char* value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId.assign(value); }
98 inline CommentsForComparedCommit& WithBeforeBlobId(const Aws::String& value) { SetBeforeBlobId(value); return *this;}
99 inline CommentsForComparedCommit& WithBeforeBlobId(Aws::String&& value) { SetBeforeBlobId(std::move(value)); return *this;}
100 inline CommentsForComparedCommit& WithBeforeBlobId(const char* value) { SetBeforeBlobId(value); return *this;}
102
104
108 inline const Aws::String& GetAfterBlobId() const{ return m_afterBlobId; }
109 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
110 inline void SetAfterBlobId(const Aws::String& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = value; }
111 inline void SetAfterBlobId(Aws::String&& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = std::move(value); }
112 inline void SetAfterBlobId(const char* value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId.assign(value); }
113 inline CommentsForComparedCommit& WithAfterBlobId(const Aws::String& value) { SetAfterBlobId(value); return *this;}
114 inline CommentsForComparedCommit& WithAfterBlobId(Aws::String&& value) { SetAfterBlobId(std::move(value)); return *this;}
115 inline CommentsForComparedCommit& WithAfterBlobId(const char* value) { SetAfterBlobId(value); return *this;}
117
119
124 inline const Location& GetLocation() const{ return m_location; }
125 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
126 inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
127 inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
128 inline CommentsForComparedCommit& WithLocation(const Location& value) { SetLocation(value); return *this;}
129 inline CommentsForComparedCommit& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
131
133
137 inline const Aws::Vector<Comment>& GetComments() const{ return m_comments; }
138 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
139 inline void SetComments(const Aws::Vector<Comment>& value) { m_commentsHasBeenSet = true; m_comments = value; }
140 inline void SetComments(Aws::Vector<Comment>&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
141 inline CommentsForComparedCommit& WithComments(const Aws::Vector<Comment>& value) { SetComments(value); return *this;}
142 inline CommentsForComparedCommit& WithComments(Aws::Vector<Comment>&& value) { SetComments(std::move(value)); return *this;}
143 inline CommentsForComparedCommit& AddComments(const Comment& value) { m_commentsHasBeenSet = true; m_comments.push_back(value); return *this; }
144 inline CommentsForComparedCommit& AddComments(Comment&& value) { m_commentsHasBeenSet = true; m_comments.push_back(std::move(value)); return *this; }
146 private:
147
148 Aws::String m_repositoryName;
149 bool m_repositoryNameHasBeenSet = false;
150
151 Aws::String m_beforeCommitId;
152 bool m_beforeCommitIdHasBeenSet = false;
153
154 Aws::String m_afterCommitId;
155 bool m_afterCommitIdHasBeenSet = false;
156
157 Aws::String m_beforeBlobId;
158 bool m_beforeBlobIdHasBeenSet = false;
159
160 Aws::String m_afterBlobId;
161 bool m_afterBlobIdHasBeenSet = false;
162
163 Location m_location;
164 bool m_locationHasBeenSet = false;
165
166 Aws::Vector<Comment> m_comments;
167 bool m_commentsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CodeCommit
172} // namespace Aws
AWS_CODECOMMIT_API CommentsForComparedCommit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
CommentsForComparedCommit & WithRepositoryName(const char *value)
CommentsForComparedCommit & WithBeforeBlobId(const Aws::String &value)
CommentsForComparedCommit & WithRepositoryName(const Aws::String &value)
CommentsForComparedCommit & WithBeforeCommitId(Aws::String &&value)
CommentsForComparedCommit & WithComments(Aws::Vector< Comment > &&value)
CommentsForComparedCommit & WithLocation(Location &&value)
CommentsForComparedCommit & WithBeforeCommitId(const char *value)
CommentsForComparedCommit & WithAfterBlobId(const char *value)
CommentsForComparedCommit & WithAfterBlobId(const Aws::String &value)
CommentsForComparedCommit & WithAfterCommitId(const Aws::String &value)
CommentsForComparedCommit & AddComments(const Comment &value)
CommentsForComparedCommit & WithBeforeCommitId(const Aws::String &value)
void SetComments(const Aws::Vector< Comment > &value)
CommentsForComparedCommit & WithLocation(const Location &value)
CommentsForComparedCommit & WithRepositoryName(Aws::String &&value)
AWS_CODECOMMIT_API CommentsForComparedCommit(Aws::Utils::Json::JsonView jsonValue)
CommentsForComparedCommit & WithBeforeBlobId(const char *value)
CommentsForComparedCommit & WithAfterCommitId(const char *value)
CommentsForComparedCommit & AddComments(Comment &&value)
CommentsForComparedCommit & WithBeforeBlobId(Aws::String &&value)
CommentsForComparedCommit & WithComments(const Aws::Vector< Comment > &value)
CommentsForComparedCommit & WithAfterBlobId(Aws::String &&value)
CommentsForComparedCommit & WithAfterCommitId(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