/** * <p> * An array of URLs pointing to additional information about the celebrity. If there is no additional information * about the celebrity, this list is empty. * </p> * * @param urls * An array of URLs pointing to additional information about the celebrity. If there is no additional * information about the celebrity, this list is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public Celebrity withUrls(java.util.Collection<String> urls) { setUrls(urls); return this; }
/** * <p> * An array of URLs pointing to additional information about the celebrity. If there is no additional information * about the celebrity, this list is empty. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setUrls(java.util.Collection)} or {@link #withUrls(java.util.Collection)} if you want to override the * existing values. * </p> * * @param urls * An array of URLs pointing to additional information about the celebrity. If there is no additional * information about the celebrity, this list is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public Celebrity withUrls(String... urls) { if (this.urls == null) { setUrls(new java.util.ArrayList<String>(urls.length)); } for (String ele : urls) { this.urls.add(ele); } return this; }
if (context.testExpression("Urls", targetDepth)) { context.nextToken(); celebrity.setUrls(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * An array of URLs pointing to additional information about the celebrity. * If there is no additional information about the celebrity, this list is * empty. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param urls <p> * An array of URLs pointing to additional information about the * celebrity. If there is no additional information about the * celebrity, this list is empty. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public Celebrity withUrls(java.util.Collection<String> urls) { setUrls(urls); return this; }
String name = reader.nextName(); if (name.equals("Urls")) { celebrity.setUrls(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()