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().

  • Method Details

    • getTenantExecution

      public TenantExecution getTenantExecution()
      Specified by:
      getTenantExecution in class ExecutionInfo
      Returns:
      The value of the tenantExecution attribute
    • getAuditItemId

      public long getAuditItemId()
      Specified by:
      getAuditItemId in class ExecutionInfo
      Returns:
      The value of the auditItemId attribute
    • getRuleId

      public long getRuleId()
      Specified by:
      getRuleId in class ExecutionInfo
      Returns:
      The value of the ruleId attribute
    • withTenantExecution

      public final ImmutableExecutionInfo withTenantExecution(TenantExecution value)
      Copy the current immutable object by setting a value for the tenantExecution attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for tenantExecution
      Returns:
      A modified copy of the this object
    • withAuditItemId

      public final ImmutableExecutionInfo withAuditItemId(long value)
      Copy the current immutable object by setting a value for the auditItemId attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for auditItemId
      Returns:
      A modified copy of the this object
    • withRuleId

      public final ImmutableExecutionInfo withRuleId(long value)
      Copy the current immutable object by setting a value for the ruleId attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for ruleId
      Returns:
      A modified copy of the this object
    • of

      public static ImmutableExecutionInfo of(TenantExecution tenantExecution, long auditItemId, long ruleId)
      Construct a new immutable ExecutionInfo instance.
      Parameters:
      tenantExecution - The value for the tenantExecution attribute
      auditItemId - The value for the auditItemId attribute
      ruleId - The value for the ruleId attribute
      Returns:
      An immutable ExecutionInfo instance
    • copyOf

      public static ImmutableExecutionInfo copyOf(ExecutionInfo instance)
      Creates an immutable copy of a ExecutionInfo value. 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

      public static ImmutableExecutionInfo.Builder builder()
      Creates a builder for ImmutableExecutionInfo.
       ImmutableExecutionInfo.builder()
          .tenantExecution(com.codebarrel.automation.api.service.auditevent.TenantExecution) // required tenantExecution
          .auditItemId(long) // required auditItemId
          .ruleId(long) // required ruleId
          .build();
       
      Returns:
      A new ImmutableExecutionInfo builder