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

The unique ID of the policy store that contains the schema.

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

The unique ID of the policy store that contains the schema.

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

The unique ID of the policy store that contains the schema.

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

The unique ID of the policy store that contains the schema.

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

The unique ID of the policy store that contains the schema.

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

The unique ID of the policy store that contains the schema.

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

The unique ID of the policy store that contains the schema.

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

Identifies the namespaces of the entities referenced by this schema.

*/ inline const Aws::Vector& GetNamespaces() const{ return m_namespaces; } /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline void SetNamespaces(const Aws::Vector& value) { m_namespaces = value; } /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline void SetNamespaces(Aws::Vector&& value) { m_namespaces = std::move(value); } /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline PutSchemaResult& WithNamespaces(const Aws::Vector& value) { SetNamespaces(value); return *this;} /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline PutSchemaResult& WithNamespaces(Aws::Vector&& value) { SetNamespaces(std::move(value)); return *this;} /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline PutSchemaResult& AddNamespaces(const Aws::String& value) { m_namespaces.push_back(value); return *this; } /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline PutSchemaResult& AddNamespaces(Aws::String&& value) { m_namespaces.push_back(std::move(value)); return *this; } /** *

Identifies the namespaces of the entities referenced by this schema.

*/ inline PutSchemaResult& AddNamespaces(const char* value) { m_namespaces.push_back(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 PutSchemaResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date and time that the schema was originally created.

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

The date and time that the schema was last updated.

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

The date and time that the schema was last updated.

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

The date and time that the schema was last updated.

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

The date and time that the schema was last updated.

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

The date and time that the schema was last updated.

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