AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
GetDifferencesRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeCommit {
15namespace Model {
16
20 public:
21 AWS_CODECOMMIT_API GetDifferencesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetDifferences"; }
28
29 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
38 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
39 template <typename RepositoryNameT = Aws::String>
40 void SetRepositoryName(RepositoryNameT&& value) {
41 m_repositoryNameHasBeenSet = true;
42 m_repositoryName = std::forward<RepositoryNameT>(value);
43 }
44 template <typename RepositoryNameT = Aws::String>
45 GetDifferencesRequest& WithRepositoryName(RepositoryNameT&& value) {
46 SetRepositoryName(std::forward<RepositoryNameT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::String& GetBeforeCommitSpecifier() const { return m_beforeCommitSpecifier; }
60 inline bool BeforeCommitSpecifierHasBeenSet() const { return m_beforeCommitSpecifierHasBeenSet; }
61 template <typename BeforeCommitSpecifierT = Aws::String>
62 void SetBeforeCommitSpecifier(BeforeCommitSpecifierT&& value) {
63 m_beforeCommitSpecifierHasBeenSet = true;
64 m_beforeCommitSpecifier = std::forward<BeforeCommitSpecifierT>(value);
65 }
66 template <typename BeforeCommitSpecifierT = Aws::String>
67 GetDifferencesRequest& WithBeforeCommitSpecifier(BeforeCommitSpecifierT&& value) {
68 SetBeforeCommitSpecifier(std::forward<BeforeCommitSpecifierT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetAfterCommitSpecifier() const { return m_afterCommitSpecifier; }
79 inline bool AfterCommitSpecifierHasBeenSet() const { return m_afterCommitSpecifierHasBeenSet; }
80 template <typename AfterCommitSpecifierT = Aws::String>
81 void SetAfterCommitSpecifier(AfterCommitSpecifierT&& value) {
82 m_afterCommitSpecifierHasBeenSet = true;
83 m_afterCommitSpecifier = std::forward<AfterCommitSpecifierT>(value);
84 }
85 template <typename AfterCommitSpecifierT = Aws::String>
86 GetDifferencesRequest& WithAfterCommitSpecifier(AfterCommitSpecifierT&& value) {
87 SetAfterCommitSpecifier(std::forward<AfterCommitSpecifierT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::String& GetBeforePath() const { return m_beforePath; }
100 inline bool BeforePathHasBeenSet() const { return m_beforePathHasBeenSet; }
101 template <typename BeforePathT = Aws::String>
102 void SetBeforePath(BeforePathT&& value) {
103 m_beforePathHasBeenSet = true;
104 m_beforePath = std::forward<BeforePathT>(value);
105 }
106 template <typename BeforePathT = Aws::String>
107 GetDifferencesRequest& WithBeforePath(BeforePathT&& value) {
108 SetBeforePath(std::forward<BeforePathT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::String& GetAfterPath() const { return m_afterPath; }
120 inline bool AfterPathHasBeenSet() const { return m_afterPathHasBeenSet; }
121 template <typename AfterPathT = Aws::String>
122 void SetAfterPath(AfterPathT&& value) {
123 m_afterPathHasBeenSet = true;
124 m_afterPath = std::forward<AfterPathT>(value);
125 }
126 template <typename AfterPathT = Aws::String>
128 SetAfterPath(std::forward<AfterPathT>(value));
129 return *this;
130 }
132
134
138 inline int GetMaxResults() const { return m_maxResults; }
139 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
140 inline void SetMaxResults(int value) {
141 m_maxResultsHasBeenSet = true;
142 m_maxResults = value;
143 }
145 SetMaxResults(value);
146 return *this;
147 }
149
151
155 inline const Aws::String& GetNextToken() const { return m_nextToken; }
156 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
157 template <typename NextTokenT = Aws::String>
158 void SetNextToken(NextTokenT&& value) {
159 m_nextTokenHasBeenSet = true;
160 m_nextToken = std::forward<NextTokenT>(value);
161 }
162 template <typename NextTokenT = Aws::String>
164 SetNextToken(std::forward<NextTokenT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_repositoryName;
170
171 Aws::String m_beforeCommitSpecifier;
172
173 Aws::String m_afterCommitSpecifier;
174
175 Aws::String m_beforePath;
176
177 Aws::String m_afterPath;
178
179 int m_maxResults{0};
180
181 Aws::String m_nextToken;
182 bool m_repositoryNameHasBeenSet = false;
183 bool m_beforeCommitSpecifierHasBeenSet = false;
184 bool m_afterCommitSpecifierHasBeenSet = false;
185 bool m_beforePathHasBeenSet = false;
186 bool m_afterPathHasBeenSet = false;
187 bool m_maxResultsHasBeenSet = false;
188 bool m_nextTokenHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace CodeCommit
193} // namespace Aws
GetDifferencesRequest & WithAfterPath(AfterPathT &&value)
GetDifferencesRequest & WithMaxResults(int value)
AWS_CODECOMMIT_API GetDifferencesRequest()=default
GetDifferencesRequest & WithNextToken(NextTokenT &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
GetDifferencesRequest & WithAfterCommitSpecifier(AfterCommitSpecifierT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDifferencesRequest & WithBeforePath(BeforePathT &&value)
void SetBeforeCommitSpecifier(BeforeCommitSpecifierT &&value)
GetDifferencesRequest & WithBeforeCommitSpecifier(BeforeCommitSpecifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetAfterCommitSpecifier(AfterCommitSpecifierT &&value)
GetDifferencesRequest & WithRepositoryName(RepositoryNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String