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

The resource policy that was set after processing the request.

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

The resource policy that was set after processing the request.

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

The resource policy that was set after processing the request.

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

The resource policy that was set after processing the request.

*/ inline PutDomainPermissionsPolicyResult& WithPolicy(const ResourcePolicy& value) { SetPolicy(value); return *this;} /** *

The resource policy that was set after processing the request.

*/ inline PutDomainPermissionsPolicyResult& WithPolicy(ResourcePolicy&& value) { SetPolicy(std::move(value)); return *this;} private: ResourcePolicy m_policy; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws