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

aws.sdk.kotlin.services.sagemaker.model.ListTrialsRequest.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 ListTrialsRequest private constructor(builder: Builder) {
    /**
     * A filter that returns only trials created after the specified time.
     */
    val createdAfter: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAfter
    /**
     * A filter that returns only trials created before the specified time.
     */
    val createdBefore: aws.smithy.kotlin.runtime.time.Instant? = builder.createdBefore
    /**
     * A filter that returns only trials that are part of the specified experiment.
     */
    val experimentName: kotlin.String? = builder.experimentName
    /**
     * The maximum number of trials to return in the response. The default value is 10.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * If the previous call to ListTrials didn't return the full set of trials, the
     * call returns a token for getting the next set of trials.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The property used to sort results. The default value is CreationTime.
     */
    val sortBy: aws.sdk.kotlin.services.sagemaker.model.SortTrialsBy? = builder.sortBy
    /**
     * The sort order. The default value is Descending.
     */
    val sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = builder.sortOrder
    /**
     * A filter that returns only trials that are associated with the specified trial
     * component.
     */
    val trialComponentName: kotlin.String? = builder.trialComponentName

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

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

    override fun hashCode(): kotlin.Int {
        var result = createdAfter?.hashCode() ?: 0
        result = 31 * result + (createdBefore?.hashCode() ?: 0)
        result = 31 * result + (experimentName?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (sortBy?.hashCode() ?: 0)
        result = 31 * result + (sortOrder?.hashCode() ?: 0)
        result = 31 * result + (trialComponentName?.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 ListTrialsRequest

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

        return true
    }

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

    class Builder {
        /**
         * A filter that returns only trials created after the specified time.
         */
        var createdAfter: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A filter that returns only trials created before the specified time.
         */
        var createdBefore: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A filter that returns only trials that are part of the specified experiment.
         */
        var experimentName: kotlin.String? = null
        /**
         * The maximum number of trials to return in the response. The default value is 10.
         */
        var maxResults: kotlin.Int? = null
        /**
         * If the previous call to ListTrials didn't return the full set of trials, the
         * call returns a token for getting the next set of trials.
         */
        var nextToken: kotlin.String? = null
        /**
         * The property used to sort results. The default value is CreationTime.
         */
        var sortBy: aws.sdk.kotlin.services.sagemaker.model.SortTrialsBy? = null
        /**
         * The sort order. The default value is Descending.
         */
        var sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = null
        /**
         * A filter that returns only trials that are associated with the specified trial
         * component.
         */
        var trialComponentName: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy