Interface AddKeys.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AddKeys.Builder,
,AddKeys> SdkBuilder<AddKeys.Builder,
,AddKeys> SdkPojo
- Enclosing class:
AddKeys
@Mutable
@NotThreadSafe
public static interface AddKeys.Builder
extends SdkPojo, CopyableBuilder<AddKeys.Builder,AddKeys>
-
Method Summary
Modifier and TypeMethodDescriptionentries
(Collection<AddKeyEntry> entries) An array of objects, where each object contains the information about one key to add to the log event.entries
(Consumer<AddKeyEntry.Builder>... entries) An array of objects, where each object contains the information about one key to add to the log event.entries
(AddKeyEntry... entries) An array of objects, where each object contains the information about one key to add to the log event.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
-
entries
An array of objects, where each object contains the information about one key to add to the log event.
- Parameters:
entries
- An array of objects, where each object contains the information about one key to add to the log event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
An array of objects, where each object contains the information about one key to add to the log event.
- Parameters:
entries
- An array of objects, where each object contains the information about one key to add to the log event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
An array of objects, where each object contains the information about one key to add to the log event.
This is a convenience method that creates an instance of theAddKeyEntry.Builder
avoiding the need to create one manually viaAddKeyEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentries(List<AddKeyEntry>)
.- Parameters:
entries
- a consumer that will call methods onAddKeyEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-