@Stability(value=Stable) public static final class CfnLaunch.MetricDefinitionObjectProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLaunch.MetricDefinitionObjectProperty>
CfnLaunch.MetricDefinitionObjectProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnLaunch.MetricDefinitionObjectProperty |
build()
Builds the configured instance.
|
CfnLaunch.MetricDefinitionObjectProperty.Builder |
entityIdKey(String entityIdKey)
Sets the value of
CfnLaunch.MetricDefinitionObjectProperty.getEntityIdKey() |
CfnLaunch.MetricDefinitionObjectProperty.Builder |
eventPattern(String eventPattern)
Sets the value of
CfnLaunch.MetricDefinitionObjectProperty.getEventPattern() |
CfnLaunch.MetricDefinitionObjectProperty.Builder |
metricName(String metricName)
Sets the value of
CfnLaunch.MetricDefinitionObjectProperty.getMetricName() |
CfnLaunch.MetricDefinitionObjectProperty.Builder |
unitLabel(String unitLabel)
Sets the value of
CfnLaunch.MetricDefinitionObjectProperty.getUnitLabel() |
CfnLaunch.MetricDefinitionObjectProperty.Builder |
valueKey(String valueKey)
Sets the value of
CfnLaunch.MetricDefinitionObjectProperty.getValueKey() |
@Stability(value=Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder entityIdKey(String entityIdKey)
CfnLaunch.MetricDefinitionObjectProperty.getEntityIdKey()entityIdKey - The entity, such as a user or session, that does an action that causes a metric value to be recorded. This parameter is required.
An example is userDetails.userID .this@Stability(value=Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder eventPattern(String eventPattern)
CfnLaunch.MetricDefinitionObjectProperty.getEventPattern()eventPattern - The EventBridge event pattern that defines how the metric is recorded. This parameter is required.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns .this@Stability(value=Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder metricName(String metricName)
CfnLaunch.MetricDefinitionObjectProperty.getMetricName()metricName - A name for the metric. This parameter is required.
It can include up to 255 characters.this@Stability(value=Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder valueKey(String valueKey)
CfnLaunch.MetricDefinitionObjectProperty.getValueKey()valueKey - The value that is tracked to produce the metric. This parameter is required.this@Stability(value=Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder unitLabel(String unitLabel)
CfnLaunch.MetricDefinitionObjectProperty.getUnitLabel()unitLabel - A label for the units that the metric is measuring.this@Stability(value=Stable) public CfnLaunch.MetricDefinitionObjectProperty build()
build in interface software.amazon.jsii.Builder<CfnLaunch.MetricDefinitionObjectProperty>CfnLaunch.MetricDefinitionObjectPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.