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