Interface InstanceNetworking.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceNetworking.Builder,,InstanceNetworking> SdkBuilder<InstanceNetworking.Builder,,InstanceNetworking> SdkPojo
- Enclosing class:
InstanceNetworking
@Mutable
@NotThreadSafe
public static interface InstanceNetworking.Builder
extends SdkPojo, CopyableBuilder<InstanceNetworking.Builder,InstanceNetworking>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstanceNetworking.BuildermonthlyTransfer(Consumer<MonthlyTransfer.Builder> monthlyTransfer) The amount of data in GB allocated for monthly data transfers.monthlyTransfer(MonthlyTransfer monthlyTransfer) The amount of data in GB allocated for monthly data transfers.ports(Collection<InstancePortInfo> ports) An array of key-value pairs containing information about the ports on the instance.ports(Consumer<InstancePortInfo.Builder>... ports) An array of key-value pairs containing information about the ports on the instance.ports(InstancePortInfo... ports) An array of key-value pairs containing information about the ports on the instance.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
-
monthlyTransfer
The amount of data in GB allocated for monthly data transfers.
- Parameters:
monthlyTransfer- The amount of data in GB allocated for monthly data transfers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monthlyTransfer
default InstanceNetworking.Builder monthlyTransfer(Consumer<MonthlyTransfer.Builder> monthlyTransfer) The amount of data in GB allocated for monthly data transfers.
This is a convenience method that creates an instance of theMonthlyTransfer.Builderavoiding the need to create one manually viaMonthlyTransfer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomonthlyTransfer(MonthlyTransfer).- Parameters:
monthlyTransfer- a consumer that will call methods onMonthlyTransfer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ports
An array of key-value pairs containing information about the ports on the instance.
- Parameters:
ports- An array of key-value pairs containing information about the ports on the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ports
An array of key-value pairs containing information about the ports on the instance.
- Parameters:
ports- An array of key-value pairs containing information about the ports on the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ports
An array of key-value pairs containing information about the ports on the instance.
This is a convenience method that creates an instance of theInstancePortInfo.Builderavoiding the need to create one manually viaInstancePortInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toports(List<InstancePortInfo>).- Parameters:
ports- a consumer that will call methods onInstancePortInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-