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

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

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

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



/**
 *
 */
public class SelectionCriteria private constructor(builder: Builder) {
    /**
     * A container for the delimiter of the selection criteria being used.
     */
    public val delimiter: kotlin.String? = builder.delimiter
    /**
     * The max depth of the selection criteria
     */
    public val maxDepth: kotlin.Int? = builder.maxDepth
    /**
     * The minimum number of storage bytes percentage whose metrics will be selected.
     *
     * You must choose a value greater than or equal to `1.0`.
     */
    public val minStorageBytesPercentage: kotlin.Double? = builder.minStorageBytesPercentage

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

    override fun toString(): kotlin.String = buildString {
        append("SelectionCriteria(")
        append("delimiter=$delimiter,")
        append("maxDepth=$maxDepth,")
        append("minStorageBytesPercentage=$minStorageBytesPercentage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = delimiter?.hashCode() ?: 0
        result = 31 * result + (maxDepth ?: 0)
        result = 31 * result + (minStorageBytesPercentage?.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 SelectionCriteria

        if (delimiter != other.delimiter) return false
        if (maxDepth != other.maxDepth) return false
        if (minStorageBytesPercentage != other.minStorageBytesPercentage) return false

        return true
    }

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

    public class Builder {
        /**
         * A container for the delimiter of the selection criteria being used.
         */
        public var delimiter: kotlin.String? = null
        /**
         * The max depth of the selection criteria
         */
        public var maxDepth: kotlin.Int? = null
        /**
         * The minimum number of storage bytes percentage whose metrics will be selected.
         *
         * You must choose a value greater than or equal to `1.0`.
         */
        public var minStorageBytesPercentage: kotlin.Double? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.SelectionCriteria) : this() {
            this.delimiter = x.delimiter
            this.maxDepth = x.maxDepth
            this.minStorageBytesPercentage = x.minStorageBytesPercentage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy