@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getXssMatchSetId() == null) ? 0 : getXssMatchSetId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getXssMatchTuples() == null) ? 0 : getXssMatchTuples().hashCode()); return hashCode; }
/** * <p> * The name, if any, of the <code>XssMatchSet</code>. * </p> * * @param name * The name, if any, of the <code>XssMatchSet</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public XssMatchSet withName(String name) { setName(name); return this; }
/** * <p> * A unique identifier for an <code>XssMatchSet</code>. You use <code>XssMatchSetId</code> to get information about * an <code>XssMatchSet</code> (see <a>GetXssMatchSet</a>), update an <code>XssMatchSet</code> (see * <a>UpdateXssMatchSet</a>), insert an <code>XssMatchSet</code> into a <code>Rule</code> or delete one from a * <code>Rule</code> (see <a>UpdateRule</a>), and delete an <code>XssMatchSet</code> from AWS WAF (see * <a>DeleteXssMatchSet</a>). * </p> * <p> * <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and by <a>ListXssMatchSets</a>. * </p> * * @param xssMatchSetId * A unique identifier for an <code>XssMatchSet</code>. You use <code>XssMatchSetId</code> to get information * about an <code>XssMatchSet</code> (see <a>GetXssMatchSet</a>), update an <code>XssMatchSet</code> (see * <a>UpdateXssMatchSet</a>), insert an <code>XssMatchSet</code> into a <code>Rule</code> or delete one from * a <code>Rule</code> (see <a>UpdateRule</a>), and delete an <code>XssMatchSet</code> from AWS WAF (see * <a>DeleteXssMatchSet</a>).</p> * <p> * <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and by <a>ListXssMatchSets</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public XssMatchSet withXssMatchSetId(String xssMatchSetId) { setXssMatchSetId(xssMatchSetId); return this; }
public XssMatchSet unmarshall(JsonUnmarshallerContext context) throws Exception { XssMatchSet xssMatchSet = new XssMatchSet(); if (context.testExpression("XssMatchSetId", targetDepth)) { context.nextToken(); xssMatchSet.setXssMatchSetId(context.getUnmarshaller(String.class).unmarshall(context)); xssMatchSet.setName(context.getUnmarshaller(String.class).unmarshall(context)); xssMatchSet.setXssMatchTuples(new ListUnmarshaller<XssMatchTuple>(XssMatchTupleJsonUnmarshaller.getInstance()).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getXssMatchSet() == null) ? 0 : getXssMatchSet().hashCode()); return hashCode; }
/** * <p> * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. * </p> * * @param xssMatchTuples * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. * @return Returns a reference to this object so that method calls can be chained together. */ public XssMatchSet withXssMatchTuples(java.util.Collection<XssMatchTuple> xssMatchTuples) { setXssMatchTuples(xssMatchTuples); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetXssMatchSetResult == false) return false; GetXssMatchSetResult other = (GetXssMatchSetResult) obj; if (other.getXssMatchSet() == null ^ this.getXssMatchSet() == null) return false; if (other.getXssMatchSet() != null && other.getXssMatchSet().equals(this.getXssMatchSet()) == false) return false; return true; }
public XssMatchSet unmarshall(JsonUnmarshallerContext context) throws Exception { XssMatchSet xssMatchSet = new XssMatchSet(); if (context.testExpression("XssMatchSetId", targetDepth)) { context.nextToken(); xssMatchSet.setXssMatchSetId(context.getUnmarshaller(String.class).unmarshall(context)); xssMatchSet.setName(context.getUnmarshaller(String.class).unmarshall(context)); xssMatchSet.setXssMatchTuples(new ListUnmarshaller<XssMatchTuple>(XssMatchTupleJsonUnmarshaller.getInstance()).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getXssMatchSet() == null) ? 0 : getXssMatchSet().hashCode()); hashCode = prime * hashCode + ((getChangeToken() == null) ? 0 : getChangeToken().hashCode()); return hashCode; }
/** * <p> * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setXssMatchTuples(java.util.Collection)} or {@link #withXssMatchTuples(java.util.Collection)} if you want * to override the existing values. * </p> * * @param xssMatchTuples * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. * @return Returns a reference to this object so that method calls can be chained together. */ public XssMatchSet withXssMatchTuples(XssMatchTuple... xssMatchTuples) { if (this.xssMatchTuples == null) { setXssMatchTuples(new java.util.ArrayList<XssMatchTuple>(xssMatchTuples.length)); } for (XssMatchTuple ele : xssMatchTuples) { this.xssMatchTuples.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateXssMatchSetResult == false) return false; CreateXssMatchSetResult other = (CreateXssMatchSetResult) obj; if (other.getXssMatchSet() == null ^ this.getXssMatchSet() == null) return false; if (other.getXssMatchSet() != null && other.getXssMatchSet().equals(this.getXssMatchSet()) == 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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof XssMatchSet == false) return false; XssMatchSet other = (XssMatchSet) obj; if (other.getXssMatchSetId() == null ^ this.getXssMatchSetId() == null) return false; if (other.getXssMatchSetId() != null && other.getXssMatchSetId().equals(this.getXssMatchSetId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getXssMatchTuples() == null ^ this.getXssMatchTuples() == null) return false; if (other.getXssMatchTuples() != null && other.getXssMatchTuples().equals(this.getXssMatchTuples()) == 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 (getXssMatchSetId() != null) sb.append("XssMatchSetId: ").append(getXssMatchSetId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getXssMatchTuples() != null) sb.append("XssMatchTuples: ").append(getXssMatchTuples()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(XssMatchSet xssMatchSet, ProtocolMarshaller protocolMarshaller) { if (xssMatchSet == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(xssMatchSet.getXssMatchSetId(), XSSMATCHSETID_BINDING); protocolMarshaller.marshall(xssMatchSet.getName(), NAME_BINDING); protocolMarshaller.marshall(xssMatchSet.getXssMatchTuples(), XSSMATCHTUPLES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(XssMatchSet xssMatchSet, ProtocolMarshaller protocolMarshaller) { if (xssMatchSet == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(xssMatchSet.getXssMatchSetId(), XSSMATCHSETID_BINDING); protocolMarshaller.marshall(xssMatchSet.getName(), NAME_BINDING); protocolMarshaller.marshall(xssMatchSet.getXssMatchTuples(), XSSMATCHTUPLES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }