Example usage for com.amazonaws.services.simplesystemsmanagement.model Parameter getName

List of usage examples for com.amazonaws.services.simplesystemsmanagement.model Parameter getName

Introduction

In this page you can find the example usage for com.amazonaws.services.simplesystemsmanagement.model Parameter getName.

Prototype


public String getName() 

Source Link

Document

The name of the parameter.

Usage

From source file:org.springframework.cloud.aws.paramstore.AwsParamStorePropertySource.java

License:Apache License

private void getParameters(GetParametersByPathRequest paramsRequest) {
    GetParametersByPathResult paramsResult = source.getParametersByPath(paramsRequest);
    for (Parameter parameter : paramsResult.getParameters()) {
        String key = parameter.getName().replace(context, "").replace('/', '.');
        properties.put(key, parameter.getValue());
    }/*from   ww  w  .  j ava 2s.  c  om*/
    if (paramsResult.getNextToken() != null) {
        getParameters(paramsRequest.withNextToken(paramsResult.getNextToken()));
    }
}