AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RestoreFromSnapshotResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
9#include <aws/redshift-serverless/model/Namespace.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace RedshiftServerless {
23namespace Model {
25 public:
26 AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult() = default;
29
31
32 inline const Namespace& GetNamespace() const { return m_namespace; }
33 template <typename NamespaceT = Namespace>
34 void SetNamespace(NamespaceT&& value) {
35 m_namespaceHasBeenSet = true;
36 m_namespace = std::forward<NamespaceT>(value);
37 }
38 template <typename NamespaceT = Namespace>
40 SetNamespace(std::forward<NamespaceT>(value));
41 return *this;
42 }
44
46
49 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
50 template <typename OwnerAccountT = Aws::String>
51 void SetOwnerAccount(OwnerAccountT&& value) {
52 m_ownerAccountHasBeenSet = true;
53 m_ownerAccount = std::forward<OwnerAccountT>(value);
54 }
55 template <typename OwnerAccountT = Aws::String>
57 SetOwnerAccount(std::forward<OwnerAccountT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
67 template <typename SnapshotNameT = Aws::String>
68 void SetSnapshotName(SnapshotNameT&& value) {
69 m_snapshotNameHasBeenSet = true;
70 m_snapshotName = std::forward<SnapshotNameT>(value);
71 }
72 template <typename SnapshotNameT = Aws::String>
74 SetSnapshotName(std::forward<SnapshotNameT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 private:
94 Namespace m_namespace;
95
96 Aws::String m_ownerAccount;
97
98 Aws::String m_snapshotName;
99
100 Aws::String m_requestId;
101 bool m_namespaceHasBeenSet = false;
102 bool m_ownerAccountHasBeenSet = false;
103 bool m_snapshotNameHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace RedshiftServerless
109} // namespace Aws
RestoreFromSnapshotResult & WithRequestId(RequestIdT &&value)
RestoreFromSnapshotResult & WithOwnerAccount(OwnerAccountT &&value)
AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RestoreFromSnapshotResult & WithSnapshotName(SnapshotNameT &&value)
AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult()=default
RestoreFromSnapshotResult & WithNamespace(NamespaceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue