
commonMain.aws.sdk.kotlin.services.directconnect.model.AcceptDirectConnectGatewayAssociationProposalRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class AcceptDirectConnectGatewayAssociationProposalRequest private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account that owns the virtual private gateway or transit gateway.
*/
public val associatedGatewayOwnerAccount: kotlin.String? = builder.associatedGatewayOwnerAccount
/**
* The ID of the Direct Connect gateway.
*/
public val directConnectGatewayId: kotlin.String? = builder.directConnectGatewayId
/**
* Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
*
* For information about how to set the prefixes, see [Allowed Prefixes](https://docs.aws.amazon.com/directconnect/latest/UserGuide/multi-account-associate-vgw.html#allowed-prefixes) in the *Direct Connect User Guide*.
*/
public val overrideAllowedPrefixesToDirectConnectGateway: List? = builder.overrideAllowedPrefixesToDirectConnectGateway
/**
* The ID of the request proposal.
*/
public val proposalId: kotlin.String? = builder.proposalId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.AcceptDirectConnectGatewayAssociationProposalRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AcceptDirectConnectGatewayAssociationProposalRequest(")
append("associatedGatewayOwnerAccount=$associatedGatewayOwnerAccount,")
append("directConnectGatewayId=$directConnectGatewayId,")
append("overrideAllowedPrefixesToDirectConnectGateway=$overrideAllowedPrefixesToDirectConnectGateway,")
append("proposalId=$proposalId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associatedGatewayOwnerAccount?.hashCode() ?: 0
result = 31 * result + (directConnectGatewayId?.hashCode() ?: 0)
result = 31 * result + (overrideAllowedPrefixesToDirectConnectGateway?.hashCode() ?: 0)
result = 31 * result + (proposalId?.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 AcceptDirectConnectGatewayAssociationProposalRequest
if (associatedGatewayOwnerAccount != other.associatedGatewayOwnerAccount) return false
if (directConnectGatewayId != other.directConnectGatewayId) return false
if (overrideAllowedPrefixesToDirectConnectGateway != other.overrideAllowedPrefixesToDirectConnectGateway) return false
if (proposalId != other.proposalId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.AcceptDirectConnectGatewayAssociationProposalRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the Amazon Web Services account that owns the virtual private gateway or transit gateway.
*/
public var associatedGatewayOwnerAccount: kotlin.String? = null
/**
* The ID of the Direct Connect gateway.
*/
public var directConnectGatewayId: kotlin.String? = null
/**
* Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
*
* For information about how to set the prefixes, see [Allowed Prefixes](https://docs.aws.amazon.com/directconnect/latest/UserGuide/multi-account-associate-vgw.html#allowed-prefixes) in the *Direct Connect User Guide*.
*/
public var overrideAllowedPrefixesToDirectConnectGateway: List? = null
/**
* The ID of the request proposal.
*/
public var proposalId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.AcceptDirectConnectGatewayAssociationProposalRequest) : this() {
this.associatedGatewayOwnerAccount = x.associatedGatewayOwnerAccount
this.directConnectGatewayId = x.directConnectGatewayId
this.overrideAllowedPrefixesToDirectConnectGateway = x.overrideAllowedPrefixesToDirectConnectGateway
this.proposalId = x.proposalId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.AcceptDirectConnectGatewayAssociationProposalRequest = AcceptDirectConnectGatewayAssociationProposalRequest(this)
internal fun correctErrors(): Builder {
if (associatedGatewayOwnerAccount == null) associatedGatewayOwnerAccount = ""
if (directConnectGatewayId == null) directConnectGatewayId = ""
if (proposalId == null) proposalId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy