commonMain.aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionToS3RequestDetails.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 of the operation to be performed by the job.
*/
public class AutoExportRevisionToS3RequestDetails private constructor(builder: Builder) {
/**
* Encryption configuration for the auto export job.
*/
public val encryption: aws.sdk.kotlin.services.dataexchange.model.ExportServerSideEncryption? = builder.encryption
/**
* A revision destination is the Amazon S3 bucket folder destination to where the export will be sent.
*/
public val revisionDestination: aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionDestinationEntry? = builder.revisionDestination
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionToS3RequestDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AutoExportRevisionToS3RequestDetails(")
append("encryption=$encryption,")
append("revisionDestination=$revisionDestination")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryption?.hashCode() ?: 0
result = 31 * result + (revisionDestination?.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 AutoExportRevisionToS3RequestDetails
if (encryption != other.encryption) return false
if (revisionDestination != other.revisionDestination) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionToS3RequestDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Encryption configuration for the auto export job.
*/
public var encryption: aws.sdk.kotlin.services.dataexchange.model.ExportServerSideEncryption? = null
/**
* A revision destination is the Amazon S3 bucket folder destination to where the export will be sent.
*/
public var revisionDestination: aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionDestinationEntry? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionToS3RequestDetails) : this() {
this.encryption = x.encryption
this.revisionDestination = x.revisionDestination
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionToS3RequestDetails = AutoExportRevisionToS3RequestDetails(this)
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.ExportServerSideEncryption] inside the given [block]
*/
public fun encryption(block: aws.sdk.kotlin.services.dataexchange.model.ExportServerSideEncryption.Builder.() -> kotlin.Unit) {
this.encryption = aws.sdk.kotlin.services.dataexchange.model.ExportServerSideEncryption.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionDestinationEntry] inside the given [block]
*/
public fun revisionDestination(block: aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionDestinationEntry.Builder.() -> kotlin.Unit) {
this.revisionDestination = aws.sdk.kotlin.services.dataexchange.model.AutoExportRevisionDestinationEntry.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}