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

commonMain.aws.sdk.kotlin.services.deadline.model.SearchStepsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.deadline.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SearchStepsRequest private constructor(builder: Builder) {
    /**
     * The farm ID to use for the step search.
     */
    public val farmId: kotlin.String? = builder.farmId
    /**
     * The filter expression, `AND` or `OR`, to use when searching among a group of search strings in a resource. You can use two groupings per search each within parenthesis `()`.
     */
    public val filterExpressions: aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions? = builder.filterExpressions
    /**
     * Defines how far into the scrollable list to start the return of results.
     */
    public val itemOffset: kotlin.Int? = builder.itemOffset
    /**
     * The job ID to use in the step search.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * Specifies the number of items per page for the resource.
     */
    public val pageSize: kotlin.Int? = builder.pageSize
    /**
     * The queue IDs in the step search.
     */
    public val queueIds: List? = builder.queueIds
    /**
     * The search terms for a resource.
     */
    public val sortExpressions: List? = builder.sortExpressions

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

    override fun toString(): kotlin.String = buildString {
        append("SearchStepsRequest(")
        append("farmId=$farmId,")
        append("filterExpressions=$filterExpressions,")
        append("itemOffset=$itemOffset,")
        append("jobId=$jobId,")
        append("pageSize=$pageSize,")
        append("queueIds=$queueIds,")
        append("sortExpressions=$sortExpressions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = farmId?.hashCode() ?: 0
        result = 31 * result + (filterExpressions?.hashCode() ?: 0)
        result = 31 * result + (itemOffset ?: 0)
        result = 31 * result + (jobId?.hashCode() ?: 0)
        result = 31 * result + (pageSize ?: 0)
        result = 31 * result + (queueIds?.hashCode() ?: 0)
        result = 31 * result + (sortExpressions?.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 SearchStepsRequest

        if (farmId != other.farmId) return false
        if (filterExpressions != other.filterExpressions) return false
        if (itemOffset != other.itemOffset) return false
        if (jobId != other.jobId) return false
        if (pageSize != other.pageSize) return false
        if (queueIds != other.queueIds) return false
        if (sortExpressions != other.sortExpressions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The farm ID to use for the step search.
         */
        public var farmId: kotlin.String? = null
        /**
         * The filter expression, `AND` or `OR`, to use when searching among a group of search strings in a resource. You can use two groupings per search each within parenthesis `()`.
         */
        public var filterExpressions: aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions? = null
        /**
         * Defines how far into the scrollable list to start the return of results.
         */
        public var itemOffset: kotlin.Int? = null
        /**
         * The job ID to use in the step search.
         */
        public var jobId: kotlin.String? = null
        /**
         * Specifies the number of items per page for the resource.
         */
        public var pageSize: kotlin.Int? = null
        /**
         * The queue IDs in the step search.
         */
        public var queueIds: List? = null
        /**
         * The search terms for a resource.
         */
        public var sortExpressions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.deadline.model.SearchStepsRequest) : this() {
            this.farmId = x.farmId
            this.filterExpressions = x.filterExpressions
            this.itemOffset = x.itemOffset
            this.jobId = x.jobId
            this.pageSize = x.pageSize
            this.queueIds = x.queueIds
            this.sortExpressions = x.sortExpressions
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions] inside the given [block]
         */
        public fun filterExpressions(block: aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions.Builder.() -> kotlin.Unit) {
            this.filterExpressions = aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy