Class ImmutableErrorActiveUpdatedEvent

java.lang.Object
io.dialob.session.engine.session.command.event.ImmutableErrorActiveUpdatedEvent
All Implemented Interfaces:
ErrorActiveUpdatedEvent, ErrorEvent, Event, Serializable

@Generated(from="ErrorActiveUpdatedEvent", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableErrorActiveUpdatedEvent extends Object implements ErrorActiveUpdatedEvent
Immutable implementation of ErrorActiveUpdatedEvent.

Use the builder to create immutable instances: ImmutableErrorActiveUpdatedEvent.builder(). Use the static factory method to create immutable instances: ImmutableErrorActiveUpdatedEvent.of().

See Also:
  • Method Details

    • getErrorId

      public ErrorId getErrorId()
      Specified by:
      getErrorId in interface ErrorEvent
      Returns:
      The value of the errorId attribute
    • withErrorId

      public final ImmutableErrorActiveUpdatedEvent withErrorId(ErrorId value)
      Copy the current immutable object by setting a value for the errorId attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for errorId
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableErrorActiveUpdatedEvent that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: errorId.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ErrorActiveUpdatedEvent with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • of

      public static ImmutableErrorActiveUpdatedEvent of(ErrorId errorId)
      Construct a new immutable ErrorActiveUpdatedEvent instance.
      Parameters:
      errorId - The value for the errorId attribute
      Returns:
      An immutable ErrorActiveUpdatedEvent instance
    • copyOf

      Creates an immutable copy of a ErrorActiveUpdatedEvent 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 ErrorActiveUpdatedEvent instance
    • builder

      Creates a builder for ImmutableErrorActiveUpdatedEvent.
       ImmutableErrorActiveUpdatedEvent.builder()
          .errorId(io.dialob.session.engine.session.model.ErrorId) // required errorId
          .build();
       
      Returns:
      A new ImmutableErrorActiveUpdatedEvent builder