Class MonitoringAlertPolicyConditionsConditionThresholdTrigger.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyConditionsConditionThresholdTrigger.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThresholdTrigger>
- Enclosing interface:
- MonitoringAlertPolicyConditionsConditionThresholdTrigger
@Stability(Stable) public static final class MonitoringAlertPolicyConditionsConditionThresholdTrigger.Builder extends Object implements software.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThresholdTrigger>
A builder forMonitoringAlertPolicyConditionsConditionThresholdTrigger
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitoringAlertPolicyConditionsConditionThresholdTriggerbuild()Builds the configured instance.MonitoringAlertPolicyConditionsConditionThresholdTrigger.Buildercount(Number count)Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdTrigger.getCount()MonitoringAlertPolicyConditionsConditionThresholdTrigger.Builderpercent(Number percent)Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdTrigger.getPercent()
-
-
-
Method Detail
-
count
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdTrigger.Builder count(Number count)
Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdTrigger.getCount()- Parameters:
count- The absolute number of time series that must fail the predicate for the condition to be triggered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#count MonitoringAlertPolicy#count}- Returns:
this
-
percent
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdTrigger.Builder percent(Number percent)
Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdTrigger.getPercent()- Parameters:
percent- The percentage of time series that must fail the predicate for the condition to be triggered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#percent MonitoringAlertPolicy#percent}- Returns:
this
-
build
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdTrigger build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThresholdTrigger>- Returns:
- a new instance of
MonitoringAlertPolicyConditionsConditionThresholdTrigger - Throws:
NullPointerException- if any required attribute was not provided
-
-