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