Interface DiversityConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DiversityConfig.Builder,,DiversityConfig> SdkBuilder<DiversityConfig.Builder,,DiversityConfig> SdkPojo
- Enclosing class:
DiversityConfig
@Mutable
@NotThreadSafe
public static interface DiversityConfig.Builder
extends SdkPojo, CopyableBuilder<DiversityConfig.Builder,DiversityConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondiversityColumns(Collection<DiversityColumn> diversityColumns) A list of up to two diversity columns.diversityColumns(Consumer<DiversityColumn.Builder>... diversityColumns) A list of up to two diversity columns.diversityColumns(DiversityColumn... diversityColumns) A list of up to two diversity columns.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
-
diversityColumns
A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.
- Parameters:
diversityColumns- A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diversityColumns
A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.
- Parameters:
diversityColumns- A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diversityColumns
A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.
This is a convenience method that creates an instance of theDiversityColumn.Builderavoiding the need to create one manually viaDiversityColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiversityColumns(List<DiversityColumn>).- Parameters:
diversityColumns- a consumer that will call methods onDiversityColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-