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

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

Introduction

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

Prototype


public String getLoadBalancerName() 

Source Link

Document

The name of 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);
}