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

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

    public static final SqlCollectorOperationArgs Empty = new SqlCollectorOperationArgs();

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

    /**
     * Sql collector ARM name.
     * 
     */
    @Import(name="collectorName")
    private @Nullable Output collectorName;

    /**
     * @return Sql collector ARM name.
     * 
     */
    public Optional> collectorName() {
        return Optional.ofNullable(this.collectorName);
    }

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

    /**
     * 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 SqlCollectorOperationArgs() {}

    private SqlCollectorOperationArgs(SqlCollectorOperationArgs $) {
        this.agentProperties = $.agentProperties;
        this.collectorName = $.collectorName;
        this.discoverySiteId = $.discoverySiteId;
        this.projectName = $.projectName;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private SqlCollectorOperationArgs $;

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

        public Builder(SqlCollectorOperationArgs defaults) {
            $ = new SqlCollectorOperationArgs(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 collectorName Sql collector ARM name.
         * 
         * @return builder
         * 
         */
        public Builder collectorName(@Nullable Output collectorName) {
            $.collectorName = collectorName;
            return this;
        }

        /**
         * @param collectorName Sql collector ARM name.
         * 
         * @return builder
         * 
         */
        public Builder collectorName(String collectorName) {
            return collectorName(Output.of(collectorName));
        }

        /**
         * @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 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 SqlCollectorOperationArgs build() {
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("SqlCollectorOperationArgs", "projectName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SqlCollectorOperationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy