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

The ID of the policy store that contains the policy template.

*/ inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; } /** *

The ID of the policy store that contains the policy template.

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

The ID of the policy store that contains the policy template.

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

The ID of the policy store that contains the policy template.

*/ inline void SetPolicyStoreId(const char* value) { m_policyStoreId.assign(value); } /** *

The ID of the policy store that contains the policy template.

*/ inline GetPolicyTemplateResult& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;} /** *

The ID of the policy store that contains the policy template.

*/ inline GetPolicyTemplateResult& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;} /** *

The ID of the policy store that contains the policy template.

*/ inline GetPolicyTemplateResult& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;} /** *

The ID of the policy template.

*/ inline const Aws::String& GetPolicyTemplateId() const{ return m_policyTemplateId; } /** *

The ID of the policy template.

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

The ID of the policy template.

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

The ID of the policy template.

*/ inline void SetPolicyTemplateId(const char* value) { m_policyTemplateId.assign(value); } /** *

The ID of the policy template.

*/ inline GetPolicyTemplateResult& WithPolicyTemplateId(const Aws::String& value) { SetPolicyTemplateId(value); return *this;} /** *

The ID of the policy template.

*/ inline GetPolicyTemplateResult& WithPolicyTemplateId(Aws::String&& value) { SetPolicyTemplateId(std::move(value)); return *this;} /** *

The ID of the policy template.

*/ inline GetPolicyTemplateResult& WithPolicyTemplateId(const char* value) { SetPolicyTemplateId(value); return *this;} /** *

The description of the policy template.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the policy template.

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

The description of the policy template.

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

The description of the policy template.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the policy template.

*/ inline GetPolicyTemplateResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the policy template.

*/ inline GetPolicyTemplateResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the policy template.

*/ inline GetPolicyTemplateResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The content of the body of the policy template written in the Cedar policy * language.

*/ inline const Aws::String& GetStatement() const{ return m_statement; } /** *

The content of the body of the policy template written in the Cedar policy * language.

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

The content of the body of the policy template written in the Cedar policy * language.

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

The content of the body of the policy template written in the Cedar policy * language.

*/ inline void SetStatement(const char* value) { m_statement.assign(value); } /** *

The content of the body of the policy template written in the Cedar policy * language.

*/ inline GetPolicyTemplateResult& WithStatement(const Aws::String& value) { SetStatement(value); return *this;} /** *

The content of the body of the policy template written in the Cedar policy * language.

*/ inline GetPolicyTemplateResult& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;} /** *

The content of the body of the policy template written in the Cedar policy * language.

*/ inline GetPolicyTemplateResult& WithStatement(const char* value) { SetStatement(value); return *this;} /** *

The date and time that the policy template was originally created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date and time that the policy template was originally created.

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

The date and time that the policy template was originally created.

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

The date and time that the policy template was originally created.

*/ inline GetPolicyTemplateResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date and time that the policy template was originally created.

*/ inline GetPolicyTemplateResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The date and time that the policy template was most recently updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } /** *

The date and time that the policy template was most recently updated.

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

The date and time that the policy template was most recently updated.

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

The date and time that the policy template was most recently updated.

*/ inline GetPolicyTemplateResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} /** *

The date and time that the policy template was most recently updated.

*/ inline GetPolicyTemplateResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(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 GetPolicyTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPolicyTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPolicyTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policyStoreId; Aws::String m_policyTemplateId; Aws::String m_description; Aws::String m_statement; Aws::Utils::DateTime m_createdDate; Aws::Utils::DateTime m_lastUpdatedDate; Aws::String m_requestId; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws