
commonMain.aws.sdk.kotlin.services.acmpca.model.DeletePermissionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.acmpca.model
public class DeletePermissionRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Number (ARN) of the private CA that issued the permissions. You can find the CA's ARN by calling the [ListCertificateAuthorities](https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html) action. This must have the following form:
*
* `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 `.
*/
public val certificateAuthorityArn: kotlin.String? = builder.certificateAuthorityArn
/**
* The Amazon Web Services service or identity that will have its CA permissions revoked. At this time, the only valid service principal is `acm.amazonaws.com`
*/
public val principal: kotlin.String? = builder.principal
/**
* The Amazon Web Services account that calls this action.
*/
public val sourceAccount: kotlin.String? = builder.sourceAccount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.acmpca.model.DeletePermissionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeletePermissionRequest(")
append("certificateAuthorityArn=$certificateAuthorityArn,")
append("principal=$principal,")
append("sourceAccount=$sourceAccount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateAuthorityArn?.hashCode() ?: 0
result = 31 * result + (principal?.hashCode() ?: 0)
result = 31 * result + (sourceAccount?.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 DeletePermissionRequest
if (certificateAuthorityArn != other.certificateAuthorityArn) return false
if (principal != other.principal) return false
if (sourceAccount != other.sourceAccount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.acmpca.model.DeletePermissionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Number (ARN) of the private CA that issued the permissions. You can find the CA's ARN by calling the [ListCertificateAuthorities](https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html) action. This must have the following form:
*
* `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 `.
*/
public var certificateAuthorityArn: kotlin.String? = null
/**
* The Amazon Web Services service or identity that will have its CA permissions revoked. At this time, the only valid service principal is `acm.amazonaws.com`
*/
public var principal: kotlin.String? = null
/**
* The Amazon Web Services account that calls this action.
*/
public var sourceAccount: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.acmpca.model.DeletePermissionRequest) : this() {
this.certificateAuthorityArn = x.certificateAuthorityArn
this.principal = x.principal
this.sourceAccount = x.sourceAccount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.acmpca.model.DeletePermissionRequest = DeletePermissionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy