Class CfnMonitorProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkflowmonitor.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 TypeMethodDescriptionbuild()Builds the configured instance.localResources(List<? extends Object> localResources) Sets the value ofCfnMonitorProps.getLocalResources()localResources(IResolvable localResources) Sets the value ofCfnMonitorProps.getLocalResources()monitorName(String monitorName) Sets the value ofCfnMonitorProps.getMonitorName()remoteResources(List<? extends Object> remoteResources) Sets the value ofCfnMonitorProps.getRemoteResources()remoteResources(IResolvable remoteResources) Sets the value ofCfnMonitorProps.getRemoteResources()Sets the value ofCfnMonitorProps.getScopeArn()Sets the value ofCfnMonitorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
localResources
Sets the value ofCfnMonitorProps.getLocalResources()- Parameters:
localResources- The local resources to monitor. This parameter is required.- Returns:
this
-
localResources
@Stability(Stable) public CfnMonitorProps.Builder localResources(List<? extends Object> localResources) Sets the value ofCfnMonitorProps.getLocalResources()- Parameters:
localResources- The local resources to monitor. This parameter is required.- Returns:
this
-
monitorName
Sets the value ofCfnMonitorProps.getMonitorName()- Parameters:
monitorName- The name of the monitor. This parameter is required.- Returns:
this
-
remoteResources
Sets the value ofCfnMonitorProps.getRemoteResources()- Parameters:
remoteResources- The remote resources to monitor.- Returns:
this
-
remoteResources
@Stability(Stable) public CfnMonitorProps.Builder remoteResources(List<? extends Object> remoteResources) Sets the value ofCfnMonitorProps.getRemoteResources()- Parameters:
remoteResources- The remote resources to monitor.- Returns:
this
-
scopeArn
Sets the value ofCfnMonitorProps.getScopeArn()- Parameters:
scopeArn- The Amazon Resource Name (ARN) of the scope for the monitor.- 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
-