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

commonMain.aws.sdk.kotlin.services.finspace.model.SuperuserParameters.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspace.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Configuration information for the superuser.
 */
public class SuperuserParameters private constructor(builder: Builder) {
    /**
     * The email address of the superuser.
     */
    public val emailAddress: kotlin.String = requireNotNull(builder.emailAddress) { "A non-null value must be provided for emailAddress" }
    /**
     * The first name of the superuser.
     */
    public val firstName: kotlin.String = requireNotNull(builder.firstName) { "A non-null value must be provided for firstName" }
    /**
     * The last name of the superuser.
     */
    public val lastName: kotlin.String = requireNotNull(builder.lastName) { "A non-null value must be provided for lastName" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.SuperuserParameters = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SuperuserParameters(")
        append("emailAddress=*** Sensitive Data Redacted ***,")
        append("firstName=$firstName,")
        append("lastName=$lastName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = emailAddress.hashCode()
        result = 31 * result + (firstName.hashCode())
        result = 31 * result + (lastName.hashCode())
        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 SuperuserParameters

        if (emailAddress != other.emailAddress) return false
        if (firstName != other.firstName) return false
        if (lastName != other.lastName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.SuperuserParameters = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The email address of the superuser.
         */
        public var emailAddress: kotlin.String? = null
        /**
         * The first name of the superuser.
         */
        public var firstName: kotlin.String? = null
        /**
         * The last name of the superuser.
         */
        public var lastName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.SuperuserParameters) : this() {
            this.emailAddress = x.emailAddress
            this.firstName = x.firstName
            this.lastName = x.lastName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.finspace.model.SuperuserParameters = SuperuserParameters(this)

        internal fun correctErrors(): Builder {
            if (emailAddress == null) emailAddress = ""
            if (firstName == null) firstName = ""
            if (lastName == null) lastName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy