AWS SDK for C++  1.9.129
AWS SDK for C++
ListSnapshotBlocksRequest.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 "ListSnapshotBlocks"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
45 
49  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
50 
54  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
55 
59  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
60 
64  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
65 
69  inline ListSnapshotBlocksRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
70 
74  inline ListSnapshotBlocksRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
75 
79  inline ListSnapshotBlocksRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
80 
81 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
90  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 
95  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 
100  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 
105  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
106 
110  inline ListSnapshotBlocksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
111 
115  inline ListSnapshotBlocksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 
120  inline ListSnapshotBlocksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122 
126  inline int GetMaxResults() const{ return m_maxResults; }
127 
131  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
132 
136  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
137 
141  inline ListSnapshotBlocksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
142 
143 
149  inline int GetStartingBlockIndex() const{ return m_startingBlockIndex; }
150 
156  inline bool StartingBlockIndexHasBeenSet() const { return m_startingBlockIndexHasBeenSet; }
157 
163  inline void SetStartingBlockIndex(int value) { m_startingBlockIndexHasBeenSet = true; m_startingBlockIndex = value; }
164 
170  inline ListSnapshotBlocksRequest& WithStartingBlockIndex(int value) { SetStartingBlockIndex(value); return *this;}
171 
172  private:
173 
174  Aws::String m_snapshotId;
175  bool m_snapshotIdHasBeenSet;
176 
177  Aws::String m_nextToken;
178  bool m_nextTokenHasBeenSet;
179 
180  int m_maxResults;
181  bool m_maxResultsHasBeenSet;
182 
183  int m_startingBlockIndex;
184  bool m_startingBlockIndexHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace EBS
189 } // namespace Aws
Aws::EBS::Model::ListSnapshotBlocksRequest::ListSnapshotBlocksRequest
ListSnapshotBlocksRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EBS::Model::ListSnapshotBlocksRequest::WithStartingBlockIndex
ListSnapshotBlocksRequest & WithStartingBlockIndex(int value)
Definition: ListSnapshotBlocksRequest.h:170
Aws::EBS::Model::ListSnapshotBlocksRequest::GetStartingBlockIndex
int GetStartingBlockIndex() const
Definition: ListSnapshotBlocksRequest.h:149
Aws::EBS::Model::ListSnapshotBlocksRequest::SetStartingBlockIndex
void SetStartingBlockIndex(int value)
Definition: ListSnapshotBlocksRequest.h:163
Aws::EBS::Model::ListSnapshotBlocksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListSnapshotBlocksRequest.h:126
Aws::EBS::Model::ListSnapshotBlocksRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: ListSnapshotBlocksRequest.h:44
Aws::EBS::Model::ListSnapshotBlocksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListSnapshotBlocksRequest.h:34
Aws::EBS::Model::ListSnapshotBlocksRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: ListSnapshotBlocksRequest.h:49
Aws::EBS::Model::ListSnapshotBlocksRequest::WithNextToken
ListSnapshotBlocksRequest & WithNextToken(Aws::String &&value)
Definition: ListSnapshotBlocksRequest.h:115
Aws::EBS::Model::ListSnapshotBlocksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListSnapshotBlocksRequest.h:105
EBS_EXPORTS.h
Aws::EBS::Model::ListSnapshotBlocksRequest::WithSnapshotId
ListSnapshotBlocksRequest & WithSnapshotId(const Aws::String &value)
Definition: ListSnapshotBlocksRequest.h:69
Aws::EBS::Model::ListSnapshotBlocksRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: ListSnapshotBlocksRequest.h:59
Aws::EBS::Model::ListSnapshotBlocksRequest
Definition: ListSnapshotBlocksRequest.h:26
Aws::EBS::Model::ListSnapshotBlocksRequest::WithNextToken
ListSnapshotBlocksRequest & WithNextToken(const char *value)
Definition: ListSnapshotBlocksRequest.h:120
Aws::EBS::EBSRequest
Definition: EBSRequest.h:18
Aws::EBS::Model::ListSnapshotBlocksRequest::WithMaxResults
ListSnapshotBlocksRequest & WithMaxResults(int value)
Definition: ListSnapshotBlocksRequest.h:141
Aws::EBS::Model::ListSnapshotBlocksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EBS::Model::ListSnapshotBlocksRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: ListSnapshotBlocksRequest.h:64
EBSRequest.h
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::ListSnapshotBlocksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListSnapshotBlocksRequest.h:90
Aws::EBS::Model::ListSnapshotBlocksRequest::WithSnapshotId
ListSnapshotBlocksRequest & WithSnapshotId(Aws::String &&value)
Definition: ListSnapshotBlocksRequest.h:74
Aws::EBS::Model::ListSnapshotBlocksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSnapshotBlocksRequest.h:85
Aws::EBS::Model::ListSnapshotBlocksRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::EBS::Model::ListSnapshotBlocksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListSnapshotBlocksRequest.h:136
Aws::EBS::Model::ListSnapshotBlocksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSnapshotBlocksRequest.h:95
AWSString.h
Aws::EBS::Model::ListSnapshotBlocksRequest::WithSnapshotId
ListSnapshotBlocksRequest & WithSnapshotId(const char *value)
Definition: ListSnapshotBlocksRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::ListSnapshotBlocksRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: ListSnapshotBlocksRequest.h:54
Aws::EBS::Model::ListSnapshotBlocksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSnapshotBlocksRequest.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::ListSnapshotBlocksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListSnapshotBlocksRequest.h:131
Aws::EBS::Model::ListSnapshotBlocksRequest::StartingBlockIndexHasBeenSet
bool StartingBlockIndexHasBeenSet() const
Definition: ListSnapshotBlocksRequest.h:156
Aws::EBS::Model::ListSnapshotBlocksRequest::WithNextToken
ListSnapshotBlocksRequest & WithNextToken(const Aws::String &value)
Definition: ListSnapshotBlocksRequest.h:110