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 Show documentation
Show all versions of codepipeline Show documentation
The AWS Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
/**
* Represents information about the details of a job.
*/
class JobDetails private constructor(builder: Builder) {
/**
* The AWS account ID associated with the job.
*/
val accountId: kotlin.String? = builder.accountId
/**
* Represents other information about a job required for a job worker to complete the job.
*/
val data: aws.sdk.kotlin.services.codepipeline.model.JobData? = builder.data
/**
* The unique system-generated ID of the job.
*/
val id: kotlin.String? = builder.id
companion object {
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)")
}
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
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.JobDetails = Builder(this).apply(block).build()
class Builder {
/**
* The AWS account ID associated with the job.
*/
var accountId: kotlin.String? = null
/**
* Represents other information about a job required for a job worker to complete the job.
*/
var data: aws.sdk.kotlin.services.codepipeline.model.JobData? = null
/**
* The unique system-generated ID of the job.
*/
var id: kotlin.String? = null
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]
*/
fun data(block: aws.sdk.kotlin.services.codepipeline.model.JobData.Builder.() -> kotlin.Unit) {
this.data = aws.sdk.kotlin.services.codepipeline.model.JobData.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy