/** * <p> * Indicates whether Time To Live is to be enabled (true) or disabled (false) on the table. * </p> * * @param enabled * Indicates whether Time To Live is to be enabled (true) or disabled (false) on the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeToLiveSpecification withEnabled(Boolean enabled) { setEnabled(enabled); return this; }
if (context.testExpression("Enabled", targetDepth)) { context.nextToken(); timeToLiveSpecification.setEnabled(context.getUnmarshaller(Boolean.class).unmarshall(context));
/** * <p> * Indicates whether Time To Live is to be enabled (true) or disabled (false) on the table. * </p> * * @param enabled * Indicates whether Time To Live is to be enabled (true) or disabled (false) on the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeToLiveSpecification withEnabled(Boolean enabled) { setEnabled(enabled); 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; }
if (context.testExpression("Enabled", targetDepth)) { context.nextToken(); timeToLiveSpecification.setEnabled(context.getUnmarshaller(Boolean.class).unmarshall(context));