Example usage for com.amazonaws.services.simplesystemsmanagement.model GetParametersByPathRequest withNextToken

List of usage examples for com.amazonaws.services.simplesystemsmanagement.model GetParametersByPathRequest withNextToken

Introduction

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

Prototype


public GetParametersByPathRequest withNextToken(String nextToken) 

Source Link

Document

A token to start the list.

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  www. j  a  va  2 s . c om*/
    if (paramsResult.getNextToken() != null) {
        getParameters(paramsRequest.withNextToken(paramsResult.getNextToken()));
    }
}