commonMain.aws.sdk.kotlin.services.dataexchange.model.ScopeDetails.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
/**
* Details about the scope of the notifications such as the affected resources.
*/
public class ScopeDetails private constructor(builder: Builder) {
/**
* Underlying LF resources that will be affected by this notification.
*/
public val lakeFormationTagPolicies: List? = builder.lakeFormationTagPolicies
/**
* Underlying Redshift resources that will be affected by this notification.
*/
public val redshiftDataShares: List? = builder.redshiftDataShares
/**
* Underlying S3 resources that will be affected by this notification.
*/
public val s3DataAccesses: List? = builder.s3DataAccesses
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.ScopeDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ScopeDetails(")
append("lakeFormationTagPolicies=$lakeFormationTagPolicies,")
append("redshiftDataShares=$redshiftDataShares,")
append("s3DataAccesses=$s3DataAccesses")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lakeFormationTagPolicies?.hashCode() ?: 0
result = 31 * result + (redshiftDataShares?.hashCode() ?: 0)
result = 31 * result + (s3DataAccesses?.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 ScopeDetails
if (lakeFormationTagPolicies != other.lakeFormationTagPolicies) return false
if (redshiftDataShares != other.redshiftDataShares) return false
if (s3DataAccesses != other.s3DataAccesses) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.ScopeDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Underlying LF resources that will be affected by this notification.
*/
public var lakeFormationTagPolicies: List? = null
/**
* Underlying Redshift resources that will be affected by this notification.
*/
public var redshiftDataShares: List? = null
/**
* Underlying S3 resources that will be affected by this notification.
*/
public var s3DataAccesses: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.ScopeDetails) : this() {
this.lakeFormationTagPolicies = x.lakeFormationTagPolicies
this.redshiftDataShares = x.redshiftDataShares
this.s3DataAccesses = x.s3DataAccesses
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.ScopeDetails = ScopeDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}