
commonMain.aws.sdk.kotlin.services.auditmanager.model.DefaultExportDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.auditmanager.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The default s3 bucket where Audit Manager saves the files that you export from evidence finder.
*/
public class DefaultExportDestination private constructor(builder: Builder) {
/**
* The destination bucket where Audit Manager stores exported files.
*/
public val destination: kotlin.String? = builder.destination
/**
* The destination type, such as Amazon S3.
*/
public val destinationType: aws.sdk.kotlin.services.auditmanager.model.ExportDestinationType? = builder.destinationType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.DefaultExportDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DefaultExportDestination(")
append("destination=$destination,")
append("destinationType=$destinationType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destination?.hashCode() ?: 0
result = 31 * result + (destinationType?.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 DefaultExportDestination
if (destination != other.destination) return false
if (destinationType != other.destinationType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.DefaultExportDestination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The destination bucket where Audit Manager stores exported files.
*/
public var destination: kotlin.String? = null
/**
* The destination type, such as Amazon S3.
*/
public var destinationType: aws.sdk.kotlin.services.auditmanager.model.ExportDestinationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.DefaultExportDestination) : this() {
this.destination = x.destination
this.destinationType = x.destinationType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.DefaultExportDestination = DefaultExportDestination(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy