Represents the data for an attribute. You can set one, and only one, of the elements.
415416417418419420421422423424425
return result; } for (Method m : reflector.getRelevantGetters(clazz)) { String attributeName = reflector.getAttributeName(m); AttributeValue av = value.get(attributeName); if (av != null) { setValue(result, m, av); } }
37383940414243444546
@Override public AttributeValue marshall(Object obj) { Boolean bool = (Boolean) obj; if (bool == null || bool == false) { return new AttributeValue().withN("0"); } else { return new AttributeValue().withN("1"); } }
46474849505152
List<String> strings = new ArrayList<String>(set.size()); for (String s : set) { strings.add(s); } return new AttributeValue().withSS(strings); }
4647484950515253
String stringValue = marshaler.marshall(obj); if (stringValue == null) { return null; } else { return new AttributeValue(stringValue); } }
48495051525354
List<String> timestamps = new ArrayList<String>(dates.size()); for (Calendar date : dates) { timestamps.add(DateUtils.formatISO8601Date(date.getTime())); } return new AttributeValue().withSS(timestamps); }
33343536373839
} @Override public AttributeValue marshall(Object obj) { Number number = (Number) obj; return new AttributeValue().withN(number.toString()); }
35363738394041
private ByteBufferToBinaryMarshaller() { } @Override public AttributeValue marshall(Object obj) { return new AttributeValue().withB((ByteBuffer) obj); }
42434445464748
if ( s3link.getBucketName() == null || s3link.getKey() == null ) { // insufficient S3 resource specification return null; } return new AttributeValue().withS(s3link.toJson()); }
private ByteArrayToBinaryMarshaller() { } @Override public AttributeValue marshall(Object obj) { return new AttributeValue().withB(ByteBuffer.wrap((byte[]) obj)); }
for (Number n : numbers) { numberAttributes.add(n.toString()); } return new AttributeValue().withNS(numberAttributes); }