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

com.pulumi.azure.hdinsight.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs Maven / Gradle / Ivy

// *** 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.azure.hdinsight.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


public final class HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs Empty = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs();

    /**
     * A list of `schedule` blocks as defined below.
     * 
     */
    @Import(name="schedules", required=true)
    private Output> schedules;

    /**
     * @return A list of `schedule` blocks as defined below.
     * 
     */
    public Output> schedules() {
        return this.schedules;
    }

    /**
     * The time zone for the autoscale schedule times.
     * 
     */
    @Import(name="timezone", required=true)
    private Output timezone;

    /**
     * @return The time zone for the autoscale schedule times.
     * 
     */
    public Output timezone() {
        return this.timezone;
    }

    private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs() {}

    private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs $) {
        this.schedules = $.schedules;
        this.timezone = $.timezone;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs $;

        public Builder() {
            $ = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs();
        }

        public Builder(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs defaults) {
            $ = new HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param schedules A list of `schedule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedules(Output> schedules) {
            $.schedules = schedules;
            return this;
        }

        /**
         * @param schedules A list of `schedule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedules(List schedules) {
            return schedules(Output.of(schedules));
        }

        /**
         * @param schedules A list of `schedule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedules(HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs... schedules) {
            return schedules(List.of(schedules));
        }

        /**
         * @param timezone The time zone for the autoscale schedule times.
         * 
         * @return builder
         * 
         */
        public Builder timezone(Output timezone) {
            $.timezone = timezone;
            return this;
        }

        /**
         * @param timezone The time zone for the autoscale schedule times.
         * 
         * @return builder
         * 
         */
        public Builder timezone(String timezone) {
            return timezone(Output.of(timezone));
        }

        public HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs build() {
            if ($.schedules == null) {
                throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs", "schedules");
            }
            if ($.timezone == null) {
                throw new MissingRequiredPropertyException("HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs", "timezone");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy