Class ImmutableFlowProgramStepBody

java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepBody
All Implemented Interfaces:
FlowProgram.FlowProgramStepBody, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFlowProgramStepBody extends Object implements FlowProgram.FlowProgramStepBody
Immutable implementation of FlowProgram.FlowProgramStepBody.

Use the builder to create immutable instances: ImmutableFlowProgramStepBody.builder().

See Also:
  • Method Details

    • getRef

      public String getRef()
      Specified by:
      getRef in interface FlowProgram.FlowProgramStepBody
      Returns:
      The value of the ref attribute
    • getRefType

      Specified by:
      getRefType in interface FlowProgram.FlowProgramStepBody
      Returns:
      The value of the refType attribute
    • getInputMapping

      public com.google.common.collect.ImmutableMap<String,String> getInputMapping()
      Specified by:
      getInputMapping in interface FlowProgram.FlowProgramStepBody
      Returns:
      The value of the inputMapping attribute
    • getCollection

      public Boolean getCollection()
      Specified by:
      getCollection in interface FlowProgram.FlowProgramStepBody
      Returns:
      The value of the collection attribute
    • withRef

      public final ImmutableFlowProgramStepBody withRef(String value)
      Copy the current immutable object by setting a value for the ref attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for ref
      Returns:
      A modified copy of the this object
    • withRefType

      Copy the current immutable object by setting a value for the refType attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for refType
      Returns:
      A modified copy of the this object
    • withInputMapping

      public final ImmutableFlowProgramStepBody withInputMapping(Map<String,? extends String> entries)
      Copy the current immutable object by replacing the inputMapping map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      entries - The entries to be added to the inputMapping map
      Returns:
      A modified copy of this object
    • withCollection

      public final ImmutableFlowProgramStepBody withCollection(Boolean value)
      Copy the current immutable object by setting a value for the collection attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for collection
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableFlowProgramStepBody that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: ref, refType, inputMapping, collection.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value FlowProgramStepBody with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a FlowProgram.FlowProgramStepBody value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable FlowProgramStepBody instance
    • builder

      public static ImmutableFlowProgramStepBody.Builder builder()
      Creates a builder for ImmutableFlowProgramStepBody.
       ImmutableFlowProgramStepBody.builder()
          .ref(String) // required ref
          .refType(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepRefType) // required refType
          .putInputMapping|putAllInputMapping(String => String) // inputMapping mappings
          .collection(Boolean) // required collection
          .build();
       
      Returns:
      A new ImmutableFlowProgramStepBody builder