commonMain.aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobDetails.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
/**
* The details of a job sent in response to a `GetThirdPartyJobDetails` request.
*/
public class ThirdPartyJobDetails private constructor(builder: Builder) {
/**
* The data to be returned by the third party job worker.
*/
public val data: aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobData? = builder.data
/**
* The identifier used to identify the job details in CodePipeline.
*/
public val id: kotlin.String? = builder.id
/**
* A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Use this number in an AcknowledgeThirdPartyJob request.
*/
public val nonce: kotlin.String? = builder.nonce
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ThirdPartyJobDetails(")
append("data=$data,")
append("id=$id,")
append("nonce=$nonce")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = data?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (nonce?.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 ThirdPartyJobDetails
if (data != other.data) return false
if (id != other.id) return false
if (nonce != other.nonce) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The data to be returned by the third party job worker.
*/
public var data: aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobData? = null
/**
* The identifier used to identify the job details in CodePipeline.
*/
public var id: kotlin.String? = null
/**
* A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Use this number in an AcknowledgeThirdPartyJob request.
*/
public var nonce: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobDetails) : this() {
this.data = x.data
this.id = x.id
this.nonce = x.nonce
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobDetails = ThirdPartyJobDetails(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobData] inside the given [block]
*/
public fun data(block: aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobData.Builder.() -> kotlin.Unit) {
this.data = aws.sdk.kotlin.services.codepipeline.model.ThirdPartyJobData.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy