commonMain.aws.sdk.kotlin.services.ssoadmin.model.GetPermissionsBoundaryForPermissionSetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssoadmin-jvm Show documentation
Show all versions of ssoadmin-jvm Show documentation
The AWS SDK for Kotlin client for SSO Admin
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssoadmin.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetPermissionsBoundaryForPermissionSetRequest private constructor(builder: Builder) {
/**
* The ARN of the IAM Identity Center instance under which the operation will be executed.
*/
public val instanceArn: kotlin.String? = builder.instanceArn
/**
* The ARN of the `PermissionSet`.
*/
public val permissionSetArn: kotlin.String? = builder.permissionSetArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssoadmin.model.GetPermissionsBoundaryForPermissionSetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPermissionsBoundaryForPermissionSetRequest(")
append("instanceArn=$instanceArn,")
append("permissionSetArn=$permissionSetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = instanceArn?.hashCode() ?: 0
result = 31 * result + (permissionSetArn?.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 GetPermissionsBoundaryForPermissionSetRequest
if (instanceArn != other.instanceArn) return false
if (permissionSetArn != other.permissionSetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssoadmin.model.GetPermissionsBoundaryForPermissionSetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the IAM Identity Center instance under which the operation will be executed.
*/
public var instanceArn: kotlin.String? = null
/**
* The ARN of the `PermissionSet`.
*/
public var permissionSetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssoadmin.model.GetPermissionsBoundaryForPermissionSetRequest) : this() {
this.instanceArn = x.instanceArn
this.permissionSetArn = x.permissionSetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssoadmin.model.GetPermissionsBoundaryForPermissionSetRequest = GetPermissionsBoundaryForPermissionSetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}