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

aws.sdk.kotlin.services.outposts.model.ListOrdersRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.outposts.model



class ListOrdersRequest private constructor(builder: Builder) {
    /**
     * The maximum page size.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The pagination token.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The ID or the Amazon Resource Name (ARN) of the Outpost.
     */
    val outpostIdentifierFilter: kotlin.String? = builder.outpostIdentifierFilter

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.ListOrdersRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ListOrdersRequest(")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("outpostIdentifierFilter=$outpostIdentifierFilter)")
    }

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

        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (outpostIdentifierFilter != other.outpostIdentifierFilter) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.ListOrdersRequest = Builder(this).apply(block).build()

    class Builder {
        /**
         * The maximum page size.
         */
        var maxResults: kotlin.Int? = null
        /**
         * The pagination token.
         */
        var nextToken: kotlin.String? = null
        /**
         * The ID or the Amazon Resource Name (ARN) of the Outpost.
         */
        var outpostIdentifierFilter: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.outposts.model.ListOrdersRequest) : this() {
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.outpostIdentifierFilter = x.outpostIdentifierFilter
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.outposts.model.ListOrdersRequest = ListOrdersRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy