commonMain.aws.sdk.kotlin.services.databrew.model.UpdateProjectRequest.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 UpdateProjectRequest private constructor(builder: Builder) {
/**
* The name of the project to be updated.
*/
public val name: kotlin.String? = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The Amazon Resource Name (ARN) of the IAM role to be assumed for this request.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
*/
public val sample: aws.sdk.kotlin.services.databrew.model.Sample? = builder.sample
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.UpdateProjectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProjectRequest(")
append("name=$name,")
append("roleArn=$roleArn,")
append("sample=$sample")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (sample?.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 UpdateProjectRequest
if (name != other.name) return false
if (roleArn != other.roleArn) return false
if (sample != other.sample) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.UpdateProjectRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the project to be updated.
*/
public var name: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the IAM role to be assumed for this request.
*/
public var roleArn: kotlin.String? = null
/**
* Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
*/
public var sample: aws.sdk.kotlin.services.databrew.model.Sample? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.UpdateProjectRequest) : this() {
this.name = x.name
this.roleArn = x.roleArn
this.sample = x.sample
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.UpdateProjectRequest = UpdateProjectRequest(this)
/**
* construct an [aws.sdk.kotlin.services.databrew.model.Sample] inside the given [block]
*/
public fun sample(block: aws.sdk.kotlin.services.databrew.model.Sample.Builder.() -> kotlin.Unit) {
this.sample = aws.sdk.kotlin.services.databrew.model.Sample.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy