
com.pulumi.azurenative.costmanagement.inputs.ExportTimePeriodArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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;
/**
* The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.
*
*/
public final class ExportTimePeriodArgs extends com.pulumi.resources.ResourceArgs {
public static final ExportTimePeriodArgs Empty = new ExportTimePeriodArgs();
/**
* The start date for export data.
*
*/
@Import(name="from", required=true)
private Output from;
/**
* @return The start date for export data.
*
*/
public Output from() {
return this.from;
}
/**
* The end date for export data.
*
*/
@Import(name="to", required=true)
private Output to;
/**
* @return The end date for export data.
*
*/
public Output to() {
return this.to;
}
private ExportTimePeriodArgs() {}
private ExportTimePeriodArgs(ExportTimePeriodArgs $) {
this.from = $.from;
this.to = $.to;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ExportTimePeriodArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ExportTimePeriodArgs $;
public Builder() {
$ = new ExportTimePeriodArgs();
}
public Builder(ExportTimePeriodArgs defaults) {
$ = new ExportTimePeriodArgs(Objects.requireNonNull(defaults));
}
/**
* @param from The start date for export data.
*
* @return builder
*
*/
public Builder from(Output from) {
$.from = from;
return this;
}
/**
* @param from The start date for export data.
*
* @return builder
*
*/
public Builder from(String from) {
return from(Output.of(from));
}
/**
* @param to The end date for export data.
*
* @return builder
*
*/
public Builder to(Output to) {
$.to = to;
return this;
}
/**
* @param to The end date for export data.
*
* @return builder
*
*/
public Builder to(String to) {
return to(Output.of(to));
}
public ExportTimePeriodArgs build() {
if ($.from == null) {
throw new MissingRequiredPropertyException("ExportTimePeriodArgs", "from");
}
if ($.to == null) {
throw new MissingRequiredPropertyException("ExportTimePeriodArgs", "to");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy