/** * <p> * An array of URLs pointing to additional celebrity information. * </p> * * @param urls * An array of URLs pointing to additional celebrity information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCelebrityInfoResult withUrls(java.util.Collection<String> urls) { setUrls(urls); return this; }
/** * <p> * An array of URLs pointing to additional celebrity information. * </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 celebrity information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCelebrityInfoResult 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(); getCelebrityInfoResult.setUrls(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * An array of URLs pointing to additional celebrity information. * </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 celebrity information. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetCelebrityInfoResult withUrls(java.util.Collection<String> urls) { setUrls(urls); return this; }
public GetCelebrityInfoResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetCelebrityInfoResult getCelebrityInfoResult = new GetCelebrityInfoResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Urls")) { getCelebrityInfoResult.setUrls(new ListUnmarshaller<String>(StringJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else if (name.equals("Name")) { getCelebrityInfoResult.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return getCelebrityInfoResult; }