/** * <p> * The data records retrieved from the shard. * </p> * * @param records * The data records retrieved from the shard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecordsResult withRecords(java.util.Collection<Record> records) { setRecords(records); return this; }
/** * <p> * The data records retrieved from the shard. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRecords(java.util.Collection)} or {@link #withRecords(java.util.Collection)} if you want to override * the existing values. * </p> * * @param records * The data records retrieved from the shard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecordsResult withRecords(Record... records) { if (this.records == null) { setRecords(new com.amazonaws.internal.SdkInternalList<Record>(records.length)); } for (Record ele : records) { this.records.add(ele); } return this; }
if (context.testExpression("Records", targetDepth)) { context.nextToken(); getRecordsResult.setRecords(new ListUnmarshaller<Record>(RecordJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * The data records retrieved from the shard. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param records <p> * The data records retrieved from the shard. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetRecordsResult withRecords(java.util.Collection<Record> records) { setRecords(records); return this; }
public GetRecordsResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetRecordsResult getRecordsResult = new GetRecordsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Records")) { getRecordsResult.setRecords(new ListUnmarshaller<Record>(RecordJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else if (name.equals("NextShardIterator")) { getRecordsResult.setNextShardIterator(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("MillisBehindLatest")) { getRecordsResult.setMillisBehindLatest(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return getRecordsResult; }
/** * <p> * The data records retrieved from the shard. * </p> * * @param records * The data records retrieved from the shard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecordsResult withRecords(java.util.Collection<Record> records) { setRecords(records); return this; }
/** * <p> * The data records retrieved from the shard. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRecords(java.util.Collection)} or {@link #withRecords(java.util.Collection)} if you want to override * the existing values. * </p> * * @param records * The data records retrieved from the shard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecordsResult withRecords(Record... records) { if (this.records == null) { setRecords(new com.amazonaws.internal.SdkInternalList<Record>(records.length)); } for (Record ele : records) { this.records.add(ele); } return this; }
if (context.testExpression("Records", targetDepth)) { context.nextToken(); getRecordsResult.setRecords(new ListUnmarshaller<Record>(RecordJsonUnmarshaller.getInstance()).unmarshall(context));