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

aws.sdk.kotlin.services.sagemaker.model.ListPipelinesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sagemaker.model

import aws.smithy.kotlin.runtime.time.Instant

class ListPipelinesRequest private constructor(builder: BuilderImpl) {
    /**
     * A filter that returns the pipelines that were created after a specified
     * time.
     */
    val createdAfter: Instant? = builder.createdAfter
    /**
     * A filter that returns the pipelines that were created before a specified
     * time.
     */
    val createdBefore: Instant? = builder.createdBefore
    /**
     * The maximum number of pipelines to return in the response.
     */
    val maxResults: Int? = builder.maxResults
    /**
     * If the result of the previous ListPipelines request was truncated,
     * the response includes a NextToken. To retrieve the next set of pipelines, use the token in the next request.
     */
    val nextToken: String? = builder.nextToken
    /**
     * The prefix of the pipeline name.
     */
    val pipelineNamePrefix: String? = builder.pipelineNamePrefix
    /**
     * The field by which to sort results. The default is CreatedTime.
     */
    val sortBy: SortPipelinesBy? = builder.sortBy
    /**
     * The sort order for results.
     */
    val sortOrder: SortOrder? = builder.sortOrder

    companion object {
        @JvmStatic
        fun fluentBuilder(): FluentBuilder = BuilderImpl()

        internal fun builder(): DslBuilder = BuilderImpl()

        operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ListPipelinesRequest = BuilderImpl().apply(block).build()

    }

    override fun toString(): kotlin.String = buildString {
        append("ListPipelinesRequest(")
        append("createdAfter=$createdAfter,")
        append("createdBefore=$createdBefore,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("pipelineNamePrefix=$pipelineNamePrefix,")
        append("sortBy=$sortBy,")
        append("sortOrder=$sortOrder)")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAfter?.hashCode() ?: 0
        result = 31 * result + (createdBefore?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (pipelineNamePrefix?.hashCode() ?: 0)
        result = 31 * result + (sortBy?.hashCode() ?: 0)
        result = 31 * result + (sortOrder?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as ListPipelinesRequest

        if (createdAfter != other.createdAfter) return false
        if (createdBefore != other.createdBefore) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (pipelineNamePrefix != other.pipelineNamePrefix) return false
        if (sortBy != other.sortBy) return false
        if (sortOrder != other.sortOrder) return false

        return true
    }

    fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ListPipelinesRequest = BuilderImpl(this).apply(block).build()

    interface FluentBuilder {
        fun build(): ListPipelinesRequest
        /**
         * A filter that returns the pipelines that were created after a specified
         * time.
         */
        fun createdAfter(createdAfter: Instant): FluentBuilder
        /**
         * A filter that returns the pipelines that were created before a specified
         * time.
         */
        fun createdBefore(createdBefore: Instant): FluentBuilder
        /**
         * The maximum number of pipelines to return in the response.
         */
        fun maxResults(maxResults: Int): FluentBuilder
        /**
         * If the result of the previous ListPipelines request was truncated,
         * the response includes a NextToken. To retrieve the next set of pipelines, use the token in the next request.
         */
        fun nextToken(nextToken: String): FluentBuilder
        /**
         * The prefix of the pipeline name.
         */
        fun pipelineNamePrefix(pipelineNamePrefix: String): FluentBuilder
        /**
         * The field by which to sort results. The default is CreatedTime.
         */
        fun sortBy(sortBy: SortPipelinesBy): FluentBuilder
        /**
         * The sort order for results.
         */
        fun sortOrder(sortOrder: SortOrder): FluentBuilder
    }

    interface DslBuilder {
        /**
         * A filter that returns the pipelines that were created after a specified
         * time.
         */
        var createdAfter: Instant?
        /**
         * A filter that returns the pipelines that were created before a specified
         * time.
         */
        var createdBefore: Instant?
        /**
         * The maximum number of pipelines to return in the response.
         */
        var maxResults: Int?
        /**
         * If the result of the previous ListPipelines request was truncated,
         * the response includes a NextToken. To retrieve the next set of pipelines, use the token in the next request.
         */
        var nextToken: String?
        /**
         * The prefix of the pipeline name.
         */
        var pipelineNamePrefix: String?
        /**
         * The field by which to sort results. The default is CreatedTime.
         */
        var sortBy: SortPipelinesBy?
        /**
         * The sort order for results.
         */
        var sortOrder: SortOrder?

        fun build(): ListPipelinesRequest
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var createdAfter: Instant? = null
        override var createdBefore: Instant? = null
        override var maxResults: Int? = null
        override var nextToken: String? = null
        override var pipelineNamePrefix: String? = null
        override var sortBy: SortPipelinesBy? = null
        override var sortOrder: SortOrder? = null

        constructor(x: ListPipelinesRequest) : this() {
            this.createdAfter = x.createdAfter
            this.createdBefore = x.createdBefore
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.pipelineNamePrefix = x.pipelineNamePrefix
            this.sortBy = x.sortBy
            this.sortOrder = x.sortOrder
        }

        override fun build(): ListPipelinesRequest = ListPipelinesRequest(this)
        override fun createdAfter(createdAfter: Instant): FluentBuilder = apply { this.createdAfter = createdAfter }
        override fun createdBefore(createdBefore: Instant): FluentBuilder = apply { this.createdBefore = createdBefore }
        override fun maxResults(maxResults: Int): FluentBuilder = apply { this.maxResults = maxResults }
        override fun nextToken(nextToken: String): FluentBuilder = apply { this.nextToken = nextToken }
        override fun pipelineNamePrefix(pipelineNamePrefix: String): FluentBuilder = apply { this.pipelineNamePrefix = pipelineNamePrefix }
        override fun sortBy(sortBy: SortPipelinesBy): FluentBuilder = apply { this.sortBy = sortBy }
        override fun sortOrder(sortOrder: SortOrder): FluentBuilder = apply { this.sortOrder = sortOrder }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy