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

com.pulumi.azurenative.offazure.SqlSitesControllerArgs 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.offazure;

import com.pulumi.azurenative.offazure.enums.SqlSitePropertiesDiscoveryScenario;
import com.pulumi.azurenative.offazure.inputs.SiteAppliancePropertiesArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SqlSitesControllerArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlSitesControllerArgs Empty = new SqlSitesControllerArgs();

    /**
     * Gets or sets the discovery scenario.
     * 
     */
    @Import(name="discoveryScenario")
    private @Nullable Output> discoveryScenario;

    /**
     * @return Gets or sets the discovery scenario.
     * 
     */
    public Optional>> discoveryScenario() {
        return Optional.ofNullable(this.discoveryScenario);
    }

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

    /**
     * Gets or sets the appliance details used by service to communicate
     * 
     * to the appliance.
     * 
     */
    @Import(name="siteAppliancePropertiesCollection")
    private @Nullable Output> siteAppliancePropertiesCollection;

    /**
     * @return Gets or sets the appliance details used by service to communicate
     * 
     * to the appliance.
     * 
     */
    public Optional>> siteAppliancePropertiesCollection() {
        return Optional.ofNullable(this.siteAppliancePropertiesCollection);
    }

    /**
     * Site name
     * 
     */
    @Import(name="siteName", required=true)
    private Output siteName;

    /**
     * @return Site name
     * 
     */
    public Output siteName() {
        return this.siteName;
    }

    /**
     * SQL site name.
     * 
     */
    @Import(name="sqlSiteName")
    private @Nullable Output sqlSiteName;

    /**
     * @return SQL site name.
     * 
     */
    public Optional> sqlSiteName() {
        return Optional.ofNullable(this.sqlSiteName);
    }

    private SqlSitesControllerArgs() {}

    private SqlSitesControllerArgs(SqlSitesControllerArgs $) {
        this.discoveryScenario = $.discoveryScenario;
        this.resourceGroupName = $.resourceGroupName;
        this.siteAppliancePropertiesCollection = $.siteAppliancePropertiesCollection;
        this.siteName = $.siteName;
        this.sqlSiteName = $.sqlSiteName;
    }

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

    public static final class Builder {
        private SqlSitesControllerArgs $;

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

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

        /**
         * @param discoveryScenario Gets or sets the discovery scenario.
         * 
         * @return builder
         * 
         */
        public Builder discoveryScenario(@Nullable Output> discoveryScenario) {
            $.discoveryScenario = discoveryScenario;
            return this;
        }

        /**
         * @param discoveryScenario Gets or sets the discovery scenario.
         * 
         * @return builder
         * 
         */
        public Builder discoveryScenario(Either discoveryScenario) {
            return discoveryScenario(Output.of(discoveryScenario));
        }

        /**
         * @param discoveryScenario Gets or sets the discovery scenario.
         * 
         * @return builder
         * 
         */
        public Builder discoveryScenario(String discoveryScenario) {
            return discoveryScenario(Either.ofLeft(discoveryScenario));
        }

        /**
         * @param discoveryScenario Gets or sets the discovery scenario.
         * 
         * @return builder
         * 
         */
        public Builder discoveryScenario(SqlSitePropertiesDiscoveryScenario discoveryScenario) {
            return discoveryScenario(Either.ofRight(discoveryScenario));
        }

        /**
         * @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 siteAppliancePropertiesCollection Gets or sets the appliance details used by service to communicate
         * 
         * to the appliance.
         * 
         * @return builder
         * 
         */
        public Builder siteAppliancePropertiesCollection(@Nullable Output> siteAppliancePropertiesCollection) {
            $.siteAppliancePropertiesCollection = siteAppliancePropertiesCollection;
            return this;
        }

        /**
         * @param siteAppliancePropertiesCollection Gets or sets the appliance details used by service to communicate
         * 
         * to the appliance.
         * 
         * @return builder
         * 
         */
        public Builder siteAppliancePropertiesCollection(List siteAppliancePropertiesCollection) {
            return siteAppliancePropertiesCollection(Output.of(siteAppliancePropertiesCollection));
        }

        /**
         * @param siteAppliancePropertiesCollection Gets or sets the appliance details used by service to communicate
         * 
         * to the appliance.
         * 
         * @return builder
         * 
         */
        public Builder siteAppliancePropertiesCollection(SiteAppliancePropertiesArgs... siteAppliancePropertiesCollection) {
            return siteAppliancePropertiesCollection(List.of(siteAppliancePropertiesCollection));
        }

        /**
         * @param siteName Site name
         * 
         * @return builder
         * 
         */
        public Builder siteName(Output siteName) {
            $.siteName = siteName;
            return this;
        }

        /**
         * @param siteName Site name
         * 
         * @return builder
         * 
         */
        public Builder siteName(String siteName) {
            return siteName(Output.of(siteName));
        }

        /**
         * @param sqlSiteName SQL site name.
         * 
         * @return builder
         * 
         */
        public Builder sqlSiteName(@Nullable Output sqlSiteName) {
            $.sqlSiteName = sqlSiteName;
            return this;
        }

        /**
         * @param sqlSiteName SQL site name.
         * 
         * @return builder
         * 
         */
        public Builder sqlSiteName(String sqlSiteName) {
            return sqlSiteName(Output.of(sqlSiteName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy