com.pulumi.azure.automanage.outputs.ConfigurationBackupSchedulePolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.automanage.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConfigurationBackupSchedulePolicy {
/**
* @return The schedule policy type of the backup policy. Possible value is `SimpleSchedulePolicy`. Defaults to `SimpleSchedulePolicy`.
*
*/
private @Nullable String schedulePolicyType;
/**
* @return The schedule run days of the backup policy. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
*
*/
private @Nullable List scheduleRunDays;
/**
* @return The schedule run frequency of the backup policy. Possible values are `Daily` and `Weekly`. Defaults to `Daily`.
*
*/
private @Nullable String scheduleRunFrequency;
/**
* @return The schedule run times of the backup policy.
*
*/
private @Nullable List scheduleRunTimes;
private ConfigurationBackupSchedulePolicy() {}
/**
* @return The schedule policy type of the backup policy. Possible value is `SimpleSchedulePolicy`. Defaults to `SimpleSchedulePolicy`.
*
*/
public Optional schedulePolicyType() {
return Optional.ofNullable(this.schedulePolicyType);
}
/**
* @return The schedule run days of the backup policy. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
*
*/
public List scheduleRunDays() {
return this.scheduleRunDays == null ? List.of() : this.scheduleRunDays;
}
/**
* @return The schedule run frequency of the backup policy. Possible values are `Daily` and `Weekly`. Defaults to `Daily`.
*
*/
public Optional scheduleRunFrequency() {
return Optional.ofNullable(this.scheduleRunFrequency);
}
/**
* @return The schedule run times of the backup policy.
*
*/
public List scheduleRunTimes() {
return this.scheduleRunTimes == null ? List.of() : this.scheduleRunTimes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigurationBackupSchedulePolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String schedulePolicyType;
private @Nullable List scheduleRunDays;
private @Nullable String scheduleRunFrequency;
private @Nullable List scheduleRunTimes;
public Builder() {}
public Builder(ConfigurationBackupSchedulePolicy defaults) {
Objects.requireNonNull(defaults);
this.schedulePolicyType = defaults.schedulePolicyType;
this.scheduleRunDays = defaults.scheduleRunDays;
this.scheduleRunFrequency = defaults.scheduleRunFrequency;
this.scheduleRunTimes = defaults.scheduleRunTimes;
}
@CustomType.Setter
public Builder schedulePolicyType(@Nullable String schedulePolicyType) {
this.schedulePolicyType = schedulePolicyType;
return this;
}
@CustomType.Setter
public Builder scheduleRunDays(@Nullable List scheduleRunDays) {
this.scheduleRunDays = scheduleRunDays;
return this;
}
public Builder scheduleRunDays(String... scheduleRunDays) {
return scheduleRunDays(List.of(scheduleRunDays));
}
@CustomType.Setter
public Builder scheduleRunFrequency(@Nullable String scheduleRunFrequency) {
this.scheduleRunFrequency = scheduleRunFrequency;
return this;
}
@CustomType.Setter
public Builder scheduleRunTimes(@Nullable List scheduleRunTimes) {
this.scheduleRunTimes = scheduleRunTimes;
return this;
}
public Builder scheduleRunTimes(String... scheduleRunTimes) {
return scheduleRunTimes(List.of(scheduleRunTimes));
}
public ConfigurationBackupSchedulePolicy build() {
final var _resultValue = new ConfigurationBackupSchedulePolicy();
_resultValue.schedulePolicyType = schedulePolicyType;
_resultValue.scheduleRunDays = scheduleRunDays;
_resultValue.scheduleRunFrequency = scheduleRunFrequency;
_resultValue.scheduleRunTimes = scheduleRunTimes;
return _resultValue;
}
}
}