com.pulumi.azurenative.hdinsight.outputs.AutoscaleScheduleResponse 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.hdinsight.outputs;
import com.pulumi.azurenative.hdinsight.outputs.AutoscaleTimeAndCapacityResponse;
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 AutoscaleScheduleResponse {
/**
* @return Days of the week for a schedule-based autoscale rule
*
*/
private @Nullable List days;
/**
* @return Time and capacity for a schedule-based autoscale rule
*
*/
private @Nullable AutoscaleTimeAndCapacityResponse timeAndCapacity;
private AutoscaleScheduleResponse() {}
/**
* @return Days of the week for a schedule-based autoscale rule
*
*/
public List days() {
return this.days == null ? List.of() : this.days;
}
/**
* @return Time and capacity for a schedule-based autoscale rule
*
*/
public Optional timeAndCapacity() {
return Optional.ofNullable(this.timeAndCapacity);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoscaleScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List days;
private @Nullable AutoscaleTimeAndCapacityResponse timeAndCapacity;
public Builder() {}
public Builder(AutoscaleScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.days = defaults.days;
this.timeAndCapacity = defaults.timeAndCapacity;
}
@CustomType.Setter
public Builder days(@Nullable List days) {
this.days = days;
return this;
}
public Builder days(String... days) {
return days(List.of(days));
}
@CustomType.Setter
public Builder timeAndCapacity(@Nullable AutoscaleTimeAndCapacityResponse timeAndCapacity) {
this.timeAndCapacity = timeAndCapacity;
return this;
}
public AutoscaleScheduleResponse build() {
final var _resultValue = new AutoscaleScheduleResponse();
_resultValue.days = days;
_resultValue.timeAndCapacity = timeAndCapacity;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy