
com.pulumi.azurenative.storsimple.outputs.BandwidthScheduleResponse 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.storsimple.outputs;
import com.pulumi.azurenative.storsimple.outputs.TimeResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class BandwidthScheduleResponse {
/**
* @return The days of the week when this schedule is applicable.
*
*/
private List days;
/**
* @return The rate in Mbps.
*
*/
private Integer rateInMbps;
/**
* @return The start time of the schedule.
*
*/
private TimeResponse start;
/**
* @return The stop time of the schedule.
*
*/
private TimeResponse stop;
private BandwidthScheduleResponse() {}
/**
* @return The days of the week when this schedule is applicable.
*
*/
public List days() {
return this.days;
}
/**
* @return The rate in Mbps.
*
*/
public Integer rateInMbps() {
return this.rateInMbps;
}
/**
* @return The start time of the schedule.
*
*/
public TimeResponse start() {
return this.start;
}
/**
* @return The stop time of the schedule.
*
*/
public TimeResponse stop() {
return this.stop;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BandwidthScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List days;
private Integer rateInMbps;
private TimeResponse start;
private TimeResponse stop;
public Builder() {}
public Builder(BandwidthScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.days = defaults.days;
this.rateInMbps = defaults.rateInMbps;
this.start = defaults.start;
this.stop = defaults.stop;
}
@CustomType.Setter
public Builder days(List days) {
if (days == null) {
throw new MissingRequiredPropertyException("BandwidthScheduleResponse", "days");
}
this.days = days;
return this;
}
public Builder days(String... days) {
return days(List.of(days));
}
@CustomType.Setter
public Builder rateInMbps(Integer rateInMbps) {
if (rateInMbps == null) {
throw new MissingRequiredPropertyException("BandwidthScheduleResponse", "rateInMbps");
}
this.rateInMbps = rateInMbps;
return this;
}
@CustomType.Setter
public Builder start(TimeResponse start) {
if (start == null) {
throw new MissingRequiredPropertyException("BandwidthScheduleResponse", "start");
}
this.start = start;
return this;
}
@CustomType.Setter
public Builder stop(TimeResponse stop) {
if (stop == null) {
throw new MissingRequiredPropertyException("BandwidthScheduleResponse", "stop");
}
this.stop = stop;
return this;
}
public BandwidthScheduleResponse build() {
final var _resultValue = new BandwidthScheduleResponse();
_resultValue.days = days;
_resultValue.rateInMbps = rateInMbps;
_resultValue.start = start;
_resultValue.stop = stop;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy