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

commonMain.aws.sdk.kotlin.services.datasync.model.Iops.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

/**
 * The IOPS peaks for an on-premises storage system resource. Each data point represents the 95th percentile peak value during a 1-hour interval.
 */
public class Iops private constructor(builder: Builder) {
    /**
     * Peak IOPS unrelated to read and write operations.
     */
    public val other: kotlin.Double? = builder.other
    /**
     * Peak IOPS related to read operations.
     */
    public val read: kotlin.Double? = builder.read
    /**
     * Peak total IOPS on your on-premises storage system resource.
     */
    public val total: kotlin.Double? = builder.total
    /**
     * Peak IOPS related to write operations.
     */
    public val write: kotlin.Double? = builder.write

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

    override fun toString(): kotlin.String = buildString {
        append("Iops(")
        append("other=$other,")
        append("read=$read,")
        append("total=$total,")
        append("write=$write")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = other?.hashCode() ?: 0
        result = 31 * result + (read?.hashCode() ?: 0)
        result = 31 * result + (total?.hashCode() ?: 0)
        result = 31 * result + (write?.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 Iops

        if (!(other?.equals(other.other) ?: (other.other == null))) return false
        if (!(read?.equals(other.read) ?: (other.read == null))) return false
        if (!(total?.equals(other.total) ?: (other.total == null))) return false
        if (!(write?.equals(other.write) ?: (other.write == null))) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Peak IOPS unrelated to read and write operations.
         */
        public var other: kotlin.Double? = null
        /**
         * Peak IOPS related to read operations.
         */
        public var read: kotlin.Double? = null
        /**
         * Peak total IOPS on your on-premises storage system resource.
         */
        public var total: kotlin.Double? = null
        /**
         * Peak IOPS related to write operations.
         */
        public var write: kotlin.Double? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.Iops) : this() {
            this.other = x.other
            this.read = x.read
            this.total = x.total
            this.write = x.write
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy