All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.batch.model.EksSecret.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 `secret` volume. For more information, see [secret](https://kubernetes.io/docs/concepts/storage/volumes/#secret) in the *Kubernetes documentation*.
 */
public class EksSecret private constructor(builder: Builder) {
    /**
     * Specifies whether the secret or the secret's keys must be defined.
     */
    public val optional: kotlin.Boolean? = builder.optional
    /**
     * The name of the secret. The name must be allowed as a DNS subdomain name. For more information, see [DNS subdomain names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names) in the *Kubernetes documentation*.
     */
    public val secretName: kotlin.String? = builder.secretName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.EksSecret = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("EksSecret(")
        append("optional=$optional,")
        append("secretName=$secretName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = optional?.hashCode() ?: 0
        result = 31 * result + (secretName?.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 EksSecret

        if (optional != other.optional) return false
        if (secretName != other.secretName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.EksSecret = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Specifies whether the secret or the secret's keys must be defined.
         */
        public var optional: kotlin.Boolean? = null
        /**
         * The name of the secret. The name must be allowed as a DNS subdomain name. For more information, see [DNS subdomain names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names) in the *Kubernetes documentation*.
         */
        public var secretName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.batch.model.EksSecret) : this() {
            this.optional = x.optional
            this.secretName = x.secretName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.batch.model.EksSecret = EksSecret(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy