Class Location.Builder
java.lang.Object
com.ibm.watson.visual_recognition.v4.model.Location.Builder
- Enclosing class:
- Location
public static class Location.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Location
build()
Builds a Location.Location.Builder
height(long height)
Set the height.Location.Builder
left(long left)
Set the left.Location.Builder
top(long top)
Set the top.Location.Builder
width(long width)
Set the width.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
top
- the topleft
- the leftwidth
- the widthheight
- the height
-
-
Method Details
-
build
Builds a Location.- Returns:
- the new Location instance
-
top
Set the top.- Parameters:
top
- the top- Returns:
- the Location builder
-
left
Set the left.- Parameters:
left
- the left- Returns:
- the Location builder
-
width
Set the width.- Parameters:
width
- the width- Returns:
- the Location builder
-
height
Set the height.- Parameters:
height
- the height- Returns:
- the Location builder
-