/** * <p> * The label of the version to delete. * </p> * * @param versionLabel * The label of the version to delete. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteApplicationVersionRequest withVersionLabel(String versionLabel) { setVersionLabel(versionLabel); return this; }
/** * Constructs a new DeleteApplicationVersionRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param applicationName * The name of the application to which the version belongs. * @param versionLabel * The label of the version to delete. */ public DeleteApplicationVersionRequest(String applicationName, String versionLabel) { setApplicationName(applicationName); setVersionLabel(versionLabel); }
/** * <p> * The label of the version to delete. * </p> * * @param versionLabel * The label of the version to delete. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteApplicationVersionRequest withVersionLabel(String versionLabel) { setVersionLabel(versionLabel); return this; }
/** * Constructs a new DeleteApplicationVersionRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param applicationName * The name of the application to which the version belongs. * @param versionLabel * The label of the version to delete. */ public DeleteApplicationVersionRequest(String applicationName, String versionLabel) { setApplicationName(applicationName); setVersionLabel(versionLabel); }
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); }