Class DataGoogleMonitoringNotificationChannel.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.data_google_monitoring_notification_channel.DataGoogleMonitoringNotificationChannel.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataGoogleMonitoringNotificationChannel>
- Enclosing class:
- DataGoogleMonitoringNotificationChannel
@Stability(Stable) public static final class DataGoogleMonitoringNotificationChannel.Builder extends Object implements software.amazon.jsii.Builder<DataGoogleMonitoringNotificationChannel>
A fluent builder forDataGoogleMonitoringNotificationChannel.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataGoogleMonitoringNotificationChannelbuild()DataGoogleMonitoringNotificationChannel.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)DataGoogleMonitoringNotificationChannel.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)DataGoogleMonitoringNotificationChannel.Buildercount(com.hashicorp.cdktf.TerraformCount count)DataGoogleMonitoringNotificationChannel.Buildercount(Number count)static DataGoogleMonitoringNotificationChannel.Buildercreate(software.constructs.Construct scope, String id)DataGoogleMonitoringNotificationChannel.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)DataGoogleMonitoringNotificationChannel.BuilderdisplayName(String displayName)An optional human-readable name for this notification channel.DataGoogleMonitoringNotificationChannel.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)DataGoogleMonitoringNotificationChannel.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#id DataGoogleMonitoringNotificationChannel#id}.DataGoogleMonitoringNotificationChannel.Builderlabels(Map<String,String> labels)Configuration fields that define the channel and its behavior.DataGoogleMonitoringNotificationChannel.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)DataGoogleMonitoringNotificationChannel.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#project DataGoogleMonitoringNotificationChannel#project}.DataGoogleMonitoringNotificationChannel.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)DataGoogleMonitoringNotificationChannel.Builderprovisioners(List<? extends Object> provisioners)DataGoogleMonitoringNotificationChannel.Buildertype(String type)The type of the notification channel.DataGoogleMonitoringNotificationChannel.BuilderuserLabels(Map<String,String> userLabels)User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field.
-
-
-
Method Detail
-
create
@Stability(Stable) public static DataGoogleMonitoringNotificationChannel.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
DataGoogleMonitoringNotificationChannel.Builder.
-
connection
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public DataGoogleMonitoringNotificationChannel.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
displayName
@Stability(Stable) public DataGoogleMonitoringNotificationChannel.Builder displayName(String displayName)
An optional human-readable name for this notification channel.It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#display_name DataGoogleMonitoringNotificationChannel#display_name}
- Parameters:
displayName- An optional human-readable name for this notification channel. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public DataGoogleMonitoringNotificationChannel.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#id DataGoogleMonitoringNotificationChannel#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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#id DataGoogleMonitoringNotificationChannel#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public DataGoogleMonitoringNotificationChannel.Builder labels(Map<String,String> labels)
Configuration fields that define the channel and its behavior.The permissible and required labels are specified in the NotificationChannelDescriptor corresponding to the type field. Labels with sensitive data are obfuscated by the API and therefore Terraform cannot determine if there are upstream changes to these fields. They can also be configured via the sensitive_labels block, but cannot be configured in both places. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#labels DataGoogleMonitoringNotificationChannel#labels}
- Parameters:
labels- Configuration fields that define the channel and its behavior. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public DataGoogleMonitoringNotificationChannel.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#project DataGoogleMonitoringNotificationChannel#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#project DataGoogleMonitoringNotificationChannel#project}. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public DataGoogleMonitoringNotificationChannel.Builder type(String type)
The type of the notification channel.This field matches the value of the NotificationChannelDescriptor.type field. See https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannelDescriptors/list to get the list of valid values such as "email", "slack", etc... Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#type DataGoogleMonitoringNotificationChannel#type}
- Parameters:
type- The type of the notification channel. This parameter is required.- Returns:
this
-
userLabels
@Stability(Stable) public DataGoogleMonitoringNotificationChannel.Builder userLabels(Map<String,String> userLabels)
User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field.This field is intended to be used for organizing and identifying the NotificationChannel objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/monitoring_notification_channel#user_labels DataGoogleMonitoringNotificationChannel#user_labels}
- Parameters:
userLabels- User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public DataGoogleMonitoringNotificationChannel build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataGoogleMonitoringNotificationChannel>- Returns:
- a newly built instance of
DataGoogleMonitoringNotificationChannel.
-
-