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

com.pulumi.azure.backup.inputs.PolicyVMTieringPolicyArchivedRestorePointArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.15.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.azure.backup.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PolicyVMTieringPolicyArchivedRestorePointArgs Empty = new PolicyVMTieringPolicyArchivedRestorePointArgs();

    /**
     * The number of days/weeks/months/years to retain backups in current tier before tiering.
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return The number of days/weeks/months/years to retain backups in current tier before tiering.
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
     * 
     */
    @Import(name="durationType")
    private @Nullable Output durationType;

    /**
     * @return The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
     * 
     */
    public Optional> durationType() {
        return Optional.ofNullable(this.durationType);
    }

    /**
     * The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
     * 
     */
    @Import(name="mode", required=true)
    private Output mode;

    /**
     * @return The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
     * 
     */
    public Output mode() {
        return this.mode;
    }

    private PolicyVMTieringPolicyArchivedRestorePointArgs() {}

    private PolicyVMTieringPolicyArchivedRestorePointArgs(PolicyVMTieringPolicyArchivedRestorePointArgs $) {
        this.duration = $.duration;
        this.durationType = $.durationType;
        this.mode = $.mode;
    }

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

    public static final class Builder {
        private PolicyVMTieringPolicyArchivedRestorePointArgs $;

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

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

        /**
         * @param duration The number of days/weeks/months/years to retain backups in current tier before tiering.
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration The number of days/weeks/months/years to retain backups in current tier before tiering.
         * 
         * @return builder
         * 
         */
        public Builder duration(Integer duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param durationType The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
         * 
         * @return builder
         * 
         */
        public Builder durationType(@Nullable Output durationType) {
            $.durationType = durationType;
            return this;
        }

        /**
         * @param durationType The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
         * 
         * @return builder
         * 
         */
        public Builder durationType(String durationType) {
            return durationType(Output.of(durationType));
        }

        /**
         * @param mode The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
         * 
         * @return builder
         * 
         */
        public Builder mode(Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        public PolicyVMTieringPolicyArchivedRestorePointArgs build() {
            if ($.mode == null) {
                throw new MissingRequiredPropertyException("PolicyVMTieringPolicyArchivedRestorePointArgs", "mode");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy