Interface DeviceDefinitionVersion.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DeviceDefinitionVersion.Builder,,DeviceDefinitionVersion> SdkBuilder<DeviceDefinitionVersion.Builder,,DeviceDefinitionVersion> SdkPojo
- Enclosing class:
DeviceDefinitionVersion
@Mutable
@NotThreadSafe
public static interface DeviceDefinitionVersion.Builder
extends SdkPojo, CopyableBuilder<DeviceDefinitionVersion.Builder,DeviceDefinitionVersion>
-
Method Summary
Modifier and TypeMethodDescriptiondevices(Collection<Device> devices) A list of devices in the definition version.devices(Consumer<Device.Builder>... devices) A list of devices in the definition version.A list of devices in the definition version.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
-
devices
A list of devices in the definition version.- Parameters:
devices- A list of devices in the definition version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
devices
A list of devices in the definition version.- Parameters:
devices- A list of devices in the definition version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
devices
A list of devices in the definition version. This is a convenience method that creates an instance of theDevice.Builderavoiding the need to create one manually viaDevice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todevices(List<Device>).- Parameters:
devices- a consumer that will call methods onDevice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-