AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SchemaSummary.h
1
6#pragma once
7#include <aws/schemas/Schemas_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Schemas
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SCHEMAS_API SchemaSummary() = default;
37 AWS_SCHEMAS_API SchemaSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SCHEMAS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
47 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
48 template<typename LastModifiedT = Aws::Utils::DateTime>
49 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
50 template<typename LastModifiedT = Aws::Utils::DateTime>
51 SchemaSummary& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
53
55
58 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
59 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
60 template<typename SchemaArnT = Aws::String>
61 void SetSchemaArn(SchemaArnT&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::forward<SchemaArnT>(value); }
62 template<typename SchemaArnT = Aws::String>
63 SchemaSummary& WithSchemaArn(SchemaArnT&& value) { SetSchemaArn(std::forward<SchemaArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
71 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
72 template<typename SchemaNameT = Aws::String>
73 void SetSchemaName(SchemaNameT&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::forward<SchemaNameT>(value); }
74 template<typename SchemaNameT = Aws::String>
75 SchemaSummary& WithSchemaName(SchemaNameT&& value) { SetSchemaName(std::forward<SchemaNameT>(value)); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 SchemaSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 SchemaSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
91 }
93
95
98 inline long long GetVersionCount() const { return m_versionCount; }
99 inline bool VersionCountHasBeenSet() const { return m_versionCountHasBeenSet; }
100 inline void SetVersionCount(long long value) { m_versionCountHasBeenSet = true; m_versionCount = value; }
101 inline SchemaSummary& WithVersionCount(long long value) { SetVersionCount(value); return *this;}
103 private:
104
105 Aws::Utils::DateTime m_lastModified{};
106 bool m_lastModifiedHasBeenSet = false;
107
108 Aws::String m_schemaArn;
109 bool m_schemaArnHasBeenSet = false;
110
111 Aws::String m_schemaName;
112 bool m_schemaNameHasBeenSet = false;
113
115 bool m_tagsHasBeenSet = false;
116
117 long long m_versionCount{0};
118 bool m_versionCountHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Schemas
123} // namespace Aws
const Aws::String & GetSchemaArn() const
void SetLastModified(LastModifiedT &&value)
void SetSchemaArn(SchemaArnT &&value)
AWS_SCHEMAS_API SchemaSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEMAS_API SchemaSummary()=default
const Aws::String & GetSchemaName() const
void SetVersionCount(long long value)
AWS_SCHEMAS_API SchemaSummary(Aws::Utils::Json::JsonView jsonValue)
SchemaSummary & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SchemaSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
SchemaSummary & WithVersionCount(long long value)
SchemaSummary & WithSchemaArn(SchemaArnT &&value)
const Aws::Utils::DateTime & GetLastModified() const
AWS_SCHEMAS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSchemaName(SchemaNameT &&value)
SchemaSummary & WithLastModified(LastModifiedT &&value)
SchemaSummary & WithSchemaName(SchemaNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue