/** * <p> * The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS * CloudFormation uses the default value that is specified in your template. * </p> * * @param parameterKey * The key associated with the parameter. If you don't specify a key and value for a particular parameter, * AWS CloudFormation uses the default value that is specified in your template. * @return Returns a reference to this object so that method calls can be chained together. */ public Parameter withParameterKey(String parameterKey) { setParameterKey(parameterKey); return this; }
parameter.setParameterKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS * CloudFormation uses the default value that is specified in your template. * </p> * * @param parameterKey * The key associated with the parameter. If you don't specify a key and value for a particular parameter, * AWS CloudFormation uses the default value that is specified in your template. * @return Returns a reference to this object so that method calls can be chained together. */ public Parameter withParameterKey(String parameterKey) { setParameterKey(parameterKey); return this; }
private List<Parameter> parameters(Map<String, String> parameters) { if (parameters == null || parameters.values().size() == 0) { return null; } List<Parameter> result = Lists.newArrayList(); Parameter parameter = null; for (String name : parameters.keySet()) { parameter = new Parameter(); parameter.setParameterKey(name); parameter.setParameterValue(parameters.get(name)); result.add(parameter); } return result; }
private List<Parameter> toArrayOfParameters(final String parameters) { if ( StringUtils.isEmpty(parameters)) { return new ArrayList<>(); } final List<Parameter> parametersList = new ArrayList<>(); for (String line : parameters.split(StringUtils.LF)) { final ParametersLine paramLine = new ParametersLine(line); if (paramLine.isValid()) { final Parameter parameter = new Parameter(); parameter.setParameterKey(paramLine.getKey()); parameter.setParameterValue(paramLine.getValue()); parametersList.add(parameter); } } return parametersList; }
parameter.setParameterKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;