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