public void setForwardingRules()

in aliyun-java-sdk-ga/src/main/java/com/aliyuncs/ga/model/v20191120/CreateForwardingRulesRequest.java [82:140]


	public void setForwardingRules(List<ForwardingRules> forwardingRules) {
		this.forwardingRules = forwardingRules;	
		if (forwardingRules != null) {
			for (int depth1 = 0; depth1 < forwardingRules.size(); depth1++) {
				if (forwardingRules.get(depth1) != null) {
					
						putQueryParameter("ForwardingRules." + (depth1 + 1) + ".Priority" , forwardingRules.get(depth1).getPriority());
						if (forwardingRules.get(depth1).getRuleConditions() != null) {
							for (int depth2 = 0; depth2 < forwardingRules.get(depth1).getRuleConditions().size(); depth2++) {
								if (forwardingRules.get(depth1).getRuleConditions().get(depth2) != null) {
									
										putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleConditions." + (depth2 + 1) + ".RuleConditionType" , forwardingRules.get(depth1).getRuleConditions().get(depth2).getRuleConditionType());
										putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleConditions." + (depth2 + 1) + ".RuleConditionValue" , forwardingRules.get(depth1).getRuleConditions().get(depth2).getRuleConditionValue());
										if (forwardingRules.get(depth1).getRuleConditions().get(depth2).getPathConfig() != null) {
											
												if (forwardingRules.get(depth1).getRuleConditions().get(depth2).getPathConfig().getValues() != null) {
													for (int depth3 = 0; depth3 < forwardingRules.get(depth1).getRuleConditions().get(depth2).getPathConfig().getValues().size(); depth3++) {
														putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleConditions." + (depth2 + 1) + ".PathConfig.Values." + (depth3 + 1) , forwardingRules.get(depth1).getRuleConditions().get(depth2).getPathConfig().getValues().get(depth3));
													}
												}
										}
										if (forwardingRules.get(depth1).getRuleConditions().get(depth2).getHostConfig() != null) {
											
												if (forwardingRules.get(depth1).getRuleConditions().get(depth2).getHostConfig().getValues() != null) {
													for (int depth3 = 0; depth3 < forwardingRules.get(depth1).getRuleConditions().get(depth2).getHostConfig().getValues().size(); depth3++) {
														putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleConditions." + (depth2 + 1) + ".HostConfig.Values." + (depth3 + 1) , forwardingRules.get(depth1).getRuleConditions().get(depth2).getHostConfig().getValues().get(depth3));
													}
												}
										}
								}
							}
						}
						if (forwardingRules.get(depth1).getRuleActions() != null) {
							for (int depth2 = 0; depth2 < forwardingRules.get(depth1).getRuleActions().size(); depth2++) {
								if (forwardingRules.get(depth1).getRuleActions().get(depth2) != null) {
									
										putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleActions." + (depth2 + 1) + ".Order" , forwardingRules.get(depth1).getRuleActions().get(depth2).getOrder());
										putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleActions." + (depth2 + 1) + ".RuleActionType" , forwardingRules.get(depth1).getRuleActions().get(depth2).getRuleActionType());
										putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleActions." + (depth2 + 1) + ".RuleActionValue" , forwardingRules.get(depth1).getRuleActions().get(depth2).getRuleActionValue());
										if (forwardingRules.get(depth1).getRuleActions().get(depth2).getForwardGroupConfig() != null) {
											
												if (forwardingRules.get(depth1).getRuleActions().get(depth2).getForwardGroupConfig().getServerGroupTuples() != null) {
													for (int depth3 = 0; depth3 < forwardingRules.get(depth1).getRuleActions().get(depth2).getForwardGroupConfig().getServerGroupTuples().size(); depth3++) {
														if (forwardingRules.get(depth1).getRuleActions().get(depth2).getForwardGroupConfig().getServerGroupTuples().get(depth3) != null) {
															
																putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleActions." + (depth2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + (depth3 + 1) + ".EndpointGroupId" , forwardingRules.get(depth1).getRuleActions().get(depth2).getForwardGroupConfig().getServerGroupTuples().get(depth3).getEndpointGroupId());
														}
													}
												}
										}
								}
							}
						}
						putQueryParameter("ForwardingRules." + (depth1 + 1) + ".ForwardingRuleName" , forwardingRules.get(depth1).getForwardingRuleName());
						putQueryParameter("ForwardingRules." + (depth1 + 1) + ".RuleDirection" , forwardingRules.get(depth1).getRuleDirection());
				}
			}
		}	
	}