AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSnapshotBlockRequest.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/ebs/EBSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace EBS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EBS_API GetSnapshotBlockRequest() = default;
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_EBS_API Aws::String SerializePayload() const override;
37
38 AWS_EBS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
51 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
52 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
53 template<typename SnapshotIdT = Aws::String>
54 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
55 template<typename SnapshotIdT = Aws::String>
56 GetSnapshotBlockRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
58
60
67 inline int GetBlockIndex() const { return m_blockIndex; }
68 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
69 inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
70 inline GetSnapshotBlockRequest& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
72
74
79 inline const Aws::String& GetBlockToken() const { return m_blockToken; }
80 inline bool BlockTokenHasBeenSet() const { return m_blockTokenHasBeenSet; }
81 template<typename BlockTokenT = Aws::String>
82 void SetBlockToken(BlockTokenT&& value) { m_blockTokenHasBeenSet = true; m_blockToken = std::forward<BlockTokenT>(value); }
83 template<typename BlockTokenT = Aws::String>
84 GetSnapshotBlockRequest& WithBlockToken(BlockTokenT&& value) { SetBlockToken(std::forward<BlockTokenT>(value)); return *this;}
86 private:
87
88 Aws::String m_snapshotId;
89 bool m_snapshotIdHasBeenSet = false;
90
91 int m_blockIndex{0};
92 bool m_blockIndexHasBeenSet = false;
93
94 Aws::String m_blockToken;
95 bool m_blockTokenHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EBS
100} // 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