@@ -46,6 +46,24 @@ public final class LifecycleConfig extends com.google.api.client.json.GenericJso
4646 @ com .google .api .client .util .Key
4747 private String autoDeleteTtl ;
4848
49+ /**
50+ * Optional. The time when cluster will be auto-stopped (see JSON representation of Timestamp
51+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
52+ * The value may be {@code null}.
53+ */
54+ @ com .google .api .client .util .Key
55+ private String autoStopTime ;
56+
57+ /**
58+ * Optional. The lifetime duration of the cluster. The cluster will be auto-stopped at the end of
59+ * this period, calculated from the time of submission of the create or update cluster request.
60+ * Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration
61+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
62+ * The value may be {@code null}.
63+ */
64+ @ com .google .api .client .util .Key
65+ private String autoStopTtl ;
66+
4967 /**
5068 * Optional. The duration to keep the cluster alive while idling (when no jobs are running).
5169 * Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes;
@@ -65,6 +83,16 @@ public final class LifecycleConfig extends com.google.api.client.json.GenericJso
6583 @ com .google .api .client .util .Key
6684 private String idleStartTime ;
6785
86+ /**
87+ * Optional. The duration to keep the cluster started while idling (when no jobs are running).
88+ * Passing this threshold will cause the cluster to be stopped. Minimum value is 5 minutes;
89+ * maximum value is 14 days (see JSON representation of Duration
90+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
91+ * The value may be {@code null}.
92+ */
93+ @ com .google .api .client .util .Key
94+ private String idleStopTtl ;
95+
6896 /**
6997 * Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp
7098 * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
@@ -105,6 +133,48 @@ public LifecycleConfig setAutoDeleteTtl(String autoDeleteTtl) {
105133 return this ;
106134 }
107135
136+ /**
137+ * Optional. The time when cluster will be auto-stopped (see JSON representation of Timestamp
138+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
139+ * @return value or {@code null} for none
140+ */
141+ public String getAutoStopTime () {
142+ return autoStopTime ;
143+ }
144+
145+ /**
146+ * Optional. The time when cluster will be auto-stopped (see JSON representation of Timestamp
147+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
148+ * @param autoStopTime autoStopTime or {@code null} for none
149+ */
150+ public LifecycleConfig setAutoStopTime (String autoStopTime ) {
151+ this .autoStopTime = autoStopTime ;
152+ return this ;
153+ }
154+
155+ /**
156+ * Optional. The lifetime duration of the cluster. The cluster will be auto-stopped at the end of
157+ * this period, calculated from the time of submission of the create or update cluster request.
158+ * Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration
159+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
160+ * @return value or {@code null} for none
161+ */
162+ public String getAutoStopTtl () {
163+ return autoStopTtl ;
164+ }
165+
166+ /**
167+ * Optional. The lifetime duration of the cluster. The cluster will be auto-stopped at the end of
168+ * this period, calculated from the time of submission of the create or update cluster request.
169+ * Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration
170+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
171+ * @param autoStopTtl autoStopTtl or {@code null} for none
172+ */
173+ public LifecycleConfig setAutoStopTtl (String autoStopTtl ) {
174+ this .autoStopTtl = autoStopTtl ;
175+ return this ;
176+ }
177+
108178 /**
109179 * Optional. The duration to keep the cluster alive while idling (when no jobs are running).
110180 * Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes;
@@ -149,6 +219,29 @@ public LifecycleConfig setIdleStartTime(String idleStartTime) {
149219 return this ;
150220 }
151221
222+ /**
223+ * Optional. The duration to keep the cluster started while idling (when no jobs are running).
224+ * Passing this threshold will cause the cluster to be stopped. Minimum value is 5 minutes;
225+ * maximum value is 14 days (see JSON representation of Duration
226+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
227+ * @return value or {@code null} for none
228+ */
229+ public String getIdleStopTtl () {
230+ return idleStopTtl ;
231+ }
232+
233+ /**
234+ * Optional. The duration to keep the cluster started while idling (when no jobs are running).
235+ * Passing this threshold will cause the cluster to be stopped. Minimum value is 5 minutes;
236+ * maximum value is 14 days (see JSON representation of Duration
237+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
238+ * @param idleStopTtl idleStopTtl or {@code null} for none
239+ */
240+ public LifecycleConfig setIdleStopTtl (String idleStopTtl ) {
241+ this .idleStopTtl = idleStopTtl ;
242+ return this ;
243+ }
244+
152245 @ Override
153246 public LifecycleConfig set (String fieldName , Object value ) {
154247 return (LifecycleConfig ) super .set (fieldName , value );
0 commit comments