Skip to content

Commit 0f6d07a

Browse files
committed
chore(visual-recognition-v4): post-gen manual change
1 parent 5ca5306 commit 0f6d07a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v4/VisualRecognition.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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));

visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v4/model/UpdateObjectMetadata.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)