if (getConsoleUrl() != null) sb.append("ConsoleUrl: ").append(getConsoleUrl()).append(","); if (getResources() != null) sb.append("Resources: ").append(getResources()); sb.append("}"); return sb.toString();
@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.getConsoleUrl() != null && other.getConsoleUrl().equals(this.getConsoleUrl()) == false) return false; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == 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); } }
if (getConsoleUrl() != null) sb.append("ConsoleUrl: ").append(getConsoleUrl()).append(","); if (getResources() != null) sb.append("Resources: ").append(getResources()); sb.append("}"); return sb.toString();
@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.getConsoleUrl() != null && other.getConsoleUrl().equals(this.getConsoleUrl()) == false) return false; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == 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); } }