yamlConfig.writeConfig.setIndentSize(2);
yamlConfig.writeConfig.setWriteRootTags(false);
yamlConfig.writeConfig.setWriteRootElementTags(false);
yamlConfig.writeConfig.setWriteDefaultValues(true);
yamlConfig.setPropertyElementType(ClientDeploy.class, "requests", Request.class);
YamlWriter yamlWriter = new YamlWriter(stringWriter, yamlConfig);
ClientDeploy clientDeploy = new ClientDeploy(runtime, startTimeUsec, endTimeUsec, requests,
success, sdkVersion);
yamlWriter.write(clientDeploy);
yamlWriter.close();
return stringWriter.toString();
}