@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTimeToLiveStatus() == null) ? 0 : getTimeToLiveStatus().hashCode()); hashCode = prime * hashCode + ((getAttributeName() == null) ? 0 : getAttributeName().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTimeToLiveDescription() == null) ? 0 : getTimeToLiveDescription().hashCode()); return hashCode; }
/** * <p> * The name of the Time to Live attribute for items in the table. * </p> * * @param attributeName * The name of the Time to Live attribute for items in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeToLiveDescription withAttributeName(String attributeName) { setAttributeName(attributeName); return this; }
public TimeToLiveDescription unmarshall(JsonUnmarshallerContext context) throws Exception { TimeToLiveDescription timeToLiveDescription = new TimeToLiveDescription(); if (context.testExpression("TimeToLiveStatus", targetDepth)) { context.nextToken(); timeToLiveDescription.setTimeToLiveStatus(context.getUnmarshaller(String.class).unmarshall(context)); timeToLiveDescription.setAttributeName(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 DescribeTimeToLiveResult == false) return false; DescribeTimeToLiveResult other = (DescribeTimeToLiveResult) obj; if (other.getTimeToLiveDescription() == null ^ this.getTimeToLiveDescription() == null) return false; if (other.getTimeToLiveDescription() != null && other.getTimeToLiveDescription().equals(this.getTimeToLiveDescription()) == false) return false; return true; }
/** * <p> * The Time to Live status for the table. * </p> * * @param timeToLiveStatus * The Time to Live status for the table. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeToLiveStatus */ public TimeToLiveDescription withTimeToLiveStatus(String timeToLiveStatus) { setTimeToLiveStatus(timeToLiveStatus); return this; }
/** * <p> * The Time to Live status for the table. * </p> * * @param timeToLiveStatus * The Time to Live status for the table. * @see TimeToLiveStatus */ public void setTimeToLiveStatus(TimeToLiveStatus timeToLiveStatus) { withTimeToLiveStatus(timeToLiveStatus); }
public TimeToLiveDescription unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } TimeToLiveDescription timeToLiveDescription = new TimeToLiveDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("TimeToLiveStatus")) { timeToLiveDescription.setTimeToLiveStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("AttributeName")) { timeToLiveDescription.setAttributeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return timeToLiveDescription; }
if (other.getTimeToLiveDescription() == null ^ this.getTimeToLiveDescription() == null) return false; if (other.getTimeToLiveDescription() != null && other.getTimeToLiveDescription().equals(this.getTimeToLiveDescription()) == false) return false; if (other.getSSEDescription() == null ^ this.getSSEDescription() == null)
/** * <p> * The Time to Live status for the table. * </p> * * @param timeToLiveStatus * The Time to Live status for the table. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeToLiveStatus */ public TimeToLiveDescription withTimeToLiveStatus(String timeToLiveStatus) { setTimeToLiveStatus(timeToLiveStatus); return this; }
/** * <p> * The Time to Live status for the table. * </p> * * @param timeToLiveStatus * The Time to Live status for the table. * @see TimeToLiveStatus */ public void setTimeToLiveStatus(TimeToLiveStatus timeToLiveStatus) { withTimeToLiveStatus(timeToLiveStatus); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TimeToLiveDescription == false) return false; TimeToLiveDescription other = (TimeToLiveDescription) obj; if (other.getTimeToLiveStatus() == null ^ this.getTimeToLiveStatus() == null) return false; if (other.getTimeToLiveStatus() != null && other.getTimeToLiveStatus().equals(this.getTimeToLiveStatus()) == 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; }
public TimeToLiveDescription unmarshall(JsonUnmarshallerContext context) throws Exception { TimeToLiveDescription timeToLiveDescription = new TimeToLiveDescription(); if (context.testExpression("TimeToLiveStatus", targetDepth)) { context.nextToken(); timeToLiveDescription.setTimeToLiveStatus(context.getUnmarshaller(String.class).unmarshall(context)); timeToLiveDescription.setAttributeName(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLocalSecondaryIndexes() == null) ? 0 : getLocalSecondaryIndexes().hashCode()); hashCode = prime * hashCode + ((getGlobalSecondaryIndexes() == null) ? 0 : getGlobalSecondaryIndexes().hashCode()); hashCode = prime * hashCode + ((getStreamDescription() == null) ? 0 : getStreamDescription().hashCode()); hashCode = prime * hashCode + ((getTimeToLiveDescription() == null) ? 0 : getTimeToLiveDescription().hashCode()); hashCode = prime * hashCode + ((getSSEDescription() == null) ? 0 : getSSEDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTimeToLiveResult == false) return false; DescribeTimeToLiveResult other = (DescribeTimeToLiveResult) obj; if (other.getTimeToLiveDescription() == null ^ this.getTimeToLiveDescription() == null) return false; if (other.getTimeToLiveDescription() != null && other.getTimeToLiveDescription().equals(this.getTimeToLiveDescription()) == false) return false; return true; } }
/** * <p> * The name of the Time to Live attribute for items in the table. * </p> * * @param attributeName * The name of the Time to Live attribute for items in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeToLiveDescription withAttributeName(String attributeName) { setAttributeName(attributeName); return this; }
/** * 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 (getTimeToLiveStatus() != null) sb.append("TimeToLiveStatus: ").append(getTimeToLiveStatus()).append(","); if (getAttributeName() != null) sb.append("AttributeName: ").append(getAttributeName()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTimeToLiveDescription() == null) ? 0 : getTimeToLiveDescription().hashCode()); return hashCode; }
return false; if (other.getTimeToLiveDescription() != null && other.getTimeToLiveDescription().equals(this.getTimeToLiveDescription()) == false) return false; if (other.getSSEDescription() == null ^ this.getSSEDescription() == null)
/** * Marshall the given parameter object. */ public void marshall(TimeToLiveDescription timeToLiveDescription, ProtocolMarshaller protocolMarshaller) { if (timeToLiveDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(timeToLiveDescription.getTimeToLiveStatus(), TIMETOLIVESTATUS_BINDING); protocolMarshaller.marshall(timeToLiveDescription.getAttributeName(), ATTRIBUTENAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }