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

commonMain.aws.sdk.kotlin.services.directconnect.model.DescribeLoaResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.directconnect.model



/**
 * Information about a Letter of Authorization - Connecting Facility Assignment (LOA-CFA) for a connection.
 */
public class DescribeLoaResponse private constructor(builder: Builder) {
    /**
     * The binary contents of the LOA-CFA document.
     */
    public val loaContent: kotlin.ByteArray? = builder.loaContent
    /**
     * The standard media type for the LOA-CFA document. The only supported value is application/pdf.
     */
    public val loaContentType: aws.sdk.kotlin.services.directconnect.model.LoaContentType? = builder.loaContentType

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeLoaResponse(")
        append("loaContent=$loaContent,")
        append("loaContentType=$loaContentType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = loaContent?.contentHashCode() ?: 0
        result = 31 * result + (loaContentType?.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 DescribeLoaResponse

        if (loaContent != null) {
            if (other.loaContent == null) return false
            if (!loaContent.contentEquals(other.loaContent)) return false
        } else if (other.loaContent != null) return false
        if (loaContentType != other.loaContentType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.DescribeLoaResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The binary contents of the LOA-CFA document.
         */
        public var loaContent: kotlin.ByteArray? = null
        /**
         * The standard media type for the LOA-CFA document. The only supported value is application/pdf.
         */
        public var loaContentType: aws.sdk.kotlin.services.directconnect.model.LoaContentType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.directconnect.model.DescribeLoaResponse) : this() {
            this.loaContent = x.loaContent
            this.loaContentType = x.loaContentType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy