AWS SDK for C++

AWS SDK for C++ Version 1.11.856

Loading...
Searching...
No Matches
RestoreFromSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RedshiftServerless {
15namespace Model {
16
20 public:
21 AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotRequest() = 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 "RestoreFromSnapshot"; }
28
29 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
30
31 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetAdminPasswordSecretKmsKeyId() const { return m_adminPasswordSecretKmsKeyId; }
39 inline bool AdminPasswordSecretKmsKeyIdHasBeenSet() const { return m_adminPasswordSecretKmsKeyIdHasBeenSet; }
40 template <typename AdminPasswordSecretKmsKeyIdT = Aws::String>
41 void SetAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT&& value) {
42 m_adminPasswordSecretKmsKeyIdHasBeenSet = true;
43 m_adminPasswordSecretKmsKeyId = std::forward<AdminPasswordSecretKmsKeyIdT>(value);
44 }
45 template <typename AdminPasswordSecretKmsKeyIdT = Aws::String>
46 RestoreFromSnapshotRequest& WithAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT&& value) {
47 SetAdminPasswordSecretKmsKeyId(std::forward<AdminPasswordSecretKmsKeyIdT>(value));
48 return *this;
49 }
51
53
59 inline bool GetMaintainIntegration() const { return m_maintainIntegration; }
60 inline bool MaintainIntegrationHasBeenSet() const { return m_maintainIntegrationHasBeenSet; }
61 inline void SetMaintainIntegration(bool value) {
62 m_maintainIntegrationHasBeenSet = true;
63 m_maintainIntegration = value;
64 }
67 return *this;
68 }
70
72
78 inline bool GetManageAdminPassword() const { return m_manageAdminPassword; }
79 inline bool ManageAdminPasswordHasBeenSet() const { return m_manageAdminPasswordHasBeenSet; }
80 inline void SetManageAdminPassword(bool value) {
81 m_manageAdminPasswordHasBeenSet = true;
82 m_manageAdminPassword = value;
83 }
86 return *this;
87 }
89
91
94 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
95 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
96 template <typename NamespaceNameT = Aws::String>
97 void SetNamespaceName(NamespaceNameT&& value) {
98 m_namespaceNameHasBeenSet = true;
99 m_namespaceName = std::forward<NamespaceNameT>(value);
100 }
101 template <typename NamespaceNameT = Aws::String>
103 SetNamespaceName(std::forward<NamespaceNameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
113 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
114 template <typename OwnerAccountT = Aws::String>
115 void SetOwnerAccount(OwnerAccountT&& value) {
116 m_ownerAccountHasBeenSet = true;
117 m_ownerAccount = std::forward<OwnerAccountT>(value);
118 }
119 template <typename OwnerAccountT = Aws::String>
121 SetOwnerAccount(std::forward<OwnerAccountT>(value));
122 return *this;
123 }
125
127
134 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
135 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
136 template <typename SnapshotArnT = Aws::String>
137 void SetSnapshotArn(SnapshotArnT&& value) {
138 m_snapshotArnHasBeenSet = true;
139 m_snapshotArn = std::forward<SnapshotArnT>(value);
140 }
141 template <typename SnapshotArnT = Aws::String>
143 SetSnapshotArn(std::forward<SnapshotArnT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
154 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
155 template <typename SnapshotNameT = Aws::String>
156 void SetSnapshotName(SnapshotNameT&& value) {
157 m_snapshotNameHasBeenSet = true;
158 m_snapshotName = std::forward<SnapshotNameT>(value);
159 }
160 template <typename SnapshotNameT = Aws::String>
162 SetSnapshotName(std::forward<SnapshotNameT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
172 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
173 template <typename WorkgroupNameT = Aws::String>
174 void SetWorkgroupName(WorkgroupNameT&& value) {
175 m_workgroupNameHasBeenSet = true;
176 m_workgroupName = std::forward<WorkgroupNameT>(value);
177 }
178 template <typename WorkgroupNameT = Aws::String>
180 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_adminPasswordSecretKmsKeyId;
186
187 bool m_maintainIntegration{false};
188
189 bool m_manageAdminPassword{false};
190
191 Aws::String m_namespaceName;
192
193 Aws::String m_ownerAccount;
194
195 Aws::String m_snapshotArn;
196
197 Aws::String m_snapshotName;
198
199 Aws::String m_workgroupName;
200 bool m_adminPasswordSecretKmsKeyIdHasBeenSet = false;
201 bool m_maintainIntegrationHasBeenSet = false;
202 bool m_manageAdminPasswordHasBeenSet = false;
203 bool m_namespaceNameHasBeenSet = false;
204 bool m_ownerAccountHasBeenSet = false;
205 bool m_snapshotArnHasBeenSet = false;
206 bool m_snapshotNameHasBeenSet = false;
207 bool m_workgroupNameHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace RedshiftServerless
212} // namespace Aws
RestoreFromSnapshotRequest & WithOwnerAccount(OwnerAccountT &&value)
void SetAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT &&value)
RestoreFromSnapshotRequest & WithWorkgroupName(WorkgroupNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreFromSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotRequest()=default
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
RestoreFromSnapshotRequest & WithAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT &&value)
RestoreFromSnapshotRequest & WithSnapshotArn(SnapshotArnT &&value)
RestoreFromSnapshotRequest & WithNamespaceName(NamespaceNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String