if (getComment() != null) sb.append("Comment: ").append(getComment()).append(","); if (getCommand() != null) sb.append("Command: ").append(getCommand()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(",");
@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.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; if (other.getCommand() == null ^ this.getCommand() == null) return false; if (other.getCommand() != null && other.getCommand().equals(this.getCommand()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == 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 (getComment() != null) sb.append("Comment: ").append(getComment()).append(","); if (getCommand() != null) sb.append("Command: ").append(getCommand()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(",");
@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.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; if (other.getCommand() == null ^ this.getCommand() == null) return false; if (other.getCommand() != null && other.getCommand().equals(this.getCommand()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == 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); } }