AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
GetBlobDifferencesRequest.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 GetBlobDifferencesRequest() = 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 "GetBlobDifferences"; }
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>
46 SetRepositoryName(std::forward<RepositoryNameT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetAfterBlobId() const { return m_afterBlobId; }
58 inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
59 template <typename AfterBlobIdT = Aws::String>
60 void SetAfterBlobId(AfterBlobIdT&& value) {
61 m_afterBlobIdHasBeenSet = true;
62 m_afterBlobId = std::forward<AfterBlobIdT>(value);
63 }
64 template <typename AfterBlobIdT = Aws::String>
66 SetAfterBlobId(std::forward<AfterBlobIdT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetBeforeBlobId() const { return m_beforeBlobId; }
80 inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
81 template <typename BeforeBlobIdT = Aws::String>
82 void SetBeforeBlobId(BeforeBlobIdT&& value) {
83 m_beforeBlobIdHasBeenSet = true;
84 m_beforeBlobId = std::forward<BeforeBlobIdT>(value);
85 }
86 template <typename BeforeBlobIdT = Aws::String>
88 SetBeforeBlobId(std::forward<BeforeBlobIdT>(value));
89 return *this;
90 }
92
94
99 inline int GetContextLines() const { return m_contextLines; }
100 inline bool ContextLinesHasBeenSet() const { return m_contextLinesHasBeenSet; }
101 inline void SetContextLines(int value) {
102 m_contextLinesHasBeenSet = true;
103 m_contextLines = value;
104 }
106 SetContextLines(value);
107 return *this;
108 }
110
112
117 inline bool GetIgnoreWhitespace() const { return m_ignoreWhitespace; }
118 inline bool IgnoreWhitespaceHasBeenSet() const { return m_ignoreWhitespaceHasBeenSet; }
119 inline void SetIgnoreWhitespace(bool value) {
120 m_ignoreWhitespaceHasBeenSet = true;
121 m_ignoreWhitespace = value;
122 }
124 SetIgnoreWhitespace(value);
125 return *this;
126 }
128
130
134 inline int GetMaxResults() const { return m_maxResults; }
135 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
136 inline void SetMaxResults(int value) {
137 m_maxResultsHasBeenSet = true;
138 m_maxResults = value;
139 }
141 SetMaxResults(value);
142 return *this;
143 }
145
147
151 inline const Aws::String& GetNextToken() const { return m_nextToken; }
152 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 template <typename NextTokenT = Aws::String>
154 void SetNextToken(NextTokenT&& value) {
155 m_nextTokenHasBeenSet = true;
156 m_nextToken = std::forward<NextTokenT>(value);
157 }
158 template <typename NextTokenT = Aws::String>
160 SetNextToken(std::forward<NextTokenT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_repositoryName;
166
167 Aws::String m_afterBlobId;
168
169 Aws::String m_beforeBlobId;
170
171 int m_contextLines{0};
172
173 bool m_ignoreWhitespace{false};
174
175 int m_maxResults{0};
176
177 Aws::String m_nextToken;
178 bool m_repositoryNameHasBeenSet = false;
179 bool m_afterBlobIdHasBeenSet = false;
180 bool m_beforeBlobIdHasBeenSet = false;
181 bool m_contextLinesHasBeenSet = false;
182 bool m_ignoreWhitespaceHasBeenSet = false;
183 bool m_maxResultsHasBeenSet = false;
184 bool m_nextTokenHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace CodeCommit
189} // namespace Aws
GetBlobDifferencesRequest & WithAfterBlobId(AfterBlobIdT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
GetBlobDifferencesRequest & WithNextToken(NextTokenT &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
GetBlobDifferencesRequest & WithIgnoreWhitespace(bool value)
GetBlobDifferencesRequest & WithRepositoryName(RepositoryNameT &&value)
GetBlobDifferencesRequest & WithBeforeBlobId(BeforeBlobIdT &&value)
AWS_CODECOMMIT_API GetBlobDifferencesRequest()=default
GetBlobDifferencesRequest & WithContextLines(int value)
GetBlobDifferencesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String