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

The JSON body of the resource-based policy.

*/ inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; } /** *

The JSON body of the resource-based policy.

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

The JSON body of the resource-based policy.

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

The JSON body of the resource-based policy.

*/ inline void SetResourcePolicy(const char* value) { m_resourcePolicy.assign(value); } /** *

The JSON body of the resource-based policy.

*/ inline DescribeResourcePolicyResult& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;} /** *

The JSON body of the resource-based policy.

*/ inline DescribeResourcePolicyResult& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;} /** *

The JSON body of the resource-based policy.

*/ inline DescribeResourcePolicyResult& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;} /** *

The time at which the policy was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time at which the policy was created.

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

The time at which the policy was created.

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

The time at which the policy was created.

*/ inline DescribeResourcePolicyResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time at which the policy was created.

*/ inline DescribeResourcePolicyResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time at which the policy was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The time at which the policy was last modified.

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

The time at which the policy was last modified.

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

The time at which the policy was last modified.

*/ inline DescribeResourcePolicyResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The time at which the policy was last modified.

*/ inline DescribeResourcePolicyResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

*/ inline const Aws::String& GetPolicyRevisionId() const{ return m_policyRevisionId; } /** *

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

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

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

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

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

*/ inline void SetPolicyRevisionId(const char* value) { m_policyRevisionId.assign(value); } /** *

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

*/ inline DescribeResourcePolicyResult& WithPolicyRevisionId(const Aws::String& value) { SetPolicyRevisionId(value); return *this;} /** *

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

*/ inline DescribeResourcePolicyResult& WithPolicyRevisionId(Aws::String&& value) { SetPolicyRevisionId(std::move(value)); return *this;} /** *

The revision ID of the policy. Each time you modify a policy, Amazon * Comprehend assigns a new revision ID, and it deletes the prior version of the * policy.

*/ inline DescribeResourcePolicyResult& WithPolicyRevisionId(const char* value) { SetPolicyRevisionId(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 DescribeResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_resourcePolicy; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_policyRevisionId; Aws::String m_requestId; }; } // namespace Model } // namespace Comprehend } // namespace Aws