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

com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.inputs.CustomResourceDefinitionNamesArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
 * @property categories categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
 * @property kind kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
 * @property listKind listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
 * @property plural plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.
 * @property shortNames shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.
 * @property singular singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
 */
public data class CustomResourceDefinitionNamesArgs(
    public val categories: Output>? = null,
    public val kind: Output,
    public val listKind: Output? = null,
    public val plural: Output,
    public val shortNames: Output>? = null,
    public val singular: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesArgs =
        com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesArgs.builder()
            .categories(categories?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .kind(kind.applyValue({ args0 -> args0 }))
            .listKind(listKind?.applyValue({ args0 -> args0 }))
            .plural(plural.applyValue({ args0 -> args0 }))
            .shortNames(shortNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .singular(singular?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CustomResourceDefinitionNamesArgs].
 */
@PulumiTagMarker
public class CustomResourceDefinitionNamesArgsBuilder internal constructor() {
    private var categories: Output>? = null

    private var kind: Output? = null

    private var listKind: Output? = null

    private var plural: Output? = null

    private var shortNames: Output>? = null

    private var singular: Output? = null

    /**
     * @param value categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
     */
    @JvmName("yxodamnyulwdojgu")
    public suspend fun categories(`value`: Output>) {
        this.categories = value
    }

    @JvmName("anxrdrdarfkwsnos")
    public suspend fun categories(vararg values: Output) {
        this.categories = Output.all(values.asList())
    }

    /**
     * @param values categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
     */
    @JvmName("ahpwbxltifmlmpvw")
    public suspend fun categories(values: List>) {
        this.categories = Output.all(values)
    }

    /**
     * @param value kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
     */
    @JvmName("nlobqwvapacffswy")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     */
    @JvmName("cqonosocogwhgdux")
    public suspend fun listKind(`value`: Output) {
        this.listKind = value
    }

    /**
     * @param value plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.
     */
    @JvmName("emulhtsfhitccajk")
    public suspend fun plural(`value`: Output) {
        this.plural = value
    }

    /**
     * @param value shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.
     */
    @JvmName("rmghukdfjpqeqggs")
    public suspend fun shortNames(`value`: Output>) {
        this.shortNames = value
    }

    @JvmName("pbjiqhsfjqcorqbu")
    public suspend fun shortNames(vararg values: Output) {
        this.shortNames = Output.all(values.asList())
    }

    /**
     * @param values shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.
     */
    @JvmName("npkvcemiovgcuxam")
    public suspend fun shortNames(values: List>) {
        this.shortNames = Output.all(values)
    }

    /**
     * @param value singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     */
    @JvmName("gspergnbevhqyepi")
    public suspend fun singular(`value`: Output) {
        this.singular = value
    }

    /**
     * @param value categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
     */
    @JvmName("dredayafgtmnefis")
    public suspend fun categories(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.categories = mapped
    }

    /**
     * @param values categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
     */
    @JvmName("xjleatpfmxhhpqaf")
    public suspend fun categories(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.categories = mapped
    }

    /**
     * @param value kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
     */
    @JvmName("kxsljknwvdvpfkto")
    public suspend fun kind(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     */
    @JvmName("nqevaovuhyiisrdd")
    public suspend fun listKind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.listKind = mapped
    }

    /**
     * @param value plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.
     */
    @JvmName("vmcjjlmpdwnnvivs")
    public suspend fun plural(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.plural = mapped
    }

    /**
     * @param value shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.
     */
    @JvmName("xpmeahibsqyrlcsb")
    public suspend fun shortNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shortNames = mapped
    }

    /**
     * @param values shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.
     */
    @JvmName("oyjjvdsurfijmlts")
    public suspend fun shortNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.shortNames = mapped
    }

    /**
     * @param value singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     */
    @JvmName("ylmauwmjkobeajgg")
    public suspend fun singular(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.singular = mapped
    }

    internal fun build(): CustomResourceDefinitionNamesArgs = CustomResourceDefinitionNamesArgs(
        categories = categories,
        kind = kind ?: throw PulumiNullFieldException("kind"),
        listKind = listKind,
        plural = plural ?: throw PulumiNullFieldException("plural"),
        shortNames = shortNames,
        singular = singular,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy