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

com.pulumi.azurenative.workloads.inputs.SqlBackupDataArgs 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.workloads.inputs;

import com.pulumi.azurenative.workloads.inputs.DBBackupPolicyPropertiesArgs;
import com.pulumi.azurenative.workloads.inputs.ExistingRecoveryServicesVaultArgs;
import com.pulumi.azurenative.workloads.inputs.NewRecoveryServicesVaultArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Defines the SQL Backup data for a virtual instance for SAP.
 * 
 */
public final class SqlBackupDataArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlBackupDataArgs Empty = new SqlBackupDataArgs();

    /**
     * Defines the policy properties for database backup.
     * 
     */
    @Import(name="backupPolicy", required=true)
    private Output backupPolicy;

    /**
     * @return Defines the policy properties for database backup.
     * 
     */
    public Output backupPolicy() {
        return this.backupPolicy;
    }

    /**
     * The type of backup, VM, SQL or HANA.
     * Expected value is 'SQL'.
     * 
     */
    @Import(name="backupType", required=true)
    private Output backupType;

    /**
     * @return The type of backup, VM, SQL or HANA.
     * Expected value is 'SQL'.
     * 
     */
    public Output backupType() {
        return this.backupType;
    }

    /**
     * The properties of the recovery services vault used for backup.
     * 
     */
    @Import(name="recoveryServicesVault", required=true)
    private Output> recoveryServicesVault;

    /**
     * @return The properties of the recovery services vault used for backup.
     * 
     */
    public Output> recoveryServicesVault() {
        return this.recoveryServicesVault;
    }

    private SqlBackupDataArgs() {}

    private SqlBackupDataArgs(SqlBackupDataArgs $) {
        this.backupPolicy = $.backupPolicy;
        this.backupType = $.backupType;
        this.recoveryServicesVault = $.recoveryServicesVault;
    }

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

    public static final class Builder {
        private SqlBackupDataArgs $;

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

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

        /**
         * @param backupPolicy Defines the policy properties for database backup.
         * 
         * @return builder
         * 
         */
        public Builder backupPolicy(Output backupPolicy) {
            $.backupPolicy = backupPolicy;
            return this;
        }

        /**
         * @param backupPolicy Defines the policy properties for database backup.
         * 
         * @return builder
         * 
         */
        public Builder backupPolicy(DBBackupPolicyPropertiesArgs backupPolicy) {
            return backupPolicy(Output.of(backupPolicy));
        }

        /**
         * @param backupType The type of backup, VM, SQL or HANA.
         * Expected value is 'SQL'.
         * 
         * @return builder
         * 
         */
        public Builder backupType(Output backupType) {
            $.backupType = backupType;
            return this;
        }

        /**
         * @param backupType The type of backup, VM, SQL or HANA.
         * Expected value is 'SQL'.
         * 
         * @return builder
         * 
         */
        public Builder backupType(String backupType) {
            return backupType(Output.of(backupType));
        }

        /**
         * @param recoveryServicesVault The properties of the recovery services vault used for backup.
         * 
         * @return builder
         * 
         */
        public Builder recoveryServicesVault(Output> recoveryServicesVault) {
            $.recoveryServicesVault = recoveryServicesVault;
            return this;
        }

        /**
         * @param recoveryServicesVault The properties of the recovery services vault used for backup.
         * 
         * @return builder
         * 
         */
        public Builder recoveryServicesVault(Either recoveryServicesVault) {
            return recoveryServicesVault(Output.of(recoveryServicesVault));
        }

        /**
         * @param recoveryServicesVault The properties of the recovery services vault used for backup.
         * 
         * @return builder
         * 
         */
        public Builder recoveryServicesVault(ExistingRecoveryServicesVaultArgs recoveryServicesVault) {
            return recoveryServicesVault(Either.ofLeft(recoveryServicesVault));
        }

        /**
         * @param recoveryServicesVault The properties of the recovery services vault used for backup.
         * 
         * @return builder
         * 
         */
        public Builder recoveryServicesVault(NewRecoveryServicesVaultArgs recoveryServicesVault) {
            return recoveryServicesVault(Either.ofRight(recoveryServicesVault));
        }

        public SqlBackupDataArgs build() {
            if ($.backupPolicy == null) {
                throw new MissingRequiredPropertyException("SqlBackupDataArgs", "backupPolicy");
            }
            $.backupType = Codegen.stringProp("backupType").output().arg($.backupType).require();
            if ($.recoveryServicesVault == null) {
                throw new MissingRequiredPropertyException("SqlBackupDataArgs", "recoveryServicesVault");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy