Class CloudWatchPutMetricActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.CloudWatchPutMetricActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchPutMetricActionProps>
- Enclosing interface:
CloudWatchPutMetricActionProps
@Stability(Experimental)
public static final class CloudWatchPutMetricActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchPutMetricActionProps>
A builder for
CloudWatchPutMetricActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricName
(String metricName) Sets the value ofCloudWatchPutMetricActionProps.getMetricName()
metricNamespace
(String metricNamespace) Sets the value ofCloudWatchPutMetricActionProps.getMetricNamespace()
metricTimestamp
(String metricTimestamp) Sets the value ofCloudWatchPutMetricActionProps.getMetricTimestamp()
metricUnit
(String metricUnit) Sets the value ofCloudWatchPutMetricActionProps.getMetricUnit()
metricValue
(String metricValue) Sets the value ofCloudWatchPutMetricActionProps.getMetricValue()
Sets the value ofCommonActionProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
@Stability(Experimental) public CloudWatchPutMetricActionProps.Builder metricName(String metricName) Sets the value ofCloudWatchPutMetricActionProps.getMetricName()
- Parameters:
metricName
- The CloudWatch metric name. This parameter is required. Supports substitution templates.- Returns:
this
-
metricNamespace
@Stability(Experimental) public CloudWatchPutMetricActionProps.Builder metricNamespace(String metricNamespace) Sets the value ofCloudWatchPutMetricActionProps.getMetricNamespace()
- Parameters:
metricNamespace
- The CloudWatch metric namespace name. This parameter is required. Supports substitution templates.- Returns:
this
-
metricUnit
@Stability(Experimental) public CloudWatchPutMetricActionProps.Builder metricUnit(String metricUnit) Sets the value ofCloudWatchPutMetricActionProps.getMetricUnit()
- Parameters:
metricUnit
- The metric unit supported by CloudWatch. This parameter is required. Supports substitution templates.- Returns:
this
-
metricValue
@Stability(Experimental) public CloudWatchPutMetricActionProps.Builder metricValue(String metricValue) Sets the value ofCloudWatchPutMetricActionProps.getMetricValue()
- Parameters:
metricValue
- A string that contains the CloudWatch metric value. This parameter is required. Supports substitution templates.- Returns:
this
-
metricTimestamp
@Stability(Experimental) public CloudWatchPutMetricActionProps.Builder metricTimestamp(String metricTimestamp) Sets the value ofCloudWatchPutMetricActionProps.getMetricTimestamp()
- Parameters:
metricTimestamp
- A string that contains the timestamp, expressed in seconds in Unix epoch time. Supports substitution templates.- Returns:
this
-
role
Sets the value ofCommonActionProps.getRole()
- Parameters:
role
- The IAM role that allows access to AWS service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudWatchPutMetricActionProps>
- Returns:
- a new instance of
CloudWatchPutMetricActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-