Class ByProjectKeyProductTypesHead

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

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

Check if Product Types exist. Responds with a 200 OK status if any Product Types match the Query Predicate, or 404 Not Found otherwise.



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

    • ByProjectKeyProductTypesHead

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

      public ByProjectKeyProductTypesHead(ByProjectKeyProductTypesHead t)
  • Method Details

    • 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<ByProjectKeyProductTypesHead,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<ByProjectKeyProductTypesHead,JsonNode>
    • getProjectKey

      public String getProjectKey()
    • getWhere

      public List<String> getWhere()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • withWhere

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

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

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

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

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

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

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

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

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()