
commonMain.aws.sdk.kotlin.services.directconnect.model.AllocateConnectionOnInterconnectRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class AllocateConnectionOnInterconnectRequest private constructor(builder: Builder) {
/**
* The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.
*/
public val bandwidth: kotlin.String? = builder.bandwidth
/**
* The name of the provisioned connection.
*/
public val connectionName: kotlin.String? = builder.connectionName
/**
* The ID of the interconnect on which the connection will be provisioned.
*/
public val interconnectId: kotlin.String? = builder.interconnectId
/**
* The ID of the Amazon Web Services account of the customer for whom the connection will be provisioned.
*/
public val ownerAccount: kotlin.String? = builder.ownerAccount
/**
* The dedicated VLAN provisioned to the connection.
*/
public val vlan: kotlin.Int = builder.vlan
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.AllocateConnectionOnInterconnectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AllocateConnectionOnInterconnectRequest(")
append("bandwidth=$bandwidth,")
append("connectionName=$connectionName,")
append("interconnectId=$interconnectId,")
append("ownerAccount=$ownerAccount,")
append("vlan=$vlan")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bandwidth?.hashCode() ?: 0
result = 31 * result + (connectionName?.hashCode() ?: 0)
result = 31 * result + (interconnectId?.hashCode() ?: 0)
result = 31 * result + (ownerAccount?.hashCode() ?: 0)
result = 31 * result + (vlan)
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 AllocateConnectionOnInterconnectRequest
if (bandwidth != other.bandwidth) return false
if (connectionName != other.connectionName) return false
if (interconnectId != other.interconnectId) return false
if (ownerAccount != other.ownerAccount) return false
if (vlan != other.vlan) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.AllocateConnectionOnInterconnectRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.
*/
public var bandwidth: kotlin.String? = null
/**
* The name of the provisioned connection.
*/
public var connectionName: kotlin.String? = null
/**
* The ID of the interconnect on which the connection will be provisioned.
*/
public var interconnectId: kotlin.String? = null
/**
* The ID of the Amazon Web Services account of the customer for whom the connection will be provisioned.
*/
public var ownerAccount: kotlin.String? = null
/**
* The dedicated VLAN provisioned to the connection.
*/
public var vlan: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.AllocateConnectionOnInterconnectRequest) : this() {
this.bandwidth = x.bandwidth
this.connectionName = x.connectionName
this.interconnectId = x.interconnectId
this.ownerAccount = x.ownerAccount
this.vlan = x.vlan
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.AllocateConnectionOnInterconnectRequest = AllocateConnectionOnInterconnectRequest(this)
internal fun correctErrors(): Builder {
if (bandwidth == null) bandwidth = ""
if (connectionName == null) connectionName = ""
if (interconnectId == null) interconnectId = ""
if (ownerAccount == null) ownerAccount = ""
if (vlan == null) vlan = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy