/** * 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 Organizations { namespace Model { class DescribePolicyResult { public: AWS_ORGANIZATIONS_API DescribePolicyResult(); AWS_ORGANIZATIONS_API DescribePolicyResult(const Aws::AmazonWebServiceResult& result); AWS_ORGANIZATIONS_API DescribePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A structure that contains details about the specified policy.

*/ inline const Policy& GetPolicy() const{ return m_policy; } /** *

A structure that contains details about the specified policy.

*/ inline void SetPolicy(const Policy& value) { m_policy = value; } /** *

A structure that contains details about the specified policy.

*/ inline void SetPolicy(Policy&& value) { m_policy = std::move(value); } /** *

A structure that contains details about the specified policy.

*/ inline DescribePolicyResult& WithPolicy(const Policy& value) { SetPolicy(value); return *this;} /** *

A structure that contains details about the specified policy.

*/ inline DescribePolicyResult& WithPolicy(Policy&& value) { SetPolicy(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 DescribePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Policy m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace Organizations } // namespace Aws