Class ImmutableActivityEventForm
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityEventForm
- All Implemented Interfaces:
ActivityEventForm
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActivityEventForm
extends Object
implements ActivityEventForm
Immutable implementation of
ActivityEventForm.
Use the builder to create immutable instances:
ImmutableActivityEventForm.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableActivityEventForm. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableActivityEventForm.chainId()static ImmutableActivityEventFormcopyOf(ActivityEventForm instance) Creates an immutable copy of aActivityEventFormvalue.booleanThis instance is equal to all instances ofImmutableActivityEventFormthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,parent,chainId,origin,createdAt,finishedAt,conclusion,payload,sequence.id()origin()parent()payload()sequence()toString()Prints the immutable valueActivityEventFormwith attribute values.withChainId(String value) Copy the current immutable object by setting a value for thechainIdattribute.withConclusion(ActivityConclusion value) Copy the current immutable object by setting a value for theconclusionattribute.withCreatedAt(Long value) Copy the current immutable object by setting a value for thecreatedAtattribute.withFinishedAt(Long value) Copy the current immutable object by setting a value for thefinishedAtattribute.Copy the current immutable object by setting a value for theidattribute.withOrigin(String value) Copy the current immutable object by setting a value for theoriginattribute.withParent(ActivityEventParent value) Copy the current immutable object by setting a value for theparentattribute.withPayload(ActivityPayloadForm value) Copy the current immutable object by setting a value for thepayloadattribute.withSequence(SequenceForm value) Copy the current immutable object by setting a value for thesequenceattribute.
-
Method Details
-
id
- Specified by:
idin interfaceActivityEventForm- Returns:
- The value of the
idattribute
-
parent
- Specified by:
parentin interfaceActivityEventForm- Returns:
- The value of the
parentattribute
-
chainId
- Specified by:
chainIdin interfaceActivityEventForm- Returns:
- The value of the
chainIdattribute
-
origin
- Specified by:
originin interfaceActivityEventForm- Returns:
- The value of the
originattribute
-
createdAt
- Specified by:
createdAtin interfaceActivityEventForm- Returns:
- The value of the
createdAtattribute
-
finishedAt
- Specified by:
finishedAtin interfaceActivityEventForm- Returns:
- The value of the
finishedAtattribute
-
conclusion
- Specified by:
conclusionin interfaceActivityEventForm- Returns:
- The value of the
conclusionattribute
-
payload
- Specified by:
payloadin interfaceActivityEventForm- Returns:
- The value of the
payloadattribute
-
sequence
- Specified by:
sequencein interfaceActivityEventForm- Returns:
- The value of the
sequenceattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withParent
Copy the current immutable object by setting a value for theparentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parent (can benull)- Returns:
- A modified copy of the
thisobject
-
withChainId
Copy the current immutable object by setting a value for thechainIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for chainId- Returns:
- A modified copy of the
thisobject
-
withOrigin
Copy the current immutable object by setting a value for theoriginattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for origin- Returns:
- A modified copy of the
thisobject
-
withCreatedAt
Copy the current immutable object by setting a value for thecreatedAtattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdAt- Returns:
- A modified copy of the
thisobject
-
withFinishedAt
Copy the current immutable object by setting a value for thefinishedAtattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for finishedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withConclusion
Copy the current immutable object by setting a value for theconclusionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for conclusion- Returns:
- A modified copy of the
thisobject
-
withPayload
Copy the current immutable object by setting a value for thepayloadattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for payload- Returns:
- A modified copy of the
thisobject
-
withSequence
Copy the current immutable object by setting a value for thesequenceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sequence- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableActivityEventFormthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,parent,chainId,origin,createdAt,finishedAt,conclusion,payload,sequence. -
toString
Prints the immutable valueActivityEventFormwith attribute values. -
copyOf
Creates an immutable copy of aActivityEventFormvalue. 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 ActivityEventForm instance
-
builder
Creates a builder forImmutableActivityEventForm.ImmutableActivityEventForm.builder() .id(String) // requiredid.parent(io.jenkins.plugins.trunk.model.event.ActivityEventParent | null) // nullableparent.chainId(String) // requiredchainId.origin(String) // requiredorigin.createdAt(Long) // requiredcreatedAt.finishedAt(Long | null) // nullablefinishedAt.conclusion(io.jenkins.plugins.trunk.model.event.ActivityConclusion) // requiredconclusion.payload(io.jenkins.plugins.trunk.model.event.ActivityPayloadForm) // requiredpayload.sequence(io.jenkins.plugins.trunk.model.event.SequenceForm) // requiredsequence.build();- Returns:
- A new ImmutableActivityEventForm builder
-