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

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

    public static final ExportRecurrencePeriodArgs Empty = new ExportRecurrencePeriodArgs();

    /**
     * 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 ExportRecurrencePeriodArgs() {}

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

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

    public static final class Builder {
        private ExportRecurrencePeriodArgs $;

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

        public Builder(ExportRecurrencePeriodArgs defaults) {
            $ = new ExportRecurrencePeriodArgs(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 ExportRecurrencePeriodArgs build() {
            if ($.from == null) {
                throw new MissingRequiredPropertyException("ExportRecurrencePeriodArgs", "from");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy