@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryId() == null) ? 0 : getRegistryId().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().hashCode()); hashCode = prime * hashCode + ((getImageIds() == null) ? 0 : getImageIds().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode()); return hashCode; }
/** * <p> * The filter key and value with which to filter your <code>DescribeImages</code> results. * </p> * * @param filter * The filter key and value with which to filter your <code>DescribeImages</code> results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withFilter(DescribeImagesFilter filter) { setFilter(filter); return this; }
/** * <p> * The list of image IDs for the requested repository. * </p> * * @param imageIds * The list of image IDs for the requested repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withImageIds(java.util.Collection<ImageIdentifier> imageIds) { setImageIds(imageIds); return this; }
DescribeImagesRequest request = new DescribeImagesRequest() .withNextToken(null == imageIdentifiers ? pageIterator.getMarker() : null) .withImageIds(imageIdentifiers) .withRegistryId(repo.getRegistryId()) .withRepositoryName(repo.getName());
/** * <p> * The maximum number of repository results returned by <code>DescribeImages</code> in paginated output. When this * parameter is used, <code>DescribeImages</code> only returns <code>maxResults</code> results in a single page * along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by * sending another <code>DescribeImages</code> request with the returned <code>nextToken</code> value. This value * can be between 1 and 1000. If this parameter is not used, then <code>DescribeImages</code> returns up to 100 * results and a <code>nextToken</code> value, if applicable. This option cannot be used when you specify images * with <code>imageIds</code>. * </p> * * @param maxResults * The maximum number of repository results returned by <code>DescribeImages</code> in paginated output. When * this parameter is used, <code>DescribeImages</code> only returns <code>maxResults</code> results in a * single page along with a <code>nextToken</code> response element. The remaining results of the initial * request can be seen by sending another <code>DescribeImages</code> request with the returned * <code>nextToken</code> value. This value can be between 1 and 1000. If this parameter is not used, then * <code>DescribeImages</code> returns up to 100 results and a <code>nextToken</code> value, if applicable. * This option cannot be used when you specify images with <code>imageIds</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
/** * <p> * The maximum number of repository results returned by <code>DescribeImages</code> in paginated output. When this * parameter is used, <code>DescribeImages</code> only returns <code>maxResults</code> results in a single page * along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by * sending another <code>DescribeImages</code> request with the returned <code>nextToken</code> value. This value * can be between 1 and 1000. If this parameter is not used, then <code>DescribeImages</code> returns up to 100 * results and a <code>nextToken</code> value, if applicable. This option cannot be used when you specify images * with <code>imageIds</code>. * </p> * * @param maxResults * The maximum number of repository results returned by <code>DescribeImages</code> in paginated output. When * this parameter is used, <code>DescribeImages</code> only returns <code>maxResults</code> results in a * single page along with a <code>nextToken</code> response element. The remaining results of the initial * request can be seen by sending another <code>DescribeImages</code> request with the returned * <code>nextToken</code> value. This value can be between 1 and 1000. If this parameter is not used, then * <code>DescribeImages</code> returns up to 100 results and a <code>nextToken</code> value, if applicable. * This option cannot be used when you specify images with <code>imageIds</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
return false; DescribeImagesRequest other = (DescribeImagesRequest) obj; if (other.getRegistryId() == null ^ this.getRegistryId() == null) return false; if (other.getRegistryId() != null && other.getRegistryId().equals(this.getRegistryId()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == 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.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getFilter() == null ^ this.getFilter() == null) return false; if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == false) return false; return true;
/** * <p> * The list of image IDs for the requested repository. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setImageIds(java.util.Collection)} or {@link #withImageIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param imageIds * The list of image IDs for the requested repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withImageIds(ImageIdentifier... imageIds) { if (this.imageIds == null) { setImageIds(new java.util.ArrayList<ImageIdentifier>(imageIds.length)); } for (ImageIdentifier ele : imageIds) { this.imageIds.add(ele); } return this; }
/** * <p> * The filter key and value with which to filter your <code>DescribeImages</code> results. * </p> * * @param filter * The filter key and value with which to filter your <code>DescribeImages</code> results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withFilter(DescribeImagesFilter filter) { setFilter(filter); return this; }
/** * 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 (getRegistryId() != null) sb.append("RegistryId: ").append(getRegistryId()).append(","); if (getRepositoryName() != null) sb.append("RepositoryName: ").append(getRepositoryName()).append(","); if (getImageIds() != null) sb.append("ImageIds: ").append(getImageIds()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getFilter() != null) sb.append("Filter: ").append(getFilter()); sb.append("}"); return sb.toString(); }
/** * <p> * The list of image IDs for the requested repository. * </p> * * @param imageIds * The list of image IDs for the requested repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withImageIds(java.util.Collection<ImageIdentifier> imageIds) { setImageIds(imageIds); return this; }
/** * Marshall the given parameter object. */ public void marshall(DescribeImagesRequest describeImagesRequest, ProtocolMarshaller protocolMarshaller) { if (describeImagesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeImagesRequest.getRegistryId(), REGISTRYID_BINDING); protocolMarshaller.marshall(describeImagesRequest.getRepositoryName(), REPOSITORYNAME_BINDING); protocolMarshaller.marshall(describeImagesRequest.getImageIds(), IMAGEIDS_BINDING); protocolMarshaller.marshall(describeImagesRequest.getNextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(describeImagesRequest.getMaxResults(), MAXRESULTS_BINDING); protocolMarshaller.marshall(describeImagesRequest.getFilter(), FILTER_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * The list of image IDs for the requested repository. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setImageIds(java.util.Collection)} or {@link #withImageIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param imageIds * The list of image IDs for the requested repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesRequest withImageIds(ImageIdentifier... imageIds) { if (this.imageIds == null) { setImageIds(new java.util.ArrayList<ImageIdentifier>(imageIds.length)); } for (ImageIdentifier ele : imageIds) { this.imageIds.add(ele); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryId() == null) ? 0 : getRegistryId().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().hashCode()); hashCode = prime * hashCode + ((getImageIds() == null) ? 0 : getImageIds().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode()); return hashCode; }
return false; DescribeImagesRequest other = (DescribeImagesRequest) obj; if (other.getRegistryId() == null ^ this.getRegistryId() == null) return false; if (other.getRegistryId() != null && other.getRegistryId().equals(this.getRegistryId()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == 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.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getFilter() == null ^ this.getFilter() == null) return false; if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == 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 (getRegistryId() != null) sb.append("RegistryId: ").append(getRegistryId()).append(","); if (getRepositoryName() != null) sb.append("RepositoryName: ").append(getRepositoryName()).append(","); if (getImageIds() != null) sb.append("ImageIds: ").append(getImageIds()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getFilter() != null) sb.append("Filter: ").append(getFilter()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DescribeImagesRequest describeImagesRequest, ProtocolMarshaller protocolMarshaller) { if (describeImagesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeImagesRequest.getRegistryId(), REGISTRYID_BINDING); protocolMarshaller.marshall(describeImagesRequest.getRepositoryName(), REPOSITORYNAME_BINDING); protocolMarshaller.marshall(describeImagesRequest.getImageIds(), IMAGEIDS_BINDING); protocolMarshaller.marshall(describeImagesRequest.getNextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(describeImagesRequest.getMaxResults(), MAXRESULTS_BINDING); protocolMarshaller.marshall(describeImagesRequest.getFilter(), FILTER_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }