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

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

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticloadbalancing.model RegisterInstancesWithLoadBalancerRequest 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 RegisterInstancesWithLoadBalancerResult registerInstancesWithLoadBalancer(
        RegisterInstancesWithLoadBalancerRequest request) {

    if (request.getLoadBalancerName() == null || request.getLoadBalancerName().isEmpty())
        throw new IllegalArgumentException("Load Balancer Name not specified.");
    if (request.getInstances() == null || request.getInstances().isEmpty())
        throw new IllegalArgumentException("Instances not specified.");

    return awsHttpClient.registerInstancesWithLoadBalancer(request);
}