/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

Contains the response to a successful CreatePolicy request. *

See Also:

AWS * API Reference

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

A structure containing details about the new policy.

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

A structure containing details about the new policy.

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

A structure containing details about the new policy.

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

A structure containing details about the new policy.

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

A structure containing details about the new policy.

*/ inline CreatePolicyResult& WithPolicy(Policy&& value) { SetPolicy(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreatePolicyResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreatePolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Policy m_policy; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace IAM } // namespace Aws