Class CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty>
- Enclosing interface:
- CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty
@Stability(Stable)
public static final class CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationAddresses(List<String> destinationAddresses) destinationPorts(List<String> destinationPorts) destinationPrefixLists(List<String> destinationPrefixLists) sourceAddresses(List<String> sourceAddresses) sourcePorts(List<String> sourcePorts) sourcePrefixLists(List<String> sourcePrefixLists)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationAddresses
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder destinationAddresses(List<String> destinationAddresses) Sets the value ofCfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.getDestinationAddresses()- Parameters:
destinationAddresses- The destination addresses.- Returns:
this
-
destinationPorts
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder destinationPorts(List<String> destinationPorts) Sets the value ofCfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.getDestinationPorts()- Parameters:
destinationPorts- The destination ports.- Returns:
this
-
destinationPrefixLists
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder destinationPrefixLists(List<String> destinationPrefixLists) Sets the value ofCfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.getDestinationPrefixLists()- Parameters:
destinationPrefixLists- The destination prefix lists.- Returns:
this
-
protocols
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder protocols(List<String> protocols) - Parameters:
protocols- The protocols.- Returns:
this
-
sourceAddresses
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder sourceAddresses(List<String> sourceAddresses) Sets the value ofCfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.getSourceAddresses()- Parameters:
sourceAddresses- The source addresses.- Returns:
this
-
sourcePorts
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder sourcePorts(List<String> sourcePorts) Sets the value ofCfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.getSourcePorts()- Parameters:
sourcePorts- The source ports.- Returns:
this
-
sourcePrefixLists
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.Builder sourcePrefixLists(List<String> sourcePrefixLists) Sets the value ofCfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty.getSourcePrefixLists()- Parameters:
sourcePrefixLists- The source prefix lists.- Returns:
this
-
build
@Stability(Stable) public CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty>- Returns:
- a new instance of
CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-