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

commonMain.aws.sdk.kotlin.services.datasync.model.ResourceDetails.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datasync.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information provided by DataSync Discovery about the resources in your on-premises storage system.
 */
public class ResourceDetails private constructor(builder: Builder) {
    /**
     * The information that DataSync Discovery collects about the cluster in your on-premises storage system.
     */
    public val netAppOntapClusters: List? = builder.netAppOntapClusters
    /**
     * The information that DataSync Discovery collects about volumes in your on-premises storage system.
     */
    public val netAppOntapVolumes: List? = builder.netAppOntapVolumes
    /**
     * The information that DataSync Discovery collects about storage virtual machines (SVMs) in your on-premises storage system.
     */
    public val netAppOntapsvms: List? = builder.netAppOntapsvms

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

    override fun toString(): kotlin.String = buildString {
        append("ResourceDetails(")
        append("netAppOntapClusters=$netAppOntapClusters,")
        append("netAppOntapVolumes=$netAppOntapVolumes,")
        append("netAppOntapsvms=$netAppOntapsvms")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = netAppOntapClusters?.hashCode() ?: 0
        result = 31 * result + (netAppOntapVolumes?.hashCode() ?: 0)
        result = 31 * result + (netAppOntapsvms?.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 ResourceDetails

        if (netAppOntapClusters != other.netAppOntapClusters) return false
        if (netAppOntapVolumes != other.netAppOntapVolumes) return false
        if (netAppOntapsvms != other.netAppOntapsvms) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The information that DataSync Discovery collects about the cluster in your on-premises storage system.
         */
        public var netAppOntapClusters: List? = null
        /**
         * The information that DataSync Discovery collects about volumes in your on-premises storage system.
         */
        public var netAppOntapVolumes: List? = null
        /**
         * The information that DataSync Discovery collects about storage virtual machines (SVMs) in your on-premises storage system.
         */
        public var netAppOntapsvms: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.ResourceDetails) : this() {
            this.netAppOntapClusters = x.netAppOntapClusters
            this.netAppOntapVolumes = x.netAppOntapVolumes
            this.netAppOntapsvms = x.netAppOntapsvms
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy