commonMain.aws.sdk.kotlin.services.emrcontainers.model.ParametricCloudWatchMonitoringConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
/**
* A configuration for CloudWatch monitoring. You can configure your jobs to send log information to CloudWatch Logs. This data type allows job template parameters to be specified within.
*/
public class ParametricCloudWatchMonitoringConfiguration private constructor(builder: Builder) {
/**
* The name of the log group for log publishing.
*/
public val logGroupName: kotlin.String? = builder.logGroupName
/**
* The specified name prefix for log streams.
*/
public val logStreamNamePrefix: kotlin.String? = builder.logStreamNamePrefix
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.ParametricCloudWatchMonitoringConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ParametricCloudWatchMonitoringConfiguration(")
append("logGroupName=$logGroupName,")
append("logStreamNamePrefix=$logStreamNamePrefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = logGroupName?.hashCode() ?: 0
result = 31 * result + (logStreamNamePrefix?.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 ParametricCloudWatchMonitoringConfiguration
if (logGroupName != other.logGroupName) return false
if (logStreamNamePrefix != other.logStreamNamePrefix) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.ParametricCloudWatchMonitoringConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the log group for log publishing.
*/
public var logGroupName: kotlin.String? = null
/**
* The specified name prefix for log streams.
*/
public var logStreamNamePrefix: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.ParametricCloudWatchMonitoringConfiguration) : this() {
this.logGroupName = x.logGroupName
this.logStreamNamePrefix = x.logStreamNamePrefix
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.ParametricCloudWatchMonitoringConfiguration = ParametricCloudWatchMonitoringConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy