Class DuoHealthCheck.Builder
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.duo.model.DuoHealthCheck.Builder
-
- All Implemented Interfaces:
DuoHealthCheck.IBuildStage,DuoHealthCheck.IStatusStage
- Enclosing class:
- DuoHealthCheck
public static final class DuoHealthCheck.Builder extends Object implements DuoHealthCheck.IStatusStage, DuoHealthCheck.IBuildStage
Builder to buildDuoHealthCheck.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DuoHealthCheckbuild()Build the health check response.DuoHealthCheck.IBuildStagewithCode(String codeIn)Set the code.DuoHealthCheck.IBuildStagewithMessage(String msg)Set the message.DuoHealthCheck.IBuildStagewithMessageDetail(String msgDetail)Set the messageDetail.DuoHealthCheck.IBuildStagewithResponse(DuoHealthCheckResponse resp)Set the response.DuoHealthCheck.IBuildStagewithStatus(String stat)Set the status.DuoHealthCheck.IBuildStagewithTimestamp(String timestampIn)Set the timestamp.
-
-
-
Field Detail
-
status
private String status
The status.
-
response
private DuoHealthCheckResponse response
The response.
-
code
private String code
The code.
-
timestamp
private String timestamp
The timestamp.
-
message
private String message
The message.
-
messageDetail
private String messageDetail
The message detail.
-
-
Method Detail
-
withStatus
public DuoHealthCheck.IBuildStage withStatus(String stat)
Description copied from interface:DuoHealthCheck.IStatusStageSet the status.- Specified by:
withStatusin interfaceDuoHealthCheck.IStatusStage- Parameters:
stat- the status- Returns:
- the builder.
-
withResponse
public DuoHealthCheck.IBuildStage withResponse(DuoHealthCheckResponse resp)
Description copied from interface:DuoHealthCheck.IBuildStageSet the response.- Specified by:
withResponsein interfaceDuoHealthCheck.IBuildStage- Parameters:
resp- the response.- Returns:
- the builder.
-
withCode
public DuoHealthCheck.IBuildStage withCode(String codeIn)
Description copied from interface:DuoHealthCheck.IBuildStageSet the code.- Specified by:
withCodein interfaceDuoHealthCheck.IBuildStage- Parameters:
codeIn- the code- Returns:
- the builder.
-
withTimestamp
public DuoHealthCheck.IBuildStage withTimestamp(String timestampIn)
Description copied from interface:DuoHealthCheck.IBuildStageSet the timestamp.- Specified by:
withTimestampin interfaceDuoHealthCheck.IBuildStage- Parameters:
timestampIn- the timestamp- Returns:
- the builder.
-
withMessage
public DuoHealthCheck.IBuildStage withMessage(String msg)
Description copied from interface:DuoHealthCheck.IBuildStageSet the message.- Specified by:
withMessagein interfaceDuoHealthCheck.IBuildStage- Parameters:
msg- the message- Returns:
- the builder.
-
withMessageDetail
public DuoHealthCheck.IBuildStage withMessageDetail(String msgDetail)
Description copied from interface:DuoHealthCheck.IBuildStageSet the messageDetail.- Specified by:
withMessageDetailin interfaceDuoHealthCheck.IBuildStage- Parameters:
msgDetail- the messageDetail- Returns:
- the builder.
-
build
public DuoHealthCheck build()
Description copied from interface:DuoHealthCheck.IBuildStageBuild the health check response.- Specified by:
buildin interfaceDuoHealthCheck.IBuildStage- Returns:
- the health check response.
-
-