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

commonMain.aws.sdk.kotlin.services.supplychain.model.BillOfMaterialsImportJob.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.supplychain.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The BillOfMaterialsImportJob details.
 */
public class BillOfMaterialsImportJob private constructor(builder: Builder) {
    /**
     * The BillOfMaterialsImportJob instanceId.
     */
    public val instanceId: kotlin.String = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
    /**
     * The BillOfMaterialsImportJob jobId.
     */
    public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
    /**
     * When the BillOfMaterialsImportJob has reached a terminal state, there will be a message.
     */
    public val message: kotlin.String? = builder.message
    /**
     * The S3 URI from which the CSV is read.
     */
    public val s3Uri: kotlin.String = requireNotNull(builder.s3Uri) { "A non-null value must be provided for s3Uri" }
    /**
     * The BillOfMaterialsImportJob ConfigurationJobStatus.
     */
    public val status: aws.sdk.kotlin.services.supplychain.model.ConfigurationJobStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }

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

    override fun toString(): kotlin.String = buildString {
        append("BillOfMaterialsImportJob(")
        append("instanceId=$instanceId,")
        append("jobId=$jobId,")
        append("message=$message,")
        append("s3Uri=$s3Uri,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = instanceId.hashCode()
        result = 31 * result + (jobId.hashCode())
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (s3Uri.hashCode())
        result = 31 * result + (status.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 BillOfMaterialsImportJob

        if (instanceId != other.instanceId) return false
        if (jobId != other.jobId) return false
        if (message != other.message) return false
        if (s3Uri != other.s3Uri) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The BillOfMaterialsImportJob instanceId.
         */
        public var instanceId: kotlin.String? = null
        /**
         * The BillOfMaterialsImportJob jobId.
         */
        public var jobId: kotlin.String? = null
        /**
         * When the BillOfMaterialsImportJob has reached a terminal state, there will be a message.
         */
        public var message: kotlin.String? = null
        /**
         * The S3 URI from which the CSV is read.
         */
        public var s3Uri: kotlin.String? = null
        /**
         * The BillOfMaterialsImportJob ConfigurationJobStatus.
         */
        public var status: aws.sdk.kotlin.services.supplychain.model.ConfigurationJobStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.supplychain.model.BillOfMaterialsImportJob) : this() {
            this.instanceId = x.instanceId
            this.jobId = x.jobId
            this.message = x.message
            this.s3Uri = x.s3Uri
            this.status = x.status
        }

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

        internal fun correctErrors(): Builder {
            if (instanceId == null) instanceId = ""
            if (jobId == null) jobId = ""
            if (s3Uri == null) s3Uri = ""
            if (status == null) status = ConfigurationJobStatus.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy