
commonMain.aws.sdk.kotlin.services.emrserverless.model.TotalResourceUtilization.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
/**
* The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated, rounded up to the nearest second.
*/
public class TotalResourceUtilization private constructor(builder: Builder) {
/**
* The aggregated memory used per hour from the time job start executing till the time job is terminated.
*/
public val memoryGbHour: kotlin.Double? = builder.memoryGbHour
/**
* The aggregated storage used per hour from the time job start executing till the time job is terminated.
*/
public val storageGbHour: kotlin.Double? = builder.storageGbHour
/**
* The aggregated vCPU used per hour from the time job start executing till the time job is terminated.
*/
public val vCpuHour: kotlin.Double? = builder.vCpuHour
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrserverless.model.TotalResourceUtilization = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TotalResourceUtilization(")
append("memoryGbHour=$memoryGbHour,")
append("storageGbHour=$storageGbHour,")
append("vCpuHour=$vCpuHour")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = memoryGbHour?.hashCode() ?: 0
result = 31 * result + (storageGbHour?.hashCode() ?: 0)
result = 31 * result + (vCpuHour?.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 TotalResourceUtilization
if (memoryGbHour != other.memoryGbHour) return false
if (storageGbHour != other.storageGbHour) return false
if (vCpuHour != other.vCpuHour) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.TotalResourceUtilization = Builder(this).apply(block).build()
public class Builder {
/**
* The aggregated memory used per hour from the time job start executing till the time job is terminated.
*/
public var memoryGbHour: kotlin.Double? = null
/**
* The aggregated storage used per hour from the time job start executing till the time job is terminated.
*/
public var storageGbHour: kotlin.Double? = null
/**
* The aggregated vCPU used per hour from the time job start executing till the time job is terminated.
*/
public var vCpuHour: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.TotalResourceUtilization) : this() {
this.memoryGbHour = x.memoryGbHour
this.storageGbHour = x.storageGbHour
this.vCpuHour = x.vCpuHour
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.TotalResourceUtilization = TotalResourceUtilization(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy