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

commonMain.aws.sdk.kotlin.services.macie.model.S3ResourceClassification.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.macie.model



/**
 * (Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification. This data type is used as a request parameter in the `AssociateS3Resources` action and a response parameter in the `ListS3Resources` action.
 */
public class S3ResourceClassification private constructor(builder: Builder) {
    /**
     * (Discontinued) The name of the S3 bucket that you want to associate with Amazon Macie Classic.
     */
    public val bucketName: kotlin.String? = builder.bucketName
    /**
     * (Discontinued) The classification type that you want to specify for the resource associated with Amazon Macie Classic.
     */
    public val classificationType: aws.sdk.kotlin.services.macie.model.ClassificationType? = builder.classificationType
    /**
     * (Discontinued) The prefix of the S3 bucket that you want to associate with Amazon Macie Classic.
     */
    public val prefix: kotlin.String? = builder.prefix

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

    override fun toString(): kotlin.String = buildString {
        append("S3ResourceClassification(")
        append("bucketName=$bucketName,")
        append("classificationType=$classificationType,")
        append("prefix=$prefix")
        append(")")
    }

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

        if (bucketName != other.bucketName) return false
        if (classificationType != other.classificationType) return false
        if (prefix != other.prefix) return false

        return true
    }

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

    public class Builder {
        /**
         * (Discontinued) The name of the S3 bucket that you want to associate with Amazon Macie Classic.
         */
        public var bucketName: kotlin.String? = null
        /**
         * (Discontinued) The classification type that you want to specify for the resource associated with Amazon Macie Classic.
         */
        public var classificationType: aws.sdk.kotlin.services.macie.model.ClassificationType? = null
        /**
         * (Discontinued) The prefix of the S3 bucket that you want to associate with Amazon Macie Classic.
         */
        public var prefix: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.macie.model.S3ResourceClassification) : this() {
            this.bucketName = x.bucketName
            this.classificationType = x.classificationType
            this.prefix = x.prefix
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.macie.model.ClassificationType] inside the given [block]
         */
        public fun classificationType(block: aws.sdk.kotlin.services.macie.model.ClassificationType.Builder.() -> kotlin.Unit) {
            this.classificationType = aws.sdk.kotlin.services.macie.model.ClassificationType.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy