/** * <p> * The sequence number identifier that was assigned to the put data record. The sequence number for the record is * unique across all records in the stream. A sequence number is the identifier associated with every record put * into the stream. * </p> * * @param sequenceNumber * The sequence number identifier that was assigned to the put data record. The sequence number for the * record is unique across all records in the stream. A sequence number is the identifier associated with * every record put into the stream. * @return Returns a reference to this object so that method calls can be chained together. */ public PutRecordResult withSequenceNumber(String sequenceNumber) { setSequenceNumber(sequenceNumber); return this; }
putRecordResult.setSequenceNumber(context.getUnmarshaller(String.class).unmarshall(context));
public PutRecordResult unmarshall(JsonUnmarshallerContext context) throws Exception { PutRecordResult putRecordResult = new PutRecordResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("ShardId")) { putRecordResult.setShardId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("SequenceNumber")) { putRecordResult.setSequenceNumber(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("EncryptionType")) { putRecordResult.setEncryptionType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return putRecordResult; }
/** * <p> * The sequence number identifier that was assigned to the put data record. The sequence number for the record is * unique across all records in the stream. A sequence number is the identifier associated with every record put * into the stream. * </p> * * @param sequenceNumber * The sequence number identifier that was assigned to the put data record. The sequence number for the * record is unique across all records in the stream. A sequence number is the identifier associated with * every record put into the stream. * @return Returns a reference to this object so that method calls can be chained together. */ public PutRecordResult withSequenceNumber(String sequenceNumber) { setSequenceNumber(sequenceNumber); return this; }
putRecordResult.setSequenceNumber(context.getUnmarshaller(String.class).unmarshall(context));