All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lambda.runtime.api.client.util.EnvReader Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
/* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. */

package com.amazonaws.services.lambda.runtime.api.client.util;

import java.util.Map;

public class EnvReader {

    public Map getEnv() {
        return System.getenv();
    }

    public String getEnv(String envVariableName) {
        return System.getenv(envVariableName);
    }

    public String getEnvOrDefault(String envVariableName, String defaultVal) {
        String val = getEnv(envVariableName);
        return val == null ? defaultVal : val;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy