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

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

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

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



public class DisassociateS3ResourcesRequest private constructor(builder: Builder) {
    /**
     * (Discontinued) The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie Classic.
     */
    public val associatedS3Resources: List? = builder.associatedS3Resources
    /**
     * (Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to remove from being monitored by Macie Classic.
     */
    public val memberAccountId: kotlin.String? = builder.memberAccountId

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

    override fun toString(): kotlin.String = buildString {
        append("DisassociateS3ResourcesRequest(")
        append("associatedS3Resources=$associatedS3Resources,")
        append("memberAccountId=$memberAccountId")
        append(")")
    }

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

        if (associatedS3Resources != other.associatedS3Resources) return false
        if (memberAccountId != other.memberAccountId) return false

        return true
    }

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

    public class Builder {
        /**
         * (Discontinued) The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie Classic.
         */
        public var associatedS3Resources: List? = null
        /**
         * (Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to remove from being monitored by Macie Classic.
         */
        public var memberAccountId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.macie.model.DisassociateS3ResourcesRequest) : this() {
            this.associatedS3Resources = x.associatedS3Resources
            this.memberAccountId = x.memberAccountId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy