
commonMain.aws.sdk.kotlin.services.directconnect.model.DescribeConnectionLoaRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class DescribeConnectionLoaRequest private constructor(builder: Builder) {
/**
* The ID of the connection.
*/
public val connectionId: kotlin.String? = builder.connectionId
/**
* 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 APN partner or service provider who establishes connectivity on your behalf. If you specify 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.DescribeConnectionLoaRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeConnectionLoaRequest(")
append("connectionId=$connectionId,")
append("loaContentType=$loaContentType,")
append("providerName=$providerName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionId?.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 DescribeConnectionLoaRequest
if (connectionId != other.connectionId) 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.DescribeConnectionLoaRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the connection.
*/
public var connectionId: 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 APN partner or service provider who establishes connectivity on your behalf. If you specify 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.DescribeConnectionLoaRequest) : this() {
this.connectionId = x.connectionId
this.loaContentType = x.loaContentType
this.providerName = x.providerName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.DescribeConnectionLoaRequest = DescribeConnectionLoaRequest(this)
internal fun correctErrors(): Builder {
if (connectionId == null) connectionId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy