Class MonitoringAlertPolicyAlertStrategy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyAlertStrategy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringAlertPolicyAlertStrategy>
- Enclosing interface:
- MonitoringAlertPolicyAlertStrategy
@Stability(Stable) public static final class MonitoringAlertPolicyAlertStrategy.Builder extends Object implements software.amazon.jsii.Builder<MonitoringAlertPolicyAlertStrategy>
A builder forMonitoringAlertPolicyAlertStrategy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
autoClose
@Stability(Stable) public MonitoringAlertPolicyAlertStrategy.Builder autoClose(String autoClose)
Sets the value ofMonitoringAlertPolicyAlertStrategy.getAutoClose()- Parameters:
autoClose- If an alert policy that was active has no data for this long, any open incidents will close. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#auto_close MonitoringAlertPolicy#auto_close}- Returns:
this
-
notificationChannelStrategy
@Stability(Stable) public MonitoringAlertPolicyAlertStrategy.Builder notificationChannelStrategy(com.hashicorp.cdktf.IResolvable notificationChannelStrategy)
Sets the value ofMonitoringAlertPolicyAlertStrategy.getNotificationChannelStrategy()- Parameters:
notificationChannelStrategy- notification_channel_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#notification_channel_strategy MonitoringAlertPolicy#notification_channel_strategy}- Returns:
this
-
notificationChannelStrategy
@Stability(Stable) public MonitoringAlertPolicyAlertStrategy.Builder notificationChannelStrategy(List<? extends MonitoringAlertPolicyAlertStrategyNotificationChannelStrategy> notificationChannelStrategy)
Sets the value ofMonitoringAlertPolicyAlertStrategy.getNotificationChannelStrategy()- Parameters:
notificationChannelStrategy- notification_channel_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#notification_channel_strategy MonitoringAlertPolicy#notification_channel_strategy}- Returns:
this
-
notificationRateLimit
@Stability(Stable) public MonitoringAlertPolicyAlertStrategy.Builder notificationRateLimit(MonitoringAlertPolicyAlertStrategyNotificationRateLimit notificationRateLimit)
Sets the value ofMonitoringAlertPolicyAlertStrategy.getNotificationRateLimit()- Parameters:
notificationRateLimit- notification_rate_limit block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#notification_rate_limit MonitoringAlertPolicy#notification_rate_limit}- Returns:
this
-
build
@Stability(Stable) public MonitoringAlertPolicyAlertStrategy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringAlertPolicyAlertStrategy>- Returns:
- a new instance of
MonitoringAlertPolicyAlertStrategy - Throws:
NullPointerException- if any required attribute was not provided
-
-