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

The ID of the policy store that contains the schema.

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

The ID of the policy store that contains the schema.

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

The ID of the policy store that contains the schema.

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

The ID of the policy store that contains the schema.

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

The ID of the policy store that contains the schema.

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

The ID of the policy store that contains the schema.

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

The ID of the policy store that contains the schema.

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

The body of the schema, written in Cedar schema JSON.

*/ inline const Aws::String& GetSchema() const{ return m_schema; } /** *

The body of the schema, written in Cedar schema JSON.

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

The body of the schema, written in Cedar schema JSON.

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

The body of the schema, written in Cedar schema JSON.

*/ inline void SetSchema(const char* value) { m_schema.assign(value); } /** *

The body of the schema, written in Cedar schema JSON.

*/ inline GetSchemaResult& WithSchema(const Aws::String& value) { SetSchema(value); return *this;} /** *

The body of the schema, written in Cedar schema JSON.

*/ inline GetSchemaResult& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;} /** *

The body of the schema, written in Cedar schema JSON.

*/ inline GetSchemaResult& WithSchema(const char* value) { SetSchema(value); return *this;} /** *

The date and time that the schema was originally created.

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

The date and time that the schema was originally created.

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

The date and time that the schema was originally created.

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

The date and time that the schema was originally created.

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

The date and time that the schema was originally created.

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

The date and time that the schema was most recently updated.

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

The date and time that the schema was most recently updated.

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

The date and time that the schema was most recently updated.

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

The date and time that the schema was most recently updated.

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

The date and time that the schema was most recently updated.

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