Class LoggingBillingAccountSinkConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_billing_account_sink.LoggingBillingAccountSinkConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingBillingAccountSinkConfig>
- Enclosing interface:
- LoggingBillingAccountSinkConfig
@Stability(Stable) public static final class LoggingBillingAccountSinkConfig.Builder extends Object implements software.amazon.jsii.Builder<LoggingBillingAccountSinkConfig>
A builder forLoggingBillingAccountSinkConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
billingAccount
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder billingAccount(String billingAccount)
Sets the value ofLoggingBillingAccountSinkConfig.getBillingAccount()- Parameters:
billingAccount- The billing account exported to the sink. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#billing_account LoggingBillingAccountSink#billing_account}- Returns:
this
-
destination
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder destination(String destination)
Sets the value ofLoggingBillingAccountSinkConfig.getDestination()- Parameters:
destination- The destination of the sink (or, in other words, where logs are written to). This parameter is required. Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" The writer associated with the sink must have access to write to the above resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#destination LoggingBillingAccountSink#destination}- Returns:
this
-
name
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder name(String name)
Sets the value ofLoggingBillingAccountSinkConfig.getName()- Parameters:
name- The name of the logging sink. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#name LoggingBillingAccountSink#name}- Returns:
this
-
bigqueryOptions
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder bigqueryOptions(LoggingBillingAccountSinkBigqueryOptions bigqueryOptions)
Sets the value ofLoggingBillingAccountSinkConfig.getBigqueryOptions()- Parameters:
bigqueryOptions- bigquery_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#bigquery_options LoggingBillingAccountSink#bigquery_options}- Returns:
this
-
description
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder description(String description)
Sets the value ofLoggingBillingAccountSinkConfig.getDescription()- Parameters:
description- A description of this sink. The maximum length of the description is 8000 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#description LoggingBillingAccountSink#description}- Returns:
this
-
disabled
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder disabled(Boolean disabled)
Sets the value ofLoggingBillingAccountSinkConfig.getDisabled()- Parameters:
disabled- If set to True, then this sink is disabled and it does not export any log entries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#disabled LoggingBillingAccountSink#disabled}- Returns:
this
-
disabled
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofLoggingBillingAccountSinkConfig.getDisabled()- Parameters:
disabled- If set to True, then this sink is disabled and it does not export any log entries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#disabled LoggingBillingAccountSink#disabled}- Returns:
this
-
exclusions
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder exclusions(com.hashicorp.cdktf.IResolvable exclusions)
Sets the value ofLoggingBillingAccountSinkConfig.getExclusions()- Parameters:
exclusions- exclusions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#exclusions LoggingBillingAccountSink#exclusions}- Returns:
this
-
exclusions
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder exclusions(List<? extends LoggingBillingAccountSinkExclusions> exclusions)
Sets the value ofLoggingBillingAccountSinkConfig.getExclusions()- Parameters:
exclusions- exclusions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#exclusions LoggingBillingAccountSink#exclusions}- Returns:
this
-
filter
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder filter(String filter)
Sets the value ofLoggingBillingAccountSinkConfig.getFilter()- Parameters:
filter- The filter to apply when exporting logs. Only log entries that match the filter are exported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#filter LoggingBillingAccountSink#filter}- Returns:
this
-
id
@Stability(Stable) public LoggingBillingAccountSinkConfig.Builder id(String id)
Sets the value ofLoggingBillingAccountSinkConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_sink#id LoggingBillingAccountSink#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
-
connection
@Stability(Experimental) public LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.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 LoggingBillingAccountSinkConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public LoggingBillingAccountSinkConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingBillingAccountSinkConfig>- Returns:
- a new instance of
LoggingBillingAccountSinkConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-