Class ImmutableExecutionInfo
java.lang.Object
com.codebarrel.automation.api.execution.ExecutionInfo
com.codebarrel.automation.api.execution.ImmutableExecutionInfo
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableExecutionInfo
extends ExecutionInfo
Immutable implementation of
ExecutionInfo.
Use the builder to create immutable instances:
ImmutableExecutionInfo.builder().
Use the static factory method to create immutable instances:
ImmutableExecutionInfo.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableExecutionInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableExecutionInfo.static ImmutableExecutionInfocopyOf(ExecutionInfo instance) Creates an immutable copy of aExecutionInfovalue.longlongstatic ImmutableExecutionInfoof(TenantExecution tenantExecution, long auditItemId, long ruleId) Construct a new immutableExecutionInfoinstance.final ImmutableExecutionInfowithAuditItemId(long value) Copy the current immutable object by setting a value for theauditItemIdattribute.final ImmutableExecutionInfowithRuleId(long value) Copy the current immutable object by setting a value for theruleIdattribute.final ImmutableExecutionInfoCopy the current immutable object by setting a value for thetenantExecutionattribute.Methods inherited from class com.codebarrel.automation.api.execution.ExecutionInfo
equals, hashCode, toString
-
Method Details
-
getTenantExecution
- Specified by:
getTenantExecutionin classExecutionInfo- Returns:
- The value of the
tenantExecutionattribute
-
getAuditItemId
public long getAuditItemId()- Specified by:
getAuditItemIdin classExecutionInfo- Returns:
- The value of the
auditItemIdattribute
-
getRuleId
public long getRuleId()- Specified by:
getRuleIdin classExecutionInfo- Returns:
- The value of the
ruleIdattribute
-
withTenantExecution
Copy the current immutable object by setting a value for thetenantExecutionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantExecution- Returns:
- A modified copy of the
thisobject
-
withAuditItemId
Copy the current immutable object by setting a value for theauditItemIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for auditItemId- Returns:
- A modified copy of the
thisobject
-
withRuleId
Copy the current immutable object by setting a value for theruleIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ruleId- Returns:
- A modified copy of the
thisobject
-
of
public static ImmutableExecutionInfo of(TenantExecution tenantExecution, long auditItemId, long ruleId) Construct a new immutableExecutionInfoinstance.- Parameters:
tenantExecution- The value for thetenantExecutionattributeauditItemId- The value for theauditItemIdattributeruleId- The value for theruleIdattribute- Returns:
- An immutable ExecutionInfo instance
-
copyOf
Creates an immutable copy of aExecutionInfovalue. 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 ExecutionInfo instance
-
builder
Creates a builder forImmutableExecutionInfo.ImmutableExecutionInfo.builder() .tenantExecution(com.codebarrel.automation.api.service.auditevent.TenantExecution) // requiredtenantExecution.auditItemId(long) // requiredauditItemId.ruleId(long) // requiredruleId.build();- Returns:
- A new ImmutableExecutionInfo builder
-