
commonMain.aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class DescribeDirectConnectGatewayAssociationsRequest private constructor(builder: Builder) {
/**
* The ID of the associated gateway.
*/
public val associatedGatewayId: kotlin.String? = builder.associatedGatewayId
/**
* The ID of the Direct Connect gateway association.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The ID of the Direct Connect gateway.
*/
public val directConnectGatewayId: kotlin.String? = builder.directConnectGatewayId
/**
* The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value.
*
* If `MaxResults` is given a value larger than 100, only 100 results are returned.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token provided in the previous call to retrieve the next page.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The ID of the virtual private gateway or transit gateway.
*/
public val virtualGatewayId: kotlin.String? = builder.virtualGatewayId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDirectConnectGatewayAssociationsRequest(")
append("associatedGatewayId=$associatedGatewayId,")
append("associationId=$associationId,")
append("directConnectGatewayId=$directConnectGatewayId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("virtualGatewayId=$virtualGatewayId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associatedGatewayId?.hashCode() ?: 0
result = 31 * result + (associationId?.hashCode() ?: 0)
result = 31 * result + (directConnectGatewayId?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (virtualGatewayId?.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 DescribeDirectConnectGatewayAssociationsRequest
if (associatedGatewayId != other.associatedGatewayId) return false
if (associationId != other.associationId) return false
if (directConnectGatewayId != other.directConnectGatewayId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (virtualGatewayId != other.virtualGatewayId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the associated gateway.
*/
public var associatedGatewayId: kotlin.String? = null
/**
* The ID of the Direct Connect gateway association.
*/
public var associationId: kotlin.String? = null
/**
* The ID of the Direct Connect gateway.
*/
public var directConnectGatewayId: kotlin.String? = null
/**
* The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value.
*
* If `MaxResults` is given a value larger than 100, only 100 results are returned.
*/
public var maxResults: kotlin.Int? = null
/**
* The token provided in the previous call to retrieve the next page.
*/
public var nextToken: kotlin.String? = null
/**
* The ID of the virtual private gateway or transit gateway.
*/
public var virtualGatewayId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationsRequest) : this() {
this.associatedGatewayId = x.associatedGatewayId
this.associationId = x.associationId
this.directConnectGatewayId = x.directConnectGatewayId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.virtualGatewayId = x.virtualGatewayId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationsRequest = DescribeDirectConnectGatewayAssociationsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy