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

commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.BandMathConfigInput.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

/**
 * Input structure for the BandMath operation type. Defines Predefined and CustomIndices to be computed using BandMath.
 */
public class BandMathConfigInput private constructor(builder: Builder) {
    /**
     * CustomIndices that are computed.
     */
    public val customIndices: aws.sdk.kotlin.services.sagemakergeospatial.model.CustomIndicesInput? = builder.customIndices
    /**
     * One or many of the supported predefined indices to compute. Allowed values: `NDVI`, `EVI2`, `MSAVI`, `NDWI`, `NDMI`, `NDSI`, and `WDRVI`.
     */
    public val predefinedIndices: List? = builder.predefinedIndices

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.BandMathConfigInput = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("BandMathConfigInput(")
        append("customIndices=$customIndices,")
        append("predefinedIndices=$predefinedIndices")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = customIndices?.hashCode() ?: 0
        result = 31 * result + (predefinedIndices?.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 BandMathConfigInput

        if (customIndices != other.customIndices) return false
        if (predefinedIndices != other.predefinedIndices) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.BandMathConfigInput = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * CustomIndices that are computed.
         */
        public var customIndices: aws.sdk.kotlin.services.sagemakergeospatial.model.CustomIndicesInput? = null
        /**
         * One or many of the supported predefined indices to compute. Allowed values: `NDVI`, `EVI2`, `MSAVI`, `NDWI`, `NDMI`, `NDSI`, and `WDRVI`.
         */
        public var predefinedIndices: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.BandMathConfigInput) : this() {
            this.customIndices = x.customIndices
            this.predefinedIndices = x.predefinedIndices
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.sagemakergeospatial.model.CustomIndicesInput] inside the given [block]
         */
        public fun customIndices(block: aws.sdk.kotlin.services.sagemakergeospatial.model.CustomIndicesInput.Builder.() -> kotlin.Unit) {
            this.customIndices = aws.sdk.kotlin.services.sagemakergeospatial.model.CustomIndicesInput.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy