Class CaptureGroup.Builder

java.lang.Object
com.ibm.watson.assistant.v2.model.CaptureGroup.Builder
Enclosing class:
CaptureGroup

public static class CaptureGroup.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String group)
      Instantiates a new builder with required properties.
      Parameters:
      group - the group
  • Method Details

    • build

      public CaptureGroup build()
      Builds a CaptureGroup.
      Returns:
      the new CaptureGroup instance
    • addLocation

      public CaptureGroup.Builder addLocation​(Long location)
      Adds an location to location.
      Parameters:
      location - the new location
      Returns:
      the CaptureGroup builder
    • group

      public CaptureGroup.Builder group​(String group)
      Set the group.
      Parameters:
      group - the group
      Returns:
      the CaptureGroup builder
    • location

      public CaptureGroup.Builder location​(List<Long> location)
      Set the location. Existing location will be replaced.
      Parameters:
      location - the location
      Returns:
      the CaptureGroup builder