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

aws.sdk.kotlin.services.sagemaker.model.ListStudioLifecycleConfigsRequest.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 ListStudioLifecycleConfigsRequest private constructor(builder: Builder) {
    /**
     * A parameter to search for the App Type to which the Lifecycle Configuration is attached.
     */
    val appTypeEquals: aws.sdk.kotlin.services.sagemaker.model.StudioLifecycleConfigAppType? = builder.appTypeEquals
    /**
     * A filter that returns only Lifecycle Configurations created on or after the specified time.
     */
    val creationTimeAfter: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimeAfter
    /**
     * A filter that returns only Lifecycle Configurations created on or before the specified time.
     */
    val creationTimeBefore: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimeBefore
    /**
     * The maximum number of Studio Lifecycle Configurations to return in the response. The default value is 10.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * A filter that returns only Lifecycle Configurations modified after the specified time.
     */
    val modifiedTimeAfter: aws.smithy.kotlin.runtime.time.Instant? = builder.modifiedTimeAfter
    /**
     * A filter that returns only Lifecycle Configurations modified before the specified time.
     */
    val modifiedTimeBefore: aws.smithy.kotlin.runtime.time.Instant? = builder.modifiedTimeBefore
    /**
     * A string in the Lifecycle Configuration name. This filter returns only Lifecycle Configurations whose name contains the specified string.
     */
    val nameContains: kotlin.String? = builder.nameContains
    /**
     * If the previous call to ListStudioLifecycleConfigs didn't return the full set of Lifecycle Configurations, the call returns a token for getting the next set of Lifecycle Configurations.
     */
    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.StudioLifecycleConfigSortKey? = builder.sortBy
    /**
     * The sort order. The default value is Descending.
     */
    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.ListStudioLifecycleConfigsRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ListStudioLifecycleConfigsRequest(")
        append("appTypeEquals=$appTypeEquals,")
        append("creationTimeAfter=$creationTimeAfter,")
        append("creationTimeBefore=$creationTimeBefore,")
        append("maxResults=$maxResults,")
        append("modifiedTimeAfter=$modifiedTimeAfter,")
        append("modifiedTimeBefore=$modifiedTimeBefore,")
        append("nameContains=$nameContains,")
        append("nextToken=$nextToken,")
        append("sortBy=$sortBy,")
        append("sortOrder=$sortOrder)")
    }

    override fun hashCode(): kotlin.Int {
        var result = appTypeEquals?.hashCode() ?: 0
        result = 31 * result + (creationTimeAfter?.hashCode() ?: 0)
        result = 31 * result + (creationTimeBefore?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (modifiedTimeAfter?.hashCode() ?: 0)
        result = 31 * result + (modifiedTimeBefore?.hashCode() ?: 0)
        result = 31 * result + (nameContains?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.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 ListStudioLifecycleConfigsRequest

        if (appTypeEquals != other.appTypeEquals) return false
        if (creationTimeAfter != other.creationTimeAfter) return false
        if (creationTimeBefore != other.creationTimeBefore) return false
        if (maxResults != other.maxResults) return false
        if (modifiedTimeAfter != other.modifiedTimeAfter) return false
        if (modifiedTimeBefore != other.modifiedTimeBefore) return false
        if (nameContains != other.nameContains) return false
        if (nextToken != other.nextToken) 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.ListStudioLifecycleConfigsRequest = Builder(this).apply(block).build()

    class Builder {
        /**
         * A parameter to search for the App Type to which the Lifecycle Configuration is attached.
         */
        var appTypeEquals: aws.sdk.kotlin.services.sagemaker.model.StudioLifecycleConfigAppType? = null
        /**
         * A filter that returns only Lifecycle Configurations created on or after the specified time.
         */
        var creationTimeAfter: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A filter that returns only Lifecycle Configurations created on or before the specified time.
         */
        var creationTimeBefore: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The maximum number of Studio Lifecycle Configurations to return in the response. The default value is 10.
         */
        var maxResults: kotlin.Int? = null
        /**
         * A filter that returns only Lifecycle Configurations modified after the specified time.
         */
        var modifiedTimeAfter: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A filter that returns only Lifecycle Configurations modified before the specified time.
         */
        var modifiedTimeBefore: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A string in the Lifecycle Configuration name. This filter returns only Lifecycle Configurations whose name contains the specified string.
         */
        var nameContains: kotlin.String? = null
        /**
         * If the previous call to ListStudioLifecycleConfigs didn't return the full set of Lifecycle Configurations, the call returns a token for getting the next set of Lifecycle Configurations.
         */
        var nextToken: kotlin.String? = null
        /**
         * The property used to sort results. The default value is CreationTime.
         */
        var sortBy: aws.sdk.kotlin.services.sagemaker.model.StudioLifecycleConfigSortKey? = null
        /**
         * The sort order. The default value is Descending.
         */
        var sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.ListStudioLifecycleConfigsRequest) : this() {
            this.appTypeEquals = x.appTypeEquals
            this.creationTimeAfter = x.creationTimeAfter
            this.creationTimeBefore = x.creationTimeBefore
            this.maxResults = x.maxResults
            this.modifiedTimeAfter = x.modifiedTimeAfter
            this.modifiedTimeBefore = x.modifiedTimeBefore
            this.nameContains = x.nameContains
            this.nextToken = x.nextToken
            this.sortBy = x.sortBy
            this.sortOrder = x.sortOrder
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy