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
class RevokeSignatureRequest private constructor(builder: Builder) {
/**
* ID of the signing job to be revoked.
*/
val jobId: kotlin.String? = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* AWS account ID of the job owner.
*/
val jobOwner: kotlin.String? = builder.jobOwner
/**
* The reason for revoking the signing job.
*/
val reason: kotlin.String? = builder.reason
companion object {
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)")
}
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
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.signer.model.RevokeSignatureRequest = Builder(this).apply(block).build()
class Builder {
/**
* ID of the signing job to be revoked.
*/
var jobId: kotlin.String? = null
/**
* AWS account ID of the job owner.
*/
var jobOwner: kotlin.String? = null
/**
* The reason for revoking the signing job.
*/
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)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy