Interface TerminateWorkspacesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<TerminateWorkspacesResponse.Builder,,TerminateWorkspacesResponse> SdkBuilder<TerminateWorkspacesResponse.Builder,,TerminateWorkspacesResponse> SdkPojo,SdkResponse.Builder,WorkSpacesResponse.Builder
- Enclosing class:
TerminateWorkspacesResponse
@Mutable
@NotThreadSafe
public static interface TerminateWorkspacesResponse.Builder
extends WorkSpacesResponse.Builder, SdkPojo, CopyableBuilder<TerminateWorkspacesResponse.Builder,TerminateWorkspacesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionfailedRequests(Collection<FailedWorkspaceChangeRequest> failedRequests) Information about the WorkSpaces that could not be terminated.failedRequests(Consumer<FailedWorkspaceChangeRequest.Builder>... failedRequests) Information about the WorkSpaces that could not be terminated.failedRequests(FailedWorkspaceChangeRequest... failedRequests) Information about the WorkSpaces that could not be terminated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.workspaces.model.WorkSpacesResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
failedRequests
TerminateWorkspacesResponse.Builder failedRequests(Collection<FailedWorkspaceChangeRequest> failedRequests) Information about the WorkSpaces that could not be terminated.
- Parameters:
failedRequests- Information about the WorkSpaces that could not be terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedRequests
Information about the WorkSpaces that could not be terminated.
- Parameters:
failedRequests- Information about the WorkSpaces that could not be terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedRequests
TerminateWorkspacesResponse.Builder failedRequests(Consumer<FailedWorkspaceChangeRequest.Builder>... failedRequests) Information about the WorkSpaces that could not be terminated.
This is a convenience method that creates an instance of theFailedWorkspaceChangeRequest.Builderavoiding the need to create one manually viaFailedWorkspaceChangeRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailedRequests(List<FailedWorkspaceChangeRequest>).- Parameters:
failedRequests- a consumer that will call methods onFailedWorkspaceChangeRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-