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

com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.inputs.CustomResourceDefinitionNamesPatchArgs.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.PulumiTagMarker
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesPatchArgs.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 CustomResourceDefinitionNamesPatchArgs(
    public val categories: Output>? = null,
    public val kind: Output? = null,
    public val listKind: Output? = null,
    public val plural: Output? = null,
    public val shortNames: Output>? = null,
    public val singular: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesPatchArgs =
        com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesPatchArgs.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 [CustomResourceDefinitionNamesPatchArgs].
 */
@PulumiTagMarker
public class CustomResourceDefinitionNamesPatchArgsBuilder 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("wfcjxyxemrhnrpuf")
    public suspend fun categories(`value`: Output>) {
        this.categories = value
    }

    @JvmName("rstdkmlsybtvxoup")
    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("gkloolwphmxtcfog")
    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("wpvroftvqvvhyqvt")
    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("anrqsqhacbouekew")
    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("evegpcudvhvxgygj")
    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("lkqyeyuvuftsrlcd")
    public suspend fun shortNames(`value`: Output>) {
        this.shortNames = value
    }

    @JvmName("lqtsxhwqnliyqyvn")
    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("omeginsppmawoeac")
    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("nnfdujrsicyutqkg")
    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("cpmdrdvhhjrxpotj")
    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("dxbqbdtuwgxokpbe")
    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("oaqgkndvoaseswjm")
    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("lrvltccwfheupkor")
    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("yeodafkeijuowusy")
    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("mmpmycqcdfxrewxy")
    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("lmolxnmvcihucuxm")
    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("jxrwkuuvonkrufkm")
    public suspend fun singular(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.singular = mapped
    }

    internal fun build(): CustomResourceDefinitionNamesPatchArgs =
        CustomResourceDefinitionNamesPatchArgs(
            categories = categories,
            kind = kind,
            listKind = listKind,
            plural = plural,
            shortNames = shortNames,
            singular = singular,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy