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

com.pulumi.azurenative.costmanagement.inputs.ReportRecurrencePeriodArgs 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.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 start and end date for recurrence schedule.
 * 
 */
public final class ReportRecurrencePeriodArgs extends com.pulumi.resources.ResourceArgs {

    public static final ReportRecurrencePeriodArgs Empty = new ReportRecurrencePeriodArgs();

    /**
     * The start date of recurrence.
     * 
     */
    @Import(name="from", required=true)
    private Output from;

    /**
     * @return The start date of recurrence.
     * 
     */
    public Output from() {
        return this.from;
    }

    /**
     * The end date of recurrence.
     * 
     */
    @Import(name="to")
    private @Nullable Output to;

    /**
     * @return The end date of recurrence.
     * 
     */
    public Optional> to() {
        return Optional.ofNullable(this.to);
    }

    private ReportRecurrencePeriodArgs() {}

    private ReportRecurrencePeriodArgs(ReportRecurrencePeriodArgs $) {
        this.from = $.from;
        this.to = $.to;
    }

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

    public static final class Builder {
        private ReportRecurrencePeriodArgs $;

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

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

        /**
         * @param from The start date of recurrence.
         * 
         * @return builder
         * 
         */
        public Builder from(Output from) {
            $.from = from;
            return this;
        }

        /**
         * @param from The start date of recurrence.
         * 
         * @return builder
         * 
         */
        public Builder from(String from) {
            return from(Output.of(from));
        }

        /**
         * @param to The end date of recurrence.
         * 
         * @return builder
         * 
         */
        public Builder to(@Nullable Output to) {
            $.to = to;
            return this;
        }

        /**
         * @param to The end date of recurrence.
         * 
         * @return builder
         * 
         */
        public Builder to(String to) {
            return to(Output.of(to));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy