AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ReactStartCodegenJobData.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ApiConfiguration.h>
9#include <aws/amplifyuibuilder/model/JSModule.h>
10#include <aws/amplifyuibuilder/model/JSScript.h>
11#include <aws/amplifyuibuilder/model/JSTarget.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyUIBuilder {
25namespace Model {
26
34 public:
35 AWS_AMPLIFYUIBUILDER_API ReactStartCodegenJobData() = default;
36 AWS_AMPLIFYUIBUILDER_API ReactStartCodegenJobData(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline JSModule GetModule() const { return m_module; }
45 inline bool ModuleHasBeenSet() const { return m_moduleHasBeenSet; }
46 inline void SetModule(JSModule value) {
47 m_moduleHasBeenSet = true;
48 m_module = value;
49 }
51 SetModule(value);
52 return *this;
53 }
55
57
60 inline JSTarget GetTarget() const { return m_target; }
61 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
62 inline void SetTarget(JSTarget value) {
63 m_targetHasBeenSet = true;
64 m_target = value;
65 }
67 SetTarget(value);
68 return *this;
69 }
71
73
76 inline JSScript GetScript() const { return m_script; }
77 inline bool ScriptHasBeenSet() const { return m_scriptHasBeenSet; }
78 inline void SetScript(JSScript value) {
79 m_scriptHasBeenSet = true;
80 m_script = value;
81 }
83 SetScript(value);
84 return *this;
85 }
87
89
93 inline bool GetRenderTypeDeclarations() const { return m_renderTypeDeclarations; }
94 inline bool RenderTypeDeclarationsHasBeenSet() const { return m_renderTypeDeclarationsHasBeenSet; }
95 inline void SetRenderTypeDeclarations(bool value) {
96 m_renderTypeDeclarationsHasBeenSet = true;
97 m_renderTypeDeclarations = value;
98 }
101 return *this;
102 }
104
106
110 inline bool GetInlineSourceMap() const { return m_inlineSourceMap; }
111 inline bool InlineSourceMapHasBeenSet() const { return m_inlineSourceMapHasBeenSet; }
112 inline void SetInlineSourceMap(bool value) {
113 m_inlineSourceMapHasBeenSet = true;
114 m_inlineSourceMap = value;
115 }
117 SetInlineSourceMap(value);
118 return *this;
119 }
121
123
126 inline const ApiConfiguration& GetApiConfiguration() const { return m_apiConfiguration; }
127 inline bool ApiConfigurationHasBeenSet() const { return m_apiConfigurationHasBeenSet; }
128 template <typename ApiConfigurationT = ApiConfiguration>
129 void SetApiConfiguration(ApiConfigurationT&& value) {
130 m_apiConfigurationHasBeenSet = true;
131 m_apiConfiguration = std::forward<ApiConfigurationT>(value);
132 }
133 template <typename ApiConfigurationT = ApiConfiguration>
134 ReactStartCodegenJobData& WithApiConfiguration(ApiConfigurationT&& value) {
135 SetApiConfiguration(std::forward<ApiConfigurationT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::Map<Aws::String, Aws::String>& GetDependencies() const { return m_dependencies; }
146 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
147 template <typename DependenciesT = Aws::Map<Aws::String, Aws::String>>
148 void SetDependencies(DependenciesT&& value) {
149 m_dependenciesHasBeenSet = true;
150 m_dependencies = std::forward<DependenciesT>(value);
151 }
152 template <typename DependenciesT = Aws::Map<Aws::String, Aws::String>>
154 SetDependencies(std::forward<DependenciesT>(value));
155 return *this;
156 }
157 template <typename DependenciesKeyT = Aws::String, typename DependenciesValueT = Aws::String>
158 ReactStartCodegenJobData& AddDependencies(DependenciesKeyT&& key, DependenciesValueT&& value) {
159 m_dependenciesHasBeenSet = true;
160 m_dependencies.emplace(std::forward<DependenciesKeyT>(key), std::forward<DependenciesValueT>(value));
161 return *this;
162 }
164 private:
165 JSModule m_module{JSModule::NOT_SET};
166
167 JSTarget m_target{JSTarget::NOT_SET};
168
169 JSScript m_script{JSScript::NOT_SET};
170
171 bool m_renderTypeDeclarations{false};
172
173 bool m_inlineSourceMap{false};
174
175 ApiConfiguration m_apiConfiguration;
176
178 bool m_moduleHasBeenSet = false;
179 bool m_targetHasBeenSet = false;
180 bool m_scriptHasBeenSet = false;
181 bool m_renderTypeDeclarationsHasBeenSet = false;
182 bool m_inlineSourceMapHasBeenSet = false;
183 bool m_apiConfigurationHasBeenSet = false;
184 bool m_dependenciesHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace AmplifyUIBuilder
189} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ReactStartCodegenJobData(Aws::Utils::Json::JsonView jsonValue)
ReactStartCodegenJobData & WithModule(JSModule value)
ReactStartCodegenJobData & WithDependencies(DependenciesT &&value)
AWS_AMPLIFYUIBUILDER_API ReactStartCodegenJobData()=default
ReactStartCodegenJobData & AddDependencies(DependenciesKeyT &&key, DependenciesValueT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API ReactStartCodegenJobData & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactStartCodegenJobData & WithApiConfiguration(ApiConfigurationT &&value)
ReactStartCodegenJobData & WithTarget(JSTarget value)
ReactStartCodegenJobData & WithRenderTypeDeclarations(bool value)
const Aws::Map< Aws::String, Aws::String > & GetDependencies() const
ReactStartCodegenJobData & WithScript(JSScript value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue