/** * <p> * The policies. If there are no policies enabled, the list is empty. * </p> * * @param policyNames * The policies. If there are no policies enabled, the list is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public ListenerDescription withPolicyNames(java.util.Collection<String> policyNames) { setPolicyNames(policyNames); return this; }
/** * <p> * The policies. If there are no policies enabled, the list is empty. * </p> * <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> * * @param policyNames * The policies. If there are no policies enabled, the list is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public ListenerDescription 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; }
/** * <p> * The policies. If there are no policies enabled, the list is empty. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policyNames <p> * The policies. If there are no policies enabled, the list is * empty. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListenerDescription withPolicyNames(java.util.Collection<String> policyNames) { setPolicyNames(policyNames); return this; }
/** * <p> * The policies. If there are no policies enabled, the list is empty. * </p> * * @param policyNames * The policies. If there are no policies enabled, the list is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public ListenerDescription withPolicyNames(java.util.Collection<String> policyNames) { setPolicyNames(policyNames); return this; }
/** * <p> * The policies. If there are no policies enabled, the list is empty. * </p> * <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> * * @param policyNames * The policies. If there are no policies enabled, the list is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public ListenerDescription 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; }