commonMain.aws.sdk.kotlin.services.emrserverless.model.ConfigurationOverrides.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrserverless-jvm Show documentation
Show all versions of emrserverless-jvm Show documentation
The AWS SDK for Kotlin client for EMR Serverless
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A configuration specification to be used to override existing configurations.
*/
public class ConfigurationOverrides private constructor(builder: Builder) {
/**
* The override configurations for the application.
*/
public val applicationConfiguration: List? = builder.applicationConfiguration
/**
* The override configurations for monitoring.
*/
public val monitoringConfiguration: aws.sdk.kotlin.services.emrserverless.model.MonitoringConfiguration? = builder.monitoringConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrserverless.model.ConfigurationOverrides = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfigurationOverrides(")
append("applicationConfiguration=$applicationConfiguration,")
append("monitoringConfiguration=$monitoringConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationConfiguration?.hashCode() ?: 0
result = 31 * result + (monitoringConfiguration?.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 ConfigurationOverrides
if (applicationConfiguration != other.applicationConfiguration) return false
if (monitoringConfiguration != other.monitoringConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.ConfigurationOverrides = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The override configurations for the application.
*/
public var applicationConfiguration: List? = null
/**
* The override configurations for monitoring.
*/
public var monitoringConfiguration: aws.sdk.kotlin.services.emrserverless.model.MonitoringConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.ConfigurationOverrides) : this() {
this.applicationConfiguration = x.applicationConfiguration
this.monitoringConfiguration = x.monitoringConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.ConfigurationOverrides = ConfigurationOverrides(this)
/**
* construct an [aws.sdk.kotlin.services.emrserverless.model.MonitoringConfiguration] inside the given [block]
*/
public fun monitoringConfiguration(block: aws.sdk.kotlin.services.emrserverless.model.MonitoringConfiguration.Builder.() -> kotlin.Unit) {
this.monitoringConfiguration = aws.sdk.kotlin.services.emrserverless.model.MonitoringConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy