@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); hashCode = prime * hashCode + ((getActivatedRules() == null) ? 0 : getActivatedRules().hashCode()); return hashCode; }
/** * <p> * An array of <code>ActivatedRules</code> objects. * </p> * * @param activatedRules * An array of <code>ActivatedRules</code> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListActivatedRulesInRuleGroupResult withActivatedRules(java.util.Collection<ActivatedRule> activatedRules) { setActivatedRules(activatedRules); return this; }
/** * <p> * If you have more <code>ActivatedRules</code> than the number that you specified for <code>Limit</code> in the * request, the response includes a <code>NextMarker</code> value. To list more <code>ActivatedRules</code>, submit * another <code>ListActivatedRulesInRuleGroup</code> request, and specify the <code>NextMarker</code> value from * the response in the <code>NextMarker</code> value in the next request. * </p> * * @param nextMarker * If you have more <code>ActivatedRules</code> than the number that you specified for <code>Limit</code> in * the request, the response includes a <code>NextMarker</code> value. To list more * <code>ActivatedRules</code>, submit another <code>ListActivatedRulesInRuleGroup</code> request, and * specify the <code>NextMarker</code> value from the response in the <code>NextMarker</code> value in the * next request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListActivatedRulesInRuleGroupResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
public ListActivatedRulesInRuleGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListActivatedRulesInRuleGroupResult listActivatedRulesInRuleGroupResult = new ListActivatedRulesInRuleGroupResult(); if (context.testExpression("NextMarker", targetDepth)) { context.nextToken(); listActivatedRulesInRuleGroupResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context)); listActivatedRulesInRuleGroupResult.setActivatedRules(new ListUnmarshaller<ActivatedRule>(ActivatedRuleJsonUnmarshaller.getInstance()) .unmarshall(context));
public ListActivatedRulesInRuleGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListActivatedRulesInRuleGroupResult listActivatedRulesInRuleGroupResult = new ListActivatedRulesInRuleGroupResult(); if (context.testExpression("NextMarker", targetDepth)) { context.nextToken(); listActivatedRulesInRuleGroupResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context)); listActivatedRulesInRuleGroupResult.setActivatedRules(new ListUnmarshaller<ActivatedRule>(ActivatedRuleJsonUnmarshaller.getInstance()) .unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListActivatedRulesInRuleGroupResult == false) return false; ListActivatedRulesInRuleGroupResult other = (ListActivatedRulesInRuleGroupResult) obj; if (other.getNextMarker() == null ^ this.getNextMarker() == null) return false; if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false) return false; if (other.getActivatedRules() == null ^ this.getActivatedRules() == null) return false; if (other.getActivatedRules() != null && other.getActivatedRules().equals(this.getActivatedRules()) == false) return false; return true; }
/** * <p> * An array of <code>ActivatedRules</code> objects. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setActivatedRules(java.util.Collection)} or {@link #withActivatedRules(java.util.Collection)} if you want * to override the existing values. * </p> * * @param activatedRules * An array of <code>ActivatedRules</code> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListActivatedRulesInRuleGroupResult withActivatedRules(ActivatedRule... activatedRules) { if (this.activatedRules == null) { setActivatedRules(new java.util.ArrayList<ActivatedRule>(activatedRules.length)); } for (ActivatedRule ele : activatedRules) { this.activatedRules.add(ele); } 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 (getNextMarker() != null) sb.append("NextMarker: ").append(getNextMarker()).append(","); if (getActivatedRules() != null) sb.append("ActivatedRules: ").append(getActivatedRules()); sb.append("}"); return sb.toString(); }