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