Class ParameterQuery

java.lang.Object
io.micronaut.discovery.aws.parameterstore.ParameterQuery

public class ParameterQuery extends Object
An object encapsulating all necessary parameters to perform a request for configuration values to the Parameter Store, as well as the name of the resulting property source and associated priority.
Since:
2.3.0
Author:
ttzn
  • Constructor Details

    • ParameterQuery

      public ParameterQuery(String path, String propertySourceName, int priority)
    • ParameterQuery

      public ParameterQuery(String path, String propertySourceName, int priority, boolean name)
  • Method Details

    • getPath

      public String getPath()
      Returns:
      the path to be used when querying the Parameter Store; if isName() is true, it will be used as names in a GetParameters request, call, otherwise it is the path parameter of a GetParametersByPath.
    • getPropertySourceName

      public String getPropertySourceName()
      Returns:
      the name of the property source that will hold the retrieved configuration values.
    • isName

      public boolean isName()
      Returns:
      whether the current query should be performed using the GetParameters API instead of GetParametersByPath. This is almost never not what you want.
    • getPriority

      public int getPriority()
      Returns:
      the priority of the property source that will hold the retrieved configuration values.