List of usage examples for com.amazonaws.services.elasticloadbalancing.model AttachLoadBalancerToSubnetsRequest AttachLoadBalancerToSubnetsRequest
AttachLoadBalancerToSubnetsRequest
From source file:web.component.impl.aws.AWSELBImpl.java
@Override public AttachLoadBalancerToSubnetsResult attachLoadBalancerToSubnets(String loadBalancerName, Collection<String> subnetIds) { if (loadBalancerName == null || loadBalancerName.isEmpty()) throw new IllegalArgumentException("Load Balancer Name not specified."); if (subnetIds == null || subnetIds.isEmpty()) throw new IllegalArgumentException("Subnets not specified."); return awsHttpClient.attachLoadBalancerToSubnets(new AttachLoadBalancerToSubnetsRequest() .withLoadBalancerName(loadBalancerName).withSubnets(subnetIds)); }