commonMain.aws.sdk.kotlin.services.devicefarm.model.TrialMinutes.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* 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?.equals(other.remaining) ?: (other.remaining == null))) return false
if (!(total?.equals(other.total) ?: (other.total == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.TrialMinutes = Builder(this).apply(block).build()
@SdkDsl
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)
internal fun correctErrors(): Builder {
return this
}
}
}