commonMain.aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.signer.model
import aws.smithy.kotlin.runtime.SdkDsl
public class RemoveProfilePermissionRequest private constructor(builder: Builder) {
/**
* A human-readable name for the signing profile with permissions to be removed.
*/
public val profileName: kotlin.String? = builder.profileName
/**
* An identifier for the current revision of the signing profile permissions.
*/
public val revisionId: kotlin.String? = builder.revisionId
/**
* A unique identifier for the cross-account permissions statement.
*/
public val statementId: kotlin.String? = builder.statementId
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A human-readable name for the signing profile with permissions to be removed.
*/
public var profileName: kotlin.String? = null
/**
* An identifier for the current revision of the signing profile permissions.
*/
public var revisionId: kotlin.String? = null
/**
* A unique identifier for the cross-account permissions statement.
*/
public 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)
internal fun correctErrors(): Builder {
return this
}
}
}