Class CfnNetworkPerformanceMetricSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkPerformanceMetricSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkPerformanceMetricSubscriptionProps>
- Enclosing interface:
CfnNetworkPerformanceMetricSubscriptionProps
@Stability(Stable)
public static final class CfnNetworkPerformanceMetricSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkPerformanceMetricSubscriptionProps>
A builder for
CfnNetworkPerformanceMetricSubscriptionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destination(String destination) Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getDestination()Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getMetric()Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getSource()Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getStatistic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
@Stability(Stable) public CfnNetworkPerformanceMetricSubscriptionProps.Builder destination(String destination) Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getDestination()- Parameters:
destination- The Region or Availability Zone that's the target for the subscription. This parameter is required. For example,eu-west-1.- Returns:
this
-
metric
@Stability(Stable) public CfnNetworkPerformanceMetricSubscriptionProps.Builder metric(String metric) Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getMetric()- Parameters:
metric- The metric used for the subscription. This parameter is required.- Returns:
this
-
source
@Stability(Stable) public CfnNetworkPerformanceMetricSubscriptionProps.Builder source(String source) Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getSource()- Parameters:
source- The Region or Availability Zone that's the source for the subscription. This parameter is required. For example,us-east-1.- Returns:
this
-
statistic
@Stability(Stable) public CfnNetworkPerformanceMetricSubscriptionProps.Builder statistic(String statistic) Sets the value ofCfnNetworkPerformanceMetricSubscriptionProps.getStatistic()- Parameters:
statistic- The statistic used for the subscription. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkPerformanceMetricSubscriptionProps>- Returns:
- a new instance of
CfnNetworkPerformanceMetricSubscriptionProps - Throws:
NullPointerException- if any required attribute was not provided
-