@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeEnvironmentResourcesResult == false) return false; DescribeEnvironmentResourcesResult other = (DescribeEnvironmentResourcesResult) obj; if (other.getEnvironmentResources() == null ^ this.getEnvironmentResources() == null) return false; if (other.getEnvironmentResources() != null && other.getEnvironmentResources().equals(this.getEnvironmentResources()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnvironmentResources() == null) ? 0 : getEnvironmentResources().hashCode()); return hashCode; }
/** * 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 (getEnvironmentResources() != null) sb.append("EnvironmentResources: ").append(getEnvironmentResources()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeEnvironmentResourcesResult == false) return false; DescribeEnvironmentResourcesResult other = (DescribeEnvironmentResourcesResult) obj; if (other.getEnvironmentResources() == null ^ this.getEnvironmentResources() == null) return false; if (other.getEnvironmentResources() != null && other.getEnvironmentResources().equals(this.getEnvironmentResources()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnvironmentResources() == null) ? 0 : getEnvironmentResources().hashCode()); return hashCode; }
/** * 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 (getEnvironmentResources() != null) sb.append("EnvironmentResources: ").append(getEnvironmentResources()); sb.append("}"); return sb.toString(); }
instances = res.getEnvironmentResources().getInstances(); if(instances.size()==0) continue;
.getService() .describeEnvironmentResources(new DescribeEnvironmentResourcesRequest().withEnvironmentId(ctx.getCurEnv().getEnvironmentId())) .getEnvironmentResources() .getLoadBalancers() .get(0)
List<String> instanceIds = new ArrayList<String>(); for (Instance i : envResources.getEnvironmentResources().getInstances()) { instanceIds.add(i.getId());
ebsObj.setApp(appDes); ebsObj.setEnv(envDes); ebsObj.setEnvResource(awsElasticBeanstalk.describeEnvironmentResources(new DescribeEnvironmentResourcesRequest().withEnvironmentId(envDes.getEnvironmentId())).getEnvironmentResources()); ebsList.add(ebsObj);