commonMain.aws.sdk.kotlin.services.databrew.model.CreateProjectRequest.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 CreateProjectRequest private constructor(builder: Builder) {
/**
* The name of an existing dataset to associate this project with.
*/
public val datasetName: kotlin.String? = builder.datasetName
/**
* A unique name for the new project. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*/
public val name: kotlin.String? = builder.name
/**
* The name of an existing recipe to associate with the project.
*/
public val recipeName: kotlin.String? = builder.recipeName
/**
* The Amazon Resource Name (ARN) of the Identity and Access Management (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
/**
* Metadata tags to apply to this project.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.CreateProjectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateProjectRequest(")
append("datasetName=$datasetName,")
append("name=$name,")
append("recipeName=$recipeName,")
append("roleArn=$roleArn,")
append("sample=$sample,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = datasetName?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (recipeName?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (sample?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateProjectRequest
if (datasetName != other.datasetName) return false
if (name != other.name) return false
if (recipeName != other.recipeName) return false
if (roleArn != other.roleArn) return false
if (sample != other.sample) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.CreateProjectRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of an existing dataset to associate this project with.
*/
public var datasetName: kotlin.String? = null
/**
* A unique name for the new project. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*/
public var name: kotlin.String? = null
/**
* The name of an existing recipe to associate with the project.
*/
public var recipeName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the Identity and Access Management (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
/**
* Metadata tags to apply to this project.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.CreateProjectRequest) : this() {
this.datasetName = x.datasetName
this.name = x.name
this.recipeName = x.recipeName
this.roleArn = x.roleArn
this.sample = x.sample
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.CreateProjectRequest = CreateProjectRequest(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)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy