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

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

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

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



public class DescribeInterconnectLoaRequest private constructor(builder: Builder) {
    /**
     * The ID of the interconnect.
     */
    public val interconnectId: kotlin.String? = builder.interconnectId
    /**
     * 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
    /**
     * The name of the service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.
     */
    public val providerName: kotlin.String? = builder.providerName

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeInterconnectLoaRequest(")
        append("interconnectId=$interconnectId,")
        append("loaContentType=$loaContentType,")
        append("providerName=$providerName")
        append(")")
    }

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

        if (interconnectId != other.interconnectId) return false
        if (loaContentType != other.loaContentType) return false
        if (providerName != other.providerName) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the interconnect.
         */
        public var interconnectId: kotlin.String? = 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
        /**
         * The name of the service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.
         */
        public var providerName: kotlin.String? = null

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

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

        internal fun correctErrors(): Builder {
            if (interconnectId == null) interconnectId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy