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