if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCustomJson() != null) sb.append("CustomJson: ").append(getCustomJson()).append(","); if (getInstanceIds() != null) sb.append("InstanceIds: ").append(getInstanceIds());
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); hashCode = prime * hashCode + ((getIamUserArn() == null) ? 0 : getIamUserArn().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); hashCode = prime * hashCode + ((getCommand() == null) ? 0 : getCommand().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCustomJson() == null) ? 0 : getCustomJson().hashCode()); hashCode = prime * hashCode + ((getInstanceIds() == null) ? 0 : getInstanceIds().hashCode()); return hashCode; }
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCustomJson() == null ^ this.getCustomJson() == null) return false; if (other.getCustomJson() != null && other.getCustomJson().equals(this.getCustomJson()) == false) return false; if (other.getInstanceIds() == null ^ this.getInstanceIds() == null)
/** * Marshall the given parameter object. */ public void marshall(Deployment deployment, ProtocolMarshaller protocolMarshaller) { if (deployment == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deployment.getDeploymentId(), DEPLOYMENTID_BINDING); protocolMarshaller.marshall(deployment.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(deployment.getAppId(), APPID_BINDING); protocolMarshaller.marshall(deployment.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(deployment.getCompletedAt(), COMPLETEDAT_BINDING); protocolMarshaller.marshall(deployment.getDuration(), DURATION_BINDING); protocolMarshaller.marshall(deployment.getIamUserArn(), IAMUSERARN_BINDING); protocolMarshaller.marshall(deployment.getComment(), COMMENT_BINDING); protocolMarshaller.marshall(deployment.getCommand(), COMMAND_BINDING); protocolMarshaller.marshall(deployment.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(deployment.getCustomJson(), CUSTOMJSON_BINDING); protocolMarshaller.marshall(deployment.getInstanceIds(), INSTANCEIDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCustomJson() != null) sb.append("CustomJson: ").append(getCustomJson()).append(","); if (getInstanceIds() != null) sb.append("InstanceIds: ").append(getInstanceIds());
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); hashCode = prime * hashCode + ((getIamUserArn() == null) ? 0 : getIamUserArn().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); hashCode = prime * hashCode + ((getCommand() == null) ? 0 : getCommand().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCustomJson() == null) ? 0 : getCustomJson().hashCode()); hashCode = prime * hashCode + ((getInstanceIds() == null) ? 0 : getInstanceIds().hashCode()); return hashCode; }
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCustomJson() == null ^ this.getCustomJson() == null) return false; if (other.getCustomJson() != null && other.getCustomJson().equals(this.getCustomJson()) == false) return false; if (other.getInstanceIds() == null ^ this.getInstanceIds() == null)
/** * Marshall the given parameter object. */ public void marshall(Deployment deployment, ProtocolMarshaller protocolMarshaller) { if (deployment == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deployment.getDeploymentId(), DEPLOYMENTID_BINDING); protocolMarshaller.marshall(deployment.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(deployment.getAppId(), APPID_BINDING); protocolMarshaller.marshall(deployment.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(deployment.getCompletedAt(), COMPLETEDAT_BINDING); protocolMarshaller.marshall(deployment.getDuration(), DURATION_BINDING); protocolMarshaller.marshall(deployment.getIamUserArn(), IAMUSERARN_BINDING); protocolMarshaller.marshall(deployment.getComment(), COMMENT_BINDING); protocolMarshaller.marshall(deployment.getCommand(), COMMAND_BINDING); protocolMarshaller.marshall(deployment.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(deployment.getCustomJson(), CUSTOMJSON_BINDING); protocolMarshaller.marshall(deployment.getInstanceIds(), INSTANCEIDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }