/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RedshiftServerless { namespace Model { class RestoreFromSnapshotResult { public: AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult(); AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult(const Aws::AmazonWebServiceResult& result); AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Namespace& GetNamespace() const{ return m_namespace; } inline void SetNamespace(const Namespace& value) { m_namespace = value; } inline void SetNamespace(Namespace&& value) { m_namespace = std::move(value); } inline RestoreFromSnapshotResult& WithNamespace(const Namespace& value) { SetNamespace(value); return *this;} inline RestoreFromSnapshotResult& WithNamespace(Namespace&& value) { SetNamespace(std::move(value)); return *this;} /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccount = value; } /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccount = std::move(value); } /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccount.assign(value); } /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline RestoreFromSnapshotResult& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline RestoreFromSnapshotResult& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The owner Amazon Web Services; account of the snapshot that was restored.

*/ inline RestoreFromSnapshotResult& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *

The name of the snapshot used to restore the namespace.

*/ inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; } /** *

The name of the snapshot used to restore the namespace.

*/ inline void SetSnapshotName(const Aws::String& value) { m_snapshotName = value; } /** *

The name of the snapshot used to restore the namespace.

*/ inline void SetSnapshotName(Aws::String&& value) { m_snapshotName = std::move(value); } /** *

The name of the snapshot used to restore the namespace.

*/ inline void SetSnapshotName(const char* value) { m_snapshotName.assign(value); } /** *

The name of the snapshot used to restore the namespace.

*/ inline RestoreFromSnapshotResult& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;} /** *

The name of the snapshot used to restore the namespace.

*/ inline RestoreFromSnapshotResult& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;} /** *

The name of the snapshot used to restore the namespace.

*/ inline RestoreFromSnapshotResult& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline RestoreFromSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RestoreFromSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RestoreFromSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Namespace m_namespace; Aws::String m_ownerAccount; Aws::String m_snapshotName; Aws::String m_requestId; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws