All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationProposalsRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.directconnect.model



public class DescribeDirectConnectGatewayAssociationProposalsRequest private constructor(builder: Builder) {
    /**
     * The ID of the associated gateway.
     */
    public val associatedGatewayId: kotlin.String? = builder.associatedGatewayId
    /**
     * 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 for the next page of results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The ID of the 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.DescribeDirectConnectGatewayAssociationProposalsRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeDirectConnectGatewayAssociationProposalsRequest(")
        append("associatedGatewayId=$associatedGatewayId,")
        append("directConnectGatewayId=$directConnectGatewayId,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("proposalId=$proposalId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = associatedGatewayId?.hashCode() ?: 0
        result = 31 * result + (directConnectGatewayId?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.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 DescribeDirectConnectGatewayAssociationProposalsRequest

        if (associatedGatewayId != other.associatedGatewayId) return false
        if (directConnectGatewayId != other.directConnectGatewayId) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (proposalId != other.proposalId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationProposalsRequest = 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.
         */
        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 for the next page of results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The ID of the proposal.
         */
        public var proposalId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationProposalsRequest) : this() {
            this.associatedGatewayId = x.associatedGatewayId
            this.directConnectGatewayId = x.directConnectGatewayId
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.proposalId = x.proposalId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.directconnect.model.DescribeDirectConnectGatewayAssociationProposalsRequest = DescribeDirectConnectGatewayAssociationProposalsRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy