/** * <p> * Set to <code>true</code> to delete the source bundle from your storage bucket. Otherwise, the application version * is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3. * </p> * * @param deleteSourceBundle * Set to <code>true</code> to delete the source bundle from your storage bucket. Otherwise, the application * version is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteApplicationVersionRequest withDeleteSourceBundle(Boolean deleteSourceBundle) { setDeleteSourceBundle(deleteSourceBundle); return this; }
/** * <p> * Set to <code>true</code> to delete the source bundle from your storage bucket. Otherwise, the application version * is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3. * </p> * * @param deleteSourceBundle * Set to <code>true</code> to delete the source bundle from your storage bucket. Otherwise, the application * version is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteApplicationVersionRequest withDeleteSourceBundle(Boolean deleteSourceBundle) { setDeleteSourceBundle(deleteSourceBundle); return this; }
public void deleteApplicationVersion(ApplicationVersionDescription version) { log.info("Deleting application version {}", version.getVersionLabel()); DeleteApplicationVersionRequest deleteRequest = new DeleteApplicationVersionRequest(); deleteRequest.setApplicationName(version.getApplicationName()); deleteRequest.setVersionLabel(version.getVersionLabel()); deleteRequest.setDeleteSourceBundle(true); elasticBeanstalk.deleteApplicationVersion(deleteRequest); }
@Override protected Object executeInternal() throws MojoExecutionException, MojoFailureException { DeleteApplicationVersionRequest req = new DeleteApplicationVersionRequest(); req.setApplicationName(applicationName); req.setDeleteSourceBundle(deleteSourceBundle); req.setVersionLabel(versionLabel); getService().deleteApplicationVersion(req); return null; } }
public void deleteApplicationVersion(ApplicationVersionDescription version) { log.info("Deleting application version {}", version.getVersionLabel()); DeleteApplicationVersionRequest deleteRequest = new DeleteApplicationVersionRequest(); deleteRequest.setApplicationName(version.getApplicationName()); deleteRequest.setVersionLabel(version.getVersionLabel()); deleteRequest.setDeleteSourceBundle(true); elasticBeanstalk.deleteApplicationVersion(deleteRequest); }