/** * <p> * The app ID. * </p> * * @param appId * The app ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteAppRequest withAppId(String appId) { setAppId(appId); return this; }
@After public void tearDown() throws InterruptedException { AWSTestUtils.emptyAndDeleteBucket(s3Client, BUCKET_NAME); client.deleteApp(new DeleteAppRequest().withAppId(project .getProperty(Constants.APP_ID_PROPERTY))); stopAllInstances(project, client); deleteAllInstances(project, client); deleteAllLayers(project, client); client.deleteStack(new DeleteStackRequest().withStackId(project .getProperty(Constants.STACK_ID_PROPERTY))); }
public void execute() { AmazonS3Client s3Client = getOrCreateClient(AmazonS3Client.class); AWSOpsWorksClient client = getOrCreateClient(AWSOpsWorksClient.class); AWSTestUtils.emptyAndDeleteBucket(s3Client, bucketName); client.deleteApp(new DeleteAppRequest().withAppId(getProject() .getProperty("appId"))); try { OpsWorksDeploymentTests.stopAllInstances(getProject(), client); } catch (InterruptedException e) { throw new BuildException(e.getMessage(), e); } OpsWorksDeploymentTests.deleteAllInstances(getProject(), client); OpsWorksDeploymentTests.deleteAllLayers(getProject(), client); client.deleteStack(new DeleteStackRequest().withStackId(getProject() .getProperty("stackId"))); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteAppRequest == false) return false; DeleteAppRequest other = (DeleteAppRequest) obj; if (other.getAppId() == null ^ this.getAppId() == null) return false; if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false) return false; return true; }
/** * <p> * The app ID. * </p> * * @param appId * The app ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteAppRequest withAppId(String appId) { setAppId(appId); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAppId() != null) sb.append("AppId: ").append(getAppId()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DeleteAppRequest deleteAppRequest, ProtocolMarshaller protocolMarshaller) { if (deleteAppRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteAppRequest.getAppId(), APPID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteAppRequest == false) return false; DeleteAppRequest other = (DeleteAppRequest) obj; if (other.getAppId() == null ^ this.getAppId() == null) return false; if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAppId() != null) sb.append("AppId: ").append(getAppId()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DeleteAppRequest deleteAppRequest, ProtocolMarshaller protocolMarshaller) { if (deleteAppRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteAppRequest.getAppId(), APPID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }