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

com.pulumi.azurenative.recoveryservices.inputs.AzureVmWorkloadProtectionPolicyArgs 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.recoveryservices.inputs;

import com.pulumi.azurenative.recoveryservices.enums.WorkloadType;
import com.pulumi.azurenative.recoveryservices.inputs.SettingsArgs;
import com.pulumi.azurenative.recoveryservices.inputs.SubProtectionPolicyArgs;
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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Azure VM (Mercury) workload-specific backup policy.
 * 
 */
public final class AzureVmWorkloadProtectionPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureVmWorkloadProtectionPolicyArgs Empty = new AzureVmWorkloadProtectionPolicyArgs();

    /**
     * This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'AzureWorkload'.
     * 
     */
    @Import(name="backupManagementType", required=true)
    private Output backupManagementType;

    /**
     * @return This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'AzureWorkload'.
     * 
     */
    public Output backupManagementType() {
        return this.backupManagementType;
    }

    /**
     * Fix the policy inconsistency
     * 
     */
    @Import(name="makePolicyConsistent")
    private @Nullable Output makePolicyConsistent;

    /**
     * @return Fix the policy inconsistency
     * 
     */
    public Optional> makePolicyConsistent() {
        return Optional.ofNullable(this.makePolicyConsistent);
    }

    /**
     * Number of items associated with this policy.
     * 
     */
    @Import(name="protectedItemsCount")
    private @Nullable Output protectedItemsCount;

    /**
     * @return Number of items associated with this policy.
     * 
     */
    public Optional> protectedItemsCount() {
        return Optional.ofNullable(this.protectedItemsCount);
    }

    /**
     * ResourceGuard Operation Requests
     * 
     */
    @Import(name="resourceGuardOperationRequests")
    private @Nullable Output> resourceGuardOperationRequests;

    /**
     * @return ResourceGuard Operation Requests
     * 
     */
    public Optional>> resourceGuardOperationRequests() {
        return Optional.ofNullable(this.resourceGuardOperationRequests);
    }

    /**
     * Common settings for the backup management
     * 
     */
    @Import(name="settings")
    private @Nullable Output settings;

    /**
     * @return Common settings for the backup management
     * 
     */
    public Optional> settings() {
        return Optional.ofNullable(this.settings);
    }

    /**
     * List of sub-protection policies which includes schedule and retention
     * 
     */
    @Import(name="subProtectionPolicy")
    private @Nullable Output> subProtectionPolicy;

    /**
     * @return List of sub-protection policies which includes schedule and retention
     * 
     */
    public Optional>> subProtectionPolicy() {
        return Optional.ofNullable(this.subProtectionPolicy);
    }

    /**
     * Type of workload for the backup management
     * 
     */
    @Import(name="workLoadType")
    private @Nullable Output> workLoadType;

    /**
     * @return Type of workload for the backup management
     * 
     */
    public Optional>> workLoadType() {
        return Optional.ofNullable(this.workLoadType);
    }

    private AzureVmWorkloadProtectionPolicyArgs() {}

    private AzureVmWorkloadProtectionPolicyArgs(AzureVmWorkloadProtectionPolicyArgs $) {
        this.backupManagementType = $.backupManagementType;
        this.makePolicyConsistent = $.makePolicyConsistent;
        this.protectedItemsCount = $.protectedItemsCount;
        this.resourceGuardOperationRequests = $.resourceGuardOperationRequests;
        this.settings = $.settings;
        this.subProtectionPolicy = $.subProtectionPolicy;
        this.workLoadType = $.workLoadType;
    }

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

    public static final class Builder {
        private AzureVmWorkloadProtectionPolicyArgs $;

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

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

        /**
         * @param backupManagementType This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
         * Expected value is 'AzureWorkload'.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(Output backupManagementType) {
            $.backupManagementType = backupManagementType;
            return this;
        }

        /**
         * @param backupManagementType This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
         * Expected value is 'AzureWorkload'.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(String backupManagementType) {
            return backupManagementType(Output.of(backupManagementType));
        }

        /**
         * @param makePolicyConsistent Fix the policy inconsistency
         * 
         * @return builder
         * 
         */
        public Builder makePolicyConsistent(@Nullable Output makePolicyConsistent) {
            $.makePolicyConsistent = makePolicyConsistent;
            return this;
        }

        /**
         * @param makePolicyConsistent Fix the policy inconsistency
         * 
         * @return builder
         * 
         */
        public Builder makePolicyConsistent(Boolean makePolicyConsistent) {
            return makePolicyConsistent(Output.of(makePolicyConsistent));
        }

        /**
         * @param protectedItemsCount Number of items associated with this policy.
         * 
         * @return builder
         * 
         */
        public Builder protectedItemsCount(@Nullable Output protectedItemsCount) {
            $.protectedItemsCount = protectedItemsCount;
            return this;
        }

        /**
         * @param protectedItemsCount Number of items associated with this policy.
         * 
         * @return builder
         * 
         */
        public Builder protectedItemsCount(Integer protectedItemsCount) {
            return protectedItemsCount(Output.of(protectedItemsCount));
        }

        /**
         * @param resourceGuardOperationRequests ResourceGuard Operation Requests
         * 
         * @return builder
         * 
         */
        public Builder resourceGuardOperationRequests(@Nullable Output> resourceGuardOperationRequests) {
            $.resourceGuardOperationRequests = resourceGuardOperationRequests;
            return this;
        }

        /**
         * @param resourceGuardOperationRequests ResourceGuard Operation Requests
         * 
         * @return builder
         * 
         */
        public Builder resourceGuardOperationRequests(List resourceGuardOperationRequests) {
            return resourceGuardOperationRequests(Output.of(resourceGuardOperationRequests));
        }

        /**
         * @param resourceGuardOperationRequests ResourceGuard Operation Requests
         * 
         * @return builder
         * 
         */
        public Builder resourceGuardOperationRequests(String... resourceGuardOperationRequests) {
            return resourceGuardOperationRequests(List.of(resourceGuardOperationRequests));
        }

        /**
         * @param settings Common settings for the backup management
         * 
         * @return builder
         * 
         */
        public Builder settings(@Nullable Output settings) {
            $.settings = settings;
            return this;
        }

        /**
         * @param settings Common settings for the backup management
         * 
         * @return builder
         * 
         */
        public Builder settings(SettingsArgs settings) {
            return settings(Output.of(settings));
        }

        /**
         * @param subProtectionPolicy List of sub-protection policies which includes schedule and retention
         * 
         * @return builder
         * 
         */
        public Builder subProtectionPolicy(@Nullable Output> subProtectionPolicy) {
            $.subProtectionPolicy = subProtectionPolicy;
            return this;
        }

        /**
         * @param subProtectionPolicy List of sub-protection policies which includes schedule and retention
         * 
         * @return builder
         * 
         */
        public Builder subProtectionPolicy(List subProtectionPolicy) {
            return subProtectionPolicy(Output.of(subProtectionPolicy));
        }

        /**
         * @param subProtectionPolicy List of sub-protection policies which includes schedule and retention
         * 
         * @return builder
         * 
         */
        public Builder subProtectionPolicy(SubProtectionPolicyArgs... subProtectionPolicy) {
            return subProtectionPolicy(List.of(subProtectionPolicy));
        }

        /**
         * @param workLoadType Type of workload for the backup management
         * 
         * @return builder
         * 
         */
        public Builder workLoadType(@Nullable Output> workLoadType) {
            $.workLoadType = workLoadType;
            return this;
        }

        /**
         * @param workLoadType Type of workload for the backup management
         * 
         * @return builder
         * 
         */
        public Builder workLoadType(Either workLoadType) {
            return workLoadType(Output.of(workLoadType));
        }

        /**
         * @param workLoadType Type of workload for the backup management
         * 
         * @return builder
         * 
         */
        public Builder workLoadType(String workLoadType) {
            return workLoadType(Either.ofLeft(workLoadType));
        }

        /**
         * @param workLoadType Type of workload for the backup management
         * 
         * @return builder
         * 
         */
        public Builder workLoadType(WorkloadType workLoadType) {
            return workLoadType(Either.ofRight(workLoadType));
        }

        public AzureVmWorkloadProtectionPolicyArgs build() {
            $.backupManagementType = Codegen.stringProp("backupManagementType").output().arg($.backupManagementType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy