AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SchemaField.h
1
6#pragma once
7#include <aws/s3tables/S3Tables_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace S3Tables
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_S3TABLES_API SchemaField() = default;
35 AWS_S3TABLES_API SchemaField(Aws::Utils::Json::JsonView jsonValue);
36 AWS_S3TABLES_API SchemaField& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 SchemaField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
59 inline const Aws::String& GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 template<typename TypeT = Aws::String>
62 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
63 template<typename TypeT = Aws::String>
64 SchemaField& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
66
68
74 inline bool GetRequired() const { return m_required; }
75 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
76 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
77 inline SchemaField& WithRequired(bool value) { SetRequired(value); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_type;
85 bool m_typeHasBeenSet = false;
86
87 bool m_required{false};
88 bool m_requiredHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace S3Tables
93} // namespace Aws
AWS_S3TABLES_API SchemaField & operator=(Aws::Utils::Json::JsonView jsonValue)
SchemaField & WithName(NameT &&value)
Definition SchemaField.h:49
SchemaField & WithType(TypeT &&value)
Definition SchemaField.h:64
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:59
SchemaField & WithRequired(bool value)
Definition SchemaField.h:77
const Aws::String & GetName() const
Definition SchemaField.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue