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

commonMain.aws.sdk.kotlin.services.devicefarm.model.TrialMinutes.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devicefarm.model



/**
 * Represents information about free trial device minutes for an AWS account.
 */
public class TrialMinutes private constructor(builder: Builder) {
    /**
     * The number of free trial minutes remaining in the account.
     */
    public val remaining: kotlin.Double? = builder.remaining
    /**
     * The total number of free trial minutes that the account started with.
     */
    public val total: kotlin.Double? = builder.total

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

    override fun toString(): kotlin.String = buildString {
        append("TrialMinutes(")
        append("remaining=$remaining,")
        append("total=$total")
        append(")")
    }

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

        if (remaining != other.remaining) return false
        if (total != other.total) return false

        return true
    }

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

    public class Builder {
        /**
         * The number of free trial minutes remaining in the account.
         */
        public var remaining: kotlin.Double? = null
        /**
         * The total number of free trial minutes that the account started with.
         */
        public var total: kotlin.Double? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.TrialMinutes) : this() {
            this.remaining = x.remaining
            this.total = x.total
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy