/** * 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 #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyUIBuilder { namespace Model { /** *

Describes the configuration for a code generation job that is associated with * an Amplify app.

See Also:

AWS * API Reference

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

The unique ID for the code generation job.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID for the code generation job.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID for the code generation job.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID for the code generation job.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID for the code generation job.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID for the code generation job.

*/ inline CodegenJob& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID for the code generation job.

*/ inline CodegenJob& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID for the code generation job.

*/ inline CodegenJob& WithId(const char* value) { SetId(value); return *this;} /** *

The ID of the Amplify app associated with the code generation job.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The ID of the Amplify app associated with the code generation job.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The ID of the Amplify app associated with the code generation job.

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

The ID of the Amplify app associated with the code generation job.

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

The ID of the Amplify app associated with the code generation job.

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

The ID of the Amplify app associated with the code generation job.

*/ inline CodegenJob& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The ID of the Amplify app associated with the code generation job.

*/ inline CodegenJob& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The ID of the Amplify app associated with the code generation job.

*/ inline CodegenJob& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The name of the backend environment associated with the code generation * job.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the backend environment associated with the code generation * job.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the backend environment associated with the code generation * job.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the backend environment associated with the code generation * job.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the backend environment associated with the code generation * job.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the backend environment associated with the code generation * job.

*/ inline CodegenJob& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the backend environment associated with the code generation * job.

*/ inline CodegenJob& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the backend environment associated with the code generation * job.

*/ inline CodegenJob& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} inline const CodegenJobRenderConfig& GetRenderConfig() const{ return m_renderConfig; } inline bool RenderConfigHasBeenSet() const { return m_renderConfigHasBeenSet; } inline void SetRenderConfig(const CodegenJobRenderConfig& value) { m_renderConfigHasBeenSet = true; m_renderConfig = value; } inline void SetRenderConfig(CodegenJobRenderConfig&& value) { m_renderConfigHasBeenSet = true; m_renderConfig = std::move(value); } inline CodegenJob& WithRenderConfig(const CodegenJobRenderConfig& value) { SetRenderConfig(value); return *this;} inline CodegenJob& WithRenderConfig(CodegenJobRenderConfig&& value) { SetRenderConfig(std::move(value)); return *this;} inline const CodegenJobGenericDataSchema& GetGenericDataSchema() const{ return m_genericDataSchema; } inline bool GenericDataSchemaHasBeenSet() const { return m_genericDataSchemaHasBeenSet; } inline void SetGenericDataSchema(const CodegenJobGenericDataSchema& value) { m_genericDataSchemaHasBeenSet = true; m_genericDataSchema = value; } inline void SetGenericDataSchema(CodegenJobGenericDataSchema&& value) { m_genericDataSchemaHasBeenSet = true; m_genericDataSchema = std::move(value); } inline CodegenJob& WithGenericDataSchema(const CodegenJobGenericDataSchema& value) { SetGenericDataSchema(value); return *this;} inline CodegenJob& 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 CodegenJob& WithAutoGenerateForms(bool value) { SetAutoGenerateForms(value); return *this;} inline const CodegenFeatureFlags& GetFeatures() const{ return m_features; } inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; } inline void SetFeatures(const CodegenFeatureFlags& value) { m_featuresHasBeenSet = true; m_features = value; } inline void SetFeatures(CodegenFeatureFlags&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); } inline CodegenJob& WithFeatures(const CodegenFeatureFlags& value) { SetFeatures(value); return *this;} inline CodegenJob& WithFeatures(CodegenFeatureFlags&& value) { SetFeatures(std::move(value)); return *this;} /** *

The status of the code generation job.

*/ inline const CodegenJobStatus& GetStatus() const{ return m_status; } /** *

The status of the code generation job.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the code generation job.

*/ inline void SetStatus(const CodegenJobStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the code generation job.

*/ inline void SetStatus(CodegenJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the code generation job.

*/ inline CodegenJob& WithStatus(const CodegenJobStatus& value) { SetStatus(value); return *this;} /** *

The status of the code generation job.

*/ inline CodegenJob& WithStatus(CodegenJobStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The customized status message for the code generation job.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The customized status message for the code generation job.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The customized status message for the code generation job.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The customized status message for the code generation job.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The customized status message for the code generation job.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The customized status message for the code generation job.

*/ inline CodegenJob& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The customized status message for the code generation job.

*/ inline CodegenJob& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The customized status message for the code generation job.

*/ inline CodegenJob& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The CodegenJobAsset to use for the code generation job.

*/ inline const CodegenJobAsset& GetAsset() const{ return m_asset; } /** *

The CodegenJobAsset to use for the code generation job.

*/ inline bool AssetHasBeenSet() const { return m_assetHasBeenSet; } /** *

The CodegenJobAsset to use for the code generation job.

*/ inline void SetAsset(const CodegenJobAsset& value) { m_assetHasBeenSet = true; m_asset = value; } /** *

The CodegenJobAsset to use for the code generation job.

*/ inline void SetAsset(CodegenJobAsset&& value) { m_assetHasBeenSet = true; m_asset = std::move(value); } /** *

The CodegenJobAsset to use for the code generation job.

*/ inline CodegenJob& WithAsset(const CodegenJobAsset& value) { SetAsset(value); return *this;} /** *

The CodegenJobAsset to use for the code generation job.

*/ inline CodegenJob& WithAsset(CodegenJobAsset&& value) { SetAsset(std::move(value)); return *this;} /** *

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

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

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

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

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

*/ 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.

*/ 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.

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

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

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

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

*/ inline CodegenJob& 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.

*/ inline CodegenJob& 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.

*/ inline CodegenJob& 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.

*/ inline CodegenJob& 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.

*/ inline CodegenJob& 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.

*/ inline CodegenJob& 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.

*/ inline CodegenJob& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The time that the code generation job was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time that the code generation job was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time that the code generation job was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time that the code generation job was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time that the code generation job was created.

*/ inline CodegenJob& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time that the code generation job was created.

*/ inline CodegenJob& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time that the code generation job was modified.

*/ inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; } /** *

The time that the code generation job was modified.

*/ inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; } /** *

The time that the code generation job was modified.

*/ inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; } /** *

The time that the code generation job was modified.

*/ inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); } /** *

The time that the code generation job was modified.

*/ inline CodegenJob& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;} /** *

The time that the code generation job was modified.

*/ inline CodegenJob& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; 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; CodegenJobStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; CodegenJobAsset m_asset; bool m_assetHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_modifiedAt; bool m_modifiedAtHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws