appendIfNotNull(builder, " max_idle_instances: ", settings.getMaxIdleInstances());
appendIfNotNull(builder, " max_concurrent_requests: ", settings.getMaxConcurrentRequests());
appendIfNotNull(builder, " min_num_instances: ", settings.getMinNumInstances());
appendIfNotNull(builder, " max_num_instances: ", settings.getMaxNumInstances());
appendIfNotNull(builder, " cool_down_period_sec: ", settings.getCoolDownPeriodSec());
CpuUtilization cpuUtil = settings.getCpuUtilization();
if (cpuUtil != null
&& (cpuUtil.getTargetUtilization() != null
|| cpuUtil.getAggregationWindowLengthSec() != null)) {
builder.append(" cpu_utilization:\n");
appendIfNotNull(builder, " target_utilization: ", cpuUtil.getTargetUtilization());
appendIfNotNull(
builder, " aggregation_window_length_sec: ",
cpuUtil.getAggregationWindowLengthSec());
}
}
if (!appEngineWebXml.getManualScaling().isEmpty()) {
builder.append("manual_scaling:\n");