/** * <p> * The queues used by this environment. * </p> * * @param queues * The queues used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withQueues(java.util.Collection<Queue> queues) { setQueues(queues); return this; }
/** * <p> * The queues used by this environment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setQueues(java.util.Collection)} or {@link #withQueues(java.util.Collection)} if you want to override the * existing values. * </p> * * @param queues * The queues used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withQueues(Queue... queues) { if (this.queues == null) { setQueues(new com.amazonaws.internal.SdkInternalList<Queue>(queues.length)); } for (Queue ele : queues) { this.queues.add(ele); } return this; }
/** * <p> * The queues used by this environment. * </p> * * @param queues * The queues used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withQueues(java.util.Collection<Queue> queues) { setQueues(queues); return this; }
/** * <p> * The queues used by this environment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setQueues(java.util.Collection)} or {@link #withQueues(java.util.Collection)} if you want to override the * existing values. * </p> * * @param queues * The queues used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withQueues(Queue... queues) { if (this.queues == null) { setQueues(new com.amazonaws.internal.SdkInternalList<Queue>(queues.length)); } for (Queue ele : queues) { this.queues.add(ele); } return this; }