AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
IcebergPartitionSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3tables/S3Tables_EXPORTS.h>
9#include <aws/s3tables/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 S3Tables {
21namespace Model {
22
32 public:
33 AWS_S3TABLES_API IcebergPartitionSpec() = default;
36 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<IcebergPartitionField>& GetFields() const { return m_fields; }
45 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
46 template <typename FieldsT = Aws::Vector<IcebergPartitionField>>
47 void SetFields(FieldsT&& value) {
48 m_fieldsHasBeenSet = true;
49 m_fields = std::forward<FieldsT>(value);
50 }
51 template <typename FieldsT = Aws::Vector<IcebergPartitionField>>
52 IcebergPartitionSpec& WithFields(FieldsT&& value) {
53 SetFields(std::forward<FieldsT>(value));
54 return *this;
55 }
56 template <typename FieldsT = IcebergPartitionField>
57 IcebergPartitionSpec& AddFields(FieldsT&& value) {
58 m_fieldsHasBeenSet = true;
59 m_fields.emplace_back(std::forward<FieldsT>(value));
60 return *this;
61 }
63
65
69 inline int GetSpecId() const { return m_specId; }
70 inline bool SpecIdHasBeenSet() const { return m_specIdHasBeenSet; }
71 inline void SetSpecId(int value) {
72 m_specIdHasBeenSet = true;
73 m_specId = value;
74 }
75 inline IcebergPartitionSpec& WithSpecId(int value) {
76 SetSpecId(value);
77 return *this;
78 }
80 private:
82
83 int m_specId{0};
84 bool m_fieldsHasBeenSet = false;
85 bool m_specIdHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace S3Tables
90} // namespace Aws
IcebergPartitionSpec & WithSpecId(int value)
AWS_S3TABLES_API IcebergPartitionSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_S3TABLES_API IcebergPartitionSpec()=default
const Aws::Vector< IcebergPartitionField > & GetFields() const
IcebergPartitionSpec & WithFields(FieldsT &&value)
AWS_S3TABLES_API IcebergPartitionSpec(Aws::Utils::Json::JsonView jsonValue)
IcebergPartitionSpec & AddFields(FieldsT &&value)
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue