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

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

import com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileCapacityArgs;
import com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileFixedDateArgs;
import com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRecurrenceArgs;
import com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRuleArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AutoscaleSettingProfileArgs Empty = new AutoscaleSettingProfileArgs();

    /**
     * A `capacity` block as defined below.
     * 
     */
    @Import(name="capacity", required=true)
    private Output capacity;

    /**
     * @return A `capacity` block as defined below.
     * 
     */
    public Output capacity() {
        return this.capacity;
    }

    /**
     * A `fixed_date` block as defined below. This cannot be specified if a `recurrence` block is specified.
     * 
     */
    @Import(name="fixedDate")
    private @Nullable Output fixedDate;

    /**
     * @return A `fixed_date` block as defined below. This cannot be specified if a `recurrence` block is specified.
     * 
     */
    public Optional> fixedDate() {
        return Optional.ofNullable(this.fixedDate);
    }

    /**
     * Specifies the name of the profile.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Specifies the name of the profile.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * A `recurrence` block as defined below. This cannot be specified if a `fixed_date` block is specified.
     * 
     */
    @Import(name="recurrence")
    private @Nullable Output recurrence;

    /**
     * @return A `recurrence` block as defined below. This cannot be specified if a `fixed_date` block is specified.
     * 
     */
    public Optional> recurrence() {
        return Optional.ofNullable(this.recurrence);
    }

    /**
     * One or more (up to 10) `rule` blocks as defined below.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return One or more (up to 10) `rule` blocks as defined below.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    private AutoscaleSettingProfileArgs() {}

    private AutoscaleSettingProfileArgs(AutoscaleSettingProfileArgs $) {
        this.capacity = $.capacity;
        this.fixedDate = $.fixedDate;
        this.name = $.name;
        this.recurrence = $.recurrence;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private AutoscaleSettingProfileArgs $;

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

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

        /**
         * @param capacity A `capacity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity A `capacity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder capacity(AutoscaleSettingProfileCapacityArgs capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param fixedDate A `fixed_date` block as defined below. This cannot be specified if a `recurrence` block is specified.
         * 
         * @return builder
         * 
         */
        public Builder fixedDate(@Nullable Output fixedDate) {
            $.fixedDate = fixedDate;
            return this;
        }

        /**
         * @param fixedDate A `fixed_date` block as defined below. This cannot be specified if a `recurrence` block is specified.
         * 
         * @return builder
         * 
         */
        public Builder fixedDate(AutoscaleSettingProfileFixedDateArgs fixedDate) {
            return fixedDate(Output.of(fixedDate));
        }

        /**
         * @param name Specifies the name of the profile.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the profile.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param recurrence A `recurrence` block as defined below. This cannot be specified if a `fixed_date` block is specified.
         * 
         * @return builder
         * 
         */
        public Builder recurrence(@Nullable Output recurrence) {
            $.recurrence = recurrence;
            return this;
        }

        /**
         * @param recurrence A `recurrence` block as defined below. This cannot be specified if a `fixed_date` block is specified.
         * 
         * @return builder
         * 
         */
        public Builder recurrence(AutoscaleSettingProfileRecurrenceArgs recurrence) {
            return recurrence(Output.of(recurrence));
        }

        /**
         * @param rules One or more (up to 10) `rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules One or more (up to 10) `rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules One or more (up to 10) `rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rules(AutoscaleSettingProfileRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public AutoscaleSettingProfileArgs build() {
            if ($.capacity == null) {
                throw new MissingRequiredPropertyException("AutoscaleSettingProfileArgs", "capacity");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("AutoscaleSettingProfileArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy