/** * 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 #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glue { namespace Model { class GetMLTransformResult { public: AWS_GLUE_API GetMLTransformResult(); AWS_GLUE_API GetMLTransformResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API GetMLTransformResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline const Aws::String& GetTransformId() const{ return m_transformId; } /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline void SetTransformId(const Aws::String& value) { m_transformId = value; } /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline void SetTransformId(Aws::String&& value) { m_transformId = std::move(value); } /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline void SetTransformId(const char* value) { m_transformId.assign(value); } /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline GetMLTransformResult& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;} /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline GetMLTransformResult& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;} /** *

The unique identifier of the transform, generated at the time that the * transform was created.

*/ inline GetMLTransformResult& WithTransformId(const char* value) { SetTransformId(value); return *this;} /** *

The unique name given to the transform when it was created.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The unique name given to the transform when it was created.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The unique name given to the transform when it was created.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The unique name given to the transform when it was created.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The unique name given to the transform when it was created.

*/ inline GetMLTransformResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The unique name given to the transform when it was created.

*/ inline GetMLTransformResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The unique name given to the transform when it was created.

*/ inline GetMLTransformResult& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the transform.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the transform.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

A description of the transform.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

A description of the transform.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

A description of the transform.

*/ inline GetMLTransformResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the transform.

*/ inline GetMLTransformResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the transform.

*/ inline GetMLTransformResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The last known status of the transform (to indicate whether it can be used or * not). One of "NOT_READY", "READY", or "DELETING".

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

The last known status of the transform (to indicate whether it can be used or * not). One of "NOT_READY", "READY", or "DELETING".

