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 build
DuoHealthCheck.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the health check response.Set the code.withMessage(String msg) Set the message.withMessageDetail(String msgDetail) Set the messageDetail.Set the response.withStatus(String stat) Set the status.withTimestamp(String timestampIn) Set the timestamp.
-
Field Details
-
status
The status. -
response
The response. -
code
The code. -
timestamp
The timestamp. -
message
The message. -
messageDetail
The message detail.
-
-
Constructor Details
-
Builder
private Builder()Constructor.
-
-
Method Details
-
withStatus
Description copied from interface:DuoHealthCheck.IStatusStageSet the status.- Specified by:
withStatusin interfaceDuoHealthCheck.IStatusStage- Parameters:
stat- the status- Returns:
- the builder.
-
withResponse
Description copied from interface:DuoHealthCheck.IBuildStageSet the response.- Specified by:
withResponsein interfaceDuoHealthCheck.IBuildStage- Parameters:
resp- the response.- Returns:
- the builder.
-
withCode
Description copied from interface:DuoHealthCheck.IBuildStageSet the code.- Specified by:
withCodein interfaceDuoHealthCheck.IBuildStage- Parameters:
codeIn- the code- Returns:
- the builder.
-
withTimestamp
Description copied from interface:DuoHealthCheck.IBuildStageSet the timestamp.- Specified by:
withTimestampin interfaceDuoHealthCheck.IBuildStage- Parameters:
timestampIn- the timestamp- Returns:
- the builder.
-
withMessage
Description copied from interface:DuoHealthCheck.IBuildStageSet the message.- Specified by:
withMessagein interfaceDuoHealthCheck.IBuildStage- Parameters:
msg- the message- Returns:
- the builder.
-
withMessageDetail
Description copied from interface:DuoHealthCheck.IBuildStageSet the messageDetail.- Specified by:
withMessageDetailin interfaceDuoHealthCheck.IBuildStage- Parameters:
msgDetail- the messageDetail- Returns:
- the builder.
-
build
Description copied from interface:DuoHealthCheck.IBuildStageBuild the health check response.- Specified by:
buildin interfaceDuoHealthCheck.IBuildStage- Returns:
- the health check response.
-