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

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

Introduction

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

Prototype


public String getCookieName() 

Source Link

Document

The name of the application cookie used for stickiness.

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);
}