/** * 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 OpenSearchService { namespace Model { /** *

The results of a DeleteDomain request. Contains the status of * the pending deletion, or a "domain not found" error if the domain and all of its * resources have been deleted.

See Also:

AWS * API Reference

*/ class DeleteDomainResult { public: AWS_OPENSEARCHSERVICE_API DeleteDomainResult(); AWS_OPENSEARCHSERVICE_API DeleteDomainResult(const Aws::AmazonWebServiceResult& result); AWS_OPENSEARCHSERVICE_API DeleteDomainResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The status of the domain being deleted.

*/ inline const DomainStatus& GetDomainStatus() const{ return m_domainStatus; } /** *

The status of the domain being deleted.

*/ inline void SetDomainStatus(const DomainStatus& value) { m_domainStatus = value; } /** *

The status of the domain being deleted.

*/ inline void SetDomainStatus(DomainStatus&& value) { m_domainStatus = std::move(value); } /** *

The status of the domain being deleted.

*/ inline DeleteDomainResult& WithDomainStatus(const DomainStatus& value) { SetDomainStatus(value); return *this;} /** *

The status of the domain being deleted.

*/ inline DeleteDomainResult& WithDomainStatus(DomainStatus&& value) { SetDomainStatus(std::move(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 DeleteDomainResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DeleteDomainResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DeleteDomainResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DomainStatus m_domainStatus; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws