/** * 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 (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getItems() != null) sb.append("Items: ").append(getItems()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchPutAttributesRequest == false) return false; BatchPutAttributesRequest other = (BatchPutAttributesRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getItems() == null ^ this.getItems() == null) return false; if (other.getItems() != null && other.getItems().equals(this.getItems()) == false) return false; return true; }
if (!batchPutAttributesRequest.getItems().isEmpty() || !((com.amazonaws.internal.SdkInternalList<ReplaceableItem>) batchPutAttributesRequest.getItems()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<ReplaceableItem> itemsList = (com.amazonaws.internal.SdkInternalList<ReplaceableItem>) batchPutAttributesRequest .getItems(); int itemsListIndex = 1;
/** * A list of items on which to perform the operation. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param items A list of items on which to perform the operation. * * @return A reference to this updated object so that method calls can be chained * together. */ public BatchPutAttributesRequest withItems(ReplaceableItem... items) { if (getItems() == null) setItems(new java.util.ArrayList<ReplaceableItem>(items.length)); for (ReplaceableItem value : items) { getItems().add(value); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchPutAttributesRequest == false) return false; BatchPutAttributesRequest other = (BatchPutAttributesRequest)obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getItems() == null ^ this.getItems() == null) return false; if (other.getItems() != null && other.getItems().equals(this.getItems()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDomainName() != null) sb.append("DomainName: " + getDomainName() + ","); if (getItems() != null) sb.append("Items: " + getItems() ); sb.append("}"); return sb.toString(); }
/** * 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 (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getItems() != null) sb.append("Items: ").append(getItems()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchPutAttributesRequest == false) return false; BatchPutAttributesRequest other = (BatchPutAttributesRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getItems() == null ^ this.getItems() == null) return false; if (other.getItems() != null && other.getItems().equals(this.getItems()) == false) return false; return true; }
java.util.List<ReplaceableItem> itemsList = batchPutAttributesRequest.getItems(); int itemsListIndex = 1;
if (!batchPutAttributesRequest.getItems().isEmpty() || !((com.amazonaws.internal.SdkInternalList<ReplaceableItem>) batchPutAttributesRequest.getItems()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<ReplaceableItem> itemsList = (com.amazonaws.internal.SdkInternalList<ReplaceableItem>) batchPutAttributesRequest .getItems(); int itemsListIndex = 1;