@@ -20,6 +20,38 @@ public class ImportDocumentsParameters {
2020
2121 @ Schema (description = "" )
2222 private Integer batchSize = null ;
23+ public enum DirtyValuesEnum {
24+ COERCE_OR_REJECT ("coerce_or_reject" ),
25+ COERCE_OR_DROP ("coerce_or_drop" ),
26+ DROP ("drop" ),
27+ REJECT ("reject" );
28+
29+ private String value ;
30+
31+ DirtyValuesEnum (String value ) {
32+ this .value = value ;
33+ }
34+ @ JsonValue
35+ public String getValue () {
36+ return value ;
37+ }
38+
39+ @ Override
40+ public String toString () {
41+ return String .valueOf (value );
42+ }
43+ @ JsonCreator
44+ public static DirtyValuesEnum fromValue (String text ) {
45+ for (DirtyValuesEnum b : DirtyValuesEnum .values ()) {
46+ if (String .valueOf (b .value ).equals (text )) {
47+ return b ;
48+ }
49+ }
50+ return null ;
51+ }
52+ }
53+ @ Schema (description = "" )
54+ private DirtyValuesEnum dirtyValues = null ;
2355 /**
2456 * Get action
2557 * @return action
@@ -56,6 +88,27 @@ public ImportDocumentsParameters batchSize(Integer batchSize) {
5688 return this ;
5789 }
5890
91+ /**
92+ * Get dirtyValues
93+ * @return dirtyValues
94+ **/
95+ @ JsonProperty ("dirty_values" )
96+ public String getDirtyValues () {
97+ if (dirtyValues == null ) {
98+ return null ;
99+ }
100+ return dirtyValues .getValue ();
101+ }
102+
103+ public void setDirtyValues (DirtyValuesEnum dirtyValues ) {
104+ this .dirtyValues = dirtyValues ;
105+ }
106+
107+ public ImportDocumentsParameters dirtyValues (DirtyValuesEnum dirtyValues ) {
108+ this .dirtyValues = dirtyValues ;
109+ return this ;
110+ }
111+
59112
60113 @ Override
61114 public String toString () {
@@ -64,6 +117,7 @@ public String toString() {
64117
65118 sb .append (" action: " ).append (toIndentedString (action )).append ("\n " );
66119 sb .append (" batchSize: " ).append (toIndentedString (batchSize )).append ("\n " );
120+ sb .append (" dirtyValues: " ).append (toIndentedString (dirtyValues )).append ("\n " );
67121 sb .append ("}" );
68122 return sb .toString ();
69123 }
0 commit comments