Class LoggingProjectSinkExclusions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_project_sink.LoggingProjectSinkExclusions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingProjectSinkExclusions>
- Enclosing interface:
- LoggingProjectSinkExclusions
@Stability(Stable) public static final class LoggingProjectSinkExclusions.Builder extends Object implements software.amazon.jsii.Builder<LoggingProjectSinkExclusions>
A builder forLoggingProjectSinkExclusions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingProjectSinkExclusionsbuild()Builds the configured instance.LoggingProjectSinkExclusions.Builderdescription(String description)Sets the value ofLoggingProjectSinkExclusions.getDescription()LoggingProjectSinkExclusions.Builderdisabled(com.hashicorp.cdktf.IResolvable disabled)Sets the value ofLoggingProjectSinkExclusions.getDisabled()LoggingProjectSinkExclusions.Builderdisabled(Boolean disabled)Sets the value ofLoggingProjectSinkExclusions.getDisabled()LoggingProjectSinkExclusions.Builderfilter(String filter)Sets the value ofLoggingProjectSinkExclusions.getFilter()LoggingProjectSinkExclusions.Buildername(String name)Sets the value ofLoggingProjectSinkExclusions.getName()
-
-
-
Method Detail
-
filter
@Stability(Stable) public LoggingProjectSinkExclusions.Builder filter(String filter)
Sets the value ofLoggingProjectSinkExclusions.getFilter()- Parameters:
filter- An advanced logs filter that matches the log entries to be excluded. This parameter is required. By using the sample function, you can exclude less than 100% of the matching log entries Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_sink#filter LoggingProjectSink#filter}- Returns:
this
-
name
@Stability(Stable) public LoggingProjectSinkExclusions.Builder name(String name)
Sets the value ofLoggingProjectSinkExclusions.getName()- Parameters:
name- A client-assigned identifier, such as "load-balancer-exclusion". This parameter is required. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_sink#name LoggingProjectSink#name}- Returns:
this
-
description
@Stability(Stable) public LoggingProjectSinkExclusions.Builder description(String description)
Sets the value ofLoggingProjectSinkExclusions.getDescription()- Parameters:
description- A description of this exclusion. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_sink#description LoggingProjectSink#description}- Returns:
this
-
disabled
@Stability(Stable) public LoggingProjectSinkExclusions.Builder disabled(Boolean disabled)
Sets the value ofLoggingProjectSinkExclusions.getDisabled()- Parameters:
disabled- If set to True, then this exclusion is disabled and it does not exclude any log entries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_sink#disabled LoggingProjectSink#disabled}- Returns:
this
-
disabled
@Stability(Stable) public LoggingProjectSinkExclusions.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofLoggingProjectSinkExclusions.getDisabled()- Parameters:
disabled- If set to True, then this exclusion is disabled and it does not exclude any log entries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_sink#disabled LoggingProjectSink#disabled}- Returns:
this
-
build
@Stability(Stable) public LoggingProjectSinkExclusions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingProjectSinkExclusions>- Returns:
- a new instance of
LoggingProjectSinkExclusions - Throws:
NullPointerException- if any required attribute was not provided
-
-