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

commonMain.aws.sdk.kotlin.services.mgn.model.ReplicationConfigurationReplicatedDisk.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mgn.model



/**
 * Replication Configuration replicated disk.
 */
class ReplicationConfigurationReplicatedDisk private constructor(builder: Builder) {
    /**
     * Replication Configuration replicated disk device name.
     */
    val deviceName: kotlin.String? = builder.deviceName
    /**
     * Replication Configuration replicated disk IOPs.
     */
    val iops: kotlin.Long = builder.iops
    /**
     * Replication Configuration replicated disk boot disk.
     */
    val isBootDisk: kotlin.Boolean? = builder.isBootDisk
    /**
     * Replication Configuration replicated disk staging disk type.
     */
    val stagingDiskType: aws.sdk.kotlin.services.mgn.model.ReplicationConfigurationReplicatedDiskStagingDiskType? = builder.stagingDiskType
    /**
     * Replication Configuration replicated disk throughput.
     */
    val throughput: kotlin.Long = builder.throughput

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

    override fun toString(): kotlin.String = buildString {
        append("ReplicationConfigurationReplicatedDisk(")
        append("deviceName=$deviceName,")
        append("iops=$iops,")
        append("isBootDisk=$isBootDisk,")
        append("stagingDiskType=$stagingDiskType,")
        append("throughput=$throughput)")
    }

    override fun hashCode(): kotlin.Int {
        var result = deviceName?.hashCode() ?: 0
        result = 31 * result + (iops.hashCode())
        result = 31 * result + (isBootDisk?.hashCode() ?: 0)
        result = 31 * result + (stagingDiskType?.hashCode() ?: 0)
        result = 31 * result + (throughput.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 ReplicationConfigurationReplicatedDisk

        if (deviceName != other.deviceName) return false
        if (iops != other.iops) return false
        if (isBootDisk != other.isBootDisk) return false
        if (stagingDiskType != other.stagingDiskType) return false
        if (throughput != other.throughput) return false

        return true
    }

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

    class Builder {
        /**
         * Replication Configuration replicated disk device name.
         */
        var deviceName: kotlin.String? = null
        /**
         * Replication Configuration replicated disk IOPs.
         */
        var iops: kotlin.Long = 0L
        /**
         * Replication Configuration replicated disk boot disk.
         */
        var isBootDisk: kotlin.Boolean? = null
        /**
         * Replication Configuration replicated disk staging disk type.
         */
        var stagingDiskType: aws.sdk.kotlin.services.mgn.model.ReplicationConfigurationReplicatedDiskStagingDiskType? = null
        /**
         * Replication Configuration replicated disk throughput.
         */
        var throughput: kotlin.Long = 0L

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mgn.model.ReplicationConfigurationReplicatedDisk) : this() {
            this.deviceName = x.deviceName
            this.iops = x.iops
            this.isBootDisk = x.isBootDisk
            this.stagingDiskType = x.stagingDiskType
            this.throughput = x.throughput
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy