AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SchemaV2Field.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3tables/S3Tables_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace S3Tables {
21namespace Model {
22
32 public:
33 AWS_S3TABLES_API SchemaV2Field() = default;
34 AWS_S3TABLES_API SchemaV2Field(Aws::Utils::Json::JsonView jsonValue);
36 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline int GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 inline void SetId(int value) {
47 m_idHasBeenSet = true;
48 m_id = value;
49 }
50 inline SchemaV2Field& WithId(int value) {
51 SetId(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 SchemaV2Field& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
86 inline Aws::Utils::DocumentView GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 template <typename TypeT = Aws::Utils::Document>
89 void SetType(TypeT&& value) {
90 m_typeHasBeenSet = true;
91 m_type = std::forward<TypeT>(value);
92 }
93 template <typename TypeT = Aws::Utils::Document>
94 SchemaV2Field& WithType(TypeT&& value) {
95 SetType(std::forward<TypeT>(value));
96 return *this;
97 }
99
101
106 inline bool GetRequired() const { return m_required; }
107 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
108 inline void SetRequired(bool value) {
109 m_requiredHasBeenSet = true;
110 m_required = value;
111 }
112 inline SchemaV2Field& WithRequired(bool value) {
113 SetRequired(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetDoc() const { return m_doc; }
123 inline bool DocHasBeenSet() const { return m_docHasBeenSet; }
124 template <typename DocT = Aws::String>
125 void SetDoc(DocT&& value) {
126 m_docHasBeenSet = true;
127 m_doc = std::forward<DocT>(value);
128 }
129 template <typename DocT = Aws::String>
130 SchemaV2Field& WithDoc(DocT&& value) {
131 SetDoc(std::forward<DocT>(value));
132 return *this;
133 }
135 private:
136 int m_id{0};
137
138 Aws::String m_name;
139
141
142 bool m_required{false};
143
144 Aws::String m_doc;
145 bool m_idHasBeenSet = false;
146 bool m_nameHasBeenSet = false;
147 bool m_typeHasBeenSet = false;
148 bool m_requiredHasBeenSet = false;
149 bool m_docHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace S3Tables
154} // namespace Aws
const Aws::String & GetDoc() const
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_S3TABLES_API SchemaV2Field(Aws::Utils::Json::JsonView jsonValue)
AWS_S3TABLES_API SchemaV2Field & operator=(Aws::Utils::Json::JsonView jsonValue)
SchemaV2Field & WithId(int value)
Aws::Utils::DocumentView GetType() const
SchemaV2Field & WithName(NameT &&value)
SchemaV2Field & WithRequired(bool value)
const Aws::String & GetName() const
SchemaV2Field & WithType(TypeT &&value)
AWS_S3TABLES_API SchemaV2Field()=default
SchemaV2Field & WithDoc(DocT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue