/* * 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 StartDataQualityRulesetEvaluationRunRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The data source (Glue table) associated with this run. *
*/ private DataSource dataSource; /** ** An IAM role supplied to encrypt the results of the run. *
*/ private String role; /** *
* The number of G.1X
workers to be used in the run. The default is 5.
*
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is
* terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
*
* Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting * multiple instances of the same resource. *
*/ private String clientToken; /** ** Additional run options you can specify for an evaluation run. *
*/ private DataQualityEvaluationRunAdditionalRunOptions additionalRunOptions; /** ** A list of ruleset names. *
*/ private java.util.List* A map of reference strings to additional data sources you can specify for an evaluation run. *
*/ private java.util.Map* The data source (Glue table) associated with this run. *
* * @param dataSource * The data source (Glue table) associated with this run. */ public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } /** ** The data source (Glue table) associated with this run. *
* * @return The data source (Glue table) associated with this run. */ public DataSource getDataSource() { return this.dataSource; } /** ** The data source (Glue table) associated with this run. *
* * @param dataSource * The data source (Glue table) associated with this run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withDataSource(DataSource dataSource) { setDataSource(dataSource); return this; } /** ** An IAM role supplied to encrypt the results of the run. *
* * @param role * An IAM role supplied to encrypt the results of the run. */ public void setRole(String role) { this.role = role; } /** ** An IAM role supplied to encrypt the results of the run. *
* * @return An IAM role supplied to encrypt the results of the run. */ public String getRole() { return this.role; } /** ** An IAM role supplied to encrypt the results of the run. *
* * @param role * An IAM role supplied to encrypt the results of the run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withRole(String role) { setRole(role); return this; } /** *
* The number of G.1X
workers to be used in the run. The default is 5.
*
G.1X
workers to be used in the run. The default is 5.
*/
public void setNumberOfWorkers(Integer numberOfWorkers) {
this.numberOfWorkers = numberOfWorkers;
}
/**
*
* The number of G.1X
workers to be used in the run. The default is 5.
*
G.1X
workers to be used in the run. The default is 5.
*/
public Integer getNumberOfWorkers() {
return this.numberOfWorkers;
}
/**
*
* The number of G.1X
workers to be used in the run. The default is 5.
*
G.1X
workers to be used in the run. The default is 5.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDataQualityRulesetEvaluationRunRequest withNumberOfWorkers(Integer numberOfWorkers) {
setNumberOfWorkers(numberOfWorkers);
return this;
}
/**
*
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is
* terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
*
TIMEOUT
status. The default is 2,880 minutes (48 hours).
*/
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
/**
*
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is
* terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
*
TIMEOUT
status. The default is 2,880 minutes (48 hours).
*/
public Integer getTimeout() {
return this.timeout;
}
/**
*
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is
* terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
*
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 StartDataQualityRulesetEvaluationRunRequest withTimeout(Integer timeout) {
setTimeout(timeout);
return this;
}
/**
* * Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting * multiple instances of the same resource. *
* * @param clientToken * Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or * starting multiple instances of the same resource. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting * multiple instances of the same resource. *
* * @return Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or * starting multiple instances of the same resource. */ public String getClientToken() { return this.clientToken; } /** ** Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting * multiple instances of the same resource. *
* * @param clientToken * Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or * starting multiple instances of the same resource. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** Additional run options you can specify for an evaluation run. *
* * @param additionalRunOptions * Additional run options you can specify for an evaluation run. */ public void setAdditionalRunOptions(DataQualityEvaluationRunAdditionalRunOptions additionalRunOptions) { this.additionalRunOptions = additionalRunOptions; } /** ** Additional run options you can specify for an evaluation run. *
* * @return Additional run options you can specify for an evaluation run. */ public DataQualityEvaluationRunAdditionalRunOptions getAdditionalRunOptions() { return this.additionalRunOptions; } /** ** Additional run options you can specify for an evaluation run. *
* * @param additionalRunOptions * Additional run options you can specify for an evaluation run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withAdditionalRunOptions(DataQualityEvaluationRunAdditionalRunOptions additionalRunOptions) { setAdditionalRunOptions(additionalRunOptions); return this; } /** ** A list of ruleset names. *
* * @return A list of ruleset names. */ public java.util.List* A list of ruleset names. *
* * @param rulesetNames * A list of ruleset names. */ public void setRulesetNames(java.util.Collection* A list of ruleset names. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRulesetNames(java.util.Collection)} or {@link #withRulesetNames(java.util.Collection)} if you want to * override the existing values. *
* * @param rulesetNames * A list of ruleset names. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withRulesetNames(String... rulesetNames) { if (this.rulesetNames == null) { setRulesetNames(new java.util.ArrayList* A list of ruleset names. *
* * @param rulesetNames * A list of ruleset names. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withRulesetNames(java.util.Collection* A map of reference strings to additional data sources you can specify for an evaluation run. *
* * @return A map of reference strings to additional data sources you can specify for an evaluation run. */ public java.util.Map* A map of reference strings to additional data sources you can specify for an evaluation run. *
* * @param additionalDataSources * A map of reference strings to additional data sources you can specify for an evaluation run. */ public void setAdditionalDataSources(java.util.Map* A map of reference strings to additional data sources you can specify for an evaluation run. *
* * @param additionalDataSources * A map of reference strings to additional data sources you can specify for an evaluation run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataQualityRulesetEvaluationRunRequest withAdditionalDataSources(java.util.Map