/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyUIBuilder { namespace Model { /** *

The code generation job resource configuration.

See Also:

AWS * API Reference

*/ class StartCodegenJobData { public: AWS_AMPLIFYUIBUILDER_API StartCodegenJobData(); AWS_AMPLIFYUIBUILDER_API StartCodegenJobData(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYUIBUILDER_API StartCodegenJobData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The code generation configuration for the codegen job.

*/ inline const CodegenJobRenderConfig& GetRenderConfig() const{ return m_renderConfig; } /** *

The code generation configuration for the codegen job.

*/ inline bool RenderConfigHasBeenSet() const { return m_renderConfigHasBeenSet; } /** *

The code generation configuration for the codegen job.

*/ inline void SetRenderConfig(const CodegenJobRenderConfig& value) { m_renderConfigHasBeenSet = true; m_renderConfig = value; } /** *

The code generation configuration for the codegen job.

*/ inline void SetRenderConfig(CodegenJobRenderConfig&& value) { m_renderConfigHasBeenSet = true; m_renderConfig = std::move(value); } /** *

The code generation configuration for the codegen job.

*/ inline StartCodegenJobData& WithRenderConfig(const CodegenJobRenderConfig& value) { SetRenderConfig(value); return *this;} /** *

The code generation configuration for the codegen job.

*/ inline StartCodegenJobData& WithRenderConfig(CodegenJobRenderConfig&& value) { SetRenderConfig(std::move(value)); return *this;} /** *

The data schema to use for a code generation job.

*/ inline const CodegenJobGenericDataSchema& GetGenericDataSchema() const{ return m_genericDataSchema; } /** *

The data schema to use for a code generation job.

*/ inline bool GenericDataSchemaHasBeenSet() const { return m_genericDataSchemaHasBeenSet; } /** *

The data schema to use for a code generation job.

*/ inline void SetGenericDataSchema(const CodegenJobGenericDataSchema& value) { m_genericDataSchemaHasBeenSet = true; m_genericDataSchema = value; } /** *

The data schema to use for a code generation job.

*/ inline void SetGenericDataSchema(CodegenJobGenericDataSchema&& value) { m_genericDataSchemaHasBeenSet = true; m_genericDataSchema = std::move(value); } /** *

The data schema to use for a code generation job.

*/ inline StartCodegenJobData& WithGenericDataSchema(const CodegenJobGenericDataSchema& value) { SetGenericDataSchema(value); return *this;} /** *

The data schema to use for a code generation job.

*/ inline StartCodegenJobData& WithGenericDataSchema(CodegenJobGenericDataSchema&& value) { SetGenericDataSchema(std::move(value)); return *this;} /** *

Specifies whether to autogenerate forms in the code generation job.

*/ inline bool GetAutoGenerateForms() const{ return m_autoGenerateForms; } /** *

Specifies whether to autogenerate forms in the code generation job.

*/ inline bool AutoGenerateFormsHasBeenSet() const { return m_autoGenerateFormsHasBeenSet; } /** *

Specifies whether to autogenerate forms in the code generation job.

*/ inline void SetAutoGenerateForms(bool value) { m_autoGenerateFormsHasBeenSet = true; m_autoGenerateForms = value; } /** *

Specifies whether to autogenerate forms in the code generation job.

*/ inline StartCodegenJobData& WithAutoGenerateForms(bool value) { SetAutoGenerateForms(value); return *this;} /** *

The feature flags for a code generation job.

*/ inline const CodegenFeatureFlags& GetFeatures() const{ return m_features; } /** *

The feature flags for a code generation job.

*/ inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; } /** *

The feature flags for a code generation job.

*/ inline void SetFeatures(const CodegenFeatureFlags& value) { m_featuresHasBeenSet = true; m_features = value; } /** *

The feature flags for a code generation job.

*/ inline void SetFeatures(CodegenFeatureFlags&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); } /** *

The feature flags for a code generation job.

*/ inline StartCodegenJobData& WithFeatures(const CodegenFeatureFlags& value) { SetFeatures(value); return *this;} /** *

The feature flags for a code generation job.

*/ inline StartCodegenJobData& WithFeatures(CodegenFeatureFlags&& value) { SetFeatures(std::move(value)); return *this;} /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

One or more key-value pairs to use when tagging the code generation job * data.

*/ inline StartCodegenJobData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: CodegenJobRenderConfig m_renderConfig; bool m_renderConfigHasBeenSet = false; CodegenJobGenericDataSchema m_genericDataSchema; bool m_genericDataSchemaHasBeenSet = false; bool m_autoGenerateForms; bool m_autoGenerateFormsHasBeenSet = false; CodegenFeatureFlags m_features; bool m_featuresHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws