
commonMain.aws.sdk.kotlin.services.directconnect.model.DescribeCustomerMetadataResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class DescribeCustomerMetadataResponse private constructor(builder: Builder) {
/**
* The list of customer agreements.
*/
public val agreements: List? = builder.agreements
/**
* The type of network-to-network interface (NNI) partner. The partner type will be one of the following:
* + V1: This partner can only allocate 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps subgigabit connections.
* + V2: This partner can only allocate 1GB, 2GB, 5GB, or 10GB hosted connections.
* + nonPartner: The customer is not a partner.
*/
public val nniPartnerType: aws.sdk.kotlin.services.directconnect.model.NniPartnerType? = builder.nniPartnerType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.DescribeCustomerMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeCustomerMetadataResponse(")
append("agreements=$agreements,")
append("nniPartnerType=$nniPartnerType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agreements?.hashCode() ?: 0
result = 31 * result + (nniPartnerType?.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 DescribeCustomerMetadataResponse
if (agreements != other.agreements) return false
if (nniPartnerType != other.nniPartnerType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.DescribeCustomerMetadataResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The list of customer agreements.
*/
public var agreements: List? = null
/**
* The type of network-to-network interface (NNI) partner. The partner type will be one of the following:
* + V1: This partner can only allocate 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps subgigabit connections.
* + V2: This partner can only allocate 1GB, 2GB, 5GB, or 10GB hosted connections.
* + nonPartner: The customer is not a partner.
*/
public var nniPartnerType: aws.sdk.kotlin.services.directconnect.model.NniPartnerType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.DescribeCustomerMetadataResponse) : this() {
this.agreements = x.agreements
this.nniPartnerType = x.nniPartnerType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.DescribeCustomerMetadataResponse = DescribeCustomerMetadataResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy