Class ImmutableAstFlow.Builder

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

@NotThreadSafe public static final class ImmutableAstFlow.Builder extends Object
Builds instances of type ImmutableAstFlow. 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 ImmutableAstFlow.Builder from(AstFlow instance)
      Fill a builder with attribute values from the provided io.resys.hdes.client.api.ast.AstFlow instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder from(AstBody instance)
      Fill a builder with attribute values from the provided io.resys.hdes.client.api.ast.AstBody instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • name

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder name(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • description

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder description(@Nullable String description)
      Initializes the value for the description attribute.
      Parameters:
      description - The value for description (can be null)
      Returns:
      this builder for use in a chained invocation
    • headers

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder headers(AstBody.Headers headers)
      Initializes the value for the headers attribute.
      Parameters:
      headers - The value for headers
      Returns:
      this builder for use in a chained invocation
    • bodyType

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder bodyType(AstBody.AstBodyType bodyType)
      Initializes the value for the bodyType attribute.
      Parameters:
      bodyType - The value for bodyType
      Returns:
      this builder for use in a chained invocation
    • addMessages

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder addMessages(AstBody.AstCommandMessage element)
      Adds one element to messages list.
      Parameters:
      element - A messages element
      Returns:
      this builder for use in a chained invocation
    • addMessages

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder addMessages(AstBody.AstCommandMessage... elements)
      Adds elements to messages list.
      Parameters:
      elements - An array of messages elements
      Returns:
      this builder for use in a chained invocation
    • messages

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder messages(Iterable<? extends AstBody.AstCommandMessage> elements)
      Sets or replaces all elements for messages list.
      Parameters:
      elements - An iterable of messages elements
      Returns:
      this builder for use in a chained invocation
    • addAllMessages

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder addAllMessages(Iterable<? extends AstBody.AstCommandMessage> elements)
      Adds elements to messages list.
      Parameters:
      elements - An iterable of messages elements
      Returns:
      this builder for use in a chained invocation
    • src

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder src(AstFlow.AstFlowRoot src)
      Initializes the value for the src attribute.
      Parameters:
      src - The value for src
      Returns:
      this builder for use in a chained invocation
    • addAutocomplete

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder addAutocomplete(AstFlow.FlowAstAutocomplete element)
      Adds one element to autocomplete list.
      Parameters:
      element - A autocomplete element
      Returns:
      this builder for use in a chained invocation
    • addAutocomplete

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder addAutocomplete(AstFlow.FlowAstAutocomplete... elements)
      Adds elements to autocomplete list.
      Parameters:
      elements - An array of autocomplete elements
      Returns:
      this builder for use in a chained invocation
    • autocomplete

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder autocomplete(Iterable<? extends AstFlow.FlowAstAutocomplete> elements)
      Sets or replaces all elements for autocomplete list.
      Parameters:
      elements - An iterable of autocomplete elements
      Returns:
      this builder for use in a chained invocation
    • addAllAutocomplete

      @CanIgnoreReturnValue public final ImmutableAstFlow.Builder addAllAutocomplete(Iterable<? extends AstFlow.FlowAstAutocomplete> elements)
      Adds elements to autocomplete list.
      Parameters:
      elements - An iterable of autocomplete elements
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableAstFlow build()
      Builds a new ImmutableAstFlow.
      Returns:
      An immutable instance of AstFlow
      Throws:
      IllegalStateException - if any required attributes are missing