com.pulumi.azure.hdinsight.outputs.HadoopClusterRolesWorkerNodeAutoscaleRecurrence 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.azure.hdinsight.outputs.HadoopClusterRolesWorkerNodeAutoscaleRecurrenceSchedule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class HadoopClusterRolesWorkerNodeAutoscaleRecurrence {
/**
* @return A list of `schedule` blocks as defined below.
*
*/
private List schedules;
/**
* @return The time zone for the autoscale schedule times.
*
*/
private String timezone;
private HadoopClusterRolesWorkerNodeAutoscaleRecurrence() {}
/**
* @return A list of `schedule` blocks as defined below.
*
*/
public List schedules() {
return this.schedules;
}
/**
* @return The time zone for the autoscale schedule times.
*
*/
public String timezone() {
return this.timezone;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HadoopClusterRolesWorkerNodeAutoscaleRecurrence defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List schedules;
private String timezone;
public Builder() {}
public Builder(HadoopClusterRolesWorkerNodeAutoscaleRecurrence defaults) {
Objects.requireNonNull(defaults);
this.schedules = defaults.schedules;
this.timezone = defaults.timezone;
}
@CustomType.Setter
public Builder schedules(List schedules) {
if (schedules == null) {
throw new MissingRequiredPropertyException("HadoopClusterRolesWorkerNodeAutoscaleRecurrence", "schedules");
}
this.schedules = schedules;
return this;
}
public Builder schedules(HadoopClusterRolesWorkerNodeAutoscaleRecurrenceSchedule... schedules) {
return schedules(List.of(schedules));
}
@CustomType.Setter
public Builder timezone(String timezone) {
if (timezone == null) {
throw new MissingRequiredPropertyException("HadoopClusterRolesWorkerNodeAutoscaleRecurrence", "timezone");
}
this.timezone = timezone;
return this;
}
public HadoopClusterRolesWorkerNodeAutoscaleRecurrence build() {
final var _resultValue = new HadoopClusterRolesWorkerNodeAutoscaleRecurrence();
_resultValue.schedules = schedules;
_resultValue.timezone = timezone;
return _resultValue;
}
}
}