@@ -50,6 +50,8 @@ public static final class Builder {
50
50
51
51
private RetryParameters retryParameters ;
52
52
53
+ private String cronSchedule ;
54
+
53
55
public Builder setDomain (String domain ) {
54
56
this .domain = domain ;
55
57
return this ;
@@ -106,6 +108,11 @@ public Builder setRetryParameters(RetryParameters retryParameters) {
106
108
return this ;
107
109
}
108
110
111
+ public Builder setCronSchedule (String cronSchedule ) {
112
+ this .cronSchedule = cronSchedule ;
113
+ return this ;
114
+ }
115
+
109
116
public StartChildWorkflowExecutionParameters build () {
110
117
return new StartChildWorkflowExecutionParameters (
111
118
domain ,
@@ -118,7 +125,8 @@ public StartChildWorkflowExecutionParameters build() {
118
125
workflowType ,
119
126
childPolicy ,
120
127
workflowIdReusePolicy ,
121
- retryParameters );
128
+ retryParameters ,
129
+ cronSchedule );
122
130
}
123
131
}
124
132
@@ -144,6 +152,8 @@ public StartChildWorkflowExecutionParameters build() {
144
152
145
153
private final RetryParameters retryParameters ;
146
154
155
+ private final String cronSchedule ;
156
+
147
157
private StartChildWorkflowExecutionParameters (
148
158
String domain ,
149
159
byte [] input ,
@@ -155,7 +165,8 @@ private StartChildWorkflowExecutionParameters(
155
165
WorkflowType workflowType ,
156
166
ChildPolicy childPolicy ,
157
167
WorkflowIdReusePolicy workflowIdReusePolicy ,
158
- RetryParameters retryParameters ) {
168
+ RetryParameters retryParameters ,
169
+ String cronSchedule ) {
159
170
this .domain = domain ;
160
171
this .input = input ;
161
172
this .control = control ;
@@ -167,6 +178,7 @@ private StartChildWorkflowExecutionParameters(
167
178
this .childPolicy = childPolicy ;
168
179
this .workflowIdReusePolicy = workflowIdReusePolicy ;
169
180
this .retryParameters = retryParameters ;
181
+ this .cronSchedule = cronSchedule ;
170
182
}
171
183
172
184
public String getDomain () {
@@ -213,6 +225,10 @@ public RetryParameters getRetryParameters() {
213
225
return retryParameters ;
214
226
}
215
227
228
+ public String getCronSchedule () {
229
+ return cronSchedule ;
230
+ }
231
+
216
232
@ Override
217
233
public boolean equals (Object o ) {
218
234
if (this == o ) return true ;
@@ -228,7 +244,8 @@ public boolean equals(Object o) {
228
244
&& Objects .equals (workflowType , that .workflowType )
229
245
&& childPolicy == that .childPolicy
230
246
&& workflowIdReusePolicy == that .workflowIdReusePolicy
231
- && Objects .equals (retryParameters , that .retryParameters );
247
+ && Objects .equals (retryParameters , that .retryParameters )
248
+ && Objects .equals (cronSchedule , that .cronSchedule );
232
249
}
233
250
234
251
@ Override
@@ -244,7 +261,8 @@ public int hashCode() {
244
261
workflowType ,
245
262
childPolicy ,
246
263
workflowIdReusePolicy ,
247
- retryParameters );
264
+ retryParameters ,
265
+ cronSchedule );
248
266
result = 31 * result + Arrays .hashCode (input );
249
267
return result ;
250
268
}
@@ -278,6 +296,8 @@ public String toString() {
278
296
+ workflowIdReusePolicy
279
297
+ ", retryParameters="
280
298
+ retryParameters
299
+ + ", cronSchedule="
300
+ + cronSchedule
281
301
+ '}' ;
282
302
}
283
303
}
0 commit comments