16
16
17
17
import com .aliyuncs .RpcAcsRequest ;
18
18
import java .util .List ;
19
+ import com .google .gson .Gson ;
20
+ import com .google .gson .annotations .SerializedName ;
19
21
import com .aliyuncs .http .MethodType ;
20
22
import com .aliyuncs .ess .Endpoint ;
21
23
@@ -32,6 +34,9 @@ public class RemoveInstancesRequest extends RpcAcsRequest<RemoveInstancesRespons
32
34
33
35
private String scalingGroupId ;
34
36
37
+ @ SerializedName ("lifecycleHookContext" )
38
+ private LifecycleHookContext lifecycleHookContext ;
39
+
35
40
private Boolean decreaseDesiredCapacity ;
36
41
37
42
private Boolean ignoreInvalidInstance ;
@@ -89,6 +94,17 @@ public void setScalingGroupId(String scalingGroupId) {
89
94
}
90
95
}
91
96
97
+ public LifecycleHookContext getLifecycleHookContext () {
98
+ return this .lifecycleHookContext ;
99
+ }
100
+
101
+ public void setLifecycleHookContext (LifecycleHookContext lifecycleHookContext ) {
102
+ this .lifecycleHookContext = lifecycleHookContext ;
103
+ if (lifecycleHookContext != null ) {
104
+ putQueryParameter ("LifecycleHookContext" , new Gson ().toJson (lifecycleHookContext ));
105
+ }
106
+ }
107
+
92
108
public Boolean getDecreaseDesiredCapacity () {
93
109
return this .decreaseDesiredCapacity ;
94
110
}
@@ -177,6 +193,31 @@ public void setInstanceIds(List<String> instanceIds) {
177
193
putQueryParameter ("InstanceId." + (i + 1 ) , instanceIds .get (i ));
178
194
}
179
195
}
196
+ }
197
+
198
+ public static class LifecycleHookContext {
199
+
200
+ @ SerializedName ("DisableLifecycleHook" )
201
+ private Boolean disableLifecycleHook ;
202
+
203
+ @ SerializedName ("IgnoredLifecycleHookIds" )
204
+ private List <String > ignoredLifecycleHookIds ;
205
+
206
+ public Boolean getDisableLifecycleHook () {
207
+ return this .disableLifecycleHook ;
208
+ }
209
+
210
+ public void setDisableLifecycleHook (Boolean disableLifecycleHook ) {
211
+ this .disableLifecycleHook = disableLifecycleHook ;
212
+ }
213
+
214
+ public List <String > getIgnoredLifecycleHookIds () {
215
+ return this .ignoredLifecycleHookIds ;
216
+ }
217
+
218
+ public void setIgnoredLifecycleHookIds (List <String > ignoredLifecycleHookIds ) {
219
+ this .ignoredLifecycleHookIds = ignoredLifecycleHookIds ;
220
+ }
180
221
}
181
222
182
223
@ Override
0 commit comments