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

com.pulumi.azurenative.storagemover.ProjectArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.storagemover;

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 ProjectArgs extends com.pulumi.resources.ResourceArgs {

    public static final ProjectArgs Empty = new ProjectArgs();

    /**
     * A description for the Project.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description for the Project.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the Project resource.
     * 
     */
    @Import(name="projectName")
    private @Nullable Output projectName;

    /**
     * @return The name of the Project resource.
     * 
     */
    public Optional> projectName() {
        return Optional.ofNullable(this.projectName);
    }

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

    /**
     * The name of the Storage Mover resource.
     * 
     */
    @Import(name="storageMoverName", required=true)
    private Output storageMoverName;

    /**
     * @return The name of the Storage Mover resource.
     * 
     */
    public Output storageMoverName() {
        return this.storageMoverName;
    }

    private ProjectArgs() {}

    private ProjectArgs(ProjectArgs $) {
        this.description = $.description;
        this.projectName = $.projectName;
        this.resourceGroupName = $.resourceGroupName;
        this.storageMoverName = $.storageMoverName;
    }

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

    public static final class Builder {
        private ProjectArgs $;

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

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

        /**
         * @param description A description for the Project.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description for the Project.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param projectName The name of the Project resource.
         * 
         * @return builder
         * 
         */
        public Builder projectName(@Nullable Output projectName) {
            $.projectName = projectName;
            return this;
        }

        /**
         * @param projectName The name of the Project resource.
         * 
         * @return builder
         * 
         */
        public Builder projectName(String projectName) {
            return projectName(Output.of(projectName));
        }

        /**
         * @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 storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(Output storageMoverName) {
            $.storageMoverName = storageMoverName;
            return this;
        }

        /**
         * @param storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(String storageMoverName) {
            return storageMoverName(Output.of(storageMoverName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy