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

com.pulumi.azurenative.migrate.SolutionArgs 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.migrate;

import com.pulumi.azurenative.migrate.inputs.SolutionPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SolutionArgs Empty = new SolutionArgs();

    /**
     * Name of the Azure Migrate project.
     * 
     */
    @Import(name="migrateProjectName", required=true)
    private Output migrateProjectName;

    /**
     * @return Name of the Azure Migrate project.
     * 
     */
    public Output migrateProjectName() {
        return this.migrateProjectName;
    }

    /**
     * Gets or sets the properties of the solution.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Gets or sets the properties of the solution.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Name of the Azure Resource Group that migrate project is part of.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Azure Resource Group that migrate project is part of.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Unique name of a migration solution within a migrate project.
     * 
     */
    @Import(name="solutionName")
    private @Nullable Output solutionName;

    /**
     * @return Unique name of a migration solution within a migrate project.
     * 
     */
    public Optional> solutionName() {
        return Optional.ofNullable(this.solutionName);
    }

    private SolutionArgs() {}

    private SolutionArgs(SolutionArgs $) {
        this.migrateProjectName = $.migrateProjectName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.solutionName = $.solutionName;
    }

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

    public static final class Builder {
        private SolutionArgs $;

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

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

        /**
         * @param migrateProjectName Name of the Azure Migrate project.
         * 
         * @return builder
         * 
         */
        public Builder migrateProjectName(Output migrateProjectName) {
            $.migrateProjectName = migrateProjectName;
            return this;
        }

        /**
         * @param migrateProjectName Name of the Azure Migrate project.
         * 
         * @return builder
         * 
         */
        public Builder migrateProjectName(String migrateProjectName) {
            return migrateProjectName(Output.of(migrateProjectName));
        }

        /**
         * @param properties Gets or sets the properties of the solution.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Gets or sets the properties of the solution.
         * 
         * @return builder
         * 
         */
        public Builder properties(SolutionPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName Name of the Azure Resource Group that migrate project is part of.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Azure Resource Group that migrate project is part of.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param solutionName Unique name of a migration solution within a migrate project.
         * 
         * @return builder
         * 
         */
        public Builder solutionName(@Nullable Output solutionName) {
            $.solutionName = solutionName;
            return this;
        }

        /**
         * @param solutionName Unique name of a migration solution within a migrate project.
         * 
         * @return builder
         * 
         */
        public Builder solutionName(String solutionName) {
            return solutionName(Output.of(solutionName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy