Package io.micronaut.discovery
Interface ServiceInstance.Builder
- Enclosing interface:
- ServiceInstance
public static interface ServiceInstance.Builder
A builder for building
ServiceInstance
references.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets the application group.instanceId
(String id) Sets the instance id.Sets the application metadata.Sets the region.status
(HealthStatus status) Sets the application status.Sets the zone.
-
Method Details
-
instanceId
Sets the instance id.- Parameters:
id
- The instance id- Returns:
- This builder
-
zone
Sets the zone.- Parameters:
zone
- The zone- Returns:
- This builder
-
region
Sets the region.- Parameters:
region
- The region- Returns:
- This builder
-
group
Sets the application group.- Parameters:
group
- The group- Returns:
- This builder
-
status
Sets the application status.- Parameters:
status
- The status- Returns:
- This builder
-
metadata
Sets the application metadata.- Parameters:
metadata
- The metadata- Returns:
- This builder
-
build
ServiceInstance build()- Returns:
- The instance
-