Class AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.CustomizedMetricSpecification>
- Enclosing interface:
AWSAPICallViaCloudTrail.CustomizedMetricSpecification
@Stability(Experimental)
public static final class AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder
extends Object
implements software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.CustomizedMetricSpecification>
A builder for
AWSAPICallViaCloudTrail.CustomizedMetricSpecification-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends AWSAPICallViaCloudTrail.CustomizedMetricSpecificationItem> dimensions) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getDimensions()metricName(List<String> metricName) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getMetricName()Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getNamespace()Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getStatistic()Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Experimental) public AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder dimensions(List<? extends AWSAPICallViaCloudTrail.CustomizedMetricSpecificationItem> dimensions) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getDimensions()- Parameters:
dimensions- dimensions property. Specify an array of string values to match this event if the actual value of dimensions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
metricName
@Stability(Experimental) public AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder metricName(List<String> metricName) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getMetricName()- Parameters:
metricName- metricName property. Specify an array of string values to match this event if the actual value of metricName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
namespace
@Stability(Experimental) public AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder namespace(List<String> namespace) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getNamespace()- Parameters:
namespace- namespace property. Specify an array of string values to match this event if the actual value of namespace is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
statistic
@Stability(Experimental) public AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder statistic(List<String> statistic) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getStatistic()- Parameters:
statistic- statistic property. Specify an array of string values to match this event if the actual value of statistic is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
unit
@Stability(Experimental) public AWSAPICallViaCloudTrail.CustomizedMetricSpecification.Builder unit(List<String> unit) Sets the value ofAWSAPICallViaCloudTrail.CustomizedMetricSpecification.getUnit()- Parameters:
unit- unit property. Specify an array of string values to match this event if the actual value of unit is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AWSAPICallViaCloudTrail.CustomizedMetricSpecification>- Returns:
- a new instance of
AWSAPICallViaCloudTrail.CustomizedMetricSpecification - Throws:
NullPointerException- if any required attribute was not provided
-