@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getShardLimit() == null) ? 0 : getShardLimit().hashCode()); hashCode = prime * hashCode + ((getOpenShardCount() == null) ? 0 : getOpenShardCount().hashCode()); return hashCode; }
/** * <p> * The number of open shards. * </p> * * @param openShardCount * The number of open shards. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLimitsResult withOpenShardCount(Integer openShardCount) { setOpenShardCount(openShardCount); return this; }
/** * <p> * The maximum number of shards. * </p> * * @param shardLimit * The maximum number of shards. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLimitsResult withShardLimit(Integer shardLimit) { setShardLimit(shardLimit); return this; }
public DescribeLimitsResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeLimitsResult describeLimitsResult = new DescribeLimitsResult(); if (context.testExpression("ShardLimit", targetDepth)) { context.nextToken(); describeLimitsResult.setShardLimit(context.getUnmarshaller(Integer.class).unmarshall(context)); describeLimitsResult.setOpenShardCount(context.getUnmarshaller(Integer.class).unmarshall(context));
public DescribeLimitsResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeLimitsResult describeLimitsResult = new DescribeLimitsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("ShardLimit")) { describeLimitsResult.setShardLimit(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("OpenShardCount")) { describeLimitsResult.setOpenShardCount(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return describeLimitsResult; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLimitsResult == false) return false; DescribeLimitsResult other = (DescribeLimitsResult) obj; if (other.getShardLimit() == null ^ this.getShardLimit() == null) return false; if (other.getShardLimit() != null && other.getShardLimit().equals(this.getShardLimit()) == false) return false; if (other.getOpenShardCount() == null ^ this.getOpenShardCount() == null) return false; if (other.getOpenShardCount() != null && other.getOpenShardCount().equals(this.getOpenShardCount()) == false) return false; return true; }
public DescribeLimitsResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeLimitsResult describeLimitsResult = new DescribeLimitsResult(); if (context.testExpression("ShardLimit", targetDepth)) { context.nextToken(); describeLimitsResult.setShardLimit(context.getUnmarshaller(Integer.class).unmarshall(context)); describeLimitsResult.setOpenShardCount(context.getUnmarshaller(Integer.class).unmarshall(context));
/** * <p> * The maximum number of shards. * </p> * * @param shardLimit * The maximum number of shards. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLimitsResult withShardLimit(Integer shardLimit) { setShardLimit(shardLimit); return this; }
/** * <p> * The number of open shards. * </p> * * @param openShardCount * The number of open shards. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLimitsResult withOpenShardCount(Integer openShardCount) { setOpenShardCount(openShardCount); 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 (getShardLimit() != null) sb.append("ShardLimit: ").append(getShardLimit()).append(","); if (getOpenShardCount() != null) sb.append("OpenShardCount: ").append(getOpenShardCount()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getShardLimit() == null) ? 0 : getShardLimit().hashCode()); hashCode = prime * hashCode + ((getOpenShardCount() == null) ? 0 : getOpenShardCount().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLimitsResult == false) return false; DescribeLimitsResult other = (DescribeLimitsResult) obj; if (other.getShardLimit() == null ^ this.getShardLimit() == null) return false; if (other.getShardLimit() != null && other.getShardLimit().equals(this.getShardLimit()) == false) return false; if (other.getOpenShardCount() == null ^ this.getOpenShardCount() == null) return false; if (other.getOpenShardCount() != null && other.getOpenShardCount().equals(this.getOpenShardCount()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getShardLimit() != null) sb.append("ShardLimit: " + getShardLimit() + ","); if (getOpenShardCount() != null) sb.append("OpenShardCount: " + getOpenShardCount()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getShardLimit() == null) ? 0 : getShardLimit().hashCode()); hashCode = prime * hashCode + ((getOpenShardCount() == null) ? 0 : getOpenShardCount().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLimitsResult == false) return false; DescribeLimitsResult other = (DescribeLimitsResult) obj; if (other.getShardLimit() == null ^ this.getShardLimit() == null) return false; if (other.getShardLimit() != null && other.getShardLimit().equals(this.getShardLimit()) == false) return false; if (other.getOpenShardCount() == null ^ this.getOpenShardCount() == null) return false; if (other.getOpenShardCount() != null && other.getOpenShardCount().equals(this.getOpenShardCount()) == 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 (getShardLimit() != null) sb.append("ShardLimit: ").append(getShardLimit()).append(","); if (getOpenShardCount() != null) sb.append("OpenShardCount: ").append(getOpenShardCount()); sb.append("}"); return sb.toString(); }