AWS SDK for C++  1.9.130
AWS SDK for C++
GetSnapshotBlockRequest.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 "GetSnapshotBlock"; }
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 GetSnapshotBlockRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
70 
74  inline GetSnapshotBlockRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
75 
79  inline GetSnapshotBlockRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
80 
81 
87  inline int GetBlockIndex() const{ return m_blockIndex; }
88 
94  inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
95 
101  inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
102 
108  inline GetSnapshotBlockRequest& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
109 
110 
116  inline const Aws::String& GetBlockToken() const{ return m_blockToken; }
117 
123  inline bool BlockTokenHasBeenSet() const { return m_blockTokenHasBeenSet; }
124 
130  inline void SetBlockToken(const Aws::String& value) { m_blockTokenHasBeenSet = true; m_blockToken = value; }
131 
137  inline void SetBlockToken(Aws::String&& value) { m_blockTokenHasBeenSet = true; m_blockToken = std::move(value); }
138 
144  inline void SetBlockToken(const char* value) { m_blockTokenHasBeenSet = true; m_blockToken.assign(value); }
145 
151  inline GetSnapshotBlockRequest& WithBlockToken(const Aws::String& value) { SetBlockToken(value); return *this;}
152 
158  inline GetSnapshotBlockRequest& WithBlockToken(Aws::String&& value) { SetBlockToken(std::move(value)); return *this;}
159 
165  inline GetSnapshotBlockRequest& WithBlockToken(const char* value) { SetBlockToken(value); return *this;}
166 
167  private:
168 
169  Aws::String m_snapshotId;
170  bool m_snapshotIdHasBeenSet;
171 
172  int m_blockIndex;
173  bool m_blockIndexHasBeenSet;
174 
175  Aws::String m_blockToken;
176  bool m_blockTokenHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace EBS
181 } // namespace Aws
Aws::EBS::Model::GetSnapshotBlockRequest::SetBlockToken
void SetBlockToken(const char *value)
Definition: GetSnapshotBlockRequest.h:144
Aws::Http::URI
Definition: URI.h:32
Aws::EBS::Model::GetSnapshotBlockRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: GetSnapshotBlockRequest.h:64
Aws::EBS::Model::GetSnapshotBlockRequest::WithBlockIndex
GetSnapshotBlockRequest & WithBlockIndex(int value)
Definition: GetSnapshotBlockRequest.h:108
Aws::EBS::Model::GetSnapshotBlockRequest::SetBlockIndex
void SetBlockIndex(int value)
Definition: GetSnapshotBlockRequest.h:101
Aws::EBS::Model::GetSnapshotBlockRequest::WithBlockToken
GetSnapshotBlockRequest & WithBlockToken(const char *value)
Definition: GetSnapshotBlockRequest.h:165
Aws::EBS::Model::GetSnapshotBlockRequest::SetBlockToken
void SetBlockToken(Aws::String &&value)
Definition: GetSnapshotBlockRequest.h:137
Aws::EBS::Model::GetSnapshotBlockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSnapshotBlockRequest.h:34
Aws::EBS::Model::GetSnapshotBlockRequest::BlockIndexHasBeenSet
bool BlockIndexHasBeenSet() const
Definition: GetSnapshotBlockRequest.h:94
EBS_EXPORTS.h
Aws::EBS::Model::GetSnapshotBlockRequest::WithBlockToken
GetSnapshotBlockRequest & WithBlockToken(Aws::String &&value)
Definition: GetSnapshotBlockRequest.h:158
Aws::EBS::Model::GetSnapshotBlockRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: GetSnapshotBlockRequest.h:49
Aws::EBS::EBSRequest
Definition: EBSRequest.h:18
Aws::EBS::Model::GetSnapshotBlockRequest::GetBlockToken
const Aws::String & GetBlockToken() const
Definition: GetSnapshotBlockRequest.h:116
Aws::EBS::Model::GetSnapshotBlockRequest
Definition: GetSnapshotBlockRequest.h:26
EBSRequest.h
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::GetSnapshotBlockRequest::WithBlockToken
GetSnapshotBlockRequest & WithBlockToken(const Aws::String &value)
Definition: GetSnapshotBlockRequest.h:151
Aws::EBS::Model::GetSnapshotBlockRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: GetSnapshotBlockRequest.h:59
Aws::EBS::Model::GetSnapshotBlockRequest::GetSnapshotBlockRequest
GetSnapshotBlockRequest()
Aws::EBS::Model::GetSnapshotBlockRequest::WithSnapshotId
GetSnapshotBlockRequest & WithSnapshotId(const char *value)
Definition: GetSnapshotBlockRequest.h:79
AWSString.h
Aws::EBS::Model::GetSnapshotBlockRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: GetSnapshotBlockRequest.h:44
Aws::EBS::Model::GetSnapshotBlockRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::EBS::Model::GetSnapshotBlockRequest::SetBlockToken
void SetBlockToken(const Aws::String &value)
Definition: GetSnapshotBlockRequest.h:130
Aws::EBS::Model::GetSnapshotBlockRequest::GetBlockIndex
int GetBlockIndex() const
Definition: GetSnapshotBlockRequest.h:87
Aws::EBS::Model::GetSnapshotBlockRequest::WithSnapshotId
GetSnapshotBlockRequest & WithSnapshotId(const Aws::String &value)
Definition: GetSnapshotBlockRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::GetSnapshotBlockRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::GetSnapshotBlockRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: GetSnapshotBlockRequest.h:54
Aws::EBS::Model::GetSnapshotBlockRequest::BlockTokenHasBeenSet
bool BlockTokenHasBeenSet() const
Definition: GetSnapshotBlockRequest.h:123
Aws::EBS::Model::GetSnapshotBlockRequest::WithSnapshotId
GetSnapshotBlockRequest & WithSnapshotId(Aws::String &&value)
Definition: GetSnapshotBlockRequest.h:74