/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Schemas { namespace Model { /** *

A summary of schema details.

See Also:

AWS * API Reference

*/ class AWS_SCHEMAS_API SchemaSummary { public: SchemaSummary(); SchemaSummary(Aws::Utils::Json::JsonView jsonValue); SchemaSummary& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The date and time that schema was modified.

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

The date and time that schema was modified.

*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *

The date and time that schema was modified.

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *

The date and time that schema was modified.

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *

The date and time that schema was modified.

*/ inline SchemaSummary& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

The date and time that schema was modified.

*/ inline SchemaSummary& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

The ARN of the schema.

*/ inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; } /** *

The ARN of the schema.

*/ inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; } /** *

The ARN of the schema.

*/ inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; } /** *

The ARN of the schema.

*/ inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); } /** *

The ARN of the schema.

*/ inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); } /** *

The ARN of the schema.

*/ inline SchemaSummary& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;} /** *

The ARN of the schema.

*/ inline SchemaSummary& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;} /** *

The ARN of the schema.

*/ inline SchemaSummary& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;} /** *

The name of the schema.

*/ inline const Aws::String& GetSchemaName() const{ return m_schemaName; } /** *

The name of the schema.

*/ inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; } /** *

The name of the schema.

*/ inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; } /** *

The name of the schema.

*/ inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); } /** *

The name of the schema.

*/ inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); } /** *

The name of the schema.

*/ inline SchemaSummary& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;} /** *

The name of the schema.

*/ inline SchemaSummary& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;} /** *

The name of the schema.

*/ inline SchemaSummary& WithSchemaName(const char* value) { SetSchemaName(value); return *this;} /** *

Tags associated with the schema.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags associated with the schema.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags associated with the schema.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags associated with the schema.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags associated with the schema.

*/ inline SchemaSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags associated with the schema.

*/ inline SchemaSummary& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags associated with the schema.

*/ inline SchemaSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The number of versions available for the schema.

*/ inline long long GetVersionCount() const{ return m_versionCount; } /** *

The number of versions available for the schema.

*/ inline bool VersionCountHasBeenSet() const { return m_versionCountHasBeenSet; } /** *

The number of versions available for the schema.

*/ inline void SetVersionCount(long long value) { m_versionCountHasBeenSet = true; m_versionCount = value; } /** *

The number of versions available for the schema.

*/ inline SchemaSummary& WithVersionCount(long long value) { SetVersionCount(value); return *this;} private: Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet; Aws::String m_schemaArn; bool m_schemaArnHasBeenSet; Aws::String m_schemaName; bool m_schemaNameHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; long long m_versionCount; bool m_versionCountHasBeenSet; }; } // namespace Model } // namespace Schemas } // namespace Aws