commonMain.aws.sdk.kotlin.services.emrserverless.model.ResourceUtilization.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrserverless-jvm Show documentation
Show all versions of emrserverless-jvm Show documentation
The AWS SDK for Kotlin client for EMR Serverless
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The resource utilization for memory, storage, and vCPU for jobs.
*/
public class ResourceUtilization private constructor(builder: Builder) {
/**
* The aggregated memory used per hour from the time the job starts executing until the job is terminated.
*/
public val memoryGbHour: kotlin.Double? = builder.memoryGbHour
/**
* The aggregated storage used per hour from the time the job starts executing until the job is terminated.
*/
public val storageGbHour: kotlin.Double? = builder.storageGbHour
/**
* The aggregated vCPU used per hour from the time the job starts executing until the 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.ResourceUtilization = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceUtilization(")
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 ResourceUtilization
if (!(memoryGbHour?.equals(other.memoryGbHour) ?: (other.memoryGbHour == null))) return false
if (!(storageGbHour?.equals(other.storageGbHour) ?: (other.storageGbHour == null))) return false
if (!(vCpuHour?.equals(other.vCpuHour) ?: (other.vCpuHour == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.ResourceUtilization = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The aggregated memory used per hour from the time the job starts executing until the job is terminated.
*/
public var memoryGbHour: kotlin.Double? = null
/**
* The aggregated storage used per hour from the time the job starts executing until the job is terminated.
*/
public var storageGbHour: kotlin.Double? = null
/**
* The aggregated vCPU used per hour from the time the job starts executing until the job is terminated.
*/
public var vCpuHour: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.ResourceUtilization) : this() {
this.memoryGbHour = x.memoryGbHour
this.storageGbHour = x.storageGbHour
this.vCpuHour = x.vCpuHour
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.ResourceUtilization = ResourceUtilization(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy