/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.glue.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetMLTransformResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

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

*/ private String transformId; /** *

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

*/ private String name; /** *

* A description of the transform. *

*/ private String description; /** *

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

*/ private String status; /** *

* The date and time when the transform was created. *

*/ private java.util.Date createdOn; /** *

* The date and time when the transform was last modified. *

*/ private java.util.Date lastModifiedOn; /** *

* A list of Glue table definitions used by the transform. *

*/ private java.util.List inputRecordTables; /** *

* The configuration parameters that are specific to the algorithm used. *

*/ private TransformParameters parameters; /** *

* The latest evaluation metrics. *

*/ private EvaluationMetrics evaluationMetrics; /** *

* The number of labels available for this transform. *

*/ private Integer labelCount; /** *

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

*/ private java.util.List schema; /** *

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

*/ private String role; /** *

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

*/ private String glueVersion; /** *

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

*/ private Double maxCapacity; /** *

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

    *
  • *
*/ private String workerType; /** *

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

*/ private Integer numberOfWorkers; /** *

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

*/ private Integer timeout; /** *

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

*/ private Integer maxRetries; /** *

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

*/ private TransformEncryption transformEncryption; /** *

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

* * @param transformId * The unique identifier of the transform, generated at the time that the transform was created. */ public void setTransformId(String transformId) { this.transformId = transformId; } /** *

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

* * @return The unique identifier of the transform, generated at the time that the transform was created. */ public String getTransformId() { return this.transformId; } /** *

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

* * @param transformId * The unique identifier of the transform, generated at the time that the transform was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withTransformId(String transformId) { setTransformId(transformId); return this; } /** *

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

* * @param name * The unique name given to the transform when it was created. */ public void setName(String name) { this.name = name; } /** *

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

* * @return The unique name given to the transform when it was created. */ public String getName() { return this.name; } /** *

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

* * @param name * The unique name given to the transform when it was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withName(String name) { setName(name); return this; } /** *

* A description of the transform. *

* * @param description * A description of the transform. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the transform. *

* * @return A description of the transform. */ public String getDescription() { return this.description; } /** *

* A description of the transform. *

* * @param description * A description of the transform. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withDescription(String description) { setDescription(description); 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". *

* * @param status * The last known status of the transform (to indicate whether it can be used or not). One of "NOT_READY", * "READY", or "DELETING". * @see TransformStatusType */ public void setStatus(String status) { this.status = status; } /** *

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

* * @return The last known status of the transform (to indicate whether it can be used or not). One of "NOT_READY", * "READY", or "DELETING". * @see TransformStatusType */ public String getStatus() { return this.status; } /** *

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

* * @param status * The last known status of the transform (to indicate whether it can be used or not). One of "NOT_READY", * "READY", or "DELETING". * @return Returns a reference to this object so that method calls can be chained together. * @see TransformStatusType */ public GetMLTransformResult withStatus(String status) { setStatus(status); 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". *

* * @param status * The last known status of the transform (to indicate whether it can be used or not). One of "NOT_READY", * "READY", or "DELETING". * @return Returns a reference to this object so that method calls can be chained together. * @see TransformStatusType */ public GetMLTransformResult withStatus(TransformStatusType status) { this.status = status.toString(); return this; } /** *

* The date and time when the transform was created. *

* * @param createdOn * The date and time when the transform was created. */ public void setCreatedOn(java.util.Date createdOn) { this.createdOn = createdOn; } /** *

* The date and time when the transform was created. *

* * @return The date and time when the transform was created. */ public java.util.Date getCreatedOn() { return this.createdOn; } /** *

* The date and time when the transform was created. *

* * @param createdOn * The date and time when the transform was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withCreatedOn(java.util.Date createdOn) { setCreatedOn(createdOn); return this; } /** *

* The date and time when the transform was last modified. *

* * @param lastModifiedOn * The date and time when the transform was last modified. */ public void setLastModifiedOn(java.util.Date lastModifiedOn) { this.lastModifiedOn = lastModifiedOn; } /** *

* The date and time when the transform was last modified. *

* * @return The date and time when the transform was last modified. */ public java.util.Date getLastModifiedOn() { return this.lastModifiedOn; } /** *

* The date and time when the transform was last modified. *

* * @param lastModifiedOn * The date and time when the transform was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withLastModifiedOn(java.util.Date lastModifiedOn) { setLastModifiedOn(lastModifiedOn); return this; } /** *

* A list of Glue table definitions used by the transform. *

* * @return A list of Glue table definitions used by the transform. */ public java.util.List getInputRecordTables() { return inputRecordTables; } /** *

* A list of Glue table definitions used by the transform. *

* * @param inputRecordTables * A list of Glue table definitions used by the transform. */ public void setInputRecordTables(java.util.Collection inputRecordTables) { if (inputRecordTables == null) { this.inputRecordTables = null; return; } this.inputRecordTables = new java.util.ArrayList(inputRecordTables); } /** *

* A list of Glue table definitions used by the transform. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputRecordTables(java.util.Collection)} or {@link #withInputRecordTables(java.util.Collection)} if * you want to override the existing values. *

* * @param inputRecordTables * A list of Glue table definitions used by the transform. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withInputRecordTables(GlueTable... inputRecordTables) { if (this.inputRecordTables == null) { setInputRecordTables(new java.util.ArrayList(inputRecordTables.length)); } for (GlueTable ele : inputRecordTables) { this.inputRecordTables.add(ele); } return this; } /** *

* A list of Glue table definitions used by the transform. *

* * @param inputRecordTables * A list of Glue table definitions used by the transform. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withInputRecordTables(java.util.Collection inputRecordTables) { setInputRecordTables(inputRecordTables); return this; } /** *

* The configuration parameters that are specific to the algorithm used. *

* * @param parameters * The configuration parameters that are specific to the algorithm used. */ public void setParameters(TransformParameters parameters) { this.parameters = parameters; } /** *

* The configuration parameters that are specific to the algorithm used. *

* * @return The configuration parameters that are specific to the algorithm used. */ public TransformParameters getParameters() { return this.parameters; } /** *

* The configuration parameters that are specific to the algorithm used. *

* * @param parameters * The configuration parameters that are specific to the algorithm used. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withParameters(TransformParameters parameters) { setParameters(parameters); return this; } /** *

* The latest evaluation metrics. *

* * @param evaluationMetrics * The latest evaluation metrics. */ public void setEvaluationMetrics(EvaluationMetrics evaluationMetrics) { this.evaluationMetrics = evaluationMetrics; } /** *

* The latest evaluation metrics. *

* * @return The latest evaluation metrics. */ public EvaluationMetrics getEvaluationMetrics() { return this.evaluationMetrics; } /** *

* The latest evaluation metrics. *

* * @param evaluationMetrics * The latest evaluation metrics. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withEvaluationMetrics(EvaluationMetrics evaluationMetrics) { setEvaluationMetrics(evaluationMetrics); return this; } /** *

* The number of labels available for this transform. *

* * @param labelCount * The number of labels available for this transform. */ public void setLabelCount(Integer labelCount) { this.labelCount = labelCount; } /** *

* The number of labels available for this transform. *

* * @return The number of labels available for this transform. */ public Integer getLabelCount() { return this.labelCount; } /** *

* The number of labels available for this transform. *

* * @param labelCount * The number of labels available for this transform. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withLabelCount(Integer labelCount) { setLabelCount(labelCount); return this; } /** *

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

* * @return The Map<Column, Type> object that represents the schema that this transform accepts. * Has an upper bound of 100 columns. */ public java.util.List getSchema() { return schema; } /** *

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

* * @param schema * The Map<Column, Type> object that represents the schema that this transform accepts. * Has an upper bound of 100 columns. */ public void setSchema(java.util.Collection schema) { if (schema == null) { this.schema = null; return; } this.schema = new java.util.ArrayList(schema); } /** *

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

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSchema(java.util.Collection)} or {@link #withSchema(java.util.Collection)} if you want to override the * existing values. *

* * @param schema * The Map<Column, Type> object that represents the schema that this transform accepts. * Has an upper bound of 100 columns. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withSchema(SchemaColumn... schema) { if (this.schema == null) { setSchema(new java.util.ArrayList(schema.length)); } for (SchemaColumn ele : schema) { this.schema.add(ele); } return this; } /** *

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

* * @param schema * The Map<Column, Type> object that represents the schema that this transform accepts. * Has an upper bound of 100 columns. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withSchema(java.util.Collection schema) { setSchema(schema); return this; } /** *

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

* * @param role * The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. */ public void setRole(String role) { this.role = role; } /** *

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

* * @return The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. */ public String getRole() { return this.role; } /** *

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

* * @param role * The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withRole(String role) { setRole(role); 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. *

* * @param 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. */ public void setGlueVersion(String glueVersion) { this.glueVersion = 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. *

* * @return 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. */ public String getGlueVersion() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withGlueVersion(String glueVersion) { setGlueVersion(glueVersion); 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. *

* * @param 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. */ public void setMaxCapacity(Double maxCapacity) { this.maxCapacity = 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. *

* * @return 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. */ public Double getMaxCapacity() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withMaxCapacity(Double maxCapacity) { setMaxCapacity(maxCapacity); 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. *

    *
  • *
* * @param 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. *

    *
  • * @see WorkerType */ public void setWorkerType(String workerType) { this.workerType = 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. *

      *
    • *
    * * @return 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. *

      *
    • * @see WorkerType */ public String getWorkerType() { return this.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. *

        *
      • *
      * * @param 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see WorkerType */ public GetMLTransformResult withWorkerType(String workerType) { setWorkerType(workerType); 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. *

          *
        • *
        * * @param 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see WorkerType */ public GetMLTransformResult withWorkerType(WorkerType workerType) { this.workerType = workerType.toString(); return this; } /** *

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

          * * @param numberOfWorkers * The number of workers of a defined workerType that are allocated when this task runs. */ public void setNumberOfWorkers(Integer numberOfWorkers) { this.numberOfWorkers = numberOfWorkers; } /** *

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

          * * @return The number of workers of a defined workerType that are allocated when this task runs. */ public Integer getNumberOfWorkers() { return this.numberOfWorkers; } /** *

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

          * * @param numberOfWorkers * The number of workers of a defined workerType that are allocated when this task runs. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withNumberOfWorkers(Integer numberOfWorkers) { setNumberOfWorkers(numberOfWorkers); 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). *

          * * @param 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). */ public void setTimeout(Integer timeout) { this.timeout = 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). *

          * * @return 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). */ public Integer getTimeout() { return this.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). *

          * * @param 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). * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withTimeout(Integer timeout) { setTimeout(timeout); return this; } /** *

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

          * * @param maxRetries * The maximum number of times to retry a task for this transform after a task run fails. */ public void setMaxRetries(Integer maxRetries) { this.maxRetries = maxRetries; } /** *

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

          * * @return The maximum number of times to retry a task for this transform after a task run fails. */ public Integer getMaxRetries() { return this.maxRetries; } /** *

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

          * * @param maxRetries * The maximum number of times to retry a task for this transform after a task run fails. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withMaxRetries(Integer maxRetries) { setMaxRetries(maxRetries); 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. *

          * * @param 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. */ public void setTransformEncryption(TransformEncryption transformEncryption) { this.transformEncryption = 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. *

          * * @return 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. */ public TransformEncryption getTransformEncryption() { return this.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. *

          * * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTransformResult withTransformEncryption(TransformEncryption transformEncryption) { setTransformEncryption(transformEncryption); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransformId() != null) sb.append("TransformId: ").append(getTransformId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreatedOn() != null) sb.append("CreatedOn: ").append(getCreatedOn()).append(","); if (getLastModifiedOn() != null) sb.append("LastModifiedOn: ").append(getLastModifiedOn()).append(","); if (getInputRecordTables() != null) sb.append("InputRecordTables: ").append(getInputRecordTables()).append(","); if (getParameters() != null) sb.append("Parameters: ").append(getParameters()).append(","); if (getEvaluationMetrics() != null) sb.append("EvaluationMetrics: ").append(getEvaluationMetrics()).append(","); if (getLabelCount() != null) sb.append("LabelCount: ").append(getLabelCount()).append(","); if (getSchema() != null) sb.append("Schema: ").append(getSchema()).append(","); if (getRole() != null) sb.append("Role: ").append(getRole()).append(","); if (getGlueVersion() != null) sb.append("GlueVersion: ").append(getGlueVersion()).append(","); if (getMaxCapacity() != null) sb.append("MaxCapacity: ").append(getMaxCapacity()).append(","); if (getWorkerType() != null) sb.append("WorkerType: ").append(getWorkerType()).append(","); if (getNumberOfWorkers() != null) sb.append("NumberOfWorkers: ").append(getNumberOfWorkers()).append(","); if (getTimeout() != null) sb.append("Timeout: ").append(getTimeout()).append(","); if (getMaxRetries() != null) sb.append("MaxRetries: ").append(getMaxRetries()).append(","); if (getTransformEncryption() != null) sb.append("TransformEncryption: ").append(getTransformEncryption()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetMLTransformResult == false) return false; GetMLTransformResult other = (GetMLTransformResult) obj; if (other.getTransformId() == null ^ this.getTransformId() == null) return false; if (other.getTransformId() != null && other.getTransformId().equals(this.getTransformId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreatedOn() == null ^ this.getCreatedOn() == null) return false; if (other.getCreatedOn() != null && other.getCreatedOn().equals(this.getCreatedOn()) == false) return false; if (other.getLastModifiedOn() == null ^ this.getLastModifiedOn() == null) return false; if (other.getLastModifiedOn() != null && other.getLastModifiedOn().equals(this.getLastModifiedOn()) == false) return false; if (other.getInputRecordTables() == null ^ this.getInputRecordTables() == null) return false; if (other.getInputRecordTables() != null && other.getInputRecordTables().equals(this.getInputRecordTables()) == false) return false; if (other.getParameters() == null ^ this.getParameters() == null) return false; if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false) return false; if (other.getEvaluationMetrics() == null ^ this.getEvaluationMetrics() == null) return false; if (other.getEvaluationMetrics() != null && other.getEvaluationMetrics().equals(this.getEvaluationMetrics()) == false) return false; if (other.getLabelCount() == null ^ this.getLabelCount() == null) return false; if (other.getLabelCount() != null && other.getLabelCount().equals(this.getLabelCount()) == false) return false; if (other.getSchema() == null ^ this.getSchema() == null) return false; if (other.getSchema() != null && other.getSchema().equals(this.getSchema()) == false) return false; if (other.getRole() == null ^ this.getRole() == null) return false; if (other.getRole() != null && other.getRole().equals(this.getRole()) == false) return false; if (other.getGlueVersion() == null ^ this.getGlueVersion() == null) return false; if (other.getGlueVersion() != null && other.getGlueVersion().equals(this.getGlueVersion()) == false) return false; if (other.getMaxCapacity() == null ^ this.getMaxCapacity() == null) return false; if (other.getMaxCapacity() != null && other.getMaxCapacity().equals(this.getMaxCapacity()) == false) return false; if (other.getWorkerType() == null ^ this.getWorkerType() == null) return false; if (other.getWorkerType() != null && other.getWorkerType().equals(this.getWorkerType()) == false) return false; if (other.getNumberOfWorkers() == null ^ this.getNumberOfWorkers() == null) return false; if (other.getNumberOfWorkers() != null && other.getNumberOfWorkers().equals(this.getNumberOfWorkers()) == false) return false; if (other.getTimeout() == null ^ this.getTimeout() == null) return false; if (other.getTimeout() != null && other.getTimeout().equals(this.getTimeout()) == false) return false; if (other.getMaxRetries() == null ^ this.getMaxRetries() == null) return false; if (other.getMaxRetries() != null && other.getMaxRetries().equals(this.getMaxRetries()) == false) return false; if (other.getTransformEncryption() == null ^ this.getTransformEncryption() == null) return false; if (other.getTransformEncryption() != null && other.getTransformEncryption().equals(this.getTransformEncryption()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransformId() == null) ? 0 : getTransformId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedOn() == null) ? 0 : getCreatedOn().hashCode()); hashCode = prime * hashCode + ((getLastModifiedOn() == null) ? 0 : getLastModifiedOn().hashCode()); hashCode = prime * hashCode + ((getInputRecordTables() == null) ? 0 : getInputRecordTables().hashCode()); hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); hashCode = prime * hashCode + ((getEvaluationMetrics() == null) ? 0 : getEvaluationMetrics().hashCode()); hashCode = prime * hashCode + ((getLabelCount() == null) ? 0 : getLabelCount().hashCode()); hashCode = prime * hashCode + ((getSchema() == null) ? 0 : getSchema().hashCode()); hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode()); hashCode = prime * hashCode + ((getGlueVersion() == null) ? 0 : getGlueVersion().hashCode()); hashCode = prime * hashCode + ((getMaxCapacity() == null) ? 0 : getMaxCapacity().hashCode()); hashCode = prime * hashCode + ((getWorkerType() == null) ? 0 : getWorkerType().hashCode()); hashCode = prime * hashCode + ((getNumberOfWorkers() == null) ? 0 : getNumberOfWorkers().hashCode()); hashCode = prime * hashCode + ((getTimeout() == null) ? 0 : getTimeout().hashCode()); hashCode = prime * hashCode + ((getMaxRetries() == null) ? 0 : getMaxRetries().hashCode()); hashCode = prime * hashCode + ((getTransformEncryption() == null) ? 0 : getTransformEncryption().hashCode()); return hashCode; } @Override public GetMLTransformResult clone() { try { return (GetMLTransformResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }