/* * 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; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateMLTransformRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* A unique identifier that was generated when the transform was created. *

*/ private String transformId; /** *

* The unique name that you gave the transform when you created it. *

*/ private String name; /** *

* A description of the transform. The default is an empty string. *

*/ private String description; /** *

* The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on * the transform type. *

*/ private TransformParameters parameters; /** *

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

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

* A unique identifier that was generated when the transform was created. *

* * @param transformId * A unique identifier that was generated when the transform was created. */ public void setTransformId(String transformId) { this.transformId = transformId; } /** *

* A unique identifier that was generated when the transform was created. *

* * @return A unique identifier that was generated when the transform was created. */ public String getTransformId() { return this.transformId; } /** *

* A unique identifier that was generated when the transform was created. *

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

* The unique name that you gave the transform when you created it. *

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

* The unique name that you gave the transform when you created it. *

* * @return The unique name that you gave the transform when you created it. */ public String getName() { return this.name; } /** *

* The unique name that you gave the transform when you created it. *

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

* A description of the transform. The default is an empty string. *

* * @param description * A description of the transform. The default is an empty string. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the transform. The default is an empty string. *

* * @return A description of the transform. The default is an empty string. */ public String getDescription() { return this.description; } /** *

* A description of the transform. The default is an empty string. *

* * @param description * A description of the transform. The default is an empty string. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMLTransformRequest withDescription(String description) { setDescription(description); return this; } /** *

* The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on * the transform type. *

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

* The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on * the transform type. *

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

* The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on * the transform type. *

* * @param parameters * The configuration parameters that are specific to the transform type (algorithm) used. Conditionally * dependent on the transform type. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMLTransformRequest withParameters(TransformParameters parameters) { setParameters(parameters); 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 UpdateMLTransformRequest 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 UpdateMLTransformRequest 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 UpdateMLTransformRequest 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. *

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

*