2020import com .google .gson .stream .JsonReader ;
2121import com .google .gson .stream .JsonWriter ;
2222import com .volcengine .graph .model .IOQosOptionsForAlterTableInput ;
23+ import com .volcengine .graph .model .IdcReplicaNumForAlterTableInput ;
24+ import com .volcengine .graph .model .IdcRoNumForAlterTableInput ;
2325import io .swagger .v3 .oas .annotations .media .Schema ;
2426import java .io .IOException ;
27+ import java .util .ArrayList ;
28+ import java .util .List ;
2529import javax .validation .constraints .*;
2630import javax .validation .Valid ;
2731/**
@@ -34,17 +38,29 @@ public class AlterTableRequest {
3438 @ SerializedName ("EnableRead" )
3539 private Boolean enableRead = null ;
3640
41+ @ SerializedName ("EnableRwSeperateSchedule" )
42+ private Boolean enableRwSeperateSchedule = null ;
43+
3744 @ SerializedName ("EnableWrite" )
3845 private Boolean enableWrite = null ;
3946
4047 @ SerializedName ("IOQosOptions" )
4148 private IOQosOptionsForAlterTableInput ioQosOptions = null ;
4249
50+ @ SerializedName ("IdcReplicaNums" )
51+ private List <IdcReplicaNumForAlterTableInput > idcReplicaNums = null ;
52+
53+ @ SerializedName ("IdcRoNums" )
54+ private List <IdcRoNumForAlterTableInput > idcRoNums = null ;
55+
4356 @ SerializedName ("InstanceId" )
4457 private String instanceId = null ;
4558
59+ @ SerializedName ("RwSchedulableIdcs" )
60+ private List <String > rwSchedulableIdcs = null ;
61+
4662 @ SerializedName ("State" )
47- private Integer state = null ;
63+ private String state = null ;
4864
4965 @ SerializedName ("TableName" )
5066 private String tableName = null ;
@@ -67,6 +83,24 @@ public void setEnableRead(Boolean enableRead) {
6783 this .enableRead = enableRead ;
6884 }
6985
86+ public AlterTableRequest enableRwSeperateSchedule (Boolean enableRwSeperateSchedule ) {
87+ this .enableRwSeperateSchedule = enableRwSeperateSchedule ;
88+ return this ;
89+ }
90+
91+ /**
92+ * Get enableRwSeperateSchedule
93+ * @return enableRwSeperateSchedule
94+ **/
95+ @ Schema (description = "" )
96+ public Boolean isEnableRwSeperateSchedule () {
97+ return enableRwSeperateSchedule ;
98+ }
99+
100+ public void setEnableRwSeperateSchedule (Boolean enableRwSeperateSchedule ) {
101+ this .enableRwSeperateSchedule = enableRwSeperateSchedule ;
102+ }
103+
70104 public AlterTableRequest enableWrite (Boolean enableWrite ) {
71105 this .enableWrite = enableWrite ;
72106 return this ;
@@ -104,6 +138,60 @@ public void setIoQosOptions(IOQosOptionsForAlterTableInput ioQosOptions) {
104138 this .ioQosOptions = ioQosOptions ;
105139 }
106140
141+ public AlterTableRequest idcReplicaNums (List <IdcReplicaNumForAlterTableInput > idcReplicaNums ) {
142+ this .idcReplicaNums = idcReplicaNums ;
143+ return this ;
144+ }
145+
146+ public AlterTableRequest addIdcReplicaNumsItem (IdcReplicaNumForAlterTableInput idcReplicaNumsItem ) {
147+ if (this .idcReplicaNums == null ) {
148+ this .idcReplicaNums = new ArrayList <IdcReplicaNumForAlterTableInput >();
149+ }
150+ this .idcReplicaNums .add (idcReplicaNumsItem );
151+ return this ;
152+ }
153+
154+ /**
155+ * Get idcReplicaNums
156+ * @return idcReplicaNums
157+ **/
158+ @ Valid
159+ @ Schema (description = "" )
160+ public List <IdcReplicaNumForAlterTableInput > getIdcReplicaNums () {
161+ return idcReplicaNums ;
162+ }
163+
164+ public void setIdcReplicaNums (List <IdcReplicaNumForAlterTableInput > idcReplicaNums ) {
165+ this .idcReplicaNums = idcReplicaNums ;
166+ }
167+
168+ public AlterTableRequest idcRoNums (List <IdcRoNumForAlterTableInput > idcRoNums ) {
169+ this .idcRoNums = idcRoNums ;
170+ return this ;
171+ }
172+
173+ public AlterTableRequest addIdcRoNumsItem (IdcRoNumForAlterTableInput idcRoNumsItem ) {
174+ if (this .idcRoNums == null ) {
175+ this .idcRoNums = new ArrayList <IdcRoNumForAlterTableInput >();
176+ }
177+ this .idcRoNums .add (idcRoNumsItem );
178+ return this ;
179+ }
180+
181+ /**
182+ * Get idcRoNums
183+ * @return idcRoNums
184+ **/
185+ @ Valid
186+ @ Schema (description = "" )
187+ public List <IdcRoNumForAlterTableInput > getIdcRoNums () {
188+ return idcRoNums ;
189+ }
190+
191+ public void setIdcRoNums (List <IdcRoNumForAlterTableInput > idcRoNums ) {
192+ this .idcRoNums = idcRoNums ;
193+ }
194+
107195 public AlterTableRequest instanceId (String instanceId ) {
108196 this .instanceId = instanceId ;
109197 return this ;
@@ -123,7 +211,33 @@ public void setInstanceId(String instanceId) {
123211 this .instanceId = instanceId ;
124212 }
125213
126- public AlterTableRequest state (Integer state ) {
214+ public AlterTableRequest rwSchedulableIdcs (List <String > rwSchedulableIdcs ) {
215+ this .rwSchedulableIdcs = rwSchedulableIdcs ;
216+ return this ;
217+ }
218+
219+ public AlterTableRequest addRwSchedulableIdcsItem (String rwSchedulableIdcsItem ) {
220+ if (this .rwSchedulableIdcs == null ) {
221+ this .rwSchedulableIdcs = new ArrayList <String >();
222+ }
223+ this .rwSchedulableIdcs .add (rwSchedulableIdcsItem );
224+ return this ;
225+ }
226+
227+ /**
228+ * Get rwSchedulableIdcs
229+ * @return rwSchedulableIdcs
230+ **/
231+ @ Schema (description = "" )
232+ public List <String > getRwSchedulableIdcs () {
233+ return rwSchedulableIdcs ;
234+ }
235+
236+ public void setRwSchedulableIdcs (List <String > rwSchedulableIdcs ) {
237+ this .rwSchedulableIdcs = rwSchedulableIdcs ;
238+ }
239+
240+ public AlterTableRequest state (String state ) {
127241 this .state = state ;
128242 return this ;
129243 }
@@ -133,11 +247,11 @@ public AlterTableRequest state(Integer state) {
133247 * @return state
134248 **/
135249 @ Schema (description = "" )
136- public Integer getState () {
250+ public String getState () {
137251 return state ;
138252 }
139253
140- public void setState (Integer state ) {
254+ public void setState (String state ) {
141255 this .state = state ;
142256 }
143257
@@ -171,16 +285,20 @@ public boolean equals(java.lang.Object o) {
171285 }
172286 AlterTableRequest alterTableRequest = (AlterTableRequest ) o ;
173287 return Objects .equals (this .enableRead , alterTableRequest .enableRead ) &&
288+ Objects .equals (this .enableRwSeperateSchedule , alterTableRequest .enableRwSeperateSchedule ) &&
174289 Objects .equals (this .enableWrite , alterTableRequest .enableWrite ) &&
175290 Objects .equals (this .ioQosOptions , alterTableRequest .ioQosOptions ) &&
291+ Objects .equals (this .idcReplicaNums , alterTableRequest .idcReplicaNums ) &&
292+ Objects .equals (this .idcRoNums , alterTableRequest .idcRoNums ) &&
176293 Objects .equals (this .instanceId , alterTableRequest .instanceId ) &&
294+ Objects .equals (this .rwSchedulableIdcs , alterTableRequest .rwSchedulableIdcs ) &&
177295 Objects .equals (this .state , alterTableRequest .state ) &&
178296 Objects .equals (this .tableName , alterTableRequest .tableName );
179297 }
180298
181299 @ Override
182300 public int hashCode () {
183- return Objects .hash (enableRead , enableWrite , ioQosOptions , instanceId , state , tableName );
301+ return Objects .hash (enableRead , enableRwSeperateSchedule , enableWrite , ioQosOptions , idcReplicaNums , idcRoNums , instanceId , rwSchedulableIdcs , state , tableName );
184302 }
185303
186304
@@ -190,9 +308,13 @@ public String toString() {
190308 sb .append ("class AlterTableRequest {\n " );
191309
192310 sb .append (" enableRead: " ).append (toIndentedString (enableRead )).append ("\n " );
311+ sb .append (" enableRwSeperateSchedule: " ).append (toIndentedString (enableRwSeperateSchedule )).append ("\n " );
193312 sb .append (" enableWrite: " ).append (toIndentedString (enableWrite )).append ("\n " );
194313 sb .append (" ioQosOptions: " ).append (toIndentedString (ioQosOptions )).append ("\n " );
314+ sb .append (" idcReplicaNums: " ).append (toIndentedString (idcReplicaNums )).append ("\n " );
315+ sb .append (" idcRoNums: " ).append (toIndentedString (idcRoNums )).append ("\n " );
195316 sb .append (" instanceId: " ).append (toIndentedString (instanceId )).append ("\n " );
317+ sb .append (" rwSchedulableIdcs: " ).append (toIndentedString (rwSchedulableIdcs )).append ("\n " );
196318 sb .append (" state: " ).append (toIndentedString (state )).append ("\n " );
197319 sb .append (" tableName: " ).append (toIndentedString (tableName )).append ("\n " );
198320 sb .append ("}" );
0 commit comments