com.ibm.watson.visual_recognition.v4.model.TrainingDataObject Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2019, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.visual_recognition.v4.model;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
/**
* Details about the training data.
*/
public class TrainingDataObject extends GenericModel {
protected String object;
protected Location location;
/**
* Builder.
*/
public static class Builder {
private String object;
private Location location;
private Builder(TrainingDataObject trainingDataObject) {
this.object = trainingDataObject.object;
this.location = trainingDataObject.location;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Builds a TrainingDataObject.
*
* @return the trainingDataObject
*/
public TrainingDataObject build() {
return new TrainingDataObject(this);
}
/**
* Set the object.
*
* @param object the object
* @return the TrainingDataObject builder
*/
public Builder object(String object) {
this.object = object;
return this;
}
/**
* Set the location.
*
* @param location the location
* @return the TrainingDataObject builder
*/
public Builder location(Location location) {
this.location = location;
return this;
}
}
protected TrainingDataObject(Builder builder) {
object = builder.object;
location = builder.location;
}
/**
* New builder.
*
* @return a TrainingDataObject builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the object.
*
* The name of the object.
*
* @return the object
*/
public String object() {
return object;
}
/**
* Gets the location.
*
* Defines the location of the bounding box around the object.
*
* @return the location
*/
public Location location() {
return location;
}
}