
commonMain.aws.sdk.kotlin.services.macie.model.S3Resource.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.macie.model
/**
* (Discontinued) Contains information about the S3 resource. This data type is used as a request parameter in the `DisassociateS3Resources` action and can be used as a response parameter in the `AssociateS3Resources` and `UpdateS3Resources` actions.
*/
public class S3Resource private constructor(builder: Builder) {
/**
* (Discontinued) The name of the S3 bucket.
*/
public val bucketName: kotlin.String? = builder.bucketName
/**
* (Discontinued) The prefix of the S3 bucket.
*/
public val prefix: kotlin.String? = builder.prefix
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.macie.model.S3Resource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Resource(")
append("bucketName=$bucketName,")
append("prefix=$prefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketName?.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 S3Resource
if (bucketName != other.bucketName) return false
if (prefix != other.prefix) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.macie.model.S3Resource = Builder(this).apply(block).build()
public class Builder {
/**
* (Discontinued) The name of the S3 bucket.
*/
public var bucketName: kotlin.String? = null
/**
* (Discontinued) The prefix of the S3 bucket.
*/
public var prefix: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.macie.model.S3Resource) : this() {
this.bucketName = x.bucketName
this.prefix = x.prefix
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.macie.model.S3Resource = S3Resource(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy