我为这样的dynamodb表定义了POJO:
public class DynamoDBTablePojo {
@NonNull
private String requestId;
@NonNull
private String responseId;
private String responseBlob;
@DynamoDBHashKey(attributeName = "RequestId")
public String getRequestId(){return this.requestId;};
@DynamoDBAttribute(attributeName = "ResponseId")
public String getResponseId(){return this.responseId;};
@DynamoDBAttribute(attributeName = "ResponseBlob")
public String getResponseBlob() {return responseBlob;}
}

我想在java中编写一个函数,它将获取属性名称和DynamoDBTablePojo对象并返回该属性的值。如,
String func(String attributeName, DynamoDBTablePojo dynamoDBTablePojoObj){
// returns value associated with this attribute.
}