Example usage for com.amazonaws.services.elasticloadbalancing.model ApplySecurityGroupsToLoadBalancerRequest getSecurityGroups

List of usage examples for com.amazonaws.services.elasticloadbalancing.model ApplySecurityGroupsToLoadBalancerRequest getSecurityGroups

Introduction

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

Prototype


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

Source Link

Document

The IDs of the security groups to associate with the load balancer.

Usage

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

@Override
public ApplySecurityGroupsToLoadBalancerResult applySecurityGroupsToLoadBalancer(
        ApplySecurityGroupsToLoadBalancerRequest request) {

    if (request.getLoadBalancerName() == null || request.getLoadBalancerName().isEmpty())
        throw new IllegalArgumentException("Load balancer name not specified.");
    if (request.getSecurityGroups() == null || request.getSecurityGroups().isEmpty())
        throw new IllegalArgumentException("Security groups not specified.");

    return awsHttpClient.applySecurityGroupsToLoadBalancer(request);
}