commonMain.aws.sdk.kotlin.services.signer.model.AddProfilePermissionRequest.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 AddProfilePermissionRequest private constructor(builder: Builder) {
/**
* The AWS Signer action permitted as part of cross-account permissions.
*/
val action: kotlin.String? = builder.action
/**
* The AWS principal receiving cross-account permissions. This may be an IAM role or another AWS account ID.
*/
val principal: kotlin.String? = builder.principal
/**
* The human-readable name of the signing profile.
*/
val profileName: kotlin.String? = requireNotNull(builder.profileName) { "A non-null value must be provided for profileName" }
/**
* The version of the signing profile.
*/
val profileVersion: kotlin.String? = builder.profileVersion
/**
* A unique identifier for the current profile revision.
*/
val revisionId: kotlin.String? = builder.revisionId
/**
* A unique identifier for the cross-account permission statement.
*/
val statementId: kotlin.String? = builder.statementId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.signer.model.AddProfilePermissionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AddProfilePermissionRequest(")
append("action=$action,")
append("principal=$principal,")
append("profileName=$profileName,")
append("profileVersion=$profileVersion,")
append("revisionId=$revisionId,")
append("statementId=$statementId)")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (principal?.hashCode() ?: 0)
result = 31 * result + (profileName?.hashCode() ?: 0)
result = 31 * result + (profileVersion?.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 AddProfilePermissionRequest
if (action != other.action) return false
if (principal != other.principal) return false
if (profileName != other.profileName) return false
if (profileVersion != other.profileVersion) 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.AddProfilePermissionRequest = Builder(this).apply(block).build()
class Builder {
/**
* The AWS Signer action permitted as part of cross-account permissions.
*/
var action: kotlin.String? = null
/**
* The AWS principal receiving cross-account permissions. This may be an IAM role or another AWS account ID.
*/
var principal: kotlin.String? = null
/**
* The human-readable name of the signing profile.
*/
var profileName: kotlin.String? = null
/**
* The version of the signing profile.
*/
var profileVersion: kotlin.String? = null
/**
* A unique identifier for the current profile revision.
*/
var revisionId: kotlin.String? = null
/**
* A unique identifier for the cross-account permission statement.
*/
var statementId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.signer.model.AddProfilePermissionRequest) : this() {
this.action = x.action
this.principal = x.principal
this.profileName = x.profileName
this.profileVersion = x.profileVersion
this.revisionId = x.revisionId
this.statementId = x.statementId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.signer.model.AddProfilePermissionRequest = AddProfilePermissionRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy