
commonMain.aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAttachmentsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class DescribeDirectConnectGatewayAttachmentsRequest private constructor(builder: Builder) {
/**
* 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 interface.
*/
public val virtualInterfaceId: kotlin.String? = builder.virtualInterfaceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAttachmentsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDirectConnectGatewayAttachmentsRequest(")
append("directConnectGatewayId=$directConnectGatewayId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("virtualInterfaceId=$virtualInterfaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = directConnectGatewayId?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (virtualInterfaceId?.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 DescribeDirectConnectGatewayAttachmentsRequest
if (directConnectGatewayId != other.directConnectGatewayId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (virtualInterfaceId != other.virtualInterfaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAttachmentsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* 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 interface.
*/
public var virtualInterfaceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAttachmentsRequest) : this() {
this.directConnectGatewayId = x.directConnectGatewayId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.virtualInterfaceId = x.virtualInterfaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAttachmentsRequest = DescribeDirectConnectGatewayAttachmentsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy