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