Class ImmutableServiceProgram
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableServiceProgram
- All Implemented Interfaces:
Program,ServiceProgram,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableServiceProgram
extends Object
implements ServiceProgram
Immutable implementation of
ServiceProgram.
Use the builder to create immutable instances:
ImmutableServiceProgram.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableServiceProgram.Nested classes/interfaces inherited from interface io.resys.hdes.client.api.programs.Program
Program.ExecutionLog, Program.FlowExecutionLog, Program.ProgramContext, Program.ProgramContextNamedValue, Program.ProgramResultNested classes/interfaces inherited from interface io.resys.hdes.client.api.programs.ServiceProgram
ServiceProgram.ServiceResult -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableServiceProgram.static ImmutableServiceProgramcopyOf(ServiceProgram instance) Creates an immutable copy of aServiceProgramvalue.booleanThis instance is equal to all instances ofImmutableServiceProgramthat have equal attribute values.getBean()inthashCode()Computes a hash code from attributes:executorType,bean,typeDef0,typeDef1.toString()Prints the immutable valueServiceProgramwith attribute values.final ImmutableServiceProgramCopy the current immutable object by setting a value for thebeanattribute.final ImmutableServiceProgramCopy the current immutable object by setting a value for theexecutorTypeattribute.final ImmutableServiceProgramwithTypeDef0(TypeDef value) Copy the current immutable object by setting a value for thetypeDef0attribute.final ImmutableServiceProgramwithTypeDef1(TypeDef value) Copy the current immutable object by setting a value for thetypeDef1attribute.
-
Method Details
-
getExecutorType
- Specified by:
getExecutorTypein interfaceServiceProgram- Returns:
- The value of the
executorTypeattribute
-
getBean
- Specified by:
getBeanin interfaceServiceProgram- Returns:
- The value of the
beanattribute
-
getTypeDef0
- Specified by:
getTypeDef0in interfaceServiceProgram- Returns:
- The value of the
typeDef0attribute
-
getTypeDef1
- Specified by:
getTypeDef1in interfaceServiceProgram- Returns:
- The value of the
typeDef1attribute
-
withExecutorType
Copy the current immutable object by setting a value for theexecutorTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for executorType- Returns:
- A modified copy of the
thisobject
-
withBean
Copy the current immutable object by setting a value for thebeanattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bean- Returns:
- A modified copy of the
thisobject
-
withTypeDef0
Copy the current immutable object by setting a value for thetypeDef0attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeDef0 (can benull)- Returns:
- A modified copy of the
thisobject
-
withTypeDef1
Copy the current immutable object by setting a value for thetypeDef1attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeDef1 (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableServiceProgramthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:executorType,bean,typeDef0,typeDef1. -
toString
Prints the immutable valueServiceProgramwith attribute values. -
copyOf
Creates an immutable copy of aServiceProgramvalue. 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 ServiceProgram instance
-
builder
Creates a builder forImmutableServiceProgram.ImmutableServiceProgram.builder() .executorType(io.resys.hdes.client.api.ast.AstService.AstServiceType) // requiredexecutorType.bean(io.resys.hdes.client.api.ast.AstService.ServiceExecutorType) // requiredbean.typeDef0(io.resys.hdes.client.api.ast.TypeDef | null) // nullabletypeDef0.typeDef1(io.resys.hdes.client.api.ast.TypeDef | null) // nullabletypeDef1.build();- Returns:
- A new ImmutableServiceProgram builder
-