/** * 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(); }
@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; }
/** * 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); } }
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)
/** * 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(); }
@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)
/** * 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); } }