/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glue { namespace Model { class GetResourcePolicyResult { public: AWS_GLUE_API GetResourcePolicyResult(); AWS_GLUE_API GetResourcePolicyResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API GetResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains the requested policy document, in JSON format.

*/ inline const Aws::String& GetPolicyInJson() const{ return m_policyInJson; } /** *

Contains the requested policy document, in JSON format.

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

Contains the requested policy document, in JSON format.

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

Contains the requested policy document, in JSON format.

*/ inline void SetPolicyInJson(const char* value) { m_policyInJson.assign(value); } /** *

Contains the requested policy document, in JSON format.

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

Contains the requested policy document, in JSON format.

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

Contains the requested policy document, in JSON format.

*/ inline GetResourcePolicyResult& WithPolicyInJson(const char* value) { SetPolicyInJson(value); return *this;} /** *

Contains the hash value associated with this policy.

*/ inline const Aws::String& GetPolicyHash() const{ return m_policyHash; } /** *

Contains the hash value associated with this policy.

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

Contains the hash value associated with this policy.

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

Contains the hash value associated with this policy.

*/ inline void SetPolicyHash(const char* value) { m_policyHash.assign(value); } /** *

Contains the hash value associated with this policy.

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

Contains the hash value associated with this policy.

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

Contains the hash value associated with this policy.

*/ inline GetResourcePolicyResult& WithPolicyHash(const char* value) { SetPolicyHash(value); return *this;} /** *

The date and time at which the policy was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The date and time at which the policy was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTime = value; } /** *

The date and time at which the policy was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTime = std::move(value); } /** *

The date and time at which the policy was created.

*/ inline GetResourcePolicyResult& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The date and time at which the policy was created.

*/ inline GetResourcePolicyResult& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The date and time at which the policy was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The date and time at which the policy was last updated.

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTime = value; } /** *

The date and time at which the policy was last updated.

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTime = std::move(value); } /** *

The date and time at which the policy was last updated.

*/ inline GetResourcePolicyResult& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The date and time at which the policy was last updated.

*/ inline GetResourcePolicyResult& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(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_policyInJson; Aws::String m_policyHash; Aws::Utils::DateTime m_createTime; Aws::Utils::DateTime m_updateTime; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws