AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
54 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
55 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
56 inline GetSnapshotBlockRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
57 inline GetSnapshotBlockRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
58 inline GetSnapshotBlockRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
60
62
69 inline int GetBlockIndex() const{ return m_blockIndex; }
70 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
71 inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
72 inline GetSnapshotBlockRequest& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
74
76
81 inline const Aws::String& GetBlockToken() const{ return m_blockToken; }
82 inline bool BlockTokenHasBeenSet() const { return m_blockTokenHasBeenSet; }
83 inline void SetBlockToken(const Aws::String& value) { m_blockTokenHasBeenSet = true; m_blockToken = value; }
84 inline void SetBlockToken(Aws::String&& value) { m_blockTokenHasBeenSet = true; m_blockToken = std::move(value); }
85 inline void SetBlockToken(const char* value) { m_blockTokenHasBeenSet = true; m_blockToken.assign(value); }
86 inline GetSnapshotBlockRequest& WithBlockToken(const Aws::String& value) { SetBlockToken(value); return *this;}
87 inline GetSnapshotBlockRequest& WithBlockToken(Aws::String&& value) { SetBlockToken(std::move(value)); return *this;}
88 inline GetSnapshotBlockRequest& WithBlockToken(const char* value) { SetBlockToken(value); return *this;}
90 private:
91
92 Aws::String m_snapshotId;
93 bool m_snapshotIdHasBeenSet = false;
94
95 int m_blockIndex;
96 bool m_blockIndexHasBeenSet = false;
97
98 Aws::String m_blockToken;
99 bool m_blockTokenHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace EBS
104} // namespace Aws
GetSnapshotBlockRequest & WithSnapshotId(const char *value)
GetSnapshotBlockRequest & WithSnapshotId(const Aws::String &value)
GetSnapshotBlockRequest & WithBlockToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_EBS_API Aws::String SerializePayload() const override
GetSnapshotBlockRequest & WithBlockToken(Aws::String &&value)
AWS_EBS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetSnapshotBlockRequest & WithSnapshotId(Aws::String &&value)
GetSnapshotBlockRequest & WithBlockIndex(int value)
GetSnapshotBlockRequest & WithBlockToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String