commonMain.aws.sdk.kotlin.services.codepipeline.model.JobDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline-jvm Show documentation
Show all versions of codepipeline-jvm Show documentation
The AWS SDK for Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents information about the details of a job.
*/
public class JobDetails private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID associated with the job.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* Represents other information about a job required for a job worker to complete the job.
*/
public val data: aws.sdk.kotlin.services.codepipeline.model.JobData? = builder.data
/**
* The unique system-generated ID of the job.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.JobDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobDetails(")
append("accountId=$accountId,")
append("data=$data,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (data?.hashCode() ?: 0)
result = 31 * result + (id?.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 JobDetails
if (accountId != other.accountId) return false
if (data != other.data) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.JobDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Web Services account ID associated with the job.
*/
public var accountId: kotlin.String? = null
/**
* Represents other information about a job required for a job worker to complete the job.
*/
public var data: aws.sdk.kotlin.services.codepipeline.model.JobData? = null
/**
* The unique system-generated ID of the job.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.JobDetails) : this() {
this.accountId = x.accountId
this.data = x.data
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.JobDetails = JobDetails(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.JobData] inside the given [block]
*/
public fun data(block: aws.sdk.kotlin.services.codepipeline.model.JobData.Builder.() -> kotlin.Unit) {
this.data = aws.sdk.kotlin.services.codepipeline.model.JobData.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy