com.pulumi.azure.consumption.outputs.GetBudgetResourceGroupResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.consumption.outputs;
import com.pulumi.azure.consumption.outputs.GetBudgetResourceGroupFilter;
import com.pulumi.azure.consumption.outputs.GetBudgetResourceGroupNotification;
import com.pulumi.azure.consumption.outputs.GetBudgetResourceGroupTimePeriod;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetBudgetResourceGroupResult {
/**
* @return The total amount of cost to track with the budget.
*
*/
private Double amount;
/**
* @return A `filter` block as defined below.
*
*/
private List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The name of the tag used for the filter.
*
*/
private String name;
/**
* @return A `notification` block as defined below.
*
*/
private List notifications;
private String resourceGroupId;
/**
* @return The time covered by a budget.
*
*/
private String timeGrain;
/**
* @return A `time_period` block as defined below.
*
*/
private List timePeriods;
private GetBudgetResourceGroupResult() {}
/**
* @return The total amount of cost to track with the budget.
*
*/
public Double amount() {
return this.amount;
}
/**
* @return A `filter` block as defined below.
*
*/
public List filters() {
return this.filters;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the tag used for the filter.
*
*/
public String name() {
return this.name;
}
/**
* @return A `notification` block as defined below.
*
*/
public List notifications() {
return this.notifications;
}
public String resourceGroupId() {
return this.resourceGroupId;
}
/**
* @return The time covered by a budget.
*
*/
public String timeGrain() {
return this.timeGrain;
}
/**
* @return A `time_period` block as defined below.
*
*/
public List timePeriods() {
return this.timePeriods;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBudgetResourceGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Double amount;
private List filters;
private String id;
private String name;
private List notifications;
private String resourceGroupId;
private String timeGrain;
private List timePeriods;
public Builder() {}
public Builder(GetBudgetResourceGroupResult defaults) {
Objects.requireNonNull(defaults);
this.amount = defaults.amount;
this.filters = defaults.filters;
this.id = defaults.id;
this.name = defaults.name;
this.notifications = defaults.notifications;
this.resourceGroupId = defaults.resourceGroupId;
this.timeGrain = defaults.timeGrain;
this.timePeriods = defaults.timePeriods;
}
@CustomType.Setter
public Builder amount(Double amount) {
if (amount == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "amount");
}
this.amount = amount;
return this;
}
@CustomType.Setter
public Builder filters(List filters) {
if (filters == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "filters");
}
this.filters = filters;
return this;
}
public Builder filters(GetBudgetResourceGroupFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder notifications(List notifications) {
if (notifications == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "notifications");
}
this.notifications = notifications;
return this;
}
public Builder notifications(GetBudgetResourceGroupNotification... notifications) {
return notifications(List.of(notifications));
}
@CustomType.Setter
public Builder resourceGroupId(String resourceGroupId) {
if (resourceGroupId == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "resourceGroupId");
}
this.resourceGroupId = resourceGroupId;
return this;
}
@CustomType.Setter
public Builder timeGrain(String timeGrain) {
if (timeGrain == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "timeGrain");
}
this.timeGrain = timeGrain;
return this;
}
@CustomType.Setter
public Builder timePeriods(List timePeriods) {
if (timePeriods == null) {
throw new MissingRequiredPropertyException("GetBudgetResourceGroupResult", "timePeriods");
}
this.timePeriods = timePeriods;
return this;
}
public Builder timePeriods(GetBudgetResourceGroupTimePeriod... timePeriods) {
return timePeriods(List.of(timePeriods));
}
public GetBudgetResourceGroupResult build() {
final var _resultValue = new GetBudgetResourceGroupResult();
_resultValue.amount = amount;
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.notifications = notifications;
_resultValue.resourceGroupId = resourceGroupId;
_resultValue.timeGrain = timeGrain;
_resultValue.timePeriods = timePeriods;
return _resultValue;
}
}
}