Interface PortRangeConstraints.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PortRangeConstraints.Builder,,PortRangeConstraints> SdkBuilder<PortRangeConstraints.Builder,,PortRangeConstraints> SdkPojo
- Enclosing class:
PortRangeConstraints
@Mutable
@NotThreadSafe
public static interface PortRangeConstraints.Builder
extends SdkPojo, CopyableBuilder<PortRangeConstraints.Builder,PortRangeConstraints>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PortRangeConstraints.BuildermaxPort(Consumer<IntegerRangeConstraint.Builder> maxPort) The constraints for the maximum port value.maxPort(IntegerRangeConstraint maxPort) The constraints for the maximum port value.default PortRangeConstraints.BuilderminPort(Consumer<IntegerRangeConstraint.Builder> minPort) The constraints for the minimum port value.minPort(IntegerRangeConstraint minPort) The constraints for the minimum port value.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
-
minPort
The constraints for the minimum port value.
- Parameters:
minPort- The constraints for the minimum port value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minPort
The constraints for the minimum port value.
This is a convenience method that creates an instance of theIntegerRangeConstraint.Builderavoiding the need to create one manually viaIntegerRangeConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tominPort(IntegerRangeConstraint).- Parameters:
minPort- a consumer that will call methods onIntegerRangeConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxPort
The constraints for the maximum port value.
- Parameters:
maxPort- The constraints for the maximum port value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPort
The constraints for the maximum port value.
This is a convenience method that creates an instance of theIntegerRangeConstraint.Builderavoiding the need to create one manually viaIntegerRangeConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomaxPort(IntegerRangeConstraint).- Parameters:
maxPort- a consumer that will call methods onIntegerRangeConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-