AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSString.h>
10#include <aws/amplifyuibuilder/model/CodegenGenericDataRelationshipType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField() = default;
37 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline CodegenGenericDataFieldDataType GetDataType() const { return m_dataType; }
47 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
48 inline void SetDataType(CodegenGenericDataFieldDataType value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
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) { m_dataTypeValueHasBeenSet = true; m_dataTypeValue = std::forward<DataTypeValueT>(value); }
60 template<typename DataTypeValueT = Aws::String>
61 CodegenGenericDataField& WithDataTypeValue(DataTypeValueT&& value) { SetDataTypeValue(std::forward<DataTypeValueT>(value)); return *this;}
63
65
68 inline bool GetRequired() const { return m_required; }
69 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
70 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
71 inline CodegenGenericDataField& WithRequired(bool value) { SetRequired(value); return *this;}
73
75
78 inline bool GetReadOnly() const { return m_readOnly; }
79 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
80 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
81 inline CodegenGenericDataField& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
83
85
88 inline bool GetIsArray() const { return m_isArray; }
89 inline bool IsArrayHasBeenSet() const { return m_isArrayHasBeenSet; }
90 inline void SetIsArray(bool value) { m_isArrayHasBeenSet = true; m_isArray = value; }
91 inline CodegenGenericDataField& WithIsArray(bool value) { SetIsArray(value); return *this;}
93
95
98 inline const CodegenGenericDataRelationshipType& GetRelationship() const { return m_relationship; }
99 inline bool RelationshipHasBeenSet() const { return m_relationshipHasBeenSet; }
100 template<typename RelationshipT = CodegenGenericDataRelationshipType>
101 void SetRelationship(RelationshipT&& value) { m_relationshipHasBeenSet = true; m_relationship = std::forward<RelationshipT>(value); }
102 template<typename RelationshipT = CodegenGenericDataRelationshipType>
103 CodegenGenericDataField& WithRelationship(RelationshipT&& value) { SetRelationship(std::forward<RelationshipT>(value)); return *this;}
105 private:
106
108 bool m_dataTypeHasBeenSet = false;
109
110 Aws::String m_dataTypeValue;
111 bool m_dataTypeValueHasBeenSet = false;
112
113 bool m_required{false};
114 bool m_requiredHasBeenSet = false;
115
116 bool m_readOnly{false};
117 bool m_readOnlyHasBeenSet = false;
118
119 bool m_isArray{false};
120 bool m_isArrayHasBeenSet = false;
121
122 CodegenGenericDataRelationshipType m_relationship;
123 bool m_relationshipHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace AmplifyUIBuilder
128} // 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