AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IcebergPartitionSpec.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/model/IcebergPartitionField.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 IcebergPartitionSpec() = default;
41
42
44
48 inline const Aws::Vector<IcebergPartitionField>& GetFields() const { return m_fields; }
49 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
50 template<typename FieldsT = Aws::Vector<IcebergPartitionField>>
51 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
52 template<typename FieldsT = Aws::Vector<IcebergPartitionField>>
53 IcebergPartitionSpec& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
54 template<typename FieldsT = IcebergPartitionField>
55 IcebergPartitionSpec& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
57
59
63 inline int GetSpecId() const { return m_specId; }
64 inline bool SpecIdHasBeenSet() const { return m_specIdHasBeenSet; }
65 inline void SetSpecId(int value) { m_specIdHasBeenSet = true; m_specId = value; }
66 inline IcebergPartitionSpec& WithSpecId(int value) { SetSpecId(value); return *this;}
68 private:
69
71 bool m_fieldsHasBeenSet = false;
72
73 int m_specId{0};
74 bool m_specIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Glue
79} // namespace Aws
AWS_GLUE_API IcebergPartitionSpec()=default
AWS_GLUE_API IcebergPartitionSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergPartitionSpec & WithFields(FieldsT &&value)
IcebergPartitionSpec & AddFields(FieldsT &&value)
IcebergPartitionSpec & WithSpecId(int value)
const Aws::Vector< IcebergPartitionField > & GetFields() const
AWS_GLUE_API IcebergPartitionSpec(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue