.withGlobalSecondaryIndexUpdates( new GlobalSecondaryIndexUpdate().withUpdate( new UpdateGlobalSecondaryIndexAction() .withIndexName(indexName) .withProvisionedThroughput(provisionedThroughput))));
public UpdateGlobalSecondaryIndexAction unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateGlobalSecondaryIndexAction updateGlobalSecondaryIndexAction = new UpdateGlobalSecondaryIndexAction();
public UpdateGlobalSecondaryIndexAction unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } UpdateGlobalSecondaryIndexAction updateGlobalSecondaryIndexAction = new UpdateGlobalSecondaryIndexAction(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("IndexName")) { updateGlobalSecondaryIndexAction.setIndexName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ProvisionedThroughput")) { updateGlobalSecondaryIndexAction .setProvisionedThroughput(ProvisionedThroughputJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return updateGlobalSecondaryIndexAction; }
.withGlobalSecondaryIndexUpdates( new GlobalSecondaryIndexUpdate().withUpdate( new UpdateGlobalSecondaryIndexAction() .withIndexName(indexName) .withProvisionedThroughput(provisionedThroughput))));
public UpdateGlobalSecondaryIndexAction unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateGlobalSecondaryIndexAction updateGlobalSecondaryIndexAction = new UpdateGlobalSecondaryIndexAction();