/** * <p> * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>. * </p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. * </p> * * @param readCapacityUnits * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedThroughput withReadCapacityUnits(Long readCapacityUnits) { setReadCapacityUnits(readCapacityUnits); return this; }
/** * Constructs a new ProvisionedThroughput object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param readCapacityUnits * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. * @param writeCapacityUnits * The maximum number of writes consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>. * </p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. */ public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits) { setReadCapacityUnits(readCapacityUnits); setWriteCapacityUnits(writeCapacityUnits); }
if (context.testExpression("ReadCapacityUnits", targetDepth)) { context.nextToken(); provisionedThroughput.setReadCapacityUnits(context.getUnmarshaller(Long.class).unmarshall(context));
/** * Constructs a new ProvisionedThroughput object. Callers should use the * setter or fluent setter (with...) methods to initialize any additional * object members. * * @param readCapacityUnits <p> * The maximum number of strongly consistent reads consumed per * second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a * href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon * DynamoDB Developer Guide</i>. * </p> * @param writeCapacityUnits <p> * The maximum number of writes consumed per second before * DynamoDB returns a <code>ThrottlingException</code>. For more * information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon * DynamoDB Developer Guide</i>. * </p> */ public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits) { setReadCapacityUnits(readCapacityUnits); setWriteCapacityUnits(writeCapacityUnits); }
public ProvisionedThroughput unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ProvisionedThroughput provisionedThroughput = new ProvisionedThroughput(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("ReadCapacityUnits")) { provisionedThroughput.setReadCapacityUnits(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("WriteCapacityUnits")) { provisionedThroughput.setWriteCapacityUnits(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return provisionedThroughput; }
/** * <p> * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>. * </p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. * </p> * * @param readCapacityUnits * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedThroughput withReadCapacityUnits(Long readCapacityUnits) { setReadCapacityUnits(readCapacityUnits); return this; }
/** * Constructs a new ProvisionedThroughput object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param readCapacityUnits * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. * @param writeCapacityUnits * The maximum number of writes consumed per second before DynamoDB returns a * <code>ThrottlingException</code>. For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput" * >Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>. * </p> * <p> * If read/write capacity mode is <code>PAY_PER_REQUEST</code> the value is set to 0. */ public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits) { setReadCapacityUnits(readCapacityUnits); setWriteCapacityUnits(writeCapacityUnits); }
if (context.testExpression("ReadCapacityUnits", targetDepth)) { context.nextToken(); provisionedThroughput.setReadCapacityUnits(context.getUnmarshaller(Long.class).unmarshall(context));
throughput.setReadCapacityUnits(readCapacity); throughput.setWriteCapacityUnits(writeCapacity); request.setProvisionedThroughput(throughput);