Package com.flagright.api.types
Class SarWebhookDetails.Builder
- java.lang.Object
-
- com.flagright.api.types.SarWebhookDetails.Builder
-
- All Implemented Interfaces:
SarWebhookDetails._FinalStage,SarWebhookDetails.ReportIdStage,SarWebhookDetails.StatusStage
- Enclosing class:
- SarWebhookDetails
public static final class SarWebhookDetails.Builder extends java.lang.Object implements SarWebhookDetails.ReportIdStage, SarWebhookDetails.StatusStage, SarWebhookDetails._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SarWebhookDetailsbuild()SarWebhookDetails._FinalStagecaseId(java.lang.String caseId)ID of the case the SAR is associated with, if anySarWebhookDetails._FinalStagecaseId(java.util.Optional<java.lang.String> caseId)SarWebhookDetails._FinalStagecreatedAt(java.lang.Double createdAt)Timestamp at which the SAR was created.SarWebhookDetails._FinalStagecreatedAt(java.util.Optional<java.lang.Double> createdAt)SarWebhookDetails.Builderfrom(SarWebhookDetails other)SarWebhookDetails.StatusStagereportId(java.lang.String reportId)Unique identifier of the SAR reportSarWebhookDetails._FinalStagestatus(SarReportStatus status)SarWebhookDetails._FinalStageuserId(java.lang.String userId)ID of the subject user the SAR is filed against, if anySarWebhookDetails._FinalStageuserId(java.util.Optional<java.lang.String> userId)
-
-
-
Method Detail
-
from
public SarWebhookDetails.Builder from(SarWebhookDetails other)
- Specified by:
fromin interfaceSarWebhookDetails.ReportIdStage
-
reportId
public SarWebhookDetails.StatusStage reportId(@NotNull java.lang.String reportId)
Unique identifier of the SAR report
- Specified by:
reportIdin interfaceSarWebhookDetails.ReportIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public SarWebhookDetails._FinalStage status(@NotNull SarReportStatus status)
- Specified by:
statusin interfaceSarWebhookDetails.StatusStage
-
createdAt
public SarWebhookDetails._FinalStage createdAt(java.lang.Double createdAt)
Timestamp at which the SAR was created. Measured in ms since the Unix epoch.
- Specified by:
createdAtin interfaceSarWebhookDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public SarWebhookDetails._FinalStage createdAt(java.util.Optional<java.lang.Double> createdAt)
- Specified by:
createdAtin interfaceSarWebhookDetails._FinalStage
-
caseId
public SarWebhookDetails._FinalStage caseId(java.lang.String caseId)
ID of the case the SAR is associated with, if any
- Specified by:
caseIdin interfaceSarWebhookDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
caseId
public SarWebhookDetails._FinalStage caseId(java.util.Optional<java.lang.String> caseId)
- Specified by:
caseIdin interfaceSarWebhookDetails._FinalStage
-
userId
public SarWebhookDetails._FinalStage userId(java.lang.String userId)
ID of the subject user the SAR is filed against, if any
- Specified by:
userIdin interfaceSarWebhookDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public SarWebhookDetails._FinalStage userId(java.util.Optional<java.lang.String> userId)
- Specified by:
userIdin interfaceSarWebhookDetails._FinalStage
-
build
public SarWebhookDetails build()
- Specified by:
buildin interfaceSarWebhookDetails._FinalStage
-
-