if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getLastUpdatedDate() != null) sb.append("LastUpdatedDate: ").append(getLastUpdatedDate()).append(","); if (getConsoleUrl() != null) sb.append("ConsoleUrl: ").append(getConsoleUrl()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getProjectId() == null) ? 0 : getProjectId().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDate() == null) ? 0 : getLastUpdatedDate().hashCode()); hashCode = prime * hashCode + ((getConsoleUrl() == null) ? 0 : getConsoleUrl().hashCode()); hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); return hashCode; }
if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getLastUpdatedDate() == null ^ this.getLastUpdatedDate() == null) return false; if (other.getLastUpdatedDate() != null && other.getLastUpdatedDate().equals(this.getLastUpdatedDate()) == false) return false; if (other.getConsoleUrl() == null ^ this.getConsoleUrl() == null)
/** * Marshall the given parameter object. */ public void marshall(ProjectDetails projectDetails, ProtocolMarshaller protocolMarshaller) { if (projectDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(projectDetails.getName(), NAME_BINDING); protocolMarshaller.marshall(projectDetails.getProjectId(), PROJECTID_BINDING); protocolMarshaller.marshall(projectDetails.getRegion(), REGION_BINDING); protocolMarshaller.marshall(projectDetails.getState(), STATE_BINDING); protocolMarshaller.marshall(projectDetails.getCreatedDate(), CREATEDDATE_BINDING); protocolMarshaller.marshall(projectDetails.getLastUpdatedDate(), LASTUPDATEDDATE_BINDING); protocolMarshaller.marshall(projectDetails.getConsoleUrl(), CONSOLEURL_BINDING); protocolMarshaller.marshall(projectDetails.getResources(), RESOURCES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getLastUpdatedDate() != null) sb.append("LastUpdatedDate: ").append(getLastUpdatedDate()).append(","); if (getConsoleUrl() != null) sb.append("ConsoleUrl: ").append(getConsoleUrl()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getProjectId() == null) ? 0 : getProjectId().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDate() == null) ? 0 : getLastUpdatedDate().hashCode()); hashCode = prime * hashCode + ((getConsoleUrl() == null) ? 0 : getConsoleUrl().hashCode()); hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); return hashCode; }
if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getLastUpdatedDate() == null ^ this.getLastUpdatedDate() == null) return false; if (other.getLastUpdatedDate() != null && other.getLastUpdatedDate().equals(this.getLastUpdatedDate()) == false) return false; if (other.getConsoleUrl() == null ^ this.getConsoleUrl() == null)
/** * Marshall the given parameter object. */ public void marshall(ProjectDetails projectDetails, ProtocolMarshaller protocolMarshaller) { if (projectDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(projectDetails.getName(), NAME_BINDING); protocolMarshaller.marshall(projectDetails.getProjectId(), PROJECTID_BINDING); protocolMarshaller.marshall(projectDetails.getRegion(), REGION_BINDING); protocolMarshaller.marshall(projectDetails.getState(), STATE_BINDING); protocolMarshaller.marshall(projectDetails.getCreatedDate(), CREATEDDATE_BINDING); protocolMarshaller.marshall(projectDetails.getLastUpdatedDate(), LASTUPDATEDDATE_BINDING); protocolMarshaller.marshall(projectDetails.getConsoleUrl(), CONSOLEURL_BINDING); protocolMarshaller.marshall(projectDetails.getResources(), RESOURCES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }