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 ByProjectKeyTypesByIDRequestBuilder {
011
012    private final ApiHttpClient apiHttpClient;
013    private final String projectKey;
014    private final String ID;
015
016    public ByProjectKeyTypesByIDRequestBuilder(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 ByProjectKeyTypesByIDGet get() {
024        return new ByProjectKeyTypesByIDGet(apiHttpClient, projectKey, ID);
025    }
026
027    public ByProjectKeyTypesByIDPost post(com.commercetools.api.models.type.TypeUpdate typeUpdate) {
028        return new ByProjectKeyTypesByIDPost(apiHttpClient, projectKey, ID, typeUpdate);
029    }
030
031    public ByProjectKeyTypesByIDPostString post(final String typeUpdate) {
032        return new ByProjectKeyTypesByIDPostString(apiHttpClient, projectKey, ID, typeUpdate);
033    }
034
035    public ByProjectKeyTypesByIDPost post(UnaryOperator<com.commercetools.api.models.type.TypeUpdateBuilder> op) {
036        return post(op.apply(com.commercetools.api.models.type.TypeUpdateBuilder.of()).build());
037    }
038
039    public ByProjectKeyTypesByIDDelete delete() {
040        return new ByProjectKeyTypesByIDDelete(apiHttpClient, projectKey, ID);
041    }
042
043    public <TValue> ByProjectKeyTypesByIDDelete delete(TValue version) {
044        return delete().withVersion(version);
045    }
046
047}