commonMain.aws.sdk.kotlin.services.signer.model.RevokeSignatureRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signer-jvm Show documentation
Show all versions of signer-jvm Show documentation
The AWS SDK for Kotlin client for signer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.signer.model
import aws.smithy.kotlin.runtime.SdkDsl
public class RevokeSignatureRequest private constructor(builder: Builder) {
/**
* ID of the signing job to be revoked.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* AWS account ID of the job owner.
*/
public val jobOwner: kotlin.String? = builder.jobOwner
/**
* The reason for revoking the signing job.
*/
public val reason: kotlin.String? = builder.reason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.signer.model.RevokeSignatureRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RevokeSignatureRequest(")
append("jobId=$jobId,")
append("jobOwner=$jobOwner,")
append("reason=$reason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId?.hashCode() ?: 0
result = 31 * result + (jobOwner?.hashCode() ?: 0)
result = 31 * result + (reason?.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 RevokeSignatureRequest
if (jobId != other.jobId) return false
if (jobOwner != other.jobOwner) return false
if (reason != other.reason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.signer.model.RevokeSignatureRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ID of the signing job to be revoked.
*/
public var jobId: kotlin.String? = null
/**
* AWS account ID of the job owner.
*/
public var jobOwner: kotlin.String? = null
/**
* The reason for revoking the signing job.
*/
public var reason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.signer.model.RevokeSignatureRequest) : this() {
this.jobId = x.jobId
this.jobOwner = x.jobOwner
this.reason = x.reason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.signer.model.RevokeSignatureRequest = RevokeSignatureRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}