com.pulumi.azurenative.recoveryservices.outputs.WeeklyRetentionScheduleResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The 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.azurenative.recoveryservices.outputs;
import com.pulumi.azurenative.recoveryservices.outputs.RetentionDurationResponse;
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 WeeklyRetentionScheduleResponse {
/**
* @return List of days of week for weekly retention policy.
*
*/
private @Nullable List daysOfTheWeek;
/**
* @return Retention duration of retention Policy.
*
*/
private @Nullable RetentionDurationResponse retentionDuration;
/**
* @return Retention times of retention policy.
*
*/
private @Nullable List retentionTimes;
private WeeklyRetentionScheduleResponse() {}
/**
* @return List of days of week for weekly retention policy.
*
*/
public List daysOfTheWeek() {
return this.daysOfTheWeek == null ? List.of() : this.daysOfTheWeek;
}
/**
* @return Retention duration of retention Policy.
*
*/
public Optional retentionDuration() {
return Optional.ofNullable(this.retentionDuration);
}
/**
* @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(WeeklyRetentionScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List daysOfTheWeek;
private @Nullable RetentionDurationResponse retentionDuration;
private @Nullable List retentionTimes;
public Builder() {}
public Builder(WeeklyRetentionScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.daysOfTheWeek = defaults.daysOfTheWeek;
this.retentionDuration = defaults.retentionDuration;
this.retentionTimes = defaults.retentionTimes;
}
@CustomType.Setter
public Builder daysOfTheWeek(@Nullable List daysOfTheWeek) {
this.daysOfTheWeek = daysOfTheWeek;
return this;
}
public Builder daysOfTheWeek(String... daysOfTheWeek) {
return daysOfTheWeek(List.of(daysOfTheWeek));
}
@CustomType.Setter
public Builder retentionDuration(@Nullable RetentionDurationResponse retentionDuration) {
this.retentionDuration = retentionDuration;
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 WeeklyRetentionScheduleResponse build() {
final var _resultValue = new WeeklyRetentionScheduleResponse();
_resultValue.daysOfTheWeek = daysOfTheWeek;
_resultValue.retentionDuration = retentionDuration;
_resultValue.retentionTimes = retentionTimes;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy