File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v4 Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ public ServiceCall<AnalyzeResponse> analyze(AnalyzeOptions analyzeOptions) {
198198 * @return a {@link ServiceCall} with a response type of {@link Collection}
199199 */
200200 public ServiceCall <Collection > createCollection (CreateCollectionOptions createCollectionOptions ) {
201+ com .ibm .cloud .sdk .core .util .Validator .notNull (
202+ createCollectionOptions , "createCollectionOptions cannot be null" );
201203 String [] pathSegments = {"v4/collections" };
202204 RequestBuilder builder =
203205 RequestBuilder .post (RequestBuilder .constructHttpUrl (getServiceUrl (), pathSegments ));
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ public Builder() {}
3737 * Instantiates a new builder with required properties.
3838 *
3939 * @param object the object
40+ * @param count the count
4041 */
41- public Builder (String object ) {
42+ public Builder (String object , Long count ) {
4243 this .object = object ;
44+ this .count = count ;
4345 }
4446
4547 /**
@@ -76,6 +78,7 @@ public Builder count(long count) {
7678
7779 protected UpdateObjectMetadata (Builder builder ) {
7880 com .ibm .cloud .sdk .core .util .Validator .notNull (builder .object , "object cannot be null" );
81+ com .ibm .cloud .sdk .core .util .Validator .notNull (builder .count , "count cannot be null" );
7982 object = builder .object ;
8083 count = builder .count ;
8184 }
You can’t perform that action at this time.
0 commit comments