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

com.pulumi.azure.backup.outputs.PolicyVMWorkloadProtectionPolicyBackup 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.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PolicyVMWorkloadProtectionPolicyBackup {
    /**
     * @return The backup frequency for the VM Workload Backup Policy. Possible values are `Daily` and `Weekly`.
     * 
     */
    private @Nullable String frequency;
    /**
     * @return The backup frequency in minutes for the VM Workload Backup Policy. Possible values are `15`, `30`, `60`, `120`, `240`, `480`, `720` and `1440`.
     * 
     */
    private @Nullable Integer frequencyInMinutes;
    /**
     * @return The time of day to perform the backup in 24hour format.
     * 
     */
    private @Nullable String time;
    /**
     * @return The days of the week to perform backups on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. This is used when `frequency` is `Weekly`.
     * 
     */
    private @Nullable List weekdays;

    private PolicyVMWorkloadProtectionPolicyBackup() {}
    /**
     * @return The backup frequency for the VM Workload Backup Policy. Possible values are `Daily` and `Weekly`.
     * 
     */
    public Optional frequency() {
        return Optional.ofNullable(this.frequency);
    }
    /**
     * @return The backup frequency in minutes for the VM Workload Backup Policy. Possible values are `15`, `30`, `60`, `120`, `240`, `480`, `720` and `1440`.
     * 
     */
    public Optional frequencyInMinutes() {
        return Optional.ofNullable(this.frequencyInMinutes);
    }
    /**
     * @return The time of day to perform the backup in 24hour format.
     * 
     */
    public Optional time() {
        return Optional.ofNullable(this.time);
    }
    /**
     * @return The days of the week to perform backups on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. This is used when `frequency` is `Weekly`.
     * 
     */
    public List weekdays() {
        return this.weekdays == null ? List.of() : this.weekdays;
    }

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

    public static Builder builder(PolicyVMWorkloadProtectionPolicyBackup defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String frequency;
        private @Nullable Integer frequencyInMinutes;
        private @Nullable String time;
        private @Nullable List weekdays;
        public Builder() {}
        public Builder(PolicyVMWorkloadProtectionPolicyBackup defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.frequency = defaults.frequency;
    	      this.frequencyInMinutes = defaults.frequencyInMinutes;
    	      this.time = defaults.time;
    	      this.weekdays = defaults.weekdays;
        }

        @CustomType.Setter
        public Builder frequency(@Nullable String frequency) {

            this.frequency = frequency;
            return this;
        }
        @CustomType.Setter
        public Builder frequencyInMinutes(@Nullable Integer frequencyInMinutes) {

            this.frequencyInMinutes = frequencyInMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder time(@Nullable String time) {

            this.time = time;
            return this;
        }
        @CustomType.Setter
        public Builder weekdays(@Nullable List weekdays) {

            this.weekdays = weekdays;
            return this;
        }
        public Builder weekdays(String... weekdays) {
            return weekdays(List.of(weekdays));
        }
        public PolicyVMWorkloadProtectionPolicyBackup build() {
            final var _resultValue = new PolicyVMWorkloadProtectionPolicyBackup();
            _resultValue.frequency = frequency;
            _resultValue.frequencyInMinutes = frequencyInMinutes;
            _resultValue.time = time;
            _resultValue.weekdays = weekdays;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy