Class ByProjectKeyStoresPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyStoresPost,Store,StoreDraft>
com.commercetools.api.client.ByProjectKeyStoresPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyStoresPost>, ErrorableTrait<ByProjectKeyStoresPost>, ExpandableTrait<ByProjectKeyStoresPost>, io.vrap.rmf.base.client.ClientRequestCommand<Store>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Store>, io.vrap.rmf.base.client.RequestCommand<Store>

public class ByProjectKeyStoresPost extends io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyStoresPost,Store,StoreDraft> implements ExpandableTrait<ByProjectKeyStoresPost>, Deprecatable201Trait<ByProjectKeyStoresPost>, ErrorableTrait<ByProjectKeyStoresPost>


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.store.Store>> result = apiRoot
            .withProjectKey("{projectKey}")
            .stores()
            .post(null)
            .execute()
 
  • Constructor Details

    • ByProjectKeyStoresPost

      public ByProjectKeyStoresPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, StoreDraft storeDraft)
    • ByProjectKeyStoresPost

      public ByProjectKeyStoresPost(ByProjectKeyStoresPost t)
  • Method Details

    • resultType

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

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

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

      public String getProjectKey()
    • getExpand

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

      public void setProjectKey(String projectKey)
    • withExpand

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

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

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

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

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

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

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

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

      public StoreDraft getBody()
      Overrides:
      getBody in class io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyStoresPost,Store,StoreDraft>
    • withBody

      public ByProjectKeyStoresPost withBody(StoreDraft storeDraft)
      Overrides:
      withBody in class io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyStoresPost,Store,StoreDraft>
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()