
commonMain.aws.sdk.kotlin.services.emrserverless.model.S3MonitoringConfiguration.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 Amazon S3 configuration for monitoring log publishing. You can configure your jobs to send log information to Amazon S3.
*/
public class S3MonitoringConfiguration private constructor(builder: Builder) {
/**
* The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.
*/
public val encryptionKeyArn: kotlin.String? = builder.encryptionKeyArn
/**
* The Amazon S3 destination URI for log publishing.
*/
public val logUri: kotlin.String? = builder.logUri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrserverless.model.S3MonitoringConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3MonitoringConfiguration(")
append("encryptionKeyArn=$encryptionKeyArn,")
append("logUri=$logUri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryptionKeyArn?.hashCode() ?: 0
result = 31 * result + (logUri?.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 S3MonitoringConfiguration
if (encryptionKeyArn != other.encryptionKeyArn) return false
if (logUri != other.logUri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.S3MonitoringConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.
*/
public var encryptionKeyArn: kotlin.String? = null
/**
* The Amazon S3 destination URI for log publishing.
*/
public var logUri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.S3MonitoringConfiguration) : this() {
this.encryptionKeyArn = x.encryptionKeyArn
this.logUri = x.logUri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.S3MonitoringConfiguration = S3MonitoringConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy