* The encryption mode for the job, which can be one of the following:
*
*
* -
*
* SSE-KMS
- Server-side encryption with keys managed by KMS.
*
*
* -
*
* SSE-S3
- Server-side encryption with keys managed by Amazon S3.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see EncryptionMode
*/
public CreateRecipeJobRequest withEncryptionMode(EncryptionMode encryptionMode) {
this.encryptionMode = encryptionMode.toString();
return this;
}
/**
*
* A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*
*
* @param name
* A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and
* space.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*
*
* @return A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and
* space.
*/
public String getName() {
return this.name;
}
/**
*
* A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*
*
* @param name
* A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and
* space.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRecipeJobRequest withName(String name) {
setName(name);
return this;
}
/**
*
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log
* stream for each job run.
*
*
* @param logSubscription
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one
* log stream for each job run.
* @see LogSubscription
*/
public void setLogSubscription(String logSubscription) {
this.logSubscription = logSubscription;
}
/**
*
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log
* stream for each job run.
*
*
* @return Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one
* log stream for each job run.
* @see LogSubscription
*/
public String getLogSubscription() {
return this.logSubscription;
}
/**
*
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log
* stream for each job run.
*
*
* @param logSubscription
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one
* log stream for each job run.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogSubscription
*/
public CreateRecipeJobRequest withLogSubscription(String logSubscription) {
setLogSubscription(logSubscription);
return this;
}
/**
*
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log
* stream for each job run.
*
*
* @param logSubscription
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one
* log stream for each job run.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogSubscription
*/
public CreateRecipeJobRequest withLogSubscription(LogSubscription logSubscription) {
this.logSubscription = logSubscription.toString();
return this;
}
/**
*
* The maximum number of nodes that DataBrew can consume when the job processes data.
*
*
* @param maxCapacity
* The maximum number of nodes that DataBrew can consume when the job processes data.
*/
public void setMaxCapacity(Integer maxCapacity) {
this.maxCapacity = maxCapacity;
}
/**
*
* The maximum number of nodes that DataBrew can consume when the job processes data.
*
*
* @return The maximum number of nodes that DataBrew can consume when the job processes data.
*/
public Integer getMaxCapacity() {
return this.maxCapacity;
}
/**
*
* The maximum number of nodes that DataBrew can consume when the job processes data.
*
*
* @param maxCapacity
* The maximum number of nodes that DataBrew can consume when the job processes data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRecipeJobRequest withMaxCapacity(Integer maxCapacity) {
setMaxCapacity(maxCapacity);
return this;
}
/**
*
* The maximum number of times to retry the job after a job run fails.
*
*
* @param maxRetries
* The maximum number of times to retry the job after a job run fails.
*/
public void setMaxRetries(Integer maxRetries) {
this.maxRetries = maxRetries;
}
/**
*
* The maximum number of times to retry the job after a job run fails.
*
*
* @return The maximum number of times to retry the job after a job run fails.
*/
public Integer getMaxRetries() {
return this.maxRetries;
}
/**
*
* The maximum number of times to retry the job after a job run fails.
*
*
* @param maxRetries
* The maximum number of times to retry the job after a job run fails.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRecipeJobRequest withMaxRetries(Integer maxRetries) {
setMaxRetries(maxRetries);
return this;
}
/**
*
* One or more artifacts that represent the output from running the job.
*
*
* @return One or more artifacts that represent the output from running the job.
*/
public java.util.List