com.pulumi.azure.hdinsight.outputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.hdinsight.outputs;
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 HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule {
/**
* @return The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
*/
private List days;
/**
* @return The number of worker nodes to autoscale at the specified time.
*
*/
private Integer targetInstanceCount;
/**
* @return The time of day to perform the autoscale in 24hour format.
*
*/
private String time;
private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule() {}
/**
* @return The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
*/
public List days() {
return this.days;
}
/**
* @return The number of worker nodes to autoscale at the specified time.
*
*/
public Integer targetInstanceCount() {
return this.targetInstanceCount;
}
/**
* @return The time of day to perform the autoscale in 24hour format.
*
*/
public String time() {
return this.time;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List days;
private Integer targetInstanceCount;
private String time;
public Builder() {}
public Builder(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule defaults) {
Objects.requireNonNull(defaults);
this.days = defaults.days;
this.targetInstanceCount = defaults.targetInstanceCount;
this.time = defaults.time;
}
@CustomType.Setter
public Builder days(List days) {
if (days == null) {
throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule", "days");
}
this.days = days;
return this;
}
public Builder days(String... days) {
return days(List.of(days));
}
@CustomType.Setter
public Builder targetInstanceCount(Integer targetInstanceCount) {
if (targetInstanceCount == null) {
throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule", "targetInstanceCount");
}
this.targetInstanceCount = targetInstanceCount;
return this;
}
@CustomType.Setter
public Builder time(String time) {
if (time == null) {
throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule", "time");
}
this.time = time;
return this;
}
public HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule build() {
final var _resultValue = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceSchedule();
_resultValue.days = days;
_resultValue.targetInstanceCount = targetInstanceCount;
_resultValue.time = time;
return _resultValue;
}
}
}