@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExecutableUsers() == null) ? 0 : getExecutableUsers().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getImageIds() == null) ? 0 : getImageIds().hashCode()); hashCode = prime * hashCode + ((getOwners() == null) ? 0 : getOwners().hashCode()); return hashCode; }
/** * 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 (getExecutableUsers() != null) sb.append("ExecutableUsers: ").append(getExecutableUsers()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getImageIds() != null) sb.append("ImageIds: ").append(getImageIds()).append(","); if (getOwners() != null) sb.append("Owners: ").append(getOwners()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeImagesRequest == false) return false; DescribeImagesRequest other = (DescribeImagesRequest) obj; if (other.getExecutableUsers() == null ^ this.getExecutableUsers() == null) return false; if (other.getExecutableUsers() != null && other.getExecutableUsers().equals(this.getExecutableUsers()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getImageIds() == null ^ this.getImageIds() == null) return false; if (other.getImageIds() != null && other.getImageIds().equals(this.getImageIds()) == false) return false; if (other.getOwners() == null ^ this.getOwners() == null) return false; if (other.getOwners() != null && other.getOwners().equals(this.getOwners()) == false) return false; return true; }
/** * Filters the images by the owner. Specify an AWS account ID, * <code>amazon</code> (owner is Amazon), <code>aws-marketplace</code> * (owner is AWS Marketplace), <code>self</code> (owner is the sender of * the request). Omitting this option returns all images for which you * have launch permissions, regardless of ownership. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param owners Filters the images by the owner. Specify an AWS account ID, * <code>amazon</code> (owner is Amazon), <code>aws-marketplace</code> * (owner is AWS Marketplace), <code>self</code> (owner is the sender of * the request). Omitting this option returns all images for which you * have launch permissions, regardless of ownership. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeImagesRequest withOwners(String... owners) { if (getOwners() == null) setOwners(new java.util.ArrayList<String>(owners.length)); for (String value : owners) { getOwners().add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageIds() == null) ? 0 : getImageIds().hashCode()); hashCode = prime * hashCode + ((getOwners() == null) ? 0 : getOwners().hashCode()); hashCode = prime * hashCode + ((getExecutableUsers() == null) ? 0 : getExecutableUsers().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); return hashCode; }
/** * 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 (getImageIds() != null) sb.append("ImageIds: " + getImageIds() + ","); if (getOwners() != null) sb.append("Owners: " + getOwners() + ","); if (getExecutableUsers() != null) sb.append("ExecutableUsers: " + getExecutableUsers() + ","); if (getFilters() != null) sb.append("Filters: " + getFilters() ); sb.append("}"); return sb.toString(); }
.getOwners(); if (!describeImagesRequestOwnersList.isEmpty() || !describeImagesRequestOwnersList.isAutoConstruct()) { int ownersListIndex = 1;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeImagesRequest == false) return false; DescribeImagesRequest other = (DescribeImagesRequest)obj; if (other.getImageIds() == null ^ this.getImageIds() == null) return false; if (other.getImageIds() != null && other.getImageIds().equals(this.getImageIds()) == false) return false; if (other.getOwners() == null ^ this.getOwners() == null) return false; if (other.getOwners() != null && other.getOwners().equals(this.getOwners()) == false) return false; if (other.getExecutableUsers() == null ^ this.getExecutableUsers() == null) return false; if (other.getExecutableUsers() != null && other.getExecutableUsers().equals(this.getExecutableUsers()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExecutableUsers() == null) ? 0 : getExecutableUsers().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getImageIds() == null) ? 0 : getImageIds().hashCode()); hashCode = prime * hashCode + ((getOwners() == null) ? 0 : getOwners().hashCode()); return hashCode; }
/** * 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 (getExecutableUsers() != null) sb.append("ExecutableUsers: ").append(getExecutableUsers()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getImageIds() != null) sb.append("ImageIds: ").append(getImageIds()).append(","); if (getOwners() != null) sb.append("Owners: ").append(getOwners()); sb.append("}"); return sb.toString(); }
java.util.List<String> ownersList = describeImagesRequest.getOwners(); int ownersListIndex = 1;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeImagesRequest == false) return false; DescribeImagesRequest other = (DescribeImagesRequest) obj; if (other.getExecutableUsers() == null ^ this.getExecutableUsers() == null) return false; if (other.getExecutableUsers() != null && other.getExecutableUsers().equals(this.getExecutableUsers()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getImageIds() == null ^ this.getImageIds() == null) return false; if (other.getImageIds() != null && other.getImageIds().equals(this.getImageIds()) == false) return false; if (other.getOwners() == null ^ this.getOwners() == null) return false; if (other.getOwners() != null && other.getOwners().equals(this.getOwners()) == false) return false; return true; }
.getOwners(); if (!describeImagesRequestOwnersList.isEmpty() || !describeImagesRequestOwnersList.isAutoConstruct()) { int ownersListIndex = 1;