commonMain.aws.sdk.kotlin.services.backup.model.ReportDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information from your report job about your report destination.
*/
public class ReportDestination private constructor(builder: Builder) {
/**
* The unique name of the Amazon S3 bucket that receives your reports.
*/
public val s3BucketName: kotlin.String? = builder.s3BucketName
/**
* The object key that uniquely identifies your reports in your S3 bucket.
*/
public val s3Keys: List? = builder.s3Keys
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.ReportDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReportDestination(")
append("s3BucketName=$s3BucketName,")
append("s3Keys=$s3Keys")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3BucketName?.hashCode() ?: 0
result = 31 * result + (s3Keys?.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 ReportDestination
if (s3BucketName != other.s3BucketName) return false
if (s3Keys != other.s3Keys) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.ReportDestination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique name of the Amazon S3 bucket that receives your reports.
*/
public var s3BucketName: kotlin.String? = null
/**
* The object key that uniquely identifies your reports in your S3 bucket.
*/
public var s3Keys: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.ReportDestination) : this() {
this.s3BucketName = x.s3BucketName
this.s3Keys = x.s3Keys
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.ReportDestination = ReportDestination(this)
internal fun correctErrors(): Builder {
return this
}
}
}