Class CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty>
- Enclosing interface:
- CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty
@Stability(Stable)
public static final class CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty>
A builder for
CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationAddresses(List<String> destinationAddresses) destinationPortRanges(List<? extends Object> destinationPortRanges) destinationPortRanges(IResolvable destinationPortRanges) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.getProtocol()sourceAddresses(List<String> sourceAddresses) sourcePortRanges(List<? extends Object> sourcePortRanges) sourcePortRanges(IResolvable sourcePortRanges)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationAddresses
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder destinationAddresses(List<String> destinationAddresses) - Parameters:
destinationAddresses- The destination addresses.- Returns:
this
-
destinationPortRanges
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder destinationPortRanges(IResolvable destinationPortRanges) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.getDestinationPortRanges()- Parameters:
destinationPortRanges- The destination port ranges.- Returns:
this
-
destinationPortRanges
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder destinationPortRanges(List<? extends Object> destinationPortRanges) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.getDestinationPortRanges()- Parameters:
destinationPortRanges- The destination port ranges.- Returns:
this
-
protocol
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder protocol(String protocol) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.getProtocol()- Parameters:
protocol- The protocol.- Returns:
this
-
sourceAddresses
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder sourceAddresses(List<String> sourceAddresses) - Parameters:
sourceAddresses- The source addresses.- Returns:
this
-
sourcePortRanges
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder sourcePortRanges(IResolvable sourcePortRanges) - Parameters:
sourcePortRanges- The source port ranges.- Returns:
this
-
sourcePortRanges
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty.Builder sourcePortRanges(List<? extends Object> sourcePortRanges) - Parameters:
sourcePortRanges- The source port ranges.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty>- Returns:
- a new instance of
CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-