All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.hdinsight.outputs.SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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 SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule {
    /**
     * @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 SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule() {}
    /**
     * @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(SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule 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(SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule 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("SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule", "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("SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule", "targetInstanceCount");
            }
            this.targetInstanceCount = targetInstanceCount;
            return this;
        }
        @CustomType.Setter
        public Builder time(String time) {
            if (time == null) {
              throw new MissingRequiredPropertyException("SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule", "time");
            }
            this.time = time;
            return this;
        }
        public SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule build() {
            final var _resultValue = new SparkClusterRolesWorkerNodeAutoscaleRecurrenceSchedule();
            _resultValue.days = days;
            _resultValue.targetInstanceCount = targetInstanceCount;
            _resultValue.time = time;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy