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

aws.sdk.kotlin.services.sagemaker.model.ListNotebookInstanceLifecycleConfigsRequest.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 ListNotebookInstanceLifecycleConfigsRequest private constructor(builder: BuilderImpl) {
    /**
     * A filter that returns only lifecycle configurations that were created after the
     * specified time (timestamp).
     */
    val creationTimeAfter: Instant? = builder.creationTimeAfter
    /**
     * A filter that returns only lifecycle configurations that were created before the
     * specified time (timestamp).
     */
    val creationTimeBefore: Instant? = builder.creationTimeBefore
    /**
     * A filter that returns only lifecycle configurations that were modified after the
     * specified time (timestamp).
     */
    val lastModifiedTimeAfter: Instant? = builder.lastModifiedTimeAfter
    /**
     * A filter that returns only lifecycle configurations that were modified before the
     * specified time (timestamp).
     */
    val lastModifiedTimeBefore: Instant? = builder.lastModifiedTimeBefore
    /**
     * The maximum number of lifecycle configurations to return in the response.
     */
    val maxResults: Int? = builder.maxResults
    /**
     * A string in the lifecycle configuration name. This filter returns only lifecycle
     * configurations whose name contains the specified string.
     */
    val nameContains: String? = builder.nameContains
    /**
     * If the result of a ListNotebookInstanceLifecycleConfigs request was
     * truncated, the response includes a NextToken. To get the next set of
     * lifecycle configurations, use the token in the next request.
     */
    val nextToken: String? = builder.nextToken
    /**
     * Sorts the list of results. The default is CreationTime.
     */
    val sortBy: NotebookInstanceLifecycleConfigSortKey? = builder.sortBy
    /**
     * The sort order for results.
     */
    val sortOrder: NotebookInstanceLifecycleConfigSortOrder? = builder.sortOrder

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

        internal fun builder(): DslBuilder = BuilderImpl()

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

    }

    override fun toString(): kotlin.String = buildString {
        append("ListNotebookInstanceLifecycleConfigsRequest(")
        append("creationTimeAfter=$creationTimeAfter,")
        append("creationTimeBefore=$creationTimeBefore,")
        append("lastModifiedTimeAfter=$lastModifiedTimeAfter,")
        append("lastModifiedTimeBefore=$lastModifiedTimeBefore,")
        append("maxResults=$maxResults,")
        append("nameContains=$nameContains,")
        append("nextToken=$nextToken,")
        append("sortBy=$sortBy,")
        append("sortOrder=$sortOrder)")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTimeAfter?.hashCode() ?: 0
        result = 31 * result + (creationTimeBefore?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTimeAfter?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTimeBefore?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 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 (javaClass != other?.javaClass) return false

        other as ListNotebookInstanceLifecycleConfigsRequest

        if (creationTimeAfter != other.creationTimeAfter) return false
        if (creationTimeBefore != other.creationTimeBefore) return false
        if (lastModifiedTimeAfter != other.lastModifiedTimeAfter) return false
        if (lastModifiedTimeBefore != other.lastModifiedTimeBefore) return false
        if (maxResults != other.maxResults) 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
    }

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

    interface FluentBuilder {
        fun build(): ListNotebookInstanceLifecycleConfigsRequest
        /**
         * A filter that returns only lifecycle configurations that were created after the
         * specified time (timestamp).
         */
        fun creationTimeAfter(creationTimeAfter: Instant): FluentBuilder
        /**
         * A filter that returns only lifecycle configurations that were created before the
         * specified time (timestamp).
         */
        fun creationTimeBefore(creationTimeBefore: Instant): FluentBuilder
        /**
         * A filter that returns only lifecycle configurations that were modified after the
         * specified time (timestamp).
         */
        fun lastModifiedTimeAfter(lastModifiedTimeAfter: Instant): FluentBuilder
        /**
         * A filter that returns only lifecycle configurations that were modified before the
         * specified time (timestamp).
         */
        fun lastModifiedTimeBefore(lastModifiedTimeBefore: Instant): FluentBuilder
        /**
         * The maximum number of lifecycle configurations to return in the response.
         */
        fun maxResults(maxResults: Int): FluentBuilder
        /**
         * A string in the lifecycle configuration name. This filter returns only lifecycle
         * configurations whose name contains the specified string.
         */
        fun nameContains(nameContains: String): FluentBuilder
        /**
         * If the result of a ListNotebookInstanceLifecycleConfigs request was
         * truncated, the response includes a NextToken. To get the next set of
         * lifecycle configurations, use the token in the next request.
         */
        fun nextToken(nextToken: String): FluentBuilder
        /**
         * Sorts the list of results. The default is CreationTime.
         */
        fun sortBy(sortBy: NotebookInstanceLifecycleConfigSortKey): FluentBuilder
        /**
         * The sort order for results.
         */
        fun sortOrder(sortOrder: NotebookInstanceLifecycleConfigSortOrder): FluentBuilder
    }

    interface DslBuilder {
        /**
         * A filter that returns only lifecycle configurations that were created after the
         * specified time (timestamp).
         */
        var creationTimeAfter: Instant?
        /**
         * A filter that returns only lifecycle configurations that were created before the
         * specified time (timestamp).
         */
        var creationTimeBefore: Instant?
        /**
         * A filter that returns only lifecycle configurations that were modified after the
         * specified time (timestamp).
         */
        var lastModifiedTimeAfter: Instant?
        /**
         * A filter that returns only lifecycle configurations that were modified before the
         * specified time (timestamp).
         */
        var lastModifiedTimeBefore: Instant?
        /**
         * The maximum number of lifecycle configurations to return in the response.
         */
        var maxResults: Int?
        /**
         * A string in the lifecycle configuration name. This filter returns only lifecycle
         * configurations whose name contains the specified string.
         */
        var nameContains: String?
        /**
         * If the result of a ListNotebookInstanceLifecycleConfigs request was
         * truncated, the response includes a NextToken. To get the next set of
         * lifecycle configurations, use the token in the next request.
         */
        var nextToken: String?
        /**
         * Sorts the list of results. The default is CreationTime.
         */
        var sortBy: NotebookInstanceLifecycleConfigSortKey?
        /**
         * The sort order for results.
         */
        var sortOrder: NotebookInstanceLifecycleConfigSortOrder?

        fun build(): ListNotebookInstanceLifecycleConfigsRequest
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var creationTimeAfter: Instant? = null
        override var creationTimeBefore: Instant? = null
        override var lastModifiedTimeAfter: Instant? = null
        override var lastModifiedTimeBefore: Instant? = null
        override var maxResults: Int? = null
        override var nameContains: String? = null
        override var nextToken: String? = null
        override var sortBy: NotebookInstanceLifecycleConfigSortKey? = null
        override var sortOrder: NotebookInstanceLifecycleConfigSortOrder? = null

        constructor(x: ListNotebookInstanceLifecycleConfigsRequest) : this() {
            this.creationTimeAfter = x.creationTimeAfter
            this.creationTimeBefore = x.creationTimeBefore
            this.lastModifiedTimeAfter = x.lastModifiedTimeAfter
            this.lastModifiedTimeBefore = x.lastModifiedTimeBefore
            this.maxResults = x.maxResults
            this.nameContains = x.nameContains
            this.nextToken = x.nextToken
            this.sortBy = x.sortBy
            this.sortOrder = x.sortOrder
        }

        override fun build(): ListNotebookInstanceLifecycleConfigsRequest = ListNotebookInstanceLifecycleConfigsRequest(this)
        override fun creationTimeAfter(creationTimeAfter: Instant): FluentBuilder = apply { this.creationTimeAfter = creationTimeAfter }
        override fun creationTimeBefore(creationTimeBefore: Instant): FluentBuilder = apply { this.creationTimeBefore = creationTimeBefore }
        override fun lastModifiedTimeAfter(lastModifiedTimeAfter: Instant): FluentBuilder = apply { this.lastModifiedTimeAfter = lastModifiedTimeAfter }
        override fun lastModifiedTimeBefore(lastModifiedTimeBefore: Instant): FluentBuilder = apply { this.lastModifiedTimeBefore = lastModifiedTimeBefore }
        override fun maxResults(maxResults: Int): FluentBuilder = apply { this.maxResults = maxResults }
        override fun nameContains(nameContains: String): FluentBuilder = apply { this.nameContains = nameContains }
        override fun nextToken(nextToken: String): FluentBuilder = apply { this.nextToken = nextToken }
        override fun sortBy(sortBy: NotebookInstanceLifecycleConfigSortKey): FluentBuilder = apply { this.sortBy = sortBy }
        override fun sortOrder(sortOrder: NotebookInstanceLifecycleConfigSortOrder): FluentBuilder = apply { this.sortOrder = sortOrder }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy