Interface GetSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSessionResponse.Builder,
,GetSessionResponse> SdkBuilder<GetSessionResponse.Builder,
,GetSessionResponse> SdkPojo
,SdkResponse.Builder
,WorkSpacesWebResponse.Builder
- Enclosing class:
GetSessionResponse
@Mutable
@NotThreadSafe
public static interface GetSessionResponse.Builder
extends WorkSpacesWebResponse.Builder, SdkPojo, CopyableBuilder<GetSessionResponse.Builder,GetSessionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetSessionResponse.Builder
session
(Consumer<Session.Builder> session) The sessions in a list.The sessions in a list.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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.workspacesweb.model.WorkSpacesWebResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
session
The sessions in a list.
- Parameters:
session
- The sessions in a list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
session
The sessions in a list.
This is a convenience method that creates an instance of theSession.Builder
avoiding the need to create one manually viaSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosession(Session)
.- Parameters:
session
- a consumer that will call methods onSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-