/** * The names of the policies enabled for the back-end server. * * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link * #setPolicyNames(java.util.Collection)} or {@link #withPolicyNames(java.util.Collection)} if you * want to override the existing values. * * <p>Returns a reference to this object so that method calls can be chained together. * * @param policyNames The names of the policies enabled for the back-end server. * @return A reference to this updated object so that method calls can be chained together. */ public BackendServerDescription withPolicyNames(String... policyNames) { if (getPolicyNames() == null) setPolicyNames(new java.util.ArrayList<String>(policyNames.length)); for (String value : policyNames) { getPolicyNames().add(value); } return this; }
/** * The names of the policies enabled for the back-end server. * * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link * #setPolicyNames(java.util.Collection)} or {@link #withPolicyNames(java.util.Collection)} if you * want to override the existing values. * * @param policyNames The names of the policies enabled for the back-end server. * @return Returns a reference to this object so that method calls can be chained together. */ public BackendServerDescription withPolicyNames(String... policyNames) { if (this.policyNames == null) { setPolicyNames(new com.amazonaws.internal.SdkInternalList<String>(policyNames.length)); } for (String ele : policyNames) { this.policyNames.add(ele); } return this; }
/** * The names of the policies enabled for the back-end server. * * @param policyNames The names of the policies enabled for the back-end server. * @return Returns a reference to this object so that method calls can be chained together. */ public BackendServerDescription withPolicyNames(java.util.Collection<String> policyNames) { setPolicyNames(policyNames); return this; }