AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RepositoryNameT = Aws::String>
51 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
52 template<typename RepositoryNameT = Aws::String>
53 CommentsForComparedCommit& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
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) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::forward<BeforeCommitIdT>(value); }
65 template<typename BeforeCommitIdT = Aws::String>
66 CommentsForComparedCommit& WithBeforeCommitId(BeforeCommitIdT&& value) { SetBeforeCommitId(std::forward<BeforeCommitIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetAfterCommitId() const { return m_afterCommitId; }
75 inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
76 template<typename AfterCommitIdT = Aws::String>
77 void SetAfterCommitId(AfterCommitIdT&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::forward<AfterCommitIdT>(value); }
78 template<typename AfterCommitIdT = Aws::String>
79 CommentsForComparedCommit& WithAfterCommitId(AfterCommitIdT&& value) { SetAfterCommitId(std::forward<AfterCommitIdT>(value)); return *this;}
81
83
87 inline const Aws::String& GetBeforeBlobId() const { return m_beforeBlobId; }
88 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
89 template<typename BeforeBlobIdT = Aws::String>
90 void SetBeforeBlobId(BeforeBlobIdT&& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = std::forward<BeforeBlobIdT>(value); }
91 template<typename BeforeBlobIdT = Aws::String>
92 CommentsForComparedCommit& WithBeforeBlobId(BeforeBlobIdT&& value) { SetBeforeBlobId(std::forward<BeforeBlobIdT>(value)); return *this;}
94
96
100 inline const Aws::String& GetAfterBlobId() const { return m_afterBlobId; }
101 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
102 template<typename AfterBlobIdT = Aws::String>
103 void SetAfterBlobId(AfterBlobIdT&& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = std::forward<AfterBlobIdT>(value); }
104 template<typename AfterBlobIdT = Aws::String>
105 CommentsForComparedCommit& WithAfterBlobId(AfterBlobIdT&& value) { SetAfterBlobId(std::forward<AfterBlobIdT>(value)); return *this;}
107
109
114 inline const Location& GetLocation() const { return m_location; }
115 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
116 template<typename LocationT = Location>
117 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
118 template<typename LocationT = Location>
119 CommentsForComparedCommit& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
121
123
127 inline const Aws::Vector<Comment>& GetComments() const { return m_comments; }
128 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
129 template<typename CommentsT = Aws::Vector<Comment>>
130 void SetComments(CommentsT&& value) { m_commentsHasBeenSet = true; m_comments = std::forward<CommentsT>(value); }
131 template<typename CommentsT = Aws::Vector<Comment>>
132 CommentsForComparedCommit& WithComments(CommentsT&& value) { SetComments(std::forward<CommentsT>(value)); return *this;}
133 template<typename CommentsT = Comment>
134 CommentsForComparedCommit& AddComments(CommentsT&& value) { m_commentsHasBeenSet = true; m_comments.emplace_back(std::forward<CommentsT>(value)); return *this; }
136 private:
137
138 Aws::String m_repositoryName;
139 bool m_repositoryNameHasBeenSet = false;
140
141 Aws::String m_beforeCommitId;
142 bool m_beforeCommitIdHasBeenSet = false;
143
144 Aws::String m_afterCommitId;
145 bool m_afterCommitIdHasBeenSet = false;
146
147 Aws::String m_beforeBlobId;
148 bool m_beforeBlobIdHasBeenSet = false;
149
150 Aws::String m_afterBlobId;
151 bool m_afterBlobIdHasBeenSet = false;
152
153 Location m_location;
154 bool m_locationHasBeenSet = false;
155
156 Aws::Vector<Comment> m_comments;
157 bool m_commentsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CodeCommit
162} // 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