Class SpeedyCreateRequestBuilder<T>

java.lang.Object
com.github.silent.samurai.speedy.api.client.builder.SpeedyCreateRequestBuilder<T>

public class SpeedyCreateRequestBuilder<T> extends Object
  • Constructor Details

    • SpeedyCreateRequestBuilder

      public SpeedyCreateRequestBuilder(String entityName, SpeedyApi<T> speedyApi)
  • Method Details

    • addField

      public <R> SpeedyCreateRequestBuilder<T> addField(String field, R value)
      Add a field with its value to the entity. Supports nested field paths using dot notation (e.g., "profile.name").
      Parameters:
      field - the field name or path
      value - the field value
      Returns:
      this builder instance
    • execute

      public T execute() throws Exception
      Build and execute the creation request using the configured SpeedyApi.
      Returns:
      the response from the API
      Throws:
      Exception