code: public Observable<ServiceResponse<UUID>> createCustomPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreateCustomPrebuiltEntityRoleOptionalParameter createCustomPrebuiltEntityRoleOptionalParameter) {
          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.");
          }
          final String name = createCustomPrebuiltEntityRoleOptionalParameter != null ? createCustomPrebuiltEntityRoleOptionalParameter.name() : null;
  
          return createCustomPrebuiltEntityRoleWithServiceResponseAsync(appId, versionId, entityId, name);
      }
docs: Create an entity role for an entity in the application.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param entityId The entity model ID.
  @param createCustomPrebuiltEntityRoleOptionalParameter 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 UUID object