*/ inline void SetStatus(const TransformStatusType& value) { m_status = value; } /** *

The last known status of the transform (to indicate whether it can be used or * not). One of "NOT_READY", "READY", or "DELETING".

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

The last known status of the transform (to indicate whether it can be used or * not). One of "NOT_READY", "READY", or "DELETING".

*/ inline GetMLTransformResult& WithStatus(const TransformStatusType& value) { SetStatus(value); return *this;} /** *

The last known status of the transform (to indicate whether it can be used or * not). One of "NOT_READY", "READY", or "DELETING".

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

The date and time when the transform was created.

*/ inline const Aws::Utils::DateTime& GetCreatedOn() const{ return m_createdOn; } /** *

The date and time when the transform was created.

*/ inline void SetCreatedOn(const Aws::Utils::DateTime& value) { m_createdOn = value; } /** *

The date and time when the transform was created.

*/ inline void SetCreatedOn(Aws::Utils::DateTime&& value) { m_createdOn = std::move(value); } /** *

The date and time when the transform was created.

*/ inline GetMLTransformResult& WithCreatedOn(const Aws::Utils::DateTime& value) { SetCreatedOn(value); return *this;} /** *

The date and time when the transform was created.

*/ inline GetMLTransformResult& WithCreatedOn(Aws::Utils::DateTime&& value) { SetCreatedOn(std::move(value)); return *this;} /** *

The date and time when the transform was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; } /** *

The date and time when the transform was last modified.

*/ inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOn = value; } /** *

The date and time when the transform was last modified.

*/ inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOn = std::move(value); } /** *

The date and time when the transform was last modified.

*/ inline GetMLTransformResult& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;} /** *

The date and time when the transform was last modified.

*/ inline GetMLTransformResult& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;} /** *

A list of Glue table definitions used by the transform.

*/ inline const Aws::Vector& GetInputRecordTables() const{ return m_inputRecordTables; } /** *

A list of Glue table definitions used by the transform.

*/ inline void SetInputRecordTables(const Aws::Vector& value) { m_inputRecordTables = value; } /** *

A list of Glue table definitions used by the transform.

*/ inline void SetInputRecordTables(Aws::Vector&& value) { m_inputRecordTables = std::move(value); } /** *

A list of Glue table definitions used by the transform.

*/ inline GetMLTransformResult& WithInputRecordTables(const Aws::Vector& value) { SetInputRecordTables(value); return *this;} /** *

A list of Glue table definitions used by the transform.

*/ inline GetMLTransformResult& WithInputRecordTables(Aws::Vector&& value) { SetInputRecordTables(std::move(value)); return *this;} /** *

A list of Glue table definitions used by the transform.

*/ inline GetMLTransformResult& AddInputRecordTables(const GlueTable& value) { m_inputRecordTables.push_back(value); return *this; } /** *

A list of Glue table definitions used by the transform.

*/ inline GetMLTransformResult& AddInputRecordTables(GlueTable&& value) { m_inputRecordTables.push_back(std::move(value)); return *this; } /** *

The configuration parameters that are specific to the algorithm used.

*/ inline const TransformParameters& GetParameters() const{ return m_parameters; } /** *

The configuration parameters that are specific to the algorithm used.

*/ inline void SetParameters(const TransformParameters& value) { m_parameters = value; } /** *

The configuration parameters that are specific to the algorithm used.

*/ inline void SetParameters(TransformParameters&& value) { m_parameters = std::move(value); } /** *

The configuration parameters that are specific to the algorithm used.

*/ inline GetMLTransformResult& WithParameters(const TransformParameters& value) { SetParameters(value); return *this;} /** *

The configuration parameters that are specific to the algorithm used.

*/ inline GetMLTransformResult& WithParameters(TransformParameters&& value) { SetParameters(std::move(value)); return *this;} /** *

The latest evaluation metrics.

*/ inline const EvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; } /** *

The latest evaluation metrics.

*/ inline void SetEvaluationMetrics(const EvaluationMetrics& value) { m_evaluationMetrics = value; } /** *

The latest evaluation metrics.

*/ inline void SetEvaluationMetrics(EvaluationMetrics&& value) { m_evaluationMetrics = std::move(value); } /** *

The latest evaluation metrics.

*/ inline GetMLTransformResult& WithEvaluationMetrics(const EvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;} /** *

The latest evaluation metrics.

*/ inline GetMLTransformResult& WithEvaluationMetrics(EvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;} /** *

The number of labels available for this transform.

*/ inline int GetLabelCount() const{ return m_labelCount; } /** *

The number of labels available for this transform.

*/ inline void SetLabelCount(int value) { m_labelCount = value; } /** *

The number of labels available for this transform.

*/ inline GetMLTransformResult& WithLabelCount(int value) { SetLabelCount(value); return *this;} /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline const Aws::Vector& GetSchema() const{ return m_schema; } /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline void SetSchema(const Aws::Vector& value) { m_schema = value; } /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline void SetSchema(Aws::Vector&& value) { m_schema = std::move(value); } /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline GetMLTransformResult& WithSchema(const Aws::Vector& value) { SetSchema(value); return *this;} /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline GetMLTransformResult& WithSchema(Aws::Vector&& value) { SetSchema(std::move(value)); return *this;} /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline GetMLTransformResult& AddSchema(const SchemaColumn& value) { m_schema.push_back(value); return *this; } /** *

The Map<Column, Type> object that represents the schema * that this transform accepts. Has an upper bound of 100 columns.

*/ inline GetMLTransformResult& AddSchema(SchemaColumn&& value) { m_schema.push_back(std::move(value)); return *this; } /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline const Aws::String& GetRole() const{ return m_role; } /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline void SetRole(const Aws::String& value) { m_role = value; } /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline void SetRole(Aws::String&& value) { m_role = std::move(value); } /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline void SetRole(const char* value) { m_role.assign(value); } /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline GetMLTransformResult& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline GetMLTransformResult& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *

The name or Amazon Resource Name (ARN) of the IAM role with the required * permissions.

