public static final class ServiceTypes.Info.Builder extends Object
ServiceTypes.Info
.Constructor and Description |
---|
ServiceTypes.Info.Builder(String nameKey,
String descriptionKey,
ServiceTypes.StartupType startupType,
ServiceTypes.State state)
Constructor with parameters for the required properties of
ServiceTypes.Info . |
Modifier and Type | Method and Description |
---|---|
ServiceTypes.Info |
build() |
ServiceTypes.Info.Builder |
setHealth(ServiceTypes.Health health)
Health of service.
|
ServiceTypes.Info.Builder |
setHealthMessages(List<LocalizableMessage> healthMessages)
Localizable messages associated with the health of the service
This property is optional and it is only relevant when the value of
getState() is ServiceTypes.State.STARTED . |
public ServiceTypes.Info.Builder(String nameKey, String descriptionKey, ServiceTypes.StartupType startupType, ServiceTypes.State state)
ServiceTypes.Info
.public ServiceTypes.Info.Builder setHealth(ServiceTypes.Health health)
getState()
is ServiceTypes.State.STARTED
.health
- New value for the property.public ServiceTypes.Info.Builder setHealthMessages(List<LocalizableMessage> healthMessages)
getState()
is ServiceTypes.State.STARTED
.healthMessages
- New value for the property.public ServiceTypes.Info build()
Copyright © 2016. All Rights Reserved.