Interface LayoutSections.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LayoutSections.Builder,
,LayoutSections> SdkBuilder<LayoutSections.Builder,
,LayoutSections> SdkPojo
- Enclosing class:
LayoutSections
@Mutable
@NotThreadSafe
public static interface LayoutSections.Builder
extends SdkPojo, CopyableBuilder<LayoutSections.Builder,LayoutSections>
-
Method Summary
Modifier and TypeMethodDescriptionsections
(Collection<Section> sections) Sets the value of the Sections property for this object.sections
(Consumer<Section.Builder>... sections) Sets the value of the Sections property for this object.Sets the value of the Sections 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
-
sections
Sets the value of the Sections property for this object.- Parameters:
sections
- The new value for the Sections property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sections
Sets the value of the Sections property for this object.- Parameters:
sections
- The new value for the Sections property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sections
Sets the value of the Sections property for this object. This is a convenience method that creates an instance of theSection.Builder
avoiding the need to create one manually viaSection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosections(List<Section>)
.- Parameters:
sections
- a consumer that will call methods onSection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-