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

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

import com.pulumi.azurenative.migrate.inputs.AssessmentPropertiesArgs;
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 AssessmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AssessmentArgs Empty = new AssessmentArgs();

    /**
     * Unique name of an assessment within a project.
     * 
     */
    @Import(name="assessmentName")
    private @Nullable Output assessmentName;

    /**
     * @return Unique name of an assessment within a project.
     * 
     */
    public Optional> assessmentName() {
        return Optional.ofNullable(this.assessmentName);
    }

    /**
     * For optimistic concurrency control.
     * 
     */
    @Import(name="eTag")
    private @Nullable Output eTag;

    /**
     * @return For optimistic concurrency control.
     * 
     */
    public Optional> eTag() {
        return Optional.ofNullable(this.eTag);
    }

    /**
     * Unique name of a group within a project.
     * 
     */
    @Import(name="groupName", required=true)
    private Output groupName;

    /**
     * @return Unique name of a group within a project.
     * 
     */
    public Output groupName() {
        return this.groupName;
    }

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

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

    /**
     * Properties of the assessment.
     * 
     */
    @Import(name="properties", required=true)
    private Output properties;

    /**
     * @return Properties of the assessment.
     * 
     */
    public Output properties() {
        return 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;
    }

    private AssessmentArgs() {}

    private AssessmentArgs(AssessmentArgs $) {
        this.assessmentName = $.assessmentName;
        this.eTag = $.eTag;
        this.groupName = $.groupName;
        this.projectName = $.projectName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private AssessmentArgs $;

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

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

        /**
         * @param assessmentName Unique name of an assessment within a project.
         * 
         * @return builder
         * 
         */
        public Builder assessmentName(@Nullable Output assessmentName) {
            $.assessmentName = assessmentName;
            return this;
        }

        /**
         * @param assessmentName Unique name of an assessment within a project.
         * 
         * @return builder
         * 
         */
        public Builder assessmentName(String assessmentName) {
            return assessmentName(Output.of(assessmentName));
        }

        /**
         * @param eTag For optimistic concurrency control.
         * 
         * @return builder
         * 
         */
        public Builder eTag(@Nullable Output eTag) {
            $.eTag = eTag;
            return this;
        }

        /**
         * @param eTag For optimistic concurrency control.
         * 
         * @return builder
         * 
         */
        public Builder eTag(String eTag) {
            return eTag(Output.of(eTag));
        }

        /**
         * @param groupName Unique name of a group within a project.
         * 
         * @return builder
         * 
         */
        public Builder groupName(Output groupName) {
            $.groupName = groupName;
            return this;
        }

        /**
         * @param groupName Unique name of a group within a project.
         * 
         * @return builder
         * 
         */
        public Builder groupName(String groupName) {
            return groupName(Output.of(groupName));
        }

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

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

        /**
         * @param properties Properties of the assessment.
         * 
         * @return builder
         * 
         */
        public Builder properties(Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Properties of the assessment.
         * 
         * @return builder
         * 
         */
        public Builder properties(AssessmentPropertiesArgs 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));
        }

        public AssessmentArgs build() {
            if ($.groupName == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "groupName");
            }
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "projectName");
            }
            if ($.properties == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "properties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy