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