Interface Field.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Field.Builder,Field>, SdkBuilder<Field.Builder,Field>, SdkPojo
Enclosing class:
Field

@Mutable @NotThreadSafe public static interface Field.Builder extends SdkPojo, CopyableBuilder<Field.Builder,Field>
  • Method Details

    • name

      Field.Builder name(String name)

      The name of the field. Field names are case-sensitive and must be used exactly as returned when referencing them in query expressions.

      Parameters:
      name - The name of the field. Field names are case-sensitive and must be used exactly as returned when referencing them in query expressions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • children

      Field.Builder children(Collection<Field> children)

      Child fields nested under this field.

      Parameters:
      children - Child fields nested under this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • children

      Field.Builder children(Field... children)

      Child fields nested under this field.

      Parameters:
      children - Child fields nested under this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • children

      Field.Builder children(Consumer<Field.Builder>... children)

      Child fields nested under this field.

      This is a convenience method that creates an instance of the Field.Builder avoiding the need to create one manually via Field.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to children(List<Field>).

      Parameters:
      children - a consumer that will call methods on Field.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: