commonMain.aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionResponse.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 RemoveProfilePermissionResponse private constructor(builder: Builder) {
/**
* An identifier for the current revision of the profile permissions.
*/
public val revisionId: kotlin.String? = builder.revisionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveProfilePermissionResponse(")
append("revisionId=$revisionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = revisionId?.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 RemoveProfilePermissionResponse
if (revisionId != other.revisionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An identifier for the current revision of the profile permissions.
*/
public var revisionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionResponse) : this() {
this.revisionId = x.revisionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.signer.model.RemoveProfilePermissionResponse = RemoveProfilePermissionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}