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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

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

A JSON-formatted string for an Amazon Web Services resource-based policy. *

*/ inline GetResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws