Class CfnMonitoringSubscription.MonitoringSubscriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitoringSubscription.MonitoringSubscriptionProperty>
- Enclosing interface:
CfnMonitoringSubscription.MonitoringSubscriptionProperty
@Stability(Stable)
public static final class CfnMonitoringSubscription.MonitoringSubscriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitoringSubscription.MonitoringSubscriptionProperty>
A builder for
CfnMonitoringSubscription.MonitoringSubscriptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.realtimeMetricsSubscriptionConfig
(IResolvable realtimeMetricsSubscriptionConfig) realtimeMetricsSubscriptionConfig
(CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty realtimeMetricsSubscriptionConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
realtimeMetricsSubscriptionConfig
@Stability(Stable) public CfnMonitoringSubscription.MonitoringSubscriptionProperty.Builder realtimeMetricsSubscriptionConfig(IResolvable realtimeMetricsSubscriptionConfig) Sets the value ofCfnMonitoringSubscription.MonitoringSubscriptionProperty.getRealtimeMetricsSubscriptionConfig()
- Parameters:
realtimeMetricsSubscriptionConfig
- A subscription configuration for additional CloudWatch metrics.- Returns:
this
-
realtimeMetricsSubscriptionConfig
@Stability(Stable) public CfnMonitoringSubscription.MonitoringSubscriptionProperty.Builder realtimeMetricsSubscriptionConfig(CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty realtimeMetricsSubscriptionConfig) Sets the value ofCfnMonitoringSubscription.MonitoringSubscriptionProperty.getRealtimeMetricsSubscriptionConfig()
- Parameters:
realtimeMetricsSubscriptionConfig
- A subscription configuration for additional CloudWatch metrics.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMonitoringSubscription.MonitoringSubscriptionProperty>
- Returns:
- a new instance of
CfnMonitoringSubscription.MonitoringSubscriptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-