Example usage for com.amazonaws.services.elasticbeanstalk.model RestartAppServerRequest setEnvironmentId

List of usage examples for com.amazonaws.services.elasticbeanstalk.model RestartAppServerRequest setEnvironmentId

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticbeanstalk.model RestartAppServerRequest setEnvironmentId.

Prototype


public void setEnvironmentId(String environmentId) 

Source Link

Document

The ID of the environment to restart the server for.

Usage

From source file:br.com.ingenieux.mojo.beanstalk.env.RestartAppServerMojo.java

License:Apache License

@Override
protected Object executeInternal() throws MojoExecutionException, MojoFailureException {
    RestartAppServerRequest req = new RestartAppServerRequest();

    req.setEnvironmentId(curEnv.getEnvironmentId());
    req.setEnvironmentName(curEnv.getEnvironmentName());

    getService().restartAppServer(req);/*from ww  w . j a  v a 2s.  c  o m*/

    return null;
}