AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreFromSnapshotRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace RedshiftServerless
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotRequest();
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 "RestoreFromSnapshot"; }
31
32 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetAdminPasswordSecretKmsKeyId() const{ return m_adminPasswordSecretKmsKeyId; }
43 inline bool AdminPasswordSecretKmsKeyIdHasBeenSet() const { return m_adminPasswordSecretKmsKeyIdHasBeenSet; }
44 inline void SetAdminPasswordSecretKmsKeyId(const Aws::String& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = value; }
45 inline void SetAdminPasswordSecretKmsKeyId(Aws::String&& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = std::move(value); }
46 inline void SetAdminPasswordSecretKmsKeyId(const char* value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId.assign(value); }
51
53
59 inline bool GetManageAdminPassword() const{ return m_manageAdminPassword; }
60 inline bool ManageAdminPasswordHasBeenSet() const { return m_manageAdminPasswordHasBeenSet; }
61 inline void SetManageAdminPassword(bool value) { m_manageAdminPasswordHasBeenSet = true; m_manageAdminPassword = value; }
64
66
69 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
70 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
71 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
72 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
73 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
74 inline RestoreFromSnapshotRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
75 inline RestoreFromSnapshotRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
76 inline RestoreFromSnapshotRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
78
80
83 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
84 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
85 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
86 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
87 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
88 inline RestoreFromSnapshotRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
89 inline RestoreFromSnapshotRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
90 inline RestoreFromSnapshotRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
92
94
101 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
102 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
103 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
104 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
105 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
106 inline RestoreFromSnapshotRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
107 inline RestoreFromSnapshotRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
108 inline RestoreFromSnapshotRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
110
112
116 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
117 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
118 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
119 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
120 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
121 inline RestoreFromSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
122 inline RestoreFromSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
123 inline RestoreFromSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
125
127
130 inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; }
131 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
132 inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; }
133 inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); }
134 inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); }
135 inline RestoreFromSnapshotRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;}
136 inline RestoreFromSnapshotRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;}
137 inline RestoreFromSnapshotRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;}
139 private:
140
141 Aws::String m_adminPasswordSecretKmsKeyId;
142 bool m_adminPasswordSecretKmsKeyIdHasBeenSet = false;
143
144 bool m_manageAdminPassword;
145 bool m_manageAdminPasswordHasBeenSet = false;
146
147 Aws::String m_namespaceName;
148 bool m_namespaceNameHasBeenSet = false;
149
150 Aws::String m_ownerAccount;
151 bool m_ownerAccountHasBeenSet = false;
152
153 Aws::String m_snapshotArn;
154 bool m_snapshotArnHasBeenSet = false;
155
156 Aws::String m_snapshotName;
157 bool m_snapshotNameHasBeenSet = false;
158
159 Aws::String m_workgroupName;
160 bool m_workgroupNameHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace RedshiftServerless
165} // namespace Aws
RestoreFromSnapshotRequest & WithSnapshotName(const char *value)
RestoreFromSnapshotRequest & WithWorkgroupName(Aws::String &&value)
RestoreFromSnapshotRequest & WithWorkgroupName(const Aws::String &value)
RestoreFromSnapshotRequest & WithNamespaceName(const char *value)
RestoreFromSnapshotRequest & WithAdminPasswordSecretKmsKeyId(const char *value)
RestoreFromSnapshotRequest & WithNamespaceName(Aws::String &&value)
RestoreFromSnapshotRequest & WithOwnerAccount(const char *value)
RestoreFromSnapshotRequest & WithOwnerAccount(const Aws::String &value)
RestoreFromSnapshotRequest & WithSnapshotArn(const char *value)
RestoreFromSnapshotRequest & WithAdminPasswordSecretKmsKeyId(const Aws::String &value)
RestoreFromSnapshotRequest & WithOwnerAccount(Aws::String &&value)
RestoreFromSnapshotRequest & WithSnapshotArn(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreFromSnapshotRequest & WithAdminPasswordSecretKmsKeyId(Aws::String &&value)
RestoreFromSnapshotRequest & WithWorkgroupName(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
RestoreFromSnapshotRequest & WithNamespaceName(const Aws::String &value)
RestoreFromSnapshotRequest & WithSnapshotName(Aws::String &&value)
RestoreFromSnapshotRequest & WithSnapshotName(const Aws::String &value)
RestoreFromSnapshotRequest & WithSnapshotArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String