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

commonMain.aws.sdk.kotlin.services.codepipeline.model.GetJobDetailsResponse.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.codepipeline.model



/**
 * Represents the output of a `GetJobDetails` action.
 */
public class GetJobDetailsResponse private constructor(builder: Builder) {
    /**
     * The details of the job.
     *
     * If AWSSessionCredentials is used, a long-running job can call `GetJobDetails` again to obtain new credentials.
     */
    public val jobDetails: aws.sdk.kotlin.services.codepipeline.model.JobDetails? = builder.jobDetails

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

    override fun toString(): kotlin.String = buildString {
        append("GetJobDetailsResponse(")
        append("jobDetails=$jobDetails")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobDetails?.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 GetJobDetailsResponse

        if (jobDetails != other.jobDetails) return false

        return true
    }

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

    public class Builder {
        /**
         * The details of the job.
         *
         * If AWSSessionCredentials is used, a long-running job can call `GetJobDetails` again to obtain new credentials.
         */
        public var jobDetails: aws.sdk.kotlin.services.codepipeline.model.JobDetails? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.GetJobDetailsResponse) : this() {
            this.jobDetails = x.jobDetails
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy