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

com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionVersionPatchArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceColumnDefinitionPatchArgs;
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceSubresourcesPatchArgs;
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationPatchArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * CustomResourceDefinitionVersion describes a version for CRD.
 * 
 */
public final class CustomResourceDefinitionVersionPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomResourceDefinitionVersionPatchArgs Empty = new CustomResourceDefinitionVersionPatchArgs();

    /**
     * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * 
     */
    @Import(name="additionalPrinterColumns")
    private @Nullable Output> additionalPrinterColumns;

    /**
     * @return additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * 
     */
    public Optional>> additionalPrinterColumns() {
        return Optional.ofNullable(this.additionalPrinterColumns);
    }

    /**
     * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
     * 
     */
    @Import(name="deprecated")
    private @Nullable Output deprecated;

    /**
     * @return deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
     * 
     */
    public Optional> deprecated() {
        return Optional.ofNullable(this.deprecated);
    }

    /**
     * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
     * 
     */
    @Import(name="deprecationWarning")
    private @Nullable Output deprecationWarning;

    /**
     * @return deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
     * 
     */
    public Optional> deprecationWarning() {
        return Optional.ofNullable(this.deprecationWarning);
    }

    /**
     * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead).
     * 
     */
    @Import(name="schema")
    private @Nullable Output schema;

    /**
     * @return schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead).
     * 
     */
    public Optional> schema() {
        return Optional.ofNullable(this.schema);
    }

    /**
     * served is a flag enabling/disabling this version from being served via REST APIs
     * 
     */
    @Import(name="served")
    private @Nullable Output served;

    /**
     * @return served is a flag enabling/disabling this version from being served via REST APIs
     * 
     */
    public Optional> served() {
        return Optional.ofNullable(this.served);
    }

    /**
     * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
     * 
     */
    @Import(name="storage")
    private @Nullable Output storage;

    /**
     * @return storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
     * 
     */
    public Optional> storage() {
        return Optional.ofNullable(this.storage);
    }

    /**
     * subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead).
     * 
     */
    @Import(name="subresources")
    private @Nullable Output subresources;

    /**
     * @return subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead).
     * 
     */
    public Optional> subresources() {
        return Optional.ofNullable(this.subresources);
    }

    private CustomResourceDefinitionVersionPatchArgs() {}

    private CustomResourceDefinitionVersionPatchArgs(CustomResourceDefinitionVersionPatchArgs $) {
        this.additionalPrinterColumns = $.additionalPrinterColumns;
        this.deprecated = $.deprecated;
        this.deprecationWarning = $.deprecationWarning;
        this.name = $.name;
        this.schema = $.schema;
        this.served = $.served;
        this.storage = $.storage;
        this.subresources = $.subresources;
    }

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

    public static final class Builder {
        private CustomResourceDefinitionVersionPatchArgs $;

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

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

        /**
         * @param additionalPrinterColumns additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
         * 
         * @return builder
         * 
         */
        public Builder additionalPrinterColumns(@Nullable Output> additionalPrinterColumns) {
            $.additionalPrinterColumns = additionalPrinterColumns;
            return this;
        }

        /**
         * @param additionalPrinterColumns additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
         * 
         * @return builder
         * 
         */
        public Builder additionalPrinterColumns(List additionalPrinterColumns) {
            return additionalPrinterColumns(Output.of(additionalPrinterColumns));
        }

        /**
         * @param additionalPrinterColumns additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
         * 
         * @return builder
         * 
         */
        public Builder additionalPrinterColumns(CustomResourceColumnDefinitionPatchArgs... additionalPrinterColumns) {
            return additionalPrinterColumns(List.of(additionalPrinterColumns));
        }

        /**
         * @param deprecated deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder deprecated(@Nullable Output deprecated) {
            $.deprecated = deprecated;
            return this;
        }

        /**
         * @param deprecated deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder deprecated(Boolean deprecated) {
            return deprecated(Output.of(deprecated));
        }

        /**
         * @param deprecationWarning deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
         * 
         * @return builder
         * 
         */
        public Builder deprecationWarning(@Nullable Output deprecationWarning) {
            $.deprecationWarning = deprecationWarning;
            return this;
        }

        /**
         * @param deprecationWarning deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
         * 
         * @return builder
         * 
         */
        public Builder deprecationWarning(String deprecationWarning) {
            return deprecationWarning(Output.of(deprecationWarning));
        }

        /**
         * @param name name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param schema schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead).
         * 
         * @return builder
         * 
         */
        public Builder schema(@Nullable Output schema) {
            $.schema = schema;
            return this;
        }

        /**
         * @param schema schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead).
         * 
         * @return builder
         * 
         */
        public Builder schema(CustomResourceValidationPatchArgs schema) {
            return schema(Output.of(schema));
        }

        /**
         * @param served served is a flag enabling/disabling this version from being served via REST APIs
         * 
         * @return builder
         * 
         */
        public Builder served(@Nullable Output served) {
            $.served = served;
            return this;
        }

        /**
         * @param served served is a flag enabling/disabling this version from being served via REST APIs
         * 
         * @return builder
         * 
         */
        public Builder served(Boolean served) {
            return served(Output.of(served));
        }

        /**
         * @param storage storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
         * 
         * @return builder
         * 
         */
        public Builder storage(@Nullable Output storage) {
            $.storage = storage;
            return this;
        }

        /**
         * @param storage storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
         * 
         * @return builder
         * 
         */
        public Builder storage(Boolean storage) {
            return storage(Output.of(storage));
        }

        /**
         * @param subresources subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead).
         * 
         * @return builder
         * 
         */
        public Builder subresources(@Nullable Output subresources) {
            $.subresources = subresources;
            return this;
        }

        /**
         * @param subresources subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead).
         * 
         * @return builder
         * 
         */
        public Builder subresources(CustomResourceSubresourcesPatchArgs subresources) {
            return subresources(Output.of(subresources));
        }

        public CustomResourceDefinitionVersionPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy