All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.s3control.model.StorageLensGroupLevelSelectionCriteria.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.s3control.model



/**
 * Indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation. You can only attach Storage Lens groups to your Storage Lens dashboard if they're included in your Storage Lens group aggregation. If this value is left null, then all Storage Lens groups are selected.
 */
public class StorageLensGroupLevelSelectionCriteria private constructor(builder: Builder) {
    /**
     * Indicates which Storage Lens group ARNs to exclude from the Storage Lens group aggregation.
     */
    public val exclude: List? = builder.exclude
    /**
     * Indicates which Storage Lens group ARNs to include in the Storage Lens group aggregation.
     */
    public val include: List? = builder.include

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.StorageLensGroupLevelSelectionCriteria = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("StorageLensGroupLevelSelectionCriteria(")
        append("exclude=$exclude,")
        append("include=$include")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = exclude?.hashCode() ?: 0
        result = 31 * result + (include?.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 StorageLensGroupLevelSelectionCriteria

        if (exclude != other.exclude) return false
        if (include != other.include) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.StorageLensGroupLevelSelectionCriteria = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Indicates which Storage Lens group ARNs to exclude from the Storage Lens group aggregation.
         */
        public var exclude: List? = null
        /**
         * Indicates which Storage Lens group ARNs to include in the Storage Lens group aggregation.
         */
        public var include: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.StorageLensGroupLevelSelectionCriteria) : this() {
            this.exclude = x.exclude
            this.include = x.include
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.s3control.model.StorageLensGroupLevelSelectionCriteria = StorageLensGroupLevelSelectionCriteria(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy