AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IcebergPartitionSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/IcebergPartitionField.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
31 public:
32 AWS_GLUE_API IcebergPartitionSpec() = default;
36
38
42 inline const Aws::Vector<IcebergPartitionField>& GetFields() const { return m_fields; }
43 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
44 template <typename FieldsT = Aws::Vector<IcebergPartitionField>>
45 void SetFields(FieldsT&& value) {
46 m_fieldsHasBeenSet = true;
47 m_fields = std::forward<FieldsT>(value);
48 }
49 template <typename FieldsT = Aws::Vector<IcebergPartitionField>>
50 IcebergPartitionSpec& WithFields(FieldsT&& value) {
51 SetFields(std::forward<FieldsT>(value));
52 return *this;
53 }
54 template <typename FieldsT = IcebergPartitionField>
55 IcebergPartitionSpec& AddFields(FieldsT&& value) {
56 m_fieldsHasBeenSet = true;
57 m_fields.emplace_back(std::forward<FieldsT>(value));
58 return *this;
59 }
61
63
67 inline int GetSpecId() const { return m_specId; }
68 inline bool SpecIdHasBeenSet() const { return m_specIdHasBeenSet; }
69 inline void SetSpecId(int value) {
70 m_specIdHasBeenSet = true;
71 m_specId = value;
72 }
73 inline IcebergPartitionSpec& WithSpecId(int value) {
74 SetSpecId(value);
75 return *this;
76 }
78 private:
80
81 int m_specId{0};
82 bool m_fieldsHasBeenSet = false;
83 bool m_specIdHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Glue
88} // 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