/** * <p> * The shard ID of the shard where the data record was placed. * </p> * * @param shardId * The shard ID of the shard where the data record was placed. * @return Returns a reference to this object so that method calls can be chained together. */ public PutRecordResult withShardId(String shardId) { setShardId(shardId); return this; }
if (context.testExpression("ShardId", targetDepth)) { context.nextToken(); putRecordResult.setShardId(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 shard ID of the shard where the data record was placed. * </p> * * @param shardId * The shard ID of the shard where the data record was placed. * @return Returns a reference to this object so that method calls can be chained together. */ public PutRecordResult withShardId(String shardId) { setShardId(shardId); return this; }
if (context.testExpression("ShardId", targetDepth)) { context.nextToken(); putRecordResult.setShardId(context.getUnmarshaller(String.class).unmarshall(context));