
commonMain.aws.sdk.kotlin.services.batch.model.EksHostPath.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.batch.model
/**
* Specifies the configuration of a Kubernetes `hostPath` volume. A `hostPath` volume mounts an existing file or directory from the host node's filesystem into your pod. For more information, see [hostPath](https://kubernetes.io/docs/concepts/storage/volumes/#hostpath) in the *Kubernetes documentation*.
*/
public class EksHostPath private constructor(builder: Builder) {
/**
* The path of the file or directory on the host to mount into containers on the pod.
*/
public val path: kotlin.String? = builder.path
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.EksHostPath = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EksHostPath(")
append("path=$path")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = path?.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 EksHostPath
if (path != other.path) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.EksHostPath = Builder(this).apply(block).build()
public class Builder {
/**
* The path of the file or directory on the host to mount into containers on the pod.
*/
public var path: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.EksHostPath) : this() {
this.path = x.path
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.EksHostPath = EksHostPath(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy