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

com.pulumi.azurenative.containerregistry.inputs.SetValueArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.containerregistry.inputs;

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


/**
 * The properties of a overridable value that can be passed to a task template.
 * 
 */
public final class SetValueArgs extends com.pulumi.resources.ResourceArgs {

    public static final SetValueArgs Empty = new SetValueArgs();

    /**
     * Flag to indicate whether the value represents a secret or not.
     * 
     */
    @Import(name="isSecret")
    private @Nullable Output isSecret;

    /**
     * @return Flag to indicate whether the value represents a secret or not.
     * 
     */
    public Optional> isSecret() {
        return Optional.ofNullable(this.isSecret);
    }

    /**
     * The name of the overridable value.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the overridable value.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The overridable value.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The overridable value.
     * 
     */
    public Output value() {
        return this.value;
    }

    private SetValueArgs() {}

    private SetValueArgs(SetValueArgs $) {
        this.isSecret = $.isSecret;
        this.name = $.name;
        this.value = $.value;
    }

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

    public static final class Builder {
        private SetValueArgs $;

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

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

        /**
         * @param isSecret Flag to indicate whether the value represents a secret or not.
         * 
         * @return builder
         * 
         */
        public Builder isSecret(@Nullable Output isSecret) {
            $.isSecret = isSecret;
            return this;
        }

        /**
         * @param isSecret Flag to indicate whether the value represents a secret or not.
         * 
         * @return builder
         * 
         */
        public Builder isSecret(Boolean isSecret) {
            return isSecret(Output.of(isSecret));
        }

        /**
         * @param name The name of the overridable value.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the overridable value.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param value The overridable value.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The overridable value.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public SetValueArgs build() {
            $.isSecret = Codegen.booleanProp("isSecret").output().arg($.isSecret).def(false).getNullable();
            if ($.name == null) {
                throw new MissingRequiredPropertyException("SetValueArgs", "name");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("SetValueArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy