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

com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionNamesPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.apiextensions.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
 * 
 */
public final class CustomResourceDefinitionNamesPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomResourceDefinitionNamesPatchArgs Empty = new CustomResourceDefinitionNamesPatchArgs();

    /**
     * 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`.
     * 
     */
    @Import(name="categories")
    private @Nullable Output> categories;

    /**
     * @return 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`.
     * 
     */
    public Optional>> categories() {
        return Optional.ofNullable(this.categories);
    }

    /**
     * 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.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return 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.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * 
     */
    @Import(name="listKind")
    private @Nullable Output listKind;

    /**
     * @return listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * 
     */
    public Optional> listKind() {
        return Optional.ofNullable(this.listKind);
    }

    /**
     * plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
     * 
     */
    @Import(name="plural")
    private @Nullable Output plural;

    /**
     * @return plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
     * 
     */
    public Optional> plural() {
        return Optional.ofNullable(this.plural);
    }

    /**
     * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
     * 
     */
    @Import(name="shortNames")
    private @Nullable Output> shortNames;

    /**
     * @return shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
     * 
     */
    public Optional>> shortNames() {
        return Optional.ofNullable(this.shortNames);
    }

    /**
     * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * 
     */
    @Import(name="singular")
    private @Nullable Output singular;

    /**
     * @return singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * 
     */
    public Optional> singular() {
        return Optional.ofNullable(this.singular);
    }

    private CustomResourceDefinitionNamesPatchArgs() {}

    private CustomResourceDefinitionNamesPatchArgs(CustomResourceDefinitionNamesPatchArgs $) {
        this.categories = $.categories;
        this.kind = $.kind;
        this.listKind = $.listKind;
        this.plural = $.plural;
        this.shortNames = $.shortNames;
        this.singular = $.singular;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(CustomResourceDefinitionNamesPatchArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private CustomResourceDefinitionNamesPatchArgs $;

        public Builder() {
            $ = new CustomResourceDefinitionNamesPatchArgs();
        }

        public Builder(CustomResourceDefinitionNamesPatchArgs defaults) {
            $ = new CustomResourceDefinitionNamesPatchArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param 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`.
         * 
         * @return builder
         * 
         */
        public Builder categories(@Nullable Output> categories) {
            $.categories = categories;
            return this;
        }

        /**
         * @param 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`.
         * 
         * @return builder
         * 
         */
        public Builder categories(List categories) {
            return categories(Output.of(categories));
        }

        /**
         * @param 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`.
         * 
         * @return builder
         * 
         */
        public Builder categories(String... categories) {
            return categories(List.of(categories));
        }

        /**
         * @param 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.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param 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.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param listKind listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
         * 
         * @return builder
         * 
         */
        public Builder listKind(@Nullable Output listKind) {
            $.listKind = listKind;
            return this;
        }

        /**
         * @param listKind listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
         * 
         * @return builder
         * 
         */
        public Builder listKind(String listKind) {
            return listKind(Output.of(listKind));
        }

        /**
         * @param plural plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder plural(@Nullable Output plural) {
            $.plural = plural;
            return this;
        }

        /**
         * @param plural plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder plural(String plural) {
            return plural(Output.of(plural));
        }

        /**
         * @param shortNames shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder shortNames(@Nullable Output> shortNames) {
            $.shortNames = shortNames;
            return this;
        }

        /**
         * @param shortNames shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder shortNames(List shortNames) {
            return shortNames(Output.of(shortNames));
        }

        /**
         * @param shortNames shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder shortNames(String... shortNames) {
            return shortNames(List.of(shortNames));
        }

        /**
         * @param singular singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
         * 
         * @return builder
         * 
         */
        public Builder singular(@Nullable Output singular) {
            $.singular = singular;
            return this;
        }

        /**
         * @param singular singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
         * 
         * @return builder
         * 
         */
        public Builder singular(String singular) {
            return singular(Output.of(singular));
        }

        public CustomResourceDefinitionNamesPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy