@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getByteMatchSetId() == null) ? 0 : getByteMatchSetId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getByteMatchTuples() == null) ? 0 : getByteMatchTuples().hashCode()); return hashCode; }
/** * 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 (getByteMatchSetId() != null) sb.append("ByteMatchSetId: ").append(getByteMatchSetId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getByteMatchTuples() != null) sb.append("ByteMatchTuples: ").append(getByteMatchTuples()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ByteMatchSet == false) return false; ByteMatchSet other = (ByteMatchSet) obj; if (other.getByteMatchSetId() == null ^ this.getByteMatchSetId() == null) return false; if (other.getByteMatchSetId() != null && other.getByteMatchSetId().equals(this.getByteMatchSetId()) == 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.getByteMatchTuples() == null ^ this.getByteMatchTuples() == null) return false; if (other.getByteMatchTuples() != null && other.getByteMatchTuples().equals(this.getByteMatchTuples()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ByteMatchSet byteMatchSet, ProtocolMarshaller protocolMarshaller) { if (byteMatchSet == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(byteMatchSet.getByteMatchSetId(), BYTEMATCHSETID_BINDING); protocolMarshaller.marshall(byteMatchSet.getName(), NAME_BINDING); protocolMarshaller.marshall(byteMatchSet.getByteMatchTuples(), BYTEMATCHTUPLES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(ByteMatchSet byteMatchSet, ProtocolMarshaller protocolMarshaller) { if (byteMatchSet == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(byteMatchSet.getByteMatchSetId(), BYTEMATCHSETID_BINDING); protocolMarshaller.marshall(byteMatchSet.getName(), NAME_BINDING); protocolMarshaller.marshall(byteMatchSet.getByteMatchTuples(), BYTEMATCHTUPLES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }