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

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

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

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



public class UpdateS3ResourcesRequest private constructor(builder: Builder) {
    /**
     * (Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account whose S3 resources' classification types you want to update.
     */
    public val memberAccountId: kotlin.String? = builder.memberAccountId
    /**
     * (Discontinued) The S3 resources whose classification types you want to update.
     */
    public val s3ResourcesUpdate: List? = builder.s3ResourcesUpdate

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * (Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account whose S3 resources' classification types you want to update.
         */
        public var memberAccountId: kotlin.String? = null
        /**
         * (Discontinued) The S3 resources whose classification types you want to update.
         */
        public var s3ResourcesUpdate: List? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy