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

aws.sdk.kotlin.services.sagemaker.model.ListUserProfilesRequest.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



class ListUserProfilesRequest private constructor(builder: Builder) {
    /**
     * A parameter by which to filter the results.
     */
    val domainIdEquals: kotlin.String? = builder.domainIdEquals
    /**
     * Returns a list up to a specified limit.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * If the previous response was truncated, you will receive this token.
     * Use it in your next request to receive the next set of results.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The parameter by which to sort the results. The default is CreationTime.
     */
    val sortBy: aws.sdk.kotlin.services.sagemaker.model.UserProfileSortKey? = builder.sortBy
    /**
     * The sort order for the results. The default is Ascending.
     */
    val sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = builder.sortOrder
    /**
     * A parameter by which to filter the results.
     */
    val userProfileNameContains: kotlin.String? = builder.userProfileNameContains

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

    override fun toString(): kotlin.String = buildString {
        append("ListUserProfilesRequest(")
        append("domainIdEquals=$domainIdEquals,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("sortBy=$sortBy,")
        append("sortOrder=$sortOrder,")
        append("userProfileNameContains=$userProfileNameContains)")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainIdEquals?.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 + (userProfileNameContains?.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 ListUserProfilesRequest

        if (domainIdEquals != other.domainIdEquals) 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 (userProfileNameContains != other.userProfileNameContains) return false

        return true
    }

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

    class Builder {
        /**
         * A parameter by which to filter the results.
         */
        var domainIdEquals: kotlin.String? = null
        /**
         * Returns a list up to a specified limit.
         */
        var maxResults: kotlin.Int? = null
        /**
         * If the previous response was truncated, you will receive this token.
         * Use it in your next request to receive the next set of results.
         */
        var nextToken: kotlin.String? = null
        /**
         * The parameter by which to sort the results. The default is CreationTime.
         */
        var sortBy: aws.sdk.kotlin.services.sagemaker.model.UserProfileSortKey? = null
        /**
         * The sort order for the results. The default is Ascending.
         */
        var sortOrder: aws.sdk.kotlin.services.sagemaker.model.SortOrder? = null
        /**
         * A parameter by which to filter the results.
         */
        var userProfileNameContains: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.ListUserProfilesRequest) : this() {
            this.domainIdEquals = x.domainIdEquals
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.sortBy = x.sortBy
            this.sortOrder = x.sortOrder
            this.userProfileNameContains = x.userProfileNameContains
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy