AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SchemaField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3tables/S3Tables_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace S3Tables {
20namespace Model {
21
28 public:
29 AWS_S3TABLES_API SchemaField() = default;
30 AWS_S3TABLES_API SchemaField(Aws::Utils::Json::JsonView jsonValue);
31 AWS_S3TABLES_API SchemaField& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline int GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 inline void SetId(int value) {
43 m_idHasBeenSet = true;
44 m_id = value;
45 }
46 inline SchemaField& WithId(int value) {
47 SetId(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 SchemaField& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::String& GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 template <typename TypeT = Aws::String>
80 void SetType(TypeT&& value) {
81 m_typeHasBeenSet = true;
82 m_type = std::forward<TypeT>(value);
83 }
84 template <typename TypeT = Aws::String>
85 SchemaField& WithType(TypeT&& value) {
86 SetType(std::forward<TypeT>(value));
87 return *this;
88 }
90
92
98 inline bool GetRequired() const { return m_required; }
99 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
100 inline void SetRequired(bool value) {
101 m_requiredHasBeenSet = true;
102 m_required = value;
103 }
104 inline SchemaField& WithRequired(bool value) {
105 SetRequired(value);
106 return *this;
107 }
109 private:
110 int m_id{0};
111
112 Aws::String m_name;
113
114 Aws::String m_type;
115
116 bool m_required{false};
117 bool m_idHasBeenSet = false;
118 bool m_nameHasBeenSet = false;
119 bool m_typeHasBeenSet = false;
120 bool m_requiredHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace S3Tables
125} // namespace Aws
AWS_S3TABLES_API SchemaField & operator=(Aws::Utils::Json::JsonView jsonValue)
SchemaField & WithName(NameT &&value)
Definition SchemaField.h:64
SchemaField & WithType(TypeT &&value)
Definition SchemaField.h:85
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_S3TABLES_API SchemaField(Aws::Utils::Json::JsonView jsonValue)
AWS_S3TABLES_API SchemaField()=default
const Aws::String & GetType() const
Definition SchemaField.h:77
SchemaField & WithRequired(bool value)
const Aws::String & GetName() const
Definition SchemaField.h:56
SchemaField & WithId(int value)
Definition SchemaField.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue