@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLayers() == null) ? 0 : getLayers().hashCode()); hashCode = prime * hashCode + ((getFailures() == null) ? 0 : getFailures().hashCode()); return hashCode; }
/** * <p> * Any failures associated with the call. * </p> * * @param failures * Any failures associated with the call. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withFailures(java.util.Collection<LayerFailure> failures) { setFailures(failures); return this; }
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(java.util.Collection<Layer> layers) { setLayers(layers); return this; }
public BatchCheckLayerAvailabilityResult unmarshall(JsonUnmarshallerContext context) throws Exception { BatchCheckLayerAvailabilityResult batchCheckLayerAvailabilityResult = new BatchCheckLayerAvailabilityResult(); if (context.testExpression("layers", targetDepth)) { context.nextToken(); batchCheckLayerAvailabilityResult.setLayers(new ListUnmarshaller<Layer>(LayerJsonUnmarshaller.getInstance()).unmarshall(context)); batchCheckLayerAvailabilityResult.setFailures(new ListUnmarshaller<LayerFailure>(LayerFailureJsonUnmarshaller.getInstance()) .unmarshall(context));
public BatchCheckLayerAvailabilityResult unmarshall(JsonUnmarshallerContext context) throws Exception { BatchCheckLayerAvailabilityResult batchCheckLayerAvailabilityResult = new BatchCheckLayerAvailabilityResult(); if (context.testExpression("layers", targetDepth)) { context.nextToken(); batchCheckLayerAvailabilityResult.setLayers(new ListUnmarshaller<Layer>(LayerJsonUnmarshaller.getInstance()).unmarshall(context)); batchCheckLayerAvailabilityResult.setFailures(new ListUnmarshaller<LayerFailure>(LayerFailureJsonUnmarshaller.getInstance()) .unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchCheckLayerAvailabilityResult == false) return false; BatchCheckLayerAvailabilityResult other = (BatchCheckLayerAvailabilityResult) obj; if (other.getLayers() == null ^ this.getLayers() == null) return false; if (other.getLayers() != null && other.getLayers().equals(this.getLayers()) == false) return false; if (other.getFailures() == null ^ this.getFailures() == null) return false; if (other.getFailures() != null && other.getFailures().equals(this.getFailures()) == false) return false; return true; }
/** * <p> * Any failures associated with the call. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFailures(java.util.Collection)} or {@link #withFailures(java.util.Collection)} if you want to override * the existing values. * </p> * * @param failures * Any failures associated with the call. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withFailures(LayerFailure... failures) { if (this.failures == null) { setFailures(new java.util.ArrayList<LayerFailure>(failures.length)); } for (LayerFailure ele : failures) { this.failures.add(ele); } return this; }
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLayers(java.util.Collection)} or {@link #withLayers(java.util.Collection)} if you want to override the * existing values. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(Layer... layers) { if (this.layers == null) { setLayers(new java.util.ArrayList<Layer>(layers.length)); } for (Layer ele : layers) { this.layers.add(ele); } 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 (getLayers() != null) sb.append("Layers: ").append(getLayers()).append(","); if (getFailures() != null) sb.append("Failures: ").append(getFailures()); sb.append("}"); return sb.toString(); }
/** * <p> * Any failures associated with the call. * </p> * * @param failures * Any failures associated with the call. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withFailures(java.util.Collection<LayerFailure> failures) { setFailures(failures); return this; }
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(java.util.Collection<Layer> layers) { setLayers(layers); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLayers() == null) ? 0 : getLayers().hashCode()); hashCode = prime * hashCode + ((getFailures() == null) ? 0 : getFailures().hashCode()); return hashCode; }
/** * <p> * Any failures associated with the call. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFailures(java.util.Collection)} or {@link #withFailures(java.util.Collection)} if you want to override * the existing values. * </p> * * @param failures * Any failures associated with the call. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withFailures(LayerFailure... failures) { if (this.failures == null) { setFailures(new java.util.ArrayList<LayerFailure>(failures.length)); } for (LayerFailure ele : failures) { this.failures.add(ele); } return this; }
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLayers(java.util.Collection)} or {@link #withLayers(java.util.Collection)} if you want to override the * existing values. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(Layer... layers) { if (this.layers == null) { setLayers(new java.util.ArrayList<Layer>(layers.length)); } for (Layer ele : layers) { this.layers.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchCheckLayerAvailabilityResult == false) return false; BatchCheckLayerAvailabilityResult other = (BatchCheckLayerAvailabilityResult) obj; if (other.getLayers() == null ^ this.getLayers() == null) return false; if (other.getLayers() != null && other.getLayers().equals(this.getLayers()) == false) return false; if (other.getFailures() == null ^ this.getFailures() == null) return false; if (other.getFailures() != null && other.getFailures().equals(this.getFailures()) == 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 (getLayers() != null) sb.append("Layers: ").append(getLayers()).append(","); if (getFailures() != null) sb.append("Failures: ").append(getFailures()); sb.append("}"); return sb.toString(); }