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

com.pulumi.azurenative.migrate.WorkloadInstanceArgs 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.WorkloadInstanceModelPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WorkloadInstanceArgs Empty = new WorkloadInstanceArgs();

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

    /**
     * @return ModernizeProject name.
     * 
     */
    public Output modernizeProjectName() {
        return this.modernizeProjectName;
    }

    /**
     * Workload instance model properties.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Workload instance model properties.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

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

    /**
     * Azure Subscription Id in which project was created.
     * 
     */
    @Import(name="subscriptionId")
    private @Nullable Output subscriptionId;

    /**
     * @return Azure Subscription Id in which project was created.
     * 
     */
    public Optional> subscriptionId() {
        return Optional.ofNullable(this.subscriptionId);
    }

    /**
     * Gets or sets the resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Gets or sets the resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Workload instance name.
     * 
     */
    @Import(name="workloadInstanceName")
    private @Nullable Output workloadInstanceName;

    /**
     * @return Workload instance name.
     * 
     */
    public Optional> workloadInstanceName() {
        return Optional.ofNullable(this.workloadInstanceName);
    }

    private WorkloadInstanceArgs() {}

    private WorkloadInstanceArgs(WorkloadInstanceArgs $) {
        this.modernizeProjectName = $.modernizeProjectName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.subscriptionId = $.subscriptionId;
        this.tags = $.tags;
        this.workloadInstanceName = $.workloadInstanceName;
    }

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

    public static final class Builder {
        private WorkloadInstanceArgs $;

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

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

        /**
         * @param modernizeProjectName ModernizeProject name.
         * 
         * @return builder
         * 
         */
        public Builder modernizeProjectName(Output modernizeProjectName) {
            $.modernizeProjectName = modernizeProjectName;
            return this;
        }

        /**
         * @param modernizeProjectName ModernizeProject name.
         * 
         * @return builder
         * 
         */
        public Builder modernizeProjectName(String modernizeProjectName) {
            return modernizeProjectName(Output.of(modernizeProjectName));
        }

        /**
         * @param properties Workload instance model properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Workload instance model properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(WorkloadInstanceModelPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

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

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

        /**
         * @param subscriptionId Azure Subscription Id in which project was created.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(@Nullable Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId Azure Subscription Id in which project was created.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

        /**
         * @param tags Gets or sets the resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Gets or sets the resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param workloadInstanceName Workload instance name.
         * 
         * @return builder
         * 
         */
        public Builder workloadInstanceName(@Nullable Output workloadInstanceName) {
            $.workloadInstanceName = workloadInstanceName;
            return this;
        }

        /**
         * @param workloadInstanceName Workload instance name.
         * 
         * @return builder
         * 
         */
        public Builder workloadInstanceName(String workloadInstanceName) {
            return workloadInstanceName(Output.of(workloadInstanceName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy