public static interface CreateRoleResponse.Builder extends IamResponse.Builder, CopyableBuilder<CreateRoleResponse.Builder,CreateRoleResponse>
Modifier and Type | Method and Description |
---|---|
default CreateRoleResponse.Builder |
role(Consumer<Role.Builder> role)
A structure containing details about the new role.
|
CreateRoleResponse.Builder |
role(Role role)
A structure containing details about the new role.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CreateRoleResponse.Builder role(Role role)
A structure containing details about the new role.
role
- A structure containing details about the new role.default CreateRoleResponse.Builder role(Consumer<Role.Builder> role)
A structure containing details about the new role.
This is a convenience that creates an instance of theRole.Builder
avoiding the need to create one
manually via Role.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to role(Role)
.role
- a consumer that will call methods on Role.Builder
role(Role)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.