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

com.pulumi.azurenative.workloads.inputs.LongTermRetentionPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.inputs.DailyRetentionScheduleArgs;
import com.pulumi.azurenative.workloads.inputs.MonthlyRetentionScheduleArgs;
import com.pulumi.azurenative.workloads.inputs.WeeklyRetentionScheduleArgs;
import com.pulumi.azurenative.workloads.inputs.YearlyRetentionScheduleArgs;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Long term retention policy.
 * 
 */
public final class LongTermRetentionPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final LongTermRetentionPolicyArgs Empty = new LongTermRetentionPolicyArgs();

    /**
     * Daily retention schedule of the protection policy.
     * 
     */
    @Import(name="dailySchedule")
    private @Nullable Output dailySchedule;

    /**
     * @return Daily retention schedule of the protection policy.
     * 
     */
    public Optional> dailySchedule() {
        return Optional.ofNullable(this.dailySchedule);
    }

    /**
     * Monthly retention schedule of the protection policy.
     * 
     */
    @Import(name="monthlySchedule")
    private @Nullable Output monthlySchedule;

    /**
     * @return Monthly retention schedule of the protection policy.
     * 
     */
    public Optional> monthlySchedule() {
        return Optional.ofNullable(this.monthlySchedule);
    }

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

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

    /**
     * Weekly retention schedule of the protection policy.
     * 
     */
    @Import(name="weeklySchedule")
    private @Nullable Output weeklySchedule;

    /**
     * @return Weekly retention schedule of the protection policy.
     * 
     */
    public Optional> weeklySchedule() {
        return Optional.ofNullable(this.weeklySchedule);
    }

    /**
     * Yearly retention schedule of the protection policy.
     * 
     */
    @Import(name="yearlySchedule")
    private @Nullable Output yearlySchedule;

    /**
     * @return Yearly retention schedule of the protection policy.
     * 
     */
    public Optional> yearlySchedule() {
        return Optional.ofNullable(this.yearlySchedule);
    }

    private LongTermRetentionPolicyArgs() {}

    private LongTermRetentionPolicyArgs(LongTermRetentionPolicyArgs $) {
        this.dailySchedule = $.dailySchedule;
        this.monthlySchedule = $.monthlySchedule;
        this.retentionPolicyType = $.retentionPolicyType;
        this.weeklySchedule = $.weeklySchedule;
        this.yearlySchedule = $.yearlySchedule;
    }

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

    public static final class Builder {
        private LongTermRetentionPolicyArgs $;

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

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

        /**
         * @param dailySchedule Daily retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder dailySchedule(@Nullable Output dailySchedule) {
            $.dailySchedule = dailySchedule;
            return this;
        }

        /**
         * @param dailySchedule Daily retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder dailySchedule(DailyRetentionScheduleArgs dailySchedule) {
            return dailySchedule(Output.of(dailySchedule));
        }

        /**
         * @param monthlySchedule Monthly retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder monthlySchedule(@Nullable Output monthlySchedule) {
            $.monthlySchedule = monthlySchedule;
            return this;
        }

        /**
         * @param monthlySchedule Monthly retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder monthlySchedule(MonthlyRetentionScheduleArgs monthlySchedule) {
            return monthlySchedule(Output.of(monthlySchedule));
        }

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

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

        /**
         * @param weeklySchedule Weekly retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder weeklySchedule(@Nullable Output weeklySchedule) {
            $.weeklySchedule = weeklySchedule;
            return this;
        }

        /**
         * @param weeklySchedule Weekly retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder weeklySchedule(WeeklyRetentionScheduleArgs weeklySchedule) {
            return weeklySchedule(Output.of(weeklySchedule));
        }

        /**
         * @param yearlySchedule Yearly retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder yearlySchedule(@Nullable Output yearlySchedule) {
            $.yearlySchedule = yearlySchedule;
            return this;
        }

        /**
         * @param yearlySchedule Yearly retention schedule of the protection policy.
         * 
         * @return builder
         * 
         */
        public Builder yearlySchedule(YearlyRetentionScheduleArgs yearlySchedule) {
            return yearlySchedule(Output.of(yearlySchedule));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy