Example usage for com.amazonaws.services.elasticloadbalancing.model DisableAvailabilityZonesForLoadBalancerRequest getAvailabilityZones

List of usage examples for com.amazonaws.services.elasticloadbalancing.model DisableAvailabilityZonesForLoadBalancerRequest getAvailabilityZones

Introduction

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

Prototype


public java.util.List<String> getAvailabilityZones() 

Source Link

Document

The Availability Zones.

Usage

From source file:web.component.impl.aws.AWSELBImpl.java

@Override
public DisableAvailabilityZonesForLoadBalancerResult disableAvailabilityZonesForLoadBalancer(
        DisableAvailabilityZonesForLoadBalancerRequest request) {

    if (request == null)
        throw new IllegalArgumentException("Invalid Request");
    if (request.getLoadBalancerName() == null || request.getLoadBalancerName().isEmpty())
        throw new IllegalArgumentException("Load Balancer Name not specified.");
    if (request.getAvailabilityZones() == null || request.getAvailabilityZones().isEmpty())
        throw new IllegalArgumentException("Availability Zones not specified.");

    return awsHttpClient.disableAvailabilityZonesForLoadBalancer(request);
}