Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs Maven / Gradle / Ivy
// *** 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.dataprotection.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs extends com.pulumi.resources.ResourceArgs {
public static final BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs Empty = new BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs();
/**
* Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
*
*/
@Import(name="absoluteCriteria")
private @Nullable Output absoluteCriteria;
/**
* @return Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
*
*/
public Optional> absoluteCriteria() {
return Optional.ofNullable(this.absoluteCriteria);
}
/**
* Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
*
*/
@Import(name="daysOfWeeks")
private @Nullable Output> daysOfWeeks;
/**
* @return Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
*
*/
public Optional>> daysOfWeeks() {
return Optional.ofNullable(this.daysOfWeeks);
}
/**
* Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
*
*/
@Import(name="monthsOfYears")
private @Nullable Output> monthsOfYears;
/**
* @return Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
*
*/
public Optional>> monthsOfYears() {
return Optional.ofNullable(this.monthsOfYears);
}
/**
* Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
*
*/
@Import(name="scheduledBackupTimes")
private @Nullable Output> scheduledBackupTimes;
/**
* @return Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
*
*/
public Optional>> scheduledBackupTimes() {
return Optional.ofNullable(this.scheduledBackupTimes);
}
/**
* Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
*
*/
@Import(name="weeksOfMonths")
private @Nullable Output> weeksOfMonths;
/**
* @return Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
*
*/
public Optional>> weeksOfMonths() {
return Optional.ofNullable(this.weeksOfMonths);
}
private BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs() {}
private BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs(BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs $) {
this.absoluteCriteria = $.absoluteCriteria;
this.daysOfWeeks = $.daysOfWeeks;
this.monthsOfYears = $.monthsOfYears;
this.scheduledBackupTimes = $.scheduledBackupTimes;
this.weeksOfMonths = $.weeksOfMonths;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs $;
public Builder() {
$ = new BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs();
}
public Builder(BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs defaults) {
$ = new BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs(Objects.requireNonNull(defaults));
}
/**
* @param absoluteCriteria Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder absoluteCriteria(@Nullable Output absoluteCriteria) {
$.absoluteCriteria = absoluteCriteria;
return this;
}
/**
* @param absoluteCriteria Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder absoluteCriteria(String absoluteCriteria) {
return absoluteCriteria(Output.of(absoluteCriteria));
}
/**
* @param daysOfWeeks Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder daysOfWeeks(@Nullable Output> daysOfWeeks) {
$.daysOfWeeks = daysOfWeeks;
return this;
}
/**
* @param daysOfWeeks Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder daysOfWeeks(List daysOfWeeks) {
return daysOfWeeks(Output.of(daysOfWeeks));
}
/**
* @param daysOfWeeks Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder daysOfWeeks(String... daysOfWeeks) {
return daysOfWeeks(List.of(daysOfWeeks));
}
/**
* @param monthsOfYears Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder monthsOfYears(@Nullable Output> monthsOfYears) {
$.monthsOfYears = monthsOfYears;
return this;
}
/**
* @param monthsOfYears Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder monthsOfYears(List monthsOfYears) {
return monthsOfYears(Output.of(monthsOfYears));
}
/**
* @param monthsOfYears Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder monthsOfYears(String... monthsOfYears) {
return monthsOfYears(List.of(monthsOfYears));
}
/**
* @param scheduledBackupTimes Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scheduledBackupTimes(@Nullable Output> scheduledBackupTimes) {
$.scheduledBackupTimes = scheduledBackupTimes;
return this;
}
/**
* @param scheduledBackupTimes Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scheduledBackupTimes(List scheduledBackupTimes) {
return scheduledBackupTimes(Output.of(scheduledBackupTimes));
}
/**
* @param scheduledBackupTimes Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scheduledBackupTimes(String... scheduledBackupTimes) {
return scheduledBackupTimes(List.of(scheduledBackupTimes));
}
/**
* @param weeksOfMonths Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder weeksOfMonths(@Nullable Output> weeksOfMonths) {
$.weeksOfMonths = weeksOfMonths;
return this;
}
/**
* @param weeksOfMonths Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder weeksOfMonths(List weeksOfMonths) {
return weeksOfMonths(Output.of(weeksOfMonths));
}
/**
* @param weeksOfMonths Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder weeksOfMonths(String... weeksOfMonths) {
return weeksOfMonths(List.of(weeksOfMonths));
}
public BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs build() {
return $;
}
}
}