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

com.pulumi.azurenative.costmanagement.inputs.BudgetTimePeriodArgs 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.azurenative.costmanagement.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;


/**
 * The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.
 * 
 *  Supported for CategoryType(s): Cost, ReservationUtilization.
 * 
 *  Required for CategoryType(s): Cost, ReservationUtilization.
 * 
 */
public final class BudgetTimePeriodArgs extends com.pulumi.resources.ResourceArgs {

    public static final BudgetTimePeriodArgs Empty = new BudgetTimePeriodArgs();

    /**
     * The end date for the budget.
     * 
     * - Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.
     * 
     * - Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.
     * 
     */
    @Import(name="endDate")
    private @Nullable Output endDate;

    /**
     * @return The end date for the budget.
     * 
     * - Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.
     * 
     * - Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.
     * 
     */
    public Optional> endDate() {
        return Optional.ofNullable(this.endDate);
    }

    /**
     * The start date for the budget.
     * 
     * - Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should  be selected within the timegrain period.
     * 
     * - Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.
     * 
     */
    @Import(name="startDate", required=true)
    private Output startDate;

    /**
     * @return The start date for the budget.
     * 
     * - Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should  be selected within the timegrain period.
     * 
     * - Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.
     * 
     */
    public Output startDate() {
        return this.startDate;
    }

    private BudgetTimePeriodArgs() {}

    private BudgetTimePeriodArgs(BudgetTimePeriodArgs $) {
        this.endDate = $.endDate;
        this.startDate = $.startDate;
    }

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

    public static final class Builder {
        private BudgetTimePeriodArgs $;

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

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

        /**
         * @param endDate The end date for the budget.
         * 
         * - Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.
         * 
         * - Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.
         * 
         * @return builder
         * 
         */
        public Builder endDate(@Nullable Output endDate) {
            $.endDate = endDate;
            return this;
        }

        /**
         * @param endDate The end date for the budget.
         * 
         * - Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.
         * 
         * - Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.
         * 
         * @return builder
         * 
         */
        public Builder endDate(String endDate) {
            return endDate(Output.of(endDate));
        }

        /**
         * @param startDate The start date for the budget.
         * 
         * - Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should  be selected within the timegrain period.
         * 
         * - Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.
         * 
         * @return builder
         * 
         */
        public Builder startDate(Output startDate) {
            $.startDate = startDate;
            return this;
        }

        /**
         * @param startDate The start date for the budget.
         * 
         * - Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should  be selected within the timegrain period.
         * 
         * - Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.
         * 
         * @return builder
         * 
         */
        public Builder startDate(String startDate) {
            return startDate(Output.of(startDate));
        }

        public BudgetTimePeriodArgs build() {
            if ($.startDate == null) {
                throw new MissingRequiredPropertyException("BudgetTimePeriodArgs", "startDate");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy