
commonMain.aws.sdk.kotlin.services.fis.model.ExperimentLogConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fis.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes the configuration for experiment logging.
*/
public class ExperimentLogConfiguration private constructor(builder: Builder) {
/**
* The configuration for experiment logging to Amazon CloudWatch Logs.
*/
public val cloudWatchLogsConfiguration: aws.sdk.kotlin.services.fis.model.ExperimentCloudWatchLogsLogConfiguration? = builder.cloudWatchLogsConfiguration
/**
* The schema version.
*/
public val logSchemaVersion: kotlin.Int? = builder.logSchemaVersion
/**
* The configuration for experiment logging to Amazon S3.
*/
public val s3Configuration: aws.sdk.kotlin.services.fis.model.ExperimentS3LogConfiguration? = builder.s3Configuration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.ExperimentLogConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExperimentLogConfiguration(")
append("cloudWatchLogsConfiguration=$cloudWatchLogsConfiguration,")
append("logSchemaVersion=$logSchemaVersion,")
append("s3Configuration=$s3Configuration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cloudWatchLogsConfiguration?.hashCode() ?: 0
result = 31 * result + (logSchemaVersion ?: 0)
result = 31 * result + (s3Configuration?.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 ExperimentLogConfiguration
if (cloudWatchLogsConfiguration != other.cloudWatchLogsConfiguration) return false
if (logSchemaVersion != other.logSchemaVersion) return false
if (s3Configuration != other.s3Configuration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.ExperimentLogConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration for experiment logging to Amazon CloudWatch Logs.
*/
public var cloudWatchLogsConfiguration: aws.sdk.kotlin.services.fis.model.ExperimentCloudWatchLogsLogConfiguration? = null
/**
* The schema version.
*/
public var logSchemaVersion: kotlin.Int? = null
/**
* The configuration for experiment logging to Amazon S3.
*/
public var s3Configuration: aws.sdk.kotlin.services.fis.model.ExperimentS3LogConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.ExperimentLogConfiguration) : this() {
this.cloudWatchLogsConfiguration = x.cloudWatchLogsConfiguration
this.logSchemaVersion = x.logSchemaVersion
this.s3Configuration = x.s3Configuration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.ExperimentLogConfiguration = ExperimentLogConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.fis.model.ExperimentCloudWatchLogsLogConfiguration] inside the given [block]
*/
public fun cloudWatchLogsConfiguration(block: aws.sdk.kotlin.services.fis.model.ExperimentCloudWatchLogsLogConfiguration.Builder.() -> kotlin.Unit) {
this.cloudWatchLogsConfiguration = aws.sdk.kotlin.services.fis.model.ExperimentCloudWatchLogsLogConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.fis.model.ExperimentS3LogConfiguration] inside the given [block]
*/
public fun s3Configuration(block: aws.sdk.kotlin.services.fis.model.ExperimentS3LogConfiguration.Builder.() -> kotlin.Unit) {
this.s3Configuration = aws.sdk.kotlin.services.fis.model.ExperimentS3LogConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy