
commonMain.aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayAssociationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class UpdateDirectConnectGatewayAssociationRequest private constructor(builder: Builder) {
/**
* The Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/
public val addAllowedPrefixesToDirectConnectGateway: List? = builder.addAllowedPrefixesToDirectConnectGateway
/**
* The ID of the Direct Connect gateway association.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.
*/
public val removeAllowedPrefixesToDirectConnectGateway: List? = builder.removeAllowedPrefixesToDirectConnectGateway
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDirectConnectGatewayAssociationRequest(")
append("addAllowedPrefixesToDirectConnectGateway=$addAllowedPrefixesToDirectConnectGateway,")
append("associationId=$associationId,")
append("removeAllowedPrefixesToDirectConnectGateway=$removeAllowedPrefixesToDirectConnectGateway")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addAllowedPrefixesToDirectConnectGateway?.hashCode() ?: 0
result = 31 * result + (associationId?.hashCode() ?: 0)
result = 31 * result + (removeAllowedPrefixesToDirectConnectGateway?.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 UpdateDirectConnectGatewayAssociationRequest
if (addAllowedPrefixesToDirectConnectGateway != other.addAllowedPrefixesToDirectConnectGateway) return false
if (associationId != other.associationId) return false
if (removeAllowedPrefixesToDirectConnectGateway != other.removeAllowedPrefixesToDirectConnectGateway) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayAssociationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/
public var addAllowedPrefixesToDirectConnectGateway: List? = null
/**
* The ID of the Direct Connect gateway association.
*/
public var associationId: kotlin.String? = null
/**
* The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.
*/
public var removeAllowedPrefixesToDirectConnectGateway: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayAssociationRequest) : this() {
this.addAllowedPrefixesToDirectConnectGateway = x.addAllowedPrefixesToDirectConnectGateway
this.associationId = x.associationId
this.removeAllowedPrefixesToDirectConnectGateway = x.removeAllowedPrefixesToDirectConnectGateway
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.UpdateDirectConnectGatewayAssociationRequest = UpdateDirectConnectGatewayAssociationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy