Interface SegmentOperation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SegmentOperation.Builder,,SegmentOperation> SdkBuilder<SegmentOperation.Builder,,SegmentOperation> SdkPojo
- Enclosing class:
SegmentOperation
@Mutable
@NotThreadSafe
public static interface SegmentOperation.Builder
extends SdkPojo, CopyableBuilder<SegmentOperation.Builder,SegmentOperation>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SegmentOperation.Buildercreate(Consumer<SegmentCreateOperation.Builder> create) A create operation to add a new segment.create(SegmentCreateOperation create) A create operation to add a new segment.default SegmentOperation.Builderdelete(Consumer<SegmentDeleteOperation.Builder> delete) A delete operation to remove a segment from the mapping.delete(SegmentDeleteOperation delete) A delete operation to remove a segment from the mapping.default SegmentOperation.Builderupdate(Consumer<SegmentUpdateOperation.Builder> update) An update operation to modify segment properties.update(SegmentUpdateOperation update) An update operation to modify segment properties.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
-
create
A create operation to add a new segment.
- Parameters:
create- A create operation to add a new segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
create
A create operation to add a new segment.
This is a convenience method that creates an instance of theSegmentCreateOperation.Builderavoiding the need to create one manually viaSegmentCreateOperation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreate(SegmentCreateOperation).- Parameters:
create- a consumer that will call methods onSegmentCreateOperation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
update
An update operation to modify segment properties.
- Parameters:
update- An update operation to modify segment properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
update
An update operation to modify segment properties.
This is a convenience method that creates an instance of theSegmentUpdateOperation.Builderavoiding the need to create one manually viaSegmentUpdateOperation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toupdate(SegmentUpdateOperation).- Parameters:
update- a consumer that will call methods onSegmentUpdateOperation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
delete
A delete operation to remove a segment from the mapping.
- Parameters:
delete- A delete operation to remove a segment from the mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
delete
A delete operation to remove a segment from the mapping.
This is a convenience method that creates an instance of theSegmentDeleteOperation.Builderavoiding the need to create one manually viaSegmentDeleteOperation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todelete(SegmentDeleteOperation).- Parameters:
delete- a consumer that will call methods onSegmentDeleteOperation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-