Class ImmutableFlowResult
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowResult
- All Implemented Interfaces:
FlowProgram.FlowResult,Program.ProgramResult,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowResult
extends Object
implements FlowProgram.FlowResult
Immutable implementation of
FlowProgram.FlowResult.
Use the builder to create immutable instances:
ImmutableFlowResult.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableFlowResult.Builderbuilder()Creates a builder forImmutableFlowResult.static ImmutableFlowResultcopyOf(FlowProgram.FlowResult instance) Creates an immutable copy of aFlowProgram.FlowResultvalue.booleanThis instance is equal to all instances ofImmutableFlowResultthat have equal attribute values.com.google.common.collect.ImmutableMap<String,Serializable> com.google.common.collect.ImmutableList<FlowProgram.FlowResultLog>com.google.common.collect.ImmutableList<FlowProgram.FlowResultLog>getLogs()com.google.common.collect.ImmutableMap<String,Serializable> inthashCode()Computes a hash code from attributes:stepId,shortHistory,logs,lastLogs,status,isReturnsCollection,accepts,returns.booleantoString()Prints the immutable valueFlowResultwith attribute values.final ImmutableFlowResultwithAccepts(Map<String, ? extends Serializable> entries) Copy the current immutable object by replacing theacceptsmap with the specified map.final ImmutableFlowResultwithIsReturnsCollection(boolean value) Copy the current immutable object by setting a value for theisReturnsCollectionattribute.final ImmutableFlowResultwithLastLogs(FlowProgram.FlowResultLog... elements) Copy the current immutable object with elements that replace the content oflastLogs.final ImmutableFlowResultwithLastLogs(Iterable<? extends FlowProgram.FlowResultLog> elements) Copy the current immutable object with elements that replace the content oflastLogs.final ImmutableFlowResultwithLogs(FlowProgram.FlowResultLog... elements) Copy the current immutable object with elements that replace the content oflogs.final ImmutableFlowResultwithLogs(Iterable<? extends FlowProgram.FlowResultLog> elements) Copy the current immutable object with elements that replace the content oflogs.final ImmutableFlowResultwithReturns(Map<String, ? extends Serializable> entries) Copy the current immutable object by replacing thereturnsmap with the specified map.final ImmutableFlowResultwithShortHistory(String value) Copy the current immutable object by setting a value for theshortHistoryattribute.final ImmutableFlowResultCopy the current immutable object by setting a value for thestatusattribute.final ImmutableFlowResultwithStepId(String value) Copy the current immutable object by setting a value for thestepIdattribute.
-
Method Details
-
getStepId
- Specified by:
getStepIdin interfaceFlowProgram.FlowResult- Returns:
- The value of the
stepIdattribute
-
getShortHistory
- Specified by:
getShortHistoryin interfaceFlowProgram.FlowResult- Returns:
- The value of the
shortHistoryattribute
-
getLogs
- Specified by:
getLogsin interfaceFlowProgram.FlowResult- Returns:
- The value of the
logsattribute
-
getLastLogs
- Specified by:
getLastLogsin interfaceFlowProgram.FlowResult- Returns:
- The value of the
lastLogsattribute
-
getStatus
- Specified by:
getStatusin interfaceFlowProgram.FlowResult- Returns:
- The value of the
statusattribute
-
isReturnsCollection
public boolean isReturnsCollection()- Specified by:
isReturnsCollectionin interfaceFlowProgram.FlowResult- Returns:
- The value of the
isReturnsCollectionattribute
-
getAccepts
- Specified by:
getAcceptsin interfaceFlowProgram.FlowResult- Returns:
- The value of the
acceptsattribute
-
getReturns
- Specified by:
getReturnsin interfaceFlowProgram.FlowResult- Returns:
- The value of the
returnsattribute
-
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
-
withShortHistory
Copy the current immutable object by setting a value for theshortHistoryattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for shortHistory- Returns:
- A modified copy of the
thisobject
-
withLogs
Copy the current immutable object with elements that replace the content oflogs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLogs
Copy the current immutable object with elements that replace the content oflogs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of logs elements to set- Returns:
- A modified copy of
thisobject
-
withLastLogs
Copy the current immutable object with elements that replace the content oflastLogs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLastLogs
public final ImmutableFlowResult withLastLogs(Iterable<? extends FlowProgram.FlowResultLog> elements) Copy the current immutable object with elements that replace the content oflastLogs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of lastLogs elements to set- Returns:
- A modified copy of
thisobject
-
withStatus
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy of the
thisobject
-
withIsReturnsCollection
Copy the current immutable object by setting a value for theisReturnsCollectionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isReturnsCollection- Returns:
- A modified copy of the
thisobject
-
withAccepts
Copy the current immutable object by replacing theacceptsmap 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 accepts map- Returns:
- A modified copy of
thisobject
-
withReturns
Copy the current immutable object by replacing thereturnsmap 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 returns map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowResultthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:stepId,shortHistory,logs,lastLogs,status,isReturnsCollection,accepts,returns. -
toString
Prints the immutable valueFlowResultwith attribute values. -
copyOf
Creates an immutable copy of aFlowProgram.FlowResultvalue. 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 FlowResult instance
-
builder
Creates a builder forImmutableFlowResult.ImmutableFlowResult.builder() .stepId(String) // requiredstepId.shortHistory(String) // requiredshortHistory.addLogs|addAllLogs(io.resys.hdes.client.api.programs.FlowProgram.FlowResultLog) //logselements .addLastLogs|addAllLastLogs(io.resys.hdes.client.api.programs.FlowProgram.FlowResultLog) //lastLogselements .status(io.resys.hdes.client.api.programs.FlowProgram.FlowExecutionStatus) // requiredstatus.isReturnsCollection(boolean) // requiredisReturnsCollection.putAccepts|putAllAccepts(String => java.io.Serializable) //acceptsmappings .putReturns|putAllReturns(String => java.io.Serializable) //returnsmappings .build();- Returns:
- A new ImmutableFlowResult builder
-