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

A structure that contains information about the organization.

*

The AvailablePolicyTypes part of the response is deprecated, and * you shouldn't use it in your apps. It doesn't include any policy type supported * by Organizations other than SCPs. To determine which policy types are enabled in * your organization, use the ListRoots operation.

* */ inline const Organization& GetOrganization() const{ return m_organization; } /** *

A structure that contains information about the organization.

*

The AvailablePolicyTypes part of the response is deprecated, and * you shouldn't use it in your apps. It doesn't include any policy type supported * by Organizations other than SCPs. To determine which policy types are enabled in * your organization, use the ListRoots operation.

* */ inline void SetOrganization(const Organization& value) { m_organization = value; } /** *

A structure that contains information about the organization.

*

The AvailablePolicyTypes part of the response is deprecated, and * you shouldn't use it in your apps. It doesn't include any policy type supported * by Organizations other than SCPs. To determine which policy types are enabled in * your organization, use the ListRoots operation.

* */ inline void SetOrganization(Organization&& value) { m_organization = std::move(value); } /** *

A structure that contains information about the organization.

*

The AvailablePolicyTypes part of the response is deprecated, and * you shouldn't use it in your apps. It doesn't include any policy type supported * by Organizations other than SCPs. To determine which policy types are enabled in * your organization, use the ListRoots operation.

* */ inline DescribeOrganizationResult& WithOrganization(const Organization& value) { SetOrganization(value); return *this;} /** *

A structure that contains information about the organization.

*

The AvailablePolicyTypes part of the response is deprecated, and * you shouldn't use it in your apps. It doesn't include any policy type supported * by Organizations other than SCPs. To determine which policy types are enabled in * your organization, use the ListRoots operation.

* */ inline DescribeOrganizationResult& WithOrganization(Organization&& value) { SetOrganization(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 DescribeOrganizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeOrganizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeOrganizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Organization m_organization; Aws::String m_requestId; }; } // namespace Model } // namespace Organizations } // namespace Aws