/** * <p> * The app's data source. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(java.util.Collection<DataSource> dataSources) { setDataSources(dataSources); return this; }
/** * <p> * The app's data source. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(DataSource... dataSources) { if (this.dataSources == null) { setDataSources(new com.amazonaws.internal.SdkInternalList<DataSource>(dataSources.length)); } for (DataSource ele : dataSources) { this.dataSources.add(ele); } return this; }
/** * <p> * The app's data source. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(java.util.Collection<DataSource> dataSources) { setDataSources(dataSources); return this; }
/** * <p> * The app's data source. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(DataSource... dataSources) { if (this.dataSources == null) { setDataSources(new com.amazonaws.internal.SdkInternalList<DataSource>(dataSources.length)); } for (DataSource ele : dataSources) { this.dataSources.add(ele); } return this; }
createAppRequest.setDataSources(dataSources);