commonMain.aws.sdk.kotlin.services.databrew.model.SendProjectSessionActionRequest.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 SendProjectSessionActionRequest private constructor(builder: Builder) {
/**
* A unique identifier for an interactive session that's currently open and ready for work. The action will be performed on this session.
*/
public val clientSessionId: kotlin.String? = builder.clientSessionId
/**
* The name of the project to apply the action to.
*/
public val name: kotlin.String? = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* If true, the result of the recipe step will be returned, but not applied.
*/
public val preview: kotlin.Boolean = builder.preview
/**
* Represents a single step from a DataBrew recipe to be performed.
*/
public val recipeStep: aws.sdk.kotlin.services.databrew.model.RecipeStep? = builder.recipeStep
/**
* The index from which to preview a step. This index is used to preview the result of steps that have already been applied, so that the resulting view frame is from earlier in the view frame stack.
*/
public val stepIndex: kotlin.Int? = builder.stepIndex
/**
* Represents the data being transformed during an action.
*/
public val viewFrame: aws.sdk.kotlin.services.databrew.model.ViewFrame? = builder.viewFrame
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.SendProjectSessionActionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendProjectSessionActionRequest(")
append("clientSessionId=*** Sensitive Data Redacted ***,")
append("name=$name,")
append("preview=$preview,")
append("recipeStep=$recipeStep,")
append("stepIndex=$stepIndex,")
append("viewFrame=$viewFrame)")
}
override fun hashCode(): kotlin.Int {
var result = clientSessionId?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (preview.hashCode())
result = 31 * result + (recipeStep?.hashCode() ?: 0)
result = 31 * result + (stepIndex ?: 0)
result = 31 * result + (viewFrame?.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 SendProjectSessionActionRequest
if (clientSessionId != other.clientSessionId) return false
if (name != other.name) return false
if (preview != other.preview) return false
if (recipeStep != other.recipeStep) return false
if (stepIndex != other.stepIndex) return false
if (viewFrame != other.viewFrame) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.SendProjectSessionActionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for an interactive session that's currently open and ready for work. The action will be performed on this session.
*/
public var clientSessionId: kotlin.String? = null
/**
* The name of the project to apply the action to.
*/
public var name: kotlin.String? = null
/**
* If true, the result of the recipe step will be returned, but not applied.
*/
public var preview: kotlin.Boolean = false
/**
* Represents a single step from a DataBrew recipe to be performed.
*/
public var recipeStep: aws.sdk.kotlin.services.databrew.model.RecipeStep? = null
/**
* The index from which to preview a step. This index is used to preview the result of steps that have already been applied, so that the resulting view frame is from earlier in the view frame stack.
*/
public var stepIndex: kotlin.Int? = null
/**
* Represents the data being transformed during an action.
*/
public var viewFrame: aws.sdk.kotlin.services.databrew.model.ViewFrame? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.SendProjectSessionActionRequest) : this() {
this.clientSessionId = x.clientSessionId
this.name = x.name
this.preview = x.preview
this.recipeStep = x.recipeStep
this.stepIndex = x.stepIndex
this.viewFrame = x.viewFrame
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.SendProjectSessionActionRequest = SendProjectSessionActionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.databrew.model.RecipeStep] inside the given [block]
*/
public fun recipeStep(block: aws.sdk.kotlin.services.databrew.model.RecipeStep.Builder.() -> kotlin.Unit) {
this.recipeStep = aws.sdk.kotlin.services.databrew.model.RecipeStep.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databrew.model.ViewFrame] inside the given [block]
*/
public fun viewFrame(block: aws.sdk.kotlin.services.databrew.model.ViewFrame.Builder.() -> kotlin.Unit) {
this.viewFrame = aws.sdk.kotlin.services.databrew.model.ViewFrame.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy