Class CfnMonitorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.networkmonitor.CfnMonitorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitorMixinProps>
- Enclosing interface:
CfnMonitorMixinProps
@Stability(Stable)
public static final class CfnMonitorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitorMixinProps>
A builder for
CfnMonitorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationPeriod(Number aggregationPeriod) Sets the value ofCfnMonitorMixinProps.getAggregationPeriod()build()Builds the configured instance.monitorName(String monitorName) Sets the value ofCfnMonitorMixinProps.getMonitorName()Sets the value ofCfnMonitorMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationPeriod
Sets the value ofCfnMonitorMixinProps.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
-
monitorName
Sets the value ofCfnMonitorMixinProps.getMonitorName()- Parameters:
monitorName- The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.- Returns:
this
-
tags
Sets the value ofCfnMonitorMixinProps.getTags()- Parameters:
tags- The tags for the monitor.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMonitorMixinProps>- Returns:
- a new instance of
CfnMonitorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-