commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.ReverseGeocodingConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakergeospatial-jvm Show documentation
Show all versions of sagemakergeospatial-jvm Show documentation
The AWS SDK for Kotlin client for SageMaker Geospatial
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakergeospatial.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The input structure for Reverse Geocoding operation type.
*/
public class ReverseGeocodingConfig private constructor(builder: Builder) {
/**
* The field name for the data that describes x-axis coordinate, eg. longitude of a point.
*/
public val xAttributeName: kotlin.String = requireNotNull(builder.xAttributeName) { "A non-null value must be provided for xAttributeName" }
/**
* The field name for the data that describes y-axis coordinate, eg. latitude of a point.
*/
public val yAttributeName: kotlin.String = requireNotNull(builder.yAttributeName) { "A non-null value must be provided for yAttributeName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.ReverseGeocodingConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReverseGeocodingConfig(")
append("xAttributeName=$xAttributeName,")
append("yAttributeName=$yAttributeName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = xAttributeName.hashCode()
result = 31 * result + (yAttributeName.hashCode())
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 ReverseGeocodingConfig
if (xAttributeName != other.xAttributeName) return false
if (yAttributeName != other.yAttributeName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.ReverseGeocodingConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The field name for the data that describes x-axis coordinate, eg. longitude of a point.
*/
public var xAttributeName: kotlin.String? = null
/**
* The field name for the data that describes y-axis coordinate, eg. latitude of a point.
*/
public var yAttributeName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.ReverseGeocodingConfig) : this() {
this.xAttributeName = x.xAttributeName
this.yAttributeName = x.yAttributeName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.ReverseGeocodingConfig = ReverseGeocodingConfig(this)
internal fun correctErrors(): Builder {
if (xAttributeName == null) xAttributeName = ""
if (yAttributeName == null) yAttributeName = ""
return this
}
}
}