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

com.pulumi.azurenative.app.DotNetComponentArgs 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.DotNetComponentType;
import com.pulumi.azurenative.app.inputs.DotNetComponentConfigurationPropertyArgs;
import com.pulumi.azurenative.app.inputs.DotNetComponentServiceBindArgs;
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 DotNetComponentArgs extends com.pulumi.resources.ResourceArgs {

    public static final DotNetComponentArgs Empty = new DotNetComponentArgs();

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

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

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

    /**
     * @return List of .NET 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 .NET Component.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the .NET 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 .NET Components that are bound to the .NET component
     * 
     */
    @Import(name="serviceBinds")
    private @Nullable Output> serviceBinds;

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

    private DotNetComponentArgs() {}

    private DotNetComponentArgs(DotNetComponentArgs $) {
        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(DotNetComponentArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DotNetComponentArgs $;

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

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

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

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

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

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

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

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

        /**
         * @param configurations List of .NET Components configuration properties
         * 
         * @return builder
         * 
         */
        public Builder configurations(DotNetComponentConfigurationPropertyArgs... 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 .NET Component.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the .NET 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 .NET Components that are bound to the .NET component
         * 
         * @return builder
         * 
         */
        public Builder serviceBinds(@Nullable Output> serviceBinds) {
            $.serviceBinds = serviceBinds;
            return this;
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy