
commonMain.aws.sdk.kotlin.services.s3.model.InventoryDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
/**
* Specifies the inventory configuration for an Amazon S3 bucket.
*/
public class InventoryDestination private constructor(builder: Builder) {
/**
* Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.
*/
public val s3BucketDestination: aws.sdk.kotlin.services.s3.model.InventoryS3BucketDestination? = builder.s3BucketDestination
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.InventoryDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InventoryDestination(")
append("s3BucketDestination=$s3BucketDestination")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3BucketDestination?.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 InventoryDestination
if (s3BucketDestination != other.s3BucketDestination) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.InventoryDestination = Builder(this).apply(block).build()
public class Builder {
/**
* Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.
*/
public var s3BucketDestination: aws.sdk.kotlin.services.s3.model.InventoryS3BucketDestination? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.InventoryDestination) : this() {
this.s3BucketDestination = x.s3BucketDestination
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.InventoryDestination = InventoryDestination(this)
/**
* construct an [aws.sdk.kotlin.services.s3.model.InventoryS3BucketDestination] inside the given [block]
*/
public fun s3BucketDestination(block: aws.sdk.kotlin.services.s3.model.InventoryS3BucketDestination.Builder.() -> kotlin.Unit) {
this.s3BucketDestination = aws.sdk.kotlin.services.s3.model.InventoryS3BucketDestination.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy