commonMain.aws.sdk.kotlin.services.databrew.model.UpdateProfileJobRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
public class UpdateProfileJobRequest private constructor(builder: Builder) {
/**
* Configuration for profile jobs. Used to select columns, do evaluations, and override default parameters of evaluations. When configuration is null, the profile job will run with default settings.
*/
public val configuration: aws.sdk.kotlin.services.databrew.model.ProfileConfiguration? = builder.configuration
/**
* The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.
*/
public val encryptionKeyArn: kotlin.String? = builder.encryptionKeyArn
/**
* 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.
*/
public val encryptionMode: aws.sdk.kotlin.services.databrew.model.EncryptionMode? = builder.encryptionMode
/**
* Sample configuration for Profile Jobs only. Determines the number of rows on which the Profile job will be executed. If a JobSample value is not provided for profile jobs, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
*/
public val jobSample: aws.sdk.kotlin.services.databrew.model.JobSample? = builder.jobSample
/**
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.
*/
public val logSubscription: aws.sdk.kotlin.services.databrew.model.LogSubscription? = builder.logSubscription
/**
* The maximum number of compute nodes that DataBrew can use when the job processes data.
*/
public val maxCapacity: kotlin.Int = builder.maxCapacity
/**
* The maximum number of times to retry the job after a job run fails.
*/
public val maxRetries: kotlin.Int = builder.maxRetries
/**
* The name of the job to be updated.
*/
public val name: kotlin.String? = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.
*/
public val outputLocation: aws.sdk.kotlin.services.databrew.model.S3Location? = builder.outputLocation
/**
* The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of `TIMEOUT`.
*/
public val timeout: kotlin.Int = builder.timeout
/**
* List of validation configurations that are applied to the profile job.
*/
public val validationConfigurations: List? = builder.validationConfigurations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.UpdateProfileJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProfileJobRequest(")
append("configuration=$configuration,")
append("encryptionKeyArn=$encryptionKeyArn,")
append("encryptionMode=$encryptionMode,")
append("jobSample=$jobSample,")
append("logSubscription=$logSubscription,")
append("maxCapacity=$maxCapacity,")
append("maxRetries=$maxRetries,")
append("name=$name,")
append("outputLocation=$outputLocation,")
append("roleArn=$roleArn,")
append("timeout=$timeout,")
append("validationConfigurations=$validationConfigurations)")
}
override fun hashCode(): kotlin.Int {
var result = configuration?.hashCode() ?: 0
result = 31 * result + (encryptionKeyArn?.hashCode() ?: 0)
result = 31 * result + (encryptionMode?.hashCode() ?: 0)
result = 31 * result + (jobSample?.hashCode() ?: 0)
result = 31 * result + (logSubscription?.hashCode() ?: 0)
result = 31 * result + (maxCapacity)
result = 31 * result + (maxRetries)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (outputLocation?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (timeout)
result = 31 * result + (validationConfigurations?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as UpdateProfileJobRequest
if (configuration != other.configuration) return false
if (encryptionKeyArn != other.encryptionKeyArn) return false
if (encryptionMode != other.encryptionMode) return false
if (jobSample != other.jobSample) return false
if (logSubscription != other.logSubscription) return false
if (maxCapacity != other.maxCapacity) return false
if (maxRetries != other.maxRetries) return false
if (name != other.name) return false
if (outputLocation != other.outputLocation) return false
if (roleArn != other.roleArn) return false
if (timeout != other.timeout) return false
if (validationConfigurations != other.validationConfigurations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.UpdateProfileJobRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Configuration for profile jobs. Used to select columns, do evaluations, and override default parameters of evaluations. When configuration is null, the profile job will run with default settings.
*/
public var configuration: aws.sdk.kotlin.services.databrew.model.ProfileConfiguration? = null
/**
* The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.
*/
public var encryptionKeyArn: kotlin.String? = null
/**
* 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.
*/
public var encryptionMode: aws.sdk.kotlin.services.databrew.model.EncryptionMode? = null
/**
* Sample configuration for Profile Jobs only. Determines the number of rows on which the Profile job will be executed. If a JobSample value is not provided for profile jobs, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
*/
public var jobSample: aws.sdk.kotlin.services.databrew.model.JobSample? = null
/**
* Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.
*/
public var logSubscription: aws.sdk.kotlin.services.databrew.model.LogSubscription? = null
/**
* The maximum number of compute nodes that DataBrew can use when the job processes data.
*/
public var maxCapacity: kotlin.Int = 0
/**
* The maximum number of times to retry the job after a job run fails.
*/
public var maxRetries: kotlin.Int = 0
/**
* The name of the job to be updated.
*/
public var name: kotlin.String? = null
/**
* Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.
*/
public var outputLocation: aws.sdk.kotlin.services.databrew.model.S3Location? = null
/**
* The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
*/
public var roleArn: kotlin.String? = null
/**
* The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of `TIMEOUT`.
*/
public var timeout: kotlin.Int = 0
/**
* List of validation configurations that are applied to the profile job.
*/
public var validationConfigurations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.UpdateProfileJobRequest) : this() {
this.configuration = x.configuration
this.encryptionKeyArn = x.encryptionKeyArn
this.encryptionMode = x.encryptionMode
this.jobSample = x.jobSample
this.logSubscription = x.logSubscription
this.maxCapacity = x.maxCapacity
this.maxRetries = x.maxRetries
this.name = x.name
this.outputLocation = x.outputLocation
this.roleArn = x.roleArn
this.timeout = x.timeout
this.validationConfigurations = x.validationConfigurations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.UpdateProfileJobRequest = UpdateProfileJobRequest(this)
/**
* construct an [aws.sdk.kotlin.services.databrew.model.ProfileConfiguration] inside the given [block]
*/
public fun configuration(block: aws.sdk.kotlin.services.databrew.model.ProfileConfiguration.Builder.() -> kotlin.Unit) {
this.configuration = aws.sdk.kotlin.services.databrew.model.ProfileConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databrew.model.JobSample] inside the given [block]
*/
public fun jobSample(block: aws.sdk.kotlin.services.databrew.model.JobSample.Builder.() -> kotlin.Unit) {
this.jobSample = aws.sdk.kotlin.services.databrew.model.JobSample.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databrew.model.S3Location] inside the given [block]
*/
public fun outputLocation(block: aws.sdk.kotlin.services.databrew.model.S3Location.Builder.() -> kotlin.Unit) {
this.outputLocation = aws.sdk.kotlin.services.databrew.model.S3Location.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy