@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjects() == null) ? 0 : getProjects().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * @param nextToken * @return Returns a reference to this object so that method calls can be chained together. */ public ListProjectsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * @param projects * @return Returns a reference to this object so that method calls can be chained together. */ public ListProjectsResult withProjects(java.util.Collection<ProjectSummary> projects) { setProjects(projects); return this; }
public ListProjectsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListProjectsResult listProjectsResult = new ListProjectsResult(); if (context.testExpression("projects", targetDepth)) { context.nextToken(); listProjectsResult.setProjects(new ListUnmarshaller<ProjectSummary>(ProjectSummaryJsonUnmarshaller.getInstance()).unmarshall(context)); listProjectsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public ListProjectsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListProjectsResult listProjectsResult = new ListProjectsResult(); if (context.testExpression("projects", targetDepth)) { context.nextToken(); listProjectsResult.setProjects(new ListUnmarshaller<ProjectSummary>(ProjectSummaryJsonUnmarshaller.getInstance()).unmarshall(context)); listProjectsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListProjectsResult == false) return false; ListProjectsResult other = (ListProjectsResult) obj; if (other.getProjects() == null ^ this.getProjects() == null) return false; if (other.getProjects() != null && other.getProjects().equals(this.getProjects()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setProjects(java.util.Collection)} or {@link #withProjects(java.util.Collection)} if you want to override * the existing values. * </p> * * @param projects * @return Returns a reference to this object so that method calls can be chained together. */ public ListProjectsResult withProjects(ProjectSummary... projects) { if (this.projects == null) { setProjects(new java.util.ArrayList<ProjectSummary>(projects.length)); } for (ProjectSummary ele : projects) { this.projects.add(ele); } return this; }
/** * @param nextToken * @return Returns a reference to this object so that method calls can be chained together. */ public ListProjectsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getProjects() != null) sb.append("Projects: ").append(getProjects()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }
/** * @param projects * @return Returns a reference to this object so that method calls can be chained together. */ public ListProjectsResult withProjects(java.util.Collection<ProjectSummary> projects) { setProjects(projects); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjects() == null) ? 0 : getProjects().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setProjects(java.util.Collection)} or {@link #withProjects(java.util.Collection)} if you want to override * the existing values. * </p> * * @param projects * @return Returns a reference to this object so that method calls can be chained together. */ public ListProjectsResult withProjects(ProjectSummary... projects) { if (this.projects == null) { setProjects(new java.util.ArrayList<ProjectSummary>(projects.length)); } for (ProjectSummary ele : projects) { this.projects.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListProjectsResult == false) return false; ListProjectsResult other = (ListProjectsResult) obj; if (other.getProjects() == null ^ this.getProjects() == null) return false; if (other.getProjects() != null && other.getProjects().equals(this.getProjects()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getProjects() != null) sb.append("Projects: ").append(getProjects()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }