Class SpeedyGetRequestBuilder<T>

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

public class SpeedyGetRequestBuilder<T> extends Object
  • Constructor Details

    • SpeedyGetRequestBuilder

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

    • key

      public SpeedyGetRequestBuilder<T> key(String field, Object value)
      Parameters:
      field - the field name
      value - the field value
      Returns:
      this builder instance
    • execute

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