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

commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.MapMatchingConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show 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 Map Matching operation type.
 */
public class MapMatchingConfig private constructor(builder: Builder) {
    /**
     * The field name for the data that describes the identifier representing a collection of GPS points belonging to an individual trace.
     */
    public val idAttributeName: kotlin.String = requireNotNull(builder.idAttributeName) { "A non-null value must be provided for idAttributeName" }
    /**
     * The name of the timestamp attribute.
     */
    public val timestampAttributeName: kotlin.String = requireNotNull(builder.timestampAttributeName) { "A non-null value must be provided for timestampAttributeName" }
    /**
     * The name of the X-attribute
     */
    public val xAttributeName: kotlin.String = requireNotNull(builder.xAttributeName) { "A non-null value must be provided for xAttributeName" }
    /**
     * The name of the Y-attribute
     */
    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.MapMatchingConfig = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("MapMatchingConfig(")
        append("idAttributeName=$idAttributeName,")
        append("timestampAttributeName=$timestampAttributeName,")
        append("xAttributeName=$xAttributeName,")
        append("yAttributeName=$yAttributeName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = idAttributeName.hashCode()
        result = 31 * result + (timestampAttributeName.hashCode())
        result = 31 * 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 MapMatchingConfig

        if (idAttributeName != other.idAttributeName) return false
        if (timestampAttributeName != other.timestampAttributeName) return false
        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.MapMatchingConfig = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The field name for the data that describes the identifier representing a collection of GPS points belonging to an individual trace.
         */
        public var idAttributeName: kotlin.String? = null
        /**
         * The name of the timestamp attribute.
         */
        public var timestampAttributeName: kotlin.String? = null
        /**
         * The name of the X-attribute
         */
        public var xAttributeName: kotlin.String? = null
        /**
         * The name of the Y-attribute
         */
        public var yAttributeName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.MapMatchingConfig) : this() {
            this.idAttributeName = x.idAttributeName
            this.timestampAttributeName = x.timestampAttributeName
            this.xAttributeName = x.xAttributeName
            this.yAttributeName = x.yAttributeName
        }

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

        internal fun correctErrors(): Builder {
            if (idAttributeName == null) idAttributeName = ""
            if (timestampAttributeName == null) timestampAttributeName = ""
            if (xAttributeName == null) xAttributeName = ""
            if (yAttributeName == null) yAttributeName = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy