Class CfnMonitorProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkmonitor.CfnMonitorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitorProps>
- Enclosing interface:
CfnMonitorProps
@Stability(Stable)
public static final class CfnMonitorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitorProps>
A builder for
CfnMonitorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationPeriod(Number aggregationPeriod) Sets the value ofCfnMonitorProps.getAggregationPeriod()build()Builds the configured instance.monitorName(String monitorName) Sets the value ofCfnMonitorProps.getMonitorName()Sets the value ofCfnMonitorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
monitorName
Sets the value ofCfnMonitorProps.getMonitorName()- Parameters:
monitorName- The name identifying the monitor. This parameter is required. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.- Returns:
this
-
aggregationPeriod
Sets the value ofCfnMonitorProps.getAggregationPeriod()- Parameters:
aggregationPeriod- The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.- Returns:
this
-
tags
Sets the value ofCfnMonitorProps.getTags()- Parameters:
tags- The tags for the monitor.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMonitorProps>- Returns:
- a new instance of
CfnMonitorProps - Throws:
NullPointerException- if any required attribute was not provided
-