/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(java.util.Collection<String> domains) { setDomains(domains); return this; }
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDomains(java.util.Collection)} or {@link #withDomains(java.util.Collection)} if you want to override * the existing values. * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(String... domains) { if (this.domains == null) { setDomains(new com.amazonaws.internal.SdkInternalList<String>(domains.length)); } for (String ele : domains) { this.domains.add(ele); } return this; }
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(java.util.Collection<String> domains) { setDomains(domains); return this; }
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDomains(java.util.Collection)} or {@link #withDomains(java.util.Collection)} if you want to override * the existing values. * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(String... domains) { if (this.domains == null) { setDomains(new com.amazonaws.internal.SdkInternalList<String>(domains.length)); } for (String ele : domains) { this.domains.add(ele); } return this; }
createAppRequest.setDomains(domains);