AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreSnapshotTierRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API RestoreSnapshotTierRequest() = 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 "RestoreSnapshotTier"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
44 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
45 template<typename SnapshotIdT = Aws::String>
46 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
47 template<typename SnapshotIdT = Aws::String>
48 RestoreSnapshotTierRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
50
52
59 inline int GetTemporaryRestoreDays() const { return m_temporaryRestoreDays; }
60 inline bool TemporaryRestoreDaysHasBeenSet() const { return m_temporaryRestoreDaysHasBeenSet; }
61 inline void SetTemporaryRestoreDays(int value) { m_temporaryRestoreDaysHasBeenSet = true; m_temporaryRestoreDays = value; }
64
66
71 inline bool GetPermanentRestore() const { return m_permanentRestore; }
72 inline bool PermanentRestoreHasBeenSet() const { return m_permanentRestoreHasBeenSet; }
73 inline void SetPermanentRestore(bool value) { m_permanentRestoreHasBeenSet = true; m_permanentRestore = value; }
74 inline RestoreSnapshotTierRequest& WithPermanentRestore(bool value) { SetPermanentRestore(value); return *this;}
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline RestoreSnapshotTierRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89 private:
90
91 Aws::String m_snapshotId;
92 bool m_snapshotIdHasBeenSet = false;
93
94 int m_temporaryRestoreDays{0};
95 bool m_temporaryRestoreDaysHasBeenSet = false;
96
97 bool m_permanentRestore{false};
98 bool m_permanentRestoreHasBeenSet = false;
99
100 bool m_dryRun{false};
101 bool m_dryRunHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // 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