Class Info.Builder
java.lang.Object
org.springframework.boot.actuate.info.Info.Builder
- Enclosing class:
- Info
Builder for creating immutable
Info instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a newInfoinstance based on the state of this builder.withDetail(String key, Object value) Record detail using givenkeyandvalue.withDetails(Map<String, Object> details) Record several details.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withDetail
Record detail using givenkeyandvalue.- Parameters:
key- the detail keyvalue- the detail value- Returns:
- this
Info.Builderinstance
-
withDetails
Record several details.- Parameters:
details- the details- Returns:
- this
Info.Builderinstance - See Also:
-
build
Create a newInfoinstance based on the state of this builder.- Returns:
- a new
Infoinstance
-