@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTagsRequest == false) return false; CreateTagsRequest other = (CreateTagsRequest) obj; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 (getResources() != null) sb.append("Resources: ").append(getResources()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
com.amazonaws.internal.SdkInternalList<Tag> createTagsRequestTagsList = (com.amazonaws.internal.SdkInternalList<Tag>) createTagsRequest.getTags(); if (!createTagsRequestTagsList.isEmpty() || !createTagsRequestTagsList.isAutoConstruct()) { int tagsListIndex = 1;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTagsRequest == false) return false; CreateTagsRequest other = (CreateTagsRequest)obj; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; }
/** * One or more tags. The <code>value</code> parameter is required, but if * you don't want the tag to have a value, specify the parameter with no * value, and we set the value to an empty string. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param tags One or more tags. The <code>value</code> parameter is required, but if * you don't want the tag to have a value, specify the parameter with no * value, and we set the value to an empty string. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateTagsRequest withTags(Tag... tags) { if (getTags() == null) setTags(new java.util.ArrayList<Tag>(tags.length)); for (Tag value : tags) { getTags().add(value); } return this; }
/** * 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 (getResources() != null) sb.append("Resources: " + getResources() + ","); if (getTags() != null) sb.append("Tags: " + getTags() ); sb.append("}"); return sb.toString(); }
java.util.List<Tag> tagsList = createTagsRequest.getTags(); int tagsListIndex = 1;
/** * 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 (getResources() != null) sb.append("Resources: ").append(getResources()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTagsRequest == false) return false; CreateTagsRequest other = (CreateTagsRequest) obj; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; }
com.amazonaws.internal.SdkInternalList<Tag> createTagsRequestTagsList = (com.amazonaws.internal.SdkInternalList<Tag>) createTagsRequest.getTags(); if (!createTagsRequestTagsList.isEmpty() || !createTagsRequestTagsList.isAutoConstruct()) { int tagsListIndex = 1;