code: public Observable<ServiceResponse<Void>> resetPasswordWithServiceResponseAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName, ResetPasswordPayload resetPasswordPayload) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (labAccountName == null) {
              throw new IllegalArgumentException("Parameter labAccountName is required and cannot be null.");
          }
          if (labName == null) {
              throw new IllegalArgumentException("Parameter labName is required and cannot be null.");
          }
          if (environmentSettingName == null) {
              throw new IllegalArgumentException("Parameter environmentSettingName is required and cannot be null.");
          }
          if (environmentName == null) {
              throw new IllegalArgumentException("Parameter environmentName is required and cannot be null.");
          }
          if (resetPasswordPayload == null) {
              throw new IllegalArgumentException("Parameter resetPasswordPayload is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(resetPasswordPayload);
          Observable<Response<ResponseBody>> observable = service.resetPassword(this.client.subscriptionId(), resourceGroupName, labAccountName, labName, environmentSettingName, environmentName, resetPasswordPayload, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType());
      }
docs: Resets the user password on an environment This operation can take a while to complete.
  
  @param resourceGroupName The name of the resource group.
  @param labAccountName The name of the lab Account.
  @param labName The name of the lab.
  @param environmentSettingName The name of the environment Setting.
  @param environmentName The name of the environment.
  @param resetPasswordPayload Represents the payload for resetting passwords.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request