Interface Memory.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Memory.Builder,
,Memory> SdkBuilder<Memory.Builder,
,Memory> SdkPojo
- Enclosing class:
Memory
@Mutable
@NotThreadSafe
public static interface Memory.Builder
extends SdkPojo, CopyableBuilder<Memory.Builder,Memory>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Memory.Builder
sessionSummary
(Consumer<MemorySessionSummary.Builder> sessionSummary) Contains summary of a session.sessionSummary
(MemorySessionSummary sessionSummary) Contains summary of a session.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
-
sessionSummary
Contains summary of a session.
- Parameters:
sessionSummary
- Contains summary of a session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummary
Contains summary of a session.
This is a convenience method that creates an instance of theMemorySessionSummary.Builder
avoiding the need to create one manually viaMemorySessionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionSummary(MemorySessionSummary)
.- Parameters:
sessionSummary
- a consumer that will call methods onMemorySessionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-