public void setContainers()

in aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/model/v20140828/CreateEciScalingConfigurationRequest.java [137:242]


	public void setContainers(List<Container> containers) {
		this.containers = containers;	
		if (containers != null) {
			for (int depth1 = 0; depth1 < containers.size(); depth1++) {
				putQueryParameter("Container." + (depth1 + 1) + ".Stdin" , containers.get(depth1).getStdin());
				if (containers.get(depth1).getLivenessProbeExecCommands() != null) {
					for (int i = 0; i < containers.get(depth1).getLivenessProbeExecCommands().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.Exec.Command." + (i + 1) , containers.get(depth1).getLivenessProbeExecCommands().get(i));
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerHttpGetPort" , containers.get(depth1).getLifecyclePostStartHandlerHttpGetPort());
				putQueryParameter("Container." + (depth1 + 1) + ".WorkingDir" , containers.get(depth1).getWorkingDir());
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.HttpGet.Port" , containers.get(depth1).getReadinessProbeHttpGetPort());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.HttpGet.Port" , containers.get(depth1).getLivenessProbeHttpGetPort());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerTcpSocketPort" , containers.get(depth1).getLifecyclePreStopHandlerTcpSocketPort());
				if (containers.get(depth1).getVolumeMounts() != null) {
					for (int depth2 = 0; depth2 < containers.get(depth1).getVolumeMounts().size(); depth2++) {
						putQueryParameter("Container." + (depth1 + 1) + ".VolumeMount." + (depth2 + 1) + ".MountPath" , containers.get(depth1).getVolumeMounts().get(depth2).getMountPath());
						putQueryParameter("Container." + (depth1 + 1) + ".VolumeMount." + (depth2 + 1) + ".ReadOnly" , containers.get(depth1).getVolumeMounts().get(depth2).getReadOnly());
						putQueryParameter("Container." + (depth1 + 1) + ".VolumeMount." + (depth2 + 1) + ".MountPropagation" , containers.get(depth1).getVolumeMounts().get(depth2).getMountPropagation());
						putQueryParameter("Container." + (depth1 + 1) + ".VolumeMount." + (depth2 + 1) + ".Name" , containers.get(depth1).getVolumeMounts().get(depth2).getName());
						putQueryParameter("Container." + (depth1 + 1) + ".VolumeMount." + (depth2 + 1) + ".SubPath" , containers.get(depth1).getVolumeMounts().get(depth2).getSubPath());
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".Image" , containers.get(depth1).getImage());
				if (containers.get(depth1).getLifecyclePostStartHandlerExecs() != null) {
					for (int i = 0; i < containers.get(depth1).getLifecyclePostStartHandlerExecs().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerExec." + (i + 1) , containers.get(depth1).getLifecyclePostStartHandlerExecs().get(i));
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".Cpu" , containers.get(depth1).getCpu());
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.HttpGet.Path" , containers.get(depth1).getReadinessProbeHttpGetPath());
				putQueryParameter("Container." + (depth1 + 1) + ".Gpu" , containers.get(depth1).getGpu());
				putQueryParameter("Container." + (depth1 + 1) + ".StdinOnce" , containers.get(depth1).getStdinOnce());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerTcpSocketHost" , containers.get(depth1).getLifecyclePostStartHandlerTcpSocketHost());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.SuccessThreshold" , containers.get(depth1).getLivenessProbeSuccessThreshold());
				putQueryParameter("Container." + (depth1 + 1) + ".SecurityContext.RunAsUser" , containers.get(depth1).getSecurityContextRunAsUser());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.PeriodSeconds" , containers.get(depth1).getLivenessProbePeriodSeconds());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.InitialDelaySeconds" , containers.get(depth1).getLivenessProbeInitialDelaySeconds());
				if (containers.get(depth1).getPorts() != null) {
					for (int depth2 = 0; depth2 < containers.get(depth1).getPorts().size(); depth2++) {
						putQueryParameter("Container." + (depth1 + 1) + ".Port." + (depth2 + 1) + ".Protocol" , containers.get(depth1).getPorts().get(depth2).getBizProtocol());
						putQueryParameter("Container." + (depth1 + 1) + ".Port." + (depth2 + 1) + ".Port" , containers.get(depth1).getPorts().get(depth2).getPort());
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".Name" , containers.get(depth1).getName());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerTcpSocketHost" , containers.get(depth1).getLifecyclePreStopHandlerTcpSocketHost());
				putQueryParameter("Container." + (depth1 + 1) + ".SecurityContext.ReadOnlyRootFilesystem" , containers.get(depth1).getSecurityContextReadOnlyRootFilesystem());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerHttpGetHost" , containers.get(depth1).getLifecyclePreStopHandlerHttpGetHost());
				putQueryParameter("Container." + (depth1 + 1) + ".Memory" , containers.get(depth1).getMemory());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerHttpGetScheme" , containers.get(depth1).getLifecyclePreStopHandlerHttpGetScheme());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerTcpSocketPort" , containers.get(depth1).getLifecyclePostStartHandlerTcpSocketPort());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerHttpGetPath" , containers.get(depth1).getLifecyclePreStopHandlerHttpGetPath());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerHttpGetHost" , containers.get(depth1).getLifecyclePostStartHandlerHttpGetHost());
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.FailureThreshold" , containers.get(depth1).getReadinessProbeFailureThreshold());
				if (containers.get(depth1).getArgs() != null) {
					for (int i = 0; i < containers.get(depth1).getArgs().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".Arg." + (i + 1) , containers.get(depth1).getArgs().get(i));
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.SuccessThreshold" , containers.get(depth1).getReadinessProbeSuccessThreshold());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerHttpGetPath" , containers.get(depth1).getLifecyclePostStartHandlerHttpGetPath());
				if (containers.get(depth1).getLifecyclePreStopHandlerExecs() != null) {
					for (int i = 0; i < containers.get(depth1).getLifecyclePreStopHandlerExecs().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerExec." + (i + 1) , containers.get(depth1).getLifecyclePreStopHandlerExecs().get(i));
					}
				}
				if (containers.get(depth1).getSecurityContextCapabilityAdds() != null) {
					for (int i = 0; i < containers.get(depth1).getSecurityContextCapabilityAdds().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".SecurityContext.Capability.Add." + (i + 1) , containers.get(depth1).getSecurityContextCapabilityAdds().get(i));
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.InitialDelaySeconds" , containers.get(depth1).getReadinessProbeInitialDelaySeconds());
				if (containers.get(depth1).getReadinessProbeExecCommands() != null) {
					for (int i = 0; i < containers.get(depth1).getReadinessProbeExecCommands().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.Exec.Command." + (i + 1) , containers.get(depth1).getReadinessProbeExecCommands().get(i));
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.HttpGet.Scheme" , containers.get(depth1).getReadinessProbeHttpGetScheme());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePreStopHandlerHttpGetPort" , containers.get(depth1).getLifecyclePreStopHandlerHttpGetPort());
				putQueryParameter("Container." + (depth1 + 1) + ".ImagePullPolicy" , containers.get(depth1).getImagePullPolicy());
				if (containers.get(depth1).getCommands() != null) {
					for (int i = 0; i < containers.get(depth1).getCommands().size(); i++) {
						putQueryParameter("Container." + (depth1 + 1) + ".Command." + (i + 1) , containers.get(depth1).getCommands().get(i));
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.HttpGet.Path" , containers.get(depth1).getLivenessProbeHttpGetPath());
				putQueryParameter("Container." + (depth1 + 1) + ".LifecyclePostStartHandlerHttpGetScheme" , containers.get(depth1).getLifecyclePostStartHandlerHttpGetScheme());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.TimeoutSeconds" , containers.get(depth1).getLivenessProbeTimeoutSeconds());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.TcpSocket.Port" , containers.get(depth1).getLivenessProbeTcpSocketPort());
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.PeriodSeconds" , containers.get(depth1).getReadinessProbePeriodSeconds());
				if (containers.get(depth1).getEnvironmentVars() != null) {
					for (int depth2 = 0; depth2 < containers.get(depth1).getEnvironmentVars().size(); depth2++) {
						putQueryParameter("Container." + (depth1 + 1) + ".EnvironmentVar." + (depth2 + 1) + ".FieldRefFieldPath" , containers.get(depth1).getEnvironmentVars().get(depth2).getFieldRefFieldPath());
						putQueryParameter("Container." + (depth1 + 1) + ".EnvironmentVar." + (depth2 + 1) + ".Value" , containers.get(depth1).getEnvironmentVars().get(depth2).getValue());
						putQueryParameter("Container." + (depth1 + 1) + ".EnvironmentVar." + (depth2 + 1) + ".Key" , containers.get(depth1).getEnvironmentVars().get(depth2).getKey());
					}
				}
				putQueryParameter("Container." + (depth1 + 1) + ".Tty" , containers.get(depth1).getTty());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.FailureThreshold" , containers.get(depth1).getLivenessProbeFailureThreshold());
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.TimeoutSeconds" , containers.get(depth1).getReadinessProbeTimeoutSeconds());
				putQueryParameter("Container." + (depth1 + 1) + ".ReadinessProbe.TcpSocket.Port" , containers.get(depth1).getReadinessProbeTcpSocketPort());
				putQueryParameter("Container." + (depth1 + 1) + ".LivenessProbe.HttpGet.Scheme" , containers.get(depth1).getLivenessProbeHttpGetScheme());
			}
		}	
	}