
com.pulumi.azurenative.costmanagement.outputs.GetExportResult 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.azurenative.costmanagement.outputs.ExportScheduleResponse;
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 GetExportResult {
/**
* @return Has the definition for the export.
*
*/
private ExportDefinitionResponse definition;
/**
* @return Has delivery information for the export.
*
*/
private ExportDeliveryInfoResponse deliveryInfo;
/**
* @return eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
*
*/
private @Nullable String eTag;
/**
* @return The format of the export being delivered. Currently only 'Csv' is supported.
*
*/
private @Nullable String format;
/**
* @return Resource Id.
*
*/
private String id;
/**
* @return Resource name.
*
*/
private String name;
/**
* @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;
/**
* @return Has schedule information for the export.
*
*/
private @Nullable ExportScheduleResponse schedule;
/**
* @return Resource type.
*
*/
private String type;
private GetExportResult() {}
/**
* @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 eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
*
*/
public Optional eTag() {
return Optional.ofNullable(this.eTag);
}
/**
* @return The format of the export being delivered. Currently only 'Csv' is supported.
*
*/
public Optional format() {
return Optional.ofNullable(this.format);
}
/**
* @return Resource Id.
*
*/
public String id() {
return this.id;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @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);
}
/**
* @return Has schedule information for the export.
*
*/
public Optional schedule() {
return Optional.ofNullable(this.schedule);
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetExportResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private ExportDefinitionResponse definition;
private ExportDeliveryInfoResponse deliveryInfo;
private @Nullable String eTag;
private @Nullable String format;
private String id;
private String name;
private String nextRunTimeEstimate;
private @Nullable Boolean partitionData;
private @Nullable ExportExecutionListResultResponse runHistory;
private @Nullable ExportScheduleResponse schedule;
private String type;
public Builder() {}
public Builder(GetExportResult defaults) {
Objects.requireNonNull(defaults);
this.definition = defaults.definition;
this.deliveryInfo = defaults.deliveryInfo;
this.eTag = defaults.eTag;
this.format = defaults.format;
this.id = defaults.id;
this.name = defaults.name;
this.nextRunTimeEstimate = defaults.nextRunTimeEstimate;
this.partitionData = defaults.partitionData;
this.runHistory = defaults.runHistory;
this.schedule = defaults.schedule;
this.type = defaults.type;
}
@CustomType.Setter
public Builder definition(ExportDefinitionResponse definition) {
if (definition == null) {
throw new MissingRequiredPropertyException("GetExportResult", "definition");
}
this.definition = definition;
return this;
}
@CustomType.Setter
public Builder deliveryInfo(ExportDeliveryInfoResponse deliveryInfo) {
if (deliveryInfo == null) {
throw new MissingRequiredPropertyException("GetExportResult", "deliveryInfo");
}
this.deliveryInfo = deliveryInfo;
return this;
}
@CustomType.Setter
public Builder eTag(@Nullable String eTag) {
this.eTag = eTag;
return this;
}
@CustomType.Setter
public Builder format(@Nullable String format) {
this.format = format;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetExportResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetExportResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nextRunTimeEstimate(String nextRunTimeEstimate) {
if (nextRunTimeEstimate == null) {
throw new MissingRequiredPropertyException("GetExportResult", "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;
}
@CustomType.Setter
public Builder schedule(@Nullable ExportScheduleResponse schedule) {
this.schedule = schedule;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetExportResult", "type");
}
this.type = type;
return this;
}
public GetExportResult build() {
final var _resultValue = new GetExportResult();
_resultValue.definition = definition;
_resultValue.deliveryInfo = deliveryInfo;
_resultValue.eTag = eTag;
_resultValue.format = format;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.nextRunTimeEstimate = nextRunTimeEstimate;
_resultValue.partitionData = partitionData;
_resultValue.runHistory = runHistory;
_resultValue.schedule = schedule;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy