Interface DivergentItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DivergentItem.Builder,,DivergentItem> SdkBuilder<DivergentItem.Builder,,DivergentItem> SdkPojo
- Enclosing class:
DivergentItem
@Mutable
@NotThreadSafe
public static interface DivergentItem.Builder
extends SdkPojo, CopyableBuilder<DivergentItem.Builder,DivergentItem>
-
Method Summary
Modifier and TypeMethodDescriptionfields(Collection<DivergentField> fields) The fields of the item that differ.fields(Consumer<DivergentField.Builder>... fields) The fields of the item that differ.fields(DivergentField... fields) The fields of the item that differ.The name of the item.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
-
name
The name of the item.
- Parameters:
name- The name of the item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The fields of the item that differ.
- Parameters:
fields- The fields of the item that differ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The fields of the item that differ.
- Parameters:
fields- The fields of the item that differ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The fields of the item that differ.
This is a convenience method that creates an instance of theDivergentField.Builderavoiding the need to create one manually viaDivergentField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofields(List<DivergentField>).- Parameters:
fields- a consumer that will call methods onDivergentField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-