public static interface GetCurrentUserResponse.Builder extends WorkDocsResponse.Builder, CopyableBuilder<GetCurrentUserResponse.Builder,GetCurrentUserResponse>
Modifier and Type | Method and Description |
---|---|
default GetCurrentUserResponse.Builder |
user(Consumer<User.Builder> user)
Metadata of the user.
|
GetCurrentUserResponse.Builder |
user(User user)
Metadata of the user.
|
build
copy
apply, build
GetCurrentUserResponse.Builder user(User user)
Metadata of the user.
user
- Metadata of the user.default GetCurrentUserResponse.Builder user(Consumer<User.Builder> user)
Metadata of the user.
This is a convenience that creates an instance of theUser.Builder
avoiding the need to create one
manually via User.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to user(User)
.user
- a consumer that will call methods on User.Builder
user(User)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.