
commonMain.aws.sdk.kotlin.services.iot.model.GetStatisticsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class GetStatisticsRequest private constructor(builder: Builder) {
/**
* The aggregation field name.
*/
public val aggregationField: kotlin.String? = builder.aggregationField
/**
* The name of the index to search. The default value is `AWS_Things`.
*/
public val indexName: kotlin.String? = builder.indexName
/**
* The query used to search. You can specify "*" for the query string to get the count of all indexed things in your Amazon Web Services account.
*/
public val queryString: kotlin.String? = builder.queryString
/**
* The version of the query used to search.
*/
public val queryVersion: kotlin.String? = builder.queryVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.GetStatisticsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetStatisticsRequest(")
append("aggregationField=$aggregationField,")
append("indexName=$indexName,")
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 + (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 GetStatisticsRequest
if (aggregationField != other.aggregationField) return false
if (indexName != other.indexName) 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.GetStatisticsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The aggregation field name.
*/
public var aggregationField: kotlin.String? = null
/**
* The name of the index to search. The default value is `AWS_Things`.
*/
public var indexName: kotlin.String? = null
/**
* The query used to search. You can specify "*" for the query string to get the count of all indexed things in your Amazon Web Services account.
*/
public var queryString: kotlin.String? = null
/**
* The version of the query used to search.
*/
public var queryVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.GetStatisticsRequest) : this() {
this.aggregationField = x.aggregationField
this.indexName = x.indexName
this.queryString = x.queryString
this.queryVersion = x.queryVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.GetStatisticsRequest = GetStatisticsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy