
com.pulumi.azurenative.costmanagement.outputs.CommonExportPropertiesResponse 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.outputs;
import com.pulumi.azurenative.costmanagement.outputs.ExportDefinitionResponse;
import com.pulumi.azurenative.costmanagement.outputs.ExportDeliveryInfoResponse;
import com.pulumi.azurenative.costmanagement.outputs.ExportExecutionListResultResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CommonExportPropertiesResponse {
/**
* @return Has the definition for the export.
*
*/
private ExportDefinitionResponse definition;
/**
* @return Has delivery information for the export.
*
*/
private ExportDeliveryInfoResponse deliveryInfo;
/**
* @return The format of the export being delivered. Currently only 'Csv' is supported.
*
*/
private @Nullable String format;
/**
* @return If the export has an active schedule, provides an estimate of the next run time.
*
*/
private String nextRunTimeEstimate;
/**
* @return If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
*
*/
private @Nullable Boolean partitionData;
/**
* @return If requested, has the most recent run history for the export.
*
*/
private @Nullable ExportExecutionListResultResponse runHistory;
private CommonExportPropertiesResponse() {}
/**
* @return Has the definition for the export.
*
*/
public ExportDefinitionResponse definition() {
return this.definition;
}
/**
* @return Has delivery information for the export.
*
*/
public ExportDeliveryInfoResponse deliveryInfo() {
return this.deliveryInfo;
}
/**
* @return The format of the export being delivered. Currently only 'Csv' is supported.
*
*/
public Optional format() {
return Optional.ofNullable(this.format);
}
/**
* @return If the export has an active schedule, provides an estimate of the next run time.
*
*/
public String nextRunTimeEstimate() {
return this.nextRunTimeEstimate;
}
/**
* @return If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
*
*/
public Optional partitionData() {
return Optional.ofNullable(this.partitionData);
}
/**
* @return If requested, has the most recent run history for the export.
*
*/
public Optional runHistory() {
return Optional.ofNullable(this.runHistory);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CommonExportPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private ExportDefinitionResponse definition;
private ExportDeliveryInfoResponse deliveryInfo;
private @Nullable String format;
private String nextRunTimeEstimate;
private @Nullable Boolean partitionData;
private @Nullable ExportExecutionListResultResponse runHistory;
public Builder() {}
public Builder(CommonExportPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.definition = defaults.definition;
this.deliveryInfo = defaults.deliveryInfo;
this.format = defaults.format;
this.nextRunTimeEstimate = defaults.nextRunTimeEstimate;
this.partitionData = defaults.partitionData;
this.runHistory = defaults.runHistory;
}
@CustomType.Setter
public Builder definition(ExportDefinitionResponse definition) {
if (definition == null) {
throw new MissingRequiredPropertyException("CommonExportPropertiesResponse", "definition");
}
this.definition = definition;
return this;
}
@CustomType.Setter
public Builder deliveryInfo(ExportDeliveryInfoResponse deliveryInfo) {
if (deliveryInfo == null) {
throw new MissingRequiredPropertyException("CommonExportPropertiesResponse", "deliveryInfo");
}
this.deliveryInfo = deliveryInfo;
return this;
}
@CustomType.Setter
public Builder format(@Nullable String format) {
this.format = format;
return this;
}
@CustomType.Setter
public Builder nextRunTimeEstimate(String nextRunTimeEstimate) {
if (nextRunTimeEstimate == null) {
throw new MissingRequiredPropertyException("CommonExportPropertiesResponse", "nextRunTimeEstimate");
}
this.nextRunTimeEstimate = nextRunTimeEstimate;
return this;
}
@CustomType.Setter
public Builder partitionData(@Nullable Boolean partitionData) {
this.partitionData = partitionData;
return this;
}
@CustomType.Setter
public Builder runHistory(@Nullable ExportExecutionListResultResponse runHistory) {
this.runHistory = runHistory;
return this;
}
public CommonExportPropertiesResponse build() {
final var _resultValue = new CommonExportPropertiesResponse();
_resultValue.definition = definition;
_resultValue.deliveryInfo = deliveryInfo;
_resultValue.format = format;
_resultValue.nextRunTimeEstimate = nextRunTimeEstimate;
_resultValue.partitionData = partitionData;
_resultValue.runHistory = runHistory;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy