Interface CreateWorkspacesResponse.Builder

    • Method Detail

      • failedRequests

        CreateWorkspacesResponse.Builder failedRequests​(Collection<FailedCreateWorkspaceRequest> failedRequests)

        Information about the WorkSpaces that could not be created.

        Parameters:
        failedRequests - Information about the WorkSpaces that could not be created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedRequests

        CreateWorkspacesResponse.Builder failedRequests​(FailedCreateWorkspaceRequest... failedRequests)

        Information about the WorkSpaces that could not be created.

        Parameters:
        failedRequests - Information about the WorkSpaces that could not be created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pendingRequests

        CreateWorkspacesResponse.Builder pendingRequests​(Collection<Workspace> pendingRequests)

        Information about the WorkSpaces that were created.

        Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

        Parameters:
        pendingRequests - Information about the WorkSpaces that were created.

        Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pendingRequests

        CreateWorkspacesResponse.Builder pendingRequests​(Workspace... pendingRequests)

        Information about the WorkSpaces that were created.

        Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

        Parameters:
        pendingRequests - Information about the WorkSpaces that were created.

        Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pendingRequests

        CreateWorkspacesResponse.Builder pendingRequests​(Consumer<Workspace.Builder>... pendingRequests)

        Information about the WorkSpaces that were created.

        Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

        This is a convenience method that creates an instance of the Workspace.Builder avoiding the need to create one manually via Workspace.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #pendingRequests(List).

        Parameters:
        pendingRequests - a consumer that will call methods on Workspace.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #pendingRequests(java.util.Collection)