
com.pulumi.azurenative.workloads.outputs.MonthlyRetentionScheduleResponse 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.azurenative.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.DailyRetentionFormatResponse;
import com.pulumi.azurenative.workloads.outputs.RetentionDurationResponse;
import com.pulumi.azurenative.workloads.outputs.WeeklyRetentionFormatResponse;
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 MonthlyRetentionScheduleResponse {
/**
* @return Retention duration of retention Policy.
*
*/
private @Nullable RetentionDurationResponse retentionDuration;
/**
* @return Daily retention format for monthly retention policy.
*
*/
private @Nullable DailyRetentionFormatResponse retentionScheduleDaily;
/**
* @return Retention schedule format type for monthly retention policy.
*
*/
private @Nullable String retentionScheduleFormatType;
/**
* @return Weekly retention format for monthly retention policy.
*
*/
private @Nullable WeeklyRetentionFormatResponse retentionScheduleWeekly;
/**
* @return Retention times of retention policy.
*
*/
private @Nullable List retentionTimes;
private MonthlyRetentionScheduleResponse() {}
/**
* @return Retention duration of retention Policy.
*
*/
public Optional retentionDuration() {
return Optional.ofNullable(this.retentionDuration);
}
/**
* @return Daily retention format for monthly retention policy.
*
*/
public Optional retentionScheduleDaily() {
return Optional.ofNullable(this.retentionScheduleDaily);
}
/**
* @return Retention schedule format type for monthly retention policy.
*
*/
public Optional retentionScheduleFormatType() {
return Optional.ofNullable(this.retentionScheduleFormatType);
}
/**
* @return Weekly retention format for monthly retention policy.
*
*/
public Optional retentionScheduleWeekly() {
return Optional.ofNullable(this.retentionScheduleWeekly);
}
/**
* @return Retention times of retention policy.
*
*/
public List retentionTimes() {
return this.retentionTimes == null ? List.of() : this.retentionTimes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonthlyRetentionScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable RetentionDurationResponse retentionDuration;
private @Nullable DailyRetentionFormatResponse retentionScheduleDaily;
private @Nullable String retentionScheduleFormatType;
private @Nullable WeeklyRetentionFormatResponse retentionScheduleWeekly;
private @Nullable List retentionTimes;
public Builder() {}
public Builder(MonthlyRetentionScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.retentionDuration = defaults.retentionDuration;
this.retentionScheduleDaily = defaults.retentionScheduleDaily;
this.retentionScheduleFormatType = defaults.retentionScheduleFormatType;
this.retentionScheduleWeekly = defaults.retentionScheduleWeekly;
this.retentionTimes = defaults.retentionTimes;
}
@CustomType.Setter
public Builder retentionDuration(@Nullable RetentionDurationResponse retentionDuration) {
this.retentionDuration = retentionDuration;
return this;
}
@CustomType.Setter
public Builder retentionScheduleDaily(@Nullable DailyRetentionFormatResponse retentionScheduleDaily) {
this.retentionScheduleDaily = retentionScheduleDaily;
return this;
}
@CustomType.Setter
public Builder retentionScheduleFormatType(@Nullable String retentionScheduleFormatType) {
this.retentionScheduleFormatType = retentionScheduleFormatType;
return this;
}
@CustomType.Setter
public Builder retentionScheduleWeekly(@Nullable WeeklyRetentionFormatResponse retentionScheduleWeekly) {
this.retentionScheduleWeekly = retentionScheduleWeekly;
return this;
}
@CustomType.Setter
public Builder retentionTimes(@Nullable List retentionTimes) {
this.retentionTimes = retentionTimes;
return this;
}
public Builder retentionTimes(String... retentionTimes) {
return retentionTimes(List.of(retentionTimes));
}
public MonthlyRetentionScheduleResponse build() {
final var _resultValue = new MonthlyRetentionScheduleResponse();
_resultValue.retentionDuration = retentionDuration;
_resultValue.retentionScheduleDaily = retentionScheduleDaily;
_resultValue.retentionScheduleFormatType = retentionScheduleFormatType;
_resultValue.retentionScheduleWeekly = retentionScheduleWeekly;
_resultValue.retentionTimes = retentionTimes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy