Class ByProjectKeyQuotesHead

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyQuotesHead,JsonNode>
com.commercetools.api.client.ByProjectKeyQuotesHead
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyQuotesHead>, ErrorableTrait<ByProjectKeyQuotesHead>, 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 ByProjectKeyQuotesHead extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyQuotesHead,JsonNode> implements ErrorableTrait<ByProjectKeyQuotesHead>, Deprecatable200Trait<ByProjectKeyQuotesHead>

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



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

    • ByProjectKeyQuotesHead

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

      public ByProjectKeyQuotesHead(ByProjectKeyQuotesHead 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<ByProjectKeyQuotesHead,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<ByProjectKeyQuotesHead,JsonNode>
    • getProjectKey

      public String getProjectKey()
    • getWhere

      public List<String> getWhere()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • withWhere

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

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

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

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

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

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

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

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

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()