
commonMain.aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration of a job template parameter.
*/
public class TemplateParameterConfiguration private constructor(builder: Builder) {
/**
* The default value for the job template parameter.
*/
public val defaultValue: kotlin.String? = builder.defaultValue
/**
* The type of the job template parameter. Allowed values are: ‘STRING’, ‘NUMBER’.
*/
public val type: aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterDataType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TemplateParameterConfiguration(")
append("defaultValue=$defaultValue,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultValue?.hashCode() ?: 0
result = 31 * result + (type?.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 TemplateParameterConfiguration
if (defaultValue != other.defaultValue) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The default value for the job template parameter.
*/
public var defaultValue: kotlin.String? = null
/**
* The type of the job template parameter. Allowed values are: ‘STRING’, ‘NUMBER’.
*/
public var type: aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterDataType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterConfiguration) : this() {
this.defaultValue = x.defaultValue
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.TemplateParameterConfiguration = TemplateParameterConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy