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

com.pulumi.azurenative.sqlvirtualmachine.SqlVirtualMachineArgs 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.sqlvirtualmachine;

import com.pulumi.azurenative.sqlvirtualmachine.enums.SqlImageSku;
import com.pulumi.azurenative.sqlvirtualmachine.enums.SqlManagementMode;
import com.pulumi.azurenative.sqlvirtualmachine.enums.SqlServerLicenseType;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.AssessmentSettingsArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.AutoBackupSettingsArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.AutoPatchingSettingsArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.KeyVaultCredentialSettingsArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.ResourceIdentityArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.ServerConfigurationsManagementSettingsArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.StorageConfigurationSettingsArgs;
import com.pulumi.azurenative.sqlvirtualmachine.inputs.WsfcDomainCredentialsArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SqlVirtualMachineArgs Empty = new SqlVirtualMachineArgs();

    /**
     * Assessment Settings.
     * 
     */
    @Import(name="assessmentSettings")
    private @Nullable Output assessmentSettings;

    /**
     * @return Assessment Settings.
     * 
     */
    public Optional> assessmentSettings() {
        return Optional.ofNullable(this.assessmentSettings);
    }

    /**
     * Auto backup settings for SQL Server.
     * 
     */
    @Import(name="autoBackupSettings")
    private @Nullable Output autoBackupSettings;

    /**
     * @return Auto backup settings for SQL Server.
     * 
     */
    public Optional> autoBackupSettings() {
        return Optional.ofNullable(this.autoBackupSettings);
    }

    /**
     * Auto patching settings for applying critical security updates to SQL virtual machine.
     * 
     */
    @Import(name="autoPatchingSettings")
    private @Nullable Output autoPatchingSettings;

    /**
     * @return Auto patching settings for applying critical security updates to SQL virtual machine.
     * 
     */
    public Optional> autoPatchingSettings() {
        return Optional.ofNullable(this.autoPatchingSettings);
    }

    /**
     * Azure Active Directory identity of the server.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Azure Active Directory identity of the server.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Key vault credential settings.
     * 
     */
    @Import(name="keyVaultCredentialSettings")
    private @Nullable Output keyVaultCredentialSettings;

    /**
     * @return Key vault credential settings.
     * 
     */
    public Optional> keyVaultCredentialSettings() {
        return Optional.ofNullable(this.keyVaultCredentialSettings);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * SQL Server configuration management settings.
     * 
     */
    @Import(name="serverConfigurationsManagementSettings")
    private @Nullable Output serverConfigurationsManagementSettings;

    /**
     * @return SQL Server configuration management settings.
     * 
     */
    public Optional> serverConfigurationsManagementSettings() {
        return Optional.ofNullable(this.serverConfigurationsManagementSettings);
    }

    /**
     * SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
     * 
     */
    @Import(name="sqlImageOffer")
    private @Nullable Output sqlImageOffer;

    /**
     * @return SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
     * 
     */
    public Optional> sqlImageOffer() {
        return Optional.ofNullable(this.sqlImageOffer);
    }

    /**
     * SQL Server edition type.
     * 
     */
    @Import(name="sqlImageSku")
    private @Nullable Output> sqlImageSku;

    /**
     * @return SQL Server edition type.
     * 
     */
    public Optional>> sqlImageSku() {
        return Optional.ofNullable(this.sqlImageSku);
    }

    /**
     * SQL Server Management type.
     * 
     */
    @Import(name="sqlManagement")
    private @Nullable Output> sqlManagement;

    /**
     * @return SQL Server Management type.
     * 
     */
    public Optional>> sqlManagement() {
        return Optional.ofNullable(this.sqlManagement);
    }

    /**
     * SQL Server license type.
     * 
     */
    @Import(name="sqlServerLicenseType")
    private @Nullable Output> sqlServerLicenseType;

    /**
     * @return SQL Server license type.
     * 
     */
    public Optional>> sqlServerLicenseType() {
        return Optional.ofNullable(this.sqlServerLicenseType);
    }

    /**
     * ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
     * 
     */
    @Import(name="sqlVirtualMachineGroupResourceId")
    private @Nullable Output sqlVirtualMachineGroupResourceId;

    /**
     * @return ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
     * 
     */
    public Optional> sqlVirtualMachineGroupResourceId() {
        return Optional.ofNullable(this.sqlVirtualMachineGroupResourceId);
    }

    /**
     * Name of the SQL virtual machine.
     * 
     */
    @Import(name="sqlVirtualMachineName")
    private @Nullable Output sqlVirtualMachineName;

    /**
     * @return Name of the SQL virtual machine.
     * 
     */
    public Optional> sqlVirtualMachineName() {
        return Optional.ofNullable(this.sqlVirtualMachineName);
    }

    /**
     * Storage Configuration Settings.
     * 
     */
    @Import(name="storageConfigurationSettings")
    private @Nullable Output storageConfigurationSettings;

    /**
     * @return Storage Configuration Settings.
     * 
     */
    public Optional> storageConfigurationSettings() {
        return Optional.ofNullable(this.storageConfigurationSettings);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * ARM Resource id of underlying virtual machine created from SQL marketplace image.
     * 
     */
    @Import(name="virtualMachineResourceId")
    private @Nullable Output virtualMachineResourceId;

    /**
     * @return ARM Resource id of underlying virtual machine created from SQL marketplace image.
     * 
     */
    public Optional> virtualMachineResourceId() {
        return Optional.ofNullable(this.virtualMachineResourceId);
    }

    /**
     * Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    @Import(name="wsfcDomainCredentials")
    private @Nullable Output wsfcDomainCredentials;

    /**
     * @return Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    public Optional> wsfcDomainCredentials() {
        return Optional.ofNullable(this.wsfcDomainCredentials);
    }

    /**
     * Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    @Import(name="wsfcStaticIp")
    private @Nullable Output wsfcStaticIp;

    /**
     * @return Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    public Optional> wsfcStaticIp() {
        return Optional.ofNullable(this.wsfcStaticIp);
    }

    private SqlVirtualMachineArgs() {}

    private SqlVirtualMachineArgs(SqlVirtualMachineArgs $) {
        this.assessmentSettings = $.assessmentSettings;
        this.autoBackupSettings = $.autoBackupSettings;
        this.autoPatchingSettings = $.autoPatchingSettings;
        this.identity = $.identity;
        this.keyVaultCredentialSettings = $.keyVaultCredentialSettings;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.serverConfigurationsManagementSettings = $.serverConfigurationsManagementSettings;
        this.sqlImageOffer = $.sqlImageOffer;
        this.sqlImageSku = $.sqlImageSku;
        this.sqlManagement = $.sqlManagement;
        this.sqlServerLicenseType = $.sqlServerLicenseType;
        this.sqlVirtualMachineGroupResourceId = $.sqlVirtualMachineGroupResourceId;
        this.sqlVirtualMachineName = $.sqlVirtualMachineName;
        this.storageConfigurationSettings = $.storageConfigurationSettings;
        this.tags = $.tags;
        this.virtualMachineResourceId = $.virtualMachineResourceId;
        this.wsfcDomainCredentials = $.wsfcDomainCredentials;
        this.wsfcStaticIp = $.wsfcStaticIp;
    }

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

    public static final class Builder {
        private SqlVirtualMachineArgs $;

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

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

        /**
         * @param assessmentSettings Assessment Settings.
         * 
         * @return builder
         * 
         */
        public Builder assessmentSettings(@Nullable Output assessmentSettings) {
            $.assessmentSettings = assessmentSettings;
            return this;
        }

        /**
         * @param assessmentSettings Assessment Settings.
         * 
         * @return builder
         * 
         */
        public Builder assessmentSettings(AssessmentSettingsArgs assessmentSettings) {
            return assessmentSettings(Output.of(assessmentSettings));
        }

        /**
         * @param autoBackupSettings Auto backup settings for SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder autoBackupSettings(@Nullable Output autoBackupSettings) {
            $.autoBackupSettings = autoBackupSettings;
            return this;
        }

        /**
         * @param autoBackupSettings Auto backup settings for SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder autoBackupSettings(AutoBackupSettingsArgs autoBackupSettings) {
            return autoBackupSettings(Output.of(autoBackupSettings));
        }

        /**
         * @param autoPatchingSettings Auto patching settings for applying critical security updates to SQL virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder autoPatchingSettings(@Nullable Output autoPatchingSettings) {
            $.autoPatchingSettings = autoPatchingSettings;
            return this;
        }

        /**
         * @param autoPatchingSettings Auto patching settings for applying critical security updates to SQL virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder autoPatchingSettings(AutoPatchingSettingsArgs autoPatchingSettings) {
            return autoPatchingSettings(Output.of(autoPatchingSettings));
        }

        /**
         * @param identity Azure Active Directory identity of the server.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Azure Active Directory identity of the server.
         * 
         * @return builder
         * 
         */
        public Builder identity(ResourceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param keyVaultCredentialSettings Key vault credential settings.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultCredentialSettings(@Nullable Output keyVaultCredentialSettings) {
            $.keyVaultCredentialSettings = keyVaultCredentialSettings;
            return this;
        }

        /**
         * @param keyVaultCredentialSettings Key vault credential settings.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultCredentialSettings(KeyVaultCredentialSettingsArgs keyVaultCredentialSettings) {
            return keyVaultCredentialSettings(Output.of(keyVaultCredentialSettings));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serverConfigurationsManagementSettings SQL Server configuration management settings.
         * 
         * @return builder
         * 
         */
        public Builder serverConfigurationsManagementSettings(@Nullable Output serverConfigurationsManagementSettings) {
            $.serverConfigurationsManagementSettings = serverConfigurationsManagementSettings;
            return this;
        }

        /**
         * @param serverConfigurationsManagementSettings SQL Server configuration management settings.
         * 
         * @return builder
         * 
         */
        public Builder serverConfigurationsManagementSettings(ServerConfigurationsManagementSettingsArgs serverConfigurationsManagementSettings) {
            return serverConfigurationsManagementSettings(Output.of(serverConfigurationsManagementSettings));
        }

        /**
         * @param sqlImageOffer SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
         * 
         * @return builder
         * 
         */
        public Builder sqlImageOffer(@Nullable Output sqlImageOffer) {
            $.sqlImageOffer = sqlImageOffer;
            return this;
        }

        /**
         * @param sqlImageOffer SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
         * 
         * @return builder
         * 
         */
        public Builder sqlImageOffer(String sqlImageOffer) {
            return sqlImageOffer(Output.of(sqlImageOffer));
        }

        /**
         * @param sqlImageSku SQL Server edition type.
         * 
         * @return builder
         * 
         */
        public Builder sqlImageSku(@Nullable Output> sqlImageSku) {
            $.sqlImageSku = sqlImageSku;
            return this;
        }

        /**
         * @param sqlImageSku SQL Server edition type.
         * 
         * @return builder
         * 
         */
        public Builder sqlImageSku(Either sqlImageSku) {
            return sqlImageSku(Output.of(sqlImageSku));
        }

        /**
         * @param sqlImageSku SQL Server edition type.
         * 
         * @return builder
         * 
         */
        public Builder sqlImageSku(String sqlImageSku) {
            return sqlImageSku(Either.ofLeft(sqlImageSku));
        }

        /**
         * @param sqlImageSku SQL Server edition type.
         * 
         * @return builder
         * 
         */
        public Builder sqlImageSku(SqlImageSku sqlImageSku) {
            return sqlImageSku(Either.ofRight(sqlImageSku));
        }

        /**
         * @param sqlManagement SQL Server Management type.
         * 
         * @return builder
         * 
         */
        public Builder sqlManagement(@Nullable Output> sqlManagement) {
            $.sqlManagement = sqlManagement;
            return this;
        }

        /**
         * @param sqlManagement SQL Server Management type.
         * 
         * @return builder
         * 
         */
        public Builder sqlManagement(Either sqlManagement) {
            return sqlManagement(Output.of(sqlManagement));
        }

        /**
         * @param sqlManagement SQL Server Management type.
         * 
         * @return builder
         * 
         */
        public Builder sqlManagement(String sqlManagement) {
            return sqlManagement(Either.ofLeft(sqlManagement));
        }

        /**
         * @param sqlManagement SQL Server Management type.
         * 
         * @return builder
         * 
         */
        public Builder sqlManagement(SqlManagementMode sqlManagement) {
            return sqlManagement(Either.ofRight(sqlManagement));
        }

        /**
         * @param sqlServerLicenseType SQL Server license type.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerLicenseType(@Nullable Output> sqlServerLicenseType) {
            $.sqlServerLicenseType = sqlServerLicenseType;
            return this;
        }

        /**
         * @param sqlServerLicenseType SQL Server license type.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerLicenseType(Either sqlServerLicenseType) {
            return sqlServerLicenseType(Output.of(sqlServerLicenseType));
        }

        /**
         * @param sqlServerLicenseType SQL Server license type.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerLicenseType(String sqlServerLicenseType) {
            return sqlServerLicenseType(Either.ofLeft(sqlServerLicenseType));
        }

        /**
         * @param sqlServerLicenseType SQL Server license type.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType) {
            return sqlServerLicenseType(Either.ofRight(sqlServerLicenseType));
        }

        /**
         * @param sqlVirtualMachineGroupResourceId ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineGroupResourceId(@Nullable Output sqlVirtualMachineGroupResourceId) {
            $.sqlVirtualMachineGroupResourceId = sqlVirtualMachineGroupResourceId;
            return this;
        }

        /**
         * @param sqlVirtualMachineGroupResourceId ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineGroupResourceId(String sqlVirtualMachineGroupResourceId) {
            return sqlVirtualMachineGroupResourceId(Output.of(sqlVirtualMachineGroupResourceId));
        }

        /**
         * @param sqlVirtualMachineName Name of the SQL virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineName(@Nullable Output sqlVirtualMachineName) {
            $.sqlVirtualMachineName = sqlVirtualMachineName;
            return this;
        }

        /**
         * @param sqlVirtualMachineName Name of the SQL virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineName(String sqlVirtualMachineName) {
            return sqlVirtualMachineName(Output.of(sqlVirtualMachineName));
        }

        /**
         * @param storageConfigurationSettings Storage Configuration Settings.
         * 
         * @return builder
         * 
         */
        public Builder storageConfigurationSettings(@Nullable Output storageConfigurationSettings) {
            $.storageConfigurationSettings = storageConfigurationSettings;
            return this;
        }

        /**
         * @param storageConfigurationSettings Storage Configuration Settings.
         * 
         * @return builder
         * 
         */
        public Builder storageConfigurationSettings(StorageConfigurationSettingsArgs storageConfigurationSettings) {
            return storageConfigurationSettings(Output.of(storageConfigurationSettings));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param virtualMachineResourceId ARM Resource id of underlying virtual machine created from SQL marketplace image.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineResourceId(@Nullable Output virtualMachineResourceId) {
            $.virtualMachineResourceId = virtualMachineResourceId;
            return this;
        }

        /**
         * @param virtualMachineResourceId ARM Resource id of underlying virtual machine created from SQL marketplace image.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineResourceId(String virtualMachineResourceId) {
            return virtualMachineResourceId(Output.of(virtualMachineResourceId));
        }

        /**
         * @param wsfcDomainCredentials Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
         * 
         * @return builder
         * 
         */
        public Builder wsfcDomainCredentials(@Nullable Output wsfcDomainCredentials) {
            $.wsfcDomainCredentials = wsfcDomainCredentials;
            return this;
        }

        /**
         * @param wsfcDomainCredentials Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
         * 
         * @return builder
         * 
         */
        public Builder wsfcDomainCredentials(WsfcDomainCredentialsArgs wsfcDomainCredentials) {
            return wsfcDomainCredentials(Output.of(wsfcDomainCredentials));
        }

        /**
         * @param wsfcStaticIp Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
         * 
         * @return builder
         * 
         */
        public Builder wsfcStaticIp(@Nullable Output wsfcStaticIp) {
            $.wsfcStaticIp = wsfcStaticIp;
            return this;
        }

        /**
         * @param wsfcStaticIp Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
         * 
         * @return builder
         * 
         */
        public Builder wsfcStaticIp(String wsfcStaticIp) {
            return wsfcStaticIp(Output.of(wsfcStaticIp));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy