AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IcebergStructField.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Document.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_GLUE_API IcebergStructField() = default;
41
42
44
48 inline int GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
51 inline IcebergStructField& WithId(int value) { SetId(value); return *this;}
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 IcebergStructField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
72 inline Aws::Utils::DocumentView GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 template<typename TypeT = Aws::Utils::Document>
75 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
76 template<typename TypeT = Aws::Utils::Document>
77 IcebergStructField& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
79
81
85 inline bool GetRequired() const { return m_required; }
86 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
87 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
88 inline IcebergStructField& WithRequired(bool value) { SetRequired(value); return *this;}
90
92
96 inline const Aws::String& GetDoc() const { return m_doc; }
97 inline bool DocHasBeenSet() const { return m_docHasBeenSet; }
98 template<typename DocT = Aws::String>
99 void SetDoc(DocT&& value) { m_docHasBeenSet = true; m_doc = std::forward<DocT>(value); }
100 template<typename DocT = Aws::String>
101 IcebergStructField& WithDoc(DocT&& value) { SetDoc(std::forward<DocT>(value)); return *this;}
103 private:
104
105 int m_id{0};
106 bool m_idHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
112 bool m_typeHasBeenSet = false;
113
114 bool m_required{false};
115 bool m_requiredHasBeenSet = false;
116
117 Aws::String m_doc;
118 bool m_docHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Glue
123} // namespace Aws
const Aws::String & GetName() const
AWS_GLUE_API IcebergStructField()=default
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergStructField & WithType(TypeT &&value)
AWS_GLUE_API IcebergStructField(Aws::Utils::Json::JsonView jsonValue)
IcebergStructField & WithDoc(DocT &&value)
const Aws::String & GetDoc() const
Aws::Utils::DocumentView GetType() const
IcebergStructField & WithId(int value)
IcebergStructField & WithRequired(bool value)
IcebergStructField & WithName(NameT &&value)
AWS_GLUE_API IcebergStructField & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue