
commonMain.aws.sdk.kotlin.services.directconnect.model.DeleteInterconnectResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class DeleteInterconnectResponse private constructor(builder: Builder) {
/**
* The state of the interconnect. The following are the possible values:
* + `requested`: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
* + `pending`: The interconnect is approved, and is being initialized.
* + `available`: The network link is up, and the interconnect is ready for use.
* + `down`: The network link is down.
* + `deleting`: The interconnect is being deleted.
* + `deleted`: The interconnect is deleted.
* + `unknown`: The state of the interconnect is not available.
*/
public val interconnectState: aws.sdk.kotlin.services.directconnect.model.InterconnectState? = builder.interconnectState
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.DeleteInterconnectResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteInterconnectResponse(")
append("interconnectState=$interconnectState")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = interconnectState?.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 DeleteInterconnectResponse
if (interconnectState != other.interconnectState) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.DeleteInterconnectResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The state of the interconnect. The following are the possible values:
* + `requested`: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
* + `pending`: The interconnect is approved, and is being initialized.
* + `available`: The network link is up, and the interconnect is ready for use.
* + `down`: The network link is down.
* + `deleting`: The interconnect is being deleted.
* + `deleted`: The interconnect is deleted.
* + `unknown`: The state of the interconnect is not available.
*/
public var interconnectState: aws.sdk.kotlin.services.directconnect.model.InterconnectState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.DeleteInterconnectResponse) : this() {
this.interconnectState = x.interconnectState
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.DeleteInterconnectResponse = DeleteInterconnectResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy