13
13
import io .vrap .rmf .base .client .utils .Generated ;
14
14
15
15
/**
16
- * <p>Get CustomObject by container</p>
16
+ * <p>Get CustomObjectPagedQueryResponse by container</p>
17
17
*/
18
18
@ Generated (value = "io.vrap.rmf.codegen.rendring.CoreCodeGenerator" , comments = "https://github.com/vrapio/rmf-codegen" )
19
19
public class ByProjectKeyCustomObjectsByContainerGet extends
20
- ApiMethod <ByProjectKeyCustomObjectsByContainerGet , com .commercetools .api .models .custom_object .CustomObject >
21
- implements com .commercetools .api .client .ExpandableTrait <ByProjectKeyCustomObjectsByContainerGet >,
20
+ ApiMethod <ByProjectKeyCustomObjectsByContainerGet , com .commercetools .api .models .custom_object .CustomObjectPagedQueryResponse >
21
+ implements com .commercetools .api .client .QueryTrait <ByProjectKeyCustomObjectsByContainerGet >,
22
+ com .commercetools .api .client .ExpandableTrait <ByProjectKeyCustomObjectsByContainerGet >,
22
23
com .commercetools .api .client .ErrorableTrait <ByProjectKeyCustomObjectsByContainerGet >,
23
24
com .commercetools .api .client .DeprecatableTrait <ByProjectKeyCustomObjectsByContainerGet > {
24
25
@@ -50,14 +51,15 @@ public ApiHttpRequest createHttpRequest() {
50
51
}
51
52
52
53
@ Override
53
- public ApiHttpResponse <com .commercetools .api .models .custom_object .CustomObject > executeBlocking (Duration timeout ) {
54
+ public ApiHttpResponse <com .commercetools .api .models .custom_object .CustomObjectPagedQueryResponse > executeBlocking (
55
+ Duration timeout ) {
54
56
return blockingWait (execute (), timeout );
55
57
}
56
58
57
59
@ Override
58
- public CompletableFuture <ApiHttpResponse <com .commercetools .api .models .custom_object .CustomObject >> execute () {
60
+ public CompletableFuture <ApiHttpResponse <com .commercetools .api .models .custom_object .CustomObjectPagedQueryResponse >> execute () {
59
61
return apiHttpClient ().execute (this .createHttpRequest (),
60
- com .commercetools .api .models .custom_object .CustomObject .class );
62
+ com .commercetools .api .models .custom_object .CustomObjectPagedQueryResponse .class );
61
63
}
62
64
63
65
public String getProjectKey () {
@@ -68,6 +70,10 @@ public String getContainer() {
68
70
return this .container ;
69
71
}
70
72
73
+ public List <String > getWhere () {
74
+ return this .getQueryParam ("where" );
75
+ }
76
+
71
77
public List <String > getExpand () {
72
78
return this .getQueryParam ("expand" );
73
79
}
@@ -80,6 +86,14 @@ public void setContainer(final String container) {
80
86
this .container = container ;
81
87
}
82
88
89
+ public ByProjectKeyCustomObjectsByContainerGet withWhere (final String where ) {
90
+ return copy ().withQueryParam ("where" , where );
91
+ }
92
+
93
+ public ByProjectKeyCustomObjectsByContainerGet addWhere (final String where ) {
94
+ return copy ().addQueryParam ("where" , where );
95
+ }
96
+
83
97
public ByProjectKeyCustomObjectsByContainerGet withExpand (final String expand ) {
84
98
return copy ().withQueryParam ("expand" , expand );
85
99
}
@@ -88,6 +102,14 @@ public ByProjectKeyCustomObjectsByContainerGet addExpand(final String expand) {
88
102
return copy ().addQueryParam ("expand" , expand );
89
103
}
90
104
105
+ public ByProjectKeyCustomObjectsByContainerGet withPredicateVar (final String varName , final String predicateVar ) {
106
+ return copy ().withQueryParam (String .format ("var.%s" , varName ), predicateVar );
107
+ }
108
+
109
+ public ByProjectKeyCustomObjectsByContainerGet addPredicateVar (final String varName , final String predicateVar ) {
110
+ return copy ().addQueryParam (String .format ("var.%s" , varName ), predicateVar );
111
+ }
112
+
91
113
@ Override
92
114
protected ByProjectKeyCustomObjectsByContainerGet copy () {
93
115
return new ByProjectKeyCustomObjectsByContainerGet (this );
0 commit comments