commonMain.aws.sdk.kotlin.services.appflow.model.UpsolverS3OutputFormatConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration that determines how Amazon AppFlow formats the flow output data when Upsolver is used as the destination.
*/
public class UpsolverS3OutputFormatConfig private constructor(builder: Builder) {
/**
* The aggregation settings that you can use to customize the output format of your flow data.
*/
public val aggregationConfig: aws.sdk.kotlin.services.appflow.model.AggregationConfig? = builder.aggregationConfig
/**
* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket.
*/
public val fileType: aws.sdk.kotlin.services.appflow.model.FileType? = builder.fileType
/**
* Specifies elements that Amazon AppFlow includes in the file and folder names in the flow destination.
*/
public val prefixConfig: aws.sdk.kotlin.services.appflow.model.PrefixConfig? = builder.prefixConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.UpsolverS3OutputFormatConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpsolverS3OutputFormatConfig(")
append("aggregationConfig=$aggregationConfig,")
append("fileType=$fileType,")
append("prefixConfig=$prefixConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregationConfig?.hashCode() ?: 0
result = 31 * result + (fileType?.hashCode() ?: 0)
result = 31 * result + (prefixConfig?.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 UpsolverS3OutputFormatConfig
if (aggregationConfig != other.aggregationConfig) return false
if (fileType != other.fileType) return false
if (prefixConfig != other.prefixConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.UpsolverS3OutputFormatConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The aggregation settings that you can use to customize the output format of your flow data.
*/
public var aggregationConfig: aws.sdk.kotlin.services.appflow.model.AggregationConfig? = null
/**
* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket.
*/
public var fileType: aws.sdk.kotlin.services.appflow.model.FileType? = null
/**
* Specifies elements that Amazon AppFlow includes in the file and folder names in the flow destination.
*/
public var prefixConfig: aws.sdk.kotlin.services.appflow.model.PrefixConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.UpsolverS3OutputFormatConfig) : this() {
this.aggregationConfig = x.aggregationConfig
this.fileType = x.fileType
this.prefixConfig = x.prefixConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.UpsolverS3OutputFormatConfig = UpsolverS3OutputFormatConfig(this)
/**
* construct an [aws.sdk.kotlin.services.appflow.model.AggregationConfig] inside the given [block]
*/
public fun aggregationConfig(block: aws.sdk.kotlin.services.appflow.model.AggregationConfig.Builder.() -> kotlin.Unit) {
this.aggregationConfig = aws.sdk.kotlin.services.appflow.model.AggregationConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.appflow.model.PrefixConfig] inside the given [block]
*/
public fun prefixConfig(block: aws.sdk.kotlin.services.appflow.model.PrefixConfig.Builder.() -> kotlin.Unit) {
this.prefixConfig = aws.sdk.kotlin.services.appflow.model.PrefixConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}