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

com.pulumi.azurenative.iotoperationsorchestrator.inputs.ComponentPropertiesArgs Maven / Gradle / Ivy

// *** 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.iotoperationsorchestrator.inputs;

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


/**
 * Defines a desired runtime component.
 * 
 */
public final class ComponentPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ComponentPropertiesArgs Empty = new ComponentPropertiesArgs();

    /**
     * Component dependencies.
     * 
     */
    @Import(name="dependencies")
    private @Nullable Output> dependencies;

    /**
     * @return Component dependencies.
     * 
     */
    public Optional>> dependencies() {
        return Optional.ofNullable(this.dependencies);
    }

    /**
     * Name of the component.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the component.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Properties of the component.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Properties of the component.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Component type.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Component type.
     * 
     */
    public Output type() {
        return this.type;
    }

    private ComponentPropertiesArgs() {}

    private ComponentPropertiesArgs(ComponentPropertiesArgs $) {
        this.dependencies = $.dependencies;
        this.name = $.name;
        this.properties = $.properties;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ComponentPropertiesArgs $;

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

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

        /**
         * @param dependencies Component dependencies.
         * 
         * @return builder
         * 
         */
        public Builder dependencies(@Nullable Output> dependencies) {
            $.dependencies = dependencies;
            return this;
        }

        /**
         * @param dependencies Component dependencies.
         * 
         * @return builder
         * 
         */
        public Builder dependencies(List dependencies) {
            return dependencies(Output.of(dependencies));
        }

        /**
         * @param dependencies Component dependencies.
         * 
         * @return builder
         * 
         */
        public Builder dependencies(String... dependencies) {
            return dependencies(List.of(dependencies));
        }

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

        /**
         * @param name Name of the component.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param properties Properties of the component.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Properties of the component.
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param type Component type.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Component type.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}