property.put(propertyName, propertyValue);
this.configurations = AmUtils.toAmConfigurations(this.configurations, configurationType, property);
}
public ApiHostGroup toApiHostGroupForBlueprint() {
ApiHostGroup apiHostGroup = new ApiHostGroup();
apiHostGroup.setName(name);
apiHostGroup.setCardinality("1");
List<Map<String, Object>> apiConfigurations =
new ArrayList<Map<String, Object>>();
if (configurations != null) {
apiConfigurations = configurations;
}
apiHostGroup.setConfigurations(apiConfigurations);
List<ApiComponentInfo> apiComponents = new ArrayList<ApiComponentInfo>();
for (String componentName : components) {
ApiComponentInfo apiComponent = new ApiComponentInfo();
apiComponent.setName(componentName);
apiComponents.add(apiComponent);
}
apiHostGroup.setApiComponents(apiComponents);
return apiHostGroup;
}