
com.pulumi.azurenative.hdinsight.outputs.AutoscaleRecurrenceResponse 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.hdinsight.outputs;
import com.pulumi.azurenative.hdinsight.outputs.AutoscaleScheduleResponse;
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 AutoscaleRecurrenceResponse {
/**
* @return Array of schedule-based autoscale rules
*
*/
private @Nullable List schedule;
/**
* @return The time zone for the autoscale schedule times
*
*/
private @Nullable String timeZone;
private AutoscaleRecurrenceResponse() {}
/**
* @return Array of schedule-based autoscale rules
*
*/
public List schedule() {
return this.schedule == null ? List.of() : this.schedule;
}
/**
* @return The time zone for the autoscale schedule times
*
*/
public Optional timeZone() {
return Optional.ofNullable(this.timeZone);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoscaleRecurrenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List schedule;
private @Nullable String timeZone;
public Builder() {}
public Builder(AutoscaleRecurrenceResponse defaults) {
Objects.requireNonNull(defaults);
this.schedule = defaults.schedule;
this.timeZone = defaults.timeZone;
}
@CustomType.Setter
public Builder schedule(@Nullable List schedule) {
this.schedule = schedule;
return this;
}
public Builder schedule(AutoscaleScheduleResponse... schedule) {
return schedule(List.of(schedule));
}
@CustomType.Setter
public Builder timeZone(@Nullable String timeZone) {
this.timeZone = timeZone;
return this;
}
public AutoscaleRecurrenceResponse build() {
final var _resultValue = new AutoscaleRecurrenceResponse();
_resultValue.schedule = schedule;
_resultValue.timeZone = timeZone;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy