1212import com .fasterxml .jackson .annotation .Nulls ;
1313import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
1414import com .pipedream .api .core .ObjectMappers ;
15+ import com .pipedream .api .resources .actions .types .RunActionOptsStashId ;
1516import java .util .HashMap ;
1617import java .util .Map ;
1718import java .util .Objects ;
@@ -31,6 +32,8 @@ public final class RunActionOpts {
3132
3233 private final Optional <String > dynamicPropsId ;
3334
35+ private final Optional <RunActionOptsStashId > stashId ;
36+
3437 private final Map <String , Object > additionalProperties ;
3538
3639 private RunActionOpts (
@@ -39,12 +42,14 @@ private RunActionOpts(
3942 String externalUserId ,
4043 Optional <Map <String , Object >> configuredProps ,
4144 Optional <String > dynamicPropsId ,
45+ Optional <RunActionOptsStashId > stashId ,
4246 Map <String , Object > additionalProperties ) {
4347 this .asyncHandle = asyncHandle ;
4448 this .id = id ;
4549 this .externalUserId = externalUserId ;
4650 this .configuredProps = configuredProps ;
4751 this .dynamicPropsId = dynamicPropsId ;
52+ this .stashId = stashId ;
4853 this .additionalProperties = additionalProperties ;
4954 }
5055
@@ -85,6 +90,14 @@ public Optional<String> getDynamicPropsId() {
8590 return dynamicPropsId ;
8691 }
8792
93+ /**
94+ * @return The ID of the File Stash to use for syncing the action's /tmp directory
95+ */
96+ @ JsonProperty ("stash_id" )
97+ public Optional <RunActionOptsStashId > getStashId () {
98+ return stashId ;
99+ }
100+
88101 @ java .lang .Override
89102 public boolean equals (Object other ) {
90103 if (this == other ) return true ;
@@ -101,12 +114,19 @@ private boolean equalTo(RunActionOpts other) {
101114 && id .equals (other .id )
102115 && externalUserId .equals (other .externalUserId )
103116 && configuredProps .equals (other .configuredProps )
104- && dynamicPropsId .equals (other .dynamicPropsId );
117+ && dynamicPropsId .equals (other .dynamicPropsId )
118+ && stashId .equals (other .stashId );
105119 }
106120
107121 @ java .lang .Override
108122 public int hashCode () {
109- return Objects .hash (this .asyncHandle , this .id , this .externalUserId , this .configuredProps , this .dynamicPropsId );
123+ return Objects .hash (
124+ this .asyncHandle ,
125+ this .id ,
126+ this .externalUserId ,
127+ this .configuredProps ,
128+ this .dynamicPropsId ,
129+ this .stashId );
110130 }
111131
112132 @ java .lang .Override
@@ -154,6 +174,13 @@ public interface _FinalStage {
154174 _FinalStage dynamicPropsId (Optional <String > dynamicPropsId );
155175
156176 _FinalStage dynamicPropsId (String dynamicPropsId );
177+
178+ /**
179+ * <p>The ID of the File Stash to use for syncing the action's /tmp directory</p>
180+ */
181+ _FinalStage stashId (Optional <RunActionOptsStashId > stashId );
182+
183+ _FinalStage stashId (RunActionOptsStashId stashId );
157184 }
158185
159186 @ JsonIgnoreProperties (ignoreUnknown = true )
@@ -162,6 +189,8 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina
162189
163190 private String externalUserId ;
164191
192+ private Optional <RunActionOptsStashId > stashId = Optional .empty ();
193+
165194 private Optional <String > dynamicPropsId = Optional .empty ();
166195
167196 private Optional <Map <String , Object >> configuredProps = Optional .empty ();
@@ -180,6 +209,7 @@ public Builder from(RunActionOpts other) {
180209 externalUserId (other .getExternalUserId ());
181210 configuredProps (other .getConfiguredProps ());
182211 dynamicPropsId (other .getDynamicPropsId ());
212+ stashId (other .getStashId ());
183213 return this ;
184214 }
185215
@@ -207,6 +237,26 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
207237 return this ;
208238 }
209239
240+ /**
241+ * <p>The ID of the File Stash to use for syncing the action's /tmp directory</p>
242+ * @return Reference to {@code this} so that method calls can be chained together.
243+ */
244+ @ java .lang .Override
245+ public _FinalStage stashId (RunActionOptsStashId stashId ) {
246+ this .stashId = Optional .ofNullable (stashId );
247+ return this ;
248+ }
249+
250+ /**
251+ * <p>The ID of the File Stash to use for syncing the action's /tmp directory</p>
252+ */
253+ @ java .lang .Override
254+ @ JsonSetter (value = "stash_id" , nulls = Nulls .SKIP )
255+ public _FinalStage stashId (Optional <RunActionOptsStashId > stashId ) {
256+ this .stashId = stashId ;
257+ return this ;
258+ }
259+
210260 /**
211261 * <p>The ID for dynamic props</p>
212262 * @return Reference to {@code this} so that method calls can be chained together.
@@ -263,7 +313,7 @@ public _FinalStage asyncHandle(Optional<String> asyncHandle) {
263313 @ java .lang .Override
264314 public RunActionOpts build () {
265315 return new RunActionOpts (
266- asyncHandle , id , externalUserId , configuredProps , dynamicPropsId , additionalProperties );
316+ asyncHandle , id , externalUserId , configuredProps , dynamicPropsId , stashId , additionalProperties );
267317 }
268318 }
269319}
0 commit comments