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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowProgramStepBody. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowProgramStepBody.static ImmutableFlowProgramStepBodycopyOf(FlowProgram.FlowProgramStepBody instance) Creates an immutable copy of aFlowProgram.FlowProgramStepBodyvalue.booleanThis instance is equal to all instances ofImmutableFlowProgramStepBodythat have equal attribute values.getRef()inthashCode()Computes a hash code from attributes:ref,refType,inputMapping,collection.toString()Prints the immutable valueFlowProgramStepBodywith attribute values.withCollection(Boolean value) Copy the current immutable object by setting a value for thecollectionattribute.withInputMapping(Map<String, ? extends String> entries) Copy the current immutable object by replacing theinputMappingmap with the specified map.Copy the current immutable object by setting a value for therefattribute.Copy the current immutable object by setting a value for therefTypeattribute.
-
Method Details
-
getRef
- Specified by:
getRefin interfaceFlowProgram.FlowProgramStepBody- Returns:
- The value of the
refattribute
-
getRefType
- Specified by:
getRefTypein interfaceFlowProgram.FlowProgramStepBody- Returns:
- The value of the
refTypeattribute
-
getInputMapping
- Specified by:
getInputMappingin interfaceFlowProgram.FlowProgramStepBody- Returns:
- The value of the
inputMappingattribute
-
getCollection
- Specified by:
getCollectionin interfaceFlowProgram.FlowProgramStepBody- Returns:
- The value of the
collectionattribute
-
withRef
Copy the current immutable object by setting a value for therefattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ref- Returns:
- A modified copy of the
thisobject
-
withRefType
Copy the current immutable object by setting a value for therefTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for refType- Returns:
- A modified copy of the
thisobject
-
withInputMapping
Copy the current immutable object by replacing theinputMappingmap 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 returningthis.- Parameters:
entries- The entries to be added to the inputMapping map- Returns:
- A modified copy of
thisobject
-
withCollection
Copy the current immutable object by setting a value for thecollectionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for collection- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowProgramStepBodythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ref,refType,inputMapping,collection. -
toString
Prints the immutable valueFlowProgramStepBodywith attribute values. -
copyOf
Creates an immutable copy of aFlowProgram.FlowProgramStepBodyvalue. 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
Creates a builder forImmutableFlowProgramStepBody.ImmutableFlowProgramStepBody.builder() .ref(String) // requiredref.refType(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepRefType) // requiredrefType.putInputMapping|putAllInputMapping(String => String) //inputMappingmappings .collection(Boolean) // requiredcollection.build();- Returns:
- A new ImmutableFlowProgramStepBody builder
-