
commonMain.aws.sdk.kotlin.services.batch.model.Ulimit.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.batch.model
/**
* The `ulimit` settings to pass to the container.
*
* This object isn't applicable to jobs that are running on Fargate resources.
*/
public class Ulimit private constructor(builder: Builder) {
/**
* The hard limit for the `ulimit` type.
*/
public val hardLimit: kotlin.Int? = builder.hardLimit
/**
* The `type` of the `ulimit`.
*/
public val name: kotlin.String? = builder.name
/**
* The soft limit for the `ulimit` type.
*/
public val softLimit: kotlin.Int? = builder.softLimit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.Ulimit = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Ulimit(")
append("hardLimit=$hardLimit,")
append("name=$name,")
append("softLimit=$softLimit")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = hardLimit ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (softLimit ?: 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 Ulimit
if (hardLimit != other.hardLimit) return false
if (name != other.name) return false
if (softLimit != other.softLimit) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.Ulimit = Builder(this).apply(block).build()
public class Builder {
/**
* The hard limit for the `ulimit` type.
*/
public var hardLimit: kotlin.Int? = null
/**
* The `type` of the `ulimit`.
*/
public var name: kotlin.String? = null
/**
* The soft limit for the `ulimit` type.
*/
public var softLimit: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.Ulimit) : this() {
this.hardLimit = x.hardLimit
this.name = x.name
this.softLimit = x.softLimit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.Ulimit = Ulimit(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy