Class ByProjectKeyMeCartsByIDGet

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

public class ByProjectKeyMeCartsByIDGet extends io.vrap.rmf.base.client.ApiMethod<ByProjectKeyMeCartsByIDGet,Cart> implements ExpandableTrait<ByProjectKeyMeCartsByIDGet>, ErrorableTrait<ByProjectKeyMeCartsByIDGet>, Deprecatable200Trait<ByProjectKeyMeCartsByIDGet>


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart.Cart>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .carts()
            .withId("{ID}")
            .get()
            .execute()
 
  • Constructor Details

    • ByProjectKeyMeCartsByIDGet

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

      public ByProjectKeyMeCartsByIDGet(ByProjectKeyMeCartsByIDGet t)
  • Method Details

    • executeBlocking

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

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

      public String getProjectKey()
    • getID

      public String getID()
    • getExpand

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

      public void setProjectKey(String projectKey)
    • setID

      public void setID(String ID)
    • withExpand

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

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

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

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

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

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

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

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

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()