11/*
2- * (C) Copyright IBM Corp. 2018, 2020 .
2+ * (C) Copyright IBM Corp. 2018, 2022 .
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55 * the License. You may obtain a copy of the License at
@@ -23,20 +23,26 @@ public class CreateModelOptions extends GenericModel {
2323
2424 protected String baseModelId ;
2525 protected InputStream forcedGlossary ;
26+ protected String forcedGlossaryContentType ;
2627 protected InputStream parallelCorpus ;
28+ protected String parallelCorpusContentType ;
2729 protected String name ;
2830
2931 /** Builder. */
3032 public static class Builder {
3133 private String baseModelId ;
3234 private InputStream forcedGlossary ;
35+ private String forcedGlossaryContentType ;
3336 private InputStream parallelCorpus ;
37+ private String parallelCorpusContentType ;
3438 private String name ;
3539
3640 private Builder (CreateModelOptions createModelOptions ) {
3741 this .baseModelId = createModelOptions .baseModelId ;
3842 this .forcedGlossary = createModelOptions .forcedGlossary ;
43+ this .forcedGlossaryContentType = createModelOptions .forcedGlossaryContentType ;
3944 this .parallelCorpus = createModelOptions .parallelCorpus ;
45+ this .parallelCorpusContentType = createModelOptions .parallelCorpusContentType ;
4046 this .name = createModelOptions .name ;
4147 }
4248
@@ -83,6 +89,17 @@ public Builder forcedGlossary(InputStream forcedGlossary) {
8389 return this ;
8490 }
8591
92+ /**
93+ * Set the forcedGlossaryContentType.
94+ *
95+ * @param forcedGlossaryContentType the forcedGlossaryContentType
96+ * @return the CreateModelOptions builder
97+ */
98+ public Builder forcedGlossaryContentType (String forcedGlossaryContentType ) {
99+ this .forcedGlossaryContentType = forcedGlossaryContentType ;
100+ return this ;
101+ }
102+
86103 /**
87104 * Set the parallelCorpus.
88105 *
@@ -94,6 +111,17 @@ public Builder parallelCorpus(InputStream parallelCorpus) {
94111 return this ;
95112 }
96113
114+ /**
115+ * Set the parallelCorpusContentType.
116+ *
117+ * @param parallelCorpusContentType the parallelCorpusContentType
118+ * @return the CreateModelOptions builder
119+ */
120+ public Builder parallelCorpusContentType (String parallelCorpusContentType ) {
121+ this .parallelCorpusContentType = parallelCorpusContentType ;
122+ return this ;
123+ }
124+
97125 /**
98126 * Set the name.
99127 *
@@ -135,7 +163,9 @@ protected CreateModelOptions(Builder builder) {
135163 builder .baseModelId , "baseModelId cannot be null" );
136164 baseModelId = builder .baseModelId ;
137165 forcedGlossary = builder .forcedGlossary ;
166+ forcedGlossaryContentType = builder .forcedGlossaryContentType ;
138167 parallelCorpus = builder .parallelCorpus ;
168+ parallelCorpusContentType = builder .parallelCorpusContentType ;
139169 name = builder .name ;
140170 }
141171
@@ -181,6 +211,18 @@ public InputStream forcedGlossary() {
181211 return forcedGlossary ;
182212 }
183213
214+ /**
215+ * Gets the forcedGlossaryContentType.
216+ *
217+ * <p>The content type of forcedGlossary. Values for this parameter can be obtained from the
218+ * HttpMediaType class.
219+ *
220+ * @return the forcedGlossaryContentType
221+ */
222+ public String forcedGlossaryContentType () {
223+ return forcedGlossaryContentType ;
224+ }
225+
184226 /**
185227 * Gets the parallelCorpus.
186228 *
@@ -201,6 +243,18 @@ public InputStream parallelCorpus() {
201243 return parallelCorpus ;
202244 }
203245
246+ /**
247+ * Gets the parallelCorpusContentType.
248+ *
249+ * <p>The content type of parallelCorpus. Values for this parameter can be obtained from the
250+ * HttpMediaType class.
251+ *
252+ * @return the parallelCorpusContentType
253+ */
254+ public String parallelCorpusContentType () {
255+ return parallelCorpusContentType ;
256+ }
257+
204258 /**
205259 * Gets the name.
206260 *
0 commit comments