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

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

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticloadbalancing.model CreateAppCookieStickinessPolicyRequest 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 CreateAppCookieStickinessPolicyResult createAppCookieStickinessPolicy(
        CreateAppCookieStickinessPolicyRequest 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.");
    if (request.getCookieName() == null || request.getCookieName().isEmpty())
        throw new IllegalArgumentException("Cookie name not specified.");

    return awsHttpClient.createAppCookieStickinessPolicy(request);
}