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

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

Introduction

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

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

    return awsHttpClient.deleteLoadBalancerPolicy(request);
}