public static interface ServiceInstance.Builder
ServiceInstance
references.Modifier and Type | Method and Description |
---|---|
ServiceInstance |
build() |
ServiceInstance.Builder |
group(String group)
Sets the application group.
|
ServiceInstance.Builder |
instanceId(String id)
Sets the instance id.
|
ServiceInstance.Builder |
metadata(Map<String,String> metadata)
Sets the application metadata.
|
ServiceInstance.Builder |
region(String region)
Sets the region.
|
ServiceInstance.Builder |
status(HealthStatus status)
Sets the application status.
|
ServiceInstance.Builder |
zone(String zone)
Sets the zone.
|
ServiceInstance.Builder instanceId(String id)
id
- The instance idServiceInstance.Builder zone(String zone)
zone
- The zoneServiceInstance.Builder region(String region)
region
- The regionServiceInstance.Builder group(String group)
group
- The groupServiceInstance.Builder status(HealthStatus status)
status
- The statusServiceInstance.Builder metadata(Map<String,String> metadata)
metadata
- The metadataServiceInstance build()