@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getAttributeName() == null) ? 0 : getAttributeName().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 (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getAttributeName() != null) sb.append("AttributeName: ").append(getAttributeName()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TimeToLiveSpecification == false) return false; TimeToLiveSpecification other = (TimeToLiveSpecification) obj; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getAttributeName() == null ^ this.getAttributeName() == null) return false; if (other.getAttributeName() != null && other.getAttributeName().equals(this.getAttributeName()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(TimeToLiveSpecification timeToLiveSpecification, ProtocolMarshaller protocolMarshaller) { if (timeToLiveSpecification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(timeToLiveSpecification.getEnabled(), ENABLED_BINDING); protocolMarshaller.marshall(timeToLiveSpecification.getAttributeName(), ATTRIBUTENAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getAttributeName() == null) ? 0 : getAttributeName().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TimeToLiveSpecification == false) return false; TimeToLiveSpecification other = (TimeToLiveSpecification) obj; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getAttributeName() == null ^ this.getAttributeName() == null) return false; if (other.getAttributeName() != null && other.getAttributeName().equals(this.getAttributeName()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEnabled() != null) sb.append("Enabled: " + getEnabled() + ","); if (getAttributeName() != null) sb.append("AttributeName: " + getAttributeName()); sb.append("}"); return sb.toString(); }
public void marshall(TimeToLiveSpecification timeToLiveSpecification, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (timeToLiveSpecification.getEnabled() != null) { Boolean enabled = timeToLiveSpecification.getEnabled(); jsonWriter.name("Enabled"); jsonWriter.value(enabled); } if (timeToLiveSpecification.getAttributeName() != null) { String attributeName = timeToLiveSpecification.getAttributeName(); jsonWriter.name("AttributeName"); jsonWriter.value(attributeName); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getAttributeName() == null) ? 0 : getAttributeName().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TimeToLiveSpecification == false) return false; TimeToLiveSpecification other = (TimeToLiveSpecification) obj; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getAttributeName() == null ^ this.getAttributeName() == null) return false; if (other.getAttributeName() != null && other.getAttributeName().equals(this.getAttributeName()) == 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 (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getAttributeName() != null) sb.append("AttributeName: ").append(getAttributeName()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TimeToLiveSpecification timeToLiveSpecification, ProtocolMarshaller protocolMarshaller) { if (timeToLiveSpecification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(timeToLiveSpecification.getEnabled(), ENABLED_BINDING); protocolMarshaller.marshall(timeToLiveSpecification.getAttributeName(), ATTRIBUTENAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }