Class ImmutableActivityEventForm.Builder
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityEventForm.Builder
- Enclosing class:
ImmutableActivityEventForm
Builds instances of type
ImmutableActivityEventForm
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutableActivityEventForm
.Initializes the value for thechainId
attribute.conclusion
(ActivityConclusion conclusion) Initializes the value for theconclusion
attribute.Initializes the value for thecreatedAt
attribute.finishedAt
(Long finishedAt) Initializes the value for thefinishedAt
attribute.from
(ActivityEventForm instance) Fill a builder with attribute values from the providedActivityEventForm
instance.Initializes the value for theid
attribute.Initializes the value for theorigin
attribute.parent
(ActivityEventParent parent) Initializes the value for theparent
attribute.payload
(ActivityPayloadForm payload) Initializes the value for thepayload
attribute.sequence
(SequenceForm sequence) Initializes the value for thesequence
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedActivityEventForm
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
id
Initializes the value for theid
attribute.- Parameters:
id
- The value for id- Returns:
this
builder for use in a chained invocation
-
parent
Initializes the value for theparent
attribute.- Parameters:
parent
- The value for parent (can benull
)- Returns:
this
builder for use in a chained invocation
-
chainId
Initializes the value for thechainId
attribute.- Parameters:
chainId
- The value for chainId- Returns:
this
builder for use in a chained invocation
-
origin
Initializes the value for theorigin
attribute.- Parameters:
origin
- The value for origin- Returns:
this
builder for use in a chained invocation
-
createdAt
Initializes the value for thecreatedAt
attribute.- Parameters:
createdAt
- The value for createdAt- Returns:
this
builder for use in a chained invocation
-
finishedAt
Initializes the value for thefinishedAt
attribute.- Parameters:
finishedAt
- The value for finishedAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
conclusion
Initializes the value for theconclusion
attribute.- Parameters:
conclusion
- The value for conclusion- Returns:
this
builder for use in a chained invocation
-
payload
Initializes the value for thepayload
attribute.- Parameters:
payload
- The value for payload- Returns:
this
builder for use in a chained invocation
-
sequence
Initializes the value for thesequence
attribute.- Parameters:
sequence
- The value for sequence- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableActivityEventForm
.- Returns:
- An immutable instance of ActivityEventForm
- Throws:
IllegalStateException
- if any required attributes are missing
-