commonMain.aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest.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 RemoveProfilePermissionRequest private constructor(builder: Builder) {
/**
* A human-readable name for the signing profile with permissions to be removed.
*/
val profileName: kotlin.String? = requireNotNull(builder.profileName) { "A non-null value must be provided for profileName" }
/**
* An identifier for the current revision of the signing profile permissions.
*/
val revisionId: kotlin.String? = builder.revisionId
/**
* A unique identifier for the cross-account permissions statement.
*/
val statementId: kotlin.String? = requireNotNull(builder.statementId) { "A non-null value must be provided for statementId" }
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveProfilePermissionRequest(")
append("profileName=$profileName,")
append("revisionId=$revisionId,")
append("statementId=$statementId)")
}
override fun hashCode(): kotlin.Int {
var result = profileName?.hashCode() ?: 0
result = 31 * result + (revisionId?.hashCode() ?: 0)
result = 31 * result + (statementId?.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 RemoveProfilePermissionRequest
if (profileName != other.profileName) return false
if (revisionId != other.revisionId) return false
if (statementId != other.statementId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest = Builder(this).apply(block).build()
class Builder {
/**
* A human-readable name for the signing profile with permissions to be removed.
*/
var profileName: kotlin.String? = null
/**
* An identifier for the current revision of the signing profile permissions.
*/
var revisionId: kotlin.String? = null
/**
* A unique identifier for the cross-account permissions statement.
*/
var statementId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest) : this() {
this.profileName = x.profileName
this.revisionId = x.revisionId
this.statementId = x.statementId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest = RemoveProfilePermissionRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy