Interface PublicRouterNetworkInterfaceConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PublicRouterNetworkInterfaceConfiguration.Builder,,PublicRouterNetworkInterfaceConfiguration> SdkBuilder<PublicRouterNetworkInterfaceConfiguration.Builder,,PublicRouterNetworkInterfaceConfiguration> SdkPojo
- Enclosing class:
PublicRouterNetworkInterfaceConfiguration
@Mutable
@NotThreadSafe
public static interface PublicRouterNetworkInterfaceConfiguration.Builder
extends SdkPojo, CopyableBuilder<PublicRouterNetworkInterfaceConfiguration.Builder,PublicRouterNetworkInterfaceConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionallowRules(Collection<PublicRouterNetworkInterfaceRule> allowRules) The list of allowed CIDR blocks for the public router network interface.allowRules(Consumer<PublicRouterNetworkInterfaceRule.Builder>... allowRules) The list of allowed CIDR blocks for the public router network interface.allowRules(PublicRouterNetworkInterfaceRule... allowRules) The list of allowed CIDR blocks for the public router network interface.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
allowRules
PublicRouterNetworkInterfaceConfiguration.Builder allowRules(Collection<PublicRouterNetworkInterfaceRule> allowRules) The list of allowed CIDR blocks for the public router network interface.
- Parameters:
allowRules- The list of allowed CIDR blocks for the public router network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowRules
PublicRouterNetworkInterfaceConfiguration.Builder allowRules(PublicRouterNetworkInterfaceRule... allowRules) The list of allowed CIDR blocks for the public router network interface.
- Parameters:
allowRules- The list of allowed CIDR blocks for the public router network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowRules
PublicRouterNetworkInterfaceConfiguration.Builder allowRules(Consumer<PublicRouterNetworkInterfaceRule.Builder>... allowRules) The list of allowed CIDR blocks for the public router network interface.
This is a convenience method that creates an instance of thePublicRouterNetworkInterfaceRule.Builderavoiding the need to create one manually viaPublicRouterNetworkInterfaceRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallowRules(List<PublicRouterNetworkInterfaceRule>).- Parameters:
allowRules- a consumer that will call methods onPublicRouterNetworkInterfaceRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-