@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRuleId() == null) ? 0 : getRuleId().hashCode()); hashCode = prime * hashCode + ((getChangeToken() == null) ? 0 : getChangeToken().hashCode()); return hashCode; }
/** * <p> * The value returned by the most recent call to <a>GetChangeToken</a>. * </p> * * @param changeToken * The value returned by the most recent call to <a>GetChangeToken</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteRateBasedRuleRequest withChangeToken(String changeToken) { setChangeToken(changeToken); return this; }
/** * <p> * The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete. <code>RuleId</code> is returned by * <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>. * </p> * * @param ruleId * The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete. <code>RuleId</code> is * returned by <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteRateBasedRuleRequest withRuleId(String ruleId) { setRuleId(ruleId); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteRateBasedRuleRequest == false) return false; DeleteRateBasedRuleRequest other = (DeleteRateBasedRuleRequest) obj; if (other.getRuleId() == null ^ this.getRuleId() == null) return false; if (other.getRuleId() != null && other.getRuleId().equals(this.getRuleId()) == false) return false; if (other.getChangeToken() == null ^ this.getChangeToken() == null) return false; if (other.getChangeToken() != null && other.getChangeToken().equals(this.getChangeToken()) == 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 (getRuleId() != null) sb.append("RuleId: ").append(getRuleId()).append(","); if (getChangeToken() != null) sb.append("ChangeToken: ").append(getChangeToken()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DeleteRateBasedRuleRequest deleteRateBasedRuleRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRateBasedRuleRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteRateBasedRuleRequest.getRuleId(), RULEID_BINDING); protocolMarshaller.marshall(deleteRateBasedRuleRequest.getChangeToken(), CHANGETOKEN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(DeleteRateBasedRuleRequest deleteRateBasedRuleRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRateBasedRuleRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteRateBasedRuleRequest.getRuleId(), RULEID_BINDING); protocolMarshaller.marshall(deleteRateBasedRuleRequest.getChangeToken(), CHANGETOKEN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }