/** * Constructs a new DelegationSet object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. */ public DelegationSet(java.util.List<String> nameServers) { setNameServers(nameServers); }
/** * <p> * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * </p> * * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withNameServers(java.util.Collection<String> nameServers) { setNameServers(nameServers); return this; }
/** * <p> * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setNameServers(java.util.Collection)} or {@link #withNameServers(java.util.Collection)} if you want to * override the existing values. * </p> * * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withNameServers(String... nameServers) { if (this.nameServers == null) { setNameServers(new com.amazonaws.internal.SdkInternalList<String>(nameServers.length)); } for (String ele : nameServers) { this.nameServers.add(ele); } return this; }