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

com.pulumi.azurenative.workloads.inputs.TieringPolicyArgs 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.workloads.inputs;

import com.pulumi.azurenative.workloads.enums.RetentionDurationType;
import com.pulumi.azurenative.workloads.enums.TieringMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Tiering Policy for a target tier.
 * If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier
 * 
 */
public final class TieringPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final TieringPolicyArgs Empty = new TieringPolicyArgs();

    /**
     * Number of days/weeks/months/years to retain backups in current tier before tiering.
     * Used only if TieringMode is set to TierAfter
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return Number of days/weeks/months/years to retain backups in current tier before tiering.
     * Used only if TieringMode is set to TierAfter
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * Retention duration type: days/weeks/months/years
     * Used only if TieringMode is set to TierAfter
     * 
     */
    @Import(name="durationType")
    private @Nullable Output> durationType;

    /**
     * @return Retention duration type: days/weeks/months/years
     * Used only if TieringMode is set to TierAfter
     * 
     */
    public Optional>> durationType() {
        return Optional.ofNullable(this.durationType);
    }

    /**
     * Tiering Mode to control automatic tiering of recovery points. Supported values are:
     * 1. TierRecommended: Tier all recovery points recommended to be tiered
     * 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
     * 3. DoNotTier: Do not tier any recovery points
     * 
     */
    @Import(name="tieringMode")
    private @Nullable Output> tieringMode;

    /**
     * @return Tiering Mode to control automatic tiering of recovery points. Supported values are:
     * 1. TierRecommended: Tier all recovery points recommended to be tiered
     * 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
     * 3. DoNotTier: Do not tier any recovery points
     * 
     */
    public Optional>> tieringMode() {
        return Optional.ofNullable(this.tieringMode);
    }

    private TieringPolicyArgs() {}

    private TieringPolicyArgs(TieringPolicyArgs $) {
        this.duration = $.duration;
        this.durationType = $.durationType;
        this.tieringMode = $.tieringMode;
    }

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

    public static final class Builder {
        private TieringPolicyArgs $;

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

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

        /**
         * @param duration Number of days/weeks/months/years to retain backups in current tier before tiering.
         * Used only if TieringMode is set to TierAfter
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Number of days/weeks/months/years to retain backups in current tier before tiering.
         * Used only if TieringMode is set to TierAfter
         * 
         * @return builder
         * 
         */
        public Builder duration(Integer duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param durationType Retention duration type: days/weeks/months/years
         * Used only if TieringMode is set to TierAfter
         * 
         * @return builder
         * 
         */
        public Builder durationType(@Nullable Output> durationType) {
            $.durationType = durationType;
            return this;
        }

        /**
         * @param durationType Retention duration type: days/weeks/months/years
         * Used only if TieringMode is set to TierAfter
         * 
         * @return builder
         * 
         */
        public Builder durationType(Either durationType) {
            return durationType(Output.of(durationType));
        }

        /**
         * @param durationType Retention duration type: days/weeks/months/years
         * Used only if TieringMode is set to TierAfter
         * 
         * @return builder
         * 
         */
        public Builder durationType(String durationType) {
            return durationType(Either.ofLeft(durationType));
        }

        /**
         * @param durationType Retention duration type: days/weeks/months/years
         * Used only if TieringMode is set to TierAfter
         * 
         * @return builder
         * 
         */
        public Builder durationType(RetentionDurationType durationType) {
            return durationType(Either.ofRight(durationType));
        }

        /**
         * @param tieringMode Tiering Mode to control automatic tiering of recovery points. Supported values are:
         * 1. TierRecommended: Tier all recovery points recommended to be tiered
         * 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
         * 3. DoNotTier: Do not tier any recovery points
         * 
         * @return builder
         * 
         */
        public Builder tieringMode(@Nullable Output> tieringMode) {
            $.tieringMode = tieringMode;
            return this;
        }

        /**
         * @param tieringMode Tiering Mode to control automatic tiering of recovery points. Supported values are:
         * 1. TierRecommended: Tier all recovery points recommended to be tiered
         * 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
         * 3. DoNotTier: Do not tier any recovery points
         * 
         * @return builder
         * 
         */
        public Builder tieringMode(Either tieringMode) {
            return tieringMode(Output.of(tieringMode));
        }

        /**
         * @param tieringMode Tiering Mode to control automatic tiering of recovery points. Supported values are:
         * 1. TierRecommended: Tier all recovery points recommended to be tiered
         * 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
         * 3. DoNotTier: Do not tier any recovery points
         * 
         * @return builder
         * 
         */
        public Builder tieringMode(String tieringMode) {
            return tieringMode(Either.ofLeft(tieringMode));
        }

        /**
         * @param tieringMode Tiering Mode to control automatic tiering of recovery points. Supported values are:
         * 1. TierRecommended: Tier all recovery points recommended to be tiered
         * 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
         * 3. DoNotTier: Do not tier any recovery points
         * 
         * @return builder
         * 
         */
        public Builder tieringMode(TieringMode tieringMode) {
            return tieringMode(Either.ofRight(tieringMode));
        }

        public TieringPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy