AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SchemaSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Schemas {
22namespace Model {
23
30 public:
31 AWS_SCHEMAS_API SchemaSummary() = default;
32 AWS_SCHEMAS_API SchemaSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SCHEMAS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
41 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
42 template <typename LastModifiedT = Aws::Utils::DateTime>
43 void SetLastModified(LastModifiedT&& value) {
44 m_lastModifiedHasBeenSet = true;
45 m_lastModified = std::forward<LastModifiedT>(value);
46 }
47 template <typename LastModifiedT = Aws::Utils::DateTime>
48 SchemaSummary& WithLastModified(LastModifiedT&& value) {
49 SetLastModified(std::forward<LastModifiedT>(value));
50 return *this;
51 }
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) {
62 m_schemaArnHasBeenSet = true;
63 m_schemaArn = std::forward<SchemaArnT>(value);
64 }
65 template <typename SchemaArnT = Aws::String>
66 SchemaSummary& WithSchemaArn(SchemaArnT&& value) {
67 SetSchemaArn(std::forward<SchemaArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
77 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
78 template <typename SchemaNameT = Aws::String>
79 void SetSchemaName(SchemaNameT&& value) {
80 m_schemaNameHasBeenSet = true;
81 m_schemaName = std::forward<SchemaNameT>(value);
82 }
83 template <typename SchemaNameT = Aws::String>
84 SchemaSummary& WithSchemaName(SchemaNameT&& value) {
85 SetSchemaName(std::forward<SchemaNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags = std::forward<TagsT>(value);
100 }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SchemaSummary& WithTags(TagsT&& value) {
103 SetTags(std::forward<TagsT>(value));
104 return *this;
105 }
106 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 SchemaSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
110 return *this;
111 }
113
115
118 inline long long GetVersionCount() const { return m_versionCount; }
119 inline bool VersionCountHasBeenSet() const { return m_versionCountHasBeenSet; }
120 inline void SetVersionCount(long long value) {
121 m_versionCountHasBeenSet = true;
122 m_versionCount = value;
123 }
124 inline SchemaSummary& WithVersionCount(long long value) {
125 SetVersionCount(value);
126 return *this;
127 }
129 private:
130 Aws::Utils::DateTime m_lastModified{};
131
132 Aws::String m_schemaArn;
133
134 Aws::String m_schemaName;
135
137
138 long long m_versionCount{0};
139 bool m_lastModifiedHasBeenSet = false;
140 bool m_schemaArnHasBeenSet = false;
141 bool m_schemaNameHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143 bool m_versionCountHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Schemas
148} // 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