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

com.pulumi.azurenative.workloads.SAPVirtualInstanceArgs 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.workloads;

import com.pulumi.azurenative.workloads.enums.SAPEnvironmentType;
import com.pulumi.azurenative.workloads.enums.SAPProductType;
import com.pulumi.azurenative.workloads.inputs.DeploymentConfigurationArgs;
import com.pulumi.azurenative.workloads.inputs.DeploymentWithOSConfigurationArgs;
import com.pulumi.azurenative.workloads.inputs.DiscoveryConfigurationArgs;
import com.pulumi.azurenative.workloads.inputs.ManagedRGConfigurationArgs;
import com.pulumi.azurenative.workloads.inputs.UserAssignedServiceIdentityArgs;
import com.pulumi.core.Either;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SAPVirtualInstanceArgs Empty = new SAPVirtualInstanceArgs();

    /**
     * Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP system is being registered with ACSS
     * 
     */
    @Import(name="configuration", required=true)
    private Output configuration;

    /**
     * @return Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP system is being registered with ACSS
     * 
     */
    public Output configuration() {
        return this.configuration;
    }

    /**
     * Defines the environment type - Production/Non Production.
     * 
     */
    @Import(name="environment", required=true)
    private Output> environment;

    /**
     * @return Defines the environment type - Production/Non Production.
     * 
     */
    public Output> environment() {
        return this.environment;
    }

    /**
     * A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Managed resource group configuration
     * 
     */
    @Import(name="managedResourceGroupConfiguration")
    private @Nullable Output managedResourceGroupConfiguration;

    /**
     * @return Managed resource group configuration
     * 
     */
    public Optional> managedResourceGroupConfiguration() {
        return Optional.ofNullable(this.managedResourceGroupConfiguration);
    }

    /**
     * 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;
    }

    /**
     * Defines the SAP Product type.
     * 
     */
    @Import(name="sapProduct", required=true)
    private Output> sapProduct;

    /**
     * @return Defines the SAP Product type.
     * 
     */
    public Output> sapProduct() {
        return this.sapProduct;
    }

    /**
     * The name of the Virtual Instances for SAP solutions resource
     * 
     */
    @Import(name="sapVirtualInstanceName")
    private @Nullable Output sapVirtualInstanceName;

    /**
     * @return The name of the Virtual Instances for SAP solutions resource
     * 
     */
    public Optional> sapVirtualInstanceName() {
        return Optional.ofNullable(this.sapVirtualInstanceName);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private SAPVirtualInstanceArgs() {}

    private SAPVirtualInstanceArgs(SAPVirtualInstanceArgs $) {
        this.configuration = $.configuration;
        this.environment = $.environment;
        this.identity = $.identity;
        this.location = $.location;
        this.managedResourceGroupConfiguration = $.managedResourceGroupConfiguration;
        this.resourceGroupName = $.resourceGroupName;
        this.sapProduct = $.sapProduct;
        this.sapVirtualInstanceName = $.sapVirtualInstanceName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private SAPVirtualInstanceArgs $;

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

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

        /**
         * @param configuration Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP system is being registered with ACSS
         * 
         * @return builder
         * 
         */
        public Builder configuration(Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP system is being registered with ACSS
         * 
         * @return builder
         * 
         */
        public Builder configuration(Object configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param environment Defines the environment type - Production/Non Production.
         * 
         * @return builder
         * 
         */
        public Builder environment(Output> environment) {
            $.environment = environment;
            return this;
        }

        /**
         * @param environment Defines the environment type - Production/Non Production.
         * 
         * @return builder
         * 
         */
        public Builder environment(Either environment) {
            return environment(Output.of(environment));
        }

        /**
         * @param environment Defines the environment type - Production/Non Production.
         * 
         * @return builder
         * 
         */
        public Builder environment(String environment) {
            return environment(Either.ofLeft(environment));
        }

        /**
         * @param environment Defines the environment type - Production/Non Production.
         * 
         * @return builder
         * 
         */
        public Builder environment(SAPEnvironmentType environment) {
            return environment(Either.ofRight(environment));
        }

        /**
         * @param identity A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.
         * 
         * @return builder
         * 
         */
        public Builder identity(UserAssignedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managedResourceGroupConfiguration Managed resource group configuration
         * 
         * @return builder
         * 
         */
        public Builder managedResourceGroupConfiguration(@Nullable Output managedResourceGroupConfiguration) {
            $.managedResourceGroupConfiguration = managedResourceGroupConfiguration;
            return this;
        }

        /**
         * @param managedResourceGroupConfiguration Managed resource group configuration
         * 
         * @return builder
         * 
         */
        public Builder managedResourceGroupConfiguration(ManagedRGConfigurationArgs managedResourceGroupConfiguration) {
            return managedResourceGroupConfiguration(Output.of(managedResourceGroupConfiguration));
        }

        /**
         * @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 sapProduct Defines the SAP Product type.
         * 
         * @return builder
         * 
         */
        public Builder sapProduct(Output> sapProduct) {
            $.sapProduct = sapProduct;
            return this;
        }

        /**
         * @param sapProduct Defines the SAP Product type.
         * 
         * @return builder
         * 
         */
        public Builder sapProduct(Either sapProduct) {
            return sapProduct(Output.of(sapProduct));
        }

        /**
         * @param sapProduct Defines the SAP Product type.
         * 
         * @return builder
         * 
         */
        public Builder sapProduct(String sapProduct) {
            return sapProduct(Either.ofLeft(sapProduct));
        }

        /**
         * @param sapProduct Defines the SAP Product type.
         * 
         * @return builder
         * 
         */
        public Builder sapProduct(SAPProductType sapProduct) {
            return sapProduct(Either.ofRight(sapProduct));
        }

        /**
         * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
         * 
         * @return builder
         * 
         */
        public Builder sapVirtualInstanceName(@Nullable Output sapVirtualInstanceName) {
            $.sapVirtualInstanceName = sapVirtualInstanceName;
            return this;
        }

        /**
         * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
         * 
         * @return builder
         * 
         */
        public Builder sapVirtualInstanceName(String sapVirtualInstanceName) {
            return sapVirtualInstanceName(Output.of(sapVirtualInstanceName));
        }

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public SAPVirtualInstanceArgs build() {
            if ($.configuration == null) {
                throw new MissingRequiredPropertyException("SAPVirtualInstanceArgs", "configuration");
            }
            if ($.environment == null) {
                throw new MissingRequiredPropertyException("SAPVirtualInstanceArgs", "environment");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SAPVirtualInstanceArgs", "resourceGroupName");
            }
            if ($.sapProduct == null) {
                throw new MissingRequiredPropertyException("SAPVirtualInstanceArgs", "sapProduct");
            }
            return $;
        }
    }

}