Class ByProjectKeyProductsKeyByKeyHead

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

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

Check if a Product exists with a specified key. Responds with a 200 OK status if the Product exists or 404 Not Found otherwise.



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

    • ByProjectKeyProductsKeyByKeyHead

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

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

      public String getProjectKey()
    • getKey

      public String getKey()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • setKey

      public void setKey(String key)
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()