Example usage for com.amazonaws.services.autoscaling.model AttachInstancesRequest getInstanceIds

List of usage examples for com.amazonaws.services.autoscaling.model AttachInstancesRequest getInstanceIds

Introduction

In this page you can find the example usage for com.amazonaws.services.autoscaling.model AttachInstancesRequest getInstanceIds.

Prototype


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

Source Link

Document

The IDs of the instances.

Usage

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

@Override
public void attachInstances(AttachInstancesRequest request) {

    if (request.getAutoScalingGroupName() == null || request.getAutoScalingGroupName().isEmpty())
        throw new IllegalArgumentException("Auto scaling group name not specified.");
    if (request.getInstanceIds() == null || request.getInstanceIds().isEmpty())
        throw new IllegalArgumentException("Instance ids not specified.");

    awsHttpClient.attachInstances(request);
}