*/ inline GetMLTransformResult& WithRole(const char* value) { SetRole(value); return *this;} /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline const Aws::String& GetGlueVersion() const{ return m_glueVersion; } /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline void SetGlueVersion(const Aws::String& value) { m_glueVersion = value; } /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline void SetGlueVersion(Aws::String&& value) { m_glueVersion = std::move(value); } /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline void SetGlueVersion(const char* value) { m_glueVersion.assign(value); } /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline GetMLTransformResult& WithGlueVersion(const Aws::String& value) { SetGlueVersion(value); return *this;} /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline GetMLTransformResult& WithGlueVersion(Aws::String&& value) { SetGlueVersion(std::move(value)); return *this;} /** *

This value determines which version of Glue this machine learning transform * is compatible with. Glue 1.0 is recommended for most customers. If the value is * not set, the Glue compatibility defaults to Glue 0.9. For more information, see * Glue * Versions in the developer guide.

*/ inline GetMLTransformResult& WithGlueVersion(const char* value) { SetGlueVersion(value); return *this;} /** *

The number of Glue data processing units (DPUs) that are allocated to task * runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. * A DPU is a relative measure of processing power that consists of 4 vCPUs of * compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

When * the WorkerType field is set to a value other than * Standard, the MaxCapacity field is set automatically * and becomes read-only.

*/ inline double GetMaxCapacity() const{ return m_maxCapacity; } /** *

The number of Glue data processing units (DPUs) that are allocated to task * runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. * A DPU is a relative measure of processing power that consists of 4 vCPUs of * compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

When * the WorkerType field is set to a value other than * Standard, the MaxCapacity field is set automatically * and becomes read-only.

*/ inline void SetMaxCapacity(double value) { m_maxCapacity = value; } /** *

The number of Glue data processing units (DPUs) that are allocated to task * runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. * A DPU is a relative measure of processing power that consists of 4 vCPUs of * compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

When * the WorkerType field is set to a value other than * Standard, the MaxCapacity field is set automatically * and becomes read-only.

*/ inline GetMLTransformResult& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;} /** *

The type of predefined worker that is allocated when this task runs. Accepts * a value of Standard, G.1X, or G.2X.

  • For the * Standard worker type, each worker provides 4 vCPU, 16 GB of memory * and a 50GB disk, and 2 executors per worker.

  • For the * G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and * a 64GB disk, and 1 executor per worker.

  • For the * G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and * a 128GB disk, and 1 executor per worker.

*/ inline const WorkerType& GetWorkerType() const{ return m_workerType; } /** *

The type of predefined worker that is allocated when this task runs. Accepts * a value of Standard, G.1X, or G.2X.

  • For the * Standard worker type, each worker provides 4 vCPU, 16 GB of memory * and a 50GB disk, and 2 executors per worker.

  • For the * G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and * a 64GB disk, and 1 executor per worker.

  • For the * G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and * a 128GB disk, and 1 executor per worker.

*/ inline void SetWorkerType(const WorkerType& value) { m_workerType = value; } /** *

The type of predefined worker that is allocated when this task runs. Accepts * a value of Standard, G.1X, or G.2X.

  • For the * Standard worker type, each worker provides 4 vCPU, 16 GB of memory * and a 50GB disk, and 2 executors per worker.

  • For the * G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and * a 64GB disk, and 1 executor per worker.

  • For the * G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and * a 128GB disk, and 1 executor per worker.

*/ inline void SetWorkerType(WorkerType&& value) { m_workerType = std::move(value); } /** *

The type of predefined worker that is allocated when this task runs. Accepts * a value of Standard, G.1X, or G.2X.

  • For the * Standard worker type, each worker provides 4 vCPU, 16 GB of memory * and a 50GB disk, and 2 executors per worker.

  • For the * G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and * a 64GB disk, and 1 executor per worker.

  • For the * G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and * a 128GB disk, and 1 executor per worker.

*/ inline GetMLTransformResult& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;} /** *

The type of predefined worker that is allocated when this task runs. Accepts * a value of Standard, G.1X, or G.2X.

  • For the * Standard worker type, each worker provides 4 vCPU, 16 GB of memory * and a 50GB disk, and 2 executors per worker.

  • For the * G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and * a 64GB disk, and 1 executor per worker.

  • For the * G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and * a 128GB disk, and 1 executor per worker.

*/ inline GetMLTransformResult& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;} /** *

The number of workers of a defined workerType that are allocated * when this task runs.

*/ inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; } /** *

The number of workers of a defined workerType that are allocated * when this task runs.

*/ inline void SetNumberOfWorkers(int value) { m_numberOfWorkers = value; } /** *

The number of workers of a defined workerType that are allocated * when this task runs.

*/ inline GetMLTransformResult& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;} /** *

The timeout for a task run for this transform in minutes. This is the maximum * time that a task run for this transform can consume resources before it is * terminated and enters TIMEOUT status. The default is 2,880 minutes * (48 hours).

*/ inline int GetTimeout() const{ return m_timeout; } /** *

The timeout for a task run for this transform in minutes. This is the maximum * time that a task run for this transform can consume resources before it is * terminated and enters TIMEOUT status. The default is 2,880 minutes * (48 hours).

*/ inline void SetTimeout(int value) { m_timeout = value; } /** *

The timeout for a task run for this transform in minutes. This is the maximum * time that a task run for this transform can consume resources before it is * terminated and enters TIMEOUT status. The default is 2,880 minutes * (48 hours).

*/ inline GetMLTransformResult& WithTimeout(int value) { SetTimeout(value); return *this;} /** *

The maximum number of times to retry a task for this transform after a task * run fails.

*/ inline int GetMaxRetries() const{ return m_maxRetries; } /** *

The maximum number of times to retry a task for this transform after a task * run fails.

*/ inline void SetMaxRetries(int value) { m_maxRetries = value; } /** *

The maximum number of times to retry a task for this transform after a task * run fails.

*/ inline GetMLTransformResult& WithMaxRetries(int value) { SetMaxRetries(value); return *this;} /** *

The encryption-at-rest settings of the transform that apply to accessing user * data. Machine learning transforms can access user data encrypted in Amazon S3 * using KMS.

*/ inline const TransformEncryption& GetTransformEncryption() const{ return m_transformEncryption; } /** *

The encryption-at-rest settings of the transform that apply to accessing user * data. Machine learning transforms can access user data encrypted in Amazon S3 * using KMS.

*/ inline void SetTransformEncryption(const TransformEncryption& value) { m_transformEncryption = value; } /** *

The encryption-at-rest settings of the transform that apply to accessing user * data. Machine learning transforms can access user data encrypted in Amazon S3 * using KMS.

*/ inline void SetTransformEncryption(TransformEncryption&& value) { m_transformEncryption = std::move(value); } /** *

The encryption-at-rest settings of the transform that apply to accessing user * data. Machine learning transforms can access user data encrypted in Amazon S3 * using KMS.

*/ inline GetMLTransformResult& WithTransformEncryption(const TransformEncryption& value) { SetTransformEncryption(value); return *this;} /** *

The encryption-at-rest settings of the transform that apply to accessing user * data. Machine learning transforms can access user data encrypted in Amazon S3 * using KMS.

*/ inline GetMLTransformResult& WithTransformEncryption(TransformEncryption&& value) { SetTransformEncryption(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetMLTransformResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMLTransformResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMLTransformResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_transformId; Aws::String m_name; Aws::String m_description; TransformStatusType m_status; Aws::Utils::DateTime m_createdOn; Aws::Utils::DateTime m_lastModifiedOn; Aws::Vector m_inputRecordTables; TransformParameters m_parameters; EvaluationMetrics m_evaluationMetrics; int m_labelCount; Aws::Vector m_schema; Aws::String m_role; Aws::String m_glueVersion; double m_maxCapacity; WorkerType m_workerType; int m_numberOfWorkers; int m_timeout; int m_maxRetries; TransformEncryption m_transformEncryption; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws