Class ByProjectKeyTypesPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyTypesPost,Type,TypeDraft>
com.commercetools.api.client.ByProjectKeyTypesPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyTypesPost>, ErrorableTrait<ByProjectKeyTypesPost>, ExpandableTrait<ByProjectKeyTypesPost>, io.vrap.rmf.base.client.ClientRequestCommand<Type>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<Type>

public class ByProjectKeyTypesPost extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyTypesPost,Type,TypeDraft> implements ExpandableTrait<ByProjectKeyTypesPost>, Deprecatable201Trait<ByProjectKeyTypesPost>, ErrorableTrait<ByProjectKeyTypesPost>


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

    • ByProjectKeyTypesPost

      public ByProjectKeyTypesPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, TypeDraft typeDraft)
    • ByProjectKeyTypesPost

      public ByProjectKeyTypesPost(ByProjectKeyTypesPost t)
  • Method Details

    • executeBlocking

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

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

      public String getProjectKey()
    • getExpand

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

      public void setProjectKey(String projectKey)
    • withExpand

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

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

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

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

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

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

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

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

      public TypeDraft getBody()
      Overrides:
      getBody in class io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyTypesPost,Type,TypeDraft>
    • withBody

      public ByProjectKeyTypesPost withBody(TypeDraft typeDraft)
      Overrides:
      withBody in class io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyTypesPost,Type,TypeDraft>
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()