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

com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionNamesPatch 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.v1beta1.outputs;

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

@CustomType
public final class CustomResourceDefinitionNamesPatch {
    /**
     * @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`.
     * 
     */
    private @Nullable List categories;
    /**
     * @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.
     * 
     */
    private @Nullable String kind;
    /**
     * @return listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * 
     */
    private @Nullable String listKind;
    /**
     * @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.
     * 
     */
    private @Nullable String plural;
    /**
     * @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.
     * 
     */
    private @Nullable List shortNames;
    /**
     * @return singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * 
     */
    private @Nullable String singular;

    private CustomResourceDefinitionNamesPatch() {}
    /**
     * @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 List categories() {
        return this.categories == null ? List.of() : this.categories;
    }
    /**
     * @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);
    }
    /**
     * @return listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * 
     */
    public Optional listKind() {
        return Optional.ofNullable(this.listKind);
    }
    /**
     * @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);
    }
    /**
     * @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 List shortNames() {
        return this.shortNames == null ? List.of() : this.shortNames;
    }
    /**
     * @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);
    }

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

    public static Builder builder(CustomResourceDefinitionNamesPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List categories;
        private @Nullable String kind;
        private @Nullable String listKind;
        private @Nullable String plural;
        private @Nullable List shortNames;
        private @Nullable String singular;
        public Builder() {}
        public Builder(CustomResourceDefinitionNamesPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.categories = defaults.categories;
    	      this.kind = defaults.kind;
    	      this.listKind = defaults.listKind;
    	      this.plural = defaults.plural;
    	      this.shortNames = defaults.shortNames;
    	      this.singular = defaults.singular;
        }

        @CustomType.Setter
        public Builder categories(@Nullable List categories) {

            this.categories = categories;
            return this;
        }
        public Builder categories(String... categories) {
            return categories(List.of(categories));
        }
        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder listKind(@Nullable String listKind) {

            this.listKind = listKind;
            return this;
        }
        @CustomType.Setter
        public Builder plural(@Nullable String plural) {

            this.plural = plural;
            return this;
        }
        @CustomType.Setter
        public Builder shortNames(@Nullable List shortNames) {

            this.shortNames = shortNames;
            return this;
        }
        public Builder shortNames(String... shortNames) {
            return shortNames(List.of(shortNames));
        }
        @CustomType.Setter
        public Builder singular(@Nullable String singular) {

            this.singular = singular;
            return this;
        }
        public CustomResourceDefinitionNamesPatch build() {
            final var _resultValue = new CustomResourceDefinitionNamesPatch();
            _resultValue.categories = categories;
            _resultValue.kind = kind;
            _resultValue.listKind = listKind;
            _resultValue.plural = plural;
            _resultValue.shortNames = shortNames;
            _resultValue.singular = singular;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy