commonMain.aws.sdk.kotlin.services.athena.model.CreateNotebookRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateNotebookRequest private constructor(builder: Builder) {
/**
* A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
*
* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The name of the `ipynb` file to be created in the Spark workgroup, without the `.ipynb` extension.
*/
public val name: kotlin.String? = builder.name
/**
* The name of the Spark enabled workgroup in which the notebook will be created.
*/
public val workGroup: kotlin.String? = builder.workGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.CreateNotebookRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateNotebookRequest(")
append("clientRequestToken=$clientRequestToken,")
append("name=$name,")
append("workGroup=$workGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (workGroup?.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 CreateNotebookRequest
if (clientRequestToken != other.clientRequestToken) return false
if (name != other.name) return false
if (workGroup != other.workGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.CreateNotebookRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
*
* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The name of the `ipynb` file to be created in the Spark workgroup, without the `.ipynb` extension.
*/
public var name: kotlin.String? = null
/**
* The name of the Spark enabled workgroup in which the notebook will be created.
*/
public var workGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.CreateNotebookRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.name = x.name
this.workGroup = x.workGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.CreateNotebookRequest = CreateNotebookRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}