AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RestoreSnapshotTierRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API RestoreSnapshotTierRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RestoreSnapshotTier"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
40 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
41 template <typename SnapshotIdT = Aws::String>
42 void SetSnapshotId(SnapshotIdT&& value) {
43 m_snapshotIdHasBeenSet = true;
44 m_snapshotId = std::forward<SnapshotIdT>(value);
45 }
46 template <typename SnapshotIdT = Aws::String>
48 SetSnapshotId(std::forward<SnapshotIdT>(value));
49 return *this;
50 }
52
54
61 inline int GetTemporaryRestoreDays() const { return m_temporaryRestoreDays; }
62 inline bool TemporaryRestoreDaysHasBeenSet() const { return m_temporaryRestoreDaysHasBeenSet; }
63 inline void SetTemporaryRestoreDays(int value) {
64 m_temporaryRestoreDaysHasBeenSet = true;
65 m_temporaryRestoreDays = value;
66 }
69 return *this;
70 }
72
74
79 inline bool GetPermanentRestore() const { return m_permanentRestore; }
80 inline bool PermanentRestoreHasBeenSet() const { return m_permanentRestoreHasBeenSet; }
81 inline void SetPermanentRestore(bool value) {
82 m_permanentRestoreHasBeenSet = true;
83 m_permanentRestore = value;
84 }
87 return *this;
88 }
90
92
98 inline bool GetDryRun() const { return m_dryRun; }
99 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
100 inline void SetDryRun(bool value) {
101 m_dryRunHasBeenSet = true;
102 m_dryRun = value;
103 }
105 SetDryRun(value);
106 return *this;
107 }
109 private:
110 Aws::String m_snapshotId;
111
112 int m_temporaryRestoreDays{0};
113
114 bool m_permanentRestore{false};
115
116 bool m_dryRun{false};
117 bool m_snapshotIdHasBeenSet = false;
118 bool m_temporaryRestoreDaysHasBeenSet = false;
119 bool m_permanentRestoreHasBeenSet = false;
120 bool m_dryRunHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
virtual const char * GetServiceRequestName() const override
RestoreSnapshotTierRequest & WithTemporaryRestoreDays(int value)
RestoreSnapshotTierRequest & WithSnapshotId(SnapshotIdT &&value)
AWS_EC2_API RestoreSnapshotTierRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
RestoreSnapshotTierRequest & WithPermanentRestore(bool value)
RestoreSnapshotTierRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String