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

commonMain.aws.sdk.kotlin.services.iot.model.GetPercentilesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iot.model



public class GetPercentilesRequest private constructor(builder: Builder) {
    /**
     * The field to aggregate.
     */
    public val aggregationField: kotlin.String? = builder.aggregationField
    /**
     * The name of the index to search.
     */
    public val indexName: kotlin.String? = builder.indexName
    /**
     * The percentile groups returned.
     */
    public val percents: List? = builder.percents
    /**
     * The search query string.
     */
    public val queryString: kotlin.String? = builder.queryString
    /**
     * The query version.
     */
    public val queryVersion: kotlin.String? = builder.queryVersion

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

    override fun toString(): kotlin.String = buildString {
        append("GetPercentilesRequest(")
        append("aggregationField=$aggregationField,")
        append("indexName=$indexName,")
        append("percents=$percents,")
        append("queryString=$queryString,")
        append("queryVersion=$queryVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = aggregationField?.hashCode() ?: 0
        result = 31 * result + (indexName?.hashCode() ?: 0)
        result = 31 * result + (percents?.hashCode() ?: 0)
        result = 31 * result + (queryString?.hashCode() ?: 0)
        result = 31 * result + (queryVersion?.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 GetPercentilesRequest

        if (aggregationField != other.aggregationField) return false
        if (indexName != other.indexName) return false
        if (percents != other.percents) return false
        if (queryString != other.queryString) return false
        if (queryVersion != other.queryVersion) return false

        return true
    }

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

    public class Builder {
        /**
         * The field to aggregate.
         */
        public var aggregationField: kotlin.String? = null
        /**
         * The name of the index to search.
         */
        public var indexName: kotlin.String? = null
        /**
         * The percentile groups returned.
         */
        public var percents: List? = null
        /**
         * The search query string.
         */
        public var queryString: kotlin.String? = null
        /**
         * The query version.
         */
        public var queryVersion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.GetPercentilesRequest) : this() {
            this.aggregationField = x.aggregationField
            this.indexName = x.indexName
            this.percents = x.percents
            this.queryString = x.queryString
            this.queryVersion = x.queryVersion
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy