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

commonMain.aws.sdk.kotlin.services.glacier.model.InitiateJobResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glacier.model



/**
 * Contains the Amazon S3 Glacier response to your request.
 */
public class InitiateJobResponse private constructor(builder: Builder) {
    /**
     * The ID of the job.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The path to the location of where the select results are stored.
     */
    public val jobOutputPath: kotlin.String? = builder.jobOutputPath
    /**
     * The relative URI path of the job.
     */
    public val location: kotlin.String? = builder.location

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

    override fun toString(): kotlin.String = buildString {
        append("InitiateJobResponse(")
        append("jobId=$jobId,")
        append("jobOutputPath=$jobOutputPath,")
        append("location=$location")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobId?.hashCode() ?: 0
        result = 31 * result + (jobOutputPath?.hashCode() ?: 0)
        result = 31 * result + (location?.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 InitiateJobResponse

        if (jobId != other.jobId) return false
        if (jobOutputPath != other.jobOutputPath) return false
        if (location != other.location) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the job.
         */
        public var jobId: kotlin.String? = null
        /**
         * The path to the location of where the select results are stored.
         */
        public var jobOutputPath: kotlin.String? = null
        /**
         * The relative URI path of the job.
         */
        public var location: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glacier.model.InitiateJobResponse) : this() {
            this.jobId = x.jobId
            this.jobOutputPath = x.jobOutputPath
            this.location = x.location
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy