1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/codeartifact/CodeArtifact_EXPORTS.h> 8 #include <aws/codeartifact/model/ResourcePolicy.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace CodeArtifact 24 { 25 namespace Model 26 { 27 class AWS_CODEARTIFACT_API GetDomainPermissionsPolicyResult 28 { 29 public: 30 GetDomainPermissionsPolicyResult(); 31 GetDomainPermissionsPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 GetDomainPermissionsPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p> The returned resource policy. </p> 37 */ GetPolicy()38 inline const ResourcePolicy& GetPolicy() const{ return m_policy; } 39 40 /** 41 * <p> The returned resource policy. </p> 42 */ SetPolicy(const ResourcePolicy & value)43 inline void SetPolicy(const ResourcePolicy& value) { m_policy = value; } 44 45 /** 46 * <p> The returned resource policy. </p> 47 */ SetPolicy(ResourcePolicy && value)48 inline void SetPolicy(ResourcePolicy&& value) { m_policy = std::move(value); } 49 50 /** 51 * <p> The returned resource policy. </p> 52 */ WithPolicy(const ResourcePolicy & value)53 inline GetDomainPermissionsPolicyResult& WithPolicy(const ResourcePolicy& value) { SetPolicy(value); return *this;} 54 55 /** 56 * <p> The returned resource policy. </p> 57 */ WithPolicy(ResourcePolicy && value)58 inline GetDomainPermissionsPolicyResult& WithPolicy(ResourcePolicy&& value) { SetPolicy(std::move(value)); return *this;} 59 60 private: 61 62 ResourcePolicy m_policy; 63 }; 64 65 } // namespace Model 66 } // namespace CodeArtifact 67 } // namespace Aws 68