@ConfigurationProperties(value="instance") public static class ApplicationConfiguration.InstanceConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INSTANCE_ID
Property name for Micronaut instance id.
|
static String |
PREFIX
Prefix for Micronaut instance settings.
|
Constructor and Description |
---|
InstanceConfiguration() |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getGroup() |
Optional<String> |
getId() |
Map<String,String> |
getMetadata() |
Optional<String> |
getZone() |
void |
setGroup(String group) |
void |
setId(String id) |
void |
setMetadata(Map<String,String> metadata) |
void |
setZone(String zone) |
public static final String PREFIX
public static final String INSTANCE_ID
public void setId(String id)
id
- The instance identifierpublic Map<String,String> getMetadata()
public void setMetadata(Map<String,String> metadata)
metadata
- The metadata to associate with the instancepublic void setGroup(String group)
group
- The instance auto scaling grouppublic Optional<String> getZone()
public void setZone(String zone)
zone
- The instance availability zone