StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCommandId() != null) sb.append("CommandId: ").append(getCommandId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(",");
@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)
/** * 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); } }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCommandId() != null) sb.append("CommandId: ").append(getCommandId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(",");
@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)
/** * 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); } }