AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
46 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
47 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
48 inline RestoreSnapshotTierRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
49 inline RestoreSnapshotTierRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
50 inline RestoreSnapshotTierRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
52
54
61 inline int GetTemporaryRestoreDays() const{ return m_temporaryRestoreDays; }
62 inline bool TemporaryRestoreDaysHasBeenSet() const { return m_temporaryRestoreDaysHasBeenSet; }
63 inline void SetTemporaryRestoreDays(int value) { m_temporaryRestoreDaysHasBeenSet = true; m_temporaryRestoreDays = value; }
66
68
73 inline bool GetPermanentRestore() const{ return m_permanentRestore; }
74 inline bool PermanentRestoreHasBeenSet() const { return m_permanentRestoreHasBeenSet; }
75 inline void SetPermanentRestore(bool value) { m_permanentRestoreHasBeenSet = true; m_permanentRestore = value; }
76 inline RestoreSnapshotTierRequest& WithPermanentRestore(bool value) { SetPermanentRestore(value); return *this;}
78
80
86 inline bool GetDryRun() const{ return m_dryRun; }
87 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
88 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
89 inline RestoreSnapshotTierRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
91 private:
92
93 Aws::String m_snapshotId;
94 bool m_snapshotIdHasBeenSet = false;
95
96 int m_temporaryRestoreDays;
97 bool m_temporaryRestoreDaysHasBeenSet = false;
98
99 bool m_permanentRestore;
100 bool m_permanentRestoreHasBeenSet = false;
101
102 bool m_dryRun;
103 bool m_dryRunHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
virtual const char * GetServiceRequestName() const override
RestoreSnapshotTierRequest & WithTemporaryRestoreDays(int value)
RestoreSnapshotTierRequest & WithSnapshotId(Aws::String &&value)
RestoreSnapshotTierRequest & WithSnapshotId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RestoreSnapshotTierRequest & WithSnapshotId(const Aws::String &value)
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