Class ImmutableFlowProgramStepThenPointer
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepThenPointer
- All Implemented Interfaces:
FlowProgram.FlowProgramStepPointer,FlowProgram.FlowProgramStepThenPointer,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowProgramStepThenPointer
extends Object
implements FlowProgram.FlowProgramStepThenPointer
Immutable implementation of
FlowProgram.FlowProgramStepThenPointer.
Use the builder to create immutable instances:
ImmutableFlowProgramStepThenPointer.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowProgramStepThenPointer. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowProgramStepThenPointer.copyOf(FlowProgram.FlowProgramStepThenPointer instance) Creates an immutable copy of aFlowProgram.FlowProgramStepThenPointervalue.booleanThis instance is equal to all instances ofImmutableFlowProgramStepThenPointerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,stepId.toString()Prints the immutable valueFlowProgramStepThenPointerwith attribute values.withStepId(String value) Copy the current immutable object by setting a value for thestepIdattribute.Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceFlowProgram.FlowProgramStepPointer- Returns:
- The value of the
typeattribute
-
getStepId
- Specified by:
getStepIdin interfaceFlowProgram.FlowProgramStepThenPointer- Returns:
- The value of the
stepIdattribute
-
withType
public final ImmutableFlowProgramStepThenPointer withType(FlowProgram.FlowProgramStepPointerType value) Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withStepId
Copy the current immutable object by setting a value for thestepIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stepId- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowProgramStepThenPointerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,stepId. -
toString
Prints the immutable valueFlowProgramStepThenPointerwith attribute values. -
copyOf
public static ImmutableFlowProgramStepThenPointer copyOf(FlowProgram.FlowProgramStepThenPointer instance) Creates an immutable copy of aFlowProgram.FlowProgramStepThenPointervalue. 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 FlowProgramStepThenPointer instance
-
builder
Creates a builder forImmutableFlowProgramStepThenPointer.ImmutableFlowProgramStepThenPointer.builder() .type(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepPointerType) // requiredtype.stepId(String) // requiredstepId.build();- Returns:
- A new ImmutableFlowProgramStepThenPointer builder
-