code: public Observable<ServiceResponse<OperationStatus>> updateEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateEntityRoleOptionalParameter updateEntityRoleOptionalParameter) {
          if (this.client.endpoint() == null) {
              throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
          }
          if (appId == null) {
              throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
          }
          if (versionId == null) {
              throw new IllegalArgumentException("Parameter versionId is required and cannot be null.");
          }
          if (entityId == null) {
              throw new IllegalArgumentException("Parameter entityId is required and cannot be null.");
          }
          if (roleId == null) {
              throw new IllegalArgumentException("Parameter roleId is required and cannot be null.");
          }
          final String name = updateEntityRoleOptionalParameter != null ? updateEntityRoleOptionalParameter.name() : null;
  
          return updateEntityRoleWithServiceResponseAsync(appId, versionId, entityId, roleId, name);
      }
docs: Update an entity role for a given entity.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param entityId The entity ID.
  @param roleId The entity role ID.
  @param updateEntityRoleOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the OperationStatus object