
commonMain.aws.sdk.kotlin.services.rekognition.model.OutputConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* The S3 bucket and folder location where training output is placed.
*/
public class OutputConfig private constructor(builder: Builder) {
/**
* The S3 bucket where training output is placed.
*/
public val s3Bucket: kotlin.String? = builder.s3Bucket
/**
* The prefix applied to the training output files.
*/
public val s3KeyPrefix: kotlin.String? = builder.s3KeyPrefix
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.OutputConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OutputConfig(")
append("s3Bucket=$s3Bucket,")
append("s3KeyPrefix=$s3KeyPrefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3Bucket?.hashCode() ?: 0
result = 31 * result + (s3KeyPrefix?.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 OutputConfig
if (s3Bucket != other.s3Bucket) return false
if (s3KeyPrefix != other.s3KeyPrefix) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.OutputConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The S3 bucket where training output is placed.
*/
public var s3Bucket: kotlin.String? = null
/**
* The prefix applied to the training output files.
*/
public var s3KeyPrefix: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.OutputConfig) : this() {
this.s3Bucket = x.s3Bucket
this.s3KeyPrefix = x.s3KeyPrefix
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.OutputConfig = OutputConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy