apiBlueprint.setApiHostGroups(apiHostGroups);
return apiBlueprint;
}
public ApiClusterBlueprint toApiClusterBlueprint() {
ApiClusterBlueprint apiClusterBlueprint = new ApiClusterBlueprint();
apiClusterBlueprint.setBlueprint(name);
List<ApiHostGroup> apiHostGroups = new ArrayList<ApiHostGroup>();
for (AmNodeDef node : nodes) {
apiHostGroups.add(node.toApiHostGroupForClusterBlueprint());
}
apiClusterBlueprint.setApiHostGroups(apiHostGroups);
return apiClusterBlueprint;
}