Interface SegmentGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SegmentGroup.Builder,
,SegmentGroup> SdkBuilder<SegmentGroup.Builder,
,SegmentGroup> SdkPojo
- Enclosing class:
SegmentGroup
@Mutable
@NotThreadSafe
public static interface SegmentGroup.Builder
extends SdkPojo, CopyableBuilder<SegmentGroup.Builder,SegmentGroup>
-
Method Summary
Modifier and TypeMethodDescriptiongroups
(Collection<Group> groups) Holds the list of groups within the segment definition.groups
(Consumer<Group.Builder>... groups) Holds the list of groups within the segment definition.Holds the list of groups within the segment definition.Defines whether to include or exclude the profiles that fit the segment criteria.include
(IncludeOptions include) Defines whether to include or exclude the profiles that fit the segment criteria.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
-
groups
Holds the list of groups within the segment definition.
- Parameters:
groups
- Holds the list of groups within the segment definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Holds the list of groups within the segment definition.
- Parameters:
groups
- Holds the list of groups within the segment definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Holds the list of groups within the segment definition.
This is a convenience method that creates an instance of theGroup.Builder
avoiding the need to create one manually viaGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<Group>)
.- Parameters:
groups
- a consumer that will call methods onGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
include
Defines whether to include or exclude the profiles that fit the segment criteria.
- Parameters:
include
- Defines whether to include or exclude the profiles that fit the segment criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
include
Defines whether to include or exclude the profiles that fit the segment criteria.
- Parameters:
include
- Defines whether to include or exclude the profiles that fit the segment criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-