Class CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rum.CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppMonitorPropsMixin.MetricDestinationProperty>
- Enclosing interface:
CfnAppMonitorPropsMixin.MetricDestinationProperty
@Stability(Stable)
public static final class CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppMonitorPropsMixin.MetricDestinationProperty>
A builder for
CfnAppMonitorPropsMixin.MetricDestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destination(String destination) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getDestination()destinationArn(String destinationArn) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getDestinationArn()iamRoleArn(String iamRoleArn) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getIamRoleArn()metricDefinitions(List<? extends Object> metricDefinitions) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getMetricDefinitions()metricDefinitions(IResolvable metricDefinitions) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getMetricDefinitions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
@Stability(Stable) public CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder destination(String destination) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getDestination()- Parameters:
destination- Defines the destination to send the metrics to. Valid values areCloudWatchandEvidently. If you specifyEvidently, you must also specify the ARN of the CloudWatch Evidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.- Returns:
this
-
destinationArn
@Stability(Stable) public CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder destinationArn(String destinationArn) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getDestinationArn()- Parameters:
destinationArn- Use this parameter only ifDestinationisEvidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.- Returns:
this
-
iamRoleArn
@Stability(Stable) public CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder iamRoleArn(String iamRoleArn) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getIamRoleArn()- Parameters:
iamRoleArn- This parameter is required ifDestinationisEvidently. IfDestinationisCloudWatch, do not use this parameter. This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.- Returns:
this
-
metricDefinitions
@Stability(Stable) public CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder metricDefinitions(IResolvable metricDefinitions) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getMetricDefinitions()- Parameters:
metricDefinitions- An array of structures which define the metrics that you want to send.- Returns:
this
-
metricDefinitions
@Stability(Stable) public CfnAppMonitorPropsMixin.MetricDestinationProperty.Builder metricDefinitions(List<? extends Object> metricDefinitions) Sets the value ofCfnAppMonitorPropsMixin.MetricDestinationProperty.getMetricDefinitions()- Parameters:
metricDefinitions- An array of structures which define the metrics that you want to send.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppMonitorPropsMixin.MetricDestinationProperty>- Returns:
- a new instance of
CfnAppMonitorPropsMixin.MetricDestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-