
commonMain.aws.sdk.kotlin.services.emrserverless.model.InteractiveConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration to use to enable the different types of interactive use cases in an application.
*/
public class InteractiveConfiguration private constructor(builder: Builder) {
/**
* Enables an Apache Livy endpoint that you can connect to and run interactive jobs.
*/
public val livyEndpointEnabled: kotlin.Boolean? = builder.livyEndpointEnabled
/**
* Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a notebook.
*/
public val studioEnabled: kotlin.Boolean? = builder.studioEnabled
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrserverless.model.InteractiveConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InteractiveConfiguration(")
append("livyEndpointEnabled=$livyEndpointEnabled,")
append("studioEnabled=$studioEnabled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = livyEndpointEnabled?.hashCode() ?: 0
result = 31 * result + (studioEnabled?.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 InteractiveConfiguration
if (livyEndpointEnabled != other.livyEndpointEnabled) return false
if (studioEnabled != other.studioEnabled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.InteractiveConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Enables an Apache Livy endpoint that you can connect to and run interactive jobs.
*/
public var livyEndpointEnabled: kotlin.Boolean? = null
/**
* Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a notebook.
*/
public var studioEnabled: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.InteractiveConfiguration) : this() {
this.livyEndpointEnabled = x.livyEndpointEnabled
this.studioEnabled = x.studioEnabled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.InteractiveConfiguration = InteractiveConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy