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

commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.SearchChannelsRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.chimesdkmessaging.model



public class SearchChannelsRequest private constructor(builder: Builder) {
    /**
     * The `AppInstanceUserArn` of the user making the API call.
     */
    public val chimeBearer: kotlin.String? = builder.chimeBearer
    /**
     * A list of the `Field` objects in the channel being searched.
     */
    public val fields: List? = builder.fields
    /**
     * The maximum number of channels that you want returned.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The token returned from previous API requests until the number of channels is reached.
     */
    public val nextToken: kotlin.String? = builder.nextToken

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

    override fun toString(): kotlin.String = buildString {
        append("SearchChannelsRequest(")
        append("chimeBearer=$chimeBearer,")
        append("fields=$fields,")
        append("maxResults=$maxResults,")
        append("nextToken=*** Sensitive Data Redacted ***")
        append(")")
    }

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

        if (chimeBearer != other.chimeBearer) return false
        if (fields != other.fields) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    public class Builder {
        /**
         * The `AppInstanceUserArn` of the user making the API call.
         */
        public var chimeBearer: kotlin.String? = null
        /**
         * A list of the `Field` objects in the channel being searched.
         */
        public var fields: List? = null
        /**
         * The maximum number of channels that you want returned.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * The token returned from previous API requests until the number of channels is reached.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.SearchChannelsRequest) : this() {
            this.chimeBearer = x.chimeBearer
            this.fields = x.fields
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy