Class NetworkPerformanceMetricSubscriptionReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.NetworkPerformanceMetricSubscriptionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkPerformanceMetricSubscriptionReference>
- Enclosing interface:
NetworkPerformanceMetricSubscriptionReference
@Stability(Stable)
public static final class NetworkPerformanceMetricSubscriptionReference.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkPerformanceMetricSubscriptionReference>
A builder for
NetworkPerformanceMetricSubscriptionReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destination
(String destination) Sets the value ofNetworkPerformanceMetricSubscriptionReference.getDestination()
Sets the value ofNetworkPerformanceMetricSubscriptionReference.getMetric()
Sets the value ofNetworkPerformanceMetricSubscriptionReference.getSource()
Sets the value ofNetworkPerformanceMetricSubscriptionReference.getStatistic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
@Stability(Stable) public NetworkPerformanceMetricSubscriptionReference.Builder destination(String destination) Sets the value ofNetworkPerformanceMetricSubscriptionReference.getDestination()
- Parameters:
destination
- The Destination of the NetworkPerformanceMetricSubscription resource. This parameter is required.- Returns:
this
-
metric
@Stability(Stable) public NetworkPerformanceMetricSubscriptionReference.Builder metric(String metric) Sets the value ofNetworkPerformanceMetricSubscriptionReference.getMetric()
- Parameters:
metric
- The Metric of the NetworkPerformanceMetricSubscription resource. This parameter is required.- Returns:
this
-
source
@Stability(Stable) public NetworkPerformanceMetricSubscriptionReference.Builder source(String source) Sets the value ofNetworkPerformanceMetricSubscriptionReference.getSource()
- Parameters:
source
- The Source of the NetworkPerformanceMetricSubscription resource. This parameter is required.- Returns:
this
-
statistic
@Stability(Stable) public NetworkPerformanceMetricSubscriptionReference.Builder statistic(String statistic) Sets the value ofNetworkPerformanceMetricSubscriptionReference.getStatistic()
- Parameters:
statistic
- The Statistic of the NetworkPerformanceMetricSubscription resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkPerformanceMetricSubscriptionReference>
- Returns:
- a new instance of
NetworkPerformanceMetricSubscriptionReference
- Throws:
NullPointerException
- if any required attribute was not provided
-