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

commonMain.aws.sdk.kotlin.services.iotjobsdataplane.model.UpdateJobExecutionResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotjobsdataplane.model



public class UpdateJobExecutionResponse private constructor(builder: Builder) {
    /**
     * A JobExecutionState object.
     */
    public val executionState: aws.sdk.kotlin.services.iotjobsdataplane.model.JobExecutionState? = builder.executionState
    /**
     * The contents of the Job Documents.
     */
    public val jobDocument: kotlin.String? = builder.jobDocument

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateJobExecutionResponse(")
        append("executionState=$executionState,")
        append("jobDocument=$jobDocument")
        append(")")
    }

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

        if (executionState != other.executionState) return false
        if (jobDocument != other.jobDocument) return false

        return true
    }

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

    public class Builder {
        /**
         * A JobExecutionState object.
         */
        public var executionState: aws.sdk.kotlin.services.iotjobsdataplane.model.JobExecutionState? = null
        /**
         * The contents of the Job Documents.
         */
        public var jobDocument: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotjobsdataplane.model.UpdateJobExecutionResponse) : this() {
            this.executionState = x.executionState
            this.jobDocument = x.jobDocument
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy