/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DirectoryService { namespace Model { /** *

The result of a CreateTrust request.

See Also:

AWS * API Reference

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

A unique identifier for the trust relationship that was created.

*/ inline const Aws::String& GetTrustId() const{ return m_trustId; } /** *

A unique identifier for the trust relationship that was created.

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

A unique identifier for the trust relationship that was created.

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

A unique identifier for the trust relationship that was created.

*/ inline void SetTrustId(const char* value) { m_trustId.assign(value); } /** *

A unique identifier for the trust relationship that was created.

*/ inline CreateTrustResult& WithTrustId(const Aws::String& value) { SetTrustId(value); return *this;} /** *

A unique identifier for the trust relationship that was created.

*/ inline CreateTrustResult& WithTrustId(Aws::String&& value) { SetTrustId(std::move(value)); return *this;} /** *

A unique identifier for the trust relationship that was created.

*/ inline CreateTrustResult& WithTrustId(const char* value) { SetTrustId(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 CreateTrustResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateTrustResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateTrustResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_trustId; Aws::String m_requestId; }; } // namespace Model } // namespace DirectoryService } // namespace Aws