Interface AllowedPort.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AllowedPort.Builder,,AllowedPort> SdkBuilder<AllowedPort.Builder,,AllowedPort> SdkPojo
- Enclosing class:
AllowedPort
@Mutable
@NotThreadSafe
public static interface AllowedPort.Builder
extends SdkPojo, CopyableBuilder<AllowedPort.Builder,AllowedPort>
-
Method Summary
Modifier and TypeMethodDescriptionA single port that is reachable through the runtime's session URL.default AllowedPort.BuilderportRange(Consumer<PortRange.Builder> portRange) An inclusive range of ports that are reachable through the runtime's session URL.An inclusive range of ports that are reachable through the runtime's session URL.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
-
port
A single port that is reachable through the runtime's session URL.
- Parameters:
port- A single port that is reachable through the runtime's session URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
An inclusive range of ports that are reachable through the runtime's session URL.
- Parameters:
portRange- An inclusive range of ports that are reachable through the runtime's session URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
An inclusive range of ports that are reachable through the runtime's session URL.
This is a convenience method that creates an instance of thePortRange.Builderavoiding the need to create one manually viaPortRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportRange(PortRange).- Parameters:
portRange- a consumer that will call methods onPortRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-