Example usage for com.amazonaws.services.elasticbeanstalk.model CreateApplicationVersionRequest setDescription

List of usage examples for com.amazonaws.services.elasticbeanstalk.model CreateApplicationVersionRequest setDescription

Introduction

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

Prototype


public void setDescription(String description) 

Source Link

Document

Describes this version.

Usage

From source file:br.com.ingenieux.mojo.beanstalk.version.CreateApplicationVersionMojo.java

License:Apache License

protected Object executeInternal() throws MojoExecutionException {
    if (skipExisting) {
        if (versionLabelExists()) {
            getLog().info("VersionLabel " + versionLabel
                    + " already exists. Skipping creation of new application-version");

            return null;
        }//from w w  w . jav a2s.co m
    }

    CreateApplicationVersionRequest request = new CreateApplicationVersionRequest();

    request.setApplicationName(applicationName);
    request.setDescription(versionDescription);
    request.setAutoCreateApplication(autoCreateApplication);

    if (StringUtils.isNotBlank(s3Bucket) && StringUtils.isNotBlank(s3Key)) {
        request.setSourceBundle(new S3Location(s3Bucket, s3Key));
    }

    request.setDescription(versionDescription);

    request.setVersionLabel(versionLabel);

    CreateApplicationVersionResult result = getService().createApplicationVersion(request);

    return result.getApplicationVersion();
}