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

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

/**
 * A single EarthObservationJob output band.
 */
public class OutputBand private constructor(builder: Builder) {
    /**
     * The name of the band.
     */
    public val bandName: kotlin.String = requireNotNull(builder.bandName) { "A non-null value must be provided for bandName" }
    /**
     * The datatype of the output band.
     */
    public val outputDataType: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputType = requireNotNull(builder.outputDataType) { "A non-null value must be provided for outputDataType" }

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

    override fun toString(): kotlin.String = buildString {
        append("OutputBand(")
        append("bandName=$bandName,")
        append("outputDataType=$outputDataType")
        append(")")
    }

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

        if (bandName != other.bandName) return false
        if (outputDataType != other.outputDataType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the band.
         */
        public var bandName: kotlin.String? = null
        /**
         * The datatype of the output band.
         */
        public var outputDataType: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputBand) : this() {
            this.bandName = x.bandName
            this.outputDataType = x.outputDataType
        }

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

        internal fun correctErrors(): Builder {
            if (bandName == null) bandName = ""
            if (outputDataType == null) outputDataType = OutputType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy