table_info.tableName()); System.out.format("Table ARN : %s\n", table_info.tableArn()); System.out.format("Status : %s\n", table_info.tableStatus());
/** * 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. */ @Override public String toString() { return ToString.builder("TableDescription").add("AttributeDefinitions", attributeDefinitions()) .add("TableName", tableName()).add("KeySchema", keySchema()).add("TableStatus", tableStatusAsString()) .add("CreationDateTime", creationDateTime()).add("ProvisionedThroughput", provisionedThroughput()) .add("TableSizeBytes", tableSizeBytes()).add("ItemCount", itemCount()).add("TableArn", tableArn()) .add("TableId", tableId()).add("BillingModeSummary", billingModeSummary()) .add("LocalSecondaryIndexes", localSecondaryIndexes()).add("GlobalSecondaryIndexes", globalSecondaryIndexes()) .add("StreamSpecification", streamSpecification()).add("LatestStreamLabel", latestStreamLabel()) .add("LatestStreamArn", latestStreamArn()).add("RestoreSummary", restoreSummary()) .add("SSEDescription", sseDescription()).build(); }
return Optional.ofNullable(clazz.cast(itemCount())); case "TableArn": return Optional.ofNullable(clazz.cast(tableArn())); case "TableId": return Optional.ofNullable(clazz.cast(tableId()));
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(attributeDefinitions()); hashCode = 31 * hashCode + Objects.hashCode(tableName()); hashCode = 31 * hashCode + Objects.hashCode(keySchema()); hashCode = 31 * hashCode + Objects.hashCode(tableStatusAsString()); hashCode = 31 * hashCode + Objects.hashCode(creationDateTime()); hashCode = 31 * hashCode + Objects.hashCode(provisionedThroughput()); hashCode = 31 * hashCode + Objects.hashCode(tableSizeBytes()); hashCode = 31 * hashCode + Objects.hashCode(itemCount()); hashCode = 31 * hashCode + Objects.hashCode(tableArn()); hashCode = 31 * hashCode + Objects.hashCode(tableId()); hashCode = 31 * hashCode + Objects.hashCode(billingModeSummary()); hashCode = 31 * hashCode + Objects.hashCode(localSecondaryIndexes()); hashCode = 31 * hashCode + Objects.hashCode(globalSecondaryIndexes()); hashCode = 31 * hashCode + Objects.hashCode(streamSpecification()); hashCode = 31 * hashCode + Objects.hashCode(latestStreamLabel()); hashCode = 31 * hashCode + Objects.hashCode(latestStreamArn()); hashCode = 31 * hashCode + Objects.hashCode(restoreSummary()); hashCode = 31 * hashCode + Objects.hashCode(sseDescription()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof TableDescription)) { return false; } TableDescription other = (TableDescription) obj; return Objects.equals(attributeDefinitions(), other.attributeDefinitions()) && Objects.equals(tableName(), other.tableName()) && Objects.equals(keySchema(), other.keySchema()) && Objects.equals(tableStatusAsString(), other.tableStatusAsString()) && Objects.equals(creationDateTime(), other.creationDateTime()) && Objects.equals(provisionedThroughput(), other.provisionedThroughput()) && Objects.equals(tableSizeBytes(), other.tableSizeBytes()) && Objects.equals(itemCount(), other.itemCount()) && Objects.equals(tableArn(), other.tableArn()) && Objects.equals(tableId(), other.tableId()) && Objects.equals(billingModeSummary(), other.billingModeSummary()) && Objects.equals(localSecondaryIndexes(), other.localSecondaryIndexes()) && Objects.equals(globalSecondaryIndexes(), other.globalSecondaryIndexes()) && Objects.equals(streamSpecification(), other.streamSpecification()) && Objects.equals(latestStreamLabel(), other.latestStreamLabel()) && Objects.equals(latestStreamArn(), other.latestStreamArn()) && Objects.equals(restoreSummary(), other.restoreSummary()) && Objects.equals(sseDescription(), other.sseDescription()); }