AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetSnapshotBlockRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ebs/EBSRequest.h>
9#include <aws/ebs/EBS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace EBS {
18namespace Model {
19
23 public:
24 AWS_EBS_API GetSnapshotBlockRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetSnapshotBlock"; }
31
32 AWS_EBS_API Aws::String SerializePayload() const override;
33
34 AWS_EBS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
46 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
47 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
48 template <typename SnapshotIdT = Aws::String>
49 void SetSnapshotId(SnapshotIdT&& value) {
50 m_snapshotIdHasBeenSet = true;
51 m_snapshotId = std::forward<SnapshotIdT>(value);
52 }
53 template <typename SnapshotIdT = Aws::String>
55 SetSnapshotId(std::forward<SnapshotIdT>(value));
56 return *this;
57 }
59
61
68 inline int GetBlockIndex() const { return m_blockIndex; }
69 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
70 inline void SetBlockIndex(int value) {
71 m_blockIndexHasBeenSet = true;
72 m_blockIndex = value;
73 }
75 SetBlockIndex(value);
76 return *this;
77 }
79
81
86 inline const Aws::String& GetBlockToken() const { return m_blockToken; }
87 inline bool BlockTokenHasBeenSet() const { return m_blockTokenHasBeenSet; }
88 template <typename BlockTokenT = Aws::String>
89 void SetBlockToken(BlockTokenT&& value) {
90 m_blockTokenHasBeenSet = true;
91 m_blockToken = std::forward<BlockTokenT>(value);
92 }
93 template <typename BlockTokenT = Aws::String>
95 SetBlockToken(std::forward<BlockTokenT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_snapshotId;
101
102 int m_blockIndex{0};
103
104 Aws::String m_blockToken;
105 bool m_snapshotIdHasBeenSet = false;
106 bool m_blockIndexHasBeenSet = false;
107 bool m_blockTokenHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace EBS
112} // namespace Aws
GetSnapshotBlockRequest & WithBlockToken(BlockTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EBS_API Aws::String SerializePayload() const override
GetSnapshotBlockRequest & WithSnapshotId(SnapshotIdT &&value)
AWS_EBS_API GetSnapshotBlockRequest()=default
AWS_EBS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetSnapshotBlockRequest & WithBlockIndex(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String