bxt.request.cli.elasticbeanstalk.DescribeEvents Maven / Gradle / Ivy
package bxt.request.cli.elasticbeanstalk;
import bxt.command.CommandLineParams;
import com.amazonaws.services.elasticbeanstalk.model.DescribeEventsRequest;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
@Parameters(separators = " =")
public final class DescribeEvents implements CommandLineParams {
@Parameter(names = {"--app-name"}, required = true)
private String appName;
@Parameter(names = {"--environment-name"}, required = true)
private String environmentName;
@Override
public DescribeEventsRequest get() {
return new DescribeEventsRequest()
.withApplicationName(appName)
.withEnvironmentName(environmentName);
}
}