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

A structure that contains details about the newly created OU.

*/ inline const OrganizationalUnit& GetOrganizationalUnit() const{ return m_organizationalUnit; } /** *

A structure that contains details about the newly created OU.

*/ inline void SetOrganizationalUnit(const OrganizationalUnit& value) { m_organizationalUnit = value; } /** *

A structure that contains details about the newly created OU.

*/ inline void SetOrganizationalUnit(OrganizationalUnit&& value) { m_organizationalUnit = std::move(value); } /** *

A structure that contains details about the newly created OU.

*/ inline CreateOrganizationalUnitResult& WithOrganizationalUnit(const OrganizationalUnit& value) { SetOrganizationalUnit(value); return *this;} /** *

A structure that contains details about the newly created OU.

*/ inline CreateOrganizationalUnitResult& WithOrganizationalUnit(OrganizationalUnit&& value) { SetOrganizationalUnit(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 CreateOrganizationalUnitResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateOrganizationalUnitResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateOrganizationalUnitResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: OrganizationalUnit m_organizationalUnit; Aws::String m_requestId; }; } // namespace Model } // namespace Organizations } // namespace Aws