/** * <p> * The five most recent communications associated with the case. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(java.util.Collection<Communication> communications) { setCommunications(communications); return this; }
/** * <p> * The five most recent communications associated with the case. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCommunications(java.util.Collection)} or {@link #withCommunications(java.util.Collection)} if you want * to override the existing values. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(Communication... communications) { if (this.communications == null) { setCommunications(new com.amazonaws.internal.SdkInternalList<Communication>(communications.length)); } for (Communication ele : communications) { this.communications.add(ele); } return this; }
if (context.testExpression("communications", targetDepth)) { context.nextToken(); recentCaseCommunications.setCommunications(new ListUnmarshaller<Communication>(CommunicationJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <p> * The five most recent communications associated with the case. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(java.util.Collection<Communication> communications) { setCommunications(communications); return this; }
/** * <p> * The five most recent communications associated with the case. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCommunications(java.util.Collection)} or {@link #withCommunications(java.util.Collection)} if you want * to override the existing values. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(Communication... communications) { if (this.communications == null) { setCommunications(new com.amazonaws.internal.SdkInternalList<Communication>(communications.length)); } for (Communication ele : communications) { this.communications.add(ele); } return this; }
if (context.testExpression("communications", targetDepth)) { context.nextToken(); recentCaseCommunications.setCommunications(new ListUnmarshaller<Communication>(CommunicationJsonUnmarshaller.getInstance()) .unmarshall(context));