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

The returned resource policy.

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

The returned resource policy.

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

The returned resource policy.

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

The returned resource policy.

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

The returned resource policy.

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