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 immutableInfoinstances.
Constructor Summary
Constructors Constructor Description Builder()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Infobuild()Create a newInfoinstance based on the state of this builder.Info.BuilderwithDetail(String key, Object value)Record detail using givenkeyandvalue.Info.BuilderwithDetails(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 givenkeyandvalue.- Parameters:
key- the detail keyvalue- the detail value- Returns:
- this
Info.Builderinstance
withDetails
public Info.Builder withDetails(Map<String,Object> details)
Record several details.- Parameters:
details- the details- Returns:
- this
Info.Builderinstance - See Also:
withDetail(String, Object)