
commonMain.aws.sdk.kotlin.services.batch.model.Tmpfs.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.batch.model
/**
* The container path, mount options, and size of the `tmpfs` mount.
*
* This object isn't applicable to jobs that are running on Fargate resources.
*/
public class Tmpfs private constructor(builder: Builder) {
/**
* The absolute file path in the container where the `tmpfs` volume is mounted.
*/
public val containerPath: kotlin.String? = builder.containerPath
/**
* The list of `tmpfs` volume mount options.
*
* Valid values: "`defaults`" | "`ro`" | "`rw`" | "`suid`" | "`nosuid`" | "`dev`" | "`nodev`" | "`exec`" | "`noexec`" | "`sync`" | "`async`" | "`dirsync`" | "`remount`" | "`mand`" | "`nomand`" | "`atime`" | "`noatime`" | "`diratime`" | "`nodiratime`" | "`bind`" | "`rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime`" | "`norelatime`" | "`strictatime`" | "`nostrictatime`" | "`mode`" | "`uid`" | "`gid`" | "`nr_inodes`" | "`nr_blocks`" | "`mpol`"
*/
public val mountOptions: List? = builder.mountOptions
/**
* The size (in MiB) of the `tmpfs` volume.
*/
public val size: kotlin.Int? = builder.size
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.Tmpfs = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Tmpfs(")
append("containerPath=$containerPath,")
append("mountOptions=$mountOptions,")
append("size=$size")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = containerPath?.hashCode() ?: 0
result = 31 * result + (mountOptions?.hashCode() ?: 0)
result = 31 * result + (size ?: 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 Tmpfs
if (containerPath != other.containerPath) return false
if (mountOptions != other.mountOptions) return false
if (size != other.size) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.Tmpfs = Builder(this).apply(block).build()
public class Builder {
/**
* The absolute file path in the container where the `tmpfs` volume is mounted.
*/
public var containerPath: kotlin.String? = null
/**
* The list of `tmpfs` volume mount options.
*
* Valid values: "`defaults`" | "`ro`" | "`rw`" | "`suid`" | "`nosuid`" | "`dev`" | "`nodev`" | "`exec`" | "`noexec`" | "`sync`" | "`async`" | "`dirsync`" | "`remount`" | "`mand`" | "`nomand`" | "`atime`" | "`noatime`" | "`diratime`" | "`nodiratime`" | "`bind`" | "`rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime`" | "`norelatime`" | "`strictatime`" | "`nostrictatime`" | "`mode`" | "`uid`" | "`gid`" | "`nr_inodes`" | "`nr_blocks`" | "`mpol`"
*/
public var mountOptions: List? = null
/**
* The size (in MiB) of the `tmpfs` volume.
*/
public var size: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.Tmpfs) : this() {
this.containerPath = x.containerPath
this.mountOptions = x.mountOptions
this.size = x.size
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.Tmpfs = Tmpfs(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy