All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination.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 location where Audit Manager saves assessment reports for the given assessment.
 */
public class AssessmentReportsDestination private constructor(builder: Builder) {
    /**
     * The destination bucket where Audit Manager stores assessment reports.
     */
    public val destination: kotlin.String? = builder.destination
    /**
     * The destination type, such as Amazon S3.
     */
    public val destinationType: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportDestinationType? = builder.destinationType

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AssessmentReportsDestination(")
        append("*** Sensitive Data Redacted ***")
        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 AssessmentReportsDestination

        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.AssessmentReportsDestination = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The destination bucket where Audit Manager stores assessment reports.
         */
        public var destination: kotlin.String? = null
        /**
         * The destination type, such as Amazon S3.
         */
        public var destinationType: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportDestinationType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination) : this() {
            this.destination = x.destination
            this.destinationType = x.destinationType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination = AssessmentReportsDestination(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy