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

commonMain.aws.sdk.kotlin.services.datazone.model.SearchUserProfilesRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SearchUserProfilesRequest private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon DataZone domain in which you want to search user profiles.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The maximum number of results to return in a single call to `SearchUserProfiles`. When the number of results to be listed is greater than the value of `MaxResults`, the response contains a `NextToken` value that you can use in a subsequent call to `SearchUserProfiles` to list the next set of results.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * When the number of results is greater than the default value for the `MaxResults` parameter, or if you explicitly specify a value for `MaxResults` that is less than the number of results, the response includes a pagination token named `NextToken`. You can specify this `NextToken` value in a subsequent call to `SearchUserProfiles` to list the next set of results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * Specifies the text for which to search.
     */
    public val searchText: kotlin.String? = builder.searchText
    /**
     * Specifies the user type for the `SearchUserProfiles` action.
     */
    public val userType: aws.sdk.kotlin.services.datazone.model.UserSearchType? = builder.userType

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

    override fun toString(): kotlin.String = buildString {
        append("SearchUserProfilesRequest(")
        append("domainIdentifier=$domainIdentifier,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("searchText=*** Sensitive Data Redacted ***,")
        append("userType=$userType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainIdentifier?.hashCode() ?: 0
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (searchText?.hashCode() ?: 0)
        result = 31 * result + (userType?.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 SearchUserProfilesRequest

        if (domainIdentifier != other.domainIdentifier) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (searchText != other.searchText) return false
        if (userType != other.userType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The identifier of the Amazon DataZone domain in which you want to search user profiles.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The maximum number of results to return in a single call to `SearchUserProfiles`. When the number of results to be listed is greater than the value of `MaxResults`, the response contains a `NextToken` value that you can use in a subsequent call to `SearchUserProfiles` to list the next set of results.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * When the number of results is greater than the default value for the `MaxResults` parameter, or if you explicitly specify a value for `MaxResults` that is less than the number of results, the response includes a pagination token named `NextToken`. You can specify this `NextToken` value in a subsequent call to `SearchUserProfiles` to list the next set of results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * Specifies the text for which to search.
         */
        public var searchText: kotlin.String? = null
        /**
         * Specifies the user type for the `SearchUserProfiles` action.
         */
        public var userType: aws.sdk.kotlin.services.datazone.model.UserSearchType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.SearchUserProfilesRequest) : this() {
            this.domainIdentifier = x.domainIdentifier
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.searchText = x.searchText
            this.userType = x.userType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.SearchUserProfilesRequest = SearchUserProfilesRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy