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

aws.sdk.kotlin.services.sagemaker.model.ListPipelineExecutionsRequest.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 ListPipelineExecutionsRequest private constructor(builder: Builder) {
    /**
     * A filter that returns the pipeline executions that were created after a specified
     * time.
     */
    val createdAfter: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAfter
    /**
     * A filter that returns the pipeline executions that were created before a specified
     * time.
     */
    val createdBefore: aws.smithy.kotlin.runtime.time.Instant? = builder.createdBefore
    /**
     * The maximum number of pipeline executions to return in the response.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * If the result of the previous ListPipelineExecutions request was truncated,
     * the response includes a NextToken. To retrieve the next set of pipeline executions, use the token in the next request.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The name of the pipeline.
     */
    val pipelineName: kotlin.String? = builder.pipelineName
    /**
     * The field by which to sort results. The default is CreatedTime.
     */
    val sortBy: aws.sdk.kotlin.services.sagemaker.model.SortPipelineExecutionsBy? = builder.sortBy
    /**
     * The sort order for results.
     */
    val sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = builder.sortOrder

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

    override fun toString(): kotlin.String = buildString {
        append("ListPipelineExecutionsRequest(")
        append("createdAfter=$createdAfter,")
        append("createdBefore=$createdBefore,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("pipelineName=$pipelineName,")
        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 + (pipelineName?.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 (other == null || this::class != other::class) return false

        other as ListPipelineExecutionsRequest

        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 (pipelineName != other.pipelineName) return false
        if (sortBy != other.sortBy) return false
        if (sortOrder != other.sortOrder) return false

        return true
    }

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

    class Builder {
        /**
         * A filter that returns the pipeline executions that were created after a specified
         * time.
         */
        var createdAfter: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A filter that returns the pipeline executions that were created before a specified
         * time.
         */
        var createdBefore: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The maximum number of pipeline executions to return in the response.
         */
        var maxResults: kotlin.Int? = null
        /**
         * If the result of the previous ListPipelineExecutions request was truncated,
         * the response includes a NextToken. To retrieve the next set of pipeline executions, use the token in the next request.
         */
        var nextToken: kotlin.String? = null
        /**
         * The name of the pipeline.
         */
        var pipelineName: kotlin.String? = null
        /**
         * The field by which to sort results. The default is CreatedTime.
         */
        var sortBy: aws.sdk.kotlin.services.sagemaker.model.SortPipelineExecutionsBy? = null
        /**
         * The sort order for results.
         */
        var sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.ListPipelineExecutionsRequest) : this() {
            this.createdAfter = x.createdAfter
            this.createdBefore = x.createdBefore
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.pipelineName = x.pipelineName
            this.sortBy = x.sortBy
            this.sortOrder = x.sortOrder
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy