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