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