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

com.pulumi.azurenative.kubernetesconfiguration.inputs.SubstituteFromDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurenative.kubernetesconfiguration.inputs;

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


/**
 * Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.
 * 
 */
public final class SubstituteFromDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final SubstituteFromDefinitionArgs Empty = new SubstituteFromDefinitionArgs();

    /**
     * Define whether it is ConfigMap or Secret that holds the variables to be used in substitution.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Define whether it is ConfigMap or Secret that holds the variables to be used in substitution.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Name of the ConfigMap/Secret that holds the variables to be used in substitution.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the ConfigMap/Secret that holds the variables to be used in substitution.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Set to True to proceed without ConfigMap/Secret, if it is not present.
     * 
     */
    @Import(name="optional")
    private @Nullable Output optional;

    /**
     * @return Set to True to proceed without ConfigMap/Secret, if it is not present.
     * 
     */
    public Optional> optional() {
        return Optional.ofNullable(this.optional);
    }

    private SubstituteFromDefinitionArgs() {}

    private SubstituteFromDefinitionArgs(SubstituteFromDefinitionArgs $) {
        this.kind = $.kind;
        this.name = $.name;
        this.optional = $.optional;
    }

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

    public static final class Builder {
        private SubstituteFromDefinitionArgs $;

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

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

        /**
         * @param kind Define whether it is ConfigMap or Secret that holds the variables to be used in substitution.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Define whether it is ConfigMap or Secret that holds the variables to be used in substitution.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param name Name of the ConfigMap/Secret that holds the variables to be used in substitution.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the ConfigMap/Secret that holds the variables to be used in substitution.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param optional Set to True to proceed without ConfigMap/Secret, if it is not present.
         * 
         * @return builder
         * 
         */
        public Builder optional(@Nullable Output optional) {
            $.optional = optional;
            return this;
        }

        /**
         * @param optional Set to True to proceed without ConfigMap/Secret, if it is not present.
         * 
         * @return builder
         * 
         */
        public Builder optional(Boolean optional) {
            return optional(Output.of(optional));
        }

        public SubstituteFromDefinitionArgs build() {
            $.optional = Codegen.booleanProp("optional").output().arg($.optional).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy