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