AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
RestoreFromSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10#include <aws/redshift-serverless/model/Namespace.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace RedshiftServerless {
24namespace Model {
26 public:
27 AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult() = default;
30
32
33 inline const Namespace& GetNamespace() const { return m_namespace; }
34 template <typename NamespaceT = Namespace>
35 void SetNamespace(NamespaceT&& value) {
36 m_namespaceHasBeenSet = true;
37 m_namespace = std::forward<NamespaceT>(value);
38 }
39 template <typename NamespaceT = Namespace>
41 SetNamespace(std::forward<NamespaceT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
51 template <typename OwnerAccountT = Aws::String>
52 void SetOwnerAccount(OwnerAccountT&& value) {
53 m_ownerAccountHasBeenSet = true;
54 m_ownerAccount = std::forward<OwnerAccountT>(value);
55 }
56 template <typename OwnerAccountT = Aws::String>
58 SetOwnerAccount(std::forward<OwnerAccountT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
68 template <typename SnapshotNameT = Aws::String>
69 void SetSnapshotName(SnapshotNameT&& value) {
70 m_snapshotNameHasBeenSet = true;
71 m_snapshotName = std::forward<SnapshotNameT>(value);
72 }
73 template <typename SnapshotNameT = Aws::String>
75 SetSnapshotName(std::forward<SnapshotNameT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Namespace m_namespace;
98
99 Aws::String m_ownerAccount;
100
101 Aws::String m_snapshotName;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_namespaceHasBeenSet = false;
106 bool m_ownerAccountHasBeenSet = false;
107 bool m_snapshotNameHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace RedshiftServerless
113} // 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