Class ByProjectKeyReviewsByIDGet

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyReviewsByIDGet,Review>
com.commercetools.api.client.ByProjectKeyReviewsByIDGet
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyReviewsByIDGet>, ErrorableTrait<ByProjectKeyReviewsByIDGet>, ExpandableTrait<ByProjectKeyReviewsByIDGet>, io.vrap.rmf.base.client.ClientRequestCommand<Review>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Review>, io.vrap.rmf.base.client.RequestCommand<Review>

public class ByProjectKeyReviewsByIDGet extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyReviewsByIDGet,Review> implements ExpandableTrait<ByProjectKeyReviewsByIDGet>, ErrorableTrait<ByProjectKeyReviewsByIDGet>, Deprecatable200Trait<ByProjectKeyReviewsByIDGet>


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.review.Review>> result = apiRoot
            .withProjectKey("{projectKey}")
            .reviews()
            .withId("{ID}")
            .get()
            .execute()
 
  • Constructor Details

    • ByProjectKeyReviewsByIDGet

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

      public ByProjectKeyReviewsByIDGet(ByProjectKeyReviewsByIDGet t)
  • Method Details

    • resultType

      public com.fasterxml.jackson.core.type.TypeReference<Review> resultType()
      Specified by:
      resultType in interface io.vrap.rmf.base.client.HttpRequestCommand<Review>
    • executeBlocking

      public io.vrap.rmf.base.client.ApiHttpResponse<Review> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout)
      Specified by:
      executeBlocking in interface io.vrap.rmf.base.client.ClientRequestCommand<Review>
      Specified by:
      executeBlocking in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyReviewsByIDGet,Review>
    • execute

      public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Review>> execute(io.vrap.rmf.base.client.ApiHttpClient client)
      Specified by:
      execute in interface io.vrap.rmf.base.client.ClientRequestCommand<Review>
      Specified by:
      execute in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyReviewsByIDGet,Review>
    • getProjectKey

      public String getProjectKey()
    • getID

      public String getID()
    • getExpand

      public List<String> getExpand()
      Specified by:
      getExpand in interface ExpandableTrait<ByProjectKeyReviewsByIDGet>
    • setProjectKey

      public void setProjectKey(String projectKey)
    • setID

      public void setID(String ID)
    • withExpand

      public <TValue> ByProjectKeyReviewsByIDGet withExpand(TValue expand)
      set expand with the specified value
      Specified by:
      withExpand in interface ExpandableTrait<ByProjectKeyReviewsByIDGet>
      Type Parameters:
      TValue - value type
      Parameters:
      expand - value to be set
      Returns:
      ByProjectKeyReviewsByIDGet
    • addExpand

      public <TValue> ByProjectKeyReviewsByIDGet addExpand(TValue expand)
      add additional expand query parameter
      Specified by:
      addExpand in interface ExpandableTrait<ByProjectKeyReviewsByIDGet>
      Type Parameters:
      TValue - value type
      Parameters:
      expand - value to be added
      Returns:
      ByProjectKeyReviewsByIDGet
    • withExpand

      public ByProjectKeyReviewsByIDGet withExpand(Supplier<String> supplier)
      set expand with the specified value
      Parameters:
      supplier - supplier for the value to be set
      Returns:
      ByProjectKeyReviewsByIDGet
    • addExpand

      public ByProjectKeyReviewsByIDGet addExpand(Supplier<String> supplier)
      add additional expand query parameter
      Parameters:
      supplier - supplier for the value to be added
      Returns:
      ByProjectKeyReviewsByIDGet
    • withExpand

      set expand with the specified value
      Parameters:
      op - builder for the value to be set
      Returns:
      ByProjectKeyReviewsByIDGet
    • addExpand

      add additional expand query parameter
      Parameters:
      op - builder for the value to be added
      Returns:
      ByProjectKeyReviewsByIDGet
    • withExpand

      public <TValue> ByProjectKeyReviewsByIDGet withExpand(Collection<TValue> expand)
      set expand with the specified values
      Type Parameters:
      TValue - value type
      Parameters:
      expand - values to be set
      Returns:
      ByProjectKeyReviewsByIDGet
    • addExpand

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

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()