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

com.pulumi.azure.appservice.outputs.GetWindowsFunctionAppBackupSchedule 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.appservice.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetWindowsFunctionAppBackupSchedule {
    /**
     * @return How often the backup is executed.
     * 
     */
    private Integer frequencyInterval;
    /**
     * @return The unit of time the backup should take place.
     * 
     */
    private String frequencyUnit;
    /**
     * @return Should the service keep at least one backup.
     * 
     */
    private Boolean keepAtLeastOneBackup;
    /**
     * @return The time the backup was last attempted.
     * 
     */
    private String lastExecutionTime;
    /**
     * @return After how many days backups is deleted.
     * 
     */
    private Integer retentionPeriodDays;
    /**
     * @return When the schedule should start working in RFC-3339 format.
     * 
     */
    private String startTime;

    private GetWindowsFunctionAppBackupSchedule() {}
    /**
     * @return How often the backup is executed.
     * 
     */
    public Integer frequencyInterval() {
        return this.frequencyInterval;
    }
    /**
     * @return The unit of time the backup should take place.
     * 
     */
    public String frequencyUnit() {
        return this.frequencyUnit;
    }
    /**
     * @return Should the service keep at least one backup.
     * 
     */
    public Boolean keepAtLeastOneBackup() {
        return this.keepAtLeastOneBackup;
    }
    /**
     * @return The time the backup was last attempted.
     * 
     */
    public String lastExecutionTime() {
        return this.lastExecutionTime;
    }
    /**
     * @return After how many days backups is deleted.
     * 
     */
    public Integer retentionPeriodDays() {
        return this.retentionPeriodDays;
    }
    /**
     * @return When the schedule should start working in RFC-3339 format.
     * 
     */
    public String startTime() {
        return this.startTime;
    }

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

    public static Builder builder(GetWindowsFunctionAppBackupSchedule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer frequencyInterval;
        private String frequencyUnit;
        private Boolean keepAtLeastOneBackup;
        private String lastExecutionTime;
        private Integer retentionPeriodDays;
        private String startTime;
        public Builder() {}
        public Builder(GetWindowsFunctionAppBackupSchedule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.frequencyInterval = defaults.frequencyInterval;
    	      this.frequencyUnit = defaults.frequencyUnit;
    	      this.keepAtLeastOneBackup = defaults.keepAtLeastOneBackup;
    	      this.lastExecutionTime = defaults.lastExecutionTime;
    	      this.retentionPeriodDays = defaults.retentionPeriodDays;
    	      this.startTime = defaults.startTime;
        }

        @CustomType.Setter
        public Builder frequencyInterval(Integer frequencyInterval) {
            if (frequencyInterval == null) {
              throw new MissingRequiredPropertyException("GetWindowsFunctionAppBackupSchedule", "frequencyInterval");
            }
            this.frequencyInterval = frequencyInterval;
            return this;
        }
        @CustomType.Setter
        public Builder frequencyUnit(String frequencyUnit) {
            if (frequencyUnit == null) {
              throw new MissingRequiredPropertyException("GetWindowsFunctionAppBackupSchedule", "frequencyUnit");
            }
            this.frequencyUnit = frequencyUnit;
            return this;
        }
        @CustomType.Setter
        public Builder keepAtLeastOneBackup(Boolean keepAtLeastOneBackup) {
            if (keepAtLeastOneBackup == null) {
              throw new MissingRequiredPropertyException("GetWindowsFunctionAppBackupSchedule", "keepAtLeastOneBackup");
            }
            this.keepAtLeastOneBackup = keepAtLeastOneBackup;
            return this;
        }
        @CustomType.Setter
        public Builder lastExecutionTime(String lastExecutionTime) {
            if (lastExecutionTime == null) {
              throw new MissingRequiredPropertyException("GetWindowsFunctionAppBackupSchedule", "lastExecutionTime");
            }
            this.lastExecutionTime = lastExecutionTime;
            return this;
        }
        @CustomType.Setter
        public Builder retentionPeriodDays(Integer retentionPeriodDays) {
            if (retentionPeriodDays == null) {
              throw new MissingRequiredPropertyException("GetWindowsFunctionAppBackupSchedule", "retentionPeriodDays");
            }
            this.retentionPeriodDays = retentionPeriodDays;
            return this;
        }
        @CustomType.Setter
        public Builder startTime(String startTime) {
            if (startTime == null) {
              throw new MissingRequiredPropertyException("GetWindowsFunctionAppBackupSchedule", "startTime");
            }
            this.startTime = startTime;
            return this;
        }
        public GetWindowsFunctionAppBackupSchedule build() {
            final var _resultValue = new GetWindowsFunctionAppBackupSchedule();
            _resultValue.frequencyInterval = frequencyInterval;
            _resultValue.frequencyUnit = frequencyUnit;
            _resultValue.keepAtLeastOneBackup = keepAtLeastOneBackup;
            _resultValue.lastExecutionTime = lastExecutionTime;
            _resultValue.retentionPeriodDays = retentionPeriodDays;
            _resultValue.startTime = startTime;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy