@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLocalSecondaryIndexes() == null) ? 0 : getLocalSecondaryIndexes().hashCode()); hashCode = prime * hashCode + ((getGlobalSecondaryIndexes() == null) ? 0 : getGlobalSecondaryIndexes().hashCode()); hashCode = prime * hashCode + ((getStreamDescription() == null) ? 0 : getStreamDescription().hashCode()); hashCode = prime * hashCode + ((getTimeToLiveDescription() == null) ? 0 : getTimeToLiveDescription().hashCode()); hashCode = prime * hashCode + ((getSSEDescription() == null) ? 0 : getSSEDescription().hashCode()); return hashCode; }
/** * <p> * Represents the GSI properties for the table when the backup was created. It includes the IndexName, KeySchema, * Projection and ProvisionedThroughput for the GSIs on the table at the time of backup. * </p> * * @param globalSecondaryIndexes * Represents the GSI properties for the table when the backup was created. It includes the IndexName, * KeySchema, Projection and ProvisionedThroughput for the GSIs on the table at the time of backup. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableFeatureDetails withGlobalSecondaryIndexes(java.util.Collection<GlobalSecondaryIndexInfo> globalSecondaryIndexes) { setGlobalSecondaryIndexes(globalSecondaryIndexes); return this; }
/** * <p> * Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and * Projection for the LSIs on the table at the time of backup. * </p> * * @param localSecondaryIndexes * Represents the LSI properties for the table when the backup was created. It includes the IndexName, * KeySchema and Projection for the LSIs on the table at the time of backup. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableFeatureDetails withLocalSecondaryIndexes(java.util.Collection<LocalSecondaryIndexInfo> localSecondaryIndexes) { setLocalSecondaryIndexes(localSecondaryIndexes); return this; }
public SourceTableFeatureDetails unmarshall(JsonUnmarshallerContext context) throws Exception { SourceTableFeatureDetails sourceTableFeatureDetails = new SourceTableFeatureDetails(); if (context.testExpression("LocalSecondaryIndexes", targetDepth)) { context.nextToken(); sourceTableFeatureDetails.setLocalSecondaryIndexes(new ListUnmarshaller<LocalSecondaryIndexInfo>(LocalSecondaryIndexInfoJsonUnmarshaller .getInstance()).unmarshall(context)); sourceTableFeatureDetails.setGlobalSecondaryIndexes(new ListUnmarshaller<GlobalSecondaryIndexInfo>(GlobalSecondaryIndexInfoJsonUnmarshaller .getInstance()).unmarshall(context)); sourceTableFeatureDetails.setStreamDescription(StreamSpecificationJsonUnmarshaller.getInstance().unmarshall(context)); sourceTableFeatureDetails.setTimeToLiveDescription(TimeToLiveDescriptionJsonUnmarshaller.getInstance().unmarshall(context)); sourceTableFeatureDetails.setSSEDescription(SSEDescriptionJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableDetails() == null) ? 0 : getSourceTableDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableFeatureDetails() == null) ? 0 : getSourceTableFeatureDetails().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BackupDescription == false) return false; BackupDescription other = (BackupDescription) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; if (other.getSourceTableDetails() == null ^ this.getSourceTableDetails() == null) return false; if (other.getSourceTableDetails() != null && other.getSourceTableDetails().equals(this.getSourceTableDetails()) == false) return false; if (other.getSourceTableFeatureDetails() == null ^ this.getSourceTableFeatureDetails() == null) return false; if (other.getSourceTableFeatureDetails() != null && other.getSourceTableFeatureDetails().equals(this.getSourceTableFeatureDetails()) == false) return false; return true; }
/** * <p> * Represents the LSI properties for the table when the backup was created. * It includes the IndexName, KeySchema and Projection for the LSIs on the * table at the time of backup. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param localSecondaryIndexes <p> * Represents the LSI properties for the table when the backup * was created. It includes the IndexName, KeySchema and * Projection for the LSIs on the table at the time of backup. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public SourceTableFeatureDetails withLocalSecondaryIndexes( LocalSecondaryIndexInfo... localSecondaryIndexes) { if (getLocalSecondaryIndexes() == null) { this.localSecondaryIndexes = new java.util.ArrayList<LocalSecondaryIndexInfo>( localSecondaryIndexes.length); } for (LocalSecondaryIndexInfo value : localSecondaryIndexes) { this.localSecondaryIndexes.add(value); } return this; }
/** * <p> * Represents the GSI properties for the table when the backup was created. * It includes the IndexName, KeySchema, Projection and * ProvisionedThroughput for the GSIs on the table at the time of backup. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param globalSecondaryIndexes <p> * Represents the GSI properties for the table when the backup * was created. It includes the IndexName, KeySchema, Projection * and ProvisionedThroughput for the GSIs on the table at the * time of backup. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public SourceTableFeatureDetails withGlobalSecondaryIndexes( GlobalSecondaryIndexInfo... globalSecondaryIndexes) { if (getGlobalSecondaryIndexes() == null) { this.globalSecondaryIndexes = new java.util.ArrayList<GlobalSecondaryIndexInfo>( globalSecondaryIndexes.length); } for (GlobalSecondaryIndexInfo value : globalSecondaryIndexes) { this.globalSecondaryIndexes.add(value); } return this; }
return null; SourceTableFeatureDetails sourceTableFeatureDetails = new SourceTableFeatureDetails(); reader.beginObject(); while (reader.hasNext()) { if (name.equals("LocalSecondaryIndexes")) { sourceTableFeatureDetails .setLocalSecondaryIndexes(new ListUnmarshaller<LocalSecondaryIndexInfo>( LocalSecondaryIndexInfoJsonUnmarshaller.getInstance() } else if (name.equals("GlobalSecondaryIndexes")) { sourceTableFeatureDetails .setGlobalSecondaryIndexes(new ListUnmarshaller<GlobalSecondaryIndexInfo>( GlobalSecondaryIndexInfoJsonUnmarshaller.getInstance() sourceTableFeatureDetails.setStreamDescription(StreamSpecificationJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("TimeToLiveDescription")) { sourceTableFeatureDetails .setTimeToLiveDescription(TimeToLiveDescriptionJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("SSEDescription")) { sourceTableFeatureDetails.setSSEDescription(SSEDescriptionJsonUnmarshaller .getInstance() .unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableDetails() == null) ? 0 : getSourceTableDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableFeatureDetails() == null) ? 0 : getSourceTableFeatureDetails() .hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BackupDescription == false) return false; BackupDescription other = (BackupDescription) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; if (other.getSourceTableDetails() == null ^ this.getSourceTableDetails() == null) return false; if (other.getSourceTableDetails() != null && other.getSourceTableDetails().equals(this.getSourceTableDetails()) == false) return false; if (other.getSourceTableFeatureDetails() == null ^ this.getSourceTableFeatureDetails() == null) return false; if (other.getSourceTableFeatureDetails() != null && other.getSourceTableFeatureDetails().equals(this.getSourceTableFeatureDetails()) == false) return false; return true; } }
return false; SourceTableFeatureDetails other = (SourceTableFeatureDetails) obj; if (other.getLocalSecondaryIndexes() == null ^ this.getLocalSecondaryIndexes() == null) return false; if (other.getLocalSecondaryIndexes() != null && other.getLocalSecondaryIndexes().equals(this.getLocalSecondaryIndexes()) == false) return false; if (other.getGlobalSecondaryIndexes() == null ^ this.getGlobalSecondaryIndexes() == null) return false; if (other.getGlobalSecondaryIndexes() != null && other.getGlobalSecondaryIndexes().equals(this.getGlobalSecondaryIndexes()) == false) return false; if (other.getStreamDescription() == null ^ this.getStreamDescription() == null) return false; if (other.getStreamDescription() != null && other.getStreamDescription().equals(this.getStreamDescription()) == false) return false; if (other.getTimeToLiveDescription() == null ^ this.getTimeToLiveDescription() == null) return false; if (other.getTimeToLiveDescription() != null && other.getTimeToLiveDescription().equals(this.getTimeToLiveDescription()) == false) return false; if (other.getSSEDescription() == null ^ this.getSSEDescription() == null) return false; if (other.getSSEDescription() != null && other.getSSEDescription().equals(this.getSSEDescription()) == false) return false; return true;
public SourceTableFeatureDetails unmarshall(JsonUnmarshallerContext context) throws Exception { SourceTableFeatureDetails sourceTableFeatureDetails = new SourceTableFeatureDetails(); if (context.testExpression("LocalSecondaryIndexes", targetDepth)) { context.nextToken(); sourceTableFeatureDetails.setLocalSecondaryIndexes(new ListUnmarshaller<LocalSecondaryIndexInfo>(LocalSecondaryIndexInfoJsonUnmarshaller .getInstance()).unmarshall(context)); sourceTableFeatureDetails.setGlobalSecondaryIndexes(new ListUnmarshaller<GlobalSecondaryIndexInfo>(GlobalSecondaryIndexInfoJsonUnmarshaller .getInstance()).unmarshall(context)); sourceTableFeatureDetails.setStreamDescription(StreamSpecificationJsonUnmarshaller.getInstance().unmarshall(context)); sourceTableFeatureDetails.setTimeToLiveDescription(TimeToLiveDescriptionJsonUnmarshaller.getInstance().unmarshall(context)); sourceTableFeatureDetails.setSSEDescription(SSEDescriptionJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and * Projection for the LSIs on the table at the time of backup. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLocalSecondaryIndexes(java.util.Collection)} or * {@link #withLocalSecondaryIndexes(java.util.Collection)} if you want to override the existing values. * </p> * * @param localSecondaryIndexes * Represents the LSI properties for the table when the backup was created. It includes the IndexName, * KeySchema and Projection for the LSIs on the table at the time of backup. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableFeatureDetails withLocalSecondaryIndexes(LocalSecondaryIndexInfo... localSecondaryIndexes) { if (this.localSecondaryIndexes == null) { setLocalSecondaryIndexes(new java.util.ArrayList<LocalSecondaryIndexInfo>(localSecondaryIndexes.length)); } for (LocalSecondaryIndexInfo ele : localSecondaryIndexes) { this.localSecondaryIndexes.add(ele); } return this; }
/** * <p> * Represents the GSI properties for the table when the backup was created. It includes the IndexName, KeySchema, * Projection and ProvisionedThroughput for the GSIs on the table at the time of backup. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setGlobalSecondaryIndexes(java.util.Collection)} or * {@link #withGlobalSecondaryIndexes(java.util.Collection)} if you want to override the existing values. * </p> * * @param globalSecondaryIndexes * Represents the GSI properties for the table when the backup was created. It includes the IndexName, * KeySchema, Projection and ProvisionedThroughput for the GSIs on the table at the time of backup. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableFeatureDetails withGlobalSecondaryIndexes(GlobalSecondaryIndexInfo... globalSecondaryIndexes) { if (this.globalSecondaryIndexes == null) { setGlobalSecondaryIndexes(new java.util.ArrayList<GlobalSecondaryIndexInfo>(globalSecondaryIndexes.length)); } for (GlobalSecondaryIndexInfo ele : globalSecondaryIndexes) { this.globalSecondaryIndexes.add(ele); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableDetails() == null) ? 0 : getSourceTableDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableFeatureDetails() == null) ? 0 : getSourceTableFeatureDetails().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BackupDescription == false) return false; BackupDescription other = (BackupDescription) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; if (other.getSourceTableDetails() == null ^ this.getSourceTableDetails() == null) return false; if (other.getSourceTableDetails() != null && other.getSourceTableDetails().equals(this.getSourceTableDetails()) == false) return false; if (other.getSourceTableFeatureDetails() == null ^ this.getSourceTableFeatureDetails() == null) return false; if (other.getSourceTableFeatureDetails() != null && other.getSourceTableFeatureDetails().equals(this.getSourceTableFeatureDetails()) == false) return false; return true; }
/** * 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 (getLocalSecondaryIndexes() != null) sb.append("LocalSecondaryIndexes: ").append(getLocalSecondaryIndexes()).append(","); if (getGlobalSecondaryIndexes() != null) sb.append("GlobalSecondaryIndexes: ").append(getGlobalSecondaryIndexes()).append(","); if (getStreamDescription() != null) sb.append("StreamDescription: ").append(getStreamDescription()).append(","); if (getTimeToLiveDescription() != null) sb.append("TimeToLiveDescription: ").append(getTimeToLiveDescription()).append(","); if (getSSEDescription() != null) sb.append("SSEDescription: ").append(getSSEDescription()); sb.append("}"); return sb.toString(); }
/** * <p> * Represents the LSI properties for the table when the backup was created. * It includes the IndexName, KeySchema and Projection for the LSIs on the * table at the time of backup. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param localSecondaryIndexes <p> * Represents the LSI properties for the table when the backup * was created. It includes the IndexName, KeySchema and * Projection for the LSIs on the table at the time of backup. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public SourceTableFeatureDetails withLocalSecondaryIndexes( java.util.Collection<LocalSecondaryIndexInfo> localSecondaryIndexes) { setLocalSecondaryIndexes(localSecondaryIndexes); return this; }
/** * <p> * Represents the GSI properties for the table when the backup was created. * It includes the IndexName, KeySchema, Projection and * ProvisionedThroughput for the GSIs on the table at the time of backup. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param globalSecondaryIndexes <p> * Represents the GSI properties for the table when the backup * was created. It includes the IndexName, KeySchema, Projection * and ProvisionedThroughput for the GSIs on the table at the * time of backup. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public SourceTableFeatureDetails withGlobalSecondaryIndexes( java.util.Collection<GlobalSecondaryIndexInfo> globalSecondaryIndexes) { setGlobalSecondaryIndexes(globalSecondaryIndexes); return this; }