@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getRegexPatternString() == null) ? 0 : getRegexPatternString().hashCode()); return hashCode; }
/** * <p> * Specifies whether to insert or delete a <code>RegexPatternString</code>. * </p> * * @param action * Specifies whether to insert or delete a <code>RegexPatternString</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public RegexPatternSetUpdate withAction(String action) { setAction(action); return this; }
/** * <p> * Specifies the regular expression (regex) pattern that you want AWS WAF to search for, such as * <code>B[a@]dB[o0]t</code>. * </p> * * @param regexPatternString * Specifies the regular expression (regex) pattern that you want AWS WAF to search for, such as * <code>B[a@]dB[o0]t</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSetUpdate withRegexPatternString(String regexPatternString) { setRegexPatternString(regexPatternString); return this; }
public RegexPatternSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception { RegexPatternSetUpdate regexPatternSetUpdate = new RegexPatternSetUpdate(); if (context.testExpression("Action", targetDepth)) { context.nextToken(); regexPatternSetUpdate.setAction(context.getUnmarshaller(String.class).unmarshall(context)); regexPatternSetUpdate.setRegexPatternString(context.getUnmarshaller(String.class).unmarshall(context));
public RegexPatternSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception { RegexPatternSetUpdate regexPatternSetUpdate = new RegexPatternSetUpdate(); if (context.testExpression("Action", targetDepth)) { context.nextToken(); regexPatternSetUpdate.setAction(context.getUnmarshaller(String.class).unmarshall(context)); regexPatternSetUpdate.setRegexPatternString(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 RegexPatternSetUpdate == false) return false; RegexPatternSetUpdate other = (RegexPatternSetUpdate) obj; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getRegexPatternString() == null ^ this.getRegexPatternString() == null) return false; if (other.getRegexPatternString() != null && other.getRegexPatternString().equals(this.getRegexPatternString()) == 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 (getAction() != null) sb.append("Action: ").append(getAction()).append(","); if (getRegexPatternString() != null) sb.append("RegexPatternString: ").append(getRegexPatternString()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(RegexPatternSetUpdate regexPatternSetUpdate, ProtocolMarshaller protocolMarshaller) { if (regexPatternSetUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(regexPatternSetUpdate.getAction(), ACTION_BINDING); protocolMarshaller.marshall(regexPatternSetUpdate.getRegexPatternString(), REGEXPATTERNSTRING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(RegexPatternSetUpdate regexPatternSetUpdate, ProtocolMarshaller protocolMarshaller) { if (regexPatternSetUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(regexPatternSetUpdate.getAction(), ACTION_BINDING); protocolMarshaller.marshall(regexPatternSetUpdate.getRegexPatternString(), REGEXPATTERNSTRING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }