
commonMain.aws.sdk.kotlin.services.emr.model.BootstrapActionDetail.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* Reports the configuration of a bootstrap action in a cluster (job flow).
*/
public class BootstrapActionDetail private constructor(builder: Builder) {
/**
* A description of the bootstrap action.
*/
public val bootstrapActionConfig: aws.sdk.kotlin.services.emr.model.BootstrapActionConfig? = builder.bootstrapActionConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.BootstrapActionDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BootstrapActionDetail(")
append("bootstrapActionConfig=$bootstrapActionConfig)")
}
override fun hashCode(): kotlin.Int {
var result = bootstrapActionConfig?.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 BootstrapActionDetail
if (bootstrapActionConfig != other.bootstrapActionConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.BootstrapActionDetail = Builder(this).apply(block).build()
public class Builder {
/**
* A description of the bootstrap action.
*/
public var bootstrapActionConfig: aws.sdk.kotlin.services.emr.model.BootstrapActionConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.BootstrapActionDetail) : this() {
this.bootstrapActionConfig = x.bootstrapActionConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.BootstrapActionDetail = BootstrapActionDetail(this)
/**
* construct an [aws.sdk.kotlin.services.emr.model.BootstrapActionConfig] inside the given [block]
*/
public fun bootstrapActionConfig(block: aws.sdk.kotlin.services.emr.model.BootstrapActionConfig.Builder.() -> kotlin.Unit) {
this.bootstrapActionConfig = aws.sdk.kotlin.services.emr.model.BootstrapActionConfig.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy