/** * <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 BatchDeleteImageResult withFailures(java.util.Collection<ImageFailure> failures) { setFailures(failures); return this; }
/** * <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 BatchDeleteImageResult withFailures(ImageFailure... failures) { if (this.failures == null) { setFailures(new java.util.ArrayList<ImageFailure>(failures.length)); } for (ImageFailure ele : failures) { this.failures.add(ele); } return this; }
batchDeleteImageResult.setFailures(new ListUnmarshaller<ImageFailure>(ImageFailureJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <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 BatchDeleteImageResult withFailures(java.util.Collection<ImageFailure> failures) { setFailures(failures); return this; }
/** * <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 BatchDeleteImageResult withFailures(ImageFailure... failures) { if (this.failures == null) { setFailures(new java.util.ArrayList<ImageFailure>(failures.length)); } for (ImageFailure ele : failures) { this.failures.add(ele); } return this; }
batchDeleteImageResult.setFailures(new ListUnmarshaller<ImageFailure>(ImageFailureJsonUnmarshaller.getInstance()).unmarshall(context));