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

com.pulumi.azurenative.migrate.HypervCollectorsOperationArgs 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.enums.ProvisioningState;
import com.pulumi.azurenative.migrate.inputs.CollectorAgentPropertiesBaseArgs;
import com.pulumi.core.Either;
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 HypervCollectorsOperationArgs extends com.pulumi.resources.ResourceArgs {

    public static final HypervCollectorsOperationArgs Empty = new HypervCollectorsOperationArgs();

    /**
     * Gets or sets the collector agent properties.
     * 
     */
    @Import(name="agentProperties")
    private @Nullable Output agentProperties;

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

    /**
     * Gets the discovery site id.
     * 
     */
    @Import(name="discoverySiteId")
    private @Nullable Output discoverySiteId;

    /**
     * @return Gets the discovery site id.
     * 
     */
    public Optional> discoverySiteId() {
        return Optional.ofNullable(this.discoverySiteId);
    }

    /**
     * Hyper-V collector ARM name
     * 
     */
    @Import(name="hypervCollectorName")
    private @Nullable Output hypervCollectorName;

    /**
     * @return Hyper-V collector ARM name
     * 
     */
    public Optional> hypervCollectorName() {
        return Optional.ofNullable(this.hypervCollectorName);
    }

    /**
     * Assessment Project Name
     * 
     */
    @Import(name="projectName", required=true)
    private Output projectName;

    /**
     * @return Assessment Project Name
     * 
     */
    public Output projectName() {
        return this.projectName;
    }

    /**
     * The status of the last operation.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output> provisioningState;

    /**
     * @return The status of the last operation.
     * 
     */
    public Optional>> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

    private HypervCollectorsOperationArgs() {}

    private HypervCollectorsOperationArgs(HypervCollectorsOperationArgs $) {
        this.agentProperties = $.agentProperties;
        this.discoverySiteId = $.discoverySiteId;
        this.hypervCollectorName = $.hypervCollectorName;
        this.projectName = $.projectName;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private HypervCollectorsOperationArgs $;

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

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

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

        /**
         * @param agentProperties Gets or sets the collector agent properties.
         * 
         * @return builder
         * 
         */
        public Builder agentProperties(CollectorAgentPropertiesBaseArgs agentProperties) {
            return agentProperties(Output.of(agentProperties));
        }

        /**
         * @param discoverySiteId Gets the discovery site id.
         * 
         * @return builder
         * 
         */
        public Builder discoverySiteId(@Nullable Output discoverySiteId) {
            $.discoverySiteId = discoverySiteId;
            return this;
        }

        /**
         * @param discoverySiteId Gets the discovery site id.
         * 
         * @return builder
         * 
         */
        public Builder discoverySiteId(String discoverySiteId) {
            return discoverySiteId(Output.of(discoverySiteId));
        }

        /**
         * @param hypervCollectorName Hyper-V collector ARM name
         * 
         * @return builder
         * 
         */
        public Builder hypervCollectorName(@Nullable Output hypervCollectorName) {
            $.hypervCollectorName = hypervCollectorName;
            return this;
        }

        /**
         * @param hypervCollectorName Hyper-V collector ARM name
         * 
         * @return builder
         * 
         */
        public Builder hypervCollectorName(String hypervCollectorName) {
            return hypervCollectorName(Output.of(hypervCollectorName));
        }

        /**
         * @param projectName Assessment Project Name
         * 
         * @return builder
         * 
         */
        public Builder projectName(Output projectName) {
            $.projectName = projectName;
            return this;
        }

        /**
         * @param projectName Assessment Project Name
         * 
         * @return builder
         * 
         */
        public Builder projectName(String projectName) {
            return projectName(Output.of(projectName));
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output> provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(Either provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Either.ofLeft(provisioningState));
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(ProvisioningState provisioningState) {
            return provisioningState(Either.ofRight(provisioningState));
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy