Class EnvironmentVariable.BulkBuilder

  • Enclosing class:
    EnvironmentVariable

    public static class EnvironmentVariable.BulkBuilder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BulkBuilder​(java.util.regex.Pattern envKeyPattern)  
    • Constructor Detail

      • BulkBuilder

        public BulkBuilder​(java.util.regex.Pattern envKeyPattern)
    • Method Detail

      • withCustom

        public EnvironmentVariable.BulkBuilder withCustom​(java.util.function.Consumer<EnvironmentVariable.Builder> builderFunction)
        Use this to apply variable logic to customize each Env Var Builder that is accumulated by the Bulk Builder. This might be useful if you are retrieving a set of EnvironmentVariables that may need different properties applied to their Builders.
        Parameters:
        builderFunction - Custom Function that will be applied to each env var before build()
        Returns:
        BulkBuilder object
      • build

        public java.util.List<EnvironmentVariable> build()
        Build a list of EnvironmentVariables with all of the variables that match the supplied pattern.
        Returns:
        List of resolved EnvironmentVariable objects