AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreFromSnapshotResult.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/model/Namespace.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace RedshiftServerless
25{
26namespace Model
27{
29 {
30 public:
31 AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult() = default;
34
35
37
38 inline const Namespace& GetNamespace() const { return m_namespace; }
39 template<typename NamespaceT = Namespace>
40 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
41 template<typename NamespaceT = Namespace>
42 RestoreFromSnapshotResult& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
44
46
49 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
50 template<typename OwnerAccountT = Aws::String>
51 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
52 template<typename OwnerAccountT = Aws::String>
53 RestoreFromSnapshotResult& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
55
57
60 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
61 template<typename SnapshotNameT = Aws::String>
62 void SetSnapshotName(SnapshotNameT&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::forward<SnapshotNameT>(value); }
63 template<typename SnapshotNameT = Aws::String>
64 RestoreFromSnapshotResult& WithSnapshotName(SnapshotNameT&& value) { SetSnapshotName(std::forward<SnapshotNameT>(value)); return *this;}
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template<typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
72 template<typename RequestIdT = Aws::String>
73 RestoreFromSnapshotResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
75 private:
76
77 Namespace m_namespace;
78 bool m_namespaceHasBeenSet = false;
79
80 Aws::String m_ownerAccount;
81 bool m_ownerAccountHasBeenSet = false;
82
83 Aws::String m_snapshotName;
84 bool m_snapshotNameHasBeenSet = false;
85
86 Aws::String m_requestId;
87 bool m_requestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace RedshiftServerless
92} // 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