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

com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileFixedDateArgs 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.15.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.azure.monitoring.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AutoscaleSettingProfileFixedDateArgs Empty = new AutoscaleSettingProfileFixedDateArgs();

    /**
     * Specifies the end date for the profile, formatted as an RFC3339 date string.
     * 
     */
    @Import(name="end", required=true)
    private Output end;

    /**
     * @return Specifies the end date for the profile, formatted as an RFC3339 date string.
     * 
     */
    public Output end() {
        return this.end;
    }

    /**
     * Specifies the start date for the profile, formatted as an RFC3339 date string.
     * 
     */
    @Import(name="start", required=true)
    private Output start;

    /**
     * @return Specifies the start date for the profile, formatted as an RFC3339 date string.
     * 
     */
    public Output start() {
        return this.start;
    }

    /**
     * The Time Zone of the `start` and `end` times. A list of [possible values can be found here](https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings/create-or-update?view=rest-monitor-2022-10-01&tabs=HTTP#recurrentschedule). Defaults to `UTC`.
     * 
     */
    @Import(name="timezone")
    private @Nullable Output timezone;

    /**
     * @return The Time Zone of the `start` and `end` times. A list of [possible values can be found here](https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings/create-or-update?view=rest-monitor-2022-10-01&tabs=HTTP#recurrentschedule). Defaults to `UTC`.
     * 
     */
    public Optional> timezone() {
        return Optional.ofNullable(this.timezone);
    }

    private AutoscaleSettingProfileFixedDateArgs() {}

    private AutoscaleSettingProfileFixedDateArgs(AutoscaleSettingProfileFixedDateArgs $) {
        this.end = $.end;
        this.start = $.start;
        this.timezone = $.timezone;
    }

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

    public static final class Builder {
        private AutoscaleSettingProfileFixedDateArgs $;

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

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

        /**
         * @param end Specifies the end date for the profile, formatted as an RFC3339 date string.
         * 
         * @return builder
         * 
         */
        public Builder end(Output end) {
            $.end = end;
            return this;
        }

        /**
         * @param end Specifies the end date for the profile, formatted as an RFC3339 date string.
         * 
         * @return builder
         * 
         */
        public Builder end(String end) {
            return end(Output.of(end));
        }

        /**
         * @param start Specifies the start date for the profile, formatted as an RFC3339 date string.
         * 
         * @return builder
         * 
         */
        public Builder start(Output start) {
            $.start = start;
            return this;
        }

        /**
         * @param start Specifies the start date for the profile, formatted as an RFC3339 date string.
         * 
         * @return builder
         * 
         */
        public Builder start(String start) {
            return start(Output.of(start));
        }

        /**
         * @param timezone The Time Zone of the `start` and `end` times. A list of [possible values can be found here](https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings/create-or-update?view=rest-monitor-2022-10-01&tabs=HTTP#recurrentschedule). Defaults to `UTC`.
         * 
         * @return builder
         * 
         */
        public Builder timezone(@Nullable Output timezone) {
            $.timezone = timezone;
            return this;
        }

        /**
         * @param timezone The Time Zone of the `start` and `end` times. A list of [possible values can be found here](https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings/create-or-update?view=rest-monitor-2022-10-01&tabs=HTTP#recurrentschedule). Defaults to `UTC`.
         * 
         * @return builder
         * 
         */
        public Builder timezone(String timezone) {
            return timezone(Output.of(timezone));
        }

        public AutoscaleSettingProfileFixedDateArgs build() {
            if ($.end == null) {
                throw new MissingRequiredPropertyException("AutoscaleSettingProfileFixedDateArgs", "end");
            }
            if ($.start == null) {
                throw new MissingRequiredPropertyException("AutoscaleSettingProfileFixedDateArgs", "start");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy