Class ImmutableFlowProgramStepBody.Builder

java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepBody.Builder
Enclosing class:
ImmutableFlowProgramStepBody

@NotThreadSafe public static final class ImmutableFlowProgramStepBody.Builder extends Object
Builds instances of type ImmutableFlowProgramStepBody. 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 ImmutableFlowProgramStepBody.Builder from(FlowProgram.FlowProgramStepBody instance)
      Fill a builder with attribute values from the provided FlowProgramStepBody instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • ref

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

      @CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder refType(FlowProgram.FlowProgramStepRefType refType)
      Initializes the value for the refType attribute.
      Parameters:
      refType - The value for refType
      Returns:
      this builder for use in a chained invocation
    • putInputMapping

      @CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder putInputMapping(String key, String value)
      Put one entry to the inputMapping map.
      Parameters:
      key - The key in the inputMapping map
      value - The associated value in the inputMapping map
      Returns:
      this builder for use in a chained invocation
    • putInputMapping

      @CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder putInputMapping(Map.Entry<String,? extends String> entry)
      Put one entry to the inputMapping map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder for use in a chained invocation
    • inputMapping

      @CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder inputMapping(Map<String,? extends String> entries)
      Sets or replaces all mappings from the specified map as entries for the inputMapping map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the inputMapping map
      Returns:
      this builder for use in a chained invocation
    • putAllInputMapping

      @CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder putAllInputMapping(Map<String,? extends String> entries)
      Put all mappings from the specified map as entries to inputMapping map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the inputMapping map
      Returns:
      this builder for use in a chained invocation
    • collection

      @CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder collection(Boolean collection)
      Initializes the value for the collection attribute.
      Parameters:
      collection - The value for collection
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of FlowProgramStepBody
      Throws:
      IllegalStateException - if any required attributes are missing