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

com.pulumi.azurenative.migrate.HyperVCollectorArgs 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.CollectorPropertiesArgs;
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 HyperVCollectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final HyperVCollectorArgs Empty = new HyperVCollectorArgs();

    @Import(name="eTag")
    private @Nullable Output eTag;

    public Optional> eTag() {
        return Optional.ofNullable(this.eTag);
    }

    /**
     * Unique name of a Hyper-V collector within a project.
     * 
     */
    @Import(name="hyperVCollectorName")
    private @Nullable Output hyperVCollectorName;

    /**
     * @return Unique name of a Hyper-V collector within a project.
     * 
     */
    public Optional> hyperVCollectorName() {
        return Optional.ofNullable(this.hyperVCollectorName);
    }

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

    @Import(name="properties")
    private @Nullable Output 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;
    }

    private HyperVCollectorArgs() {}

    private HyperVCollectorArgs(HyperVCollectorArgs $) {
        this.eTag = $.eTag;
        this.hyperVCollectorName = $.hyperVCollectorName;
        this.projectName = $.projectName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private HyperVCollectorArgs $;

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

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

        public Builder eTag(@Nullable Output eTag) {
            $.eTag = eTag;
            return this;
        }

        public Builder eTag(String eTag) {
            return eTag(Output.of(eTag));
        }

        /**
         * @param hyperVCollectorName Unique name of a Hyper-V collector within a project.
         * 
         * @return builder
         * 
         */
        public Builder hyperVCollectorName(@Nullable Output hyperVCollectorName) {
            $.hyperVCollectorName = hyperVCollectorName;
            return this;
        }

        /**
         * @param hyperVCollectorName Unique name of a Hyper-V collector within a project.
         * 
         * @return builder
         * 
         */
        public Builder hyperVCollectorName(String hyperVCollectorName) {
            return hyperVCollectorName(Output.of(hyperVCollectorName));
        }

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

        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        public Builder properties(CollectorPropertiesArgs 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 HyperVCollectorArgs build() {
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("HyperVCollectorArgs", "projectName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("HyperVCollectorArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy