Class MonitorReference.Builder
java.lang.Object
software.amazon.awscdk.services.internetmonitor.MonitorReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitorReference>
- Enclosing interface:
MonitorReference
@Stability(Stable)
public static final class MonitorReference.Builder
extends Object
implements software.amazon.jsii.Builder<MonitorReference>
A builder for
MonitorReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.monitorArn
(String monitorArn) Sets the value ofMonitorReference.getMonitorArn()
monitorName
(String monitorName) Sets the value ofMonitorReference.getMonitorName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
monitorArn
Sets the value ofMonitorReference.getMonitorArn()
- Parameters:
monitorArn
- The ARN of the Monitor resource. This parameter is required.- Returns:
this
-
monitorName
Sets the value ofMonitorReference.getMonitorName()
- Parameters:
monitorName
- The MonitorName of the Monitor resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MonitorReference>
- Returns:
- a new instance of
MonitorReference
- Throws:
NullPointerException
- if any required attribute was not provided
-