AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CodegenGenericDataFieldDataType& GetDataType() const{ return m_dataType; }
47 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
48 inline void SetDataType(const CodegenGenericDataFieldDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
49 inline void SetDataType(CodegenGenericDataFieldDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
51 inline CodegenGenericDataField& WithDataType(CodegenGenericDataFieldDataType&& value) { SetDataType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetDataTypeValue() const{ return m_dataTypeValue; }
59 inline bool DataTypeValueHasBeenSet() const { return m_dataTypeValueHasBeenSet; }
60 inline void SetDataTypeValue(const Aws::String& value) { m_dataTypeValueHasBeenSet = true; m_dataTypeValue = value; }
61 inline void SetDataTypeValue(Aws::String&& value) { m_dataTypeValueHasBeenSet = true; m_dataTypeValue = std::move(value); }
62 inline void SetDataTypeValue(const char* value) { m_dataTypeValueHasBeenSet = true; m_dataTypeValue.assign(value); }
63 inline CodegenGenericDataField& WithDataTypeValue(const Aws::String& value) { SetDataTypeValue(value); return *this;}
64 inline CodegenGenericDataField& WithDataTypeValue(Aws::String&& value) { SetDataTypeValue(std::move(value)); return *this;}
65 inline CodegenGenericDataField& WithDataTypeValue(const char* value) { SetDataTypeValue(value); return *this;}
67
69
72 inline bool GetRequired() const{ return m_required; }
73 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
74 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
75 inline CodegenGenericDataField& WithRequired(bool value) { SetRequired(value); return *this;}
77
79
82 inline bool GetReadOnly() const{ return m_readOnly; }
83 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
84 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
85 inline CodegenGenericDataField& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
87
89
92 inline bool GetIsArray() const{ return m_isArray; }
93 inline bool IsArrayHasBeenSet() const { return m_isArrayHasBeenSet; }
94 inline void SetIsArray(bool value) { m_isArrayHasBeenSet = true; m_isArray = value; }
95 inline CodegenGenericDataField& WithIsArray(bool value) { SetIsArray(value); return *this;}
97
99
102 inline const CodegenGenericDataRelationshipType& GetRelationship() const{ return m_relationship; }
103 inline bool RelationshipHasBeenSet() const { return m_relationshipHasBeenSet; }
104 inline void SetRelationship(const CodegenGenericDataRelationshipType& value) { m_relationshipHasBeenSet = true; m_relationship = value; }
105 inline void SetRelationship(CodegenGenericDataRelationshipType&& value) { m_relationshipHasBeenSet = true; m_relationship = std::move(value); }
109 private:
110
112 bool m_dataTypeHasBeenSet = false;
113
114 Aws::String m_dataTypeValue;
115 bool m_dataTypeValueHasBeenSet = false;
116
117 bool m_required;
118 bool m_requiredHasBeenSet = false;
119
120 bool m_readOnly;
121 bool m_readOnlyHasBeenSet = false;
122
123 bool m_isArray;
124 bool m_isArrayHasBeenSet = false;
125
127 bool m_relationshipHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace AmplifyUIBuilder
132} // namespace Aws
void SetDataType(const CodegenGenericDataFieldDataType &value)
CodegenGenericDataField & WithDataType(const CodegenGenericDataFieldDataType &value)
void SetDataType(CodegenGenericDataFieldDataType &&value)
const CodegenGenericDataFieldDataType & GetDataType() const
CodegenGenericDataField & WithDataType(CodegenGenericDataFieldDataType &&value)
CodegenGenericDataField & WithDataTypeValue(Aws::String &&value)
CodegenGenericDataField & WithRelationship(const CodegenGenericDataRelationshipType &value)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField & operator=(Aws::Utils::Json::JsonView jsonValue)
CodegenGenericDataField & WithRelationship(CodegenGenericDataRelationshipType &&value)
const CodegenGenericDataRelationshipType & GetRelationship() const
CodegenGenericDataField & WithDataTypeValue(const Aws::String &value)
void SetRelationship(CodegenGenericDataRelationshipType &&value)
void SetRelationship(const CodegenGenericDataRelationshipType &value)
CodegenGenericDataField & WithDataTypeValue(const char *value)
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