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

com.pulumi.azurenative.workloads.inputs.HanaBackupDataArgs 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.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.azurenative.workloads.inputs.SSLConfigurationArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HanaBackupDataArgs Empty = new HanaBackupDataArgs();

    /**
     * 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 'HANA'.
     * 
     */
    @Import(name="backupType", required=true)
    private Output backupType;

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

    /**
     * Defines the policy properties for database backup.
     * 
     */
    @Import(name="dbInstanceSnapshotBackupPolicy")
    private @Nullable Output dbInstanceSnapshotBackupPolicy;

    /**
     * @return Defines the policy properties for database backup.
     * 
     */
    public Optional> dbInstanceSnapshotBackupPolicy() {
        return Optional.ofNullable(this.dbInstanceSnapshotBackupPolicy);
    }

    /**
     * Name of the HANA Database User Store Key.
     * 
     */
    @Import(name="hdbuserstoreKeyName", required=true)
    private Output hdbuserstoreKeyName;

    /**
     * @return Name of the HANA Database User Store Key.
     * 
     */
    public Output hdbuserstoreKeyName() {
        return this.hdbuserstoreKeyName;
    }

    /**
     * Gets or sets the database instance number.
     * 
     */
    @Import(name="instanceNumber")
    private @Nullable Output instanceNumber;

    /**
     * @return Gets or sets the database instance number.
     * 
     */
    public Optional> instanceNumber() {
        return Optional.ofNullable(this.instanceNumber);
    }

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

    /**
     * Path of the SSL key store.
     * 
     */
    @Import(name="sslConfiguration")
    private @Nullable Output sslConfiguration;

    /**
     * @return Path of the SSL key store.
     * 
     */
    public Optional> sslConfiguration() {
        return Optional.ofNullable(this.sslConfiguration);
    }

    private HanaBackupDataArgs() {}

    private HanaBackupDataArgs(HanaBackupDataArgs $) {
        this.backupPolicy = $.backupPolicy;
        this.backupType = $.backupType;
        this.dbInstanceSnapshotBackupPolicy = $.dbInstanceSnapshotBackupPolicy;
        this.hdbuserstoreKeyName = $.hdbuserstoreKeyName;
        this.instanceNumber = $.instanceNumber;
        this.recoveryServicesVault = $.recoveryServicesVault;
        this.sslConfiguration = $.sslConfiguration;
    }

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

    public static final class Builder {
        private HanaBackupDataArgs $;

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

        public Builder(HanaBackupDataArgs defaults) {
            $ = new HanaBackupDataArgs(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 'HANA'.
         * 
         * @return builder
         * 
         */
        public Builder backupType(Output backupType) {
            $.backupType = backupType;
            return this;
        }

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

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

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

        /**
         * @param hdbuserstoreKeyName Name of the HANA Database User Store Key.
         * 
         * @return builder
         * 
         */
        public Builder hdbuserstoreKeyName(Output hdbuserstoreKeyName) {
            $.hdbuserstoreKeyName = hdbuserstoreKeyName;
            return this;
        }

        /**
         * @param hdbuserstoreKeyName Name of the HANA Database User Store Key.
         * 
         * @return builder
         * 
         */
        public Builder hdbuserstoreKeyName(String hdbuserstoreKeyName) {
            return hdbuserstoreKeyName(Output.of(hdbuserstoreKeyName));
        }

        /**
         * @param instanceNumber Gets or sets the database instance number.
         * 
         * @return builder
         * 
         */
        public Builder instanceNumber(@Nullable Output instanceNumber) {
            $.instanceNumber = instanceNumber;
            return this;
        }

        /**
         * @param instanceNumber Gets or sets the database instance number.
         * 
         * @return builder
         * 
         */
        public Builder instanceNumber(String instanceNumber) {
            return instanceNumber(Output.of(instanceNumber));
        }

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

        /**
         * @param sslConfiguration Path of the SSL key store.
         * 
         * @return builder
         * 
         */
        public Builder sslConfiguration(@Nullable Output sslConfiguration) {
            $.sslConfiguration = sslConfiguration;
            return this;
        }

        /**
         * @param sslConfiguration Path of the SSL key store.
         * 
         * @return builder
         * 
         */
        public Builder sslConfiguration(SSLConfigurationArgs sslConfiguration) {
            return sslConfiguration(Output.of(sslConfiguration));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy