Class ByProjectKeyProductTypesByIDHead

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

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

Checks if a Product Type with given id exists. Responds with a 200 OK status if the Product Type exists or 404 Not Found otherwise.



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

    • ByProjectKeyProductTypesByIDHead

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

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

      public String getProjectKey()
    • getID

      public String getID()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • setID

      public void setID(String ID)
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()