commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.DetectedS3SourceConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
/**
* An inferred source configuration.
*/
public class DetectedS3SourceConfig private constructor(builder: Builder) {
/**
* The source's file format descriptor.
*/
public val fileFormatDescriptor: aws.sdk.kotlin.services.lookoutmetrics.model.DetectedFileFormatDescriptor? = builder.fileFormatDescriptor
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.DetectedS3SourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectedS3SourceConfig(")
append("fileFormatDescriptor=$fileFormatDescriptor")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fileFormatDescriptor?.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 DetectedS3SourceConfig
if (fileFormatDescriptor != other.fileFormatDescriptor) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.DetectedS3SourceConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The source's file format descriptor.
*/
public var fileFormatDescriptor: aws.sdk.kotlin.services.lookoutmetrics.model.DetectedFileFormatDescriptor? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.DetectedS3SourceConfig) : this() {
this.fileFormatDescriptor = x.fileFormatDescriptor
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.DetectedS3SourceConfig = DetectedS3SourceConfig(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.DetectedFileFormatDescriptor] inside the given [block]
*/
public fun fileFormatDescriptor(block: aws.sdk.kotlin.services.lookoutmetrics.model.DetectedFileFormatDescriptor.Builder.() -> kotlin.Unit) {
this.fileFormatDescriptor = aws.sdk.kotlin.services.lookoutmetrics.model.DetectedFileFormatDescriptor.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy