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

com.pulumi.azurenative.workloads.inputs.VMBackupDataArgs Maven / Gradle / Ivy

The 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.DiskExclusionPropertiesArgs;
import com.pulumi.azurenative.workloads.inputs.ExistingRecoveryServicesVaultArgs;
import com.pulumi.azurenative.workloads.inputs.NewRecoveryServicesVaultArgs;
import com.pulumi.azurenative.workloads.inputs.VMBackupPolicyPropertiesArgs;
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 VM Backup data for a virtual instance for SAP.
 * 
 */
public final class VMBackupDataArgs extends com.pulumi.resources.ResourceArgs {

    public static final VMBackupDataArgs Empty = new VMBackupDataArgs();

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

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

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

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

    /**
     * Defines the disk exclusion properties for virtual machine backup.
     * 
     */
    @Import(name="diskExclusionProperties")
    private @Nullable Output diskExclusionProperties;

    /**
     * @return Defines the disk exclusion properties for virtual machine backup.
     * 
     */
    public Optional> diskExclusionProperties() {
        return Optional.ofNullable(this.diskExclusionProperties);
    }

    /**
     * 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 VMBackupDataArgs() {}

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

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

    public static final class Builder {
        private VMBackupDataArgs $;

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

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

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

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

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

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

        /**
         * @param diskExclusionProperties Defines the disk exclusion properties for virtual machine backup.
         * 
         * @return builder
         * 
         */
        public Builder diskExclusionProperties(@Nullable Output diskExclusionProperties) {
            $.diskExclusionProperties = diskExclusionProperties;
            return this;
        }

        /**
         * @param diskExclusionProperties Defines the disk exclusion properties for virtual machine backup.
         * 
         * @return builder
         * 
         */
        public Builder diskExclusionProperties(DiskExclusionPropertiesArgs diskExclusionProperties) {
            return diskExclusionProperties(Output.of(diskExclusionProperties));
        }

        /**
         * @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 VMBackupDataArgs build() {
            if ($.backupPolicy == null) {
                throw new MissingRequiredPropertyException("VMBackupDataArgs", "backupPolicy");
            }
            $.backupType = Codegen.stringProp("backupType").output().arg($.backupType).require();
            if ($.recoveryServicesVault == null) {
                throw new MissingRequiredPropertyException("VMBackupDataArgs", "recoveryServicesVault");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy