
commonMain.aws.sdk.kotlin.services.iot.model.GeoLocationTarget.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* A geolocation target that you select to index. Each geolocation target contains a `name` and `order` key-value pair that specifies the geolocation target fields.
*/
public class GeoLocationTarget private constructor(builder: Builder) {
/**
* The `name` of the geolocation target field. If the target field is part of a named shadow, you must select the named shadow using the `namedShadow` filter.
*/
public val name: kotlin.String? = builder.name
/**
* The `order` of the geolocation target field. This field is optional. The default value is `LatLon`.
*/
public val order: aws.sdk.kotlin.services.iot.model.TargetFieldOrder? = builder.order
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.GeoLocationTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GeoLocationTarget(")
append("name=$name,")
append("order=$order")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (order?.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 GeoLocationTarget
if (name != other.name) return false
if (order != other.order) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.GeoLocationTarget = Builder(this).apply(block).build()
public class Builder {
/**
* The `name` of the geolocation target field. If the target field is part of a named shadow, you must select the named shadow using the `namedShadow` filter.
*/
public var name: kotlin.String? = null
/**
* The `order` of the geolocation target field. This field is optional. The default value is `LatLon`.
*/
public var order: aws.sdk.kotlin.services.iot.model.TargetFieldOrder? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.GeoLocationTarget) : this() {
this.name = x.name
this.order = x.order
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.GeoLocationTarget = GeoLocationTarget(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy