Class ImmutableActivityEventParent

java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityEventParent
All Implemented Interfaces:
ActivityEventParent

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableActivityEventParent extends Object implements ActivityEventParent
Immutable implementation of ActivityEventParent.

Use the builder to create immutable instances: ImmutableActivityEventParent.builder().

  • Method Details

    • eventId

      public String eventId()
      Specified by:
      eventId in interface ActivityEventParent
      Returns:
      The value of the eventId attribute
    • sequenceKey

      public String sequenceKey()
      Specified by:
      sequenceKey in interface ActivityEventParent
      Returns:
      The value of the sequenceKey attribute
    • withEventId

      public final ImmutableActivityEventParent withEventId(String value)
      Copy the current immutable object by setting a value for the eventId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for eventId
      Returns:
      A modified copy of the this object
    • withSequenceKey

      public final ImmutableActivityEventParent withSequenceKey(String value)
      Copy the current immutable object by setting a value for the sequenceKey attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sequenceKey
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableActivityEventParent 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: eventId, sequenceKey.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableActivityEventParent copyOf(ActivityEventParent instance)
      Creates an immutable copy of a ActivityEventParent 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 ActivityEventParent instance
    • builder

      public static ImmutableActivityEventParent.Builder builder()
      Creates a builder for ImmutableActivityEventParent.
       ImmutableActivityEventParent.builder()
          .eventId(String) // required eventId
          .sequenceKey(String) // required sequenceKey
          .build();
       
      Returns:
      A new ImmutableActivityEventParent builder