
commonMain.aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class UpdateDirectConnectGatewayResponse private constructor(builder: Builder) {
/**
* Information about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateway or transit gateways.
*/
public val directConnectGateway: aws.sdk.kotlin.services.directconnect.model.DirectConnectGateway? = builder.directConnectGateway
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDirectConnectGatewayResponse(")
append("directConnectGateway=$directConnectGateway")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = directConnectGateway?.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 UpdateDirectConnectGatewayResponse
if (directConnectGateway != other.directConnectGateway) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Information about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateway or transit gateways.
*/
public var directConnectGateway: aws.sdk.kotlin.services.directconnect.model.DirectConnectGateway? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayResponse) : this() {
this.directConnectGateway = x.directConnectGateway
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayResponse = UpdateDirectConnectGatewayResponse(this)
/**
* construct an [aws.sdk.kotlin.services.directconnect.model.DirectConnectGateway] inside the given [block]
*/
public fun directConnectGateway(block: aws.sdk.kotlin.services.directconnect.model.DirectConnectGateway.Builder.() -> kotlin.Unit) {
this.directConnectGateway = aws.sdk.kotlin.services.directconnect.model.DirectConnectGateway.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy