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

commonMain.aws.sdk.kotlin.services.s3.model.IntelligentTieringAndOperator.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.s3.model



/**
 * A container for specifying S3 Intelligent-Tiering filters. The filters determine the subset of objects to which the rule applies.
 */
public class IntelligentTieringAndOperator private constructor(builder: Builder) {
    /**
     * An object key name prefix that identifies the subset of objects to which the configuration applies.
     */
    public val prefix: kotlin.String? = builder.prefix
    /**
     * All of these tags must exist in the object's tag set in order for the configuration to apply.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("IntelligentTieringAndOperator(")
        append("prefix=$prefix,")
        append("tags=$tags")
        append(")")
    }

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

        if (prefix != other.prefix) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * An object key name prefix that identifies the subset of objects to which the configuration applies.
         */
        public var prefix: kotlin.String? = null
        /**
         * All of these tags must exist in the object's tag set in order for the configuration to apply.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3.model.IntelligentTieringAndOperator) : this() {
            this.prefix = x.prefix
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy