/** * <p> * The name of the Time to Live attribute used to store the expiration time for items in the table. * </p> * * @param attributeName * The name of the Time to Live attribute used to store the expiration time for items in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeToLiveSpecification withAttributeName(String attributeName) { setAttributeName(attributeName); return this; }
timeToLiveSpecification.setAttributeName(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The name of the Time to Live attribute used to store the expiration time for items in the table. * </p> * * @param attributeName * The name of the Time to Live attribute used to store the expiration time for items in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeToLiveSpecification withAttributeName(String attributeName) { setAttributeName(attributeName); return this; }
public TimeToLiveSpecification unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } TimeToLiveSpecification timeToLiveSpecification = new TimeToLiveSpecification(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Enabled")) { timeToLiveSpecification.setEnabled(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("AttributeName")) { timeToLiveSpecification.setAttributeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return timeToLiveSpecification; }
timeToLiveSpecification.setAttributeName(context.getUnmarshaller(String.class).unmarshall(context));