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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(Long top, Long left, Long width, Long height)
      Instantiates a new builder with required properties.
      Parameters:
      top - the top
      left - the left
      width - the width
      height - the height
  • Method Details

    • build

      public Location build()
      Builds a Location.
      Returns:
      the new Location instance
    • top

      public Location.Builder top​(long top)
      Set the top.
      Parameters:
      top - the top
      Returns:
      the Location builder
    • left

      public Location.Builder left​(long left)
      Set the left.
      Parameters:
      left - the left
      Returns:
      the Location builder
    • width

      public Location.Builder width​(long width)
      Set the width.
      Parameters:
      width - the width
      Returns:
      the Location builder
    • height

      public Location.Builder height​(long height)
      Set the height.
      Parameters:
      height - the height
      Returns:
      the Location builder