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

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

Introduction

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

Prototype


public java.util.List<String> getSubnets() 

Source Link

Document

The IDs of the subnets to add.

Usage

From source file:web.component.impl.aws.AWSELBImpl.java

@Override
public AttachLoadBalancerToSubnetsResult attachLoadBalancerToSubnets(
        AttachLoadBalancerToSubnetsRequest request) {

    if (request == null)
        throw new IllegalArgumentException("Invalid Request.");
    if (request.getLoadBalancerName() == null || request.getLoadBalancerName().isEmpty())
        throw new IllegalArgumentException("Load Balancer Name not specified.");
    if (request.getSubnets() == null || request.getSubnets().isEmpty())
        throw new IllegalArgumentException("Subnets not specified.");

    return awsHttpClient.attachLoadBalancerToSubnets(request);
}