commonMain.aws.sdk.kotlin.services.dataexchange.model.S3DataAccessDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataexchange-jvm Show documentation
Show all versions of dataexchange-jvm Show documentation
The AWS Kotlin client for DataExchange
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dataexchange.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Extra details specific to the affected scope in this S3 Data Access data set.
*/
public class S3DataAccessDetails private constructor(builder: Builder) {
/**
* A list of the key prefixes affected by this notification. This can have up to 50 entries.
*/
public val keyPrefixes: List? = builder.keyPrefixes
/**
* A list of the keys affected by this notification. This can have up to 50 entries.
*/
public val keys: List? = builder.keys
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.S3DataAccessDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3DataAccessDetails(")
append("keyPrefixes=$keyPrefixes,")
append("keys=$keys")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = keyPrefixes?.hashCode() ?: 0
result = 31 * result + (keys?.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 S3DataAccessDetails
if (keyPrefixes != other.keyPrefixes) return false
if (keys != other.keys) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.S3DataAccessDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of the key prefixes affected by this notification. This can have up to 50 entries.
*/
public var keyPrefixes: List? = null
/**
* A list of the keys affected by this notification. This can have up to 50 entries.
*/
public var keys: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.S3DataAccessDetails) : this() {
this.keyPrefixes = x.keyPrefixes
this.keys = x.keys
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.S3DataAccessDetails = S3DataAccessDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}