/** * <p> * A map of attribute values as they appear before or after the <code>UpdateItem</code> operation, as determined by * the <code>ReturnValues</code> parameter. * </p> * <p> * The <code>Attributes</code> map is only present if <code>ReturnValues</code> was specified as something other * than <code>NONE</code> in the request. Each element represents one attribute. * </p> * * @param attributes * A map of attribute values as they appear before or after the <code>UpdateItem</code> operation, as * determined by the <code>ReturnValues</code> parameter.</p> * <p> * The <code>Attributes</code> map is only present if <code>ReturnValues</code> was specified as something * other than <code>NONE</code> in the request. Each element represents one attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateItemResult withAttributes(java.util.Map<String, AttributeValue> attributes) { setAttributes(attributes); return this; }
if (context.testExpression("Attributes", targetDepth)) { context.nextToken(); updateItemResult.setAttributes(new MapUnmarshaller<String, AttributeValue>(context.getUnmarshaller(String.class), AttributeValueJsonUnmarshaller.getInstance()).unmarshall(context));
public UpdateItemResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateItemResult updateItemResult = new UpdateItemResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Attributes")) { updateItemResult.setAttributes(new MapUnmarshaller<AttributeValue>( AttributeValueJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("ConsumedCapacity")) { updateItemResult.setConsumedCapacity(ConsumedCapacityJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ItemCollectionMetrics")) { updateItemResult.setItemCollectionMetrics(ItemCollectionMetricsJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return updateItemResult; }
/** * <p> * A map of attribute values as they appear before or after the <code>UpdateItem</code> operation, as determined by * the <code>ReturnValues</code> parameter. * </p> * <p> * The <code>Attributes</code> map is only present if <code>ReturnValues</code> was specified as something other * than <code>NONE</code> in the request. Each element represents one attribute. * </p> * * @param attributes * A map of attribute values as they appear before or after the <code>UpdateItem</code> operation, as * determined by the <code>ReturnValues</code> parameter.</p> * <p> * The <code>Attributes</code> map is only present if <code>ReturnValues</code> was specified as something * other than <code>NONE</code> in the request. Each element represents one attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateItemResult withAttributes(java.util.Map<String, AttributeValue> attributes) { setAttributes(attributes); return this; }
if (context.testExpression("Attributes", targetDepth)) { context.nextToken(); updateItemResult.setAttributes(new MapUnmarshaller<String, AttributeValue>(context.getUnmarshaller(String.class), AttributeValueJsonUnmarshaller.getInstance()).unmarshall(context));