Interface WorkerSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WorkerSetting.Builder,
,WorkerSetting> SdkBuilder<WorkerSetting.Builder,
,WorkerSetting> SdkPojo
- Enclosing class:
WorkerSetting
@Mutable
@NotThreadSafe
public static interface WorkerSetting.Builder
extends SdkPojo, CopyableBuilder<WorkerSetting.Builder,WorkerSetting>
-
Method Summary
Modifier and TypeMethodDescriptiondefault WorkerSetting.Builder
capacity
(Consumer<CapacityDescription.Builder> capacity) Sets the value of the Capacity property for this object.capacity
(CapacityDescription capacity) Sets the value of the Capacity property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
capacity
Sets the value of the Capacity property for this object.- Parameters:
capacity
- The new value for the Capacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacity
Sets the value of the Capacity property for this object. This is a convenience method that creates an instance of theCapacityDescription.Builder
avoiding the need to create one manually viaCapacityDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacity(CapacityDescription)
.- Parameters:
capacity
- a consumer that will call methods onCapacityDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-