
commonMain.aws.sdk.kotlin.services.macie.model.AssociateS3ResourcesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.macie.model
public class AssociateS3ResourcesRequest private constructor(builder: Builder) {
/**
* (Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to associate with Macie Classic.
*/
public val memberAccountId: kotlin.String? = builder.memberAccountId
/**
* (Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification.
*/
public val s3Resources: List? = builder.s3Resources
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.macie.model.AssociateS3ResourcesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateS3ResourcesRequest(")
append("memberAccountId=$memberAccountId,")
append("s3Resources=$s3Resources")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = memberAccountId?.hashCode() ?: 0
result = 31 * result + (s3Resources?.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 AssociateS3ResourcesRequest
if (memberAccountId != other.memberAccountId) return false
if (s3Resources != other.s3Resources) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.macie.model.AssociateS3ResourcesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* (Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to associate with Macie Classic.
*/
public var memberAccountId: kotlin.String? = null
/**
* (Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification.
*/
public var s3Resources: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.macie.model.AssociateS3ResourcesRequest) : this() {
this.memberAccountId = x.memberAccountId
this.s3Resources = x.s3Resources
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.macie.model.AssociateS3ResourcesRequest = AssociateS3ResourcesRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy