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

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

public class StartEarthObservationJobRequest private constructor(builder: Builder) {
    /**
     * A unique token that guarantees that the call to this API is idempotent.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
     */
    public val executionRoleArn: kotlin.String? = builder.executionRoleArn
    /**
     * Input configuration information for the Earth Observation job.
     */
    public val inputConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.InputConfigInput? = builder.inputConfig
    /**
     * An object containing information about the job configuration.
     */
    public val jobConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.JobConfigInput? = builder.jobConfig
    /**
     * The Key Management Service key ID for server-side encryption.
     */
    public val kmsKeyId: kotlin.String? = builder.kmsKeyId
    /**
     * The name of the Earth Observation job.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Each tag consists of a key and a value.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("StartEarthObservationJobRequest(")
        append("clientToken=$clientToken,")
        append("executionRoleArn=$executionRoleArn,")
        append("inputConfig=$inputConfig,")
        append("jobConfig=$jobConfig,")
        append("kmsKeyId=$kmsKeyId,")
        append("name=$name,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (executionRoleArn?.hashCode() ?: 0)
        result = 31 * result + (inputConfig?.hashCode() ?: 0)
        result = 31 * result + (jobConfig?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyId?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 StartEarthObservationJobRequest

        if (clientToken != other.clientToken) return false
        if (executionRoleArn != other.executionRoleArn) return false
        if (inputConfig != other.inputConfig) return false
        if (jobConfig != other.jobConfig) return false
        if (kmsKeyId != other.kmsKeyId) return false
        if (name != other.name) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique token that guarantees that the call to this API is idempotent.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
         */
        public var executionRoleArn: kotlin.String? = null
        /**
         * Input configuration information for the Earth Observation job.
         */
        public var inputConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.InputConfigInput? = null
        /**
         * An object containing information about the job configuration.
         */
        public var jobConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.JobConfigInput? = null
        /**
         * The Key Management Service key ID for server-side encryption.
         */
        public var kmsKeyId: kotlin.String? = null
        /**
         * The name of the Earth Observation job.
         */
        public var name: kotlin.String? = null
        /**
         * Each tag consists of a key and a value.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.StartEarthObservationJobRequest) : this() {
            this.clientToken = x.clientToken
            this.executionRoleArn = x.executionRoleArn
            this.inputConfig = x.inputConfig
            this.jobConfig = x.jobConfig
            this.kmsKeyId = x.kmsKeyId
            this.name = x.name
            this.tags = x.tags
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy