@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBundleList() == null) ? 0 : getBundleList().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * <p> * A list of bundles. * </p> * * @param bundleList * A list of bundles. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBundlesResult withBundleList(java.util.Collection<BundleDetails> bundleList) { setBundleList(bundleList); return this; }
/** * <p> * Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to * fetch more entries. * </p> * * @param nextToken * Pagination token. If non-null pagination token is returned in a result, then pass its value in another * request to fetch more entries. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBundlesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public ListBundlesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListBundlesResult listBundlesResult = new ListBundlesResult(); if (context.testExpression("bundleList", targetDepth)) { context.nextToken(); listBundlesResult.setBundleList(new ListUnmarshaller<BundleDetails>(BundleDetailsJsonUnmarshaller.getInstance()).unmarshall(context)); listBundlesResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public ListBundlesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListBundlesResult listBundlesResult = new ListBundlesResult(); if (context.testExpression("bundleList", targetDepth)) { context.nextToken(); listBundlesResult.setBundleList(new ListUnmarshaller<BundleDetails>(BundleDetailsJsonUnmarshaller.getInstance()).unmarshall(context)); listBundlesResult.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 ListBundlesResult == false) return false; ListBundlesResult other = (ListBundlesResult) obj; if (other.getBundleList() == null ^ this.getBundleList() == null) return false; if (other.getBundleList() != null && other.getBundleList().equals(this.getBundleList()) == 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> * A list of bundles. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBundleList(java.util.Collection)} or {@link #withBundleList(java.util.Collection)} if you want to * override the existing values. * </p> * * @param bundleList * A list of bundles. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBundlesResult withBundleList(BundleDetails... bundleList) { if (this.bundleList == null) { setBundleList(new java.util.ArrayList<BundleDetails>(bundleList.length)); } for (BundleDetails ele : bundleList) { this.bundleList.add(ele); } return this; }
/** * <p> * Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to * fetch more entries. * </p> * * @param nextToken * Pagination token. If non-null pagination token is returned in a result, then pass its value in another * request to fetch more entries. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBundlesResult 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 (getBundleList() != null) sb.append("BundleList: ").append(getBundleList()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }
/** * <p> * A list of bundles. * </p> * * @param bundleList * A list of bundles. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBundlesResult withBundleList(java.util.Collection<BundleDetails> bundleList) { setBundleList(bundleList); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBundleList() == null) ? 0 : getBundleList().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * <p> * A list of bundles. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBundleList(java.util.Collection)} or {@link #withBundleList(java.util.Collection)} if you want to * override the existing values. * </p> * * @param bundleList * A list of bundles. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBundlesResult withBundleList(BundleDetails... bundleList) { if (this.bundleList == null) { setBundleList(new java.util.ArrayList<BundleDetails>(bundleList.length)); } for (BundleDetails ele : bundleList) { this.bundleList.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListBundlesResult == false) return false; ListBundlesResult other = (ListBundlesResult) obj; if (other.getBundleList() == null ^ this.getBundleList() == null) return false; if (other.getBundleList() != null && other.getBundleList().equals(this.getBundleList()) == 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 (getBundleList() != null) sb.append("BundleList: ").append(getBundleList()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }