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

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

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 representing Output Resolution for Stacking Operation.
 */
public class OutputResolutionStackInput private constructor(builder: Builder) {
    /**
     * A string value representing Predefined Output Resolution for a stacking operation. Allowed values are `HIGHEST`, `LOWEST`, and `AVERAGE`.
     */
    public val predefined: aws.sdk.kotlin.services.sagemakergeospatial.model.PredefinedResolution? = builder.predefined
    /**
     * The structure representing User Output Resolution for a Stacking operation defined as a value and unit.
     */
    public val userDefined: aws.sdk.kotlin.services.sagemakergeospatial.model.UserDefined? = builder.userDefined

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

    override fun toString(): kotlin.String = buildString {
        append("OutputResolutionStackInput(")
        append("predefined=$predefined,")
        append("userDefined=$userDefined")
        append(")")
    }

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

        if (predefined != other.predefined) return false
        if (userDefined != other.userDefined) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A string value representing Predefined Output Resolution for a stacking operation. Allowed values are `HIGHEST`, `LOWEST`, and `AVERAGE`.
         */
        public var predefined: aws.sdk.kotlin.services.sagemakergeospatial.model.PredefinedResolution? = null
        /**
         * The structure representing User Output Resolution for a Stacking operation defined as a value and unit.
         */
        public var userDefined: aws.sdk.kotlin.services.sagemakergeospatial.model.UserDefined? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputResolutionStackInput) : this() {
            this.predefined = x.predefined
            this.userDefined = x.userDefined
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy