code: public Observable<ServiceResponse<GetPersonalPreferencesResponseInner>> getPersonalPreferencesWithServiceResponseAsync(String userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload) {
          if (userName == null) {
              throw new IllegalArgumentException("Parameter userName is required and cannot be null.");
          }
          if (personalPreferencesOperationsPayload == null) {
              throw new IllegalArgumentException("Parameter personalPreferencesOperationsPayload 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(personalPreferencesOperationsPayload);
          return service.getPersonalPreferences(userName, personalPreferencesOperationsPayload, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<GetPersonalPreferencesResponseInner>>>() {
                  @Override
                  public Observable<ServiceResponse<GetPersonalPreferencesResponseInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<GetPersonalPreferencesResponseInner> clientResponse = getPersonalPreferencesDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Get personal preferences for a user.
  
  @param userName The name of the user.
  @param personalPreferencesOperationsPayload Represents payload for any Environment operations like get, start, stop, connect
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the GetPersonalPreferencesResponseInner object