com.pulumi.azure.consumption.inputs.GetBudgetSubscriptionPlainArgs 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.azure.consumption.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetBudgetSubscriptionPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetBudgetSubscriptionPlainArgs Empty = new GetBudgetSubscriptionPlainArgs();
/**
* The name of this Consumption Budget.
*
*/
@Import(name="name", required=true)
private String name;
/**
* @return The name of this Consumption Budget.
*
*/
public String name() {
return this.name;
}
/**
* The ID of the subscription.
*
*/
@Import(name="subscriptionId", required=true)
private String subscriptionId;
/**
* @return The ID of the subscription.
*
*/
public String subscriptionId() {
return this.subscriptionId;
}
private GetBudgetSubscriptionPlainArgs() {}
private GetBudgetSubscriptionPlainArgs(GetBudgetSubscriptionPlainArgs $) {
this.name = $.name;
this.subscriptionId = $.subscriptionId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBudgetSubscriptionPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetBudgetSubscriptionPlainArgs $;
public Builder() {
$ = new GetBudgetSubscriptionPlainArgs();
}
public Builder(GetBudgetSubscriptionPlainArgs defaults) {
$ = new GetBudgetSubscriptionPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param name The name of this Consumption Budget.
*
* @return builder
*
*/
public Builder name(String name) {
$.name = name;
return this;
}
/**
* @param subscriptionId The ID of the subscription.
*
* @return builder
*
*/
public Builder subscriptionId(String subscriptionId) {
$.subscriptionId = subscriptionId;
return this;
}
public GetBudgetSubscriptionPlainArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetBudgetSubscriptionPlainArgs", "name");
}
if ($.subscriptionId == null) {
throw new MissingRequiredPropertyException("GetBudgetSubscriptionPlainArgs", "subscriptionId");
}
return $;
}
}
}