commonMain.aws.sdk.kotlin.services.emrserverless.model.ManagedPersistenceMonitoringConfiguration.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The managed log persistence configuration for a job run.
*/
public class ManagedPersistenceMonitoringConfiguration private constructor(builder: Builder) {
/**
* Enables managed logging and defaults to true. If set to false, managed logging will be turned off.
*/
public val enabled: kotlin.Boolean? = builder.enabled
/**
* The KMS key ARN to encrypt the logs stored in managed log persistence.
*/
public val encryptionKeyArn: kotlin.String? = builder.encryptionKeyArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrserverless.model.ManagedPersistenceMonitoringConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ManagedPersistenceMonitoringConfiguration(")
append("enabled=$enabled,")
append("encryptionKeyArn=$encryptionKeyArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled?.hashCode() ?: 0
result = 31 * result + (encryptionKeyArn?.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 ManagedPersistenceMonitoringConfiguration
if (enabled != other.enabled) return false
if (encryptionKeyArn != other.encryptionKeyArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.ManagedPersistenceMonitoringConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Enables managed logging and defaults to true. If set to false, managed logging will be turned off.
*/
public var enabled: kotlin.Boolean? = null
/**
* The KMS key ARN to encrypt the logs stored in managed log persistence.
*/
public var encryptionKeyArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.ManagedPersistenceMonitoringConfiguration) : this() {
this.enabled = x.enabled
this.encryptionKeyArn = x.encryptionKeyArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.ManagedPersistenceMonitoringConfiguration = ManagedPersistenceMonitoringConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy