Class ByProjectKeyZonesPost

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<ByProjectKeyZonesPost,Zone,ZoneDraft>
com.commercetools.api.client.ByProjectKeyZonesPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyZonesPost>, ErrorableTrait<ByProjectKeyZonesPost>, ExpandableTrait<ByProjectKeyZonesPost>, io.vrap.rmf.base.client.ClientRequestCommand<Zone>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Zone>, io.vrap.rmf.base.client.RequestCommand<Zone>

public class ByProjectKeyZonesPost extends io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyZonesPost,Zone,ZoneDraft> implements ExpandableTrait<ByProjectKeyZonesPost>, Deprecatable201Trait<ByProjectKeyZonesPost>, ErrorableTrait<ByProjectKeyZonesPost>


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

    • ByProjectKeyZonesPost

      public ByProjectKeyZonesPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, ZoneDraft zoneDraft)
    • ByProjectKeyZonesPost

      public ByProjectKeyZonesPost(ByProjectKeyZonesPost t)
  • Method Details

    • resultType

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

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

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

      public String getProjectKey()
    • getExpand

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

      public void setProjectKey(String projectKey)
    • withExpand

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

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

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

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

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

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

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

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

      public ZoneDraft getBody()
      Overrides:
      getBody in class io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyZonesPost,Zone,ZoneDraft>
    • withBody

      public ByProjectKeyZonesPost withBody(ZoneDraft zoneDraft)
      Overrides:
      withBody in class io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyZonesPost,Zone,ZoneDraft>
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()