Class ResolvedAttachmentItem.Builder
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.ResolvedAttachmentItem.Builder
-
- Enclosing class:
- ResolvedAttachmentItem
public static final class ResolvedAttachmentItem.Builder extends Object
Builder to buildResolvedAttachmentItem
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResolvedAttachmentItem
build()
AttachmentItem
getAttachmentItem()
ResolvedAttachmentItem.Builder
withAttachment(IResolvedAttachment attachment)
ResolvedAttachmentItem.Builder
withAttachments(Iterable<IResolvedAttachment> attachments)
ResolvedAttachmentItem.Builder
withError(AAttachmentListResolutionError error)
-
-
-
Method Detail
-
build
public IResolvedAttachmentItem build()
- Returns:
- A new
IResolvedAttachmentItem
instance with the current data.
-
getAttachmentItem
public AttachmentItem getAttachmentItem()
- Returns:
- The attachment item for which the result is being built.
-
withAttachment
public ResolvedAttachmentItem.Builder withAttachment(IResolvedAttachment attachment)
- Parameters:
attachment
- Resolved attachment to add- Returns:
- This builder for chaining method calls.
-
withAttachments
public ResolvedAttachmentItem.Builder withAttachments(Iterable<IResolvedAttachment> attachments)
- Parameters:
attachments
- Resolved attachments to add- Returns:
- This builder for chaining method calls.
-
withError
public ResolvedAttachmentItem.Builder withError(AAttachmentListResolutionError error)
- Parameters:
error
- Type of the error.- Returns:
- This builder for chaining method calls.
-
-