AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DataLakeDatasetSchemaField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/supplychain/SupplyChain_EXPORTS.h>
9#include <aws/supplychain/model/DataLakeDatasetSchemaFieldType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SupplyChain {
21namespace Model {
22
29 public:
30 AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField() = default;
33 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline DataLakeDatasetSchemaFieldType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68
70
73 inline bool GetIsRequired() const { return m_isRequired; }
74 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
75 inline void SetIsRequired(bool value) {
76 m_isRequiredHasBeenSet = true;
77 m_isRequired = value;
78 }
80 SetIsRequired(value);
81 return *this;
82 }
84 private:
85 Aws::String m_name;
86
88
89 bool m_isRequired{false};
90 bool m_nameHasBeenSet = false;
91 bool m_typeHasBeenSet = false;
92 bool m_isRequiredHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace SupplyChain
97} // namespace Aws
AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField & operator=(Aws::Utils::Json::JsonView jsonValue)
DataLakeDatasetSchemaField & WithName(NameT &&value)
DataLakeDatasetSchemaField & WithType(DataLakeDatasetSchemaFieldType value)
AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField()=default
AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(DataLakeDatasetSchemaFieldType value)
AWS_SUPPLYCHAIN_API DataLakeDatasetSchemaField(Aws::Utils::Json::JsonView jsonValue)
DataLakeDatasetSchemaField & WithIsRequired(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue