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

aws.sdk.kotlin.services.codebuild.model.ListBuildsRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.100
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codebuild.model



class ListBuildsRequest private constructor(builder: Builder) {
    /**
     * During a previous call, if there are more than 100 items in the list, only the first
     * 100 items are returned, along with a unique string called a
     * nextToken. To get the next batch of items in the list, call
     * this operation again, adding the next token to the call. To get all of the items in the
     * list, keep calling this operation with each subsequent next token that is returned,
     * until no more next tokens are returned.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The order to list build IDs. Valid values include:
     * ASCENDING: List the build IDs in ascending order by build
     * ID.
     * DESCENDING: List the build IDs in descending order by build
     * ID.
     */
    val sortOrder: aws.sdk.kotlin.services.codebuild.model.SortOrderType? = builder.sortOrder

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

    override fun toString(): kotlin.String = buildString {
        append("ListBuildsRequest(")
        append("nextToken=$nextToken,")
        append("sortOrder=$sortOrder)")
    }

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

        if (nextToken != other.nextToken) return false
        if (sortOrder != other.sortOrder) return false

        return true
    }

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

    class Builder {
        /**
         * During a previous call, if there are more than 100 items in the list, only the first
         * 100 items are returned, along with a unique string called a
         * nextToken. To get the next batch of items in the list, call
         * this operation again, adding the next token to the call. To get all of the items in the
         * list, keep calling this operation with each subsequent next token that is returned,
         * until no more next tokens are returned.
         */
        var nextToken: kotlin.String? = null
        /**
         * The order to list build IDs. Valid values include:
         * ASCENDING: List the build IDs in ascending order by build
         * ID.
         * DESCENDING: List the build IDs in descending order by build
         * ID.
         */
        var sortOrder: aws.sdk.kotlin.services.codebuild.model.SortOrderType? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.ListBuildsRequest) : this() {
            this.nextToken = x.nextToken
            this.sortOrder = x.sortOrder
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy