All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ssoadmin.model.GetPermissionsBoundaryForPermissionSetRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// 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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy