AWS SDK for C++  1.9.129
AWS SDK for C++
ListChangedBlocksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_EXPORTS.h>
8 #include <aws/ebs/EBSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace EBS
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListChangedBlocks"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
47  inline const Aws::String& GetFirstSnapshotId() const{ return m_firstSnapshotId; }
48 
55  inline bool FirstSnapshotIdHasBeenSet() const { return m_firstSnapshotIdHasBeenSet; }
56 
63  inline void SetFirstSnapshotId(const Aws::String& value) { m_firstSnapshotIdHasBeenSet = true; m_firstSnapshotId = value; }
64 
71  inline void SetFirstSnapshotId(Aws::String&& value) { m_firstSnapshotIdHasBeenSet = true; m_firstSnapshotId = std::move(value); }
72 
79  inline void SetFirstSnapshotId(const char* value) { m_firstSnapshotIdHasBeenSet = true; m_firstSnapshotId.assign(value); }
80 
87  inline ListChangedBlocksRequest& WithFirstSnapshotId(const Aws::String& value) { SetFirstSnapshotId(value); return *this;}
88 
95  inline ListChangedBlocksRequest& WithFirstSnapshotId(Aws::String&& value) { SetFirstSnapshotId(std::move(value)); return *this;}
96 
103  inline ListChangedBlocksRequest& WithFirstSnapshotId(const char* value) { SetFirstSnapshotId(value); return *this;}
104 
105 
112  inline const Aws::String& GetSecondSnapshotId() const{ return m_secondSnapshotId; }
113 
120  inline bool SecondSnapshotIdHasBeenSet() const { return m_secondSnapshotIdHasBeenSet; }
121 
128  inline void SetSecondSnapshotId(const Aws::String& value) { m_secondSnapshotIdHasBeenSet = true; m_secondSnapshotId = value; }
129 
136  inline void SetSecondSnapshotId(Aws::String&& value) { m_secondSnapshotIdHasBeenSet = true; m_secondSnapshotId = std::move(value); }
137 
144  inline void SetSecondSnapshotId(const char* value) { m_secondSnapshotIdHasBeenSet = true; m_secondSnapshotId.assign(value); }
145 
152  inline ListChangedBlocksRequest& WithSecondSnapshotId(const Aws::String& value) { SetSecondSnapshotId(value); return *this;}
153 
160  inline ListChangedBlocksRequest& WithSecondSnapshotId(Aws::String&& value) { SetSecondSnapshotId(std::move(value)); return *this;}
161 
168  inline ListChangedBlocksRequest& WithSecondSnapshotId(const char* value) { SetSecondSnapshotId(value); return *this;}
169 
170 
174  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
175 
179  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
180 
184  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
185 
189  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
190 
194  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
195 
199  inline ListChangedBlocksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
200 
204  inline ListChangedBlocksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
205 
209  inline ListChangedBlocksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
210 
211 
215  inline int GetMaxResults() const{ return m_maxResults; }
216 
220  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
221 
225  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
226 
230  inline ListChangedBlocksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
231 
232 
238  inline int GetStartingBlockIndex() const{ return m_startingBlockIndex; }
239 
245  inline bool StartingBlockIndexHasBeenSet() const { return m_startingBlockIndexHasBeenSet; }
246 
252  inline void SetStartingBlockIndex(int value) { m_startingBlockIndexHasBeenSet = true; m_startingBlockIndex = value; }
253 
259  inline ListChangedBlocksRequest& WithStartingBlockIndex(int value) { SetStartingBlockIndex(value); return *this;}
260 
261  private:
262 
263  Aws::String m_firstSnapshotId;
264  bool m_firstSnapshotIdHasBeenSet;
265 
266  Aws::String m_secondSnapshotId;
267  bool m_secondSnapshotIdHasBeenSet;
268 
269  Aws::String m_nextToken;
270  bool m_nextTokenHasBeenSet;
271 
272  int m_maxResults;
273  bool m_maxResultsHasBeenSet;
274 
275  int m_startingBlockIndex;
276  bool m_startingBlockIndexHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace EBS
281 } // namespace Aws
Aws::EBS::Model::ListChangedBlocksRequest::SetFirstSnapshotId
void SetFirstSnapshotId(Aws::String &&value)
Definition: ListChangedBlocksRequest.h:71
Aws::EBS::Model::ListChangedBlocksRequest::WithNextToken
ListChangedBlocksRequest & WithNextToken(const char *value)
Definition: ListChangedBlocksRequest.h:209
Aws::Http::URI
Definition: URI.h:32
Aws::EBS::Model::ListChangedBlocksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListChangedBlocksRequest.h:34
Aws::EBS::Model::ListChangedBlocksRequest::GetFirstSnapshotId
const Aws::String & GetFirstSnapshotId() const
Definition: ListChangedBlocksRequest.h:47
Aws::EBS::Model::ListChangedBlocksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListChangedBlocksRequest.h:220
Aws::EBS::Model::ListChangedBlocksRequest::GetStartingBlockIndex
int GetStartingBlockIndex() const
Definition: ListChangedBlocksRequest.h:238
EBS_EXPORTS.h
Aws::EBS::Model::ListChangedBlocksRequest::WithSecondSnapshotId
ListChangedBlocksRequest & WithSecondSnapshotId(const char *value)
Definition: ListChangedBlocksRequest.h:168
Aws::EBS::Model::ListChangedBlocksRequest
Definition: ListChangedBlocksRequest.h:26
Aws::EBS::Model::ListChangedBlocksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListChangedBlocksRequest.h:184
Aws::EBS::EBSRequest
Definition: EBSRequest.h:18
Aws::EBS::Model::ListChangedBlocksRequest::FirstSnapshotIdHasBeenSet
bool FirstSnapshotIdHasBeenSet() const
Definition: ListChangedBlocksRequest.h:55
Aws::EBS::Model::ListChangedBlocksRequest::WithNextToken
ListChangedBlocksRequest & WithNextToken(Aws::String &&value)
Definition: ListChangedBlocksRequest.h:204
Aws::EBS::Model::ListChangedBlocksRequest::WithSecondSnapshotId
ListChangedBlocksRequest & WithSecondSnapshotId(Aws::String &&value)
Definition: ListChangedBlocksRequest.h:160
Aws::EBS::Model::ListChangedBlocksRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
EBSRequest.h
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::ListChangedBlocksRequest::ListChangedBlocksRequest
ListChangedBlocksRequest()
Aws::EBS::Model::ListChangedBlocksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListChangedBlocksRequest.h:189
Aws::EBS::Model::ListChangedBlocksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListChangedBlocksRequest.h:174
Aws::EBS::Model::ListChangedBlocksRequest::SecondSnapshotIdHasBeenSet
bool SecondSnapshotIdHasBeenSet() const
Definition: ListChangedBlocksRequest.h:120
AWSString.h
Aws::EBS::Model::ListChangedBlocksRequest::WithSecondSnapshotId
ListChangedBlocksRequest & WithSecondSnapshotId(const Aws::String &value)
Definition: ListChangedBlocksRequest.h:152
Aws::EBS::Model::ListChangedBlocksRequest::SetSecondSnapshotId
void SetSecondSnapshotId(const Aws::String &value)
Definition: ListChangedBlocksRequest.h:128
Aws::EBS::Model::ListChangedBlocksRequest::SetStartingBlockIndex
void SetStartingBlockIndex(int value)
Definition: ListChangedBlocksRequest.h:252
Aws::EBS::Model::ListChangedBlocksRequest::WithNextToken
ListChangedBlocksRequest & WithNextToken(const Aws::String &value)
Definition: ListChangedBlocksRequest.h:199
Aws::EBS::Model::ListChangedBlocksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListChangedBlocksRequest.h:225
Aws::EBS::Model::ListChangedBlocksRequest::StartingBlockIndexHasBeenSet
bool StartingBlockIndexHasBeenSet() const
Definition: ListChangedBlocksRequest.h:245
Aws::EBS::Model::ListChangedBlocksRequest::WithFirstSnapshotId
ListChangedBlocksRequest & WithFirstSnapshotId(const Aws::String &value)
Definition: ListChangedBlocksRequest.h:87
Aws::EBS::Model::ListChangedBlocksRequest::SetSecondSnapshotId
void SetSecondSnapshotId(Aws::String &&value)
Definition: ListChangedBlocksRequest.h:136
Aws::EBS::Model::ListChangedBlocksRequest::SetFirstSnapshotId
void SetFirstSnapshotId(const Aws::String &value)
Definition: ListChangedBlocksRequest.h:63
Aws::EBS::Model::ListChangedBlocksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListChangedBlocksRequest.h:179
Aws::EBS::Model::ListChangedBlocksRequest::SetFirstSnapshotId
void SetFirstSnapshotId(const char *value)
Definition: ListChangedBlocksRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::ListChangedBlocksRequest::WithStartingBlockIndex
ListChangedBlocksRequest & WithStartingBlockIndex(int value)
Definition: ListChangedBlocksRequest.h:259
Aws::EBS::Model::ListChangedBlocksRequest::WithFirstSnapshotId
ListChangedBlocksRequest & WithFirstSnapshotId(Aws::String &&value)
Definition: ListChangedBlocksRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::ListChangedBlocksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EBS::Model::ListChangedBlocksRequest::WithFirstSnapshotId
ListChangedBlocksRequest & WithFirstSnapshotId(const char *value)
Definition: ListChangedBlocksRequest.h:103
Aws::EBS::Model::ListChangedBlocksRequest::SetSecondSnapshotId
void SetSecondSnapshotId(const char *value)
Definition: ListChangedBlocksRequest.h:144
Aws::EBS::Model::ListChangedBlocksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListChangedBlocksRequest.h:194
Aws::EBS::Model::ListChangedBlocksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListChangedBlocksRequest.h:215
Aws::EBS::Model::ListChangedBlocksRequest::WithMaxResults
ListChangedBlocksRequest & WithMaxResults(int value)
Definition: ListChangedBlocksRequest.h:230
Aws::EBS::Model::ListChangedBlocksRequest::GetSecondSnapshotId
const Aws::String & GetSecondSnapshotId() const
Definition: ListChangedBlocksRequest.h:112