commonMain.aws.sdk.kotlin.services.codepipeline.model.PutThirdPartyJobFailureResultRequest.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 the input of a `PutThirdPartyJobFailureResult` action.
*/
public class PutThirdPartyJobFailureResultRequest private constructor(builder: Builder) {
/**
* The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* Represents information about failure details.
*/
public val failureDetails: aws.sdk.kotlin.services.codepipeline.model.FailureDetails? = builder.failureDetails
/**
* The ID of the job that failed. This is the same ID returned from `PollForThirdPartyJobs`.
*/
public val jobId: kotlin.String? = builder.jobId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.PutThirdPartyJobFailureResultRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutThirdPartyJobFailureResultRequest(")
append("clientToken=$clientToken,")
append("failureDetails=$failureDetails,")
append("jobId=$jobId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (failureDetails?.hashCode() ?: 0)
result = 31 * result + (jobId?.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 PutThirdPartyJobFailureResultRequest
if (clientToken != other.clientToken) return false
if (failureDetails != other.failureDetails) return false
if (jobId != other.jobId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.PutThirdPartyJobFailureResultRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
*/
public var clientToken: kotlin.String? = null
/**
* Represents information about failure details.
*/
public var failureDetails: aws.sdk.kotlin.services.codepipeline.model.FailureDetails? = null
/**
* The ID of the job that failed. This is the same ID returned from `PollForThirdPartyJobs`.
*/
public var jobId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PutThirdPartyJobFailureResultRequest) : this() {
this.clientToken = x.clientToken
this.failureDetails = x.failureDetails
this.jobId = x.jobId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.PutThirdPartyJobFailureResultRequest = PutThirdPartyJobFailureResultRequest(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.FailureDetails] inside the given [block]
*/
public fun failureDetails(block: aws.sdk.kotlin.services.codepipeline.model.FailureDetails.Builder.() -> kotlin.Unit) {
this.failureDetails = aws.sdk.kotlin.services.codepipeline.model.FailureDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy