-
Notifications
You must be signed in to change notification settings - Fork 15
/
ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder.java
45 lines (33 loc) · 1.71 KB
/
ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.commercetools.api.client;
import java.util.function.UnaryOperator;
import io.vrap.rmf.base.client.ApiHttpClient;
import io.vrap.rmf.base.client.utils.Generated;
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder {
private final ApiHttpClient apiHttpClient;
private final String projectKey;
private final String key;
public ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey,
final String key) {
this.apiHttpClient = apiHttpClient;
this.projectKey = projectKey;
this.key = key;
}
public ByProjectKeyBusinessUnitsKeyByKeyGet get() {
return new ByProjectKeyBusinessUnitsKeyByKeyGet(apiHttpClient, projectKey, key);
}
public ByProjectKeyBusinessUnitsKeyByKeyPost post(
com.commercetools.api.models.business_unit.BusinessUnitUpdate businessUnitUpdate) {
return new ByProjectKeyBusinessUnitsKeyByKeyPost(apiHttpClient, projectKey, key, businessUnitUpdate);
}
public ByProjectKeyBusinessUnitsKeyByKeyPost post(
UnaryOperator<com.commercetools.api.models.business_unit.BusinessUnitUpdateBuilder> op) {
return post(op.apply(com.commercetools.api.models.business_unit.BusinessUnitUpdateBuilder.of()).build());
}
public ByProjectKeyBusinessUnitsKeyByKeyDelete delete() {
return new ByProjectKeyBusinessUnitsKeyByKeyDelete(apiHttpClient, projectKey, key);
}
public <TValue> ByProjectKeyBusinessUnitsKeyByKeyDelete delete(TValue version) {
return delete().withVersion(version);
}
}