Class GoogleCloudConfiguration

java.lang.Object
io.micronaut.gcp.GoogleCloudConfiguration

@ConfigurationProperties("gcp") public class GoogleCloudConfiguration extends Object
General Google cloud configuration.
Since:
1.0
Author:
graemerocher, Ray Tsang
  • Field Details

  • Constructor Details

    • GoogleCloudConfiguration

      public GoogleCloudConfiguration()
  • Method Details

    • getProjectId

      @NonNull public @NonNull String getProjectId()
      Returns the Google project ID for the project.
      Returns:
      The project id
      Throws:
      io.micronaut.context.exceptions.ConfigurationException - if no project ID is found
    • setProjectId

      public void setProjectId(@Nullable @Nullable String projectId)
      Sets the project id to use.
      Parameters:
      projectId - The project id to use
    • hasProjectId

      public boolean hasProjectId()
      Whether a project id is configured.
      Returns:
      True if one is