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

aws.sdk.kotlin.services.sagemaker.model.DomainDetails.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

import aws.smithy.kotlin.runtime.time.Instant

/**
 * The domain's details.
 */
class DomainDetails private constructor(builder: Builder) {
    /**
     * The creation time.
     */
    val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The domain's Amazon Resource Name (ARN).
     */
    val domainArn: kotlin.String? = builder.domainArn
    /**
     * The domain ID.
     */
    val domainId: kotlin.String? = builder.domainId
    /**
     * The domain name.
     */
    val domainName: kotlin.String? = builder.domainName
    /**
     * The last modified time.
     */
    val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
    /**
     * The status.
     */
    val status: aws.sdk.kotlin.services.sagemaker.model.DomainStatus? = builder.status
    /**
     * The domain's URL.
     */
    val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("DomainDetails(")
        append("creationTime=$creationTime,")
        append("domainArn=$domainArn,")
        append("domainId=$domainId,")
        append("domainName=$domainName,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("status=$status,")
        append("url=$url)")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (domainArn?.hashCode() ?: 0)
        result = 31 * result + (domainId?.hashCode() ?: 0)
        result = 31 * result + (domainName?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (url?.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 DomainDetails

        if (creationTime != other.creationTime) return false
        if (domainArn != other.domainArn) return false
        if (domainId != other.domainId) return false
        if (domainName != other.domainName) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (status != other.status) return false
        if (url != other.url) return false

        return true
    }

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

    class Builder {
        /**
         * The creation time.
         */
        var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The domain's Amazon Resource Name (ARN).
         */
        var domainArn: kotlin.String? = null
        /**
         * The domain ID.
         */
        var domainId: kotlin.String? = null
        /**
         * The domain name.
         */
        var domainName: kotlin.String? = null
        /**
         * The last modified time.
         */
        var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status.
         */
        var status: aws.sdk.kotlin.services.sagemaker.model.DomainStatus? = null
        /**
         * The domain's URL.
         */
        var url: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.DomainDetails) : this() {
            this.creationTime = x.creationTime
            this.domainArn = x.domainArn
            this.domainId = x.domainId
            this.domainName = x.domainName
            this.lastModifiedTime = x.lastModifiedTime
            this.status = x.status
            this.url = x.url
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy