code: @Override
      public RebuildWorkspacesResult rebuildWorkspaces(RebuildWorkspacesRequest request) {
          request = beforeClientExecution(request);
          return executeRebuildWorkspaces(request);
      }
docs: <p>
  Rebuilds the specified WorkSpace.
  </p>
  <p>
  You cannot rebuild a WorkSpace unless its state is <code>AVAILABLE</code>, <code>ERROR</code>, or
  <code>UNHEALTHY</code>.
  </p>
  <p>
  Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more
  information, see <a href="https://docs.aws.amazon.com/workspaces/latest/adminguide/reset-workspace.html">Rebuild
  a WorkSpace</a>.
  </p>
  <p>
  This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.
  </p>
  
  @param rebuildWorkspacesRequest
  @return Result of the RebuildWorkspaces operation returned by the service.
  @sample AmazonWorkspaces.RebuildWorkspaces
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildWorkspaces" target="_top">AWS
  API Documentation</a>