setAction(action); return this;
setAction(action);
setAction(action.toString());
attributeValueUpdate.setAction(context.getUnmarshaller(String.class).unmarshall(context));
/** * Converts a {@link DynamoDBEntry} to {@link AttributeValueUpdate}. * * @return {@link AttributeValueUpdate}. */ public AttributeValueUpdate convertToAttributeUpdateValue() { final AttributeValue attributeValue = this.convertToAttributeValue(); final AttributeValueUpdate attributeUpdate = new AttributeValueUpdate(); if (attributeValue == null) { attributeUpdate.setAction(AttributeAction.DELETE); } else { attributeUpdate.setAction(AttributeAction.PUT); attributeUpdate.setValue(attributeValue); } return attributeUpdate; }
setAction(action.toString());
public AttributeValueUpdate unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } AttributeValueUpdate attributeValueUpdate = new AttributeValueUpdate(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Value")) { attributeValueUpdate.setValue(AttributeValueJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Action")) { attributeValueUpdate.setAction(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return attributeValueUpdate; }
setAction(action); return this;
setAction(action.toString());
attributeValueUpdate.setAction(context.getUnmarshaller(String.class).unmarshall(context));