Example usage for com.amazonaws.services.elasticloadbalancing.model AttachLoadBalancerToSubnetsRequest AttachLoadBalancerToSubnetsRequest

List of usage examples for com.amazonaws.services.elasticloadbalancing.model AttachLoadBalancerToSubnetsRequest AttachLoadBalancerToSubnetsRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticloadbalancing.model AttachLoadBalancerToSubnetsRequest AttachLoadBalancerToSubnetsRequest.

Prototype

AttachLoadBalancerToSubnetsRequest

Source Link

Usage

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));
}