in aliyun-java-sdk-ga/src/main/java/com/aliyuncs/ga/model/v20191120/CreateListenerRequest.java [91:144]
public void setCustomRoutingEndpointGroupConfigurations(List<CustomRoutingEndpointGroupConfigurations> customRoutingEndpointGroupConfigurations) {
this.customRoutingEndpointGroupConfigurations = customRoutingEndpointGroupConfigurations;
if (customRoutingEndpointGroupConfigurations != null) {
for (int depth1 = 0; depth1 < customRoutingEndpointGroupConfigurations.size(); depth1++) {
if (customRoutingEndpointGroupConfigurations.get(depth1) != null) {
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointGroupRegion" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointGroupRegion());
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".Name" , customRoutingEndpointGroupConfigurations.get(depth1).getName());
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".Description" , customRoutingEndpointGroupConfigurations.get(depth1).getDescription());
if (customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations() != null) {
for (int depth2 = 0; depth2 < customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().size(); depth2++) {
if (customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().get(depth2) != null) {
if (customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().get(depth2).getProtocols() != null) {
for (int depth3 = 0; depth3 < customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().get(depth2).getProtocols().size(); depth3++) {
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".DestinationConfigurations." + (depth2 + 1) + ".Protocols." + (depth3 + 1) , customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().get(depth2).getProtocols().get(depth3));
}
}
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".DestinationConfigurations." + (depth2 + 1) + ".FromPort" , customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().get(depth2).getFromPort());
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".DestinationConfigurations." + (depth2 + 1) + ".ToPort" , customRoutingEndpointGroupConfigurations.get(depth1).getDestinationConfigurations().get(depth2).getToPort());
}
}
}
if (customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations() != null) {
for (int depth2 = 0; depth2 < customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().size(); depth2++) {
if (customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2) != null) {
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointConfigurations." + (depth2 + 1) + ".Type" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getType());
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointConfigurations." + (depth2 + 1) + ".Endpoint" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getEndpoint());
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointConfigurations." + (depth2 + 1) + ".TrafficToEndpointPolicy" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getTrafficToEndpointPolicy());
if (customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations() != null) {
for (int depth3 = 0; depth3 < customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().size(); depth3++) {
if (customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3) != null) {
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointConfigurations." + (depth2 + 1) + ".PolicyConfigurations." + (depth3 + 1) + ".Address" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3).getAddress());
if (customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3).getPortRanges() != null) {
for (int depth4 = 0; depth4 < customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3).getPortRanges().size(); depth4++) {
if (customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3).getPortRanges().get(depth4) != null) {
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointConfigurations." + (depth2 + 1) + ".PolicyConfigurations." + (depth3 + 1) + ".PortRanges." + (depth4 + 1) + ".FromPort" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3).getPortRanges().get(depth4).getFromPort());
putQueryParameter("CustomRoutingEndpointGroupConfigurations." + (depth1 + 1) + ".EndpointConfigurations." + (depth2 + 1) + ".PolicyConfigurations." + (depth3 + 1) + ".PortRanges." + (depth4 + 1) + ".ToPort" , customRoutingEndpointGroupConfigurations.get(depth1).getEndpointConfigurations().get(depth2).getPolicyConfigurations().get(depth3).getPortRanges().get(depth4).getToPort());
}
}
}
}
}
}
}
}
}
}
}
}
}