@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; }
public ProjectDetails unmarshall(JsonUnmarshallerContext context) throws Exception { ProjectDetails projectDetails = new ProjectDetails(); if (context.testExpression("name", targetDepth)) { context.nextToken(); projectDetails.setName(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setProjectId(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setRegion(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setState(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setCreatedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); projectDetails.setLastUpdatedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); projectDetails.setConsoleUrl(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setResources(new ListUnmarshaller<Resource>(ResourceJsonUnmarshaller.getInstance()).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateProjectResult == false) return false; UpdateProjectResult other = (UpdateProjectResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
public ProjectDetails unmarshall(JsonUnmarshallerContext context) throws Exception { ProjectDetails projectDetails = new ProjectDetails(); if (context.testExpression("name", targetDepth)) { context.nextToken(); projectDetails.setName(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setProjectId(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setRegion(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setState(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setCreatedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); projectDetails.setLastUpdatedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); projectDetails.setConsoleUrl(context.getUnmarshaller(String.class).unmarshall(context)); projectDetails.setResources(new ListUnmarshaller<Resource>(ResourceJsonUnmarshaller.getInstance()).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeProjectResult == false) return false; DescribeProjectResult other = (DescribeProjectResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
return false; ProjectDetails other = (ProjectDetails) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getProjectId() == null ^ this.getProjectId() == null) return false; if (other.getProjectId() != null && other.getProjectId().equals(this.getProjectId()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; 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) return false; if (other.getConsoleUrl() != null && other.getConsoleUrl().equals(this.getConsoleUrl()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateProjectResult == false) return false; CreateProjectResult other = (CreateProjectResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getProjectId() != null) sb.append("ProjectId: ").append(getProjectId()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); 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(","); if (getResources() != null) sb.append("Resources: ").append(getResources()); sb.append("}"); return sb.toString();
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateProjectResult == false) return false; CreateProjectResult other = (CreateProjectResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
/** * 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); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeProjectResult == false) return false; DescribeProjectResult other = (DescribeProjectResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
@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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateProjectResult == false) return false; UpdateProjectResult other = (UpdateProjectResult) obj; if (other.getDetails() == null ^ this.getDetails() == null) return false; if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false) return false; return true; }
return false; ProjectDetails other = (ProjectDetails) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getProjectId() == null ^ this.getProjectId() == null) return false; if (other.getProjectId() != null && other.getProjectId().equals(this.getProjectId()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; 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) return false; if (other.getConsoleUrl() != null && other.getConsoleUrl().equals(this.getConsoleUrl()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getProjectId() != null) sb.append("ProjectId: ").append(getProjectId()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); 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(","); if (getResources() != null) sb.append("Resources: ").append(getResources()); sb.append("}"); return sb.toString();
/** * 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); } }