public static final class ServiceTypes.Info.Builder
extends java.lang.Object
ServiceTypes.Info
.Constructor and Description |
---|
Builder(java.lang.String nameKey,
java.lang.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(java.util.List<LocalizableMessage> healthMessages)
Localizable messages associated with the health of the service.
|
public Builder(java.lang.String nameKey, java.lang.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(java.util.List<LocalizableMessage> healthMessages)
getState()
is ServiceTypes.State.STARTED
.healthMessages
- New value for the property.public ServiceTypes.Info build()