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

com.pulumi.azure.backup.inputs.PolicyVMRetentionWeeklyArgs 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.10.0-alpha.1731737215
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.List;
import java.util.Objects;


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

    public static final PolicyVMRetentionWeeklyArgs Empty = new PolicyVMRetentionWeeklyArgs();

    /**
     * The number of weekly backups to keep. Must be between `1` and `9999`
     * 
     */
    @Import(name="count", required=true)
    private Output count;

    /**
     * @return The number of weekly backups to keep. Must be between `1` and `9999`
     * 
     */
    public Output count() {
        return this.count;
    }

    /**
     * The weekday backups to retain. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     * 
     */
    @Import(name="weekdays", required=true)
    private Output> weekdays;

    /**
     * @return The weekday backups to retain. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     * 
     */
    public Output> weekdays() {
        return this.weekdays;
    }

    private PolicyVMRetentionWeeklyArgs() {}

    private PolicyVMRetentionWeeklyArgs(PolicyVMRetentionWeeklyArgs $) {
        this.count = $.count;
        this.weekdays = $.weekdays;
    }

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

    public static final class Builder {
        private PolicyVMRetentionWeeklyArgs $;

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

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

        /**
         * @param count The number of weekly backups to keep. Must be between `1` and `9999`
         * 
         * @return builder
         * 
         */
        public Builder count(Output count) {
            $.count = count;
            return this;
        }

        /**
         * @param count The number of weekly backups to keep. Must be between `1` and `9999`
         * 
         * @return builder
         * 
         */
        public Builder count(Integer count) {
            return count(Output.of(count));
        }

        /**
         * @param weekdays The weekday backups to retain. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
         * 
         * @return builder
         * 
         */
        public Builder weekdays(Output> weekdays) {
            $.weekdays = weekdays;
            return this;
        }

        /**
         * @param weekdays The weekday backups to retain. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
         * 
         * @return builder
         * 
         */
        public Builder weekdays(List weekdays) {
            return weekdays(Output.of(weekdays));
        }

        /**
         * @param weekdays The weekday backups to retain. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
         * 
         * @return builder
         * 
         */
        public Builder weekdays(String... weekdays) {
            return weekdays(List.of(weekdays));
        }

        public PolicyVMRetentionWeeklyArgs build() {
            if ($.count == null) {
                throw new MissingRequiredPropertyException("PolicyVMRetentionWeeklyArgs", "count");
            }
            if ($.weekdays == null) {
                throw new MissingRequiredPropertyException("PolicyVMRetentionWeeklyArgs", "weekdays");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy