
commonMain.aws.sdk.kotlin.services.iot.model.UpdateDimensionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class UpdateDimensionRequest private constructor(builder: Builder) {
/**
* A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
*/
public val name: kotlin.String? = builder.name
/**
* Specifies the value or list of values for the dimension. For `TOPIC_FILTER` dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
*/
public val stringValues: List? = builder.stringValues
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.UpdateDimensionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDimensionRequest(")
append("name=$name,")
append("stringValues=$stringValues")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (stringValues?.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 UpdateDimensionRequest
if (name != other.name) return false
if (stringValues != other.stringValues) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.UpdateDimensionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
*/
public var name: kotlin.String? = null
/**
* Specifies the value or list of values for the dimension. For `TOPIC_FILTER` dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
*/
public var stringValues: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateDimensionRequest) : this() {
this.name = x.name
this.stringValues = x.stringValues
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.UpdateDimensionRequest = UpdateDimensionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy