@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIPSetId() == null) ? 0 : getIPSetId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); return hashCode; }
/** * <p> * The <code>IPSetId</code> for an <a>IPSet</a>. You can use <code>IPSetId</code> in a <a>GetIPSet</a> request to * get detailed information about an <a>IPSet</a>. * </p> * * @param iPSetId * The <code>IPSetId</code> for an <a>IPSet</a>. You can use <code>IPSetId</code> in a <a>GetIPSet</a> * request to get detailed information about an <a>IPSet</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public IPSetSummary withIPSetId(String iPSetId) { setIPSetId(iPSetId); return this; }
/** * <p> * A friendly name or description of the <a>IPSet</a>. You can't change the name of an <code>IPSet</code> after you * create it. * </p> * * @param name * A friendly name or description of the <a>IPSet</a>. You can't change the name of an <code>IPSet</code> * after you create it. * @return Returns a reference to this object so that method calls can be chained together. */ public IPSetSummary withName(String name) { setName(name); return this; }
public IPSetSummary unmarshall(JsonUnmarshallerContext context) throws Exception { IPSetSummary iPSetSummary = new IPSetSummary(); if (context.testExpression("IPSetId", targetDepth)) { context.nextToken(); iPSetSummary.setIPSetId(context.getUnmarshaller(String.class).unmarshall(context)); iPSetSummary.setName(context.getUnmarshaller(String.class).unmarshall(context));
public IPSetSummary unmarshall(JsonUnmarshallerContext context) throws Exception { IPSetSummary iPSetSummary = new IPSetSummary(); if (context.testExpression("IPSetId", targetDepth)) { context.nextToken(); iPSetSummary.setIPSetId(context.getUnmarshaller(String.class).unmarshall(context)); iPSetSummary.setName(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 IPSetSummary == false) return false; IPSetSummary other = (IPSetSummary) obj; if (other.getIPSetId() == null ^ this.getIPSetId() == null) return false; if (other.getIPSetId() != null && other.getIPSetId().equals(this.getIPSetId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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 (getIPSetId() != null) sb.append("IPSetId: ").append(getIPSetId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(IPSetSummary iPSetSummary, ProtocolMarshaller protocolMarshaller) { if (iPSetSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(iPSetSummary.getIPSetId(), IPSETID_BINDING); protocolMarshaller.marshall(iPSetSummary.getName(), NAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(IPSetSummary iPSetSummary, ProtocolMarshaller protocolMarshaller) { if (iPSetSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(iPSetSummary.getIPSetId(), IPSETID_BINDING); protocolMarshaller.marshall(iPSetSummary.getName(), NAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }