AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CodegenGenericDataField.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/CodegenGenericDataFieldDataType.h>
9#include <aws/amplifyuibuilder/model/CodegenGenericDataRelationshipType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyUIBuilder {
22namespace Model {
23
30 public:
31 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField() = default;
32 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline CodegenGenericDataFieldDataType GetDataType() const { return m_dataType; }
41 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
43 m_dataTypeHasBeenSet = true;
44 m_dataType = value;
45 }
47 SetDataType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDataTypeValue() const { return m_dataTypeValue; }
57 inline bool DataTypeValueHasBeenSet() const { return m_dataTypeValueHasBeenSet; }
58 template <typename DataTypeValueT = Aws::String>
59 void SetDataTypeValue(DataTypeValueT&& value) {
60 m_dataTypeValueHasBeenSet = true;
61 m_dataTypeValue = std::forward<DataTypeValueT>(value);
62 }
63 template <typename DataTypeValueT = Aws::String>
64 CodegenGenericDataField& WithDataTypeValue(DataTypeValueT&& value) {
65 SetDataTypeValue(std::forward<DataTypeValueT>(value));
66 return *this;
67 }
69
71
74 inline bool GetRequired() const { return m_required; }
75 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
76 inline void SetRequired(bool value) {
77 m_requiredHasBeenSet = true;
78 m_required = value;
79 }
81 SetRequired(value);
82 return *this;
83 }
85
87
90 inline bool GetReadOnly() const { return m_readOnly; }
91 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
92 inline void SetReadOnly(bool value) {
93 m_readOnlyHasBeenSet = true;
94 m_readOnly = value;
95 }
97 SetReadOnly(value);
98 return *this;
99 }
101
103
106 inline bool GetIsArray() const { return m_isArray; }
107 inline bool IsArrayHasBeenSet() const { return m_isArrayHasBeenSet; }
108 inline void SetIsArray(bool value) {
109 m_isArrayHasBeenSet = true;
110 m_isArray = value;
111 }
113 SetIsArray(value);
114 return *this;
115 }
117
119
122 inline const CodegenGenericDataRelationshipType& GetRelationship() const { return m_relationship; }
123 inline bool RelationshipHasBeenSet() const { return m_relationshipHasBeenSet; }
124 template <typename RelationshipT = CodegenGenericDataRelationshipType>
125 void SetRelationship(RelationshipT&& value) {
126 m_relationshipHasBeenSet = true;
127 m_relationship = std::forward<RelationshipT>(value);
128 }
129 template <typename RelationshipT = CodegenGenericDataRelationshipType>
131 SetRelationship(std::forward<RelationshipT>(value));
132 return *this;
133 }
135 private:
137
138 Aws::String m_dataTypeValue;
139
140 bool m_required{false};
141
142 bool m_readOnly{false};
143
144 bool m_isArray{false};
145
146 CodegenGenericDataRelationshipType m_relationship;
147 bool m_dataTypeHasBeenSet = false;
148 bool m_dataTypeValueHasBeenSet = false;
149 bool m_requiredHasBeenSet = false;
150 bool m_readOnlyHasBeenSet = false;
151 bool m_isArrayHasBeenSet = false;
152 bool m_relationshipHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace AmplifyUIBuilder
157} // namespace Aws
CodegenGenericDataField & WithRelationship(RelationshipT &&value)
void SetDataType(CodegenGenericDataFieldDataType value)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField()=default
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField & operator=(Aws::Utils::Json::JsonView jsonValue)
CodegenGenericDataField & WithDataTypeValue(DataTypeValueT &&value)
CodegenGenericDataField & WithDataType(CodegenGenericDataFieldDataType value)
const CodegenGenericDataRelationshipType & GetRelationship() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue