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

aws.sdk.kotlin.services.sagemaker.model.DescribeAppRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sagemaker.model



class DescribeAppRequest private constructor(builder: Builder) {
    /**
     * The name of the app.
     */
    val appName: kotlin.String? = builder.appName
    /**
     * The type of app.
     */
    val appType: aws.sdk.kotlin.services.sagemaker.model.AppType? = builder.appType
    /**
     * The domain ID.
     */
    val domainId: kotlin.String? = builder.domainId
    /**
     * The user profile name.
     */
    val userProfileName: kotlin.String? = builder.userProfileName

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeAppRequest(")
        append("appName=$appName,")
        append("appType=$appType,")
        append("domainId=$domainId,")
        append("userProfileName=$userProfileName)")
    }

    override fun hashCode(): kotlin.Int {
        var result = appName?.hashCode() ?: 0
        result = 31 * result + (appType?.hashCode() ?: 0)
        result = 31 * result + (domainId?.hashCode() ?: 0)
        result = 31 * result + (userProfileName?.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 DescribeAppRequest

        if (appName != other.appName) return false
        if (appType != other.appType) return false
        if (domainId != other.domainId) return false
        if (userProfileName != other.userProfileName) return false

        return true
    }

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

    class Builder {
        /**
         * The name of the app.
         */
        var appName: kotlin.String? = null
        /**
         * The type of app.
         */
        var appType: aws.sdk.kotlin.services.sagemaker.model.AppType? = null
        /**
         * The domain ID.
         */
        var domainId: kotlin.String? = null
        /**
         * The user profile name.
         */
        var userProfileName: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.DescribeAppRequest) : this() {
            this.appName = x.appName
            this.appType = x.appType
            this.domainId = x.domainId
            this.userProfileName = x.userProfileName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.sagemaker.model.DescribeAppRequest = DescribeAppRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy