Class ByProjectKeyAttributeGroupsHead

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

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



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

    • ByProjectKeyAttributeGroupsHead

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

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

      public String getProjectKey()
    • getWhere

      public List<String> getWhere()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • withWhere

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

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

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

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

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

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

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

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

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()