AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
IcebergPartitionField.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
29 public:
30 AWS_S3TABLES_API IcebergPartitionField() = default;
33 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline int GetSourceId() const { return m_sourceId; }
41 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
42 inline void SetSourceId(int value) {
43 m_sourceIdHasBeenSet = true;
44 m_sourceId = value;
45 }
47 SetSourceId(value);
48 return *this;
49 }
51
53
61 inline const Aws::String& GetTransform() const { return m_transform; }
62 inline bool TransformHasBeenSet() const { return m_transformHasBeenSet; }
63 template <typename TransformT = Aws::String>
64 void SetTransform(TransformT&& value) {
65 m_transformHasBeenSet = true;
66 m_transform = std::forward<TransformT>(value);
67 }
68 template <typename TransformT = Aws::String>
69 IcebergPartitionField& WithTransform(TransformT&& value) {
70 SetTransform(std::forward<TransformT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
99 inline int GetFieldId() const { return m_fieldId; }
100 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
101 inline void SetFieldId(int value) {
102 m_fieldIdHasBeenSet = true;
103 m_fieldId = value;
104 }
106 SetFieldId(value);
107 return *this;
108 }
110 private:
111 int m_sourceId{0};
112
113 Aws::String m_transform;
114
115 Aws::String m_name;
116
117 int m_fieldId{0};
118 bool m_sourceIdHasBeenSet = false;
119 bool m_transformHasBeenSet = false;
120 bool m_nameHasBeenSet = false;
121 bool m_fieldIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace S3Tables
126} // namespace Aws
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergPartitionField & WithSourceId(int value)
AWS_S3TABLES_API IcebergPartitionField(Aws::Utils::Json::JsonView jsonValue)
IcebergPartitionField & WithTransform(TransformT &&value)
AWS_S3TABLES_API IcebergPartitionField & operator=(Aws::Utils::Json::JsonView jsonValue)
IcebergPartitionField & WithName(NameT &&value)
AWS_S3TABLES_API IcebergPartitionField()=default
IcebergPartitionField & WithFieldId(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue