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

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

Introduction

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

Prototype


public String getPolicyName() 

Source Link

Document

The name of the policy being created.

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