@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCommandId() == null) ? 0 : getCommandId().hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getAcknowledgedAt() == null) ? 0 : getAcknowledgedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getExitCode() == null) ? 0 : getExitCode().hashCode()); hashCode = prime * hashCode + ((getLogUrl() == null) ? 0 : getLogUrl().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; }
public Command unmarshall(JsonUnmarshallerContext context) throws Exception { Command command = new Command(); if (context.testExpression("CommandId", targetDepth)) { context.nextToken(); command.setCommandId(context.getUnmarshaller(String.class).unmarshall(context)); command.setInstanceId(context.getUnmarshaller(String.class).unmarshall(context)); command.setDeploymentId(context.getUnmarshaller(String.class).unmarshall(context)); command.setCreatedAt(context.getUnmarshaller(String.class).unmarshall(context)); command.setAcknowledgedAt(context.getUnmarshaller(String.class).unmarshall(context)); command.setCompletedAt(context.getUnmarshaller(String.class).unmarshall(context)); command.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); command.setExitCode(context.getUnmarshaller(Integer.class).unmarshall(context)); command.setLogUrl(context.getUnmarshaller(String.class).unmarshall(context)); command.setType(context.getUnmarshaller(String.class).unmarshall(context));
public Command unmarshall(JsonUnmarshallerContext context) throws Exception { Command command = new Command(); if (context.testExpression("CommandId", targetDepth)) { context.nextToken(); command.setCommandId(context.getUnmarshaller(String.class).unmarshall(context)); command.setInstanceId(context.getUnmarshaller(String.class).unmarshall(context)); command.setDeploymentId(context.getUnmarshaller(String.class).unmarshall(context)); command.setCreatedAt(context.getUnmarshaller(String.class).unmarshall(context)); command.setAcknowledgedAt(context.getUnmarshaller(String.class).unmarshall(context)); command.setCompletedAt(context.getUnmarshaller(String.class).unmarshall(context)); command.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); command.setExitCode(context.getUnmarshaller(Integer.class).unmarshall(context)); command.setLogUrl(context.getUnmarshaller(String.class).unmarshall(context)); command.setType(context.getUnmarshaller(String.class).unmarshall(context));
return false; Command other = (Command) obj; if (other.getCommandId() == null ^ this.getCommandId() == null) return false; if (other.getCommandId() != null && other.getCommandId().equals(this.getCommandId()) == false) return false; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getDeploymentId() == null ^ this.getDeploymentId() == null) return false; if (other.getDeploymentId() != null && other.getDeploymentId().equals(this.getDeploymentId()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getAcknowledgedAt() == null ^ this.getAcknowledgedAt() == null) return false; if (other.getAcknowledgedAt() != null && other.getAcknowledgedAt().equals(this.getAcknowledgedAt()) == false) return false; if (other.getCompletedAt() == null ^ this.getCompletedAt() == null) return false; if (other.getCompletedAt() != null && other.getCompletedAt().equals(this.getCompletedAt()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCommandId() != null) sb.append("CommandId: ").append(getCommandId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getDeploymentId() != null) sb.append("DeploymentId: ").append(getDeploymentId()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getAcknowledgedAt() != null) sb.append("AcknowledgedAt: ").append(getAcknowledgedAt()).append(","); if (getCompletedAt() != null) sb.append("CompletedAt: ").append(getCompletedAt()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getExitCode() != null) sb.append("ExitCode: ").append(getExitCode()).append(","); if (getLogUrl() != null) sb.append("LogUrl: ").append(getLogUrl()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString();
/** * Marshall the given parameter object. */ public void marshall(Command command, ProtocolMarshaller protocolMarshaller) { if (command == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(command.getCommandId(), COMMANDID_BINDING); protocolMarshaller.marshall(command.getInstanceId(), INSTANCEID_BINDING); protocolMarshaller.marshall(command.getDeploymentId(), DEPLOYMENTID_BINDING); protocolMarshaller.marshall(command.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(command.getAcknowledgedAt(), ACKNOWLEDGEDAT_BINDING); protocolMarshaller.marshall(command.getCompletedAt(), COMPLETEDAT_BINDING); protocolMarshaller.marshall(command.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(command.getExitCode(), EXITCODE_BINDING); protocolMarshaller.marshall(command.getLogUrl(), LOGURL_BINDING); protocolMarshaller.marshall(command.getType(), TYPE_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 + ((getCommandId() == null) ? 0 : getCommandId().hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getAcknowledgedAt() == null) ? 0 : getAcknowledgedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getExitCode() == null) ? 0 : getExitCode().hashCode()); hashCode = prime * hashCode + ((getLogUrl() == null) ? 0 : getLogUrl().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; }
return false; Command other = (Command) obj; if (other.getCommandId() == null ^ this.getCommandId() == null) return false; if (other.getCommandId() != null && other.getCommandId().equals(this.getCommandId()) == false) return false; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getDeploymentId() == null ^ this.getDeploymentId() == null) return false; if (other.getDeploymentId() != null && other.getDeploymentId().equals(this.getDeploymentId()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getAcknowledgedAt() == null ^ this.getAcknowledgedAt() == null) return false; if (other.getAcknowledgedAt() != null && other.getAcknowledgedAt().equals(this.getAcknowledgedAt()) == false) return false; if (other.getCompletedAt() == null ^ this.getCompletedAt() == null) return false; if (other.getCompletedAt() != null && other.getCompletedAt().equals(this.getCompletedAt()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCommandId() != null) sb.append("CommandId: ").append(getCommandId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getDeploymentId() != null) sb.append("DeploymentId: ").append(getDeploymentId()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getAcknowledgedAt() != null) sb.append("AcknowledgedAt: ").append(getAcknowledgedAt()).append(","); if (getCompletedAt() != null) sb.append("CompletedAt: ").append(getCompletedAt()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getExitCode() != null) sb.append("ExitCode: ").append(getExitCode()).append(","); if (getLogUrl() != null) sb.append("LogUrl: ").append(getLogUrl()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString();
/** * Marshall the given parameter object. */ public void marshall(Command command, ProtocolMarshaller protocolMarshaller) { if (command == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(command.getCommandId(), COMMANDID_BINDING); protocolMarshaller.marshall(command.getInstanceId(), INSTANCEID_BINDING); protocolMarshaller.marshall(command.getDeploymentId(), DEPLOYMENTID_BINDING); protocolMarshaller.marshall(command.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(command.getAcknowledgedAt(), ACKNOWLEDGEDAT_BINDING); protocolMarshaller.marshall(command.getCompletedAt(), COMPLETEDAT_BINDING); protocolMarshaller.marshall(command.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(command.getExitCode(), EXITCODE_BINDING); protocolMarshaller.marshall(command.getLogUrl(), LOGURL_BINDING); protocolMarshaller.marshall(command.getType(), TYPE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }