AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataLakeDatasetSchemaField.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/supplychain/model/DataLakeDatasetSchemaFieldType.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 SupplyChain
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField();
38 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline DataLakeDatasetSchemaField& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline DataLakeDatasetSchemaField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline DataLakeDatasetSchemaField& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const DataLakeDatasetSchemaFieldType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const DataLakeDatasetSchemaFieldType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(DataLakeDatasetSchemaFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline DataLakeDatasetSchemaField& WithType(const DataLakeDatasetSchemaFieldType& value) { SetType(value); return *this;}
64 inline DataLakeDatasetSchemaField& WithType(DataLakeDatasetSchemaFieldType&& value) { SetType(std::move(value)); return *this;}
66
68
71 inline bool GetIsRequired() const{ return m_isRequired; }
72 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
73 inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; }
74 inline DataLakeDatasetSchemaField& WithIsRequired(bool value) { SetIsRequired(value); return *this;}
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
82 bool m_typeHasBeenSet = false;
83
84 bool m_isRequired;
85 bool m_isRequiredHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SupplyChain
90} // namespace Aws
AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(DataLakeDatasetSchemaFieldType &&value)
DataLakeDatasetSchemaField & WithType(DataLakeDatasetSchemaFieldType &&value)
DataLakeDatasetSchemaField & WithType(const DataLakeDatasetSchemaFieldType &value)
const DataLakeDatasetSchemaFieldType & GetType() const
AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField(Aws::Utils::Json::JsonView jsonValue)
void SetType(const DataLakeDatasetSchemaFieldType &value)
DataLakeDatasetSchemaField & WithIsRequired(bool value)
DataLakeDatasetSchemaField & WithName(const Aws::String &value)
DataLakeDatasetSchemaField & WithName(const char *value)
DataLakeDatasetSchemaField & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue