// *** 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.azure.backup.inputs;

import com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyArgs;
import com.pulumi.azure.backup.inputs.PolicyVMWorkloadSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PolicyVMWorkloadState Empty = new PolicyVMWorkloadState();

    /**
     * The name of the VM Workload Backup Policy. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the VM Workload Backup Policy. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more `protection_policy` blocks as defined below.
     * 
     */
    @Import(name="protectionPolicies")
    private @Nullable Output<List<PolicyVMWorkloadProtectionPolicyArgs>> protectionPolicies;

    /**
     * @return One or more `protection_policy` blocks as defined below.
     * 
     */
    public Optional<Output<List<PolicyVMWorkloadProtectionPolicyArgs>>> protectionPolicies() {
        return Optional.ofNullable(this.protectionPolicies);
    }

    /**
     * The name of the Recovery Services Vault to use. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="recoveryVaultName")
    private @Nullable Output<String> recoveryVaultName;

    /**
     * @return The name of the Recovery Services Vault to use. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> recoveryVaultName() {
        return Optional.ofNullable(this.recoveryVaultName);
    }

    /**
     * The name of the resource group in which to create the VM Workload Backup Policy. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output<String> resourceGroupName;

    /**
     * @return The name of the resource group in which to create the VM Workload Backup Policy. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A `settings` block as defined below.
     * 
     */
    @Import(name="settings")
    private @Nullable Output<PolicyVMWorkloadSettingsArgs> settings;

    /**
     * @return A `settings` block as defined below.
     * 
     */
    public Optional<Output<PolicyVMWorkloadSettingsArgs>> settings() {
        return Optional.ofNullable(this.settings);
    }

    /**
     * The VM Workload type for the Backup Policy. Possible values are `SQLDataBase` and `SAPHanaDatabase`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="workloadType")
    private @Nullable Output<String> workloadType;

    /**
     * @return The VM Workload type for the Backup Policy. Possible values are `SQLDataBase` and `SAPHanaDatabase`. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> workloadType() {
        return Optional.ofNullable(this.workloadType);
    }

    private PolicyVMWorkloadState() {}

    private PolicyVMWorkloadState(PolicyVMWorkloadState $) {
        this.name = $.name;
        this.protectionPolicies = $.protectionPolicies;
        this.recoveryVaultName = $.recoveryVaultName;
        this.resourceGroupName = $.resourceGroupName;
        this.settings = $.settings;
        this.workloadType = $.workloadType;
    }

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

    public static final class Builder {
        private PolicyVMWorkloadState $;

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

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

        /**
         * @param name The name of the VM Workload Backup Policy. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the VM Workload Backup Policy. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param protectionPolicies One or more `protection_policy` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder protectionPolicies(@Nullable Output<List<PolicyVMWorkloadProtectionPolicyArgs>> protectionPolicies) {
            $.protectionPolicies = protectionPolicies;
            return this;
        }

        /**
         * @param protectionPolicies One or more `protection_policy` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder protectionPolicies(List<PolicyVMWorkloadProtectionPolicyArgs> protectionPolicies) {
            return protectionPolicies(Output.of(protectionPolicies));
        }

        /**
         * @param protectionPolicies One or more `protection_policy` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder protectionPolicies(PolicyVMWorkloadProtectionPolicyArgs... protectionPolicies) {
            return protectionPolicies(List.of(protectionPolicies));
        }

        /**
         * @param recoveryVaultName The name of the Recovery Services Vault to use. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder recoveryVaultName(@Nullable Output<String> recoveryVaultName) {
            $.recoveryVaultName = recoveryVaultName;
            return this;
        }

        /**
         * @param recoveryVaultName The name of the Recovery Services Vault to use. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder recoveryVaultName(String recoveryVaultName) {
            return recoveryVaultName(Output.of(recoveryVaultName));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the VM Workload Backup Policy. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output<String> resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the VM Workload Backup Policy. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param settings A `settings` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder settings(@Nullable Output<PolicyVMWorkloadSettingsArgs> settings) {
            $.settings = settings;
            return this;
        }

        /**
         * @param settings A `settings` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder settings(PolicyVMWorkloadSettingsArgs settings) {
            return settings(Output.of(settings));
        }

        /**
         * @param workloadType The VM Workload type for the Backup Policy. Possible values are `SQLDataBase` and `SAPHanaDatabase`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workloadType(@Nullable Output<String> workloadType) {
            $.workloadType = workloadType;
            return this;
        }

        /**
         * @param workloadType The VM Workload type for the Backup Policy. Possible values are `SQLDataBase` and `SAPHanaDatabase`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workloadType(String workloadType) {
            return workloadType(Output.of(workloadType));
        }

        public PolicyVMWorkloadState build() {
            return $;
        }
    }

}
