@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFieldToMatch() == null) ? 0 : getFieldToMatch().hashCode()); hashCode = prime * hashCode + ((getTextTransformation() == null) ? 0 : getTextTransformation().hashCode()); hashCode = prime * hashCode + ((getRegexPatternSetId() == null) ? 0 : getRegexPatternSetId().hashCode()); return hashCode; }
/** * <p> * Specifies where in a web request to look for the <code>RegexPatternSet</code>. * </p> * * @param fieldToMatch * Specifies where in a web request to look for the <code>RegexPatternSet</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexMatchTuple withFieldToMatch(FieldToMatch fieldToMatch) { setFieldToMatch(fieldToMatch); return this; }
/** * <p> * The <code>RegexPatternSetId</code> for a <code>RegexPatternSet</code>. You use <code>RegexPatternSetId</code> to * get information about a <code>RegexPatternSet</code> (see <a>GetRegexPatternSet</a>), update a * <code>RegexPatternSet</code> (see <a>UpdateRegexPatternSet</a>), insert a <code>RegexPatternSet</code> into a * <code>RegexMatchSet</code> or delete one from a <code>RegexMatchSet</code> (see <a>UpdateRegexMatchSet</a>), and * delete an <code>RegexPatternSet</code> from AWS WAF (see <a>DeleteRegexPatternSet</a>). * </p> * <p> * <code>RegexPatternSetId</code> is returned by <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>. * </p> * * @param regexPatternSetId * The <code>RegexPatternSetId</code> for a <code>RegexPatternSet</code>. You use * <code>RegexPatternSetId</code> to get information about a <code>RegexPatternSet</code> (see * <a>GetRegexPatternSet</a>), update a <code>RegexPatternSet</code> (see <a>UpdateRegexPatternSet</a>), * insert a <code>RegexPatternSet</code> into a <code>RegexMatchSet</code> or delete one from a * <code>RegexMatchSet</code> (see <a>UpdateRegexMatchSet</a>), and delete an <code>RegexPatternSet</code> * from AWS WAF (see <a>DeleteRegexPatternSet</a>).</p> * <p> * <code>RegexPatternSetId</code> is returned by <a>CreateRegexPatternSet</a> and by * <a>ListRegexPatternSets</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexMatchTuple withRegexPatternSetId(String regexPatternSetId) { setRegexPatternSetId(regexPatternSetId); return this; }
public RegexMatchTuple unmarshall(JsonUnmarshallerContext context) throws Exception { RegexMatchTuple regexMatchTuple = new RegexMatchTuple(); if (context.testExpression("FieldToMatch", targetDepth)) { context.nextToken(); regexMatchTuple.setFieldToMatch(FieldToMatchJsonUnmarshaller.getInstance().unmarshall(context)); regexMatchTuple.setTextTransformation(context.getUnmarshaller(String.class).unmarshall(context)); regexMatchTuple.setRegexPatternSetId(context.getUnmarshaller(String.class).unmarshall(context));
setTextTransformation(textTransformation); return this;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getRegexMatchTuple() == null) ? 0 : getRegexMatchTuple().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RegexMatchSetUpdate == false) return false; RegexMatchSetUpdate other = (RegexMatchSetUpdate) obj; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getRegexMatchTuple() == null ^ this.getRegexMatchTuple() == null) return false; if (other.getRegexMatchTuple() != null && other.getRegexMatchTuple().equals(this.getRegexMatchTuple()) == false) return false; return true; }
public RegexMatchTuple unmarshall(JsonUnmarshallerContext context) throws Exception { RegexMatchTuple regexMatchTuple = new RegexMatchTuple(); if (context.testExpression("FieldToMatch", targetDepth)) { context.nextToken(); regexMatchTuple.setFieldToMatch(FieldToMatchJsonUnmarshaller.getInstance().unmarshall(context)); regexMatchTuple.setTextTransformation(context.getUnmarshaller(String.class).unmarshall(context)); regexMatchTuple.setRegexPatternSetId(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 RegexMatchTuple == false) return false; RegexMatchTuple other = (RegexMatchTuple) obj; if (other.getFieldToMatch() == null ^ this.getFieldToMatch() == null) return false; if (other.getFieldToMatch() != null && other.getFieldToMatch().equals(this.getFieldToMatch()) == false) return false; if (other.getTextTransformation() == null ^ this.getTextTransformation() == null) return false; if (other.getTextTransformation() != null && other.getTextTransformation().equals(this.getTextTransformation()) == false) return false; if (other.getRegexPatternSetId() == null ^ this.getRegexPatternSetId() == null) return false; if (other.getRegexPatternSetId() != null && other.getRegexPatternSetId().equals(this.getRegexPatternSetId()) == 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 (getFieldToMatch() != null) sb.append("FieldToMatch: ").append(getFieldToMatch()).append(","); if (getTextTransformation() != null) sb.append("TextTransformation: ").append(getTextTransformation()).append(","); if (getRegexPatternSetId() != null) sb.append("RegexPatternSetId: ").append(getRegexPatternSetId()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(RegexMatchTuple regexMatchTuple, ProtocolMarshaller protocolMarshaller) { if (regexMatchTuple == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(regexMatchTuple.getFieldToMatch(), FIELDTOMATCH_BINDING); protocolMarshaller.marshall(regexMatchTuple.getTextTransformation(), TEXTTRANSFORMATION_BINDING); protocolMarshaller.marshall(regexMatchTuple.getRegexPatternSetId(), REGEXPATTERNSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(RegexMatchTuple regexMatchTuple, ProtocolMarshaller protocolMarshaller) { if (regexMatchTuple == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(regexMatchTuple.getFieldToMatch(), FIELDTOMATCH_BINDING); protocolMarshaller.marshall(regexMatchTuple.getTextTransformation(), TEXTTRANSFORMATION_BINDING); protocolMarshaller.marshall(regexMatchTuple.getRegexPatternSetId(), REGEXPATTERNSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }