/** * <p> * Contains the response to a <code>DescribeBackups</code> request. * </p> * * @param backups * Contains the response to a <code>DescribeBackups</code> request. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBackupsResult withBackups(java.util.Collection<Backup> backups) { setBackups(backups); return this; }
/** * <p> * Contains the response to a <code>DescribeBackups</code> request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBackups(java.util.Collection)} or {@link #withBackups(java.util.Collection)} if you want to override * the existing values. * </p> * * @param backups * Contains the response to a <code>DescribeBackups</code> request. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBackupsResult withBackups(Backup... backups) { if (this.backups == null) { setBackups(new java.util.ArrayList<Backup>(backups.length)); } for (Backup ele : backups) { this.backups.add(ele); } return this; }
if (context.testExpression("Backups", targetDepth)) { context.nextToken(); describeBackupsResult.setBackups(new ListUnmarshaller<Backup>(BackupJsonUnmarshaller.getInstance()).unmarshall(context));