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

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

Introduction

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

Prototype


public void setEnvironmentName(String environmentName) 

Source Link

Document

The name 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   w  w w .ja va 2 s.  c o m*/

    return null;
}