2323 */
2424public class AnalyzeOptions extends GenericModel {
2525
26- /**
27- * The features to analyze. Separate multiple values with commas.
28- */
2926 public interface Features {
3027 /** objects. */
3128 String OBJECTS = "objects" ;
@@ -82,34 +79,34 @@ public AnalyzeOptions build() {
8279 }
8380
8481 /**
85- * Adds a collectionId to collectionIds.
82+ * Adds an collectionIds to collectionIds.
8683 *
87- * @param collectionId the new collectionId
84+ * @param collectionIds the new collectionIds
8885 * @return the AnalyzeOptions builder
8986 */
90- public Builder addCollectionId (String collectionId ) {
91- com .ibm .cloud .sdk .core .util .Validator .notNull (collectionId ,
92- "collectionId cannot be null" );
87+ public Builder addCollectionIds (String collectionIds ) {
88+ com .ibm .cloud .sdk .core .util .Validator .notNull (collectionIds ,
89+ "collectionIds cannot be null" );
9390 if (this .collectionIds == null ) {
94- this .collectionIds = new ArrayList <>();
91+ this .collectionIds = new ArrayList <String >();
9592 }
96- this .collectionIds .add (collectionId );
93+ this .collectionIds .add (collectionIds );
9794 return this ;
9895 }
9996
10097 /**
101- * Adds a feature to features.
98+ * Adds an features to features.
10299 *
103- * @param feature the new feature
100+ * @param features the new features
104101 * @return the AnalyzeOptions builder
105102 */
106- public Builder addFeature (String feature ) {
107- com .ibm .cloud .sdk .core .util .Validator .notNull (feature ,
108- "feature cannot be null" );
103+ public Builder addFeatures (String features ) {
104+ com .ibm .cloud .sdk .core .util .Validator .notNull (features ,
105+ "features cannot be null" );
109106 if (this .features == null ) {
110- this .features = new ArrayList <>();
107+ this .features = new ArrayList <String >();
111108 }
112- this .features .add (feature );
109+ this .features .add (features );
113110 return this ;
114111 }
115112
@@ -147,6 +144,7 @@ public Builder addImageUrl(String imageUrl) {
147144
148145 /**
149146 * Set the collectionIds.
147+ * Existing collectionIds will be replaced.
150148 *
151149 * @param collectionIds the collectionIds
152150 * @return the AnalyzeOptions builder
@@ -158,6 +156,7 @@ public Builder collectionIds(List<String> collectionIds) {
158156
159157 /**
160158 * Set the features.
159+ * Existing features will be replaced.
161160 *
162161 * @param features the features
163162 * @return the AnalyzeOptions builder
@@ -227,7 +226,7 @@ public Builder newBuilder() {
227226 /**
228227 * Gets the collectionIds.
229228 *
230- * The IDs of the collections to analyze. Separate multiple values with commas.
229+ * The IDs of the collections to analyze.
231230 *
232231 * @return the collectionIds
233232 */
@@ -238,7 +237,7 @@ public List<String> collectionIds() {
238237 /**
239238 * Gets the features.
240239 *
241- * The features to analyze. Separate multiple values with commas.
240+ * The features to analyze.
242241 *
243242 * @return the features
244243 */
0 commit comments