commonMain.aws.sdk.kotlin.services.redshiftserverless.model.CreateSnapshotCopyConfigurationResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshiftserverless-jvm Show documentation
Show all versions of redshiftserverless-jvm Show documentation
The AWS SDK for Kotlin client for Redshift Serverless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateSnapshotCopyConfigurationResponse private constructor(builder: Builder) {
/**
* The snapshot copy configuration object that is returned.
*/
public val snapshotCopyConfiguration: aws.sdk.kotlin.services.redshiftserverless.model.SnapshotCopyConfiguration? = builder.snapshotCopyConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftserverless.model.CreateSnapshotCopyConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSnapshotCopyConfigurationResponse(")
append("snapshotCopyConfiguration=$snapshotCopyConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = snapshotCopyConfiguration?.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 CreateSnapshotCopyConfigurationResponse
if (snapshotCopyConfiguration != other.snapshotCopyConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftserverless.model.CreateSnapshotCopyConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The snapshot copy configuration object that is returned.
*/
public var snapshotCopyConfiguration: aws.sdk.kotlin.services.redshiftserverless.model.SnapshotCopyConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftserverless.model.CreateSnapshotCopyConfigurationResponse) : this() {
this.snapshotCopyConfiguration = x.snapshotCopyConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftserverless.model.CreateSnapshotCopyConfigurationResponse = CreateSnapshotCopyConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.redshiftserverless.model.SnapshotCopyConfiguration] inside the given [block]
*/
public fun snapshotCopyConfiguration(block: aws.sdk.kotlin.services.redshiftserverless.model.SnapshotCopyConfiguration.Builder.() -> kotlin.Unit) {
this.snapshotCopyConfiguration = aws.sdk.kotlin.services.redshiftserverless.model.SnapshotCopyConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}