Class BillingBudgetConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.billing_budget.BillingBudgetConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BillingBudgetConfig>
- Enclosing interface:
- BillingBudgetConfig
@Stability(Stable) public static final class BillingBudgetConfig.Builder extends Object implements software.amazon.jsii.Builder<BillingBudgetConfig>
A builder forBillingBudgetConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingBudgetConfig.BuilderallUpdatesRule(BillingBudgetAllUpdatesRule allUpdatesRule)Sets the value ofBillingBudgetConfig.getAllUpdatesRule()BillingBudgetConfig.Builderamount(BillingBudgetAmount amount)Sets the value ofBillingBudgetConfig.getAmount()BillingBudgetConfig.BuilderbillingAccount(String billingAccount)Sets the value ofBillingBudgetConfig.getBillingAccount()BillingBudgetConfig.BuilderbudgetFilter(BillingBudgetBudgetFilter budgetFilter)Sets the value ofBillingBudgetConfig.getBudgetFilter()BillingBudgetConfigbuild()Builds the configured instance.BillingBudgetConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()BillingBudgetConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()BillingBudgetConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()BillingBudgetConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()BillingBudgetConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()BillingBudgetConfig.BuilderdisplayName(String displayName)Sets the value ofBillingBudgetConfig.getDisplayName()BillingBudgetConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()BillingBudgetConfig.Builderid(String id)Sets the value ofBillingBudgetConfig.getId()BillingBudgetConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()BillingBudgetConfig.BuilderownershipScope(String ownershipScope)Sets the value ofBillingBudgetConfig.getOwnershipScope()BillingBudgetConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()BillingBudgetConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()BillingBudgetConfig.BuilderthresholdRules(com.hashicorp.cdktf.IResolvable thresholdRules)Sets the value ofBillingBudgetConfig.getThresholdRules()BillingBudgetConfig.BuilderthresholdRules(List<? extends BillingBudgetThresholdRules> thresholdRules)Sets the value ofBillingBudgetConfig.getThresholdRules()BillingBudgetConfig.Buildertimeouts(BillingBudgetTimeouts timeouts)Sets the value ofBillingBudgetConfig.getTimeouts()
-
-
-
Method Detail
-
amount
@Stability(Stable) public BillingBudgetConfig.Builder amount(BillingBudgetAmount amount)
Sets the value ofBillingBudgetConfig.getAmount()- Parameters:
amount- amount block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#amount BillingBudget#amount}- Returns:
this
-
billingAccount
@Stability(Stable) public BillingBudgetConfig.Builder billingAccount(String billingAccount)
Sets the value ofBillingBudgetConfig.getBillingAccount()- Parameters:
billingAccount- ID of the billing account to set a budget on. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#billing_account BillingBudget#billing_account}- Returns:
this
-
allUpdatesRule
@Stability(Stable) public BillingBudgetConfig.Builder allUpdatesRule(BillingBudgetAllUpdatesRule allUpdatesRule)
Sets the value ofBillingBudgetConfig.getAllUpdatesRule()- Parameters:
allUpdatesRule- all_updates_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#all_updates_rule BillingBudget#all_updates_rule}- Returns:
this
-
budgetFilter
@Stability(Stable) public BillingBudgetConfig.Builder budgetFilter(BillingBudgetBudgetFilter budgetFilter)
Sets the value ofBillingBudgetConfig.getBudgetFilter()- Parameters:
budgetFilter- budget_filter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#budget_filter BillingBudget#budget_filter}- Returns:
this
-
displayName
@Stability(Stable) public BillingBudgetConfig.Builder displayName(String displayName)
Sets the value ofBillingBudgetConfig.getDisplayName()- Parameters:
displayName- User data for display name in UI. Must be <= 60 chars. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#display_name BillingBudget#display_name}- Returns:
this
-
id
@Stability(Stable) public BillingBudgetConfig.Builder id(String id)
Sets the value ofBillingBudgetConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#id BillingBudget#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
ownershipScope
@Stability(Stable) public BillingBudgetConfig.Builder ownershipScope(String ownershipScope)
Sets the value ofBillingBudgetConfig.getOwnershipScope()- Parameters:
ownershipScope- The ownership scope of the budget. The ownership scope and users' IAM permissions determine who has full access to the budget's data. Possible values: ["OWNERSHIP_SCOPE_UNSPECIFIED", "ALL_USERS", "BILLING_ACCOUNT"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#ownership_scope BillingBudget#ownership_scope}- Returns:
this
-
thresholdRules
@Stability(Stable) public BillingBudgetConfig.Builder thresholdRules(com.hashicorp.cdktf.IResolvable thresholdRules)
Sets the value ofBillingBudgetConfig.getThresholdRules()- Parameters:
thresholdRules- threshold_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#threshold_rules BillingBudget#threshold_rules}- Returns:
this
-
thresholdRules
@Stability(Stable) public BillingBudgetConfig.Builder thresholdRules(List<? extends BillingBudgetThresholdRules> thresholdRules)
Sets the value ofBillingBudgetConfig.getThresholdRules()- Parameters:
thresholdRules- threshold_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#threshold_rules BillingBudget#threshold_rules}- Returns:
this
-
timeouts
@Stability(Stable) public BillingBudgetConfig.Builder timeouts(BillingBudgetTimeouts timeouts)
Sets the value ofBillingBudgetConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#timeouts BillingBudget#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public BillingBudgetConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public BillingBudgetConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BillingBudgetConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BillingBudgetConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public BillingBudgetConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public BillingBudgetConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public BillingBudgetConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public BillingBudgetConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public BillingBudgetConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BillingBudgetConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BillingBudgetConfig>- Returns:
- a new instance of
BillingBudgetConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-