@ConfigurationProperties(value="gcp")
public class GoogleCloudConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO_PROJECT_ID_MESSAGE
A message to report if no project id is configured.
|
static java.lang.String |
PREFIX
The prefix to use.
|
Constructor and Description |
---|
GoogleCloudConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProjectId()
Returns the Google project ID for the project.
|
boolean |
hasProjectId()
Whether a project id is configured.
|
void |
setProjectId(java.lang.String projectId)
Sets the project id to use.
|
public static final java.lang.String NO_PROJECT_ID_MESSAGE
public static final java.lang.String PREFIX
@Nonnull public java.lang.String getProjectId()
io.micronaut.context.exceptions.ConfigurationException
- if no project ID is foundpublic void setProjectId(@Nullable java.lang.String projectId)
projectId
- The project id to usepublic boolean hasProjectId()