
commonMain.aws.sdk.kotlin.services.macie.model.S3ResourceClassificationUpdate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.macie.model
/**
* (Discontinued) The S3 resources whose classification types you want to update. This data type is used as a request parameter in the `UpdateS3Resources` action.
*/
public class S3ResourceClassificationUpdate private constructor(builder: Builder) {
/**
* (Discontinued) The name of the S3 bucket whose classification types you want to update.
*/
public val bucketName: kotlin.String? = builder.bucketName
/**
* (Discontinued) The classification type that you want to update for the resource associated with Amazon Macie Classic.
*/
public val classificationTypeUpdate: aws.sdk.kotlin.services.macie.model.ClassificationTypeUpdate? = builder.classificationTypeUpdate
/**
* (Discontinued) The prefix of the S3 bucket whose classification types you want to update.
*/
public val prefix: kotlin.String? = builder.prefix
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.macie.model.S3ResourceClassificationUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3ResourceClassificationUpdate(")
append("bucketName=$bucketName,")
append("classificationTypeUpdate=$classificationTypeUpdate,")
append("prefix=$prefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketName?.hashCode() ?: 0
result = 31 * result + (classificationTypeUpdate?.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 S3ResourceClassificationUpdate
if (bucketName != other.bucketName) return false
if (classificationTypeUpdate != other.classificationTypeUpdate) return false
if (prefix != other.prefix) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.macie.model.S3ResourceClassificationUpdate = Builder(this).apply(block).build()
public class Builder {
/**
* (Discontinued) The name of the S3 bucket whose classification types you want to update.
*/
public var bucketName: kotlin.String? = null
/**
* (Discontinued) The classification type that you want to update for the resource associated with Amazon Macie Classic.
*/
public var classificationTypeUpdate: aws.sdk.kotlin.services.macie.model.ClassificationTypeUpdate? = null
/**
* (Discontinued) The prefix of the S3 bucket whose classification types you want to update.
*/
public var prefix: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.macie.model.S3ResourceClassificationUpdate) : this() {
this.bucketName = x.bucketName
this.classificationTypeUpdate = x.classificationTypeUpdate
this.prefix = x.prefix
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.macie.model.S3ResourceClassificationUpdate = S3ResourceClassificationUpdate(this)
/**
* construct an [aws.sdk.kotlin.services.macie.model.ClassificationTypeUpdate] inside the given [block]
*/
public fun classificationTypeUpdate(block: aws.sdk.kotlin.services.macie.model.ClassificationTypeUpdate.Builder.() -> kotlin.Unit) {
this.classificationTypeUpdate = aws.sdk.kotlin.services.macie.model.ClassificationTypeUpdate.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy