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

com.pulumi.azurenative.compute.inputs.GalleryApplicationCustomActionParameterArgs 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.compute.inputs;

import com.pulumi.azurenative.compute.enums.GalleryApplicationCustomActionParameterType;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 definition of a parameter that can be passed to a custom action of a Gallery Application Version.
 * 
 */
public final class GalleryApplicationCustomActionParameterArgs extends com.pulumi.resources.ResourceArgs {

    public static final GalleryApplicationCustomActionParameterArgs Empty = new GalleryApplicationCustomActionParameterArgs();

    /**
     * The default value of the parameter.  Only applies to string types
     * 
     */
    @Import(name="defaultValue")
    private @Nullable Output defaultValue;

    /**
     * @return The default value of the parameter.  Only applies to string types
     * 
     */
    public Optional> defaultValue() {
        return Optional.ofNullable(this.defaultValue);
    }

    /**
     * A description to help users understand what this parameter means
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description to help users understand what this parameter means
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the custom action.  Must be unique within the Gallery Application Version.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the custom action.  Must be unique within the Gallery Application Version.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Indicates whether this parameter must be passed when running the custom action.
     * 
     */
    @Import(name="required")
    private @Nullable Output required;

    /**
     * @return Indicates whether this parameter must be passed when running the custom action.
     * 
     */
    public Optional> required() {
        return Optional.ofNullable(this.required);
    }

    /**
     * Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private GalleryApplicationCustomActionParameterArgs() {}

    private GalleryApplicationCustomActionParameterArgs(GalleryApplicationCustomActionParameterArgs $) {
        this.defaultValue = $.defaultValue;
        this.description = $.description;
        this.name = $.name;
        this.required = $.required;
        this.type = $.type;
    }

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

    public static final class Builder {
        private GalleryApplicationCustomActionParameterArgs $;

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

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

        /**
         * @param defaultValue The default value of the parameter.  Only applies to string types
         * 
         * @return builder
         * 
         */
        public Builder defaultValue(@Nullable Output defaultValue) {
            $.defaultValue = defaultValue;
            return this;
        }

        /**
         * @param defaultValue The default value of the parameter.  Only applies to string types
         * 
         * @return builder
         * 
         */
        public Builder defaultValue(String defaultValue) {
            return defaultValue(Output.of(defaultValue));
        }

        /**
         * @param description A description to help users understand what this parameter means
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description to help users understand what this parameter means
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name of the custom action.  Must be unique within the Gallery Application Version.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the custom action.  Must be unique within the Gallery Application Version.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param required Indicates whether this parameter must be passed when running the custom action.
         * 
         * @return builder
         * 
         */
        public Builder required(@Nullable Output required) {
            $.required = required;
            return this;
        }

        /**
         * @param required Indicates whether this parameter must be passed when running the custom action.
         * 
         * @return builder
         * 
         */
        public Builder required(Boolean required) {
            return required(Output.of(required));
        }

        /**
         * @param type Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob
         * 
         * @return builder
         * 
         */
        public Builder type(GalleryApplicationCustomActionParameterType type) {
            return type(Output.of(type));
        }

        public GalleryApplicationCustomActionParameterArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GalleryApplicationCustomActionParameterArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy