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

com.pulumi.azurenative.app.JavaComponentArgs 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.app;

import com.pulumi.azurenative.app.enums.JavaComponentType;
import com.pulumi.azurenative.app.inputs.JavaComponentConfigurationPropertyArgs;
import com.pulumi.azurenative.app.inputs.JavaComponentServiceBindArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class JavaComponentArgs extends com.pulumi.resources.ResourceArgs {

    public static final JavaComponentArgs Empty = new JavaComponentArgs();

    /**
     * Type of the Java Component.
     * 
     */
    @Import(name="componentType")
    private @Nullable Output> componentType;

    /**
     * @return Type of the Java Component.
     * 
     */
    public Optional>> componentType() {
        return Optional.ofNullable(this.componentType);
    }

    /**
     * List of Java Components configuration properties
     * 
     */
    @Import(name="configurations")
    private @Nullable Output> configurations;

    /**
     * @return List of Java Components configuration properties
     * 
     */
    public Optional>> configurations() {
        return Optional.ofNullable(this.configurations);
    }

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

    /**
     * @return Name of the Managed Environment.
     * 
     */
    public Output environmentName() {
        return this.environmentName;
    }

    /**
     * Name of the Java Component.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the Java Component.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * List of Java Components that are bound to the Java component
     * 
     */
    @Import(name="serviceBinds")
    private @Nullable Output> serviceBinds;

    /**
     * @return List of Java Components that are bound to the Java component
     * 
     */
    public Optional>> serviceBinds() {
        return Optional.ofNullable(this.serviceBinds);
    }

    private JavaComponentArgs() {}

    private JavaComponentArgs(JavaComponentArgs $) {
        this.componentType = $.componentType;
        this.configurations = $.configurations;
        this.environmentName = $.environmentName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceBinds = $.serviceBinds;
    }

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

    public static final class Builder {
        private JavaComponentArgs $;

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

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

        /**
         * @param componentType Type of the Java Component.
         * 
         * @return builder
         * 
         */
        public Builder componentType(@Nullable Output> componentType) {
            $.componentType = componentType;
            return this;
        }

        /**
         * @param componentType Type of the Java Component.
         * 
         * @return builder
         * 
         */
        public Builder componentType(Either componentType) {
            return componentType(Output.of(componentType));
        }

        /**
         * @param componentType Type of the Java Component.
         * 
         * @return builder
         * 
         */
        public Builder componentType(String componentType) {
            return componentType(Either.ofLeft(componentType));
        }

        /**
         * @param componentType Type of the Java Component.
         * 
         * @return builder
         * 
         */
        public Builder componentType(JavaComponentType componentType) {
            return componentType(Either.ofRight(componentType));
        }

        /**
         * @param configurations List of Java Components configuration properties
         * 
         * @return builder
         * 
         */
        public Builder configurations(@Nullable Output> configurations) {
            $.configurations = configurations;
            return this;
        }

        /**
         * @param configurations List of Java Components configuration properties
         * 
         * @return builder
         * 
         */
        public Builder configurations(List configurations) {
            return configurations(Output.of(configurations));
        }

        /**
         * @param configurations List of Java Components configuration properties
         * 
         * @return builder
         * 
         */
        public Builder configurations(JavaComponentConfigurationPropertyArgs... configurations) {
            return configurations(List.of(configurations));
        }

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

        /**
         * @param environmentName Name of the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(String environmentName) {
            return environmentName(Output.of(environmentName));
        }

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

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serviceBinds List of Java Components that are bound to the Java component
         * 
         * @return builder
         * 
         */
        public Builder serviceBinds(@Nullable Output> serviceBinds) {
            $.serviceBinds = serviceBinds;
            return this;
        }

        /**
         * @param serviceBinds List of Java Components that are bound to the Java component
         * 
         * @return builder
         * 
         */
        public Builder serviceBinds(List serviceBinds) {
            return serviceBinds(Output.of(serviceBinds));
        }

        /**
         * @param serviceBinds List of Java Components that are bound to the Java component
         * 
         * @return builder
         * 
         */
        public Builder serviceBinds(JavaComponentServiceBindArgs... serviceBinds) {
            return serviceBinds(List.of(serviceBinds));
        }

        public JavaComponentArgs build() {
            if ($.environmentName == null) {
                throw new MissingRequiredPropertyException("JavaComponentArgs", "environmentName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("JavaComponentArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy