7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/FieldDataType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/glue/model/FieldFilterOperator.h>
51 template<
typename FieldNameT = Aws::String>
52 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet =
true; m_fieldName = std::forward<FieldNameT>(value); }
53 template<
typename FieldNameT = Aws::String>
63 template<
typename LabelT = Aws::String>
64 void SetLabel(LabelT&& value) { m_labelHasBeenSet =
true; m_label = std::forward<LabelT>(value); }
65 template<
typename LabelT = Aws::String>
75 template<
typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
77 template<
typename DescriptionT = Aws::String>
98 inline void SetIsPrimaryKey(
bool value) { m_isPrimaryKeyHasBeenSet =
true; m_isPrimaryKey = value; }
108 inline void SetIsNullable(
bool value) { m_isNullableHasBeenSet =
true; m_isNullable = value; }
119 inline void SetIsRetrievable(
bool value) { m_isRetrievableHasBeenSet =
true; m_isRetrievable = value; }
130 inline void SetIsFilterable(
bool value) { m_isFilterableHasBeenSet =
true; m_isFilterable = value; }
141 inline void SetIsPartitionable(
bool value) { m_isPartitionableHasBeenSet =
true; m_isPartitionable = value; }
152 inline void SetIsCreateable(
bool value) { m_isCreateableHasBeenSet =
true; m_isCreateable = value; }
163 inline void SetIsUpdateable(
bool value) { m_isUpdateableHasBeenSet =
true; m_isUpdateable = value; }
174 inline void SetIsUpsertable(
bool value) { m_isUpsertableHasBeenSet =
true; m_isUpsertable = value; }
185 inline void SetIsDefaultOnCreate(
bool value) { m_isDefaultOnCreateHasBeenSet =
true; m_isDefaultOnCreate = value; }
195 template<
typename SupportedValuesT = Aws::Vector<Aws::String>>
196 void SetSupportedValues(SupportedValuesT&& value) { m_supportedValuesHasBeenSet =
true; m_supportedValues = std::forward<SupportedValuesT>(value); }
197 template<
typename SupportedValuesT = Aws::Vector<Aws::String>>
199 template<
typename SupportedValuesT = Aws::String>
200 Field&
AddSupportedValues(SupportedValuesT&& value) { m_supportedValuesHasBeenSet =
true; m_supportedValues.emplace_back(std::forward<SupportedValuesT>(value));
return *
this; }
209 template<
typename SupportedFilterOperatorsT = Aws::Vector<FieldFilterOperator>>
210 void SetSupportedFilterOperators(SupportedFilterOperatorsT&& value) { m_supportedFilterOperatorsHasBeenSet =
true; m_supportedFilterOperators = std::forward<SupportedFilterOperatorsT>(value); }
211 template<
typename SupportedFilterOperatorsT = Aws::Vector<FieldFilterOperator>>
222 template<
typename ParentFieldT = Aws::String>
223 void SetParentField(ParentFieldT&& value) { m_parentFieldHasBeenSet =
true; m_parentField = std::forward<ParentFieldT>(value); }
224 template<
typename ParentFieldT = Aws::String>
235 template<
typename NativeDataTypeT = Aws::String>
236 void SetNativeDataType(NativeDataTypeT&& value) { m_nativeDataTypeHasBeenSet =
true; m_nativeDataType = std::forward<NativeDataTypeT>(value); }
237 template<
typename NativeDataTypeT = Aws::String>
247 template<
typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
248 void SetCustomProperties(CustomPropertiesT&& value) { m_customPropertiesHasBeenSet =
true; m_customProperties = std::forward<CustomPropertiesT>(value); }
249 template<
typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
251 template<
typename CustomPropertiesKeyT = Aws::String,
typename CustomPropertiesValueT = Aws::String>
253 m_customPropertiesHasBeenSet =
true; m_customProperties.emplace(std::forward<CustomPropertiesKeyT>(key), std::forward<CustomPropertiesValueT>(value));
return *
this;
259 bool m_fieldNameHasBeenSet =
false;
262 bool m_labelHasBeenSet =
false;
265 bool m_descriptionHasBeenSet =
false;
268 bool m_fieldTypeHasBeenSet =
false;
270 bool m_isPrimaryKey{
false};
271 bool m_isPrimaryKeyHasBeenSet =
false;
273 bool m_isNullable{
false};
274 bool m_isNullableHasBeenSet =
false;
276 bool m_isRetrievable{
false};
277 bool m_isRetrievableHasBeenSet =
false;
279 bool m_isFilterable{
false};
280 bool m_isFilterableHasBeenSet =
false;
282 bool m_isPartitionable{
false};
283 bool m_isPartitionableHasBeenSet =
false;
285 bool m_isCreateable{
false};
286 bool m_isCreateableHasBeenSet =
false;
288 bool m_isUpdateable{
false};
289 bool m_isUpdateableHasBeenSet =
false;
291 bool m_isUpsertable{
false};
292 bool m_isUpsertableHasBeenSet =
false;
294 bool m_isDefaultOnCreate{
false};
295 bool m_isDefaultOnCreateHasBeenSet =
false;
298 bool m_supportedValuesHasBeenSet =
false;
301 bool m_supportedFilterOperatorsHasBeenSet =
false;
304 bool m_parentFieldHasBeenSet =
false;
307 bool m_nativeDataTypeHasBeenSet =
false;
310 bool m_customPropertiesHasBeenSet =
false;
AWS_GLUE_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
bool ParentFieldHasBeenSet() const
bool IsRetrievableHasBeenSet() const
void SetIsNullable(bool value)
const Aws::String & GetParentField() const
const Aws::String & GetFieldName() const
Field & WithIsNullable(bool value)
bool IsNullableHasBeenSet() const
void SetFieldType(FieldDataType value)
bool GetIsDefaultOnCreate() const
bool FieldNameHasBeenSet() const
AWS_GLUE_API Field(Aws::Utils::Json::JsonView jsonValue)
void SetIsCreateable(bool value)
Field & WithSupportedValues(SupportedValuesT &&value)
Field & WithIsUpdateable(bool value)
bool IsDefaultOnCreateHasBeenSet() const
void SetSupportedFilterOperators(SupportedFilterOperatorsT &&value)
bool IsUpdateableHasBeenSet() const
bool GetIsRetrievable() const
Field & WithIsPartitionable(bool value)
void SetIsDefaultOnCreate(bool value)
bool NativeDataTypeHasBeenSet() const
Field & WithFieldName(FieldNameT &&value)
bool IsUpsertableHasBeenSet() const
const Aws::String & GetNativeDataType() const
void SetNativeDataType(NativeDataTypeT &&value)
bool IsPartitionableHasBeenSet() const
Field & WithCustomProperties(CustomPropertiesT &&value)
Field & WithIsPrimaryKey(bool value)
bool IsFilterableHasBeenSet() const
bool IsCreateableHasBeenSet() const
void SetIsPartitionable(bool value)
Field & WithFieldType(FieldDataType value)
const Aws::Vector< FieldFilterOperator > & GetSupportedFilterOperators() const
AWS_GLUE_API Field()=default
Field & WithIsRetrievable(bool value)
Field & WithNativeDataType(NativeDataTypeT &&value)
bool IsPrimaryKeyHasBeenSet() const
Field & WithLabel(LabelT &&value)
void SetSupportedValues(SupportedValuesT &&value)
void SetIsUpdateable(bool value)
bool SupportedFilterOperatorsHasBeenSet() const
Field & WithIsDefaultOnCreate(bool value)
const Aws::Map< Aws::String, Aws::String > & GetCustomProperties() const
bool CustomPropertiesHasBeenSet() const
FieldDataType GetFieldType() const
bool GetIsPrimaryKey() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetIsNullable() const
void SetIsPrimaryKey(bool value)
void SetParentField(ParentFieldT &&value)
bool GetIsFilterable() const
void SetFieldName(FieldNameT &&value)
Field & WithIsCreateable(bool value)
Field & WithIsUpsertable(bool value)
bool GetIsUpsertable() const
bool SupportedValuesHasBeenSet() const
bool FieldTypeHasBeenSet() const
void SetIsUpsertable(bool value)
bool DescriptionHasBeenSet() const
const Aws::String & GetLabel() const
const Aws::String & GetDescription() const
bool LabelHasBeenSet() const
Field & WithSupportedFilterOperators(SupportedFilterOperatorsT &&value)
void SetIsRetrievable(bool value)
bool GetIsCreateable() const
bool GetIsPartitionable() const
Field & WithParentField(ParentFieldT &&value)
Field & AddCustomProperties(CustomPropertiesKeyT &&key, CustomPropertiesValueT &&value)
void SetIsFilterable(bool value)
Field & AddSupportedFilterOperators(FieldFilterOperator value)
Field & WithDescription(DescriptionT &&value)
bool GetIsUpdateable() const
void SetCustomProperties(CustomPropertiesT &&value)
Field & WithIsFilterable(bool value)
void SetLabel(LabelT &&value)
const Aws::Vector< Aws::String > & GetSupportedValues() const
Field & AddSupportedValues(SupportedValuesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue