001 002package com.commercetools.api.client; 003 004import java.util.function.UnaryOperator; 005 006import io.vrap.rmf.base.client.ApiHttpClient; 007import io.vrap.rmf.base.client.utils.Generated; 008 009@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") 010public class ByProjectKeyStoresByIDRequestBuilder { 011 012 private final ApiHttpClient apiHttpClient; 013 private final String projectKey; 014 private final String ID; 015 016 public ByProjectKeyStoresByIDRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, 017 final String ID) { 018 this.apiHttpClient = apiHttpClient; 019 this.projectKey = projectKey; 020 this.ID = ID; 021 } 022 023 public ByProjectKeyStoresByIDGet get() { 024 return new ByProjectKeyStoresByIDGet(apiHttpClient, projectKey, ID); 025 } 026 027 public ByProjectKeyStoresByIDPost post(com.commercetools.api.models.store.StoreUpdate storeUpdate) { 028 return new ByProjectKeyStoresByIDPost(apiHttpClient, projectKey, ID, storeUpdate); 029 } 030 031 public ByProjectKeyStoresByIDPostString post(final String storeUpdate) { 032 return new ByProjectKeyStoresByIDPostString(apiHttpClient, projectKey, ID, storeUpdate); 033 } 034 035 public ByProjectKeyStoresByIDPost post(UnaryOperator<com.commercetools.api.models.store.StoreUpdateBuilder> op) { 036 return post(op.apply(com.commercetools.api.models.store.StoreUpdateBuilder.of()).build()); 037 } 038 039 public ByProjectKeyStoresByIDDelete delete() { 040 return new ByProjectKeyStoresByIDDelete(apiHttpClient, projectKey, ID); 041 } 042 043 public <TValue> ByProjectKeyStoresByIDDelete delete(TValue version) { 044 return delete().withVersion(version); 045 } 046 047}