.withGlobalSecondaryIndexUpdates( new GlobalSecondaryIndexUpdate().withUpdate( new UpdateGlobalSecondaryIndexAction() .withIndexName(indexName) .withProvisionedThroughput(provisionedThroughput))));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode()); hashCode = prime * hashCode + ((getProvisionedThroughput() == null) ? 0 : getProvisionedThroughput().hashCode()); return hashCode; }
/** * <p> * The name of the global secondary index to be updated. * </p> * * @param indexName * The name of the global secondary index to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalSecondaryIndexAction withIndexName(String indexName) { setIndexName(indexName); return this; }
public UpdateGlobalSecondaryIndexAction unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateGlobalSecondaryIndexAction updateGlobalSecondaryIndexAction = new UpdateGlobalSecondaryIndexAction(); if (context.testExpression("IndexName", targetDepth)) { context.nextToken(); updateGlobalSecondaryIndexAction.setIndexName(context.getUnmarshaller(String.class).unmarshall(context)); updateGlobalSecondaryIndexAction.setProvisionedThroughput(ProvisionedThroughputJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdate() == null) ? 0 : getUpdate().hashCode()); hashCode = prime * hashCode + ((getCreate() == null) ? 0 : getCreate().hashCode()); hashCode = prime * hashCode + ((getDelete() == null) ? 0 : getDelete().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GlobalSecondaryIndexUpdate == false) return false; GlobalSecondaryIndexUpdate other = (GlobalSecondaryIndexUpdate) obj; if (other.getUpdate() == null ^ this.getUpdate() == null) return false; if (other.getUpdate() != null && other.getUpdate().equals(this.getUpdate()) == false) return false; if (other.getCreate() == null ^ this.getCreate() == null) return false; if (other.getCreate() != null && other.getCreate().equals(this.getCreate()) == false) return false; if (other.getDelete() == null ^ this.getDelete() == null) return false; if (other.getDelete() != null && other.getDelete().equals(this.getDelete()) == false) return false; return true; }
/** * <p> * Represents the provisioned throughput settings for the specified global secondary index. * </p> * <p> * For current minimum and maximum provisioned throughput values, see <a * href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a> in the <i>Amazon * DynamoDB Developer Guide</i>. * </p> * * @param provisionedThroughput * Represents the provisioned throughput settings for the specified global secondary index.</p> * <p> * For current minimum and maximum provisioned throughput values, see <a * href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a> in the * <i>Amazon DynamoDB Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput) { setProvisionedThroughput(provisionedThroughput); return this; }
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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdate() == null) ? 0 : getUpdate().hashCode()); hashCode = prime * hashCode + ((getCreate() == null) ? 0 : getCreate().hashCode()); hashCode = prime * hashCode + ((getDelete() == null) ? 0 : getDelete().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GlobalSecondaryIndexUpdate == false) return false; GlobalSecondaryIndexUpdate other = (GlobalSecondaryIndexUpdate) obj; if (other.getUpdate() == null ^ this.getUpdate() == null) return false; if (other.getUpdate() != null && other.getUpdate().equals(this.getUpdate()) == false) return false; if (other.getCreate() == null ^ this.getCreate() == null) return false; if (other.getCreate() != null && other.getCreate().equals(this.getCreate()) == false) return false; if (other.getDelete() == null ^ this.getDelete() == null) return false; if (other.getDelete() != null && other.getDelete().equals(this.getDelete()) == false) return false; return true; } }
/** * <p> * Represents the provisioned throughput settings for the specified global secondary index. * </p> * <p> * For current minimum and maximum provisioned throughput values, see <a * href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a> in the <i>Amazon * DynamoDB Developer Guide</i>. * </p> * * @param provisionedThroughput * Represents the provisioned throughput settings for the specified global secondary index.</p> * <p> * For current minimum and maximum provisioned throughput values, see <a * href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a> in the * <i>Amazon DynamoDB Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput) { setProvisionedThroughput(provisionedThroughput); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateGlobalSecondaryIndexAction == false) return false; UpdateGlobalSecondaryIndexAction other = (UpdateGlobalSecondaryIndexAction) obj; if (other.getIndexName() == null ^ this.getIndexName() == null) return false; if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false) return false; if (other.getProvisionedThroughput() == null ^ this.getProvisionedThroughput() == null) return false; if (other.getProvisionedThroughput() != null && other.getProvisionedThroughput().equals(this.getProvisionedThroughput()) == false) return false; return true; }
public UpdateGlobalSecondaryIndexAction unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateGlobalSecondaryIndexAction updateGlobalSecondaryIndexAction = new UpdateGlobalSecondaryIndexAction(); if (context.testExpression("IndexName", targetDepth)) { context.nextToken(); updateGlobalSecondaryIndexAction.setIndexName(context.getUnmarshaller(String.class).unmarshall(context)); updateGlobalSecondaryIndexAction.setProvisionedThroughput(ProvisionedThroughputJsonUnmarshaller.getInstance().unmarshall(context));
.withGlobalSecondaryIndexUpdates( new GlobalSecondaryIndexUpdate().withUpdate( new UpdateGlobalSecondaryIndexAction() .withIndexName(indexName) .withProvisionedThroughput(provisionedThroughput))));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdate() == null) ? 0 : getUpdate().hashCode()); hashCode = prime * hashCode + ((getCreate() == null) ? 0 : getCreate().hashCode()); hashCode = prime * hashCode + ((getDelete() == null) ? 0 : getDelete().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GlobalSecondaryIndexUpdate == false) return false; GlobalSecondaryIndexUpdate other = (GlobalSecondaryIndexUpdate) obj; if (other.getUpdate() == null ^ this.getUpdate() == null) return false; if (other.getUpdate() != null && other.getUpdate().equals(this.getUpdate()) == false) return false; if (other.getCreate() == null ^ this.getCreate() == null) return false; if (other.getCreate() != null && other.getCreate().equals(this.getCreate()) == false) return false; if (other.getDelete() == null ^ this.getDelete() == null) return false; if (other.getDelete() != null && other.getDelete().equals(this.getDelete()) == false) return false; return true; }
/** * <p> * The name of the global secondary index to be updated. * </p> * * @param indexName * The name of the global secondary index to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalSecondaryIndexAction withIndexName(String indexName) { setIndexName(indexName); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIndexName() != null) sb.append("IndexName: ").append(getIndexName()).append(","); if (getProvisionedThroughput() != null) sb.append("ProvisionedThroughput: ").append(getProvisionedThroughput()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(UpdateGlobalSecondaryIndexAction updateGlobalSecondaryIndexAction, ProtocolMarshaller protocolMarshaller) { if (updateGlobalSecondaryIndexAction == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateGlobalSecondaryIndexAction.getIndexName(), INDEXNAME_BINDING); protocolMarshaller.marshall(updateGlobalSecondaryIndexAction.getProvisionedThroughput(), PROVISIONEDTHROUGHPUT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode()); hashCode = prime * hashCode + ((getProvisionedThroughput() == null) ? 0 : getProvisionedThroughput().hashCode()); return hashCode; }