/** * <p> * A list of topic ARNs. * </p> * * @param topics * A list of topic ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTopicsResult withTopics(java.util.Collection<Topic> topics) { setTopics(topics); return this; }
/** * <p> * A list of topic ARNs. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTopics(java.util.Collection)} or {@link #withTopics(java.util.Collection)} if you want to override the * existing values. * </p> * * @param topics * A list of topic ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTopicsResult withTopics(Topic... topics) { if (this.topics == null) { setTopics(new com.amazonaws.internal.SdkInternalList<Topic>(topics.length)); } for (Topic ele : topics) { this.topics.add(ele); } return this; }
/** * <p> * A list of topic ARNs. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param topics <p> * A list of topic ARNs. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListTopicsResult withTopics(java.util.Collection<Topic> topics) { setTopics(topics); return this; }
/** * <p> * A list of topic ARNs. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param topics <p> * A list of topic ARNs. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListTopicsResult withTopics(java.util.Collection<Topic> topics) { setTopics(topics); return this; }