@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getLayersCount() == null) ? 0 : getLayersCount().hashCode()); hashCode = prime * hashCode + ((getAppsCount() == null) ? 0 : getAppsCount().hashCode()); hashCode = prime * hashCode + ((getInstancesCount() == null) ? 0 : getInstancesCount().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSummary() == null) ? 0 : getStackSummary().hashCode()); return hashCode; }
/** * <p> * The number of apps. * </p> * * @param appsCount * The number of apps. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSummary withAppsCount(Integer appsCount) { setAppsCount(appsCount); return this; }
public StackSummary unmarshall(JsonUnmarshallerContext context) throws Exception { StackSummary stackSummary = new StackSummary(); if (context.testExpression("StackId", targetDepth)) { context.nextToken(); stackSummary.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); stackSummary.setName(context.getUnmarshaller(String.class).unmarshall(context)); stackSummary.setArn(context.getUnmarshaller(String.class).unmarshall(context)); stackSummary.setLayersCount(context.getUnmarshaller(Integer.class).unmarshall(context)); stackSummary.setAppsCount(context.getUnmarshaller(Integer.class).unmarshall(context)); stackSummary.setInstancesCount(InstancesCountJsonUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStackSummaryResult == false) return false; DescribeStackSummaryResult other = (DescribeStackSummaryResult) obj; if (other.getStackSummary() == null ^ this.getStackSummary() == null) return false; if (other.getStackSummary() != null && other.getStackSummary().equals(this.getStackSummary()) == false) return false; return true; }
public StackSummary unmarshall(JsonUnmarshallerContext context) throws Exception { StackSummary stackSummary = new StackSummary(); if (context.testExpression("StackId", targetDepth)) { context.nextToken(); stackSummary.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); stackSummary.setName(context.getUnmarshaller(String.class).unmarshall(context)); stackSummary.setArn(context.getUnmarshaller(String.class).unmarshall(context)); stackSummary.setLayersCount(context.getUnmarshaller(Integer.class).unmarshall(context)); stackSummary.setAppsCount(context.getUnmarshaller(Integer.class).unmarshall(context)); stackSummary.setInstancesCount(InstancesCountJsonUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStackSummaryResult == false) return false; DescribeStackSummaryResult other = (DescribeStackSummaryResult) obj; if (other.getStackSummary() == null ^ this.getStackSummary() == null) return false; if (other.getStackSummary() != null && other.getStackSummary().equals(this.getStackSummary()) == false) return false; return true; }
return false; StackSummary other = (StackSummary) obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getLayersCount() == null ^ this.getLayersCount() == null) return false; if (other.getLayersCount() != null && other.getLayersCount().equals(this.getLayersCount()) == false) return false; if (other.getAppsCount() == null ^ this.getAppsCount() == null) return false; if (other.getAppsCount() != null && other.getAppsCount().equals(this.getAppsCount()) == false) return false; if (other.getInstancesCount() == null ^ this.getInstancesCount() == null) return false; if (other.getInstancesCount() != null && other.getInstancesCount().equals(this.getInstancesCount()) == false) return false; return true;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSummary() == null) ? 0 : getStackSummary().hashCode()); return hashCode; }
/** * <p> * The number of apps. * </p> * * @param appsCount * The number of apps. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSummary withAppsCount(Integer appsCount) { setAppsCount(appsCount); 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 (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getLayersCount() != null) sb.append("LayersCount: ").append(getLayersCount()).append(","); if (getAppsCount() != null) sb.append("AppsCount: ").append(getAppsCount()).append(","); if (getInstancesCount() != null) sb.append("InstancesCount: ").append(getInstancesCount()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(StackSummary stackSummary, ProtocolMarshaller protocolMarshaller) { if (stackSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stackSummary.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(stackSummary.getName(), NAME_BINDING); protocolMarshaller.marshall(stackSummary.getArn(), ARN_BINDING); protocolMarshaller.marshall(stackSummary.getLayersCount(), LAYERSCOUNT_BINDING); protocolMarshaller.marshall(stackSummary.getAppsCount(), APPSCOUNT_BINDING); protocolMarshaller.marshall(stackSummary.getInstancesCount(), INSTANCESCOUNT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getLayersCount() == null) ? 0 : getLayersCount().hashCode()); hashCode = prime * hashCode + ((getAppsCount() == null) ? 0 : getAppsCount().hashCode()); hashCode = prime * hashCode + ((getInstancesCount() == null) ? 0 : getInstancesCount().hashCode()); return hashCode; }
return false; StackSummary other = (StackSummary) obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getLayersCount() == null ^ this.getLayersCount() == null) return false; if (other.getLayersCount() != null && other.getLayersCount().equals(this.getLayersCount()) == false) return false; if (other.getAppsCount() == null ^ this.getAppsCount() == null) return false; if (other.getAppsCount() != null && other.getAppsCount().equals(this.getAppsCount()) == false) return false; if (other.getInstancesCount() == null ^ this.getInstancesCount() == null) return false; if (other.getInstancesCount() != null && other.getInstancesCount().equals(this.getInstancesCount()) == 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 (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getLayersCount() != null) sb.append("LayersCount: ").append(getLayersCount()).append(","); if (getAppsCount() != null) sb.append("AppsCount: ").append(getAppsCount()).append(","); if (getInstancesCount() != null) sb.append("InstancesCount: ").append(getInstancesCount()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(StackSummary stackSummary, ProtocolMarshaller protocolMarshaller) { if (stackSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stackSummary.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(stackSummary.getName(), NAME_BINDING); protocolMarshaller.marshall(stackSummary.getArn(), ARN_BINDING); protocolMarshaller.marshall(stackSummary.getLayersCount(), LAYERSCOUNT_BINDING); protocolMarshaller.marshall(stackSummary.getAppsCount(), APPSCOUNT_BINDING); protocolMarshaller.marshall(stackSummary.getInstancesCount(), INSTANCESCOUNT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }