com.pulumi.azure.hdinsight.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs extends com.pulumi.resources.ResourceArgs {
public static final HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs Empty = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs();
/**
* The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
*/
@Import(name="days", required=true)
private Output> days;
/**
* @return The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
*/
public Output> days() {
return this.days;
}
/**
* The number of worker nodes to autoscale at the specified time.
*
*/
@Import(name="targetInstanceCount", required=true)
private Output targetInstanceCount;
/**
* @return The number of worker nodes to autoscale at the specified time.
*
*/
public Output targetInstanceCount() {
return this.targetInstanceCount;
}
/**
* The time of day to perform the autoscale in 24hour format.
*
*/
@Import(name="time", required=true)
private Output time;
/**
* @return The time of day to perform the autoscale in 24hour format.
*
*/
public Output time() {
return this.time;
}
private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs() {}
private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs $) {
this.days = $.days;
this.targetInstanceCount = $.targetInstanceCount;
this.time = $.time;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs $;
public Builder() {
$ = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs();
}
public Builder(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs defaults) {
$ = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs(Objects.requireNonNull(defaults));
}
/**
* @param days The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
* @return builder
*
*/
public Builder days(Output> days) {
$.days = days;
return this;
}
/**
* @param days The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
* @return builder
*
*/
public Builder days(List days) {
return days(Output.of(days));
}
/**
* @param days The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
* @return builder
*
*/
public Builder days(String... days) {
return days(List.of(days));
}
/**
* @param targetInstanceCount The number of worker nodes to autoscale at the specified time.
*
* @return builder
*
*/
public Builder targetInstanceCount(Output targetInstanceCount) {
$.targetInstanceCount = targetInstanceCount;
return this;
}
/**
* @param targetInstanceCount The number of worker nodes to autoscale at the specified time.
*
* @return builder
*
*/
public Builder targetInstanceCount(Integer targetInstanceCount) {
return targetInstanceCount(Output.of(targetInstanceCount));
}
/**
* @param time The time of day to perform the autoscale in 24hour format.
*
* @return builder
*
*/
public Builder time(Output time) {
$.time = time;
return this;
}
/**
* @param time The time of day to perform the autoscale in 24hour format.
*
* @return builder
*
*/
public Builder time(String time) {
return time(Output.of(time));
}
public HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs build() {
if ($.days == null) {
throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs", "days");
}
if ($.targetInstanceCount == null) {
throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs", "targetInstanceCount");
}
if ($.time == null) {
throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs", "time");
}
return $;
}
}
}