
commonMain.aws.sdk.kotlin.services.s3control.model.Include.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* A container for what Amazon S3 Storage Lens configuration includes.
*/
public class Include private constructor(builder: Builder) {
/**
* A container for the S3 Storage Lens bucket includes.
*/
public val buckets: List? = builder.buckets
/**
* A container for the S3 Storage Lens Region includes.
*/
public val regions: List? = builder.regions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.Include = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Include(")
append("buckets=$buckets,")
append("regions=$regions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = buckets?.hashCode() ?: 0
result = 31 * result + (regions?.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 Include
if (buckets != other.buckets) return false
if (regions != other.regions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.Include = Builder(this).apply(block).build()
public class Builder {
/**
* A container for the S3 Storage Lens bucket includes.
*/
public var buckets: List? = null
/**
* A container for the S3 Storage Lens Region includes.
*/
public var regions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.Include) : this() {
this.buckets = x.buckets
this.regions = x.regions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.Include = Include(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy