Class ImmutableFlowResultLog
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowResultLog
- All Implemented Interfaces:
FlowProgram.FlowResultLog,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowResultLog
extends Object
implements FlowProgram.FlowResultLog
Immutable implementation of
FlowProgram.FlowResultLog.
Use the builder to create immutable instances:
ImmutableFlowResultLog.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowResultLog. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowResultLog.static ImmutableFlowResultLogcopyOf(FlowProgram.FlowResultLog instance) Creates an immutable copy of aFlowProgram.FlowResultLogvalue.booleanThis instance is equal to all instances ofImmutableFlowResultLogthat have equal attribute values.com.google.common.collect.ImmutableMap<String,Serializable> getEnd()com.google.common.collect.ImmutableList<FlowProgram.FlowResultErrorLog>getId()com.google.common.collect.ImmutableMap<String,Serializable> getStart()inthashCode()Computes a hash code from attributes:id,stepId,start,end,errors,status,isReturnsCollection,accepts,returns,returnsValue.booleantoString()Prints the immutable valueFlowResultLogwith attribute values.final ImmutableFlowResultLogwithAccepts(Map<String, ? extends Serializable> entries) Copy the current immutable object by replacing theacceptsmap with the specified map.final ImmutableFlowResultLogwithEnd(LocalDateTime value) Copy the current immutable object by setting a value for theendattribute.final ImmutableFlowResultLogwithErrors(FlowProgram.FlowResultErrorLog... elements) Copy the current immutable object with elements that replace the content oferrors.final ImmutableFlowResultLogwithErrors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements) Copy the current immutable object with elements that replace the content oferrors.final ImmutableFlowResultLogCopy the current immutable object by setting a value for theidattribute.final ImmutableFlowResultLogwithIsReturnsCollection(boolean value) Copy the current immutable object by setting a value for theisReturnsCollectionattribute.final ImmutableFlowResultLogwithReturns(Map<String, ? extends Serializable> entries) Copy the current immutable object by replacing thereturnsmap with the specified map.final ImmutableFlowResultLogwithReturnsValue(Serializable value) Copy the current immutable object by setting a value for thereturnsValueattribute.final ImmutableFlowResultLogwithStart(LocalDateTime value) Copy the current immutable object by setting a value for thestartattribute.final ImmutableFlowResultLogCopy the current immutable object by setting a value for thestatusattribute.final ImmutableFlowResultLogwithStepId(String value) Copy the current immutable object by setting a value for thestepIdattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
idattribute
-
getStepId
- Specified by:
getStepIdin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
stepIdattribute
-
getStart
- Specified by:
getStartin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
startattribute
-
getEnd
- Specified by:
getEndin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
endattribute
-
getErrors
- Specified by:
getErrorsin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
errorsattribute
-
getStatus
- Specified by:
getStatusin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
statusattribute
-
isReturnsCollection
public boolean isReturnsCollection()- Specified by:
isReturnsCollectionin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
isReturnsCollectionattribute
-
getAccepts
- Specified by:
getAcceptsin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
acceptsattribute
-
getReturns
- Specified by:
getReturnsin interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
returnsattribute
-
getReturnsValue
- Specified by:
getReturnsValuein interfaceFlowProgram.FlowResultLog- Returns:
- The value of the
returnsValueattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- 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
-
withStart
Copy the current immutable object by setting a value for thestartattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for start- Returns:
- A modified copy of the
thisobject
-
withEnd
Copy the current immutable object by setting a value for theendattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for end- Returns:
- A modified copy of the
thisobject
-
withErrors
Copy the current immutable object with elements that replace the content oferrors.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withErrors
public final ImmutableFlowResultLog withErrors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements) Copy the current immutable object with elements that replace the content oferrors. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of errors 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
-
withReturnsValue
Copy the current immutable object by setting a value for thereturnsValueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for returnsValue (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowResultLogthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,stepId,start,end,errors,status,isReturnsCollection,accepts,returns,returnsValue. -
toString
Prints the immutable valueFlowResultLogwith attribute values. -
copyOf
Creates an immutable copy of aFlowProgram.FlowResultLogvalue. 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 FlowResultLog instance
-
builder
Creates a builder forImmutableFlowResultLog.ImmutableFlowResultLog.builder() .id(Integer) // requiredid.stepId(String) // requiredstepId.start(java.time.LocalDateTime) // requiredstart.end(java.time.LocalDateTime) // requiredend.addErrors|addAllErrors(io.resys.hdes.client.api.programs.FlowProgram.FlowResultErrorLog) //errorselements .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 .returnsValue(java.io.Serializable | null) // nullablereturnsValue.build();- Returns:
- A new ImmutableFlowResultLog builder
-