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

com.pulumi.azurenative.databoxedge.BandwidthScheduleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.databoxedge;

import com.pulumi.azurenative.databoxedge.enums.DayOfWeek;
import com.pulumi.core.Either;
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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BandwidthScheduleArgs Empty = new BandwidthScheduleArgs();

    /**
     * The days of the week when this schedule is applicable.
     * 
     */
    @Import(name="days", required=true)
    private Output>> days;

    /**
     * @return The days of the week when this schedule is applicable.
     * 
     */
    public Output>> days() {
        return this.days;
    }

    /**
     * The device name.
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return The device name.
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * The bandwidth schedule name which needs to be added/updated.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The bandwidth schedule name which needs to be added/updated.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The bandwidth rate in Mbps.
     * 
     */
    @Import(name="rateInMbps", required=true)
    private Output rateInMbps;

    /**
     * @return The bandwidth rate in Mbps.
     * 
     */
    public Output rateInMbps() {
        return this.rateInMbps;
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The start time of the schedule in UTC.
     * 
     */
    @Import(name="start", required=true)
    private Output start;

    /**
     * @return The start time of the schedule in UTC.
     * 
     */
    public Output start() {
        return this.start;
    }

    /**
     * The stop time of the schedule in UTC.
     * 
     */
    @Import(name="stop", required=true)
    private Output stop;

    /**
     * @return The stop time of the schedule in UTC.
     * 
     */
    public Output stop() {
        return this.stop;
    }

    private BandwidthScheduleArgs() {}

    private BandwidthScheduleArgs(BandwidthScheduleArgs $) {
        this.days = $.days;
        this.deviceName = $.deviceName;
        this.name = $.name;
        this.rateInMbps = $.rateInMbps;
        this.resourceGroupName = $.resourceGroupName;
        this.start = $.start;
        this.stop = $.stop;
    }

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

    public static final class Builder {
        private BandwidthScheduleArgs $;

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

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

        /**
         * @param days The days of the week when this schedule is applicable.
         * 
         * @return builder
         * 
         */
        public Builder days(Output>> days) {
            $.days = days;
            return this;
        }

        /**
         * @param days The days of the week when this schedule is applicable.
         * 
         * @return builder
         * 
         */
        public Builder days(List> days) {
            return days(Output.of(days));
        }

        /**
         * @param days The days of the week when this schedule is applicable.
         * 
         * @return builder
         * 
         */
        public Builder days(Either... days) {
            return days(List.of(days));
        }

        /**
         * @param deviceName The device name.
         * 
         * @return builder
         * 
         */
        public Builder deviceName(Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

        /**
         * @param deviceName The device name.
         * 
         * @return builder
         * 
         */
        public Builder deviceName(String deviceName) {
            return deviceName(Output.of(deviceName));
        }

        /**
         * @param name The bandwidth schedule name which needs to be added/updated.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The bandwidth schedule name which needs to be added/updated.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param rateInMbps The bandwidth rate in Mbps.
         * 
         * @return builder
         * 
         */
        public Builder rateInMbps(Output rateInMbps) {
            $.rateInMbps = rateInMbps;
            return this;
        }

        /**
         * @param rateInMbps The bandwidth rate in Mbps.
         * 
         * @return builder
         * 
         */
        public Builder rateInMbps(Integer rateInMbps) {
            return rateInMbps(Output.of(rateInMbps));
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param start The start time of the schedule in UTC.
         * 
         * @return builder
         * 
         */
        public Builder start(Output start) {
            $.start = start;
            return this;
        }

        /**
         * @param start The start time of the schedule in UTC.
         * 
         * @return builder
         * 
         */
        public Builder start(String start) {
            return start(Output.of(start));
        }

        /**
         * @param stop The stop time of the schedule in UTC.
         * 
         * @return builder
         * 
         */
        public Builder stop(Output stop) {
            $.stop = stop;
            return this;
        }

        /**
         * @param stop The stop time of the schedule in UTC.
         * 
         * @return builder
         * 
         */
        public Builder stop(String stop) {
            return stop(Output.of(stop));
        }

        public BandwidthScheduleArgs build() {
            if ($.days == null) {
                throw new MissingRequiredPropertyException("BandwidthScheduleArgs", "days");
            }
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("BandwidthScheduleArgs", "deviceName");
            }
            if ($.rateInMbps == null) {
                throw new MissingRequiredPropertyException("BandwidthScheduleArgs", "rateInMbps");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BandwidthScheduleArgs", "resourceGroupName");
            }
            if ($.start == null) {
                throw new MissingRequiredPropertyException("BandwidthScheduleArgs", "start");
            }
            if ($.stop == null) {
                throw new MissingRequiredPropertyException("BandwidthScheduleArgs", "stop");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy