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

com.pulumi.azurenative.sqlvirtualmachine.outputs.GetSqlVirtualMachineResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.sqlvirtualmachine.outputs.AssessmentSettingsResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.AutoBackupSettingsResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.AutoPatchingSettingsResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.KeyVaultCredentialSettingsResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.ResourceIdentityResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.ServerConfigurationsManagementSettingsResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.StorageConfigurationSettingsResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.SystemDataResponse;
import com.pulumi.azurenative.sqlvirtualmachine.outputs.WsfcDomainCredentialsResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetSqlVirtualMachineResult {
    /**
     * @return Assessment Settings.
     * 
     */
    private @Nullable AssessmentSettingsResponse assessmentSettings;
    /**
     * @return Auto backup settings for SQL Server.
     * 
     */
    private @Nullable AutoBackupSettingsResponse autoBackupSettings;
    /**
     * @return Auto patching settings for applying critical security updates to SQL virtual machine.
     * 
     */
    private @Nullable AutoPatchingSettingsResponse autoPatchingSettings;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Azure Active Directory identity of the server.
     * 
     */
    private @Nullable ResourceIdentityResponse identity;
    /**
     * @return Key vault credential settings.
     * 
     */
    private @Nullable KeyVaultCredentialSettingsResponse keyVaultCredentialSettings;
    /**
     * @return Resource location.
     * 
     */
    private String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Provisioning state to track the async operation status.
     * 
     */
    private String provisioningState;
    /**
     * @return SQL Server configuration management settings.
     * 
     */
    private @Nullable ServerConfigurationsManagementSettingsResponse serverConfigurationsManagementSettings;
    /**
     * @return SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
     * 
     */
    private @Nullable String sqlImageOffer;
    /**
     * @return SQL Server edition type.
     * 
     */
    private @Nullable String sqlImageSku;
    /**
     * @return SQL Server Management type.
     * 
     */
    private @Nullable String sqlManagement;
    /**
     * @return SQL Server license type.
     * 
     */
    private @Nullable String sqlServerLicenseType;
    /**
     * @return ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
     * 
     */
    private @Nullable String sqlVirtualMachineGroupResourceId;
    /**
     * @return Storage Configuration Settings.
     * 
     */
    private @Nullable StorageConfigurationSettingsResponse storageConfigurationSettings;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return ARM Resource id of underlying virtual machine created from SQL marketplace image.
     * 
     */
    private @Nullable String virtualMachineResourceId;
    /**
     * @return Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    private @Nullable WsfcDomainCredentialsResponse wsfcDomainCredentials;
    /**
     * @return Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    private @Nullable String wsfcStaticIp;

    private GetSqlVirtualMachineResult() {}
    /**
     * @return Assessment Settings.
     * 
     */
    public Optional assessmentSettings() {
        return Optional.ofNullable(this.assessmentSettings);
    }
    /**
     * @return Auto backup settings for SQL Server.
     * 
     */
    public Optional autoBackupSettings() {
        return Optional.ofNullable(this.autoBackupSettings);
    }
    /**
     * @return Auto patching settings for applying critical security updates to SQL virtual machine.
     * 
     */
    public Optional autoPatchingSettings() {
        return Optional.ofNullable(this.autoPatchingSettings);
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Azure Active Directory identity of the server.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return Key vault credential settings.
     * 
     */
    public Optional keyVaultCredentialSettings() {
        return Optional.ofNullable(this.keyVaultCredentialSettings);
    }
    /**
     * @return Resource location.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning state to track the async operation status.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return SQL Server configuration management settings.
     * 
     */
    public Optional serverConfigurationsManagementSettings() {
        return Optional.ofNullable(this.serverConfigurationsManagementSettings);
    }
    /**
     * @return SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
     * 
     */
    public Optional sqlImageOffer() {
        return Optional.ofNullable(this.sqlImageOffer);
    }
    /**
     * @return SQL Server edition type.
     * 
     */
    public Optional sqlImageSku() {
        return Optional.ofNullable(this.sqlImageSku);
    }
    /**
     * @return SQL Server Management type.
     * 
     */
    public Optional sqlManagement() {
        return Optional.ofNullable(this.sqlManagement);
    }
    /**
     * @return SQL Server license type.
     * 
     */
    public Optional sqlServerLicenseType() {
        return Optional.ofNullable(this.sqlServerLicenseType);
    }
    /**
     * @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);
    }
    /**
     * @return Storage Configuration Settings.
     * 
     */
    public Optional storageConfigurationSettings() {
        return Optional.ofNullable(this.storageConfigurationSettings);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return ARM Resource id of underlying virtual machine created from SQL marketplace image.
     * 
     */
    public Optional virtualMachineResourceId() {
        return Optional.ofNullable(this.virtualMachineResourceId);
    }
    /**
     * @return Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    public Optional wsfcDomainCredentials() {
        return Optional.ofNullable(this.wsfcDomainCredentials);
    }
    /**
     * @return Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
     * 
     */
    public Optional wsfcStaticIp() {
        return Optional.ofNullable(this.wsfcStaticIp);
    }

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

    public static Builder builder(GetSqlVirtualMachineResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AssessmentSettingsResponse assessmentSettings;
        private @Nullable AutoBackupSettingsResponse autoBackupSettings;
        private @Nullable AutoPatchingSettingsResponse autoPatchingSettings;
        private String id;
        private @Nullable ResourceIdentityResponse identity;
        private @Nullable KeyVaultCredentialSettingsResponse keyVaultCredentialSettings;
        private String location;
        private String name;
        private String provisioningState;
        private @Nullable ServerConfigurationsManagementSettingsResponse serverConfigurationsManagementSettings;
        private @Nullable String sqlImageOffer;
        private @Nullable String sqlImageSku;
        private @Nullable String sqlManagement;
        private @Nullable String sqlServerLicenseType;
        private @Nullable String sqlVirtualMachineGroupResourceId;
        private @Nullable StorageConfigurationSettingsResponse storageConfigurationSettings;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        private @Nullable String virtualMachineResourceId;
        private @Nullable WsfcDomainCredentialsResponse wsfcDomainCredentials;
        private @Nullable String wsfcStaticIp;
        public Builder() {}
        public Builder(GetSqlVirtualMachineResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.assessmentSettings = defaults.assessmentSettings;
    	      this.autoBackupSettings = defaults.autoBackupSettings;
    	      this.autoPatchingSettings = defaults.autoPatchingSettings;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.keyVaultCredentialSettings = defaults.keyVaultCredentialSettings;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.serverConfigurationsManagementSettings = defaults.serverConfigurationsManagementSettings;
    	      this.sqlImageOffer = defaults.sqlImageOffer;
    	      this.sqlImageSku = defaults.sqlImageSku;
    	      this.sqlManagement = defaults.sqlManagement;
    	      this.sqlServerLicenseType = defaults.sqlServerLicenseType;
    	      this.sqlVirtualMachineGroupResourceId = defaults.sqlVirtualMachineGroupResourceId;
    	      this.storageConfigurationSettings = defaults.storageConfigurationSettings;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.virtualMachineResourceId = defaults.virtualMachineResourceId;
    	      this.wsfcDomainCredentials = defaults.wsfcDomainCredentials;
    	      this.wsfcStaticIp = defaults.wsfcStaticIp;
        }

        @CustomType.Setter
        public Builder assessmentSettings(@Nullable AssessmentSettingsResponse assessmentSettings) {

            this.assessmentSettings = assessmentSettings;
            return this;
        }
        @CustomType.Setter
        public Builder autoBackupSettings(@Nullable AutoBackupSettingsResponse autoBackupSettings) {

            this.autoBackupSettings = autoBackupSettings;
            return this;
        }
        @CustomType.Setter
        public Builder autoPatchingSettings(@Nullable AutoPatchingSettingsResponse autoPatchingSettings) {

            this.autoPatchingSettings = autoPatchingSettings;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSqlVirtualMachineResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable ResourceIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder keyVaultCredentialSettings(@Nullable KeyVaultCredentialSettingsResponse keyVaultCredentialSettings) {

            this.keyVaultCredentialSettings = keyVaultCredentialSettings;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetSqlVirtualMachineResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSqlVirtualMachineResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetSqlVirtualMachineResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder serverConfigurationsManagementSettings(@Nullable ServerConfigurationsManagementSettingsResponse serverConfigurationsManagementSettings) {

            this.serverConfigurationsManagementSettings = serverConfigurationsManagementSettings;
            return this;
        }
        @CustomType.Setter
        public Builder sqlImageOffer(@Nullable String sqlImageOffer) {

            this.sqlImageOffer = sqlImageOffer;
            return this;
        }
        @CustomType.Setter
        public Builder sqlImageSku(@Nullable String sqlImageSku) {

            this.sqlImageSku = sqlImageSku;
            return this;
        }
        @CustomType.Setter
        public Builder sqlManagement(@Nullable String sqlManagement) {

            this.sqlManagement = sqlManagement;
            return this;
        }
        @CustomType.Setter
        public Builder sqlServerLicenseType(@Nullable String sqlServerLicenseType) {

            this.sqlServerLicenseType = sqlServerLicenseType;
            return this;
        }
        @CustomType.Setter
        public Builder sqlVirtualMachineGroupResourceId(@Nullable String sqlVirtualMachineGroupResourceId) {

            this.sqlVirtualMachineGroupResourceId = sqlVirtualMachineGroupResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder storageConfigurationSettings(@Nullable StorageConfigurationSettingsResponse storageConfigurationSettings) {

            this.storageConfigurationSettings = storageConfigurationSettings;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetSqlVirtualMachineResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSqlVirtualMachineResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder virtualMachineResourceId(@Nullable String virtualMachineResourceId) {

            this.virtualMachineResourceId = virtualMachineResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder wsfcDomainCredentials(@Nullable WsfcDomainCredentialsResponse wsfcDomainCredentials) {

            this.wsfcDomainCredentials = wsfcDomainCredentials;
            return this;
        }
        @CustomType.Setter
        public Builder wsfcStaticIp(@Nullable String wsfcStaticIp) {

            this.wsfcStaticIp = wsfcStaticIp;
            return this;
        }
        public GetSqlVirtualMachineResult build() {
            final var _resultValue = new GetSqlVirtualMachineResult();
            _resultValue.assessmentSettings = assessmentSettings;
            _resultValue.autoBackupSettings = autoBackupSettings;
            _resultValue.autoPatchingSettings = autoPatchingSettings;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.keyVaultCredentialSettings = keyVaultCredentialSettings;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.serverConfigurationsManagementSettings = serverConfigurationsManagementSettings;
            _resultValue.sqlImageOffer = sqlImageOffer;
            _resultValue.sqlImageSku = sqlImageSku;
            _resultValue.sqlManagement = sqlManagement;
            _resultValue.sqlServerLicenseType = sqlServerLicenseType;
            _resultValue.sqlVirtualMachineGroupResourceId = sqlVirtualMachineGroupResourceId;
            _resultValue.storageConfigurationSettings = storageConfigurationSettings;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.virtualMachineResourceId = virtualMachineResourceId;
            _resultValue.wsfcDomainCredentials = wsfcDomainCredentials;
            _resultValue.wsfcStaticIp = wsfcStaticIp;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy