com.pulumi.azurenative.workloads.outputs.WeeklyRetentionFormatResponse 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.
// *** 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.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class WeeklyRetentionFormatResponse {
/**
* @return List of days of the week.
*
*/
private @Nullable List daysOfTheWeek;
/**
* @return List of weeks of month.
*
*/
private @Nullable List weeksOfTheMonth;
private WeeklyRetentionFormatResponse() {}
/**
* @return List of days of the week.
*
*/
public List daysOfTheWeek() {
return this.daysOfTheWeek == null ? List.of() : this.daysOfTheWeek;
}
/**
* @return List of weeks of month.
*
*/
public List weeksOfTheMonth() {
return this.weeksOfTheMonth == null ? List.of() : this.weeksOfTheMonth;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WeeklyRetentionFormatResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List daysOfTheWeek;
private @Nullable List weeksOfTheMonth;
public Builder() {}
public Builder(WeeklyRetentionFormatResponse defaults) {
Objects.requireNonNull(defaults);
this.daysOfTheWeek = defaults.daysOfTheWeek;
this.weeksOfTheMonth = defaults.weeksOfTheMonth;
}
@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 weeksOfTheMonth(@Nullable List weeksOfTheMonth) {
this.weeksOfTheMonth = weeksOfTheMonth;
return this;
}
public Builder weeksOfTheMonth(String... weeksOfTheMonth) {
return weeksOfTheMonth(List.of(weeksOfTheMonth));
}
public WeeklyRetentionFormatResponse build() {
final var _resultValue = new WeeklyRetentionFormatResponse();
_resultValue.daysOfTheWeek = daysOfTheWeek;
_resultValue.weeksOfTheMonth = weeksOfTheMonth;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy