Class ImmutableAstCommandRange.Builder

java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstCommandRange.Builder
Enclosing class:
ImmutableAstCommandRange

@NotThreadSafe public static final class ImmutableAstCommandRange.Builder extends Object
Builds instances of type ImmutableAstCommandRange. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder from(AstBody.AstCommandRange instance)
      Fill a builder with attribute values from the provided AstCommandRange instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • start

      @CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder start(int start)
      Initializes the value for the start attribute.
      Parameters:
      start - The value for start
      Returns:
      this builder for use in a chained invocation
    • end

      @CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder end(int end)
      Initializes the value for the end attribute.
      Parameters:
      end - The value for end
      Returns:
      this builder for use in a chained invocation
    • column

      @CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder column(@Nullable Integer column)
      Initializes the value for the column attribute.
      Parameters:
      column - The value for column (can be null)
      Returns:
      this builder for use in a chained invocation
    • insert

      @CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder insert(@Nullable Boolean insert)
      Initializes the value for the insert attribute.
      Parameters:
      insert - The value for insert (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableAstCommandRange build()
      Returns:
      An immutable instance of AstCommandRange
      Throws:
      IllegalStateException - if any required attributes are missing