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
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableActivityEventForm
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableActivityEventForm
.chainId()
static ImmutableActivityEventForm
copyOf
(ActivityEventForm instance) Creates an immutable copy of aActivityEventForm
value.boolean
This instance is equal to all instances ofImmutableActivityEventForm
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,parent
,chainId
,origin
,createdAt
,finishedAt
,conclusion
,payload
,sequence
.id()
origin()
parent()
payload()
sequence()
toString()
Prints the immutable valueActivityEventForm
with attribute values.withChainId
(String value) Copy the current immutable object by setting a value for thechainId
attribute.withConclusion
(ActivityConclusion value) Copy the current immutable object by setting a value for theconclusion
attribute.withCreatedAt
(Long value) Copy the current immutable object by setting a value for thecreatedAt
attribute.withFinishedAt
(Long value) Copy the current immutable object by setting a value for thefinishedAt
attribute.Copy the current immutable object by setting a value for theid
attribute.withOrigin
(String value) Copy the current immutable object by setting a value for theorigin
attribute.withParent
(ActivityEventParent value) Copy the current immutable object by setting a value for theparent
attribute.withPayload
(ActivityPayloadForm value) Copy the current immutable object by setting a value for thepayload
attribute.withSequence
(SequenceForm value) Copy the current immutable object by setting a value for thesequence
attribute.
-
Method Details
-
id
- Specified by:
id
in interfaceActivityEventForm
- Returns:
- The value of the
id
attribute
-
parent
- Specified by:
parent
in interfaceActivityEventForm
- Returns:
- The value of the
parent
attribute
-
chainId
- Specified by:
chainId
in interfaceActivityEventForm
- Returns:
- The value of the
chainId
attribute
-
origin
- Specified by:
origin
in interfaceActivityEventForm
- Returns:
- The value of the
origin
attribute
-
createdAt
- Specified by:
createdAt
in interfaceActivityEventForm
- Returns:
- The value of the
createdAt
attribute
-
finishedAt
- Specified by:
finishedAt
in interfaceActivityEventForm
- Returns:
- The value of the
finishedAt
attribute
-
conclusion
- Specified by:
conclusion
in interfaceActivityEventForm
- Returns:
- The value of the
conclusion
attribute
-
payload
- Specified by:
payload
in interfaceActivityEventForm
- Returns:
- The value of the
payload
attribute
-
sequence
- Specified by:
sequence
in interfaceActivityEventForm
- Returns:
- The value of the
sequence
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. 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
this
object
-
withParent
Copy the current immutable object by setting a value for theparent
attribute. 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
this
object
-
withChainId
Copy the current immutable object by setting a value for thechainId
attribute. 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
this
object
-
withOrigin
Copy the current immutable object by setting a value for theorigin
attribute. 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
this
object
-
withCreatedAt
Copy the current immutable object by setting a value for thecreatedAt
attribute. 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
this
object
-
withFinishedAt
Copy the current immutable object by setting a value for thefinishedAt
attribute. 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
this
object
-
withConclusion
Copy the current immutable object by setting a value for theconclusion
attribute. 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
this
object
-
withPayload
Copy the current immutable object by setting a value for thepayload
attribute. 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
this
object
-
withSequence
Copy the current immutable object by setting a value for thesequence
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableActivityEventForm
that 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 valueActivityEventForm
with attribute values. -
copyOf
Creates an immutable copy of aActivityEventForm
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 ActivityEventForm instance
-
builder
Creates a builder forImmutableActivityEventForm
.ImmutableActivityEventForm.builder() .id(String) // required
id
.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
-