Class CfnNetworkPerformanceMetricSubscription.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkPerformanceMetricSubscription.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkPerformanceMetricSubscription>
- Enclosing class:
CfnNetworkPerformanceMetricSubscription
@Stability(Stable)
public static final class CfnNetworkPerformanceMetricSubscription.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkPerformanceMetricSubscription>
A fluent builder for
CfnNetworkPerformanceMetricSubscription
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
destination
(String destination) The Region or Availability Zone that's the target for the subscription.The metric used for the subscription.The Region or Availability Zone that's the source for the subscription.The statistic used for the subscription.
-
Method Details
-
create
@Stability(Stable) public static CfnNetworkPerformanceMetricSubscription.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnNetworkPerformanceMetricSubscription.Builder
.
-
destination
@Stability(Stable) public CfnNetworkPerformanceMetricSubscription.Builder destination(String destination) The Region or Availability Zone that's the target for the subscription.For example,
eu-west-1
.- Parameters:
destination
- The Region or Availability Zone that's the target for the subscription. This parameter is required.- Returns:
this
- See Also:
-
metric
The metric used for the subscription.- Parameters:
metric
- The metric used for the subscription. This parameter is required.- Returns:
this
- See Also:
-
source
The Region or Availability Zone that's the source for the subscription.For example,
us-east-1
.- Parameters:
source
- The Region or Availability Zone that's the source for the subscription. This parameter is required.- Returns:
this
- See Also:
-
statistic
@Stability(Stable) public CfnNetworkPerformanceMetricSubscription.Builder statistic(String statistic) The statistic used for the subscription.- Parameters:
statistic
- The statistic used for the subscription. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkPerformanceMetricSubscription>
- Returns:
- a newly built instance of
CfnNetworkPerformanceMetricSubscription
.
-