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 thechainIdattribute.conclusion(ActivityConclusion conclusion) Initializes the value for theconclusionattribute.Initializes the value for thecreatedAtattribute.finishedAt(Long finishedAt) Initializes the value for thefinishedAtattribute.from(ActivityEventForm instance) Fill a builder with attribute values from the providedActivityEventForminstance.Initializes the value for theidattribute.Initializes the value for theoriginattribute.parent(ActivityEventParent parent) Initializes the value for theparentattribute.payload(ActivityPayloadForm payload) Initializes the value for thepayloadattribute.sequence(SequenceForm sequence) Initializes the value for thesequenceattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedActivityEventForminstance. 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:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
parent
Initializes the value for theparentattribute.- Parameters:
parent- The value for parent (can benull)- Returns:
thisbuilder for use in a chained invocation
-
chainId
Initializes the value for thechainIdattribute.- Parameters:
chainId- The value for chainId- Returns:
thisbuilder for use in a chained invocation
-
origin
Initializes the value for theoriginattribute.- Parameters:
origin- The value for origin- Returns:
thisbuilder for use in a chained invocation
-
createdAt
Initializes the value for thecreatedAtattribute.- Parameters:
createdAt- The value for createdAt- Returns:
thisbuilder for use in a chained invocation
-
finishedAt
Initializes the value for thefinishedAtattribute.- Parameters:
finishedAt- The value for finishedAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
conclusion
Initializes the value for theconclusionattribute.- Parameters:
conclusion- The value for conclusion- Returns:
thisbuilder for use in a chained invocation
-
payload
Initializes the value for thepayloadattribute.- Parameters:
payload- The value for payload- Returns:
thisbuilder for use in a chained invocation
-
sequence
Initializes the value for thesequenceattribute.- Parameters:
sequence- The value for sequence- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableActivityEventForm.- Returns:
- An immutable instance of ActivityEventForm
- Throws:
IllegalStateException- if any required attributes are missing
-