Class ByProjectKeyShoppingListsHead

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShoppingListsHead,JsonNode>
com.commercetools.api.client.ByProjectKeyShoppingListsHead
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyShoppingListsHead>, ErrorableTrait<ByProjectKeyShoppingListsHead>, io.vrap.rmf.base.client.ClientRequestCommand<JsonNode>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<JsonNode>, io.vrap.rmf.base.client.RequestCommand<JsonNode>

public class ByProjectKeyShoppingListsHead extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShoppingListsHead,JsonNode> implements ErrorableTrait<ByProjectKeyShoppingListsHead>, Deprecatable200Trait<ByProjectKeyShoppingListsHead>

Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.



   CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .shoppingLists()
            .head()
            .execute()
 
  • Constructor Details

    • ByProjectKeyShoppingListsHead

      public ByProjectKeyShoppingListsHead(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey)
    • ByProjectKeyShoppingListsHead

      public ByProjectKeyShoppingListsHead(ByProjectKeyShoppingListsHead t)
  • Method Details

    • resultType

      public com.fasterxml.jackson.core.type.TypeReference<JsonNode> resultType()
      Specified by:
      resultType in interface io.vrap.rmf.base.client.HttpRequestCommand<JsonNode>
    • executeBlocking

      public io.vrap.rmf.base.client.ApiHttpResponse<JsonNode> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout)
      Specified by:
      executeBlocking in interface io.vrap.rmf.base.client.ClientRequestCommand<JsonNode>
      Specified by:
      executeBlocking in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyShoppingListsHead,JsonNode>
    • execute

      public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<JsonNode>> execute(io.vrap.rmf.base.client.ApiHttpClient client)
      Specified by:
      execute in interface io.vrap.rmf.base.client.ClientRequestCommand<JsonNode>
      Specified by:
      execute in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyShoppingListsHead,JsonNode>
    • getProjectKey

      public String getProjectKey()
    • getWhere

      public List<String> getWhere()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • withWhere

      public <TValue> ByProjectKeyShoppingListsHead withWhere(TValue where)
      set where with the specified value
      Type Parameters:
      TValue - value type
      Parameters:
      where - value to be set
      Returns:
      ByProjectKeyShoppingListsHead
    • addWhere

      public <TValue> ByProjectKeyShoppingListsHead addWhere(TValue where)
      add additional where query parameter
      Type Parameters:
      TValue - value type
      Parameters:
      where - value to be added
      Returns:
      ByProjectKeyShoppingListsHead
    • withWhere

      public ByProjectKeyShoppingListsHead withWhere(Supplier<String> supplier)
      set where with the specified value
      Parameters:
      supplier - supplier for the value to be set
      Returns:
      ByProjectKeyShoppingListsHead
    • addWhere

      public ByProjectKeyShoppingListsHead addWhere(Supplier<String> supplier)
      add additional where query parameter
      Parameters:
      supplier - supplier for the value to be added
      Returns:
      ByProjectKeyShoppingListsHead
    • withWhere

      set where with the specified value
      Parameters:
      op - builder for the value to be set
      Returns:
      ByProjectKeyShoppingListsHead
    • addWhere

      add additional where query parameter
      Parameters:
      op - builder for the value to be added
      Returns:
      ByProjectKeyShoppingListsHead
    • withWhere

      public <TValue> ByProjectKeyShoppingListsHead withWhere(Collection<TValue> where)
      set where with the specified values
      Type Parameters:
      TValue - value type
      Parameters:
      where - values to be set
      Returns:
      ByProjectKeyShoppingListsHead
    • addWhere

      public <TValue> ByProjectKeyShoppingListsHead addWhere(Collection<TValue> where)
      add additional where query parameters
      Type Parameters:
      TValue - value type
      Parameters:
      where - values to be added
      Returns:
      ByProjectKeyShoppingListsHead
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • reflectionHashCode

      public int reflectionHashCode()