AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IcebergPartitionField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glue {
20namespace Model {
21
30 public:
31 AWS_GLUE_API IcebergPartitionField() = default;
35
37
41 inline int GetSourceId() const { return m_sourceId; }
42 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
43 inline void SetSourceId(int value) {
44 m_sourceIdHasBeenSet = true;
45 m_sourceId = value;
46 }
48 SetSourceId(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetTransform() const { return m_transform; }
59 inline bool TransformHasBeenSet() const { return m_transformHasBeenSet; }
60 template <typename TransformT = Aws::String>
61 void SetTransform(TransformT&& value) {
62 m_transformHasBeenSet = true;
63 m_transform = std::forward<TransformT>(value);
64 }
65 template <typename TransformT = Aws::String>
66 IcebergPartitionField& WithTransform(TransformT&& value) {
67 SetTransform(std::forward<TransformT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
96 inline int GetFieldId() const { return m_fieldId; }
97 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
98 inline void SetFieldId(int value) {
99 m_fieldIdHasBeenSet = true;
100 m_fieldId = value;
101 }
103 SetFieldId(value);
104 return *this;
105 }
107 private:
108 int m_sourceId{0};
109
110 Aws::String m_transform;
111
112 Aws::String m_name;
113
114 int m_fieldId{0};
115 bool m_sourceIdHasBeenSet = false;
116 bool m_transformHasBeenSet = false;
117 bool m_nameHasBeenSet = false;
118 bool m_fieldIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Glue
123} // namespace Aws
IcebergPartitionField & WithFieldId(int value)
IcebergPartitionField & WithTransform(TransformT &&value)
IcebergPartitionField & WithName(NameT &&value)
AWS_GLUE_API IcebergPartitionField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API IcebergPartitionField(Aws::Utils::Json::JsonView jsonValue)
IcebergPartitionField & WithSourceId(int value)
AWS_GLUE_API IcebergPartitionField()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue