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

The resource policy for the resource identified by the input ARN parameter. *

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The resource policy for the resource identified by the input ARN parameter. *

*/ inline void SetPolicy(const Aws::String& value) { m_policy = value; } /** *

The resource policy for the resource identified by the input ARN parameter. *

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

The resource policy for the resource identified by the input ARN parameter. *

*/ inline void SetPolicy(const char* value) { m_policy.assign(value); } /** *

The resource policy for the resource identified by the input ARN parameter. *

*/ inline GetResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The resource policy for the resource identified by the input ARN parameter. *

*/ inline GetResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The resource policy for the resource identified by the input ARN parameter. *

*/ inline GetResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_policy; }; } // namespace Model } // namespace CodeBuild } // namespace Aws