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

com.pulumi.azurenative.recoveryservices.inputs.GenericProtectionPolicyArgs Maven / Gradle / Ivy

// *** 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.inputs.SubProtectionPolicyArgs;
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.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 GenericProtectionPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final GenericProtectionPolicyArgs Empty = new GenericProtectionPolicyArgs();

    /**
     * This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'GenericProtectionPolicy'.
     * 
     */
    @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 'GenericProtectionPolicy'.
     * 
     */
    public Output backupManagementType() {
        return this.backupManagementType;
    }

    /**
     * Name of this policy's fabric.
     * 
     */
    @Import(name="fabricName")
    private @Nullable Output fabricName;

    /**
     * @return Name of this policy's fabric.
     * 
     */
    public Optional> fabricName() {
        return Optional.ofNullable(this.fabricName);
    }

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

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

    /**
     * TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".
     * 
     */
    @Import(name="timeZone")
    private @Nullable Output timeZone;

    /**
     * @return TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".
     * 
     */
    public Optional> timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

    private GenericProtectionPolicyArgs() {}

    private GenericProtectionPolicyArgs(GenericProtectionPolicyArgs $) {
        this.backupManagementType = $.backupManagementType;
        this.fabricName = $.fabricName;
        this.protectedItemsCount = $.protectedItemsCount;
        this.resourceGuardOperationRequests = $.resourceGuardOperationRequests;
        this.subProtectionPolicy = $.subProtectionPolicy;
        this.timeZone = $.timeZone;
    }

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

    public static final class Builder {
        private GenericProtectionPolicyArgs $;

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

        public Builder(GenericProtectionPolicyArgs defaults) {
            $ = new GenericProtectionPolicyArgs(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 'GenericProtectionPolicy'.
         * 
         * @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 'GenericProtectionPolicy'.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(String backupManagementType) {
            return backupManagementType(Output.of(backupManagementType));
        }

        /**
         * @param fabricName Name of this policy's fabric.
         * 
         * @return builder
         * 
         */
        public Builder fabricName(@Nullable Output fabricName) {
            $.fabricName = fabricName;
            return this;
        }

        /**
         * @param fabricName Name of this policy's fabric.
         * 
         * @return builder
         * 
         */
        public Builder fabricName(String fabricName) {
            return fabricName(Output.of(fabricName));
        }

        /**
         * @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 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 timeZone TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".
         * 
         * @return builder
         * 
         */
        public Builder timeZone(@Nullable Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy