commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.S3SourceConfig.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about the configuration of the S3 bucket that contains source files.
*/
public class S3SourceConfig private constructor(builder: Builder) {
/**
* Contains information about a source file's formatting.
*/
public val fileFormatDescriptor: aws.sdk.kotlin.services.lookoutmetrics.model.FileFormatDescriptor? = builder.fileFormatDescriptor
/**
* A list of paths to the historical data files.
*/
public val historicalDataPathList: List? = builder.historicalDataPathList
/**
* The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* A list of templated paths to the source files.
*/
public val templatedPathList: List? = builder.templatedPathList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.S3SourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3SourceConfig(")
append("fileFormatDescriptor=$fileFormatDescriptor,")
append("historicalDataPathList=$historicalDataPathList,")
append("roleArn=$roleArn,")
append("templatedPathList=$templatedPathList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fileFormatDescriptor?.hashCode() ?: 0
result = 31 * result + (historicalDataPathList?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (templatedPathList?.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 S3SourceConfig
if (fileFormatDescriptor != other.fileFormatDescriptor) return false
if (historicalDataPathList != other.historicalDataPathList) return false
if (roleArn != other.roleArn) return false
if (templatedPathList != other.templatedPathList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.S3SourceConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains information about a source file's formatting.
*/
public var fileFormatDescriptor: aws.sdk.kotlin.services.lookoutmetrics.model.FileFormatDescriptor? = null
/**
* A list of paths to the historical data files.
*/
public var historicalDataPathList: List? = null
/**
* The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
*/
public var roleArn: kotlin.String? = null
/**
* A list of templated paths to the source files.
*/
public var templatedPathList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.S3SourceConfig) : this() {
this.fileFormatDescriptor = x.fileFormatDescriptor
this.historicalDataPathList = x.historicalDataPathList
this.roleArn = x.roleArn
this.templatedPathList = x.templatedPathList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.S3SourceConfig = S3SourceConfig(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.FileFormatDescriptor] inside the given [block]
*/
public fun fileFormatDescriptor(block: aws.sdk.kotlin.services.lookoutmetrics.model.FileFormatDescriptor.Builder.() -> kotlin.Unit) {
this.fileFormatDescriptor = aws.sdk.kotlin.services.lookoutmetrics.model.FileFormatDescriptor.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy